Repository navigation
Conversation
vLLM runs the non-preshuffled op on gfx950, where this table had gfx942 rows only. 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: |
READY FOR HUMAN REVIEWPR Self-ReviewRevision Author self-review accepted. Readiness report: Author answers
Show the author's self-review answersBehavior and intentValidation and unverified scopePR-specific questionChanged op testsPR state
Copilot findings
Code and op-test hygiene
Required CI
Shadow mode reports what would block but keeps the status successful. Set |
There was a problem hiding this comment.
🟡 Changes recommended
The new gfx950 rows lack benchmarks against main’s actual Triton fallback and may mishandle incompatible operand or scale layouts.
2 open issues
What changed in this PR
Adds gfx950 tuning coverage for Qwen3-14B-FP8’s non-preshuffled blockscale GEMM path used by vLLM, complementing the existing preshuffled tunings.
Changes:
- Adds 72 rows for 256-CU gfx950 GPUs across four TP1 projection shapes, with M values from 1 to 8192.
- Selects CK and CKTile kernels, including split-K configurations.
- Leaves existing gfx942 rows unchanged.
| File | Description |
|---|---|
aiter/configs/model_configs/a8w8_blockscale_tuned_gemm_qwen3_14b.csv |
Adds gfx950 kernel selections and tuning metrics for Qwen3-14B-FP8. |
Review effort: Balanced
… blockscale rows Signed-off-by: xiaofei.zheng <[email protected]>
… main's dispatch, with FlyDSL Signed-off-by: xiaofei.zheng <[email protected]>
…s in gemm_a8w8_blockscale Signed-off-by: xiaofei.zheng <[email protected]>
…r dispatch tests in CI Signed-off-by: xiaofei.zheng <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The new FlyDSL row mishandles E5M2 and numeric int8 operands on gfx950 because the operand-format guard is missing, and regression cases for both formats are needed.
4 open issues
2 resolved since last review
Review effort: Balanced
Signed-off-by: xiaofei.zheng <[email protected]>
Signed-off-by: xiaofei.zheng <[email protected]>
There was a problem hiding this comment.
🔵 Needs a closer look
The gfx950 tuning additions and cross-architecture FP16 split-K changes still need GPU correctness and performance validation using CK/CK-Tile modules built from this revision, since supplied results used older prebuilt modules.
1 open issue
1 resolved since last review
Review effort: Balanced
Signed-off-by: xiaofei.zheng <[email protected]>
There was a problem hiding this comment.
🔵 Needs a closer look
Reported checks used older binaries, leaving GPU numerical and performance validation against source-built head CK/CK-Tile modules unverified for the new gfx950 rows and FP16 split-K changes affecting existing cross-architecture dispatch.
1 open issue
Review effort: Balanced
|
@demonsan Could you take a look? Two open questions:
The red CI is infrastructure: the py3.12 wheel build could not pull the docker.io/rocm/pytorch image, so no test ran. The last complete run, on 6f36d03, passed. |
There was a problem hiding this comment.
🔵 Needs a closer look
The cross-architecture FP16 split-K changes and gfx950 tuning rows still require GPU correctness and performance validation against main-built CK/CK-Tile modules, which static review and older-build results cannot establish.
1 open issue
Review effort: Balanced


Summary
On gfx950 (MI355X,
cu_num=256),gemm_a8w8_blockscalehas no tuned rows for Qwen3-14B-FP8's four TP1 linear shapes. Main therefore runs the CK default instance below M=384 and Triton from M=384 on (#5586). This PR adds 69 rows for those shapes, plus the untuned list they were tuned from. It also runs split-K rows without split-K for output other than BF16.Motivation
On gfx950, vLLM's
AiterFp8BlockScaledMMKernelcalls the non-preshuffledgemm_a8w8_blockscale.a8w8_blockscale_tuned_gemm_qwen3_14b.csvholds only the gfx942 rows from #5839. #6862 and #6898 tuned the bpreshuffle table, which is the one SGLang uses.Changes
a8w8_blockscale_tuned_gemm_qwen3_14b.csv: 69 gfx950 rows, of which 47 are CK, 9 CK-Tile and 13 FlyDSL, and 36 use split-K. The gfx942 rows do not change.a8w8_blockscale_untuned_gemm_qwen3_14b.csv(new): the four shapes at M = 1, 2, 4, 8, 16, 32, 48, 64, 80, 96, 112, 128, 256, 512, 1024, 2048, 4096 and 8192.gemm_a8w8_blockscale_tune.pywith--libtype both(run with and without--splitK) and with--libtype flydsl. The tuner's profiler times for split-K candidates are sometimes far too low. I therefore re-timed each shape's 8 fastest candidates with CUDA graphs over cold inputs, against main's own dispatch, and kept a row only if it was at least 3% faster. I left out CK-Tile split-K candidates.oanddownat M=512, where Triton is faster;qkvat M=512, because M=384 pads onto that row and Triton is faster at M=384.gemm_a8w8_blockscale: for output other than BF16, a split-K CK or CK-Tile row now runs its kernel with splitK=0 and logs one warning per (N, K, dtype). Split-K adds its partial sums atomically in the output dtype, which can overflow FP16 and return NaN. The kernel itself handles FP16, so only split-K is dropped; the row keeps its backend and that backend's stride handling. This also covers the 810 split-K rows already on main.op_tests/test_gemm_a8w8_blockscale_fallback.py: 4 dispatch cases for this change, plus thepytest.mainentry that the other pytest-style op tests have. Without that entry,aiter_test.shran none of this file's cases.Performance (if applicable)
GEMM speedup through main's production op on one MI355X GPU. Each cell compares main's tables against main's tables plus these rows, timed with CUDA graphs over cold inputs, and gives the range over the tuned M values in that bucket:
I also timed 98 padded M values from 3 to 16384 that reach a row; all of them fall within the range of this table. The other padded M values keep main's dispatch.
End to end, the two servers differ only in
AITER_CONFIG_GEMM_A8W8_BLOCKSCALE: main's tables, or main's tables plus these rows. Each arm ran on 8 servers over 4 rounds, and the arms swapped GPUs between rounds.VLLM_ROCM_USE_AITER=1and this branch's aiter Python; Qwen3-14B-FP8,--kv-cache-dtype fp8; 320 random prompts, 1024 in / 1024 out, concurrency 64; output throughputTesting
The rows are gfx950-only, so testing was done on MI355X.
Documentation
The
gemm_a8w8_blockscaledocstring now states that split-K rows run without split-K for output other than BF16.Dependencies
Breaking Changes
None.
PR Self-Review
Reviewed revision
6910f67
Behavior and intent
On gfx950 with
cu_num=256, lookups for these four (N, K) pairs now hit tuned rows instead of main's untuned dispatch. The exception is M=257–512 for qkv, o and down, which keeps main's dispatch.In every table, a split-K CK or CK-Tile row runs without split-K for output other than BF16, and every other call dispatches as before. Operand dtype is not part of the blockscale key, so these rows, like the existing ones, assume E4M3 operands.
Validation and unverified scope
op_tests/tuning_tests/test_csv_validation.py(19 passed) andtest_config_shape_collision.py(30 passed). I merged the rows with all 18 non-preshuffled tables main reads, and no key is duplicated.python3 op_tests/test_gemm_a8w8_blockscale_fallback.py, run the wayaiter_test.shruns it: 15 passed. The 4 new cases fail without the dispatch change.test_run_config.py, which needs main built from source;test_gemm_a8w8_blockscale.py, which stops at a CK-Tile split-K case in this environment, with or without this PR;PR-specific question
The keys are
(gfx950, 256, M, N, K)for the four (N, K) pairs at the untuned M values, except M=512 for qkv, o and down. Throughget_padded_m, every M for gate_up resolves to one of these rows, and so does every M outside 257–512 for the other three layers. An M above 8192 resolves to the M=8192 row.Lookups match N and K exactly, so other shapes cannot reach these rows. I ran
get_CKGEMM_configwith and without the rows over all 137 (N, K) pairs in main's tables, at every M from 1 to 1024 and at powers of two up to 32768. None of the 136,857 lookups for other pairs changed.test_config_shape_collision.pyconfirms that no other table has these keys.Changed op tests
test_gemm_a8w8_blockscale_fallback.pyreplaces the backends with recorders and pins which onegemm_a8w8_blockscalereaches.test_gemm_a8w8_blockscale_drops_split_k_for_fp16checks CK and CK-Tile split-K rows on both sides of the threshold. FP16 output runs the row with splitK=0, and BF16 output keeps its split-K.pytest.mainentry is what makes CI run the file at all.Hyperloom found the gap while optimizing
Qwen/Qwen3-14B-FP8on MI355X.Powered by Hyperloom, with human review, writing and testing.