-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
[Bugfix] Check that number of images matches number of <|image|> tokens with mllama #13911
[Bugfix] Check that number of images matches number of <|image|> tokens with mllama #13911
Conversation
👋 Hi! Thank you for contributing to the vLLM project. 💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels. Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can either: Add 🚀 |
# Number of image tags is greater than the number of images provided | ||
prompt = "<|begin_of_text|><|image|><|image|> Compare the two images" # noqa: E501 | ||
# Number of image groups is greater than the number of images provided | ||
prompt = "<|begin_of_text|><|image|> <|image|> Compare the two images" # noqa: E501 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this whitespace necessary? If so, please add a note.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. The crash only triggers if there are more groups of <|image|>
tokens. I updated the comment from tags
to groups
to indicate that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM. cc @Isotr0py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for fixing this!
Head branch was pushed to by a user without write access
This check was originally added in vllm-project#11939 But was removed as part of the refactoring in vllm-project#11427 Signed-off-by: Travis Johnson <tsjohnso@us.ibm.com>
Signed-off-by: Travis Johnson <tsjohnso@us.ibm.com>
Signed-off-by: Travis Johnson <tsjohnso@us.ibm.com>
0543ce3
to
ef6ae8c
Compare
…ns with mllama (vllm-project#13911) Signed-off-by: Travis Johnson <tsjohnso@us.ibm.com> Signed-off-by: Johnny <johnnynuca14@gmail.com>
…ns with mllama (vllm-project#13911) Signed-off-by: Travis Johnson <tsjohnso@us.ibm.com>
…ns with mllama (vllm-project#13911) Signed-off-by: Travis Johnson <tsjohnso@us.ibm.com> Signed-off-by: Linkun Chen <github@lkchen.net>
This check was originally added in
#11939
But was removed as part of the refactoring in
#11427
I also updated a test so it would have caused the crash before this fix was applied.
Relates to #10648