[GLM-5.2 MXFP4][Tuning] Retune MXFP4 fused-MoE for gfx950 (TP4 + TP8) - #4629
Open
nholmber wants to merge 1 commit into
Open
[GLM-5.2 MXFP4][Tuning] Retune MXFP4 fused-MoE for gfx950 (TP4 + TP8)#4629nholmber wants to merge 1 commit into
nholmber wants to merge 1 commit into
Conversation
Retunes glm5_fp4_tuned_fmoe.csv for the two GLM-5.2 fused-shared-expert
shapes on MI355X, moving the decode tiers onto the FlyDSL mxmoe a4w4 port.
model_dim 6144, experts 257, topk 9
inter_dim 512 (TP4): 12 rows
inter_dim 256 (TP8): 16 rows
Tuned on gfx950 with the mxmoe path:
python3 csrc/ck_gemm_moe_2stages_codegen/gemm_moe_tune.py \
-i <shape>_untuned.csv -o <shape>_tuned.csv \
--all --mp 8 --batch 100 --warmup 5 --iters 101 \
--shape_grouped --mxfp4-flydsl --timeout 7200
The stage-2 _f4out variant is kept at inter_dim=512 tok=8192/16384 rather
than taking the tuner's pick: dropping it costs ~1.4% end to end at long
context, where 8192-token prefill chunks land on those tiers.
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Retune to use mxmoe a4w4 kernels for decode (#4179) giving +5.1% end-to-end serving throughput at TP4 and +2.4%
at TP8 on MI355X, with peaks of +22.4%.
Technical Details
Retunes
aiter/configs/model_configs/glm5_fp4_tuned_fmoe.csvfor the two GLM-5.2 fused-shared-expert shapes:Test Plan
Validated improvement from updated tuning end-to-end on vLLM nightly, AITER
aded0f84,flydsl==0.3.0:, using isl/osl/conc (1024/1024, 8192/1024, 60000/600 x concurrency 4..256).Coherence and output sanity were checked before benchmarking.
Test Result
TP4 (inter_dim=512)
TP8 (inter_dim=256)
Submission Checklist