Skip to content

Commit b8595b1

Browse files
authored
mtmd : fix embedding size for image input (ggml-org#17123)
1 parent 392e09a commit b8595b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/mtmd/mtmd-helper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ int32_t mtmd_helper_decode_image_chunk(
182182
}
183183

184184
const llama_model * model = llama_get_model(lctx);
185-
int n_mmproj_embd = llama_model_n_embd(model);
185+
int n_mmproj_embd = llama_model_n_embd_inp(model);
186186
int n_pos_per_embd = mtmd_decode_use_mrope(ctx) ? 4 : 1;
187187

188188
int32_t n_tokens = mtmd_input_chunk_get_n_tokens(chunk);

0 commit comments

Comments
 (0)