diff --git a/examples/llava/clip.cpp b/examples/llava/clip.cpp index 34f05ca58..6d7b4950f 100644 --- a/examples/llava/clip.cpp +++ b/examples/llava/clip.cpp @@ -1203,7 +1203,7 @@ struct clip_ctx * clip_model_load(const char * fname, const int verbosity = 1) { vision_model.mm_model_block_2_block_2_0_w = get_tensor(new_clip->ctx_data, format(TN_MVLM_PROJ_BLOCK, 2, 2, "0.weight")); vision_model.mm_model_block_2_block_2_1_w = get_tensor(new_clip->ctx_data, format(TN_MVLM_PROJ_BLOCK, 2, 2, "1.weight")); vision_model.mm_model_block_2_block_2_1_b = get_tensor(new_clip->ctx_data, format(TN_MVLM_PROJ_BLOCK, 2, 2, "1.bias")); - } + } else if (new_clip->proj_type == PROJECTOR_TYPE_LDPV2) { // MobilVLM_V2 projection