[Perf] Add CuTe DSL DSA indexer - #1991
Open
jayhenry wants to merge 2 commits into
Open
Conversation
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.
Summary
cutedependency extra andindexer_backend="cute_dsl".indexer_backend(default:tilelang) fromsparse_mla_backend, while preserving the upstream int32 top-k contract.Integration fixes
Kernel benchmark
H200 development measurements with BF16, Q=32768, 32 index heads, dim=128, and topk=2048:
Peak incremental memory is about 0.504 GiB for all three shapes, versus 5.317/9.317/33.317 GiB for the existing TileLang path.
SFT regression
All runs use 8xH200, GLM-5.2-30B-MTP-new, FP8, model/torch compile, cuDNN DSA sparse MLA, 28 steps, and all-rank statistics from steps 13-28.
All three runs completed 28/28 steps without OOM, NaN, CUDA, NCCL, DeepEP, or traceback failures. The TileLang comparison uses the 2026-07-30
7fb0eed4snapshot, so it includes cross-snapshot noise and is not a causal attribution of the full delta to this PR.Tests
pytest -q tests/ops/test_cute_dsl_indexer_topk.py(19 passed)pytest -q tests/module/attention/test_dsa_mla.py(10 passed)