From 89730c8d264c743a51035fcfdc5f63ca0599492e Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Tue, 12 May 2026 15:15:40 +0200 Subject: [PATCH] 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 --- examples/model-conversion/Makefile | 4 ++++ 1 file changed, 4 insertions(+) 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