Enable Qwen3.5 35B-A3B MoE text export for TRT-RTX EP - #2186
Merged
baijumeswani merged 1 commit intoMay 29, 2026
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates Qwen3.5-MoE builder logic and EP registration to better support TRT-RTX text-only execution, and adds a new model type identifier for LLM classification.
Changes:
- Select a different Qwen3.5-MoE
model_typewhen running TRT-RTX with text-only. - Populate
swiglu_limitin MoE attributes with a fallback lookup/default. - Add
qwen3_5_moe_textto the C++ LLM model type allowlist and acceptNvTensorRtRtxas an EP alias in the Python examples.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/python/py/models/builders/qwen.py | Adjusts Qwen3.5-MoE model type selection for TRT-RTX text-only and adds swiglu_limit handling. |
| src/models/model_type.h | Adds qwen3_5_moe_text to the LLM classification list. |
| examples/python/common.py | Adds NvTensorRtRtx EP option and maps it to the provider library name when registering. |
|
@kunal-vaishnavi , @baijumeswani , can you please review |
yen-shi
force-pushed
the
yenshiw/trt-rtx-qwen35-35b-moe
branch
4 times, most recently
from
May 27, 2026 07:10
a824e5d to
cebee60
Compare
yen-shi
commented
May 27, 2026
yen-shi
commented
May 27, 2026
yen-shi
force-pushed
the
yenshiw/trt-rtx-qwen35-35b-moe
branch
2 times, most recently
from
May 28, 2026 07:24
5016191 to
fff32ae
Compare
yen-shi
force-pushed
the
yenshiw/trt-rtx-qwen35-35b-moe
branch
from
May 28, 2026 08:01
fff32ae to
0257321
Compare
kunal-vaishnavi
approved these changes
May 28, 2026
Contributor
Author
|
Hi @kunal-vaishnavi, |
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
Enable Qwen3.5 35B-A3B MoE text-only export and inference with the TRT-RTX execution provider.
qwen3_5_moeVLM path intact for non-TRT-RTX/non-text behavior.swiglu_limitwhen available, and fall back to+infwhen the config omits it.NvTensorRtRtxwhile registering the external ORT EP library asNvTensorRTRTXExecutionProvider.Validation
model.type = qwen3_5_moe_texttext.onnxenable_cuda_graph = 1swiglu_limitmodel-qa.pyusing-e NvTensorRtRtx.-e NvTensorRtRtxalias on Qwen3.5 0.8B and 9B TRT-RTX packages.Notes
qwen3_5_moeVLM model registration.