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

Modailities param in LLaVA-NeXT documentation #391

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

Conversation

gmongaras
Copy link

The llava model requires the modalities parameter to be broadcasted to the batch size, otherwise the zip statement on line 442 in llava/model/llava_arch.py reduces the batch size to 1 (the default length of this parameter). Not having this in the .generate call leads to batches of size 1 to be generated even when a larger batch size is passed in.

I think adding this to the documentation would make it a little more clear. Or maybe doing auto broadcasting of the modalities parameter if the input is a batch and this parameter isn't changed by the user.

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

Successfully merging this pull request may close these issues.

1 participant