-
Notifications
You must be signed in to change notification settings - Fork 421
Add sink_size parameter for mha_fwd and varlen_mha_fwd api #1272
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
Changes from 157 commits
Commits
Show all changes
166 commits
Select commit
Hold shift + click to select a range
6bf2e52
add sink_size parameter in mha_fwd and varlen_mha_fwd
LJ-underdog 12f28c4
Update mha.py
LJ-underdog b884d23
update mha_varlen_fwd_kernels
LJ-underdog 85de02a
ca_refactor_fix (#1268)
valarLip e5e7402
fix_fp4_quant_dtype (#1271)
lalala-sh b38205d
add sample use outer exponential (#1267)
junhaha666 1d63101
Fix rowwise a8w8 gemm in swizzled hipb_mm (#1258)
kliuae-amd 97b1f9c
CI: Use TW cluster to run sglang tests (#1273)
gyohuangxin 0e3d750
Catchall PR for all 355_wip related changes (#1148)
azaidy 853bbf0
[MI35X] fix core check (#1276)
amd-ruitang3 f20e5a3
Refactor gemm bf16 tuner (#1275)
yzhou103 8c1b7ba
CI: Operators tuning pipelines (#1163)
gyohuangxin f4426ff
fix the problem that v3's performance is worse than ck's (#1237)
minmengdie 51fc112
fix the python mha test error (#1277)
minmengdie da47070
Reuse custom decorator in core and torch guard (#1278)
ZhangLirong-amd 18b64ca
integrate deep gemm (#1265)
lalala-sh f925cc1
add a tuned config and insert entries in untuned config (#1243)
hongxiayang 1c19f56
Enable large batch size and optimization of non-Ragged batching (#1269)
valechen c02f0cd
add few more fw ds f4 untuned and tuned shapes for using asm kernel (…
hongxiayang f5b8e60
CI: Optimize autotuning pipeline and inital the docs (#1286)
gyohuangxin a5f3b9d
topk per row kernel (#1262)
ukannika 7af8b72
fix aot (#1279)
fsx950223 6ef39d9
Fix ATOM fp8 model quant fail issue in torch compile (#1299)
ZhangLirong-amd 3ef016c
feat - pa_fwd support block map with stride in num_kv_heads_dim (#1301)
alibaba-miji 655f7f3
Fix how to update accumulator for dot_scaled (#1297)
zhanglx13 561c778
CI: Optimize autotuning pipeline docs (#1300)
gyohuangxin 380230f
Fix the lint issue (#1307)
gyohuangxin 061e684
fix fwd perf calc error (#1305)
minmengdie f11109d
add the asm kernel performance of fwd and bwd (#1270)
minmengdie 84dc96d
Fused TopK and Sigmoid kernel (#1251)
samremes 614d1bc
Ar rms (#1290)
TennyWang1223 d8a270e
Dsv32 cache (#1314)
junhaha666 292393b
Fix displaying supported architectures (#1316)
HollowMan6 e787f6c
using standalone pybind (#1317)
valarLip df7ab92
Enable mha bwd hd192_hd128 (#1308)
slippedJim 25e807e
CI: Add pre-check status check (#1252)
gyohuangxin 7e3e8bf
[CK_TILE] fmha: Add backward pass support for padded inputs (#1212)
Jeff-Huang 6718e93
Mla splitkv enhance split alg inte (#1233)
valarLip 9e88874
Fix gemm tuner error mi350 (#1313)
yzhou103 c03abe5
CI: Skip triton setup in Aiter standard/multigpu tests and add retrie…
gyohuangxin 1b4712a
Fix global variable torch_fp8 initialization caused issue (#1322)
huizhougit 17c6e6a
Add transpose scale to the triton fused_rms_fp8_group_quant (#1291)
tjtanaa 1561ac3
[Triton] 355 wip Llama FP4 triton fusion + TP8 triton decode shape tu…
k50112113 9e1ab29
[TRITON] Kernel naming: add reusable constexpr repr helper (#1260)
Boss2002n e17dc1c
Merge tuned file (#1327)
yzhou103 bb105a2
fix graph_breaks by return tensor for bool op (#1333)
ZhangLirong-amd 8dc8340
fix_bf16gemm_asm (#1329)
amd-ruitang3 65ab026
Improve Memory Usage in MLA (#1338)
ruanjm 5b5947e
fix tune error caused by merge tuned_file (#1342)
yzhou103 05921d3
rm rocblas in tuner (#1337)
yzhou103 4b1930e
[Triton] DS a16w8 GEMM and fused reduce_rms_fp8_group_quant (#1328)
k50112113 8be3a72
Add block_m=16 for a8w8_ck_moe_blockscale (#1081)
huaiguxu 093fdcd
Add Fused RMSNorm + FP8 Per-tensor Static Quantization Triton Kernel …
farlukas 116676b
[TRITON] GEMM kernels nomenclature changes (#1283)
Boss2002n a958f6e
Temporarily run aiter standard and multigpu tests on the TW cluster, …
gyohuangxin 96ff111
[Triton] Disable failing lean attention tests (#1357)
cagrikymk 2aacbdb
add config (#1355)
valarLip f16cf5e
add how_v3_bf16_cvt control to the Python API (#1351)
minmengdie 4b2c780
[fix]: car 6 rank coredump (#1335)
TennyWang1223 0cbe0f6
Wrapper_flash_attn_backward custom op to avoid functionalize fallback…
ZhangLirong-amd 5f1a97a
[TRITON] GEMM kernels nomenclature changes (#1292)
Boss2002n 7daab1c
[TRITON] Initial implementations of sparse attention kernels (#1296)
cagrikymk d906ec7
[MI35X]cktile moe a16w4 support (#1341)
solinzby1 50170fb
[TRITON] Batched GEMM kernels nomenclature changes (#1293)
Boss2002n ec4fc5f
[TRITON] Instruction shape fix for Gluon gemm_a8w8_blockscale kernel …
eky-amd 2671d47
moe mxfp4 block_m = 64/128 (#1266)
xudoyuan 782bf07
bug fix (#1370)
valarLip 7345673
[opus] enhance opus utility (#1324)
carlushuang 0985afb
Fix issue in metadata v1.2 where batch size is too large (#1352)
ruanjm 3f7fbae
[GEMM][Config] add a8w8 block scale tuned config for deepseek-v3 (#1310)
gbyu-amd 50da101
support all logit values (#1323)
ukannika b09d863
CI: Skip triton in Aiter standard and multigpu tests (#1374)
gyohuangxin 55e2227
add the performance data bar chart in the readme (#1372)
minmengdie 7e2266f
force ds ptpc moe use 1 stage moe (#1373)
junhaha666 abb3346
[TRITON] MHA PA optimizations (#1245)
cagrikymk d844368
Enable fa multii target build on other arch (#1318)
slippedJim 9012066
[Triton] DS FP4 triton fusion (#1371)
k50112113 ea183ac
[TRITON] Simplify and optimize triton_kernels moe code and move it in…
lburzawa ee0ea56
Use torch.zeros_like instead of empty_like to prevent accruacy drop (…
hubertlu-tw 528b2ea
CI: Temporarily using old vllm nightly image (#1389)
gyohuangxin 5d7e28b
Revert "[Triton] DS FP4 triton fusion (#1371)" (#1392)
valarLip 2234ef0
add a8w8 ptpc gemm config for dsv3 (#1382)
junhaha666 0595973
Test the CI on both MI325 and MI355 (#1364)
gyohuangxin 1c92909
[Triton] change BF16 GEMM config filename (#1398)
k50112113 4dddd56
Support distributed_init_method and DP in init_distributed (#1353)
ZhangLirong-amd f653b6e
FA V3(fp8) and paged Attention compressed (CI green) (#1065)
micmelesse 6b58536
is_shuffled (#1377)
xudoyuan a5ab0a3
Ar rms new interface (#1401)
TennyWang1223 29cc55b
minor fix for mi355 (#1408)
valarLip a36f8bc
[Fix] Add sliding window feature for paged_attention_v1 (#1362)
luocheng25 c8339b9
fused_qk_rope_cat_and_cache_mla: Fix Triton compilation error and bat…
xudonlyu 85f1691
max mla splits perbatch (#1390)
Zzz9990 9cef005
topk_per_row_opt (#1394)
valarLip 9b1dbb1
Fix fused_rms_mxfp4_quant comment (#1369)
drewads 29cf2dd
leanAttn softmax fix for spurious data mismatch test failures (#1396)
valechen f044797
Add reduce_scatter api (#1413)
ZhangLirong-amd 6fa502c
fix error in fmoe_tuner (#1405)
yzhou103 39162a9
optimize thread divergence (#1421)
carlushuang e4271da
[TRITON] complex number multiplication that supports 3D ROPE triton k…
LiuYinfeng01 5166dbb
Feat: pa_mqa_logits performance optimization & support kv_preshuffle …
sjfeng1999 beffb41
[Config] add tuned moe and gemm config for qwen3 235b (#1378)
gbyu-amd 6b1c1ea
fix repeated unnecessary device check (#1221)
b8zhong b4998e2
remove lru func in fake (#1429)
ZhangLirong-amd c00de10
Temporarily disable the test on mi355 (#1437)
gyohuangxin 325cad4
Enable MI355 test on main branch
gyohuangxin ede13c0
CI: Aiter tests bug fix
gyohuangxin afeb92f
[M308] tune silu&act (#1404)
zufayu bae6f35
add deepseek ep moe tune config (#1431)
junhaha666 c13bfc9
[TRITON] Moe a8w4 tuning (#1410)
lburzawa fbfed27
[TRITON] Apply config-aware naming (kernel_repr) to attention kernel…
Boss2002n f1c5cdd
[fix]: prebuild gen so (#1412)
TennyWang1223 0621618
[TRITON] FP8 MQA optimizations (#1422)
cagrikymk 21433da
redirect asm_moe_tkw1 call to fused_moe in order to force kernel tuni…
antsaukk 3b44501
CI: Move some tests to MI355 due to the network issue of TW cluster (…
gyohuangxin 141a9fe
CI: Move Triton tests from TW cluster to internal cluster (#1451)
gyohuangxin 567d549
tune a8w8_blockscale&bpreshuffle for tencent (#1444)
LJ-underdog 0f756a1
[fix]: add ar switch (#1376)
TennyWang1223 c0484d5
CI: Test pypi connection (#1458)
gyohuangxin b609ba4
cktile weight preshuffle test and auto tuning for a8w8 (#1400)
solinzby1 e34fbab
fix_prebuiild_asm (#1439)
amd-ruitang3 4f12958
fix merged tuned config error (#1460)
yzhou103 c975485
update triton version check for pa_mqa_logits (#1440)
valarLip 3ff3344
fix all_reduce_fake (#1465)
valarLip ea1f8bd
CI: Use ausartifactory.amd.com in pip installation (#1469)
gyohuangxin f94afd1
update codegen (#1471)
amd-ruitang3 3a278a8
CI: Fix sglang CI test (#1473)
gyohuangxin 48b50f7
CI: Add checkout retry in vLLM benchmark tests (#1476)
gyohuangxin 21d85ef
CI: Move SGlang and Triton tests to MI300 runners (#1485)
gyohuangxin 9471aa5
fix merging aiter config (#1443)
yzhou103 6fd8081
fix fmoe tune preshuffle error (#1430)
yzhou103 53632bd
Fix issue: Add nhead=128 support to bf16 and align restrictions (#1450)
ruanjm b392ea3
fix fwd_v3 output/lse is nan when kseq=0 and fix qseq >> kseq error (…
minmengdie e23a861
fix the build error of rtp (#1438)
lalala-sh d161536
Add 32x64 to tuned fmoe config (#1386)
antsaukk 1eecfae
some fix for support gpt_oss (#1488)
junhaha666 0bd8e89
CI: Revert vllm_benchmark to use the latest nightly image (#1402)
gyohuangxin dec216b
add sink_size parameter in mha_fwd and varlen_mha_fwd
LJ-underdog 889605e
update ck api
LJ-underdog 839977a
Merge branch 'main' into lj_sink
LJ-underdog 9b40dec
Remove redundant assignment to sink_size
LJ-underdog 3b2f367
Update mha_fwd_kernels.cu
LJ-underdog 0fe7ee7
Update mha.py
LJ-underdog d9f4423
Add false argument to fmha_batch_prefill call
LJ-underdog 890520b
update ck commit
LJ-underdog aadd3fe
Handle sink_size with conditional window_size length
LJ-underdog e06855a
update fmha_api
LJ-underdog 3d1c78b
Merge branch 'main' into lj_sink
LJ-underdog 0e8a494
update ck commit
LJ-underdog 02bc0d4
update ck_commit
LJ-underdog 94cc393
update ck commmit
LJ-underdog 04d1150
fix op test error
LJ-underdog 515874e
Merge branch 'main' into lj_sink
LJ-underdog 9463b79
Update mha.py
LJ-underdog eaf84f7
Update csrc/include/torch/mha_fwd.h
LJ-underdog 0af1b66
Update csrc/py_itfs_ck/mha_fwd_kernels.cu
LJ-underdog 0bcfcd3
Update csrc/py_itfs_ck/mha_varlen_fwd_kernels.cu
LJ-underdog b6f92c8
Merge branch 'main' into lj_sink
LJ-underdog 87f99c6
add some comments
LJ-underdog d4062ca
Update mha_fwd_generate.py
LJ-underdog a548de2
Clarify sink_size parameter in asm_mha_varlen_fwd.cu
LJ-underdog ad5abd8
Merge branch 'main' into lj_sink
LJ-underdog 1d4a1b3
Merge branch 'main' into lj_sink
LJ-underdog 4d4394c
Merge branch 'main' into lj_sink
LJ-underdog 0fa5a7c
update ck commit
LJ-underdog 57db2b7
Merge branch 'main' into lj_sink
LJ-underdog a39061c
Merge branch 'main' into lj_sink
gyohuangxin 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
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
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.