Skip to content

[Test] test_ar_norm_precedence: give the stand-in should_fly_allreduce_rmsnorm - #8313

Merged
zufayu merged 1 commit into
mainfrom
users/bartgips/fix-ar-norm-stand-in
Nov 20, 2026
Merged

zufayu merged 1 commit into
mainfrom
users/bartgips/fix-ar-norm-stand-in

Conversation

@amd-bartgips

@amd-bartgips amd-bartgips commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

tests/test_ar_rmsnorm_routing.py::test_ar_norm_precedence[False-341-6152-False-True-custom_fused] fails on main with AttributeError: 'types.SimpleNamespace' object has no attribute 'should_fly_allreduce_rmsnorm'. This fixes the test's stand-in. No library code changes.

Motivation

#5670 made fused_allreduce_rmsnorm ask each communicator should_fly_allreduce_rmsnorm() before the paths this test checks (communicator_cuda.py:501). The CustomAllreduce stand-in that #8022 added binds only can_fuse_ar_rms, should_fuse_ar_rms and should_lamport_ar_rms. A non-quant call past the Gluon limit reaches the FlyDSL check and raises. #8022's last CI ran on Nov 17 on a base without #5670, which merged about two hours later.

Every PR into main whose Aiter tests run now fails Standard Tests (MI35X, 8, 0) in its "Focused regression tests" step, and with it the required Aiter Test Gate. Example: #5762.

cc @vpietila-amd, since #5670 added the should_fly_allreduce_rmsnorm call.

Changes

  • The stand-in sets _fly_rms=None and binds the real CustomAllreduce.should_fly_allreduce_rmsnorm, like the other gates. None is the production value on gfx1250, where the FlyDSL fused engine does not build, so the gate returns False and the case reaches custom_fused as intended.

Testing

  • Unit tests added or updated
  • Performance benchmarks run
  • Tested on MI250X
  • Tested on MI300X

Documentation

  • No documentation change is needed, with the reason stated below

Test-only change.

Dependencies

  • No new third-party dependencies added

Breaking Changes

None

PR Self-Review

Reviewed revision

06ae37f79

Behavior and intent

The test's CustomAllreduce stand-in gains the should_fly_allreduce_rmsnorm gate that fused_allreduce_rmsnorm has called since #5670. Without it the custom_fused case past the Gluon limit raises AttributeError and fails shard 0 and the Aiter Test Gate on every PR into main that runs Aiter tests. No library behavior changes.

Validation and unverified scope

On main 8c289b7d6, one MI355X, python3 -m pytest -q tests/test_ar_rmsnorm_routing.py (as the "Focused regression tests" CI step runs tests/): 30 passed. Without this change: 1 failed (the case above), 29 passed. The test uses a stub communicator and mocked kernels, so no gfx1250 or multi-GPU run is involved; the rest of tests/ was not run.

PR-specific question

The boundary is what the stand-in claims about the FlyDSL engine. It binds the real gate with _fly_rms=None, which is the production value on gfx1250 (the engine builds only on gfx942/gfx950 with AITER_FLY_AR=1), so the test still checks the gfx1250 routing it was written for. A stand-in lambda returning False would also pass but would stop following the real gate.

Changed op tests

None

…e_rmsnorm

#5670 made fused_allreduce_rmsnorm ask each communicator
should_fly_allreduce_rmsnorm() before the paths this test checks. The
CustomAllreduce stand-in from #8022 binds only the other routing gates,
so the custom_fused case past the Gluon limit raised AttributeError.
#8022's last CI ran on a base without #5670.

Bind the real gate with _fly_rms=None, which is its value on gfx1250,
where the FlyDSL fused engine does not build.
@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 8313 --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.

@amd-bartgips
amd-bartgips marked this pull request as ready for review November 19, 2026 15:42
@amd-bartgips
amd-bartgips requested a review from a team November 19, 2026 15:42
@aiter-bot

Copy link
Copy Markdown

READY FOR HUMAN REVIEW

PR Self-Review

Revision 06ae37f799ba · 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

The test's `CustomAllreduce` stand-in gains the `should_fly_allreduce_rmsnorm` gate that `fused_allreduce_rmsnorm` has called since #5670. Without it the `custom_fused` case past the Gluon limit raises `AttributeError` and fails shard 0 and the Aiter Test Gate on every PR into main that runs Aiter tests. No library behavior changes.

Validation and unverified scope

On main `8c289b7d6`, one MI355X, `python3 -m pytest -q tests/test_ar_rmsnorm_routing.py` (as the "Focused regression tests" CI step runs `tests/`): 30 passed. Without this change: 1 failed (the case above), 29 passed. The test uses a stub communicator and mocked kernels, so no gfx1250 or multi-GPU run is involved; the rest of `tests/` was not run.

PR-specific question

The boundary is what the stand-in claims about the FlyDSL engine. It binds the real gate with `_fly_rms=None`, which is the production value on gfx1250 (the engine builds only on gfx942/gfx950 with `AITER_FLY_AR=1`), so the test still checks the gfx1250 routing it was written for. A stand-in lambda returning `False` would also pass but would stop following the real gate.

Changed op tests

None

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.

@zufayu
zufayu merged commit 67a2084 into main Nov 20, 2026
@zufayu
zufayu deleted the users/bartgips/fix-ar-norm-stand-in branch November 20, 2026 01:17
vgokhale added a commit that referenced this pull request Nov 20, 2026
Bring in main 008d53c. It has #8313, the fix of
tests/test_ar_rmsnorm_routing.py that failed in the 1-GPU CI job.
There are no conflicts.

Signed-off-by: Vinayak Gokhale <[email protected]>
vgokhale added a commit that referenced this pull request Nov 20, 2026
Bring in main 008d53c. It has #8313, the fix of
tests/test_ar_rmsnorm_routing.py that failed in the 1-GPU CI job.
There are no conflicts.

Signed-off-by: Vinayak Gokhale <[email protected]>
vgokhale added a commit that referenced this pull request Nov 20, 2026
Bring in 74c83bc of #7792, which merges main 008d53c. Main has #8313, the
fix of tests/test_ar_rmsnorm_routing.py that failed in the 1-GPU CI
job. There are no conflicts.

Signed-off-by: Vinayak Gokhale <[email protected]>
vgokhale added a commit that referenced this pull request Nov 20, 2026
Bring in 74c83bc of #7792, which merges main 008d53c. Main has #8313, the
fix of tests/test_ar_rmsnorm_routing.py that failed in the 1-GPU CI
job. There are no conflicts.

Signed-off-by: Vinayak Gokhale <[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.

3 participants