You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great work on this! But I’m curious about above code.
From my understanding, the entire prompt is split by <speech>, and under current setting, there will only be one <speech>, which means len(prompt_chunks) == 2, right? Prompt_chunks[0] contains <bos>, while prompt_chunks[1] does not. What does the offset do in this code? Why is it [speech_token_index] * (offset + 1)?
The text was updated successfully, but these errors were encountered:
LLaMA-Omni/omni_speech/datasets/preprocess.py
Lines 36 to 55 in 7ec4f18
Great work on this! But I’m curious about above code.
From my understanding, the entire prompt is split by <speech>, and under current setting, there will only be one <speech>, which means len(prompt_chunks) == 2, right? Prompt_chunks[0] contains <bos>, while prompt_chunks[1] does not. What does the offset do in this code? Why is it [speech_token_index] * (offset + 1)?
The text was updated successfully, but these errors were encountered: