Skip to content

[FlyDSL] [gfx1250] [MoE] Run same-repository CI for DSR1 EP4 grouped rows (#8002) - #8262

Open
JiaoliangYu wants to merge 6 commits into
mainfrom
codex/aiter-8002-internal-ci
Open

JiaoliangYu wants to merge 6 commits into
mainfrom
codex/aiter-8002-internal-ci

Conversation

@JiaoliangYu

Copy link
Copy Markdown
Contributor

Summary

Run repository CI for the implementation currently reviewed in #8002. This repository branch points to the same commit, c44bd88e72e9ebeb6eba3c6759bc6781222a70f4, so the configuration and test changes are identical.

The implementation and hardware validation remain tracked in #8002. This PR provides a same-repository CI run for that revision.

Motivation

The fork-based Aiter Test run 44246615201 could not start six standard shards because Docker Hub rejected anonymous image pulls. The latest attempt reran the Gate while retaining those earlier failures. A same-repository PR enables the existing workflow's Docker login steps and allows the actual standard tests to execute.

Changes

  • Add the DeepSeek-R1 gfx1250 EP4 grouped-MoE fused-row configurations and retune the existing token-32768 fused row.
  • Update the existing grouped lookup tests for the selected rows and current compact-dispatch helper interface.
  • Initialize _is_gfx1250=False in the existing CPU allreduce communicator stand-in, which bypasses the real constructor and has no gfx1250 DCP inbox.

Performance (if applicable)

Current-revision hardware performance remains pending. The target workload is 4 homogeneous MI455X/gfx1250 GPUs with 256 CUs each, DSR1 EP4, hidden 7168, intermediate 2048, 256 routed experts plus one fused shared expert per rank, top-8 routing, bf16 output, A4W4 MXFP4, fp4 dispatch and fused stage 1/2. The grouped lookup consumes 65 experts per rank, topk=-1 and ep_fused=1.

The baseline is main 9eb34ee0bcfc8219ec74f5559a8f40a3954e5f31. Current-head reference accuracy, four-rank tensor hashes, token-8192/32768 performance and the token-512 comparison with #8092 are pending. Historical November-13 measurements in #8002 are not claimed as a rerun of this revision.

Testing

  • Unit tests added or updated
  • Current-revision performance benchmarks run
  • Tested on MI250X
  • Tested on MI300X

Black, Ruff and git diff --check passed on the committed test changes. The isolated actual-helper CPU harness passed 12 existing tests with no skips; its import/hardware stand-ins and remaining real execution are explained below. Full same-repository CI is pending.

Documentation

  • No documentation change is needed: these changes add configuration selection coverage and correct an existing CPU test fixture; no public API changes.

Dependencies

  • No new third-party dependencies added

Breaking Changes

None.

PR Self-Review

Reviewed revision

c44bd88

Behavior and intent

DeepSeek-R1 MegaMoE EP4 with a fused shared expert consumes grouped GEMM keys for gfx1250, 256 CUs, hidden 7168, intermediate 2048, 65 experts per rank, topk -1, Silu, bf16 output, MXFP4 A/W, per-1x32 quantization and ep_fused=1. The PR supplies the missing explicit fused rows and retunes the 32768 row. The existing tests are updated for those choices and the current compact-dispatch API. The CPU fused communicator fixture now initializes the architecture flag normally set by its constructor. This branch is the exact #8002 revision; it introduces no additional implementation or workflow changes.

Validation and unverified scope

On Windows/Python 3.12, the checkout's actual lookup/padding/compact helper bodies and existing unittest classes were executed through an isolated AST harness with import dependencies and chip queries stubbed to gfx1250/256 CUs: 12 passed, 0 skipped. The merged grouped family has 597 rows and no duplicate key; this CSV has 72 rows and 48 fields. Plain lookup selections match the pinned main baseline at the tested padded boundaries.

The isolated harness also reproduces the baseline CPU fixture's missing _is_gfx1250 error and constructs both ranks with the committed fixture fix. This is not real Gloo collective or GPU execution. Black, Ruff and git diff --check passed.

Normal execution commands for a ROCm environment are:

GPU_ARCHS=gfx1250 CU_NUM=256 python3 -m unittest op_tests.tuning_tests.test_grouped_ep_fused_lookup -v
python3 -m pytest op_tests/flydsl_tests/test_flydsl_allreduce_rank_agreement.py -q

The earlier fork run passed wheel, basic checks, OPUS and two standard shards; six standard shards failed before op tests because of Docker Hub anonymous pull limits. Its attempt 2 only newly executed the Gate. This PR starts a separate same-repository run; no current result is assumed from its creation.

Current-head gfx1250 EP4 reference accuracy, four-rank output hashes and performance remain unverified. The executable author-side machine package compares this revision with the pinned main baseline and joint #8092 candidates using FlyDSL 0.5.0, actual GEMM lookup records, correctness/hash checks and three performance rounds. Its preparation and dry run are not machine results. Non-uniform routing, other EP sizes and current production MLPerf traces also remain unverified.

PR-specific question

The changed configurations serve expert=65, topk=-1, ep_fused=1 with the model, architecture, dtype and quantization fields above. Duplicate and boundary checks cover the entire grouped family and compare plain ep_fused=0 selection with main. Compact alignment follows the maximum selected GEMM tile_m: 16 at token 512 and 256 at 32768. The token-512 key does not encode S1F mode and is also modified by #8092, so its final choice remains subject to same-workload correctness/hash and performance comparison. Exact commit identity keeps this CI run tied to the source revision reviewed in #8002.

Changed op tests

  • op_tests/tuning_tests/test_grouped_ep_fused_lookup.py: updates the existing CSV selection, fallback and compact alignment coverage to the intended fused rows and current helper interface. It removes the obsolete redundant token-512-default assertion and restores temporary environment overrides. The test is necessary to catch configuration/API drift and does not duplicate GPU performance validation.
  • op_tests/flydsl_tests/test_flydsl_allreduce_rank_agreement.py: initializes _is_gfx1250=False in the existing CPU fused communicator stand-in. It bypasses the real constructor, so the missing initialization prevented existing rank-agreement tests from running. The one-line fixture correction preserves the existing assertions and production allreduce behavior rather than adding redundant tests.

JiaoliangYu and others added 6 commits November 16, 2026 10:21
…p_fused=1 buckets and tuned 8192

MegaMoE looks the grouped GEMM up with ep_fused=1 (GEMM2 does the EP
scatter). For DeepSeek-R1 EP4 (model_dim 7168, inter_dim 2048, 65 experts
per rank, topk -1) the table had ep_fused=1 rows only for tokens 1024, 2048,
4096 and 32768, and the ep_fused=0 rows do not serve the fused path, so the
other buckets missed and kept the caller's default tile.

- tokens 8..512 and 16384: the existing ep_fused=0 rows, with ep_fused=1.
- token 8192: the ep_fused=0 row's tiles with persistent_workers2=512
  (233.57 us).
…d=1 row

Replace the ep_fused=1 token=32768 row from #7726 (hand-set 128x256x256,
w1x4, no measurement) with a measured one: 256x256x256 w2x2, 4/4 buffers,
cluster_n 4, waves 2/1, prefetch, LDS SoA interleave, A preshuffle.
4-GPU EP4 MegaMoE layer (12288 tokens/rank): 2361 -> 1994.5 us, bit-identical.
@JiaoliangYu
JiaoliangYu requested a review from a team November 19, 2026 05:28
@github-actions

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

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

Extended tests (opt-in via labels):

Label Tests
ci:mi300x Run Aiter standard tests on MI300X in PRs; main branch always runs them
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 Radeon R9700 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 8262 --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.

Reviews:
A reviewer is usually assigned within one working day after the PR is ready for review (see Code Review Process). If nobody has responded for about a week, mention the area contact listed in CONTACTS.md. Want to help review? See REVIEWERS.md.

@zufayu

zufayu commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

@aiter-bot review

@aiter-bot

Copy link
Copy Markdown

aiter-bot — queued behind 1 review(s); expect to start in about 30 min. The box reviews one PR at a time.

@aiter-bot

aiter-bot commented Nov 19, 2026 •

Copy link
Copy Markdown

READY FOR HUMAN REVIEW

PR Self-Review

Revision c44bd88e72e9 · mode shadow

Author self-review accepted. Readiness report:

Author answers

  • PASS — current-SHA answers are present and structurally specific
Show the author's self-review answers

Behavior and intent

DeepSeek-R1 MegaMoE EP4 with a fused shared expert consumes grouped GEMM keys for gfx1250, 256 CUs, hidden 7168, intermediate 2048, 65 experts per rank, topk -1, Silu, bf16 output, MXFP4 A/W, per-1x32 quantization and ep_fused=1. The PR supplies the missing explicit fused rows and retunes the 32768 row. The existing tests are updated for those choices and the current compact-dispatch API. The CPU fused communicator fixture now initializes the architecture flag normally set by its constructor. This branch is the exact #8002 revision; it introduces no additional implementation or workflow changes.

