Repository navigation
[Config] [Perf] MiniMax-M3.1 TP4 o_proj_full (N6144 K8192) MXFP8: 8-wave picks at M >= 8192 on gfx950 - #8578
ganyi1996ppo wants to merge 1 commit into
Conversation
…ave picks at M >= 8192 on gfx950 Replace the 7 FlyDSL bmm rows of the 6144x8192 1x32 shape at M = 8192 ... 65536 in model_configs/minimax_m3_a8w8_blockscale_mxscale_bpreshuffle_tuned_gemm.csv with FlyDSL 8-wave MXFP8 (256x256x128) picks. Config only, no code change; output is bit-identical to the previous kernels. Co-Authored-By: Claude <[email protected]>
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: Reviews: |
WAITING ON AUTHORPR Self-ReviewRevision Waiting for the PR author. The readiness report will appear after the self-review answers are complete for this revision. Questions to answer in the PR description
Edit the Missing or invalid answers
Shadow mode reports what would block but keeps the status successful. Set |
There was a problem hiding this comment.
🔵 Needs a closer look
The gfx950 dispatch changes, particularly the padded large-M _ns2 split-K path, require hardware correctness and latency verification because only static checks were performed and no head-matched validation report was supplied.
No open issues 🎉
What changed in this PR
This PR tunes MiniMax-M3.1 TP4 o_proj_full MXFP8 prefill on gfx950 by changing kernel selections in the model-specific GEMM table.
Changes:
- Switches seven rows for N=6144, K=8192, and M=8192–65536 from FlyDSL bmm to existing 8-wave MXFP8 kernels.
- Updates recorded performance metrics while leaving rows at M≤4096 unchanged.
- Changes configuration only; no kernel implementations or public APIs are modified.
| File | Description |
|---|---|
aiter/configs/model_configs/minimax_m3_a8w8_blockscale_mxscale_bpreshuffle_tuned_gemm.csv |
Updates seven large-M kernel selections and their performance metrics for TP4 output projection. |
Review effort: Balanced
|
Status of the Copilot review summary 6040382791: this PR is closed and its rows are carried by #8582, where the review items are tracked. No fix is pushed here. |
Summary
MiniMax-M3.1 TP4 sequence-parallel prefill runs
o_proj_full(N=6144, K=8192, MXFP8 1x32) throughgemm_a8w8_blockscale_bpreshuffle, which reads the e8m0 mxscale table. This PR moves the 7 large-M rows of that shape (M = 8192 ... 65536) from the FlyDSL bmm kernels to the FlyDSL 8-wave MXFP8 GEMM (256x256x128). Config only, no code change. Output is bit-identical to the previous kernels.Rows M <= 4096 are unchanged (8-wave ties at 2048/4096 and is slower below 2048, so bmm stays there).
Measurements (MI355X gfx950, 1 GPU, graph replay of 8 distinct weight copies, median, us/call)
Public API
gemm_a8w8_blockscale(..., isBpreshuffled=True), old vs new table, ABAB (old/new/old/new) in one lease, aiter main 62cb8de + flydsl 0.5.3:Padded-M lookups (M between rows) checked separately, no regression: M=4224 244 -> 188, 5120 243 -> 198, 7000 340 -> 277, 9000 453 -> 364, 20000 992 -> 773.
Correctness: relative L2 between the old-table and new-table outputs is 0.0 (bit-identical) at every M above, on random data (e4m3 weights, e8m0 scales 122..126).
Limits (stated, not hidden)
The amd_kernels
ak_gemmkernel that production currently uses for this shape is still faster at M = 2048..16384 (about 21% at 2048, 28% at 4096, 20% at 6144, 10-13% at 8192-16384); at M >= 20000 this table is now at parity or faster. Closing the gap below 16384 needs a new persistent-tile kernel and is not part of this PR.Overlap: #8191 also edits this CSV but a different shape (TP2 o_proj N6144 K4096 and qkv N4992); the rows do not overlap.
Why these rows needed re-tuning
The 19 rows for this shape (M = 1 ... 65536) come from the first version of this table (#6060, 2026-10-27) and have not been edited since (
git blame). That table was tuned with thebmmkernels. Themxfp88-wave backend already existed then (#6407 and #6603, 2026-10-14/16), but "tune bmm and mxfp8 together" (#7439) only landed on 2026-11-04, after these rows were written. The later MiniMax commits to this table (#7411, #7498, #7829, #7772) added other shapes and did not re-tune K=8192. So the large-M rows of this shape were never compared against themxfp8backend, and this PR does that comparison.Not verified: whether the October tune offered
mxfp8candidates for this shape. The ordering above is from git history only.Review
Followed .claude/skills/review-pr by hand (no PR number existed yet; validate-kernel-pr's own run is replaced by the ABAB above). Config-only diff, 7 rows replaced, no duplicate shapes (the runtime merge's duplicate check ran on the merged table), perf claims carry an old-vs-new baseline, kernels named in the rows exist in the 8-wave pipeline for K=8192 (K % 256 == 0). No finding left open.
Technique credit: the 8-wave kernel selection follows the amd_kernels o_proj benchmarks; no amd_kernels code is used.
🤖 Generated with Claude Code