]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
model-conversion : add causal-convert-mmproj target [no ci] (#22969)
authorDaniel Bevenius <redacted>
Tue, 12 May 2026 13:15:40 +0000 (15:15 +0200)
committerGitHub <redacted>
Tue, 12 May 2026 13:15:40 +0000 (15:15 +0200)
* model-conversion : add causal-convert-mmproj target [no ci]

This commit adds a new Make target that only converts the mmproj model.

The motivation for this that the causal-convert-mm-model target will
convert both the test model and the mmproj model which is nice when the
model model conversion is finalized. But during development it is nice
to be able to just convert the mmproj model and not have to wait for
the often more time consuming text model conversion.

* add path model path validation check

examples/model-conversion/Makefile

index 9356aaf8546388369811d76bbdcd021da5479b3d..0130b0493bb2980e0daea49a8bf61e33f305b753 100644 (file)
@@ -52,6 +52,10 @@ causal-convert-mm-model:
        METADATA_OVERRIDE="$(METADATA_OVERRIDE)" \
        ./scripts/causal/convert-model.sh
 
+       $(MAKE) causal-convert-mmproj MM_OUTTYPE="$(MM_OUTTYPE)"
+
+causal-convert-mmproj:
+       $(call validate_model_path,causal-convert-mmproj)
        @MODEL_NAME="$(MODEL_NAME)" OUTTYPE="$(MM_OUTTYPE)" MODEL_PATH="$(MODEL_PATH)" \
        METADATA_OVERRIDE="$(METADATA_OVERRIDE)" \
        ./scripts/causal/convert-model.sh --mmproj