Skip to content

[https://nvbugs/7061740][fix] Update Qwen3.5 checkpoint loader test API - #21876

Merged
yuxianq merged 1 commit into
NVIDIA:mainfrom
fredricz-20070104:repair-bot-v2/nvbug-7061740-r143
Nov 9, 2026
Merged

yuxianq merged 1 commit into
NVIDIA:mainfrom
fredricz-20070104:repair-bot-v2/nvbug-7061740-r143

Conversation

@fredricz-20070104

@fredricz-20070104 fredricz-20070104 commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

Root cause

The Qwen3.5-VL modeling test still imported and called the removed private _construct_checkpoint_loader helper after the checkpoint loader API was renamed. Pytest therefore failed while collecting the module before the requested test could run.

Fix

Use the current public construct_checkpoint_loader API in the test.

Verification

  • The reported Qwen3.5-VL W4A16 NVFP4 behavior test passes on H100.
  • The nearby Qwen3.8 NVFP4 checkpoint-loader defaults test passes on H100.

Fixes https://nvbugs/7061740

Dev Engineer Review

The test now uses the public construct_checkpoint_loader API instead of the removed private helper. The change is limited to the import and call; no runtime code or public API behavior changes.

QA Engineer Review

The modified test setup exercises the Qwen3.8 NVFP4 checkpoint-loader defaults test. The diff does not change test functions, IDs, selectors, or waivers. The test list includes the Qwen3.5-VL test class and the W4A16 NVFP4 behavior test, but not the Qwen3.8 checkpoint-loader defaults test by name. Coverage verdict: needs follow-up to confirm that this test runs in CI. Test results are not available.

Per-File QA Perspective

  • tests/unittest/_torch/modeling/test_modeling_qwen3_5_vl.py: The changed setup covers checkpoint-loader creation for the Qwen3.8 NVFP4 defaults test. The test file and the W4A16 NVFP4 behavior test appear in tests/integration/test_lists/test-db/l0_h100.yml; the checkpoint-loader defaults test does not appear there by name.

@coderabbitai

coderabbitai Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Qwen3.5-VL checkpoint-loading test now imports and calls construct_checkpoint_loader instead of _construct_checkpoint_loader.

Changes

Checkpoint loader test

Layer / File(s) Summary
Use the public loader name
tests/unittest/_torch/modeling/test_modeling_qwen3_5_vl.py
The test imports and calls construct_checkpoint_loader instead of _construct_checkpoint_loader.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Other

Merge Risk: Minimal · up to 9859e

The test now uses the public loader API, with no actionable merge risk identified.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title names the NVBugs ID and the type [fix], and it describes the main change: the Qwen3.5 checkpoint loader test now uses the renamed public API. It follows the repository title template and mat…
Description check Passed The description states the root cause (the test imported and called the removed private _construct_checkpoint_loader helper), the fix (use the public construct_checkpoint_loader API), verification…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the NVBugs ID and the type [fix], and it describes the main change: the Qwen3.5 checkpoint loader test now uses the renamed public API. It follows the repository title template and matches the single modified test file and the description.

Full details: Description check

Explanation

The description states the root cause (the test imported and called the removed private _construct_checkpoint_loader helper), the fix (use the public construct_checkpoint_loader API), verification on H100, and the NVBugs link. It does not include the template's Test Coverage section content, and the PR Checklist is not addressed. These are minor gaps, so the description is mostly complete.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between b433473 and 9859e6c.

Files selected for processing: 1

  • tests/unittest/_torch/modeling/test_modeling_qwen3_5_vl.py

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

@sunnyqgg sunnyqgg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix. The import and the call now use construct_checkpoint_loader (tensorrt_llm/_torch/pyexecutor/model_loader.py:587), whose keyword-only parameters match the call; the call mirrors the production path in tensorrt_llm/_torch/pyexecutor/py_executor_creator.py:515-524, and nothing else in the tree still references _construct_checkpoint_loader. Release branches are not affected. Counts: 0 blockers, 0 possibly blocking, 2 required, 0 nice to have. Both required items concern the PR page rather than the code, so they are listed here:

  • [Required] Draft PR #21856 (auto-waive for this same NVBug) is still open. It adds full:DGX_H100/unittest/_torch/modeling/test_modeling_qwen3_5_vl.py::test_qwen35_dense_vl_preserves_w4a16_nvfp4_behavior SKIP (https://nvbugs/7061740) to tests/integration/test_lists/waives.txt, which skips the very test this PR fixes (tests/integration/test_lists/test-db/l0_h100.yml:125). If it merges before or after this fix, the H100 pre-merge stage keeps skipping a test that now passes until someone removes the line. Please link #21856 in the description and get it closed once this lands; if #21856 merges first, delete that waive line in this PR, since this change fixes the root cause.
  • [Required] The CodeRabbit QA block in the description says CI coverage of the changed test "needs follow-up" and that "Test results are not available". test_qwen38_nvfp4_checkpoint_load_applies_hopper_defaults is @pytest.mark.cpu_only, so it already runs pre-merge on the CPU stage through the unittest/_torch/modeling entry of tests/integration/test_lists/test-db/l0_cpu.yml (line 80): that stage runs with -m cpu_only, and tests/unittest/conftest.py:304 collects this file because it carries the marker. The module's GPU tests run through l0_h100.yml lines 123-125. The PR template asks that a CodeRabbit summary make sense; please replace that block with this coverage (or delete it), and link the passing CPU and H100 pre-merge run once /bot run completes.

@yuxianq

yuxianq commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #83354 [ run ] triggered by Bot. Commit: 9859e6c Link to invocation

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Automatically added "ci: full pre-merge approved" because this PR has satisfied the required GitHub review approvals. Unresolved review conversations and other required checks remain independent merge requirements.

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #83354 [ run ] completed with state SUCCESS. Commit: 9859e6c
/LLM/main/L0_MergeRequest_PR pipeline #68891 completed with status: 'SUCCESS'

CI Report

Link to invocation

@yuxianq
yuxianq merged commit 769cdb1 into NVIDIA:main Nov 9, 2026
hanjingtian pushed a commit to ruocheng-nv/TensorRT-LLM that referenced this pull request Nov 11, 2026
…ests fixed by NVIDIA#21876

test_modeling_qwen3_5_vl.py imported _construct_checkpoint_loader, which
NVIDIA#20703 had renamed to construct_checkpoint_loader, so pytest could not
collect the module. Every test list entry that collects it failed, and
14 entries were waived under this bug. NVIDIA#21876 switched the test to the
new name; remove the waivers.

Signed-off-by: Ruocheng Jia <[email protected]>
ruocheng-nv added a commit to ruocheng-nv/TensorRT-LLM that referenced this pull request Nov 12, 2026
…ests fixed by NVIDIA#21876

test_modeling_qwen3_5_vl.py imported _construct_checkpoint_loader, which
collect the module. Every test list entry that collects it failed, and
14 entries were waived under this bug. NVIDIA#21876 switched the test to the
new name; remove the waivers.

Signed-off-by: Ruocheng Jia <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants