alex-ht commited on
Commit
a0276da
·
1 Parent(s): d051fbe
Files changed (1) hide show
  1. ultravox_model.py +1 -0
ultravox_model.py CHANGED
@@ -201,6 +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
  length = min(length, audio.shape[0])
205
  inputs_embeds[i, start : start + length] = audio[:length]
206
 
 
201
  for i, (audio, start, length) in enumerate(
202
  zip(audio_embeds, audio_token_start_idx, audio_token_len)
203
  ):
204
+ print(f"{length=}, {audio.shape=}, {start=}, {audio.shape=}, {inputs_embeds.shape=}")
205
  length = min(length, audio.shape[0])
206
  inputs_embeds[i, start : start + length] = audio[:length]
207