Skip to content

[Config] [Perf] MiniMax-M3.1 TP2 MXFP8 GEMM: qkv_proj rows and 8-wave picks at large M on gfx950 - #8191

Draft
vorapolsiloai wants to merge 2 commits into
ROCm:mainfrom
vorapolsiloai:m31/minimax-m3-tp2-mxfp8-gemm-tuned
Draft

vorapolsiloai wants to merge 2 commits into
ROCm:mainfrom
vorapolsiloai:m31/minimax-m3-tp2-mxfp8-gemm-tuned

Conversation

@vorapolsiloai

@vorapolsiloai vorapolsiloai commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

MiniMax-M3.1 TP2 MXFP8 GEMM table: adds 18 qkv_proj rows (N=4992, K=6144) that vLLM otherwise serves with its Triton fallback, and moves 10 large-M rows from FlyDSL bmm to the 8-wave MXFP8 kernel. Output is bit-identical; no code change.

MI350X MiniMax-M3.1-Flash TP2 output tok/s: qkv rows +1.87% (std), +2.41% (DSpark K=7); 8-wave picks a further +1.82%, +1.84%. MI355X: 8-wave rows 0.4% to 22.8% faster at all 40 served M; no end-to-end A/B on MI355X for them.

Full summary

MiniMax-M3.1 at TP2 runs four dense MXFP8 GEMMs per layer through gemm_a8w8_blockscale_bpreshuffle, which reads the e8m0 mxscale table. This PR adds the 18 rows that table lacks for the fused qkv + indexer projection (N=4992, K=6144, which vLLM otherwise serves with its Triton fallback) and moves 10 large-M rows (7 existing o_proj, shared-expert gate_up and down rows, and 3 of the new qkv rows) from FlyDSL bmm kernels to the FlyDSL 8-wave MXFP8 GEMM: 4.8% to 22.8% faster at each row's M on MI355X (8.5% to 23.7% on MI350X), with bit-identical output.
MI350X, MiniMax-M3.1-Flash TP2, 8 image workloads, output tok/s: qkv rows +1.87% (std) and +2.41% (DSpark K=7); 8-wave picks a further +1.82% and +1.84%. MI355X end to end: qkv rows +1.8% (4 rows, pooled) and +0.4% (8 rows, inside a 2.3% A/A spread). MI355X kernel check: all 40 served M of the 8-wave picks are faster (0.4% to 22.8%); there is no end-to-end A/B for the 8-wave picks on MI355X.

Motivation

Without a table row, vLLM's mxfp8 linear kernel skips the shape. At M 2048 to 16384 these GEMMs are compute bound (36% to 50% of MXFP8 peak with the 8-wave picks); below M of about 300 the qkv weight read bounds them.

