Repository navigation
[None][perf] Enable FlashInfer GDN chunked prefill on SM107 - #21210
Conversation
|
/bot run |
|
PR_Github #81249 [ run ] triggered by Bot. Commit: |
|
PR_Github #81249 [ run ] completed with state Resource maintenance in LLM/main/L0_Test-x86_64-Single-GPU #9113: L40S-PyTorch-2 is temporarily paused due to Kubernetes agent provisioning and node issues. |
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
SM107 prefill predicate and validation tensorrt_llm/_utils.py, tensorrt_llm/_torch/modules/mamba/gdn_mixer.py, tests/unittest/_torch/modules/mamba/test_flashinfer_chunk_gdn.py, tests/integration/test_lists/test-db/l0_gr100.yml |
The prefill architecture predicate and its supporting comment include SM107. Unit tests expect SM107 to be supported for prefill but not decode. The integration test list includes the Mamba chunk-GDN test. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Feature
Suggested reviewers: brnguyen2, bowenfu
Merge Risk: 
Minimal · up to 8aaaa
-
No actionable merge-blocking defect is established; an SM107 execution run would still improve confidence.
Pre-merge checks: 
5
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. 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 1 functions across 3 files. (1 skipped: 1 unsupported.)
-
Finishing Touches: 💡 1
-
🧪 Generate unit tests (beta)
-
- Create a new PR
🛠️ Fix failing CI checks: 💡
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
Signed-off-by: Aswin Visva <[email protected]>
8812713 to
8aaaa17
Compare
|
/bot run |
1 similar comment
|
/bot run |
|
PR_Github #81740 [ run ] triggered by Bot. Commit: |
|
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. |
|
PR_Github #81740 [ run ] completed with state |
Dev Engineer Review
TLLM_USE_FLASHINFER_GDN_PREFILL=1and a supported architecture. Setting it to0continues to disable FlashInfer prefill.QA Engineer Review
tests/unittest/_torch/modules/mamba/test_flashinfer_chunk_gdn.py. The architecture predicate tests now expect SM107 prefill support and decode exclusion. The routing-test architecture list remains unchanged.tests/integration/test_lists/test-db/l0_gr100.ymlto add the GDN test. The test also appears in thel0_gb10.ymlandl0_rtx_pro_6000.ymlCI lists.Per-File QA Perspective
tensorrt_llm/_torch/modules/mamba/gdn_mixer.py: The prefill selector uses the architecture predicate and theTLLM_USE_FLASHINFER_GDN_PREFILLenvironment variable. Verify FlashInfer prefill selection and Triton fallback on SM107.tensorrt_llm/_utils.py: The prefill architecture predicate adds SM107; the decode predicate remains separate and unchanged. Verify that SM107 is accepted for prefill and rejected for decode.tests/unittest/_torch/modules/mamba/test_flashinfer_chunk_gdn.py: Architecture tests cover SM107 prefill support and decode exclusion, alongside existing routing tests. The file is listed in CI test-db lists, includingl0_gr100.yml.tests/integration/test_lists/test-db/l0_gr100.yml: Adds the GDN test to the GR100 CI list for SM107. This changes test selection, not runtime behavior.Description
is_flashinfer_gdn_prefill_supported_arch()does not list SM107, so GDN chunked prefill on SM107 falls back to the vendored Triton FLA kernel, even though FlashInfer routes all compute-10.x devices to its SM100 CuTe DSL prefill kernels and the pinned CuTe DSL targetssm_107anatively. This PR adds SM107 to that allow-list for prefill only: the decode/MTP-verify gate (is_flashinfer_gdn_decode_supported_arch()) is unchanged, other architectures are unaffected, andTLLM_USE_FLASHINFER_GDN_PREFILL=0still forces Triton. This moves SM107 prefill onto the same FlashInfer kernels that SM100/SM103 already use.Test Coverage
test_is_flashinfer_gdn_prefill_supported_archandtest_is_flashinfer_gdn_decode_supported_archnow pin SM107 as prefill-enabled and decode-disabled (GPU-free).unittest/_torch/modules/mamba/test_flashinfer_chunk_gdn.py(FlashInfer-vs-Triton prefill parity, including indexed in-place state I/O) is added to the SM107 test list so it runs on SM107 hardware, and it passes 57/57 on H200. Main pins FlashInfer 0.6.18, which also sends low-parallelism prefill on compute-10.x devices to a new context-parallel kernel, so please run the SM107 post-merge stage before merging.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-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.