Repository navigation
Map Qwen3.5 VLM exports to native ORT GenAI type - #532
Merged
Merged
Conversation
Route Qwen3.5 and Qwen3.6 VLM ORT GenAI metadata to the native qwen3_5 runtime type instead of the Qwen2.5-VL alias. Preserve Qwen-specific vision metadata and cover TRT-RTX component graph-capture settings in regression tests. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Performance Comparison
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the ORT GenAI export integration so Qwen3.5/Qwen3.6 VLM packages emit genai_config.json targeting ORT GenAI’s native qwen3_5 model type (instead of the Qwen2.5-VL alias), and extends the emitted vision metadata for these configs. It also adds regression tests to validate the new type mapping and TRT-RTX graph-capture settings.
Changes:
- Remap Qwen3.5/Qwen3.6 VLM-related HuggingFace
model_typevalues to the ORT GenAIqwen3_5runtime type. - Emit Qwen vision metadata (
patch_size,window_size,tokens_per_second) for Qwen3.5/Qwen3.6 VLM exports. - Add regression tests for (1) Qwen3.5 VLM type mapping + TRT-RTX graph-capture defaults and (2) Qwen3.6 MoE-VL parent-type mapping behavior.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/mobius/integrations/ort_genai/auto_export.py |
Updates HF→ORT GenAI model type mapping for Qwen3.5/Qwen3.6 and extends Qwen VLM vision metadata emission. |
src/mobius/integrations/ort_genai/auto_export_test.py |
Adds regression tests for Qwen3.5/Qwen3.6 mapping behavior and TRT-RTX graph capture settings. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Add the Qwen3.5/Qwen3.6 VLM TRT-RTX auxiliary component profile options from the upstream ORT GenAI export path and disable graph capture on those component sessions. Also make the TRT-RTX EP lower INT4 MatMulNBits to QDQ format to match the runtime export requirement. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Expose provider-option overrides on GenaiConfigGenerator.with_embedding so embedding session options can be updated independently of the vision helper. Add regression coverage for TRT-RTX embedding profile overrides. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Format TRT-RTX provider option assertions and mock AutoProcessor in the Qwen3.6 VLM runtime type test so it does not attempt HuggingFace processor loading during CI. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 3ed6ef11-d59b-4826-9d Signed-off-by: Justin Chu <[email protected]>
Document provider option override parameters and make the standalone embedding provider-options test use image_features inputs to match the TRT-RTX profile shapes. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 3ed6ef11-d59b-4826-9d73-58fd2031ec11 Signed-off-by: Justin Chu <[email protected]>
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.
Summary
qwen3_5runtime type instead of the Qwen2.5-VL aliaspatch_size,window_size,tokens_per_second) for Qwen3.5/Qwen3.6 VLM configsembeddingandvision, with graph capture disabled on those component sessionswith_embedding()MatMulNBitsfor the TRT-RTX EPTest
python -m pytest src\mobius\integrations\ort_genai\auto_export_test.py -q -k "qwen35_vl or qwen36_vl or qwen3_vl_writes" --tb=shortpython -m pytest src\mobius\functions\matmul_nbits_test.py -q -k "EpGating" --tb=shortpython -m pytest src\mobius\integrations\ort_genai\genai_config_test.py -q -k "embedding_session_options_can_be_updated or cuda_enables_decoder_graph_capture_only" --tb=shortpython -m pytest src\mobius\integrations\ort_genai\auto_export_test.py src\mobius\functions\matmul_nbits_test.py -q -k "qwen35_vl or qwen36_vl or qwen3_vl_writes or EpGating" --tb=short