Add Blackwell MXAttention scaled-MMA backend - #19
Draft
yiliu30 wants to merge 4 commits into
Draft
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
tl.dot_scaledfor MXFP4 QK and split-PV MMA.Root cause and fix
On Blackwell, Triton's accumulator-init optimization can rewrite a loop-carried scaled-MMA accumulator into an invalid immutable TMEM allocation. The runtime workaround skips that pass only for SM100 compilation. The optimized PV path uses four 128x32 accumulators because a single 128x128 scaled-MMA layout is rejected by Blackwell legalization.
Validation
tl.dot_scaledprobes.allow_fallback=False.SAGE_ATTN: model-card configuration 1280x704, 121 frames, 50 steps, 24 FPS; completed successfully in approximately 260.5 seconds.See
docs/MXATTENTION_HANDOFF.mdfor runtime configuration and follow-up work.