Repository navigation
[Triton/Gluon] KDA: faster FlashKDA and token-parallel intra forward on gfx950 #6177
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
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
02feee3
[Triton/Gluon] FlashKDA K2: keep a (segment, head)'s V blocks on one XCD
Micky774 638ae8b
[Triton/Gluon] KDA: load token i once in intra_token_parallel
Micky774 3201b94
[Triton/Gluon] FlashKDA: cap segment length at 64 chunks
Micky774 c139734
[Triton/Gluon] FlashKDA: LDS-prefetching Gluon K2 and a Gluon pass C
Micky774 f10e784
[Triton/Gluon] FlashKDA: skip ws_beta off the Gluon K2 route; name K2…
Micky774 0952d96
[Triton/Gluon] FlashKDA: keep small unsegmented pass C on Triton; ben…
Micky774 5b6f66a
[Triton/Gluon] FlashKDA: publish the Gluon K1 occupancy hint in the g…
Micky774 69c04a6
Merge branch 'main' into zain/kda/te-speedup
Boss2002n 8345b54
Merge branch 'main' into zain/kda/te-speedup
Micky774 2da6f51
[Triton/Gluon] KDA: address review — shared Gluon helpers, align wrap…
Micky774 097849d
[Triton/Gluon] KDA: address review — published schedules, resolved-ro…
Micky774 fd211ae
Merge remote-tracking branch 'origin/main' into zain/kda/te-speedup
Micky774 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
254 changes: 148 additions & 106 deletions
254
aiter/ops/triton/_gluon_kernels/gfx950/kimi_delta_attn/flash_kda_k1.py
Large diffs are not rendered by default.
Oops, something went wrong.
571 changes: 517 additions & 54 deletions
571
aiter/ops/triton/_gluon_kernels/gfx950/kimi_delta_attn/flash_kda_k2.py
Large diffs are not rendered by default.
Oops, something went wrong.
181 changes: 139 additions & 42 deletions
181
aiter/ops/triton/_triton_kernels/kimi_delta_attn/flash_kda.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
19 changes: 17 additions & 2 deletions
19
aiter/ops/triton/configs/gfx950/gluon/attention/chunk_delta_attn/DEFAULT.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,26 @@ | ||
| { | ||
| "k1_prepare_gluon": { | ||
| "num_warps": 2, | ||
| "waves_per_eu": 3 | ||
| }, | ||
| "k2_ab_fused_gluon_wide": { | ||
| "BW": 64, | ||
| "num_warps": 4, | ||
| "MIN_BLOCKS_PER_CU": 2 | ||
| "MIN_BLOCKS_PER_CU": 2, | ||
| "waves_per_eu": 2 | ||
| }, | ||
| "k2_ab_fused_gluon_narrow": { | ||
| "BW": 32, | ||
| "num_warps": 2 | ||
| "num_warps": 2, | ||
| "waves_per_eu": 2 | ||
| }, | ||
| "k2_c_gluon": { | ||
| "BW": 64, | ||
| "num_warps": 4, | ||
| "MIN_BLOCKS_PER_CU": 0.3 | ||
| }, | ||
| "k2_c_gluon_segmented": { | ||
| "BW": 128, | ||
| "num_warps": 4 | ||
| } | ||
| } |
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.
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.