Repository navigation
[Bugfix][Multimodal] Honor modality-scoped mm_processor_kwargs in every model that reads them #54527
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
Open
Hotragn
wants to merge
28
commits into
vllm-project:main
Choose a base branch
from
Hotragn:fix/modality-scoped-mm-kwargs-vl
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[Bugfix][Multimodal] Honor modality-scoped mm_processor_kwargs in every model that reads them #54527
Changes from 4 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
f2b7ae1
[Bugfix][Multimodal] Honor modality-scoped mm_processor_kwargs in eve…
Hotragn 3545e91
Honor per-request mm_processor_kwargs in the Transformers backend tok…
Hotragn 763bf23
Keep the shared "most features" size bound unscoped
Hotragn fb57586
Assert the size bound directly in the leak regression test
Hotragn 40d876a
Scope Cohere Compass image token counts to images_kwargs
Hotragn 7324cf0
Thread modality through the GLM-5-Next pixel budget overrides
Hotragn c019f81
Merge branch 'main' into fix/modality-scoped-mm-kwargs-vl
mergify[bot] 0a511d4
Drop the subclass signature test; pre-commit mypy already catches it
Hotragn bc71a8a
Merge remote-tracking branch 'upstream/main' into rebase/mm-kwargs
Hotragn b252bca
Merge remote-tracking branch 'upstream/main' into rebase/mm-kwargs
Hotragn b3706a5
Merge remote-tracking branch 'upstream/main' into rebase/mm-kwargs
Hotragn a2d23a5
Merge upstream/main into rebase/mm-kwargs
Hotragn 56f1c8b
Merge remote-tracking branch 'upstream/main' into rebase/mm-kwargs
Hotragn 45fde1e
Merge branch 'main' into fix/modality-scoped-mm-kwargs-vl
mergify[bot] 31e47b1
Merge remote-tracking branch 'upstream/main' into rebase/mm-kwargs
Hotragn 2e91653
Merge remote-tracking branch 'upstream/main' into rebase/mm-kwargs
Hotragn 722ba98
Merge branch 'main' into fix/modality-scoped-mm-kwargs-vl
mergify[bot] 0b2809f
Merge remote-tracking branch 'upstream/main' into rebase/mm-kwargs
Hotragn 2ecbccb
[Multimodal] Port modality-scoped reads to the resolved mm_processor_…
Hotragn 5cb2b77
Address review: call get_allowed_kwarg_only_overrides directly
Hotragn 7cf2164
Merge branch 'main' into fix/modality-scoped-mm-kwargs-vl
mergify[bot] 35bccee
Address review: keep request kwargs out of HF token counts
Hotragn b1cca50
Merge upstream/main into fix/modality-scoped-mm-kwargs-vl
Hotragn 94e70e8
Probe the scoped patch count with a size override
Hotragn 9c6b1a8
Size the vision bound per modality
Hotragn 7062cbb
Merge remote-tracking branch 'upstream/main' into fix/modality-scoped…
Hotragn 0627776
Resolve scoped images_kwargs for the profiled image-token budget
Hotragn e485603
Merge upstream/main into fix/modality-scoped-mm-kwargs-vl
Hotragn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Please move the imports to the top
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.
Done in
5cb2b776ac. The probe now builds the processor with the sharedcreate_processor(_MODEL_ID, LegacyMultiModalProcessor, mm_processor_kwargs)helper fromtransformers_backend.py, which this PR already extends withmm_processor_kwargs. The function-local imports are gone and the module needs no new top-level ones.Fork run 36823193389 on head
7cf21648d2(includes Mergify's merge ofmain):test_transformers_image.py20 passed, 1 xfailed, 3 failed. The 3 failures are the same gatedgoogle/gemma-3-4b-it401s as before. The test assertions did not change, so the earlier red-on-mainresult (assert [7329] == [2709], run 36673566847) still applies.