Repository navigation
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: Reviews: |
READY FOR HUMAN REVIEWPR Self-ReviewRevision Author self-review accepted. Readiness report: Author answers
Show the author's self-review answersBehavior and intentValidation and unverified scopePR-specific questionChanged op testsPR state
Copilot findings
Code and op-test hygiene
Required CI
Shadow mode reports what would block but keeps the status successful. Set |
45b461e to
9351b79
Compare
67095ac to
1435998
Compare
…mm.csv The 1119 image carries this tuned GEMM config next to the stack commit but untracked (the stack commit drops ROCm#8161's renamed copy, minimax_m3_draft_bf16_tuned_gemm.csv, without adding this one back). Tracked here so a checkout of the branch matches the image's /app/aiter. Co-Authored-By: Claude Fable 5.2 <[email protected]>
… tables (#8161 at 575eb2c) The 1119 stack carried #8161's base tables only. This adds the PR's net change: minimax_m3_eagle_bf16_tuned_gemm.csv becomes minimax_m3_draft_bf16_tuned_gemm.csv with 41 more rows, and minimax_m3_gfx1250_tuned_grouped_fmoe.csv gains 16 rows. Co-authored-by: XiaobingSuper <[email protected]> Co-Authored-By: Claude Fable 5.2 <[email protected]>
…P4 MoE - 41 BF16 GEMM rows for the DSpark draft FC, (N, K) = (6144, 30720), M 1-32768. - 16 routed-MXFP4 grouped-MoE rows for E128 / top-4, H6144 / I768, tokens 1-32768; 16384 / 32768 use the 256x256x256 cluster config. Co-Authored-By: Claude Opus 5.5 <[email protected]>
a187017 to
2b4474a
Compare
valarLip
left a comment
There was a problem hiding this comment.
⚠️ Action required before merge (1)
- Re-time the DSpark FC rows M=35, 49 and 56 against the ks5 FlyDSL kernel that the neighbouring rows use, and keep the faster kernel.
aiter/configs/model_configs/minimax_m3_eagle_bf16_tuned_gemm.csv:297,300,301.- M=42/48/64 (
:298,299,302) selectflydsl_hgemm_..._t64x64x128x4_ks5_w4x2x1_..._pht_gfx1250at 32.75 / 34.33 / 33.93 us. - M=35 (OPUS kid 309, 39.25 us), M=49 (
t64x64x128x5_ks2, 38.45 us) and M=56 (t64x64x128x6_ks2, 38.93 us) are 13-20% slower. - All six fit in the same single 64-row M tile, so the ks5 kernel launches the same grid for M=35..64. The shape is weight-bandwidth bound (N=6144, K=30720).
- The table's own noise is about 4%: the same
t64x128x128x5_ks1kernel measures 93.7 / 96.7 / 92.9 us at M=196/199/256. - So the gap looks like a missed or mis-timed candidate, not a real optimum. M=35/49/56 are batch x 7 DSpark K7 decode shapes, so they are on the hot path.
- If ks5 is faster there, switch those three rows to it (splitK=5). If it really is slower, say so in the PR.
- M=42/48/64 (
Checked clean, nothing to change:
- No duplicate shapes. Family-wide merge against current main (414230f):
bf16_tuned_gemm(canonical + 32 model files) andtuned_grouped_fmoe(canonical + 9 model files) have 0 duplicate keys. No collisions with open config PRs either (#8317 also edits this eagle file, but only gfx950 rows at :124+). - Files are well formed and get loaded. Headers and column counts match (18 / 48), and the loader discovers both files.
- Every BF16 row resolves on main.
- OPUS: all 19 (kid, kernelName) pairs match main's gfx1250 registry and pass the launch-plan and split-K checks.
- FlyDSL: all 13 names parse, ks matches the splitK column, and the compile constraints hold.
- Triton: the
autorows follow the existing pattern.
- All 16 grouped-MoE rows pass on main. They pass every check
grouped_gemm_mxfp4/mxfp4_preshuffle_gfx1250_tdmrun: tiles, warps, wpt, clusters, persistent workers, LDS. Blank split_k reads as 1. Each power-of-two token from 1 to 32768 hits exactly one row; larger counts cap at the 32768 row. #8157's fold does not apply to these rows (non-EP, a_preshuffle=0). - CI is green.
Reviewed at 2b4474a (Standard tier, config-only; hunter A + independent pass B, 2 agents). First review by valarLip.
The FC rows were every M one model run hit, including 7 x batch counts and one-off prefill lengths. Keep the tuned rows for M = 1, 2, 4 ... 32768 and M = 48 (8 rows x 6 requests, a captured decode size) as they are; every other M takes one of them through getPaddedM. 24 rows removed, none changed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The M = 35 / 49 / 56 rows, and the other non-power-of-two rows, are removed. The table now lists the power-of-two M plus M = 48 (8 rows x 6 requests, a captured decode size); any other M resolves to these rows through aiter's padded lookup ( |
The helper had grown to ~450 lines plus ~450 lines of tests, mostly special cases for renames, moves, multi-file groups, ambiguity and summary counts. It is an advisory hint the reviewer checks against the diff, so drop them: a tuned CSV pairs with the one untuned CSV in its folder whose name has the same tokens, and the four mismatch kinds are set differences over the rows the PR changed. Same findings on recent tuning merges (ROCm#8016, ROCm#8161, ROCm#7109, ROCm#8566, ROCm#8490); renames and moves are left to the reviewer. Also drop the triage audit plumbing for tuning_coverage.txt (A5 findings are backed through verdicts like any other rule), the .toml/tuning JSON triggers (aiter tracks no tuning .toml files) and the unrelated pre-commit change. Key columns are no longer dropped for the whole pair when one untuned cell is blank, which hid real changes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
gfx1250 (256 CU) tuning rows for MiniMax-M3.1 TP4. Config only; no kernel, dispatch or API change.
PR Self-Review
Reviewed revision
3943c4f
Behavior and intent
minimax_m3_eagle_bf16_tuned_gemm.csv: 17 rows for the DSpark draft FC, (N, K) = (6144, 30720), M = 1, 2, 4, ... 32768 and M = 48 (8 rows x 6 requests, a captured decode size) (FlyDSL hgemm, Triton and OPUS kids 527 / 561 / 593 / 598 / 716; each kid's kernel name matches main's OPUS registry). Every other M takes one of these rows throughgetPaddedM: a decode verify of 8 rows a request lands on 8 / 16 / 32 / 48 / 64 / 128 / ..., a prefill length on the next power of two.minimax_m3_gfx1250_tuned_grouped_fmoe.csv: 16 routed-MXFP4 grouped-MoE rows for E128 / top-4, H6144 / I768, tokens 1-32768 (powers of two; the MoE lookup takes the next power of two). 16384 and 32768 use 256x256x256 tiles, 2x2 waves, 3 + 3 buffers, clusters 2x2 (GEMM1) / 4x4 (GEMM2), next-stage prefetch and LDS SoA interleave, no activation preshuffle.Neither shape had a gfx1250 row, so both ran untuned defaults. The FC is replicated (the full K = 30720 on every rank), as ATOM main runs it.
Validation and unverified scope
4x MI455X, MiniMax-M3.1 TP4 + DSpark K7:
Unverified: measured on an earlier aiter base (
576d3f0), not re-run on main. On main the rows apply unchanged and every OPUS kid resolves to the same kernel name. The FC rows' timing at padded M (for example M 40 -> the 48 row, M 72-120 -> the 128 row) was not measured against a per-M choice.PR-specific question
Keys consumed: BF16 GEMM
(gfx1250, 256, M, 6144, 30720, bias False, bf16, bf16)for M = 2^0 ... 2^15 and 48; grouped MoE(gfx1250, 256, token, 6144, 768, 128, 4, Swiglu, bf16, fp4x2, fp4x2, per_1x32)for tokens 2^0 ... 2^15. Rows are appended only; no existing row changes, and no key duplicates one in any other*bf16_tuned_gemm*/*tuned_grouped_fmoe*CSV on main, so every other shape keeps its selection.Changed op tests
None.
🤖 Generated with Claude Code