You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Kimi-K3 router GEMM ran on hipBLASLt at 11.3 us (M=56); FlyDSL split-K, the fastest kernel for it, only reached 10.8. The FlyDSL GEMM loop is fine and the loss is in the split-K protocol. This PR fixes the protocol and retunes the
Kimi-K3 router and KDA in_proj rows.
The owner workgroup zero-filled C and waited (vmcnt(0) + barrier) before its first A/B load, so it started
1-2k cycles late and finished last. The zero-fill now goes out behind the priming loads and completes with the
first stage.
Every workgroup ended with a device-scope semaphore RMW with return, a wait, and a reset by the last arriver.
Replaced by one int64 ticket RMW per workgroup at kernel start (latency hidden under the K loop). Semaphore
buffers are keyed by split_k and never reset, so a tile's word advances by split_k per launch and ticket // split_k is the launch index; the owner tags the signal with it, the other splits spin for that tag.
The atomics added 4 contiguous dwords per lane: one wave-level atomic touched 16 cache lines with 4 lanes each,
four read-modify-write passes per line. Lanes now walk consecutive elements (one fp32 or one bf16/fp16 pair), so
each atomic instruction covers whole 64 B lines.
Kernel name suffix _ksd -> _kst4 (FlyDSL's disk cache ignores kernel bodies).
kimik3_bf16_tuned_gemm.csv: 7 fp32 router rows (N=896, M 56-144) replaced; in_proj bf16 rows (N=6288) M 64-128
replaced, M=56 added. No duplicate keys against the other merged bf16 tables.
ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm
vLLM benchmark: DeepSeek-V4-Pro, MiniMax-M3-MXFP4
ci:all
All standard extended tests (excludes ci:atom_full)
Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 6494 --add-label <label>
One backend per PR:
A PR changes one kernel backend: [Triton/Gluon] (Triton and Gluon count as one), [HIP], [ASM], [CK], [OPUS] or [FlyDSL]. If the title ends up with two backend tags, split the PR -- as stacked pull requests when one part cannot merge without the other.
PR title tags & labels:
Component tags ([Triton/Gluon], [HIP], [CK], [ASM], ...) are added to the PR title and as PR labels automatically from the changed files and re-synced on every push — change-type tags like [fix]/[Perf], op tags like [MLA], and human labels (ci:*) are left untouched. Add the no-auto-title label to stop the title rewrites; labels stay in sync either way.
github-actionsBot
changed the title
[FlyDSL] Cheaper split-K epilogue in gfx950 a16w16 + Kimi-K3 router/in_proj retune
[HIP] [FlyDSL] Cheaper split-K epilogue in gfx950 a16w16 + Kimi-K3 router/in_proj retune
Oct 13, 2026
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
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.
Motivation
The Kimi-K3 router GEMM ran on hipBLASLt at 11.3 us (M=56); FlyDSL split-K, the fastest kernel for it, only reached 10.8. The FlyDSL GEMM loop is fine and the loss is in the split-K protocol. This PR fixes the protocol and retunes the
Kimi-K3 router and KDA in_proj rows.
Includes the fp32-output staging fix of #6005.
Technical Details
gemm_a16w16_gfx950_utils.py/gemm_a16w16_gfx950.py(both kernel variants), split-K path only:vmcnt(0)+ barrier) before its first A/B load, so it started1-2k cycles late and finished last. The zero-fill now goes out behind the priming loads and completes with the
first stage.
Replaced by one int64 ticket RMW per workgroup at kernel start (latency hidden under the K loop). Semaphore
buffers are keyed by
split_kand never reset, so a tile's word advances bysplit_kper launch andticket // split_kis the launch index; the owner tags the signal with it, the other splits spin for that tag.four read-modify-write passes per line. Lanes now walk consecutive elements (one fp32 or one bf16/fp16 pair), so
each atomic instruction covers whole 64 B lines.
_ksd->_kst4(FlyDSL's disk cache ignores kernel bodies).kimik3_bf16_tuned_gemm.csv: 7 fp32 router rows (N=896, M 56-144) replaced; in_proj bf16 rows (N=6288) M 64-128replaced, M=56 added. No duplicate keys against the other merged bf16 tables.
Server command (c14):
Bench:
Test Result
New rows vs the previous rows re-timed on the new kernel (us):
Serving traces
in_proj, N=6288 K=7168routed_expert_down_proj, N=3584 K=7168gate_up_proj, N=1536 K=7168fused_qkv_a_proj, N=2112 K=7168Bench:
gsm8k
Base:
|gsm8k| 3|flexible-extract| 5|exact_match|↑ |0.953 |± |0.0058|
| | |strict-match | 5|exact_match|↑ |0.953 |± |0.0058|
spec decode over gsm8k: acceptance 76.04% acceptance length 3.281 (accepted 96054 / draft tokens 126321, 42107 drafts)
PR:
|gsm8k| 3|flexible-extract| 5|exact_match|↑ |0.9500|± | 0.006|
| | |strict-match | 5|exact_match|↑ |0.9507|± | 0.006|
spec decode over gsm8k: acceptance 78.68% acceptance length 3.360 (accepted 96537 / draft tokens 122700, 40900 drafts)
GPQA Diamond
Base:
|gpqa_diamond_cot_zeroshot| 2.2|flexible-extract| 0|exact_match|↑ |0.8737|± |0.0237|
| | |strict-match | 0|exact_match|↑ |0.0000|± |0.0000|
PR:
|gpqa_diamond_cot_zeroshot| 2.2|flexible-extract| 0|exact_match|↑ |0.8788|± |0.0233|
| | |strict-match | 0|exact_match|↑ |0.0000|± |0.0000|
AIME25
Submission Checklist