Skip to content

[Triton/Gluon] Use the gfx1250 Gluon fused all-reduce + RMSNorm in fused_allreduce_rmsnorm - #6974

Merged
Boss2002n merged 15 commits into
mainfrom
satya/gluon_allreduce_rmsnorm_quant_dist_1250
Oct 28, 2026
Merged

Boss2002n merged 15 commits into
mainfrom
satya/gluon_allreduce_rmsnorm_quant_dist_1250

Conversation

@Boss2002n

@Boss2002n Boss2002n commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

ATOM runs the TP all-reduce + residual add + RMSNorm through aiter's tensor_model_parallel_fused_allreduce_rmsnorm, and the other TP all-reduces through tensor_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.

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.

🟡 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

@Boss2002n
Boss2002n marked this pull request as ready for review October 27, 2026 16:58
Base automatically changed from satya/gluon_allreduce_rmsnorm_quant_1250 to satya/gluon_allreduce_1250 October 27, 2026 18:21
azaidy
azaidy previously approved these changes Oct 28, 2026

@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!

Base automatically changed from satya/gluon_allreduce_1250 to main October 28, 2026 12:52
@Boss2002n
Boss2002n dismissed azaidy’s stale review October 28, 2026 12:52

The base branch was changed.

@Boss2002n
Boss2002n requested a review from a team October 28, 2026 12:52
Copilot AI balanced review requested due to automatic review settings October 28, 2026 13:27
@github-actions github-actions Bot changed the title [Triton/Gluon] Use the gfx1250 Gluon fused all-reduce + RMSNorm in fused_allreduce_rmsnorm Use the gfx1250 Gluon fused all-reduce + RMSNorm in fused_allreduce_rmsnorm Oct 28, 2026

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.

🟡 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

@github-actions github-actions Bot changed the title Use the gfx1250 Gluon fused all-reduce + RMSNorm in fused_allreduce_rmsnorm [Triton/Gluon] Use the gfx1250 Gluon fused all-reduce + RMSNorm in fused_allreduce_rmsnorm Oct 28, 2026
Copilot AI balanced review requested due to automatic review settings October 28, 2026 15:11

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.

🟡 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

@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!

@Boss2002n
Boss2002n merged commit de06bd3 into main Oct 28, 2026
60 of 62 checks passed
@Boss2002n
Boss2002n deleted the satya/gluon_allreduce_rmsnorm_quant_dist_1250 branch October 28, 2026 21:43
solinzby1 pushed a commit that referenced this pull request Nov 2, 2026
…sed_allreduce_rmsnorm (#6974)

* satya/gluon_allreduce_1250
shantipriya-amd pushed a commit to shantipriya-amd/aiter that referenced this pull request Nov 18, 2026
…sed_allreduce_rmsnorm (ROCm#6974)

* satya/gluon_allreduce_1250
XiaobingSuper added a commit that referenced this pull request Nov 30, 2026
…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]>
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