AlexHung29629
commited on
Commit
•
424f6bf
1
Parent(s):
2f0402a
Update ultravox_model.py
Browse files- ultravox_model.py +1 -1
ultravox_model.py
CHANGED
@@ -201,7 +201,7 @@ class UltravoxModel(transformers.LlamaPreTrainedModel):
|
|
201 |
for i, (audio, start, length) in enumerate(
|
202 |
zip(audio_embeds, audio_token_start_idx, audio_token_len)
|
203 |
):
|
204 |
-
assert audio.shape[0] == length, f"{audio.shape=}, {start=}, {length=}, {inputs_embeds[i].shape=}"
|
205 |
inputs_embeds[i, start : start + length] = audio
|
206 |
|
207 |
|
|
|
201 |
for i, (audio, start, length) in enumerate(
|
202 |
zip(audio_embeds, audio_token_start_idx, audio_token_len)
|
203 |
):
|
204 |
+
assert audio.shape[0] == length, f"{audio.shape=}, {start=}, {length=}, {inputs_embeds[i].shape=}, {audio_tower_output[i].shape=}, {audio_values.shape=}, {audio_len=}"
|
205 |
inputs_embeds[i, start : start + length] = audio
|
206 |
|
207 |
|