Repository navigation
[https://nvbugs/6562942][fix] Cherry-pick #19815: Load Qwen3.5 packed INT4 checkpoints - #20171
Closed
pranav-nvidia wants to merge 1 commit into
Closed
pranav-nvidia wants to merge 1 commit into
pranav-nvidia wants to merge 1 commit into
Conversation
Forward-port of NVIDIA#19815 from release/1.3. (cherry picked from commit 4450bbc) Signed-off-by: Pranav Shrestha <254760092+pranav-nvidia@users.noreply.github.com>
pranav-nvidia
marked this pull request as ready for review
October 12, 2026 21:59
pranav-nvidia
requested review from
BowenFu,
QiJune,
asfiyab-nvidia,
hanjingtian,
moraxu,
tongyuantongyu,
weiminwang-nv and
yechank-nvidia
October 12, 2026 21:59
Contributor
Contributor
Author
|
/bot run |
Collaborator
|
PR_Github #77350 [ run ] triggered by Bot. Commit: |
Collaborator
|
PR_Github #77350 [ run ] completed with state
|
mikeiovine
approved these changes
Oct 13, 2026
mikeiovine
left a comment
Collaborator
There was a problem hiding this comment.
Stamp on behalf of runtime devs, delegating proper review to @NVIDIA/trt-llm-models-devs
Contributor
Author
|
/bot run --disable-fail-fast |
Collaborator
|
PR_Github #77559 [ run ] triggered by Bot. Commit: |
Collaborator
|
PR_Github #77559 [ run ] completed with state
|
1 task done
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.
Dev Engineer Review
The working-tree diff contains only formatting changes in
modeling_utils.pyandlinear.py. It changes import wrapping and line breaks, with no observable behavior or API changes. The diff does not include the Qwen3.5 INT4 mapper, shared concatenation helper, or related tests described in the supplied PR objectives.QA Engineer Review
No test changes.
Per-File QA Perspective
tensorrt_llm/_torch/models/modeling_utils.py: Import formatting changed. No behavior change requires QA verification.tensorrt_llm/_torch/modules/linear.py: Import formatting changed. No behavior change requires QA verification.Description
Forward-port of #19815 (merged to
release/1.3) tomain, cherry-picked from 4450bbc. Qwen3.5 INT4 checkpoints pack two output channels per byte, so projection fusion compared the physical rows against the unpacked dimensions and failed with "expected 10240, got 5120". The mapper now fuses packed INT4 projections in tensor-parallel rank order, the Qwen4 rank-concatenation helper moves tomodeling_utilsand is shared by both mappers, and the W4A16 AWQ loader accepts checkpoints that carry nopre_quant_scale. Retained pre-scales are supported only when every component of a fused projection provides the same vector.The patch applies unchanged; only
tests/integration/test_lists/test-db/l0_b200.ymlneeded a manual merge to keep the entries added on both sides.Test Coverage
The same tests as the release PR:
tests/unittest/_torch/models/checkpoints/hf/test_qwen3_5_weight_mapper.py,tests/unittest/_torch/modeling/test_qwen4_exp_support.py,tests/unittest/_torch/modules/test_linear_uneven_tp.py::TestW4A16AWQMLP::test_optional_pre_quant_scale, andtests/unittest/_torch/models/test_qwen3_5_int4_loading.py, the last two on the B200 pre-merge list. All pass onrelease/1.3CI since the merge. End-to-end validation was a GB200 TP1 load and generation run of a ModelOpt Qwen3.5-27Bint4_blockwise_weight_onlycheckpoint on the release code; it was not repeated onmain.PR Checklist
GitHub Bot Help
To see a list of available CI bot commands, please comment
/bot help.