From: Xuan-Son Nguyen Date: Tue, 21 Apr 2026 08:53:37 +0000 (+0200) Subject: mtmd: correct mtmd_decode_use_mrope() (#22188) X-Git-Tag: upstream/0.0.10438~1569 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=9998d88bc88c2003aa6790d57226ef33608d57c1;p=pkg%2Fggml%2Fsources%2Fllama.cpp mtmd: correct mtmd_decode_use_mrope() (#22188) --- diff --git a/tools/mtmd/mtmd.cpp b/tools/mtmd/mtmd.cpp index dfc29e909..854ac81e0 100644 --- a/tools/mtmd/mtmd.cpp +++ b/tools/mtmd/mtmd.cpp @@ -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) {