Repository navigation
[Config] Add ASM split-K rows to gfx950 a8w8 blockscale bpreshuffle tunings for Qwen3-14B-FP8 - #6898
Conversation
…unings for Qwen3-14B-FP8 Retuned with --splitK, which ROCm#6862 left out, so its ASM candidates only ran at splitK=1. Signed-off-by: xiaofei.zheng <[email protected]>
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
There was a problem hiding this comment.
🟡 Changes recommended
The new ASM selections expose FP16-output incompatibility and unsafe initialization of row-strided output buffers.
2 open issues
What changed in this PR
This PR extends the earlier Qwen3-14B-FP8 tuning work with split-K selections for gfx950 GPUs, targeting faster decode GEMMs through aiter’s existing dispatch tables.
Changes:
- Updates 104 shape configurations, primarily to ASM kernels with split-K enabled.
- Updates shared shapes in the Qwen3.8-27B table without duplicating configuration keys.
- Adds 17 previously untuned keys while leaving rows above M=512 unchanged.
| File | Description |
|---|---|
aiter/configs/model_configs/a8w8_blockscale_bpreshuffle_tuned_gemm_qwen38_27b.csv |
Updates 20 shared down- and gate-up-projection configurations. |
aiter/configs/model_configs/a8w8_blockscale_bpreshuffle_tuned_gemm_qwen3_14b.csv |
Replaces 67 configurations and adds 17 keys for decode-oriented tuning. |
Review effort: Balanced
|
@yifehuan Could you review this when you have time? These rows are faster than what current main dispatches for Qwen3-14B-FP8 on gfx950: +8.8% SGLang output throughput end to end. The kernel timings, end-to-end numbers and test results are in the description. Thanks! |
|
Both Copilot findings are real, but they already exist on current main. This PR only changes which rows hit them:
Both are launcher/dispatch issues rather than table issues, so I'd keep this PR config-only. If needed, I can open a separate PR to fix them: honour the output stride in CK and in the split-K memset, and fall back to CK for non-BF16 output on ASM rows. |
|


Problem
#6862 tuned the four block-FP8 linear shapes of Qwen3-14B-FP8 (TP1, gfx950,
cu_num=256) without--splitK. Without that flag the tuner runs every ASMfp8gemm_bf16_blockscale_BpreShufflekernel at splitK=1 only, and the CK bpreshuffle path has no split-K at all, so the decode rows ended up on CK tiles. At decode M these GEMMs read the whole weight but launch few workgroups.down_proj(K=17408) is hit hardest.Change
These rows come from the same tuner command and untuned list as #6862, with
--splitKadded, run on main (ddf072f) on one MI355X node:The pre-run baseline is main's merged tables, #6862 included. 104 of the 268 shapes beat main by at least 3%: 101 ASM rows (98 with splitK 2–6) and 3 CK rows. No shape above M=512 cleared the bar, so the prefill rows stay as they are.
gate_upanddownshare their shapes with Qwen3.8-27B, andtest_config_shape_collision.pyrejects a key that appears in two tables. Their 20 keys already ina8w8_blockscale_bpreshuffle_tuned_gemm_qwen38_27b.csvare therefore replaced in that file, which gives Qwen3.8-27B TP1 the same speedup. The 17 added keys are M values neither table had before, which main padded onto a neighbouring row.Production-op times from the tuner's pre-run and post-run, in µs:
Split-K ASM accumulates with atomics, so
errRatiois up to 0.0149 instead of 0. That is below the tuner's 0.05 rejection threshold, and the dsv3 table on main already carries 196 such rows at up to 0.0227.Verification
op_tests/tuning_tests/test_csv_validation.pyandtest_config_shape_collision.py: 45 passed.test_run_config.py::TestRunConfig::test_a8w8_blockscale_bpreshuffle, which runs every merged row through the production op: passed.--kv-cache-dtype fp8_e4m3 --mem-fraction-static 0.8 --disable-radix-cache, 320 random prompts at 1024 in / 1024 out, concurrency 64. Each run is a fresh server on its own GPU, and the second of two benchmark passes is reported. The two arms differ only inAITER_CONFIG_GEMM_A8W8_BLOCKSCALE_BPRESHUFFLE: main's tables, or main's tables with this change.Founded by Hyperloom