Skip to content

[None][test] Route the native DSpark indexer test through the target's own decode selector - #22467

Merged
yt0428 merged 1 commit into
NVIDIA:feat/mistral-large-4from
yt0428:claude/ml4-vr200-pr-dspark-indexer-test
Nov 17, 2026
Merged

yt0428 merged 1 commit into
NVIDIA:feat/mistral-large-4from
yt0428:claude/ml4-vr200-pr-dspark-indexer-test

Conversation

@yt0428

@yt0428 yt0428 commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

@coderabbitai summary

Description

Since #22249, the Mistral Large 4 SM107 tp4 target's _indexer (both PrefillTarget and DecodeTarget) selects its generation rows through core._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_geometry drives _indexer with a SimpleNamespace stand-in for the core, which has no such method, so all 16 of its tp4-sm107 cases fail:

AttributeError: 'types.SimpleNamespace' object has no attribute '_select_indexer_decode'

This PR binds the target's own _select_indexer_decode to 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 of topk_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 (in l0_cpu.yml through the unittest/_torch/modeling_v2/models/mistral_large4 entry).

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.

Tree Result
Base 416b15a861 16 failed (all test_indexer_preserves_request_geometry[tp4-sm107-*]), 918 passed, 543 skipped
This PR 934 passed, 543 skipped

PR 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-compatible or api-breaking. For api-breaking, include BREAKING in 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

…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

yt0428 commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator Author

/bot skip --comment "Format check only"

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #85476 [ skip ] triggered by Bot. Commit: 3e05400 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #85476 [ skip ] completed with state SUCCESS. Commit: 3e05400
Skipping testing for commit 3e05400

Link to invocation

@yt0428
yt0428 merged commit 2eaa79c into NVIDIA:feat/mistral-large-4 Nov 17, 2026
10 checks passed
@yt0428
yt0428 deleted the claude/ml4-vr200-pr-dspark-indexer-test branch November 18, 2026 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants