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

Inference: Batch size > 1 #177

Open
flexthink opened this issue Jul 3, 2024 · 0 comments
Open

Inference: Batch size > 1 #177

flexthink opened this issue Jul 3, 2024 · 0 comments

Comments

@flexthink
Copy link

It appears that batch inference is not currently supported. If the batch size is anything other than 1, inference fails

In models/vallex.py, inference():

assert y.shape[0] == 1, y.shape

This does not allow batch sizes other than 1 for audio prompts

            xy_pos = torch.concat([x, y_pos], dim=1)

This assumes the batch size is the same for x and y_pos.

Here is the error you get if the batch size is 2 and best_of is 5

RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 10 but got size 5 for tensor number 1 in the list.

Please advise

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