Repository navigation
[FlyDSL] [gfx1250] [MoE] Run same-repository CI for DSR1 EP4 grouped rows (#8002) - #8262
JiaoliangYu wants to merge 6 commits into
Conversation
…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.
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: Reviews: |
|
@aiter-bot review |
|
aiter-bot — queued behind 1 review(s); expect to start in about 30 min. The box reviews one PR at a time. |
READY FOR HUMAN REVIEWPR Self-ReviewRevision Author self-review accepted. Readiness report: Author answers
Show the author's self-review answersBehavior and intentValidation and unverified scopePR-specific questionChanged op testsPR state
Copilot findings
Code and op-test hygiene
Required CI
Shadow mode reports what would block but keeps the status successful. Set |
@zufayu — please take a look. Re-comment |
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
_is_gfx1250=Falsein 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=-1andep_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
Black, Ruff and
git diff --checkpassed 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
Dependencies
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_gfx1250error and constructs both ranks with the committed fixture fix. This is not real Gloo collective or GPU execution. Black, Ruff andgit diff --checkpassed.Normal execution commands for a ROCm environment are:
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=Falsein 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.