Why the table path, roofline, earlier tuner rows
  • vLLM main's AiterFlyDSLMxfp8LinearKernel takes a shape only if get_mxscale_bpreshuffle_config(m, N, K, "1x32") has a row at M = 1 and M = 8192 (vllm/_aiter_ops.py, is_mxfp8_bpreshuffle_gemm_tuned), and runs it through aiter.gemm_a8w8_blockscale_bpreshuffle, which for E8M0 1x32 scales calls _gemm_mxscale_bpreshuffle and reads this table (aiter/ops/gemm_op_a8w8.py). The ..._a8w8_mxfp8_bpreshuffle_tuned_gemm.csv table is not read on this path (as [Config] [Perf] MiniMax-M3.1 MXFP8 GEMM tunings (gfx950) #7772 states). No table on main has a row for (4992, 6144), so vLLM runs RocmDotScaledMxfp8LinearKernel there.
  • At the M of the 10 moved rows (2048 to 16384) these GEMMs are compute bound (arithmetic intensity 1.3k to 3.4k FLOP/B against a roofline ridge of about 0.58k FLOP/B; MI350X: 4614 TFLOP/s MXFP8, 8 TB/s), so the tile choice sets the time. The new 8-wave picks reach 36% to 47% of the MXFP8 peak on MI350X and 38% to 50% on MI355X (5033 TFLOP/s) at the rows' M. For qkv below M of about 300 the 30.7 MB weight read bounds the time (3.8 us at 8 TB/s): the new rows run at 63% to 65% of that bandwidth at M = 1 to 16 on MI355X, 53% at M = 32, and 22% to 37% at M = 64 to 256, where latency limits them.
  • Main's table already uses the 8-wave kernel where the repo tuner ([HIP] [FlyDSL] tune bmm and mxfp8 together ,update related tuned csv #7439, bmm and mxfp8 candidates together) chose it: 9 rows, at M = 16384 and 32768 for (6144, 6144) and (2560, 6144) ([Config] configs: add MiniMax-M3.1 gfx950 GEMM tuning #7498; its us is 9.0% to 11.3% below the bmm rows it replaced) and at M = 8320 for six other shapes ([Config] Add M=8320 MiniMax-M3 MXFP8 GEMM rows for gfx950 #7829). The 7 existing rows this PR moves were added by [HIP] [OPUS] [FlyDSL] gfx950 MXFP8 bmm: 1x32 weight scales, grouped XCD order, MiniMax-M3 configs #6060, a bmm-only sweep made before the 8-wave kernel was a candidate.

Changes

minimax_m3_a8w8_blockscale_mxscale_bpreshuffle_tuned_gemm.csv: 18 rows appended, 10 rows changed in place (bmm to mxfp8). The rows come from a local FlyDSL sweep, not the tuner.

Rows, previous and new kernels, how chosen

aiter/configs/model_configs/minimax_m3_a8w8_blockscale_mxscale_bpreshuffle_tuned_gemm.csv, two commits, no code change. Net against main: 18 rows added, 7 rows changed.

  1. 18 rows appended (as [Config] Add M=8320 MiniMax-M3 MXFP8 GEMM rows for gfx950 #7829 did) for (N=4992, K=6144): gfx950, cu_num 256, 1x32, flydsl bmm, M = every power of 2 from 1 to 32768 plus 12288 and 24576. 9 of the 10 kernel names are already in the file; the new tile is flydsl_bmm_mxfp8_mfma_t32x64x256_w1x4_nb6_sk2_bd2 (M=32). Source: a local FlyDSL bmm sweep on MI355X (amd-aiter 0.1.28.post1, 2026-11-10); the cells come from that sweep, not from the tuner.
  2. 10 rows changed in place (kernelId bmm -> mxfp8, same keys; 7 rows from [HIP] [OPUS] [FlyDSL] gfx950 MXFP8 bmm: 1x32 weight scales, grouped XCD order, MiniMax-M3 configs #6060, 3 from item 1): o_proj M=8192 and 16384; shared gate_up M=4096, 8192, 16384; shared down M=8192 and 16384; qkv_proj M=2048, 8192, 16384.

The 10 rows (previous and new kernel, gains), how they were chosen, and what the cells are

projection (N, K) M previous kernel (flydsl_bmm_mxfp8_mfma_...) new kernel (flydsl_mxfp8_8w_256x256x128_F8_F8_B16_...) faster over the M served (MI350X) faster at the row's M (MI355X)
o_proj (6144, 4096) 8192 t256x256x128_w1x4_nb2_sk1_bd1_xcd4 3x4 12.2% 6.5%
o_proj (6144, 4096) 16384 t256x256x128_w1x4_nb2_sk1_bd1_xcd4 1x8 10.2% 6.2%
shared gate_up (3072, 6144) 4096 t256x192x128_w1x4_nb3_sk1_bd2_xcd4_sps 4x4 11.2% 9.6%
shared gate_up (3072, 6144) 8192 t128x256x128_w1x4_nb3_sk1_bd2_xcd4 1x4 11.5% 4.8%
shared gate_up (3072, 6144) 16384 t256x256x128_w1x4_nb2_sk1_bd1_xcd4 4x8 18.5% 12.9%
shared down (6144, 1536) 8192 t256x256x128_w1x4_nb2_sk1_bd1_xcd4 1x4 14.1% 9.6%
shared down (6144, 1536) 16384 t256x256x128_w1x4_nb2_sk1_bd1_xcd4 3x4 8.5% 7.6%
qkv_proj (4992, 6144) 2048 t256x192x128_w1x4_nb2_sk1_bd1_xcd4 2x0 13.7% 8.8%
qkv_proj (4992, 6144) 8192 t192x192x128_w1x4_nb3_sk1_bd2_xcd 2x4 19.7% 19.2%
qkv_proj (4992, 6144) 16384 t192x192x128_w1x4_nb3_sk1_bd2_xcd 2x4 23.7% 22.8%

How the 10 rows were chosen (MI350X, 1 GPU, amd-aiter 0.1.28.post1, 2026-11-14): for each row, the M values of MiniMax-M3.1 serving that the lookup maps to it (for the o_proj 8192 row: 4349 to 14464). Each candidate config gets its own CUDA graph of 20 calls on the same operands; 7 rounds in shuffled order; median; each output compared bit for bit with the current pick. A row moves only if its summed time is at least 3% lower and no M is more than 1% slower. On MI350X every M of the 10 rows is 7% or more faster. On MI355X (check below) every one of the 40 served M is faster, 0.4% to 22.8%; the shared gate_up 8192 row is the thinnest (+18.4% at M=4349, +0.4% at 5440, +2.0% at 7232, +4.8% at 8192; 5.3% lower summed over its four M). The other 6 rows at M >= 2048 stay on bmm. Cells: us, tflops, bw and errRatio of the 10 rows come from the MI355X check below at the row's M, not from the tuner: us is the median of 7 rounds of a 20-call CUDA graph, tflops = 2MNK/us, bw = (MK + NK + 2MN)/us in GB/s (as in the qkv rows), errRatio the fraction of outputs outside isclose(rtol=1e-2, atol=1e-2) of the bf16 reference of the dequantized operands (the 7 rows replaced carried 0.0). They do not compare with the cells of tuner rows.

Performance (if applicable)

Not claimed: no MI355X end-to-end A/B isolates the 8-wave rows; the rows are not tuner output; nothing ran on main's code (amd-aiter 0.1.28.post1 only).

Table, commands, MI355X kernel check

MiniMax-M3.1-Flash (amd/MiniMax-M3.1-Flash-Quark-MXFP4), vLLM TP2, the 8 image rows (one image per request, ISL 256 to 8192, OSL 64, c4 to c256), A B B A on one GPU pair, output tok/s, geomean over the 8 rows of the arm means. A = vLLM nightly 083fbac0 + #65995 #64928 #65016 #64930 #65479 with amd-aiter 0.1.28.post1; B = A + the rows. The 8-wave step is measured on top of the qkv rows.

Hardware Workload/configuration Before After Change
MI350X qkv rows, std (no speculative decoding), 8 rows 433.2 441.3 +1.87% (A2/A1 +0.39%)
MI350X qkv rows, DSpark K=7 speculative decoding, 8 rows 465.6 476.8 +2.41% (A2/A1 -0.29%)
MI350X 8-wave rows (on the qkv rows), std, 8 rows 458.2 466.5 +1.82% (A2/A1 -0.08%)
MI350X 8-wave rows (on the qkv rows), DSpark K=7, 8 rows 477.1 485.9 +1.84% (A2/A1 -0.22%)
MI355X qkv rows, std, 4 rows (s14 s15 s17 s20), two lanes pooled - - +1.8% (second lane alone +2.8%; every row positive)
MI355X qkv rows, std, 8 rows (two lanes) - - +0.4% (A/A spread 2.3%)
MI355X kernel check: qkv rows against the bmm heuristic AITER picks for an untuned shape, 18 rows at their M - - 3.9% to 51.0% faster at every row (vLLM itself ran its Triton fallback here; not timed)
MI355X kernel check: 8-wave rows against the bmm kernels they replace, 40 served M - - 0.4% to 22.8% faster at every M, outputs bit-identical
  • Not claimed: no MI355X end-to-end A/B isolates the 8-wave rows; the rows and their cells are not tuner output; the MI355X check ran this branch's table on amd-aiter 0.1.28.post1, nothing ran on main's code (FlyDSL 0.5.0).

Per-row results, commands and the MI355X kernel check

  • qkv rows, MI350X std per row: s13 -5.1%, s14 +2.3%, s15 +2.9%, s16 +3.3%, s17 +3.6%, s18 +1.7%, s20 +3.0%, s21 +3.5%. s13 lost because both B arms compiled one FlyDSL tile in the measured window (max ITL 1285 ms against 556 ms); a warm JIT cache removes this, and the DSpark lane had no such compile.
  • qkv rows, MI355X 8-row lane: gains of +2.0% to +4.3% on s14 s15 s16 s18 s20 s21, but s13 -9.8% (against one A cell) and s17 -4.5% (both B arms); neither is explained.
  • 8-wave rows, MI350X: std s17 +4.9%, s21 +4.1%, s20 +3.1%; DSpark s20 +3.9%, s21 +4.0%. Rows that did not gain: std s13 -1.8% (that row's A/A is -0.9%, B/B +1.0%), s15 +0.4%, s18 +0.4%; DSpark s13 -0.3%, s15 -0.1%. No new tile compiled in a measured window.
  • MI355X kernel check (tables below): 17 of the 18 qkv rows give the same bits as the bmm heuristic; at M=64 the output differs (another split-K tile; error ratio against the bf16 reference 0.074% against 0.075%). All 40 points of the 8-wave picks give the same bits as the kernel they replace; their error ratio against the bf16 reference is 0.046% to 0.073% at the 10 row M.
# server (qkv lanes: QR INT4; 8-wave lanes: QR INT3 and VLLM_ROCM_ROUTER_SPLITK=0; B adds only the table)
VLLM_ROCM_USE_AITER=1 VLLM_ROCM_USE_AITER_MOE=1 VLLM_ROCM_USE_AITER_FUSION_SHARED_EXPERTS=0 \
VLLM_ROCM_QUICK_REDUCE_QUANTIZATION=INT4 VLLM_ROCM_VIT_FP8_PAD_HEAD_DIM=128 VLLM_DBO_TP_DMA_AR=1 \
VLLM_WORKER_MULTIPROC_METHOD=spawn SAFETENSORS_FAST_GPU=1 \
vllm serve amd/MiniMax-M3.1-Flash-Quark-MXFP4 --tensor-parallel-size 2 --trust-remote-code --block-size 128 \
  --disable-hybrid-kv-cache-manager --kv-cache-dtype nvfp4 --max-model-len 133120 --max-num-seqs 256 \
  --max-num-batched-tokens 32768 --gpu-memory-utilization 0.9 --no-enable-prefix-caching \
  --limit-mm-per-prompt '{"image": 1}' --mm-processor-cache-gb 0 --mm-encoder-tp-mode data \
  --tool-call-parser minimax_m3 --enable-auto-tool-choice --reasoning-parser minimax_m3 --moe-backend aiter \
  --attention-config '{"indexer_kv_dtype": "nvfp4", "indexer_decode_cp": true}' --mm-encoder-attn-dtype fp8 \
  --renderer-num-workers 8 --enable-shm-tensor-arena --shm-tensor-arena-slots 128 --shm-tensor-arena-slot-mb 48 \
  --enable-dbo --dbo-prefill-token-threshold 8192 --dbo-decode-token-threshold 32768

# client, per row (s13..s21 differ in resolution, ISL, concurrency and seed)
python -m sglang.bench_serving --backend sglang-oai-chat --dataset-name image --image-count 1 \
  --image-resolution 768x1024 --random-input-len 1024 --random-output-len 64 --random-range-ratio 0.8 \
  --max-concurrency 16 --num-prompts 96 --warmup-requests 16 --request-rate inf --seed 14 \
  --model amd/MiniMax-M3.1-Flash-Quark-MXFP4
# rows: s13 512x512 ISL1024 c16; s14 768x1024 ISL1024 c16; s15 2048x1600 ISL1024 c16; s16 768x1024 ISL256 c16;
#       s17 768x1024 ISL8192 c16; s18 c4 (32 prompts); s20 c64 (256 prompts); s21 c256 (768 prompts)

MI355X kernel check (one GPU, gfx950, 256 CUs, torch 2.13.0+rocm10.0.0, amd-aiter 0.1.28.post1). Operands as the tuner's generate_data (fp8 around N(0, 2), e8m0 1x32 scales 2^-3 to 2^3, weight preshuffled (16, 16)). Old = the production path under the previous table; new = the kernel the new row names, called directly. Production lookups under the branch table returned the named kernel at all 58 probes (18 qkv row M and 40 served M); under main's table 18 qkv probes and 13 of the 40 served probes have no row.

# AITER_CONFIG_GEMM_A8W8_BLOCKSCALE_MXSCALE_BPRESHUFFLE = the old table's CSV (main's, or this branch's first commit)
old = lambda: aiter.ops.gemm_op_a8w8._gemm_mxscale_bpreshuffle(x, w_shuf, x_scale, w_scale, out_old)
new = lambda: run_gemm_a8w8_mxfp8_gfx950(x, w_shuf, x_scale, w_scale, out_new, kernel_name, "1x32")  # kernelId mxfp8
# (a bmm row: run_bmm_a8w8_mxfp8 on the (M,1,K) x (1,N,K) views with kernel_name=...)
# each callable: one CUDA graph of 20 calls; 7 rounds in shuffled order; median; torch.equal(out_old, out_new)
# errRatio = (~torch.isclose(out, F.linear(deq(x), deq(w)).bfloat16(), rtol=1e-2, atol=1e-2)).float().mean()

The in-tree equivalent that also writes the CSV is the tuner (--compare, command under Testing).

Part 1, the 18 qkv rows (4992, 6144) at their M, row against the bmm heuristic:

M kernel (flydsl_bmm_mxfp8_mfma_...) heuristic us row us faster TFLOP/s (% of 5033) HBM GB/s (% of 8000)
1 t16x32x512_w1x2_nb6_sk1_bd2_xcd 9.07 5.86 35.4% 10 (0.2%) 5237 (65%)
2 t16x32x512_w1x2_nb6_sk1_bd2_xcd 9.11 5.90 35.2% 21 (0.4%) 5204 (65%)
4 t16x32x512_w1x2_nb6_sk1_bd2_xcd 9.13 5.96 34.7% 41 (0.8%) 5157 (64%)
8 t16x32x512_w1x2_nb6_sk1_bd2_xcd 9.14 6.00 34.4% 82 (1.6%) 5133 (64%)
16 t16x32x512_w1x2_nb6_sk1_bd2_xcd 9.18 6.10 33.6% 161 (3.2%) 5070 (63%)
32 t32x64x256_w1x4_nb6_sk2_bd2 8.85 7.40 16.4% 265 (5.3%) 4214 (53%)
64 t64x64x128_w1x4_nb6_sk2_bd2 14.27 10.69 25.1% 367 (7.3%) 2966 (37%)
128 t48x64x256_w1x4_nb6_sk1_bd2_xcd 21.50 16.43 23.6% 478 (9.5%) 1992 (25%)
256 t96x64x128_w1x4_nb6_sk1_bd2_xcd 41.01 20.15 50.9% 779 (15.5%) 1727 (22%)
512 t96x128x128_w1x4_nb4_sk1_bd2_xcd4 41.19 26.75 35.1% 1174 (23.3%) 1455 (18%)
1024 t96x128x128_w1x4_nb3_sk1_bd2_xcd4 82.59 40.46 51.0% 1552 (30.8%) 1166 (15%)
2048 t256x192x128_w1x4_nb2_sk1_bd1_xcd4 111.69 73.05 34.6% 1720 (34.2%) 872 (11%)
4096 t96x128x128_w1x4_nb3_sk1_bd2_xcd4 170.76 142.42 16.6% 1764 (35.1%) 679 (8%)
8192 t192x192x128_w1x4_nb3_sk1_bd2_xcd 288.80 277.65 3.9% 1810 (36.0%) 586 (7%)
12288 t256x192x128_w1x4_nb3_sk1_bd2_xcd4_sps 454.26 374.11 17.6% 2015 (40.0%) 612 (8%)
16384 t192x192x128_w1x4_nb3_sk1_bd2_xcd 578.89 510.24 11.9% 1970 (39.1%) 578 (7%)
24576 t192x192x128_w1x4_nb3_sk1_bd2_xcd 885.83 771.33 12.9% 1954 (38.8%) 554 (7%)
32768 t256x192x128_w1x4_nb3_sk1_bd2_xcd4_sps 1176.47 1035.78 12.0% 1941 (38.6%) 540 (7%)

Part 2, the 10 8-wave rows at every served M (percent faster than the replaced bmm kernel, bits identical at all 40):

row (N, K, M: kernel 8w ...) faster at each served M (M: %)
o_proj (6144, 4096) M=8192: 8w 3x4 4349: 10.8, 5440: 10.8, 7232: 7.4, 8192: 6.5, 9040: 9.3, 12032: 8.5, 14464: 7.9
o_proj (6144, 4096) M=16384: 8w 1x8 16384: 6.2
shared_gate_up (3072, 6144) M=4096: 8w 4x4 2304: 10.1, 3616: 8.4, 4096: 9.6
shared_gate_up (3072, 6144) M=8192: 8w 1x4 4349: 18.4, 5440: 0.4, 7232: 2.0, 8192: 4.8
shared_gate_up (3072, 6144) M=16384: 8w 4x8 9040: 15.6, 12032: 17.2, 14464: 14.9, 16384: 12.9
shared_down (6144, 1536) M=8192: 8w 1x4 4349: 12.0, 5440: 11.9, 7232: 12.2, 8192: 9.6, 9040: 11.1, 12032: 10.1, 14464: 8.4
shared_down (6144, 1536) M=16384: 8w 3x4 16384: 7.6
qkv (4992, 6144) M=2048: 8w 2x0 1100: 11.4, 1300: 11.9, 1536: 11.9, 1808: 10.1, 2048: 8.8
qkv (4992, 6144) M=8192: 8w 2x4 4349: 13.9, 5440: 13.8, 7232: 4.9, 8192: 19.2, 9040: 19.2, 12032: 20.9, 14464: 16.4
qkv (4992, 6144) M=16384: 8w 2x4 16384: 22.8

Testing

  • Unit tests added or updated
  • Performance benchmarks run
  • Tested on MI250X
  • Tested on MI300X

CPU guard tests and the A/B runs are described in the self-review.

Details
  • Unit tests added or updated (config rows only; the guard tests below cover them)
  • Performance benchmarks run (kernel re-measure, end-to-end A/B and a MI355X kernel check above, with this branch's table on amd-aiter 0.1.28.post1; not on main's code)
  • Tested on MI250X (not applicable: gfx950 rows only)
  • Tested on MI300X (not applicable: gfx950 rows only)

To do before ready, on a dev install of main: the repo tuner for these keys, python3 csrc/gemm_a8w8_mxfp8_bpreshuffle/gemm_a8w8_mxfp8_bpreshuffle_tune.py --mxscale_table -i <shapes csv with M, N, K, w_scale_block 1x32> -o aiter/configs/model_configs/minimax_m3_a8w8_blockscale_mxscale_bpreshuffle_tuned_gemm.csv --compare --update_improved (an attempt on MI350X took more than 30 minutes at M=1 alone; about 8 hours for the 18 qkv keys).

Documentation

  • Docstrings updated
  • User guide updated
  • Performance guide updated
  • No documentation change is needed, with the reason stated below

Tuned-config rows only.

Details

Tuned-config rows only.

Dependencies

  • No new third-party dependencies added
  • New dependencies are listed and justified below

No code dependency.

Related PRs

No code dependency. #7498 and #7829 (merged, in the base) changed other keys of this file: none of this PR's 25 keys is among their rows. #7772 (open, TP4 shapes of the same file): no shared key, and the text merge with this branch is clean in both orders (git merge-tree, #7772 at d5cca3c), so whichever lands second rebases mechanically. #6605 (open, 64-bit stores in the 8-wave epilogue, 2.7% to 8.5%) changes the speed of the kernel the 10 rows move to; the rows were measured without it, on amd-aiter 0.1.28.post1 (tag v0.1.28.post1, ad0554a) with FlyDSL 0.4.2 (main pins 0.5.0), so re-run the check after #6605 lands.

Breaking Changes

None. Only gfx950 calls with 1x32 scales and these (N, K, M) change kernel.

Bit-exactness details

None. Only gfx950 (256 CUs) calls with 1x32 weight scales and these (N, K, M) change kernel. The 8-wave output is bit-identical to the previous kernel at every re-measured M (48 points on MI350X, 40 on MI355X). The qkv rows replace the vLLM Triton fallback (not compared bit for bit) and AITER's bmm heuristic (the same bits at 17 of 18 row M on MI355X; at M=64 another split-K tile, error ratio 0.074% against 0.075%).

PR Self-Review

Self-review (revision, scope, checks, unverified scope)

Reviewed revision

The branch head before push.

Behavior and intent

For (4992, 6144) on gfx950 the merged mxscale table now has 18 rows, so is_mxfp8_bpreshuffle_gemm_tuned(4992, 6144) is true and vLLM runs the projection on FlyDSL kernels; 10 rows name the 8-wave GEMM (run_gemm_a8w8_mxfp8_gfx950), which accepts these shapes on main (K a multiple of 256; out-of-range N columns dropped; 1x32 scales supported). The math is the same MXFP8 with e8m0 scales.

Validation and unverified scope

CPU checks and what is not verified

ROCm container, torch 2.13, pandas; the branch changes no code, so main's code runs against this branch's CSV (a stub loads the AITER_CONFIG class of aiter/jit/core.py and the FlyDSL name parsers).

check what runs result
CI tuning gate python3 -m unittest op_tests.tuning_tests.test_csv_validation 19 tests OK
op_tests/tuning_tests/test_config_shape_collision.py whole file 32 of 33 OK; the 33rd needs the compiled aiter.ops package, which the stub lacks (same on main)
runtime merge of the mxscale bpreshuffle family (default file + every model_configs/ file, no env var) AITER_CONFIG.get_config_file no duplicate key; 3832 rows (main 3814)
every flydsl row of the file parse_bmm_kernel_name + check_bmm_config, parse_mxfp8_8wave_kernel_name 396 rows checked, 0 failures
the merged rows of the 4 TP2 shapes against the table that served in the 8-wave lane row compare, all columns (75 rows each) 65 equal; the 10 8-wave rows differ in us, tflops, bw, errRatio only (refreshed); kernel and split-K equal at 75 of 75

Not verified: nothing ran on main's code; the end-to-end A/B, the re-measure and the MI355X kernel check ran on amd-aiter 0.1.28.post1. The 8-wave rows have MI350X end-to-end numbers only. The rows did not come from the repo tuner (command above). Accuracy only at stack level for the qkv rows (MMMU 0.573 and 0.596 std, 0.588 and 0.608 DSpark, stderr 0.016).

PR-specific question

To answer when the automated PR Self-Review comment is posted.

Changed op tests

None.

…=4992 K=6144) on gfx950

Add 18 rows (M 1 to 32768) for the MiniMax-M3.1 fused qkv + indexer
projection at TP2 (N=4992, K=6144, 1x32 e8m0 weight scales) to the
gfx950 MiniMax-M3 MXFP8 blockscale bpreshuffle table. The table had no
rows for this shape. vLLM uses the AITER FlyDSL MXFP8 GEMM only for
shapes that AITER has tuned, so this projection ran on the vLLM Triton
dot_scaled fallback.

All rows use FlyDSL bmm kernels that the table already uses for other
MiniMax-M3 shapes, except one tile (M=32). The rows come from a local
FlyDSL bmm sweep on MI355X (256 CUs, amd-aiter 0.1.28.post1), not from
the AITER tuner, so the us, tflops, bw and errRatio cells do not compare
with the cells of the rows the tuner wrote. The rows are appended to the
end of the file, as in ROCm#7829.

Signed-off-by: Vorapol Assavasangthong <[email protected]>
…L 8-wave GEMM on gfx950

Move 10 rows of the gfx950 MiniMax-M3 MXFP8 blockscale bpreshuffle table
from FlyDSL bmm kernels to the FlyDSL 8-wave MXFP8 GEMM (TP2 shapes):

- o_proj (N=6144 K=4096): M=8192, M=16384
- shared expert gate_up (N=3072 K=6144): M=4096, M=8192, M=16384
- shared expert down (N=6144 K=1536): M=8192, M=16384
- qkv_proj (N=4992 K=6144): M=2048, M=8192, M=16384

The three qkv_proj rows come from the previous commit, so this commit
stacks on it.

A re-measure on MI350X (256 CUs) timed the candidates at the M values
that each row serves: one CUDA graph of 20 calls per candidate, 7 rounds
in shuffled order, median. A row moves only if its summed time is at
least 3% lower and no M value is more than 1% slower. The moved rows are
8.5% to 23.7% faster on MI350X. The same comparison on MI355X (the old
pick through the production lookup against the new pick, same operands)
found all 40 served M values faster, 0.4% to 22.8% (4.8% to 22.8% at the
row's own M), with outputs bit-identical to those of the previous kernels.

The us, tflops, bw and errRatio cells of these rows are from that MI355X
comparison at the row's M, not from the AITER tuner: us is the median of
the 7 rounds; tflops = 2*M*N*K/us; bw = (M*K + N*K + 2*M*N)/us in GB/s,
as for the qkv_proj rows; errRatio is the fraction of outputs outside
isclose(rtol=1e-2, atol=1e-2) of the bf16 reference of the dequantized
operands, as for the qkv_proj rows (the 7 rows replaced here carried
0.0). They do not compare with the cells of rows the tuner wrote.

Signed-off-by: Vorapol Assavasangthong <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter standard tests on MI35X
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:mi300x Run Aiter standard tests on MI300X in PRs; main branch always runs them
ci:gfx1250-ffm-triton Run the five-shard gfx1250 FFM Triton test suite
ci:triton-300x Run an additional Triton test job on MI300X in PRs (added automatically when gfx942 configs change); main branch always runs both MI35X and MI300X
ci:triton-355 Run the full Triton test suite on MI35X, not only the tests the change affects
ci:windows Windows JIT op smoke test on the Radeon R9700 ROCm runner
ci:multi-gpu Aiter multi-GPU tests on the 8-GPU runner
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full 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 8191 --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.

Reviews:
A reviewer is usually assigned within one working day after the PR is ready for review (see Code Review Process). If nobody has responded for about a week, mention the area contact listed in CONTACTS.md. Want to help review? See REVIEWERS.md.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant