Repository navigation
[TRTLLM-15893][fix] Fix the dead import in the indexer-Q CuTe DSL prewarm - #20734
Merged
Merged
Conversation
…warm DecoderWarmup._prewarm_cute_dsl_indexer_q imported DeepseekV4Indexer from a module path that does not exist, so the ImportError was swallowed and the prewarm never ran. Import it from the sparse deepseek_v4 package, skip indexers whose weights belong to another pipeline stage, and add unit tests. Signed-off-by: Yihui Lu <269394165+YihuiLu512@users.noreply.github.com>
YihuiLu512
requested review from
asfiyab-nvidia,
pcastonguay,
reasonsolo and
zhaoyangwang-nvidia
October 21, 2026 06:38
Contributor
Collaborator
Author
|
/bot run --disable-fail-fast |
chuangz0
approved these changes
Oct 21, 2026
Merged
1 task done
lori-ren
approved these changes
Oct 21, 2026
|
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. |
Collaborator
|
PR_Github #79568 [ run ] triggered by Bot. Commit: |
Collaborator
|
PR_Github #79568 [ run ] completed with state |
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.
Description
DecoderWarmup._prewarm_cute_dsl_indexer_qimportedDeepseekV4Indexerfrom a module path that does not exist, so theImportErrorwas swallowed and the DSv4 indexer-Q CuTe DSL prewarm never ran. This PR fixes the import and skips indexers whose weights belong to another pipeline stage (with the import fixed, those would otherwise crash startup when PP > 1).Test Coverage
tests/unittest/_torch/executor/test_pytorch_model_engine_warmup.py: new cases fail on the old code and pass with the fix (B300).PR Checklist
Dev Engineer Review
warmup.pyfixes theDeepseekV4Indexerimport path and prevents processing indexers owned by another pipeline stage.wq_b.weight, checks the fused MXFP4 Q-projection path, and prewarms the 4-, 8-, and 16-token tactics.QA Engineer Review
tests/unittest/_torch/executor/test_pytorch_model_engine_warmup.pyadds seven unit tests.test-db/orqa/listing change applies.Per-File QA Perspective
tensorrt_llm/_torch/pyexecutor/engine/runners/decoder/warmup.py: Verify DSv4 indexer-Q prewarming with local and cross-stage indexers, fused and non-fused paths, all fallback token counts, and partial compilation failures. Confirm tensor-parallel barriers still execute.tests/unittest/_torch/executor/test_pytorch_model_engine_warmup.py: Covers the new import, gating, synchronization, failure, and pipeline-parallel behaviors. The file is not listed in integration CI or manual-QA lists because it is a unit-test file.