From: Georgi Gerganov Date: Sun, 9 Nov 2025 16:31:02 +0000 (+0200) Subject: mtmd : fix embedding size for image input (#17123) X-Git-Tag: upstream/0.0.7011~8 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=b8595b16e69e3029e06be3b8f6635f9812b2bc3f;p=pkg%2Fggml%2Fsources%2Fllama.cpp mtmd : fix embedding size for image input (#17123) --- diff --git a/tools/mtmd/mtmd-helper.cpp b/tools/mtmd/mtmd-helper.cpp index 686f42f3..89e3355b 100644 --- a/tools/mtmd/mtmd-helper.cpp +++ b/tools/mtmd/mtmd-helper.cpp @@ -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);