Skip to content

[Config] Add GLM-5.3-Flash TP2 tuned fused-MoE configs for gfx950 - #6077

Merged
yifehuan merged 1 commit into
ROCm:mainfrom
willhu-jpg:glm5_3_flash-tp2-fmoe-gfx950
Oct 12, 2026
Merged

yifehuan merged 1 commit into
ROCm:mainfrom
willhu-jpg:glm5_3_flash-tp2-fmoe-gfx950

Conversation

@willhu-jpg

@willhu-jpg willhu-jpg commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

The GLM-5.3-Flash tables cover TP4 (inter_dim 512) and TP8 (inter_dim 256). Add TP2 / EP1 rows (inter_dim 1024): 288 experts top-8, and 289 experts top-9 with the shared expert fused, tuned on MI355X (256 CUs) with gemm_moe_tune.

The GLM-5.3-Flash tables cover TP4 (inter_dim 512) and TP8 (inter_dim 256).
Add TP2 / EP1 rows (inter_dim 1024): 288 experts top-8, and 289 experts
top-9 with the shared expert fused, tuned on MI355X (256 CUs) with
gemm_moe_tune.

Only power-of-two token counts are listed, since fused_moe looks configs up
at get_padded_M(token) (next power of two below 32k). 289@32, 288@1 and
288@32 are left to the default heuristic, which is faster there on this
branch; every remaining row is at least as fast as the default. Production
fused_moe on this branch vs no TP2 rows: 1.17x (289 experts) and 1.14x (288)
geomean over the power-of-two sizes 1..16384, 1.18-1.66x from 1024 tokens. A fresh
gemm_moe_tune run here (TUNE_ONLY= to search all kernel families) finds no
better choices. The fused table's rows drop the tuner's nt column (all 0, the
same as a missing value).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@willhu-jpg
willhu-jpg requested a review from a team October 2, 2026 05:27
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:gfx1250-ffm-triton Run the five-shard gfx1250 FFM Triton test suite
ci:triton-300x Run an additional Triton test job on MI300X in PRs (added automatically when gfx942 configs change); main branch always runs both MI35X and MI300X
ci:triton-355 Run the full Triton test suite on MI35X, not only the tests the change affects
multigpu Aiter multi-GPU tests on the 8-GPU runner
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: GPT-OSS-120B, DeepSeek-R1-0528, Kimi-K2.5
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 6077 --add-label <label>

One backend per PR:
A PR changes one kernel backend: [Triton/Gluon] (Triton and Gluon count as one), [HIP], [ASM], [CK], [OPUS] or [FlyDSL]. If the title ends up with two backend tags, split the PR -- as stacked pull requests when one part cannot merge without the other.

PR title tags & labels:
Component tags ([Triton/Gluon], [HIP], [CK], [ASM], ...) are added to the PR title and as PR labels automatically from the changed files and re-synced on every push — change-type tags like [fix]/[Perf], op tags like [MLA], and human labels (ci:*) are left untouched. Add the no-auto-title label to stop the title rewrites; labels stay in sync either way.

@github-actions github-actions Bot changed the title Add GLM-5.3-Flash TP2 tuned fused-MoE configs for gfx950 [Config] Add GLM-5.3-Flash TP2 tuned fused-MoE configs for gfx950 Oct 2, 2026
@github-actions github-actions Bot added the Config label Oct 2, 2026
@zufayu
zufayu requested a review from yifehuan October 3, 2026 00:36

@yifehuan yifehuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yifehuan
yifehuan merged commit f90ecf9 into ROCm:main Oct 12, 2026
willhu-jpg added a commit to modal-projects/aiter that referenced this pull request Oct 15, 2026
Add the torch-free ctypes op, JIT build registration, kernel sources,
reference tests and documentation for GLM-5.3-Flash TP2 block-FP8 MoE.
The layer includes routing, gate/up projection, clamped SwiGLU with FP8
requantization, down projection and weighted combine.

Bump HipKittens to c92c664a for scaled FP8 MFMA and shared-to-register
loads on pinned ART tiles. The dependency branch retains this support
commit; the MoE implementation lives in AITER.