Validation and unverified scope

On Windows/Python 3.12, the checkout's actual lookup/padding/compact helper bodies and existing unittest classes were executed through an isolated AST harness with import dependencies and chip queries stubbed to gfx1250/256 CUs: 12 passed, 0 skipped. The merged grouped family has 597 rows and no duplicate key; this CSV has 72 rows and 48 fields. Plain lookup selections match the pinned main baseline at the tested padded boundaries.

The isolated harness also reproduces the baseline CPU fixture's missing `_is_gfx1250` error and constructs both ranks with the committed fixture fix. This is not real Gloo collective or GPU execution. Black, Ruff and `git diff --check` passed.

Normal execution commands for a ROCm environment are:

```bash
GPU_ARCHS=gfx1250 CU_NUM=256 python3 -m unittest op_tests.tuning_tests.test_grouped_ep_fused_lookup -v
python3 -m pytest op_tests/flydsl_tests/test_flydsl_allreduce_rank_agreement.py -q
```

The earlier fork run passed wheel, basic checks, OPUS and two standard shards; six standard shards failed before op tests because of Docker Hub anonymous pull limits. Its attempt 2 only newly executed the Gate. This PR starts a separate same-repository run; no current result is assumed from its creation.

Current-head gfx1250 EP4 reference accuracy, four-rank output hashes and performance remain unverified. The executable author-side machine package compares this revision with the pinned main baseline and joint #8092 candidates using FlyDSL 0.5.0, actual GEMM lookup records, correctness/hash checks and three performance rounds. Its preparation and dry run are not machine results. Non-uniform routing, other EP sizes and current production MLPerf traces also remain unverified.

PR-specific question

The changed configurations serve expert=65, topk=-1, ep_fused=1 with the model, architecture, dtype and quantization fields above. Duplicate and boundary checks cover the entire grouped family and compare plain ep_fused=0 selection with main. Compact alignment follows the maximum selected GEMM tile_m: 16 at token 512 and 256 at 32768. The token-512 key does not encode S1F mode and is also modified by #8092, so its final choice remains subject to same-workload correctness/hash and performance comparison. Exact commit identity keeps this CI run tied to the source revision reviewed in #8002.

Changed op tests

- `op_tests/tuning_tests/test_grouped_ep_fused_lookup.py`: updates the existing CSV selection, fallback and compact alignment coverage to the intended fused rows and current helper interface. It removes the obsolete redundant token-512-default assertion and restores temporary environment overrides. The test is necessary to catch configuration/API drift and does not duplicate GPU performance validation.
- `op_tests/flydsl_tests/test_flydsl_allreduce_rank_agreement.py`: initializes `_is_gfx1250=False` in the existing CPU fused communicator stand-in. It bypasses the real constructor, so the missing initialization prevented existing rank-agreement tests from running. The one-line fixture correction preserves the existing assertions and production allreduce behavior rather than adding redundant tests.

PR state

  • PASS — pull request is marked ready for review

Copilot findings

  • PASS — no active Copilot finding lacks a substantive author reply
  • ADVISORY — Copilot did not review the current head SHA

Code and op-test hygiene

  • PASS — no committed artifact or conflict marker detected

Required CI

  • PASS — Black: passed
  • PASS — Ruff: passed
  • PASS — Repository dependency: passed
  • PASS — Aiter Test Gate: passed

Shadow mode reports what would block but keeps the status successful. Set AITER_PR_SELF_REVIEW_MODE=enforce only after reviewing real false positives.

@aiter-bot

Copy link
Copy Markdown

⚠️ aiter-bot — this review could not complete: a problem with the review pipeline itself (bot logic / prompts), not with this PR.

prompts drifted from SKILL.md -- regenerate the prompt copies (check_prompts.py)

@zufayu — please take a look.

Re-comment @aiter-bot review once it is resolved.

This branch has not been deployed

No deployments
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.

4 participants