Repository navigation
[Config] Add M=8320 MiniMax-M3 MXFP8 GEMM rows for gfx950 - #7829
Conversation
M=8320 had no row in the MiniMax-M3 1x32 e8m0 table, so the padded-M lookup served it from the M=16384 row (N <= 2560) or the M=8192 row (N = 6144). Tuned with gemm_a8w8_mxfp8_bpreshuffle_tune.py --mxscale_table on MI355X; all six winners are mxfp8 kernels. N=6144 K=768 is left out: its tuned row was within 1% of the padded one.
🏷️ 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 backend switch spans M=8193–8320, but GPU validation is reported only at M=8320, and independent gfx950 correctness and latency checks for partial-tile sizes are unavailable.
No open issues 🎉
What changed in this PR
Adds six gfx950 tuning entries for MiniMax-M3 MXFP8 GEMM at M=8320, replacing padded-M fallback selections with kernels tuned for these shapes.
Changes:
- Adds six N×K configurations using 8-wave or mxpsh
mxfp8kernels. - Leaves dispatch code unchanged; the existing fine-grained padded-M lookup also uses these entries for M=8193–8319.
- Reports 8–41% lower latency at M=8320 on MI355X.
| File | Description |
|---|---|
aiter/configs/model_configs/minimax_m3_a8w8_blockscale_mxscale_bpreshuffle_tuned_gemm.csv |
Appends six M=8320 tuning rows for gfx950 with 256 compute units and 1×32 scales. |
Review effort: Balanced
|
@yifehuan Thank you for prompt review and merge! |
) M=8320 had no row in the MiniMax-M3 1x32 e8m0 table, so the padded-M lookup served it from the M=16384 row (N <= 2560) or the M=8192 row (N = 6144). Tuned with gemm_a8w8_mxfp8_bpreshuffle_tune.py --mxscale_table on MI355X; all six winners are mxfp8 kernels. N=6144 K=768 is left out: its tuned row was within 1% of the padded one.
Summary
Add M=8320 rows for six MiniMax-M3 MXFP8 GEMM shapes (1x32 E8M0 scales, (16,16)-preshuffled weights) to
aiter/configs/model_configs/minimax_m3_a8w8_blockscale_mxscale_bpreshuffle_tuned_gemm.csvon gfx950. All six winners aremxfp8kernels (8-wave 256x256 or mxpsh).Motivation
M=8320 had no row, so the padded-M lookup served it from the M=16384 row (N <= 2560) or the M=8192 row (N = 6144), whose bmm kernels were tuned for a different M. The tuned rows take 8-41% off the M=8320 time on these shapes. M=8320 is one of the MiniMax-M3 MXFP8 shapes tuned in #5817.
Changes
Performance (if applicable)
Production call
aiter.gemm_a8w8_blockscale_bpreshuffle(x, w, x_scale, w_scale, bf16)with raw [M, K/32] / [N, K/32] E8M0 scales, device time fromaiter.test_common.run_perftestdefaults, one run each before and after.Testing
Tested on MI355X only; the rows are gfx950 rows.
Documentation
Tuned-config rows only.
Dependencies
Breaking Changes
None.
PR Self-Review
Reviewed revision
2020f74
Behavior and intent
Only M=8193..8320 on the six N x K shapes changes kernel, from the padded M=16384 / M=8192 bmm row to a tuned
mxfp8row. No dispatch code changes.Validation and unverified scope
Tuned with
python3 csrc/gemm_a8w8_mxfp8_bpreshuffle/gemm_a8w8_mxfp8_bpreshuffle_tune.py --mxscale_table -i <M,N,K,w_scale_block shape list> -o <scratch csv> --mp 1on one MI355X GPU (default errRatio 0.05): 7,369 candidates (mxpsh and 8-wave kernels, plus bmm seeds from nearby M), winners errRatio <= 0.0007, best bmm candidate 1-18% slower per shape. Before and after, the production call above was checked withcheckAllclose(rtol=atol=1e-2) against an fp32 dequant reference: error ratios identical before and after on every shape, andAITER_LOG_TUNED_CONFIG=1shows each shape resolving to its M=8320 row.python3 -m unittest op_tests.tuning_tests.test_csv_validation op_tests.tuning_tests.test_config_shape_collision: 51 tests OK. Not run: end-to-end MiniMax-M3 serving, repeat timing runs, CUDA graph capture, M=8193..8319, and the table's other N x K shapes at M=8320.PR-specific question
To fill in from the PR Self-Review comment after opening.
Changed op tests
None.