File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -87,10 +87,10 @@ struct decode_embd_batch {
87
87
}
88
88
89
89
// M-RoPE for audio
90
- void set_position_mrope_1d (llama_pos pos_0, int32_t n_tokens, llama_seq_id seq_id) {
90
+ void set_position_mrope_1d (llama_pos pos_0, llama_seq_id seq_id) {
91
91
GGML_ASSERT (n_pos_per_embd == 4 );
92
92
seq_id_0[0 ] = seq_id;
93
- for (int i = 0 ; i < n_tokens; i++) {
93
+ for (int i = 0 ; i < batch. n_tokens ; i++) {
94
94
pos[i ] = pos_0 + i;
95
95
pos[i + batch.n_tokens ] = pos_0 + i;
96
96
pos[i + batch.n_tokens * 2 ] = pos_0 + i;
@@ -174,7 +174,7 @@ int32_t mtmd_helper_decode_image_chunk(
174
174
const int ny = mtmd_image_tokens_get_ny (image_tokens);
175
175
batch_embd.set_position_mrope_2d (n_past, nx, ny, seq_id);
176
176
} else if (chunk_type == MTMD_INPUT_CHUNK_TYPE_AUDIO) {
177
- batch_embd.set_position_mrope_1d (n_past, n_tokens, seq_id);
177
+ batch_embd.set_position_mrope_1d (n_past, seq_id);
178
178
} else {
179
179
GGML_ABORT (" invalid chunk type for M-RoPE" );
180
180
}
You can’t perform that action at this time.
0 commit comments