We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 049ae24 commit 076e3b9Copy full SHA for 076e3b9
tools/llava/mtmd.cpp
@@ -681,8 +681,7 @@ int32_t mtmd_helper_eval_chunk_single(mtmd_context * ctx,
681
i_batch++;
682
}
683
684
- // for mrope, one image is one single **temporal** position
685
- n_past += mtmd_decode_use_mrope(ctx) ? 1 : n_tokens;
+ n_past += mtmd_image_tokens_get_n_pos(image_tokens);
686
*new_n_past = n_past;
687
688
if (mtmd_decode_use_non_causal(ctx)) {
0 commit comments