File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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 {
8787    }
8888
8989    //  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) {
9191        GGML_ASSERT (n_pos_per_embd == 4 );
9292        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++) {
9494            pos[i                     ] = pos_0 + i;
9595            pos[i + batch.n_tokens     ] = pos_0 + i;
9696            pos[i + batch.n_tokens  * 2 ] = pos_0 + i;
@@ -174,7 +174,7 @@ int32_t mtmd_helper_decode_image_chunk(
174174            const  int  ny = mtmd_image_tokens_get_ny (image_tokens);
175175            batch_embd.set_position_mrope_2d (n_past, nx, ny, seq_id);
176176        } 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);
178178        } else  {
179179            GGML_ABORT (" invalid chunk type for M-RoPE" 
180180        }
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments