Repository navigation
[Triton/Gluon] Add gfx1250 Gluon fused all-reduce + residual add + RMSNorm + fp8 group quant - #6924
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
a06f38a to
5cd4c12
Compare
There was a problem hiding this comment.
🔵 Needs a closer look
Rank-local compilation barriers can block valid calls, and unchecked output layouts can produce incorrect results.
No open issues 🎉
What changed in this PR
Adds a four-rank gfx1250 Gluon operation that combines all-reduce, residual addition, RMSNorm and optional group quantization in one launch for tensor-parallel inference.
Changes:
- Adds one-shot and two-shot kernels with HIP IPC scratch buffers and device epochs for graph replay.
- Adds token-based configuration and makes communication packages importable without Iris.
- Adds multi-GPU correctness tests and benchmarks against existing communication paths.
| File | Description |
|---|---|
op_tests/op_benchmarks/triton/bench_all_reduce_rmsnorm_quant.py |
Benchmarks fused and existing paths. |
op_tests/multigpu_tests/triton_test/test_all_reduce_rmsnorm_quant.py |
Tests outputs, graph replay and timeouts. |
aiter/ops/triton/README.md |
Documents the comms config category. |
aiter/ops/triton/configs/gfx1250/gluon/comms/all_reduce_rmsnorm_quant/DEFAULT.json |
Selects protocol and warp count by token count. |
aiter/ops/triton/configs/AGENTS.md |
Adds comms to config layout guidance. |
aiter/ops/triton/comms/fused/all_reduce_rmsnorm_quant.py |
Adds the host API, IPC lifecycle and launch logic. |
aiter/ops/triton/comms/fused/__init__.py |
Makes Iris-based fused exports optional. |
aiter/ops/triton/comms/__init__.py |
Allows package imports without Iris. |
aiter/ops/triton/_gluon_kernels/gfx1250/comms/fused/all_reduce_rmsnorm_quant.py |
Implements fused communication, normalization and quantization. |
aiter/ops/triton/__init__.py |
Updates optional communication exports. |
Review effort: Balanced
67444a0 to
153d815
Compare
5cd4c12 to
dd90e51
Compare
153d815 to
46880f0
Compare
dd90e51 to
cc8cabe
Compare
46880f0 to
1e4f3a2
Compare
cc8cabe to
f68fb43
Compare
f68fb43 to
2282b0b
Compare
In tensor-parallel decode, a residual add and an RMSNorm come after each all-reduce. Qwen3.5-35B-A3B at TP4 does this 81 times in each decode step, with a Gemma RMSNorm and no quant. Today this takes 2 launches: the RCCL all-reduce, then
add_rmsnorm. At 8 tokens they take ~9 us together. The aiter fused CAR path (ar_ll_rms_gfx1250) takes 8.5 us. This PR does the all-reduce, the add, the RMSNorm and an optional fp8 group quant in one Gluon launch. It takes 5 us at 8 tokens.add_rmsnorm.