Skip to content

[MoE] Refresh the legacy dispatch golden for #7611's intermediate_pad - #8790

Merged
zufayu merged 1 commit into
mainfrom
ghu/moe_dispatch_golden_7611
Nov 27, 2026
Merged

zufayu merged 1 commit into
mainfrom
ghu/moe_dispatch_golden_7611

Conversation

@GwilliamHu

Copy link
Copy Markdown
Member

PR Self-Review

Reviewed revision

fa1a2d3

Behavior and intent

Test data only. #7611 (a8de641) passes intermediate_pad to fused_moe.fused_moe_1stage, so every 1-stage record in the legacy MoE dispatch snapshot now carries "intermediate_pad": 0 in stage1.kw. The golden files were not refreshed with it, and tests/test_moe_dispatch_snapshot.py fails on main (gfx942: 26191 keys, DIFFERENT: 610 changed). This PR reruns python tests/moe_dispatch/snapshot.py --update; no code changes.

Validation and unverified scope

  • --check on main e59d083 reproduces the CI failure: gfx942 610, gfx942_cu80 674, gfx950 846 changed keys, gfx1201 identical; 0 new, 0 missing on every arch.
  • Checked by script over all four arches: with stage1.kw.intermediate_pad removed (and =base variants resolved), every record equals the previous golden; all 2130 changed keys are fused_moe.fused_moe_1stage records gaining intermediate_pad=0; the previous golden has no intermediate_pad anywhere. No dispatch decision changed.
  • After --update: --check reports all four arches identical; pytest tests/test_moe_dispatch_snapshot.py: 3 passed (CPU, rocm/atom-dev container, FlyDSL 0.5.3).
  • Not covered: nothing beyond the snapshot test; no GPU run is involved.

--update output (key-level summary; the full per-key list is 2130 entries of the same form):

gfx942: 26191 keys, 610 changed, 0 new, 0 missing
gfx942_cu80: 32928 keys, 674 changed, 0 new, 0 missing
gfx950: 32363 keys, 846 changed, 0 new, 0 missing
gfx1201: 25684 keys, unchanged

~ changed: grid|base|M=1024|H=2048|I=768|E=128|k=8|Gelu|bfloat16|float8_e4m3fnuz|float8_e4m3fnuz|per_Token|g1u1=1|dw=0|gate=SEPARATED
    golden: {"block_m": 32, "ksplit": 0, "run_1stage": true, "stage1": {"fn": "fused_moe.fused_moe_1stage", "kw": {"activation": "ActivationType.Gelu", "flat": 0, "kernelName": "", "quant_type": "QuantType.per_Token", "xbf16": false}}, "stage2": null, "type": "MOEMetadata"}
    now:    {"block_m": 32, "ksplit": 0, "run_1stage": true, "stage1": {"fn": "fused_moe.fused_moe_1stage", "kw": {"activation": "ActivationType.Gelu", "flat": 0, "intermediate_pad": 0, "kernelName": "", "quant_type": "QuantType.per_Token", "xbf16": false}}, "stage2": null, "type": "MOEMetadata"}

PR-specific question

Does any dispatch decision change? No: apart from the added intermediate_pad=0 kwarg, every record on every arch is identical to the previous golden.

Changed op tests

None. Only tests/moe_dispatch/golden/{gfx942,gfx942_cu80,gfx950}.jsonl.gz change (gfx1201 unchanged).

Motivation

Main's tests/test_moe_dispatch_snapshot.py has failed since #7611 merged; this unblocks it.

Changes

  • tests/moe_dispatch/golden/gfx942.jsonl.gz, gfx942_cu80.jsonl.gz, gfx950.jsonl.gz: regenerated by snapshot.py --update.

Test Plan

See "Validation and unverified scope". cc @qli88 (moev2 owner).

🤖 Generated with Claude Code

…termediate_pad

