Repository navigation
[Config] [Perf] Add MiniMax-M3-EAGLE3.1 BF16 GEMM rows for gfx950 - #7170
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
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 runtime GEMM selection changes need human review because no head-matched gfx950 GPU validation or raw benchmarks were supplied to independently verify correctness, numerical behavior, and latency.
No open issues 🎉
What changed in this PR
This PR extends aiter’s MiniMax-M3-EAGLE3.1 BF16 GEMM configuration with 13 FlyDSL selections for gfx950 GPUs with 256 compute units, targeting faster execution of matching projection shapes.
Changes:
- Adds 13 tuned GEMM rows while preserving all existing entries.
- Adds the same 13 shapes to the tuner’s input list and restores its final newline.
- Changes configuration data only; no kernel code or public APIs change.
| File | Description |
|---|---|
aiter/configs/model_configs/minimax_m3_eagle_bf16_untuned_gemm.csv |
Adds the 13 corresponding tuning shapes and a final newline. |
aiter/configs/model_configs/minimax_m3_eagle_bf16_tuned_gemm.csv |
Adds 13 gfx950 BF16 FlyDSL kernel selections with tuning metrics. |
Review effort: Balanced
There was a problem hiding this comment.
🔵 Needs a closer look
Static checks found no collisions, but the serving-time FlyDSL selection changes could not be independently verified for GPU correctness, latency, or model accuracy in this environment.
No open issues 🎉
Review effort: Balanced
There was a problem hiding this comment.
🔵 Needs a closer look
Serving-time FlyDSL selection changes, including split-K and padded-M cases, require human review of runtime evidence because MI355X numerical and latency results could not be reproduced despite passing static key checks.
No open issues 🎉
Review effort: Balanced
There was a problem hiding this comment.
🔵 Needs a closer look
The gfx950 FlyDSL dispatch changes include split-K rows with reported numerical mismatches, requiring maintainer review because static checks cannot establish numerical acceptance or end-to-end latency without exact-head GPU validation.
No open issues 🎉
Review effort: Balanced
Consolidated single commit of the PR ROCm#7170 branch content, rebuilt onto latest main (the previous branch history interleaved merge commits, which a plain rebase cannot linearize). The tuned table is the exact key union of main's current rows (292, including the 7 M3.1 lm_head rows from 8ca5a41) and this PR's 13 rows -- verified disjoint by lookup key. The companion untuned shape table matches the reviewed branch. Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: Bishwo Adhikari <[email protected]>
d677639 to
c46a299
Compare
There was a problem hiding this comment.
🔵 Needs a closer look
Split-K BF16 changes affect padded-M dispatch and report numerical mismatches, requiring human accuracy and latency validation because no exact-head GPU evidence is available for the pinned FlyDSL 0.5.3 runtime.
1 open issue
Review effort: Balanced
Consolidated single commit of the PR ROCm#7170 branch content, rebuilt onto latest main (the previous branch history interleaved merge commits, which a plain rebase cannot linearize). The tuned table is the exact key union of main's current rows (292, including the 7 M3.1 lm_head rows from 8ca5a41) and this PR's 13 rows -- verified disjoint by lookup key. The companion untuned shape table matches the reviewed branch. Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: Bishwo Adhikari <[email protected]>
7cbe14b to
32dca5c
Compare
There was a problem hiding this comment.
🔵 Needs a closer look
Maintainer runtime validation is needed for split-K BF16 accuracy and padded-M performance on gfx950, given reported numerical mismatches and measurements using FlyDSL 0.5.0 rather than the pinned 0.5.3 stack.
1 open issue
Review effort: Balanced

