Repository navigation
[Test] test_ar_norm_precedence: give the stand-in should_fly_allreduce_rmsnorm - #8313
Conversation
…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.
🏷️ 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 |
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]>
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]>
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]>
Summary
tests/test_ar_rmsnorm_routing.py::test_ar_norm_precedence[False-341-6152-False-True-custom_fused]fails on main withAttributeError: '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_rmsnormask each communicatorshould_fly_allreduce_rmsnorm()before the paths this test checks (communicator_cuda.py:501). TheCustomAllreducestand-in that #8022 added binds onlycan_fuse_ar_rms,should_fuse_ar_rmsandshould_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 requiredAiter Test Gate. Example: #5762.cc @vpietila-amd, since #5670 added the
should_fly_allreduce_rmsnormcall.Changes
_fly_rms=Noneand binds the realCustomAllreduce.should_fly_allreduce_rmsnorm, like the other gates.Noneis the production value on gfx1250, where the FlyDSL fused engine does not build, so the gate returnsFalseand the case reachescustom_fusedas intended.Testing
Documentation
Test-only change.
Dependencies
Breaking Changes
None
PR Self-Review
Reviewed revision
06ae37f79Behavior and intent
The test's
CustomAllreducestand-in gains theshould_fly_allreduce_rmsnormgate thatfused_allreduce_rmsnormhas called since #5670. Without it thecustom_fusedcase past the Gluon limit raisesAttributeErrorand 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 runstests/): 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 oftests/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 withAITER_FLY_AR=1), so the test still checks the gfx1250 routing it was written for. A stand-in lambda returningFalsewould also pass but would stop following the real gate.Changed op tests
None