Repository navigation
[None][test] Route the native DSpark indexer test through the target's own decode selector - #22467
Merged
yt0428 merged 1 commit intoNov 17, 2026
Conversation
…s own decode selector The SM107 tp4 target selects its generation rows through its core's _select_indexer_decode, which the test's stand-in core did not have, so all 16 of that target's test_indexer_preserves_request_geometry cases failed with an AttributeError. Give the stand-in the target's own method with no compiled verification selector, so it still checks the generic and radix paths. Targets without the method are unchanged. Signed-off-by: yt0428 <[email protected]>
yt0428
requested review from
Wanli-Jiang,
WeiHaocheng and
litaotju
as code owners
November 17, 2026 11:37
1 task done
Collaborator
Author
|
/bot skip --comment "Format check only" |
Collaborator
|
PR_Github #85476 [ skip ] triggered by Bot. Commit: |
Collaborator
|
PR_Github #85476 [ skip ] 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.
@coderabbitai summary
Description
Since #22249, the Mistral Large 4 SM107 tp4 target's
_indexer(bothPrefillTargetandDecodeTarget) selects its generation rows throughcore._select_indexer_decode(...), which picks the split radix, CuTe DSL radix or trtllm selector by the step's static shape.test_native_dspark.py::test_indexer_preserves_request_geometrydrives_indexerwith aSimpleNamespacestand-in for the core, which has no such method, so all 16 of itstp4-sm107cases fail:This PR binds the target's own
_select_indexer_decodeto the stand-in core, with no compiled verification selector (_ix_topk_verify = None). The test therefore still asserts what it asserted before on this target: the CuTe DSL radix selector for one row per sequence with a compiled handle, and the generic selector otherwise, each writing into the caller's rows oftopk_buf. Targets that do not define the method (sm103, and sm107 tep4/dep4) are unchanged.Test-only change; no library code is touched.
Test Coverage
tests/unittest/_torch/modeling_v2/models/mistral_large4/test_native_dspark.py(inl0_cpu.ymlthrough theunittest/_torch/modeling_v2/models/mistral_large4entry).The CPU stage's entry,
pytest -m cpu_only _torch/modeling_v2/models/mistral_large4, was run on a VR200 node in the runtime container. These tests build their tensors on the CPU; the node's GPUs were visible but unused.416b15a861test_indexer_preserves_request_geometry[tp4-sm107-*]), 918 passed, 543 skippedPR Checklist
Please review the following before submitting your PR:
PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.
PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.
Test cases are provided for new code paths (see test instructions)
If PR introduces API changes, an appropriate PR label is added - either
api-compatibleorapi-breaking. Forapi-breaking, includeBREAKINGin the PR title.Any new dependencies have been scanned for license and vulnerabilities
CODEOWNERS updated if ownership changes
Documentation updated as needed
Update tava architecture diagram if there is a significant design change in PR.
The reviewers assigned automatically/manually are appropriate for the PR.
Please check this after reviewing the above items as appropriate for this PR.
GitHub Bot Help
To see a list of available CI bot commands, please comment
/bot help.🤖 Generated with Claude Code