Summary
Adds 13 tuned BF16 GEMM rows for MiniMax-M3-EAGLE3.1 on gfx950 (MI355X, 256 CUs). The rows go into
minimax_m3_eagle_bf16_tuned_gemm.csv. Their shapes go intominimax_m3_eagle_bf16_untuned_gemm.csv.Motivation
Per the author's original description, the shapes are projections of the MiniMax-M3-EAGLE3.1 draft model at TP=2 and TP=4. They are
gate_up_proj(N=18432 at TP=2, N=9216 at TP=4),down_proj(N=6144, K=9216 at TP=2) andqkv_proj(N=6144, K=12288 at TP=4). 11 of these 13 keys run main's default today, torch (hipBLASLt). 2 keys run a row of main that its lookup reaches by padding M. Each added row selects its own kernel and was at least 3% faster than main in each of 3 paired repeats.Changes
minimax_m3_eagle_bf16_tuned_gemm.csv. The 285 rows of main stay unchanged.minimax_m3_eagle_bf16_untuned_gemm.csv. The tuner reads this file as its shape list. The last line of the file also gains the newline that main lacked.Rows not included
Performance (if applicable)
Hardware is one MI355X (gfx950, 256 CUs) GPU, taken through
gpuqon a shared node. Before is main's current lookup for the same key. After is this branch's table.Times are device time per call in µs from
gemm_a16w16_tune.py --run_config -i <shapes>: the mean of 3 paired repeats, 5 warm-up and 101 timed runs each.Before and After are geometric means over the rows of a group. Change is 1 − After ÷ Before.
All 13 rows: geometric mean 12% faster.
All 13 rows
Testing
This PR changes data files only, so it adds no test. The measurements ran on MI355X only.
Documentation
This is a data-only change to tuned CSV tables. It changes no code, flag or API.
Dependencies
Breaking Changes
None. Only gfx950 lookups with 256 CUs change, for these keys and for the runtime M that pad up to them.
PR Self-Review
Reviewed revision
32dca5c485f3d06f0024a9cd6d879b4ce2689615Behavior and intent
For 13 keys the lookup now returns a row with its own kernel. Before, it returned torch (hipBLASLt) or a row of main reached by padding M. Each row was at least 3% faster than main in each of 3 paired repeats. No row of main changes.
Validation and unverified scope
gemm_a16w16_tune.py --run_config -i <shapes>on main and on this branch: 3 paired repeats on MI355X (gfx950, 256 CUs), with the order of the pair alternating. Every kept row used its own kernel (selection line checked) and finished with status OK.err_ratioof the added rows is at most 2.3%. Main's rows in the same file go up to 2.71%.test_config_shape_collision.py: 33 passed.test_csv_validation.py: 19 passed.test_a16w16_tuned_config_lookup.py: 14 passed, 9 failed; the same 9 gfx1250 cases fail with main's configs.test_opus_a16w16_policy_parity.py: 19 passed.test_arch_resolution.py: 25 passed.op_tests/tuning_testsdirectory with main's configs and with the four PRs merged. Both runs give 38 failed and 370 passed, with 54 skipped. The failing and erroring tests are the same in both.ValueError, as it does for the FlyDSL rows of main.get_trace_perfinaiter/test_common.py). It sums device kernel time and leaves out launch gaps. Rows that launch several kernels may gain less end to end.lmsysorg/sglang-rocm:v0.5.23-rocm10-mi35x-20261117(digestsha256:09b8237296024285e6286ffb54d75c3af6d59342bbbb3558dea56bed86798814; torch 2.11.0+rocm10.0.0, hipBLASLt 1.4), FlyDSL 0.5.0. The main side used aiter code at593945921and the configs of main atc28a838be. These differ only in FlyDSL paged-attention decode files. Main has since moved toce334d015, which this branch has merged. Against the code and configs of the measurements, the diff changes the gfx942 SiLU clamp check infused_moe.pyand a gfx942 test. It adds NVFP4 global-scale arguments tofused_moeandget_2stage_cfgs. It routes OPUS rows with non-K-contiguous operands to torch intuned_gemm.py. It also touches Qwen3.8 MXFP4 aux shapes and FMOE tables and MiniMax-M3.1 MXFP8 GEMM tables. A gfx1250 Kimi K2 BF16 table, A4W4 blockscale GEMM tables, the tuner utilities and a Sage benchmark change too. It adds a persistent gfx950 A4W4 GEMM kernel and changes the per-tensor scale reduction of the quant kernel. Thetuned_gemm.pychange concerns OPUS rows, and this PR adds none. No row or lookup of its FlyDSL rows changed.PR-specific question
Which exact workload keys consume these configuration changes, and what evidence shows that unrelated shapes keep their previous selection?
The key is (gfx950, 256 CUs, M, N, K, bias, dtype, outdtype, scaleAB, bpreshuffle). The table above lists the 13 added keys. A row serves its exact M and every M that pads up to it (
getPaddedM). 3 of the 13 rows serve only their own M. The widest row, M=128, N=6144, K=9216, serves 64 values of M. We sampled 42 runtime shapes that pad onto rows of this PR. Of these, 29 were more than 3% faster than main. 13 were within 3% of main. 0 were more than 3% slower (worst 1.01x main's time). This is a sample, not a sweep. The key holds N, K and the dtypes. Other models match these rows only when they use the same shapes.Changed op tests
None.
🤖 Generated with Claude Code