[GLM-5.2-MXFP4] Retune fMoE kernels with FLAT support - #4344
Closed
nholmber wants to merge 1 commit into
Closed
Conversation
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
Retune FlyDSL kernels for inter_dim=256 (TP8) and inter_dim=512 (TP4) using the CK FlyDSL tuner. Add FLAT ASM 1-stage kernel entries at low token counts (tok=2-8) and FSE=0 (e=256/k=8) shape coverage. inter_dim=1024,2048 rows preserved unchanged. E2E results (SGLang, MI355X, amd/GLM-5.2-MXFP4, FSE=1): - TP4 (inter_dim=512): TPOT -3.4% vs base, -4.1% vs upstream CSV - TP8 (inter_dim=256): TPOT -3.6% vs base, -1.2% vs upstream CSV Row count: 64 -> 96 (+32 FSE=0 rows)
nholmber
force-pushed
the
glm52-fmoe-tuning-flat-retune
branch
from
July 28, 2026 13:39
0db5974 to
175e01c
Compare
nholmber
marked this pull request as draft
July 28, 2026 19:24
Contributor
Author
|
Turning to draft PR until conflict resolved |
Contributor
Author
|
Superseded by #4629 |
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
Update the tuned fMoE CSV for GLM-5.2 MXFP4 to improve E2E decode performance on MI355X.
E2E results (SGLang, MI355X, amd/GLM-5.2-MXFP4, FSE=1):
Technical Details
Retune FlyDSL kernels for inter_dim=256 (TP8) and inter_dim=512 (TP4). Add FLAT ASM 1-stage kernel entries at low token counts (tok=2-8) and FSE=0 (e=256/k=8) shape coverage.
Test Plan
E2E benchmarks on MI355X using SGLang
lmsysorg/sglang-rocm:v0.5.15.post1-rocm720-mi35x-20260714with AITER updated to5f40e3b29amd/GLM-5.2-MXFP4,--enforce-shared-experts-fusion(FSE=1, e=257/k=9)request-rate=infThree configs compared:
9127c945f40e3bwith the currentglm5_fp4_tuned_fmoe.csv5f40e3bwith the updated CSVTest Result
TP4 (inter_dim=512) — TPOT (ms)
TP8 (inter_dim=256) — TPOT (ms)
Submission Checklist