-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
[Bugfix] Fix PixtralHFImagePixelInputs
dynamic shape check
#22827
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
Conversation
Signed-off-by: Isotr0py <[email protected]>
👋 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 🚀 |
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.
Code Review
This pull request addresses a bug in the dynamic shape validation for PixtralHFImagePixelInputs
. The change correctly marks the height (h
) and width (w
) dimensions as dynamic in the TensorShape
definition. This allows vLLM
to process batches of images with varying sizes for Pixtral models, which aligns with the model's capabilities and fixes the failing tests mentioned in the description. The fix is concise and directly targets the issue. The code change looks good to me. As you noted in the description, updating tests/models/multimodal/test_tensor_schema.py
to include tests with arbitrary image sizes would be a great follow-up to ensure this functionality is well-covered by tests going forward.
Why was this not caught by |
Because that test is using same image size for multi-image inputs, I just realized that I forgot to resize mm_input when implemented that test. 😅 |
Can you update the test to use images with different sizes? |
Once #22841 is merged, please also merge from main, so that the test can still pass after updating it to be more comprehensive |
Signed-off-by: Isotr0py <[email protected]>
CONFIRM THIS PASSES:
|
Signed-off-by: Isotr0py <[email protected]>
This broke Multi Modal Models Tests Standard |
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.
broke other tests
Signed-off-by: Isotr0py <[email protected]>
Separated MM test update to #22867. Let's make CI green first. |
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.
approved, but should wait for CI to pass
Seems MM standard test is broken by #22813 |
Oh, didn't realize even |
Oh, NVM, #22841 should have fixed this. Let's try again with main branch update. |
Passes now |
…oject#22827) Signed-off-by: Isotr0py <[email protected]>
…oject#22827) Signed-off-by: Isotr0py <[email protected]>
…oject#22827) Signed-off-by: Isotr0py <[email protected]> Signed-off-by: Duncan Moss <[email protected]>
…oject#22827) Signed-off-by: Isotr0py <[email protected]>
…oject#22827) Signed-off-by: Isotr0py <[email protected]> Signed-off-by: Xiao Yu <[email protected]>
…oject#22827) Signed-off-by: Isotr0py <[email protected]>
Essential Elements of an Effective PR Description Checklist
supported_models.md
andexamples
for a new model.FIX #22837
Purpose
tests/models/multimodal/test_tensor_schema.py
to cover arbitrary image size then... 😅Test Plan
Test Result
Test should pass now
(Optional) Documentation Update