Repository navigation
glm cuda: paired experts pass each rank's own FFN partial under split (fixes #4493's rebase) - #4619
Merged
Merged
Conversation
Under TF_GLM_PREFILL_REDUCE=split (the default), #4510 made the partials exchange send peers' partials only, and glueRows takes the rank's own partial as its own argument. The paired path (#4493, TF_GLM_PAIR_EXPERTS=1) passed 0 there since its rebase onto #4510, so hc_post read an unwritten slot for the rank's own rows. It now passes r.b.part at the rank's first row, as the unpaired path does. The default path (switch off) is unchanged.
ashhart
force-pushed
the
lead/glm-pair-own-partial
branch
from
November 22, 2026 13:35
262f3ca to
6f90cd9
Compare
Owner
Author
|
Checked on two GB10s at TP=2 (GLM-5.3-Flash; base = this fix with
Tokens equal in 36 of 36 checked replies, so the split path now passes each rank its own partial and matches the plain path exactly.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes a defect in #4493 (
TF_GLM_PAIR_EXPERTS=1, opt-in), found in our release review.Under
TF_GLM_PREFILL_REDUCE=split, the default, #4510 changed the partials exchange to send each rank only its peers' partials, andglueRowstakes the rank's own FFN partial as its own argument. When #4493 was rebased onto #4510, the paired path's split branch passed0for that argument, sohc_postread an unwritten slot for the rank's own rows and the paired layers' hidden states came out wrong with the switch on. The paired path now passesr.b.partat the rank's first row, as the unpaired path does (cuda_forward_pair.zig).With the switch off, the default, nothing changes. #4493's earlier two-GB10 A/B with tokens equal was measured before #4510 landed, so it didn't cover this.
Checks
compile-cuda-testsfor Linux;test-glm-prefill-exact-hostandtest-glm-fact-contract-host(12 of 12); fmt.Still to run
The two-GB10 TP=2 check with
TF_GLM_PAIR_EXPERTS=1against it off, under the default split reduction: tokens equal, and the prefill timings again. It's queued.