Repository navigation
Add opt-in TP2 FP32 reduce-scatter before BF16 gathers - #49
Elevatormusic merged 10 commits into
Conversation
…ts from 3/4 of the bytes TF_DS_RS=1 (two ranks, off by default): a prompt chunk's attention and MoE partials reach the mHC post as bf16(p0 + p1), from an fp32 reduce-scatter and a bf16 all-gather, instead of the fp32 all-gather. The post kernels add the two ranks' rows and round to bf16; one fp32 add of two operands has the same bits in either order, so they form the same y. Odd row counts, rows the RDMA gather holds, and one rank keep the gather.
…nto codex/engine49-reducer-audit-20261106
…gine49-reducer-audit-20261106
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…gine49-reducer-audit-20261106
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…gine49-reducer-audit-20261106
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b3d452930b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Merged into The integration adds mixed-rank startup agreement and repairs the local benchmark communicators, including the grouped-model checker. All 31 focused CPU contracts and the full CPU plan pass; current CI and the fresh Codex review are clean. The description and title now separate the intended arithmetic from unqualified compiled-GPU bit identity and your original performance reports. Current-head two-node exactness and paired speed remain release work. |
What this changes
Add the opt-in
TF_DS_RS=1prefill reducer. Eligible TP2 FP32 partials with an even row count use FP32 ReduceScatter, then BF16 AllGather. The existing mHC consumers already round their FP32 rank sum to BF16 before mixing. This is the intended two-operand rounding path; compiled GPU bit identity is not qualified.The default stays off. TP1, unsupported dtypes, odd rows, and partials that fit RDMA retain the existing gather. Decode graphs and the head-logit gather remain unchanged.
Both ranks agree the reducer flag before warm-up, using the packet's actual element count for allocation and reshape. The local benchmark stand-ins now implement gather-preserving
reducedmethods. This keepssmall_bench,small_prompt_check, and the grouped-model checker usable without pretending they implement NCCL transport.The contributor's commits are preserved. Rank-agreement and benchmark compatibility repairs are separate maintainer commits.
Type
type: fix: a bug fixtype: feature: new codetype: docs: docs onlytype: results: run resultstype: research: researchtype: spec: a planCurrent validation
e2eb15b9a15e4d97c5d5fc60e3d87f2801d7e5fd; base:8559c41c5c91f1f7181503c45a13dd72bb5c83b5ondeepseek-v41-tp2.Original contributor measurements
The original contribution reports these results on two GB10 nodes at TP2:
These are the contributor's measurements. This repair pass did not repeat them or verify their raw receipts. They do not qualify the current commit. The exact checkpoint revision, raw paired run data, and current-head hardware checks remain needed for an independent speed or token-equivalence claim.
Checklist
AI disclosure
AI: GPT-6 and GPT-6.1 Sol (sizes unavailable) via Codex Desktop. The original contributor reports Claude Opus 5.5 via Hermes Agent.
Checked: read the communicator, callers, mHC arithmetic, tool protocols and primary NCCL documentation; verified actual before/after CPU logs, manifests, frozen inputs, CI and Codex evidence. No hardware result is claimed.