Skip to content

[MOE] remove fill(0) in flydsl_moe_stage2 - #3274

Merged
k50112113 merged 4 commits into
mainfrom
shaoclee/remove-moe-fill
May 21, 2026
Merged

k50112113 merged 4 commits into
mainfrom
shaoclee/remove-moe-fill

Conversation

@k50112113

@k50112113 k50112113 commented May 19, 2026 •

Copy link
Copy Markdown
Contributor

This PR removes the .fill(0) in flydsl_moe_stage2 helper function as the moe_sorting kernel already allocates the zero tensor, both are inside the universal fused_moe entry point so the zero tensor should always be allocated

on ATOM side:

local-completions ({'model': '/data/deepseek-ai/DeepSeek-V4-Pro', 'base_url': 'http://localhost:8000/v1/completions', 'num_concurrent': 65, 'max_retries': 2, 'tokenized_requests': False}), gen_kwargs: ({}), limit: 100.0, num_fewshot: 3, batch_size: 1
|Tasks|Version|     Filter     |n-shot|  Metric   |   |Value|   |Stderr|
|-----|------:|----------------|-----:|-----------|---|----:|---|-----:|
|gsm8k|      3|flexible-extract|     3|exact_match|↑  | 0.97|±  |0.0171|
|     |       |strict-match    |     3|exact_match|↑  | 0.97|±  |0.0171|

Baseline
image

The fill kernel between the 2 stages of MOE is gone
image

@k50112113
k50112113 requested a review from a team May 19, 2026 17:04
@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: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 3274 --add-label <label>

@k50112113
k50112113 requested a review from azaidy May 19, 2026 17:22
Comment thread aiter/ops/flydsl/moe_kernels.py Resolved
@k50112113
k50112113 requested a review from lalala-sh May 20, 2026 14:53

@azaidy azaidy 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!

@k50112113
k50112113 merged commit f3ce104 into main May 21, 2026
30 checks passed
@k50112113
k50112113 deleted the shaoclee/remove-moe-fill branch May 21, 2026 14:57
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.

4 participants