]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
mtmd : fix embedding size for image input (#17123)
authorGeorgi Gerganov <redacted>
Sun, 9 Nov 2025 16:31:02 +0000 (18:31 +0200)
committerGitHub <redacted>
Sun, 9 Nov 2025 16:31:02 +0000 (18:31 +0200)
tools/mtmd/mtmd-helper.cpp

index 686f42f3960fe0d734d385542fef97e1b282484b..89e3355bbab2763bf1371c3116dfb8672fa4eb9f 100644 (file)
@@ -182,7 +182,7 @@ int32_t mtmd_helper_decode_image_chunk(
     }
 
     const llama_model * model = llama_get_model(lctx);
-    int n_mmproj_embd = llama_model_n_embd(model);
+    int n_mmproj_embd = llama_model_n_embd_inp(model);
     int n_pos_per_embd = mtmd_decode_use_mrope(ctx) ? 4 : 1;
 
     int32_t n_tokens = mtmd_input_chunk_get_n_tokens(chunk);