]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
mtmd: correct mtmd_decode_use_mrope() (#22188)
authorXuan-Son Nguyen <redacted>
Tue, 21 Apr 2026 08:53:37 +0000 (10:53 +0200)
committerGitHub <redacted>
Tue, 21 Apr 2026 08:53:37 +0000 (10:53 +0200)
tools/mtmd/mtmd.cpp

index dfc29e9097272266ffec0c78438b08b9ef056cab..854ac81e0a550b270a68f7bfaae6815a313c294b 100644 (file)
@@ -1052,7 +1052,7 @@ bool mtmd_decode_use_non_causal(const mtmd_context * ctx, const mtmd_input_chunk
 }
 
 bool mtmd_decode_use_mrope(const mtmd_context * ctx) {
-    return ctx->pos_type;
+    return ctx->pos_type == MTMD_POS_TYPE_MROPE;
 }
 
 bool mtmd_support_vision(const mtmd_context * ctx) {