-
Notifications
You must be signed in to change notification settings - Fork 9.1k
[AMD] Enable Fast Triton Sparse MLA backend #30575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+1,871
−135
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
84db3fd
Improve MTP and large concurrency performance
clintg6 cf74632
Address merge conflict and reviewer suggestions
clintg6 aadadc9
Merge branch 'main' into feat/triton-sparse-mla
clintg6 fd9755e
Merge branch 'main' into feat/triton-sparse-mla
clintg6 3c450d5
Update cta gate to improve prefill performance
clintg6 38aef8a
Remove contiguous copies from both prefill and decode kernels
clintg6 67f2a3b
Merge branch 'main' into feat/triton-sparse-mla
clintg6 f9e7809
Resolve main merge conflict for Triton DSA
clintg6 605c177
Implement async copy management in Triton sparse MLA
clintg6 a6c9aff
Update async copy behavior to address triton 3.7 regression
clintg6 5f8898c
Merge branch 'main' into feat/triton-sparse-mla
HaiShaw 3bd32fc
Merge branch 'main' into feat/triton-sparse-mla
HaiShaw d75eea9
Merge branch 'main' into feat/triton-sparse-mla
HaiShaw 92da23a
fix undefined symbols
HaiShaw 3f9dd6b
Merge branch 'main' into feat/triton-sparse-mla
HaiShaw cb3cb14
Merge branch 'main' into feat/triton-sparse-mla
HaiShaw 8078584
Merge branch 'main' into feat/triton-sparse-mla
HaiShaw f1c2f08
preserve compatible ROCm backend defaults
clintg6 665a5b9
apply dtype-compatible ROCm ds backend default
clintg6 07e9260
Fix merge conflict
clintg6 2126799
Merge branch 'main' into feat/triton-sparse-mla
clintg6 c5a54ea
Merge branch 'main' into feat/triton-sparse-mla
HaiShaw d9f3bd6
Fix typo
clintg6 2f11645
Fix Triton sparse MLA edge cases and drop aiter dependency for CU count
clintg6 285d57d
Merge branch 'main' into feat/triton-sparse-mla
clintg6 ffce301
Fix linting issue
clintg6 2a09e07
Fix linting issue
clintg6 626cec3
[AMD] Enable BF16 support in Triton sparse MLA
clintg6 2e5c110
[AMD] Make Triton sparse MLA BF16 tile size LDS-aware
clintg6 d065757
Merge branch 'main' into feat/triton-sparse-mla
clintg6 38609a7
[AMD] Fix MI300X FP8 Triton sparse MLA query dtype
7d34c0e
[AMD] Keep sparse MLA FP8 dot operands consistent
clintg6 38c26ca
Merge branch 'main' into feat/triton-sparse-mla
HaiShaw 2aefc32
Merge branch 'main' into feat/triton-sparse-mla
clintg6 91f70a4
Fix linting issue
clintg6 9ae98e7
Fix linting issue
clintg6 77bf906
Merge branch 'main' into feat/triton-sparse-mla
clintg6 ca7797c
Merge branch 'main' into feat/triton-sparse-mla
clintg6 feea2f8
Merge branch 'main' into feat/triton-sparse-mla
clintg6 7182bce
Merge upstream main and resolve conflicts
clintg6 064fc7c
Merge branch 'main' into feat/triton-sparse-mla
clintg6 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
1,108 changes: 1,031 additions & 77 deletions
1,108
python/sglang/kernels/ops/attention/dsa/triton_sparse_mla.py
Large diffs are not rendered by default.
Oops, something went wrong.
742 changes: 742 additions & 0 deletions
742
python/sglang/kernels/ops/attention/dsa/triton_sparse_mla_decode.py
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.