Add HSTU attention CuTe DSL kernels for Blackwell - #487
Draft
jiayus-nvidia wants to merge 14 commits into
Draft
Conversation
Migrate the Blackwell two-kernel dQ and dK/dV implementation, integrate it with the FE OSS API lifecycle, and add correctness, layout, cache, mask, and CUDA Graph coverage.
Build private device-side Q2K/K2Q metadata for FP16/BF16 forward and backward paths. Specialize MASK/FULL/EMPTY traversal, use R2P or endpoint reuse where profitable, and add API, correctness, tail, and CUDA Graph coverage.
- add padded CLC scheduling and optimized R2P, SiLU, and TMA forward paths - select the SM107 two-CTA one-Q-stage forward pipeline while retaining the SM100/SM103 one-CTA path - add the two-CTA backward pipeline, padded-static work mapping, and optimized gradient conversion - compile public CUTLASS DSL kernels as family-portable sm_100f binaries - preserve existing local, arbitrary-mask, paged, BF16, and FP16 paths
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
jiayus-nvidia
force-pushed
the
agent/hstu-blackwell-sm100-bf16
branch
from
August 5, 2026 07:50
494914e to
aab82f0
Compare
jiayus-nvidia
force-pushed
the
agent/hstu-blackwell-sm100-bf16
branch
2 times, most recently
from
August 5, 2026 08:34
c8dc3d4 to
a20539e
Compare
jiayus-nvidia
force-pushed
the
agent/hstu-blackwell-sm100-bf16
branch
from
August 5, 2026 08:55
a20539e to
3245fb1
Compare
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
developpackage layout and conventions.Validation
pre-commit run --files <changed files>python -m compileall -q python/cudnn/hstu_attentioncd test/python && PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=../../python python -m pytest -p no:cacheprovider -q -m "L0 or L1" fe_api/hstu_attention/Closes #369