Skip to content

Commit 7360d43

Browse files
committed
mtmd : add not supported msg for qwen2vl
1 parent ccca0fb commit 7360d43

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/llava/mtmd.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ struct mtmd_context {
5858
}
5959
this->text_model = text_model;
6060

61+
GGML_ASSERT(!clip_is_qwen2vl(ctx_clip) && "Qwen2VL model is not supported yet, use llama-qwen2vl-cli instead");
62+
6163
int minicpmv_version = clip_is_minicpmv(ctx_clip);
6264
if (minicpmv_version == 2) {
6365
// minicpmv 2.5 format:
@@ -504,6 +506,7 @@ int32_t mtmd_helper_eval(mtmd_context * ctx,
504506

505507
if (mtmd_decode_use_non_causal(ctx)) {
506508
llama_set_causal_attn(lctx, false);
509+
// TODO @ngxson : need to make sure only one image is processed at a time, and n_ubatch must be enough to hold the image
507510
}
508511

509512
while (i_batch < n_img_batches) { // split into batches

0 commit comments

Comments
 (0)