Skip to content

[FlyDSL] mxfp4 MoE stage2 optimization v2 - #4879

Merged
coderfeli merged 10 commits into
ROCm:mainfrom
binding7012:binding_mxfp4_stage2_opt_v2
Aug 21, 2026
Merged

coderfeli merged 10 commits into
ROCm:mainfrom
binding7012:binding_mxfp4_stage2_opt_v2

Conversation

@binding7012

Copy link
Copy Markdown
Contributor

Motivation

mxfp4 MoE stage2 optimization v2

Test Result

AITER_SITUV2_A8W4=1 AITER_FLYDSL_STAGE2_FP8=1 AITER_MOE_EXPERT_BALANCE=true python op_tests/test_moe_2stage.py -q 7 -a situv2 -dim 3584,384 -e 896 -k 16 --no-flydsl-csv -hip 0,0 -t 1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 --kernel

MI355X
image

@binding7012
binding7012 requested a review from a team August 20, 2026 07:44
@github-actions

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; main branch always runs both MI35X and MI300X
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 4879 --add-label <label>

PR title tags:
Component tags ([Triton/Gluon], [HIP], [CK], [ASM], ...) are added to the PR title automatically from the changed files and re-synced on every push — change-type tags like [fix]/[Perf] and op tags like [MLA] are left untouched. Add the no-auto-title label to opt this PR out of title tagging.

@github-actions github-actions Bot changed the title [FlyDSL]mxfp4 MoE stage2 optimization v2 [FlyDSL] mxfp4 MoE stage2 optimization v2 Aug 20, 2026
@binding7012
binding7012 marked this pull request as draft August 20, 2026 07:51
@binding7012
binding7012 marked this pull request as ready for review August 20, 2026 09:13
@coderfeli

Copy link
Copy Markdown
Collaborator

LGTM. @charlieguo1106 help double check

@coderfeli
coderfeli merged commit 078783c into ROCm:main Aug 21, 2026
54 checks passed
HaonanWang98 pushed a commit that referenced this pull request Aug 21, 2026
…layout

Keep branch-owned route/psum/quant-scatter and TDM GEMM kernels so FP8
dispatch + fused ep_route_psum stay compatible; retain main kernarg-preload
hints on the gfx1250 TDM launcher.

Co-authored-by: Cursor <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants