Repository navigation
[Config] [Perf] [gfx950] Add MiniMax-M3-MXFP4 BF16 tuned GEMM configs - #5758
Conversation
Adds minimax_m3_mxfp4_bf16_{tuned,untuned}_gemm.csv under model_configs --
96 rows for gfx950 / cu_num=256, 82 flydsl, 13 asm, 1 triton. Two new files;
no existing file is modified.
No in-tree table covers these shapes: ROCm#4835 is A8W8-bpreshuffle and MXFP8 fMoE
only, and minimax_m3_eagle_bf16_tuned_gemm.csv is the EAGLE draft model with
zero (N,K) overlap.
Shapes came from vLLM serving logs (TP8 decode linears, lm_head, TP2 qkv_proj)
and were tuned at --update_improved --min_improvement_pct 0.5, so a row exists
only where tuning beat the incumbent dispatch. Tuned post-ROCm#5145: every flydsl
kernelName is flydsl_hgemm_* and parses under main's catalog, since a
pre-ROCm#5145 name ships and silently never dispatches. hipblaslt and opus are
excluded -- a hipblaslt solidx is build-specific and passed to hipb_mm
unvalidated, and no in-tree BF16 table ships one.
(48,3072,6144) and (48,6144,1536) belong to glm5_bf16_tuned_gemm.csv and are
dropped here rather than contested; duplicate keys raise RuntimeError in
update_config_files(). Merge set verified clean: 20 files, 5257 rows, 5257
distinct keys.
Aggregate 1929.41us -> 1593.12us (17.4%) in microbenchmark. Not ready to merge:
end-to-end TP8 serving throughput regresses ~3.8% against a ~1.8% noise floor,
measured in both arm orders, and the mechanism is not yet established.
Signed-off-by: Bishwo Adhikari <[email protected]>
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
PR title tags & labels: |
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
Performance-sensitive kernel configurations warrant final human validation.
Review effort: Lite
Findings: None
What changed in this PR
Adds MiniMax-M3 MXFP4 BF16 GEMM configurations for gfx950 across 96 model-specific shapes.
Changes:
- Adds untuned GEMM shape definitions.
- Adds tuned FlyDSL, ASM, and Triton kernel selections.
- Reports a 17.4% aggregate performance improvement.
| File | Description |
|---|---|
aiter/configs/model_configs/minimax_m3_mxfp4_bf16_untuned_gemm.csv |
Defines supported GEMM shapes. |
aiter/configs/model_configs/minimax_m3_mxfp4_bf16_tuned_gemm.csv |
Provides gfx950 tuned kernel metadata. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…yDSL winners
Update minimax_m3_mxfp4_bf16_{tuned,untuned}_gemm.csv with portable FlyDSL
GEMM configurations discovered during tuning on gfx950 (MI355X):
- Expands table coverage from 96 to 112 rows (+16 new shapes across gate_up_proj,
qkv_dense, o_proj, and ViT mlp).
- Updates 3 existing shapes in-place (qkv_sparse at M=16, 32, 48) with faster
FlyDSL configs.
- All kernels conform to post-ROCm#5145 catalog naming (flydsl_hgemm_*).
- Clean merge verified: 0 duplicate keys across in-tree model configs.
Co-Authored-By: Claude Code <[email protected]>
Signed-off-by: Bishwo Adhikari <[email protected]>
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
Review effort: Lite
Findings: 2
|
please look at the copilot review comments |


What changes
Adds
aiter/configs/model_configs/minimax_m3_mxfp4_bf16_{tuned,untuned}_gemm.csv— 112 tuned rows on gfx950 /
cu_num=256, plus the untuned companion. Backends:flydsl 98, asm 13, triton 1. Two new files; no existing file is modified.
Why is this needed
No in-tree table covers these shapes. #4835 is A8W8-bpreshuffle and MXFP8 fMoE
only, and
minimax_m3_eagle_bf16_tuned_gemm.csvis the EAGLE draft model withzero (N, K) overlap, so on MI355X these shapes fall through to the runtime
heuristic today.
Performance measurement
MI355X, gfx950,
cu_num=256. Baseline is stock AITER: no tuned row for the shape,torch fallback. Aggregate over the 111 rows with a recorded baseline:
2522.24 µs → 2103.16 µs, 16.6 %.
(96, 3072, 6144)has no recorded baselineand is in neither the table nor the sum.
Per-shape table (111 rows with recorded baselines)
Validation
configs/bf16_tuned_gemm.csvplus all 19model_configs/*bf16_tuned_gemm*.csv).hipblasltexcluded to prevent build-pinnedsolidxdispatch failures across ROCm releases.Breaking changes
None. Two new files; no existing config, source file, or interface is modified.
Submission Checklist