Repository navigation
[MoE] Refresh the legacy dispatch golden for #7611's intermediate_pad - #8790
Conversation
…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]>
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: Reviews: |
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 |
mjkvaak-amd
left a comment
There was a problem hiding this comment.
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.
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]>
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]>
…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]>
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]>
PR Self-Review
Reviewed revision
fa1a2d3
Behavior and intent
Test data only. #7611 (a8de641) passes
intermediate_padtofused_moe.fused_moe_1stage, so every 1-stage record in the legacy MoE dispatch snapshot now carries"intermediate_pad": 0instage1.kw. The golden files were not refreshed with it, andtests/test_moe_dispatch_snapshot.pyfails on main (gfx942: 26191 keys, DIFFERENT: 610 changed). This PR rerunspython tests/moe_dispatch/snapshot.py --update; no code changes.Validation and unverified scope
--checkon main e59d083 reproduces the CI failure: gfx942 610, gfx942_cu80 674, gfx950 846 changed keys, gfx1201 identical; 0 new, 0 missing on every arch.stage1.kw.intermediate_padremoved (and=basevariants resolved), every record equals the previous golden; all 2130 changed keys arefused_moe.fused_moe_1stagerecords gainingintermediate_pad=0; the previous golden has nointermediate_padanywhere. No dispatch decision changed.--update:--checkreports all four arches identical;pytest tests/test_moe_dispatch_snapshot.py: 3 passed (CPU, rocm/atom-dev container, FlyDSL 0.5.3).--updateoutput (key-level summary; the full per-key list is 2130 entries of the same form):PR-specific question
Does any dispatch decision change? No: apart from the added
intermediate_pad=0kwarg, 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.gzchange (gfx1201 unchanged).Motivation
Main's
tests/test_moe_dispatch_snapshot.pyhas failed since #7611 merged; this unblocks it.Changes
tests/moe_dispatch/golden/gfx942.jsonl.gz,gfx942_cu80.jsonl.gz,gfx950.jsonl.gz: regenerated bysnapshot.py --update.Test Plan
See "Validation and unverified scope". cc @qli88 (moev2 owner).
🤖 Generated with Claude Code