Skip to content

Commit 89730c8

Browse files
authored
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
1 parent fde69a3 commit 89730c8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

examples/model-conversion/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ causal-convert-mm-model:
5252
METADATA_OVERRIDE="$(METADATA_OVERRIDE)" \
5353
./scripts/causal/convert-model.sh
5454

55+
$(MAKE) causal-convert-mmproj MM_OUTTYPE="$(MM_OUTTYPE)"
56+
57+
causal-convert-mmproj:
58+
$(call validate_model_path,causal-convert-mmproj)
5559
@MODEL_NAME="$(MODEL_NAME)" OUTTYPE="$(MM_OUTTYPE)" MODEL_PATH="$(MODEL_PATH)" \
5660
METADATA_OVERRIDE="$(METADATA_OVERRIDE)" \
5761
./scripts/causal/convert-model.sh --mmproj

0 commit comments

Comments
 (0)