Update modeling_minicpmo.py
Browse files- 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[
|
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
|