Repository navigation
[FlyDSL] optimize dsv4.1, k3, m3 moe perf for gfx1250 - #7296
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
NOT READY FOR HUMAN REVIEWPR 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 |
…pt_1031 # Conflicts: # aiter/ops/flydsl/grouped_gemm_mxfp4.py # aiter/ops/flydsl/kernels/mxfp4_preshuffle_gfx1250_tdm.py
Resolve the conflict in mxfp4_preshuffle_gfx1250_tdm.py: main moved the TDM output stores onto the shared tiled_store() helper. Keep that refactor and make store_tile() a k_waves guard around it (only k_group 0 writes the tile), routing both epilogue stores -- including the a_preshuffled one that auto-merged onto tiled_store() -- through the guard. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Resolve conflicts with #7296: - mxfp4_preshuffle_gfx1250_tdm.py: keep the early quit for padded tiles (has_work = blk_m < tile_map[E-1]) in front of the one-pass psum lookup. - grouped_moe_gfx1250.py: take main's comment (same code). - tuned_grouped_fmoe.csv: keep this PR's dsv4 flash rows. split_k1/split_k2 now mean the in-workgroup K split, so retune the a8w4 T=1 row (was the old global split-K 4/2): 16x64x512 w1 / 16x128x256 w2, split_k 2/2.
…n row's stage-2 k-tile to K (#7963) kimik3tp8_tuned_grouped_fmoe.csv runs the token=16384 row's stage 2 (K = inter_dim = 384 per TP8 expert slice) with tile_k2 = 512, larger than K. The gfx1250 TDM grouped GEMM then reads past the expert slice and the GPU faults in mxfp4_tdm_fp4_t128x128x512_..._K384_e896 ("Page not present"). ATOM's warmup prefills 2 x 8192 tokens, so Kimi-K3 TP8 hits this row at every server start. Use tile_k2 = 128, which every other row of the table uses and which divides 384. The row came from #7296; the other 14 rows are unchanged. Verified on two MI455X nodes (Kimi-K3 TP8 + DCP8 with DSpark, ATOM main 9fec99786 + ROCm/ATOM#2647 + #2760, aiter main b6f1ff6 + #7912 + #7913 + this change). The server starts where it faulted in warmup before. GSM8K 5-shot is 0.9606 flexible / 0.9613 strict, and the MLPerf Endpoints agentic bench completes 293/293 samples at c4 and 1703/1703 at c64.
Summary
optimize dsv4.1, k3, m3 moe perf for gfx1250
Test Result