a8de641 (#7611) passes intermediate_pad to fused_moe.fused_moe_1stage, so
every 1-stage record now carries `"intermediate_pad": 0` in stage1.kw and
tests/test_moe_dispatch_snapshot.py fails on main. No dispatch decision
changed: stripping that kwarg, all records match the previous golden on every
arch (and the old golden has no intermediate_pad anywhere).

`python tests/moe_dispatch/snapshot.py --update`:

  gfx942: 26191 keys, 610 changed, 0 new, 0 missing
  gfx942_cu80: 32928 keys, 674 changed, 0 new, 0 missing
  gfx950: 32363 keys, 846 changed, 0 new, 0 missing
  gfx1201: 25684 keys, unchanged

All 2130 changed keys are fused_moe_1stage records gaining intermediate_pad=0,
for example:

  ~ changed: grid|base|M=1024|H=2048|I=768|E=128|k=8|Gelu|bfloat16|float8_e4m3fnuz|float8_e4m3fnuz|per_Token|g1u1=1|dw=0|gate=SEPARATED
      golden: {..., "stage1": {"fn": "fused_moe.fused_moe_1stage", "kw": {"activation": "ActivationType.Gelu", "flat": 0, "kernelName": "", ...}}, ...}
      now:    {..., "stage1": {"fn": "fused_moe.fused_moe_1stage", "kw": {"activation": "ActivationType.Gelu", "flat": 0, "intermediate_pad": 0, "kernelName": "", ...}}, ...}

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@GwilliamHu
GwilliamHu requested a review from a team November 27, 2026 03:17
@github-actions github-actions Bot changed the title [CI] [MoE] Refresh the legacy dispatch golden for #7611's intermediate_pad [MoE] Refresh the legacy dispatch golden for #7611's intermediate_pad Nov 27, 2026
@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 8790 --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.

@aiter-bot

Copy link
Copy Markdown

READY FOR HUMAN REVIEW

PR Self-Review

Revision fa1a2d3596ab · 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

Test data only. #7611 (a8de6413bc) passes `intermediate_pad` to `fused_moe.fused_moe_1stage`, so every 1-stage record in the legacy MoE dispatch snapshot now carries `"intermediate_pad": 0` in `stage1.kw`. The golden files were not refreshed with it, and `tests/test_moe_dispatch_snapshot.py` fails on main (`gfx942: 26191 keys, DIFFERENT: 610 changed`). This PR reruns `python tests/moe_dispatch/snapshot.py --update`; no code changes.

Validation and unverified scope

- `--check` on main e59d08386e reproduces the CI failure: gfx942 610, gfx942_cu80 674, gfx950 846 changed keys, gfx1201 identical; 0 new, 0 missing on every arch.
- Checked by script over all four arches: with `stage1.kw.intermediate_pad` removed (and `=base` variants resolved), every record equals the previous golden; all 2130 changed keys are `fused_moe.fused_moe_1stage` records gaining `intermediate_pad=0`; the previous golden has no `intermediate_pad` anywhere. No dispatch decision changed.
- After `--update`: `--check` reports all four arches identical; `pytest tests/test_moe_dispatch_snapshot.py`: 3 passed (CPU, rocm/atom-dev container, FlyDSL 0.5.3).
- Not covered: nothing beyond the snapshot test; no GPU run is involved.

`--update` output (key-level summary; the full per-key list is 2130 entries of the same form):

```
gfx942: 26191 keys, 610 changed, 0 new, 0 missing
gfx942_cu80: 32928 keys, 674 changed, 0 new, 0 missing
gfx950: 32363 keys, 846 changed, 0 new, 0 missing
gfx1201: 25684 keys, unchanged

~ changed: grid|base|M=1024|H=2048|I=768|E=128|k=8|Gelu|bfloat16|float8_e4m3fnuz|float8_e4m3fnuz|per_Token|g1u1=1|dw=0|gate=SEPARATED
    golden: {"block_m": 32, "ksplit": 0, "run_1stage": true, "stage1": {"fn": "fused_moe.fused_moe_1stage", "kw": {"activation": "ActivationType.Gelu", "flat": 0, "kernelName": "", "quant_type": "QuantType.per_Token", "xbf16": false}}, "stage2": null, "type": "MOEMetadata"}
    now:    {"block_m": 32, "ksplit": 0, "run_1stage": true, "stage1": {"fn": "fused_moe.fused_moe_1stage", "kw": {"activation": "ActivationType.Gelu", "flat": 0, "intermediate_pad": 0, "kernelName": "", "quant_type": "QuantType.per_Token", "xbf16": false}}, "stage2": null, "type": "MOEMetadata"}
```

PR-specific question

Does any dispatch decision change? No: apart from the added `intermediate_pad=0` kwarg, every record on every arch is identical to the previous golden.

Changed op tests

None. Only `tests/moe_dispatch/golden/{gfx942,gfx942_cu80,gfx950}.jsonl.gz` change (gfx1201 unchanged).

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.

@mjkvaak-amd mjkvaak-amd 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.

Thanks for the fix. I added intermediate_pad to the fused_moe_1stage calls in #7611 and never refreshed this golden, so the miss is on my side.

@zufayu
zufayu merged commit 55abe98 into main Nov 27, 2026
52 checks passed
@zufayu
zufayu deleted the ghu/moe_dispatch_golden_7611 branch November 27, 2026 05:58
@GwilliamHu
GwilliamHu removed the request for review from coderfeli November 27, 2026 06:12
AndreasKaratzas added a commit to AndreasKaratzas/aiter that referenced this pull request Nov 28, 2026
Picks up ROCm#8790, which refreshes the MoE dispatch golden that failed
tests/test_moe_dispatch_snapshot.py on the previous head.

Signed-off-by: Andreas Karatzas <[email protected]>
Co-Authored-By: Claude Code <[email protected]>
ganyi1996ppo added a commit to ganyi1996ppo/aiter that referenced this pull request Nov 30, 2026
Pick up ROCm#8790's regenerated MoE-dispatch golden (intermediate_pad field from
ROCm#7611) so the shard-2 'test_legacy_dispatch_matches_golden_snapshot' gate clears.
This branch only touches the a16wfp4 Triton path, disjoint from the golden.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
vedenev-amd added a commit that referenced this pull request Nov 30, 2026
…apshot fix (#8790) and clear the conflicts with main.

The three conflicts keep both sides: main's MiniMax exports, ring catalog and policy_runs_on next to the decode exports, candidates and launch helpers. Main's ring tuning (#8675) dropped the early return for preshuffled shapes, which had kept decode candidates out of them; the tuner now skips decode candidates when is_shuffle, since decode kernels read the plain weight and the runtime rejects a preshuffled decode row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
sumin-hong added a commit to moreh-dev/rocm-aiter that referenced this pull request Dec 3, 2026
Merge upstream main 7c0f525 and retain the paged MQA registration with
new upstream operators, including fused_indexed_gated_residual (ROCm#6417).
Keep the current header and JIT registrations outside this operator intact.

Include ROCm#8790's MoE dispatch snapshot refresh, absent from the old head.
The paged kernel, wrapper, runtime architecture gate, native ABI and op test
are unchanged. CPU adapter checks (24), source/registration comparisons,
Black 26.10.1, Ruff 0.16.0 and changed-line clang-format 18.1.8 passed.
No new local GPU, ISA, model, benchmark or E2E run was performed.

Co-authored-by: OpenAI Codex <[email protected]>
Signed-off-by: Sumin Hong <[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.

4 participants