Skip to content

[FlyDSL] [JIT] mega_moe_tp: unified path and big-M optimizations - #6514

Merged
coderfeli merged 23 commits into
mainfrom
binding_mega_moe_tp_opt_v1
Oct 20, 2026
Merged

coderfeli merged 23 commits into
mainfrom
binding_mega_moe_tp_opt_v1

Conversation

@binding7012

@binding7012 binding7012 commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Mega_Moe_TP optimization

Test result

MI355X
M3 model MoE-only time:
image

MiniMax M3 model e2e 32k token perf
image

@binding7012
binding7012 requested a review from a team October 14, 2026 02:33
@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 (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
ci:windows Windows JIT op smoke test on the gfx1201 ROCm runner
ci:multi-gpu 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: DeepSeek-V4-Pro, MiniMax-M3-MXFP4
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 6514 --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 mega_moe_tp: unified big-M path (bigm_layer / bigm_gemm, SDMA), tuned… [FlyDSL] mega_moe_tp: unified big-M path (bigm_layer / bigm_gemm, SDMA), tuned… Oct 14, 2026

@github-actions github-actions Bot 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.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

ruff

⚠️ [ruff] <F401> reported by reviewdog 🐶
.bigm_gemm.bigm_lds imported but unused

from .bigm_gemm import bigm_lds


⚠️ [ruff] <I001> reported by reviewdog 🐶
Import block is un-sorted or un-formatted

import aiter
import torch


⚠️ [ruff] <F401> reported by reviewdog 🐶
flydsl.expr.range_constexpr imported but unused

from flydsl.expr import range_constexpr


⚠️ [ruff] <I001> reported by reviewdog 🐶
Import block is un-sorted or un-formatted

from mori.cco import CCODevCommRequirements, Communicator, GDA_CONNECTION_NONE
from mori.cco.device.bitcode import find_cco_bitcode


⚠️ [ruff] <B008> reported by reviewdog 🐶
Do not perform function call fx.Stream in argument defaults; instead, perform the call within the function, or read the default from a module-level singleton variable

def post_serial(dc: Int64, win: Int64, tab: Int64, n: fx.Int32, stream=fx.Stream(None)):


⚠️ [ruff] <B008> reported by reviewdog 🐶
Do not perform function call fx.Stream in argument defaults; instead, perform the call within the function, or read the default from a module-level singleton variable

def post(dc: Int64, win: Int64, tab: Int64, n: fx.Int32, stream=fx.Stream(None)):


⚠️ [ruff] <B008> reported by reviewdog 🐶
Do not perform function call fx.Stream in argument defaults; instead, perform the call within the function, or read the default from a module-level singleton variable

dc: Int64, tab: Int64, n: fx.Int32, consumed: Int64, nq: fx.Int32, stream=fx.Stream(None)


⚠️ [ruff] <UP037> reported by reviewdog 🐶
Remove quotes from type annotation

def commit(self) -> "SdmaComm":


⚠️ [ruff] <C408> reported by reviewdog 🐶
Unnecessary dict() call (rewrite as a literal)

self._bigm_args = dict(
w1=w1, w1_scale=w1_scale, w2=w2, w2_scale=w2_scale, group=group, device=device
)

@binding7012 binding7012 changed the title [FlyDSL] mega_moe_tp: unified big-M path (bigm_layer / bigm_gemm, SDMA), tuned… [FlyDSL] mega_moe_tp: unified big-M path and optimizations Oct 14, 2026
@binding7012
binding7012 requested a review from coderfeli October 16, 2026 03:47
@github-actions github-actions Bot changed the title [FlyDSL] mega_moe_tp: unified big-M path and optimizations [FlyDSL] [JIT] mega_moe_tp: unified big-M path and optimizations Oct 19, 2026
@github-actions github-actions Bot added the JIT label Oct 19, 2026
@binding7012 binding7012 changed the title [FlyDSL] [JIT] mega_moe_tp: unified big-M path and optimizations [FlyDSL] [JIT] mega_moe_tp: unified path and big-M optimizations Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants