Skip to content

[Triton/Gluon] Add gfx1250 Gluon fused all-reduce + residual add + RMSNorm + fp8 group quant - #6924

Merged
azaidy merged 1 commit into
satya/gluon_allreduce_1250from
satya/gluon_allreduce_rmsnorm_quant_1250
Oct 27, 2026
Merged

azaidy merged 1 commit into
satya/gluon_allreduce_1250from
satya/gluon_allreduce_rmsnorm_quant_1250

Conversation

@Boss2002n

@Boss2002n Boss2002n commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • The receiver of a row has the sum of the whole row. So it adds the residual, normalizes the row and, if configured, quantizes it before it stores anything.
  • The all-reduce result is rounded to bf16. Its sum with the residual stays fp32 for the norm, as in aiter's add_rmsnorm.
  • fp8 group quant: float8_e4m3fn, with one fp32 scale for each 128 values.
  • Each lane moves one 16-byte line, with at most 16 waves for each row.
Tokens Gluon Gluon + fp8 RCCL + add_rmsnorm CAR + add_rmsnorm aiter fused CAR Speedup vs RCCL + add_rmsnorm
2 4.72 4.76 8.14 9.27 8.06 1.72x
4 4.93 5.02 8.57 9.65 8.43 1.74x
8 5.05 5.27 8.88 9.96 8.57 1.76x
64 5.88 6.07 9.89 11.12 9.61 1.68x
128 6.84 7.10 10.99 12.83 10.91 1.61x
256 10.28 10.63 13.14 16.09 13.62 1.28x
512 16.28 15.91 22.69 23.99 22.55 1.39x
1024 24.28 25.47 25.41 36.29 32.49 1.05x
2048 45.42 48.08 31.63 94.19 87.69 0.70x

@Boss2002n Boss2002n self-assigned this Oct 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
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 gfx1201 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 6924 --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.

@Boss2002n
Boss2002n requested a balanced review from Copilot October 26, 2026 01:33
@Boss2002n
Boss2002n force-pushed the satya/gluon_allreduce_rmsnorm_quant_1250 branch from a06f38a to 5cd4c12 Compare October 26, 2026 01:37
@Boss2002n Boss2002n changed the title [Triton/Gluon] Add gfx1250 Gluon fused all-reduce + residual add + RMSNorm + group quant [Triton/Gluon] Add gfx1250 Gluon fused all-reduce + residual add + RMSNorm + fp8 group quant Oct 26, 2026
@Boss2002n
Boss2002n changed the base branch from main to satya/gluon_allreduce_1250 October 26, 2026 01:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

@Boss2002n
Boss2002n force-pushed the satya/gluon_allreduce_1250 branch from 67444a0 to 153d815 Compare October 26, 2026 02:25
@Boss2002n
Boss2002n force-pushed the satya/gluon_allreduce_rmsnorm_quant_1250 branch from 5cd4c12 to dd90e51 Compare October 26, 2026 02:25
@Boss2002n
Boss2002n force-pushed the satya/gluon_allreduce_1250 branch from 153d815 to 46880f0 Compare October 26, 2026 02:47
@Boss2002n
Boss2002n force-pushed the satya/gluon_allreduce_rmsnorm_quant_1250 branch from dd90e51 to cc8cabe Compare October 26, 2026 02:47
@Boss2002n
Boss2002n force-pushed the satya/gluon_allreduce_1250 branch from 46880f0 to 1e4f3a2 Compare October 26, 2026 14:34
@Boss2002n
Boss2002n force-pushed the satya/gluon_allreduce_rmsnorm_quant_1250 branch from cc8cabe to f68fb43 Compare October 26, 2026 14:34
@Boss2002n
Boss2002n force-pushed the satya/gluon_allreduce_rmsnorm_quant_1250 branch from f68fb43 to 2282b0b Compare October 26, 2026 19:14
@Boss2002n
Boss2002n marked this pull request as ready for review October 26, 2026 19:20
@zufayu
zufayu requested review from a team and Dewei-Wang-sh October 27, 2026 01:14
@azaidy
azaidy self-requested a review October 27, 2026 14:32

@azaidy azaidy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@azaidy
azaidy merged commit b9c1215 into satya/gluon_allreduce_1250 Oct 27, 2026
@azaidy
azaidy deleted the satya/gluon_allreduce_rmsnorm_quant_1250 branch October 27, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants