Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add repeat audio back #1959

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

add repeat audio back #1959

wants to merge 1 commit into from

Conversation

yuekaizhang
Copy link

Related to #1483.

I have encountered issues when decoding with beam_size > 1.

Here, https://github.com/openai/whisper/blob/main/whisper/model.py#L102, during cross_attention, I think we must keep the first two dims of query and key tensors same. However, I didn't find anywhere we repeat the audio or key, value tensors with beam_size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants