-
Notifications
You must be signed in to change notification settings - Fork 306
[FMHA] Support Vectorized KV Cache Layout and vLLM/SGLang block table in Batch Prefill kernel #1754
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
34 commits
Select commit
Hold shift + click to select a range
3fa3733
add page size 16 to test and op
ltqin 113217e
add num_total_pages to kernel parameter
ltqin 6e2d9e4
add is_sglang parameter
ltqin 7a463b7
chang is_sglang to is_sglang_layout
ltqin ee72e04
kv last page size=16 pass
ltqin ae459b0
pass kv_last_page_lens to kernel
ltqin b25cee7
add parameters check before calling kernel
ltqin 93754f4
change kv layout to [page_num, page_size, nhead, hdim]
ltqin 8c52122
adopt the changes of struct fmha_fwd_batch_prefill_traits
Jeff-Huang 9d7cd3f
change kv cache memory layout to [num_blocks, num_kv_heads, head_size…
Jeff-Huang e0cb1ea
[FMHA] Integrate vLLM block table support and enforce vectorized KV l…
Jeff-Huang ac28e9d
update CK
Jeff-Huang 9d69a01
Merge branch 'main' into batch_prefill_page_size_16_rebase
Jeff-Huang 688b141
update ck
Jeff-Huang 0c9c886
adopt api changes from fmha_batch_prefill_traits
Jeff-Huang c75fee4
add support for linear kv cache layout
Jeff-Huang d144a76
update api
Jeff-Huang d727a92
Refactor the test code by gathering the different test functions into…
Jeff-Huang 7642e79
Merge branch 'main' into batch_prefill_page_size_16_rebase
Jeff-Huang 2917917
Merge branch 'main' into batch_prefill_page_size_16_rebase
Jeff-Huang b1f452c
update ck
Jeff-Huang ed5f66a
update ck
Jeff-Huang f5cc627
Add profile measurements for batch prefill function
Jeff-Huang c7dd47f
Merge branch 'main' into batch_prefill_page_size_16_rebase
Jeff-Huang 9e10ffc
update ck
Jeff-Huang 6a06de9
fix style
Jeff-Huang ae12e04
Merge branch 'main' into batch_prefill_page_size_16_rebase
Jeff-Huang db5f333
fix style
Jeff-Huang 44a5cc7
Merge branch 'main' into batch_prefill_page_size_16_rebase
Jeff-Huang 4de0de3
Merge branch 'main' into batch_prefill_page_size_16_rebase
Jeff-Huang 1ed076f
[FMHA] Support 3D linear layout (page_size=1) and non-contiguous KV t…
Jeff-Huang ec79599
Merge branch 'main' into batch_prefill_page_size_16_rebase
Jeff-Huang ba88187
Merge branch 'main' into batch_prefill_page_size_16_rebase
Jeff-Huang e7af363
update ck
Jeff-Huang 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
Submodule composable_kernel
updated
251 files
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
2 changes: 1 addition & 1 deletion
2
aiter/ops/triton/_triton_kernels/attention/chunked_pa_prefill.py
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
2 changes: 1 addition & 1 deletion
2
aiter/ops/triton/_triton_kernels/attention/mha_onekernel_bwd.py
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
4 changes: 2 additions & 2 deletions
4
aiter/ops/triton/_triton_kernels/attention/mla_decode_rope.py
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
4 changes: 2 additions & 2 deletions
4
aiter/ops/triton/_triton_kernels/attention/prefill_attention.py
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
2 changes: 1 addition & 1 deletion
2
aiter/ops/triton/_triton_kernels/gemm/basic/gemm_a16w16_atomic.py
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
2 changes: 1 addition & 1 deletion
2
aiter/ops/triton/_triton_kernels/gemm/basic/gemm_a16w16_gated.py
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
2 changes: 1 addition & 1 deletion
2
aiter/ops/triton/_triton_kernels/gemm/basic/gemm_a16w8_blockscale.py
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
2 changes: 1 addition & 1 deletion
2
aiter/ops/triton/_triton_kernels/gemm/basic/gemm_a8w8_blockscale.py
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
2 changes: 1 addition & 1 deletion
2
aiter/ops/triton/_triton_kernels/gemm/basic/gemm_a8w8_per_token_scale.py
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
2 changes: 1 addition & 1 deletion
2
aiter/ops/triton/_triton_kernels/gemm/batched/batched_gemm_a16wfp4.py
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
2 changes: 1 addition & 1 deletion
2
aiter/ops/triton/_triton_kernels/gemm/batched/batched_gemm_a8w8.py
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
2 changes: 1 addition & 1 deletion
2
...s/gemm/batched/batched_gemm_a8w8_a_per_token_group_prequant_w_per_batched_tensor_quant.py
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
2 changes: 1 addition & 1 deletion
2
aiter/ops/triton/_triton_kernels/gemm/batched/batched_gemm_afp4wfp4.py
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
2 changes: 1 addition & 1 deletion
2
aiter/ops/triton/_triton_kernels/gemm/batched/batched_gemm_bf16.py
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
2 changes: 1 addition & 1 deletion
2
aiter/ops/triton/_triton_kernels/gemm/feed_forward/ff_a16w16_fused_gated.py
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
2 changes: 1 addition & 1 deletion
2
aiter/ops/triton/_triton_kernels/gemm/feed_forward/ff_a16w16_fused_ungated.py
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.