Repository navigation
[Config] Add Muse Spark Open MXFP4 FMoE tuning for gfx950 - #6593
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
There was a problem hiding this comment.
🟡 Changes recommended
Four zero-latency entries undermine configuration selection and are skipped by normal tuning runs.
1 open finding
What changed in this PR
Adds Muse Spark Open MXFP4 FMoE tuning configurations for gfx950.
Changes:
- Defines ten TP/EP shapes for tuning.
- Adds kernel selections with filenames matching FlyDSL’s MXFP4 ahead-of-time compilation glob.
| File | Description |
|---|---|
aiter/configs/model_configs/muse-spark-open-mxfp4_fp4_untuned_fmoe.csv |
Defines TP/EP tuning inputs. |
aiter/configs/model_configs/muse-spark-open-mxfp4_fp4_tuned_fmoe.csv |
Records kernel selections and timing data. |
🧠 Review effort: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
ChuanLi1101
left a comment
There was a problem hiding this comment.
Token 8/16/32/64 are us=0, so they are pinned to the 1-stage ASM kernel and a retune will skip them. Decode hits these shapes. Please confirm that is intentional.
EP only has token 1024 and 2048. Smaller EP batches fall back to the default config.
Tuned and untuned TP/EP shapes for Muse Spark Open (Quark MXFP4; model_dim 4096; TP inter_dim 512 x 256 experts, EP inter_dim 4096 x 32 experts) on gfx950. Named *_fp4_tuned_fmoe.csv so the FlyDSL mxfp4 AOT glob precompiles the stage-2 layout kernels. TP token 8-64 (decode) use the FLAT 1-stage asm kernels. gemm_moe_tune.py does not tune per_1x32 1-stage, so their us/tflops come from op_tests/test_moe_2stage.py -q 4 -dim 4096,512 -e 256 -k 1 -t 8 16 32 64 -hip 0,0 --stage2-bias f: 14.60/20.01/30.92/46.11 us vs 34.96/39.20/49.99/65.38 us on the default 2-stage path. Co-authored-by: Cursor <[email protected]> Signed-off-by: Hongxia Yang <[email protected]>
73f393d to
bc1ca39
Compare
|
Thanks. The four FLAT 1-stage rows (token 8/16/32/64) are intentional: the token key counts routed tokens (top-8), so they cover decode batches of 1/2/4/8 per rank. gemm_moe_tune.py doesn't tune per_1x32 1-stage, so those rows had placeholder timings. They now carry measured times from op_tests/test_moe_2stage.py -q 4 -dim 4096,512 -e 256 -k 1 -t 8 16 32 64 -hip 0,0 --stage2-bias f: 14.60/20.01/30.92/46.11 µs vs 34.96/39.20/49.99/65.38 µs on the default 2-stage path. With TP8 this gave +16% serving throughput at concurrency 1–2 and +9% at 4. EP rows only at 1024/2048 is also intentional. Under EP8, tuned rows only beat the default there (196→181 and 237→201 µs) and tied or lost at other buckets. FLAT can't be used under EP because it ignores expert_mask. |

Tuned and untuned TP/EP shapes for Muse Spark Open (Quark MXFP4; model_dim 4096; TP inter_dim 512 x 256 experts, EP inter_dim 4096 x 32 experts) on gfx950. Named *_fp4_tuned_fmoe.csv so the FlyDSL mxfp4 AOT glob precompiles the stage-2 layout kernels.
Motivation
Technical Details
Test Plan
Test Result
Submission Checklist