Skip to content

Commit 3dc72b6

Browse files
ngxsonarthw
authored andcommitted
mtmd: correct mtmd_decode_use_mrope() (ggml-org#22188)
1 parent c25bd71 commit 3dc72b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/mtmd/mtmd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ bool mtmd_decode_use_non_causal(const mtmd_context * ctx, const mtmd_input_chunk
10521052
}
10531053

10541054
bool mtmd_decode_use_mrope(const mtmd_context * ctx) {
1055-
return ctx->pos_type;
1055+
return ctx->pos_type == MTMD_POS_TYPE_MROPE;
10561056
}
10571057

10581058
bool mtmd_support_vision(const mtmd_context * ctx) {

0 commit comments

Comments
 (0)