yuzaa commited on
Commit
fe724e9
·
verified ·
1 Parent(s): 585c094

Update modeling_minicpmo.py

Browse files
Files changed (1) hide show
  1. modeling_minicpmo.py +1 -1
modeling_minicpmo.py CHANGED
@@ -573,7 +573,7 @@ class MiniCPMO(MiniCPMOPreTrainedModel):
573
  audio_start_pos = 0
574
  for bound in audio_bounds[i]:
575
  audio_len = bound[1] - bound[0]
576
- input_embeddings[0, bound[0] : bound[1]] = audio_embs[
577
  audio_start_pos : audio_start_pos + audio_len, :
578
  ]
579
  audio_start_pos += audio_len
 
573
  audio_start_pos = 0
574
  for bound in audio_bounds[i]:
575
  audio_len = bound[1] - bound[0]
576
+ input_embeddings[i, bound[0] : bound[1]] = audio_embs[
577
  audio_start_pos : audio_start_pos + audio_len, :
578
  ]
579
  audio_start_pos += audio_len