Multi Resolution Support for Qwen2.5-VL Model#875
Open
quic-sanising wants to merge 6 commits intoquic:release/v1.21.0from
Open
Multi Resolution Support for Qwen2.5-VL Model#875quic-sanising wants to merge 6 commits intoquic:release/v1.21.0from
quic-sanising wants to merge 6 commits intoquic:release/v1.21.0from
Conversation
added 5 commits
March 18, 2026 14:40
Signed-off-by: quic-sanising <sanising@qti.qualcomm.com>
Signed-off-by: quic-sanising <sanising@qti.qualcomm.com>
Signed-off-by: quic-sanising <sanising@qti.qualcomm.com>
…nd max pixels Signed-off-by: quic-sanising <sanising@qti.qualcomm.com>
Signed-off-by: quic-sanising <sanising@qti.qualcomm.com>
f2eee65 to
c8cf322
Compare
Signed-off-by: quic-sanising <sanising@qti.qualcomm.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Qwen2.5‑VL workloads often see variable image sizes; supporting multiple resolutions improves usability and benchmarking realism. This PR adds multi‑resolution support to the Qwen2.5‑VL specialization flow. The goal is to allow a single run to handle multiple image sizes more robustly while keeping specialization metadata consistent and avoiding shape/buffer mismatches.
What changed?
Qwen2.5‑VL specialization now supports multiple
(width, height)pairs without requiring changes in model onnx:widthandheightas eitherintorList[int].smart_resizeutility instead of local implementation (imports:from qwen_vl_utils import smart_resize).(width, height)pairs.min_vision_sizeacross all provided resolutions.mm_processor_kwargs, particularly,min_pixelsandmax_pixels.vision_sizeuser input.Testing
height=int,width=intand verify behavior matches previous outputs.height=[...], width=[...]and confirm:min_vision_sizeis used consistently,pixel_valuesshapes that are present invision_session.allowed_shapes.Checklist