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

Using MMS model with star token for batch size > 1 #3772

Open
huangruizhe opened this issue Apr 12, 2024 · 0 comments
Open

Using MMS model with star token for batch size > 1 #3772

huangruizhe opened this issue Apr 12, 2024 · 0 comments

Comments

@huangruizhe
Copy link
Contributor

The current implementation assumes batch size is one, when attaching the star dimension:

star_dim = torch.zeros((1, output.size(1), 1), dtype=output.dtype, device=output.device)

However, the underlying Wav2vec model supports batch size greater than one. So this line should instead be:

star_dim = torch.zeros((output.size(0), output.size(1), 1), dtype=output.dtype, device=output.device) 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant