From: Daniel Bevenius Date: Tue, 12 May 2026 13:15:40 +0000 (+0200) Subject: model-conversion : add causal-convert-mmproj target [no ci] (#22969) X-Git-Tag: upstream/0.0.10438~1317 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=89730c8d264c743a51035fcfdc5f63ca0599492e;p=pkg%2Fggml%2Fsources%2Fllama.cpp model-conversion : add causal-convert-mmproj target [no ci] (#22969) * 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 --- diff --git a/examples/model-conversion/Makefile b/examples/model-conversion/Makefile index 9356aaf85..0130b0493 100644 --- a/examples/model-conversion/Makefile +++ b/examples/model-conversion/Makefile @@ -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