Skip to content

Conversation

Isotr0py
Copy link
Member

@Isotr0py Isotr0py commented Aug 13, 2025

Essential Elements of an Effective PR Description Checklist

  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.

FIX #22837

Purpose

Test Plan

pytest -s -v tests/models/multimodal/generation/test_pixtral.py

Test Result

Test should pass now

(Optional) Documentation Update

Signed-off-by: Isotr0py <[email protected]>
Copy link

👋 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 fastcheck CI which starts running only a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of those by going to your fastcheck build on Buildkite UI (linked in the PR checks section) and unblock them. If you do not have permission to unblock, ping simon-mo or khluu to add you in our Buildkite org.

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 ready label to the PR or enable auto-merge.

🚀

@Isotr0py Isotr0py requested a review from DarkLight1337 August 13, 2025 15:56
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a 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.

@DarkLight1337
Copy link
Member

Why was this not caught by test_model_tensor_schema?

@Isotr0py
Copy link
Member Author

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. 😅

@DarkLight1337
Copy link
Member

Can you update the test to use images with different sizes?

@DarkLight1337
Copy link
Member

DarkLight1337 commented Aug 13, 2025

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]>
@Isotr0py Isotr0py requested a review from ywang96 as a code owner August 13, 2025 16:59
@mergify mergify bot added the multi-modality Related to multi-modality (#4194) label Aug 13, 2025
@robertgshaw2-redhat
Copy link
Collaborator

CONFIRM THIS PASSES:

  • MultiModalTests - ExtendedGeneration

Signed-off-by: Isotr0py <[email protected]>
@DarkLight1337 DarkLight1337 enabled auto-merge (squash) August 13, 2025 17:23
@github-actions github-actions bot added the ready ONLY add when PR is ready to merge/full CI is needed label Aug 13, 2025
@robertgshaw2-redhat
Copy link
Collaborator

This broke Multi Modal Models Tests Standard

Copy link
Collaborator

@robertgshaw2-redhat robertgshaw2-redhat left a 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]>
@Isotr0py
Copy link
Member Author

Separated MM test update to #22867. Let's make CI green first.

Copy link
Collaborator

@robertgshaw2-redhat robertgshaw2-redhat left a 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

@Isotr0py
Copy link
Member Author

Seems MM standard test is broken by #22813

@DarkLight1337
Copy link
Member

Oh, didn't realize even tgt_sizes has different shape...

@Isotr0py
Copy link
Member Author

Oh, NVM, #22841 should have fixed this. Let's try again with main branch update.

@DarkLight1337
Copy link
Member

Passes now

@vllm-bot vllm-bot merged commit 7c3a074 into vllm-project:main Aug 14, 2025
40 of 43 checks passed
@Isotr0py Isotr0py deleted the fix-pixtral-shape branch August 14, 2025 10:43
yiliu30 pushed a commit to yiliu30/vllm-fork that referenced this pull request Aug 19, 2025
divakar-amd pushed a commit to divakar-amd/vllm_upstream that referenced this pull request Aug 20, 2025
djmmoss pushed a commit to djmmoss/vllm that referenced this pull request Aug 21, 2025
epwalsh pushed a commit to epwalsh/vllm that referenced this pull request Aug 28, 2025
xiao-llm pushed a commit to xiao-llm/vllm that referenced this pull request Aug 28, 2025
zhewenl pushed a commit to zhewenl/vllm that referenced this pull request Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
multi-modality Related to multi-modality (#4194) ready ONLY add when PR is ready to merge/full CI is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI Failure][NIGHTLY FIRE DRILL]: Multi-Modal Models Test (Extended 1)
4 participants