Rebased onto upstream c538533; the TP2 tuned configurations from
0299b77 are already merged as f90ecf9 (ROCm#6077).

Signed-off-by: William Hu <[email protected]>
willhu-jpg added a commit to modal-projects/aiter that referenced this pull request Oct 15, 2026
Add the torch-free ctypes op, JIT build registration, kernel sources,
reference tests and documentation for GLM-5.3-Flash TP2 block-FP8 MoE.
The layer includes routing, gate/up projection, clamped SwiGLU with FP8
requantization, down projection and weighted combine.

Bump HipKittens to c92c664a for scaled FP8 MFMA and shared-to-register
loads on pinned ART tiles. The dependency branch retains this support
commit; the MoE implementation lives in AITER.

Rebased onto upstream c538533; the TP2 tuned configurations from
0299b77 are already merged as f90ecf9 (ROCm#6077).

Signed-off-by: William Hu <[email protected]>
willhu-jpg added a commit to modal-projects/aiter that referenced this pull request Oct 15, 2026
Add the torch-free ctypes op, JIT build registration, kernel sources,
reference tests and documentation for GLM-5.3-Flash TP2 block-FP8 MoE.
The layer includes routing, gate/up projection, clamped SwiGLU with FP8
requantization, down projection and weighted combine.

Bump HipKittens to 2be16227 for scaled FP8 MFMA and shared-to-register
loads on pinned ART tiles. The dependency branch retains this support
commit; the MoE implementation lives in AITER.

Rebased onto upstream c538533; the TP2 tuned configurations from
0299b77 are already merged as f90ecf9 (ROCm#6077).

Signed-off-by: William Hu <[email protected]>
willhu-jpg added a commit to modal-projects/aiter that referenced this pull request Oct 15, 2026
Add the torch-free ctypes op, JIT build registration, kernel sources,
reference tests and documentation for GLM-5.3-Flash TP2 block-FP8 MoE.
The layer includes routing, gate/up projection, clamped SwiGLU with FP8
requantization, down projection and weighted combine.

Bump HipKittens to aba762b4 for scaled FP8 MFMA and shared-to-register
loads on pinned ART tiles. The dependency branch retains this support
commit; the MoE implementation lives in AITER.

Rebased onto upstream c538533; the TP2 tuned configurations from
0299b77 are already merged as f90ecf9 (ROCm#6077).

Signed-off-by: William Hu <[email protected]>
willhu-jpg added a commit to modal-projects/aiter that referenced this pull request Oct 15, 2026
Add the torch-free ctypes op, JIT build registration, kernel sources,
reference tests and documentation for GLM-5.3-Flash TP2 block-FP8 MoE.
The layer includes routing, gate/up projection, clamped SwiGLU with FP8
requantization, down projection and weighted combine.

Bump HipKittens to 026a87bb for scaled FP8 MFMA and shared-to-register
loads on pinned ART tiles. The dependency branch retains this support
commit; the MoE implementation lives in AITER.

Rebased onto upstream c538533; the TP2 tuned configurations from
0299b77 are already merged as f90ecf9 (ROCm#6077).

Signed-off-by: William Hu <[email protected]>
willhu-jpg added a commit to modal-projects/aiter that referenced this pull request Oct 15, 2026
Add the torch-free ctypes op, JIT build registration, kernel sources,
reference tests and documentation for GLM-5.3-Flash TP2 block-FP8 MoE.
The layer includes routing, gate/up projection, clamped SwiGLU with FP8
requantization, down projection and weighted combine.

Bump HipKittens to 2d67b2ad for scaled FP8 MFMA and shared-to-register
loads on pinned ART tiles. The dependency branch retains this support
commit; the MoE implementation lives in AITER.

Rebased onto upstream c538533; the TP2 tuned configurations from
0299b77 are already merged as f90ecf9 (ROCm#6077).

Signed-off-by: William Hu <[email protected]>
willhu-jpg added a commit to modal-projects/aiter that referenced this pull request Oct 15, 2026
Add the torch-free ctypes op, JIT build registration, kernel sources,
reference tests and documentation for GLM-5.3-Flash TP2 block-FP8 MoE.
The layer includes routing, gate/up projection, clamped SwiGLU with FP8
requantization, down projection and weighted combine.

Bump HipKittens to b2a94a01 for scaled FP8 MFMA and shared-to-register
loads on pinned ART tiles. The dependency branch retains this support
commit; the MoE implementation lives in AITER.

Rebased onto upstream c538533; the TP2 tuned configurations from
0299b77 are already merged as f90ecf9 (ROCm#6077).

Signed-off-by: William Hu <[email protected]>
willhu-jpg added a commit to modal-projects/aiter that referenced this pull request Oct 15, 2026
Add the torch-free ctypes op, JIT build registration, kernel sources,
reference tests and documentation for GLM-5.3-Flash TP2 block-FP8 MoE.
The layer includes routing, gate/up projection, clamped SwiGLU with FP8
requantization, down projection and weighted combine.

Bump HipKittens to upstream 94f6250c (HazyResearch/HipKittens#94) for
MXFP8 ART support, including scaled FP8 MFMA and shared-to-register
loads on pinned ART tiles.

Rebased onto upstream c538533; the TP2 tuned configurations from
0299b77 are already merged as f90ecf9 (ROCm#6077).

Signed-off-by: William Hu <[email protected]>
amd-sriram added a commit to amd-sriram/vllm that referenced this pull request Oct 26, 2026
… MI355X

AITER has tuned fused-MoE configs for the GLM-5.3-Flash fused
shared-expert shape (289 experts, top-k 9) at the TP2 per-rank
intermediate size 1024: block FP8 in ROCm/aiter#6077 and MXFP4 in
ROCm/aiter#6435. Add TP2 to the gate's TP set, so
VLLM_ROCM_USE_AITER_FUSION_SHARED_EXPERTS applies at TP2 too; TP1
stays refused.

Signed-off-by: Sriram Kumar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants