Repository navigation
[Triton/Gluon] Use the gfx1250 Gluon fused all-reduce + RMSNorm in fused_allreduce_rmsnorm - #6974
Conversation
Removed license and copyright comments from all_reduce.py
Removed SPDX license and copyright notice from the file.
There was a problem hiding this comment.
🟡 Changes recommended
Shared state can accept stale data across hidden widths, and initialization and tensor eligibility checks remain incomplete.
No open issues 🎉
What changed in this PR
This PR connects the existing Gluon fused all-reduce, residual-add, and RMSNorm kernel to aiter’s tensor-parallel API, allowing ATOM callers to opt in without code changes.
Changes:
- Adds environment-controlled Gluon initialization and shared state for reused four-rank communicators.
- Routes eligible bf16 calls up to 2 MiB through Gluon while retaining existing fallback paths.
- Adds a multi-GPU dispatch test covering 1–512 tokens.
| File | Description |
|---|---|
op_tests/multigpu_tests/triton_test/test_all_reduce_rmsnorm_quant.py |
Adds end-to-end dispatch and numerical checks. |
aiter/dist/device_communicators/communicator_cuda.py |
Initializes shared Gluon state and adds fused-operation dispatch. |
Review effort: Balanced
There was a problem hiding this comment.
🟡 Changes recommended
Gluon can reuse incompatible hidden-size state, initialize on the wrong GPU or across hosts, and exceed documented dispatch limits, while the multi-GPU CI entry point skips the new integration test.
1 open issue
Review effort: Balanced
There was a problem hiding this comment.
🟡 Changes recommended
The new dispatch can incorrectly initialize HIP IPC for cross-node groups and reuse fixed-width state across different hidden widths, causing runtime failures in otherwise supported workloads.
1 open issue
1 resolved since last review
Review effort: Balanced
…sed_allreduce_rmsnorm (#6974) * satya/gluon_allreduce_1250
…sed_allreduce_rmsnorm (ROCm#6974) * satya/gluon_allreduce_1250
…ute up to hidden 2048 where Lamport runs With the Gluon all-reduce on (TP4), fused_allreduce_rmsnorm took the Gluon power-of-2 AR + RMSNorm (all_reduce_rmsnorm_quant, #6974) for every power-of-2 hidden up to 8 MiB, ahead of the Gluon per-token kernel and the Lamport one-shot, which came later (#7499). At hidden 4096 / 8192 it took 1.02-1.63x / 1.45-4.85x the time of those routes (4x MI455X, TP4, CUDA graphs, 1 row to the 8 MiB cap); at 1024 / 2048 it stays the faster route. Where the Lamport one-shot can take the call, the power-of-2 route now stops at hidden 2048 (_GLUON_AR_MAX_HIDDEN_WITH_LAMPORT) and larger hidden sizes take the routes after it: the Gluon per-token kernel up to 128 rows, then Lamport. Their bf16 output bits differ from the power-of-2 kernel's in the last place (another reduction order). Co-Authored-By: Claude Opus 5.5 <[email protected]>

ATOM runs the TP all-reduce + residual add + RMSNorm through aiter's
tensor_model_parallel_fused_allreduce_rmsnorm, and the other TP all-reduces throughtensor_model_parallel_all_reduce. This PR lets both calls use the Gluon kernels of #6923 on gfx1250 with 4 ranks, so callers need no code change.