Repository navigation
glm cuda tp2 prefill: local indexer rows via TF_GLM_INDEX_SPLIT and in-place own partials - #4510
Merged
Merged
Conversation
Owner
Author
|
GB10 TP=2 A/B (GLM-5.3-Flash NVFP4, two boxes,
Tokens 36/36 equal. Steady-state prefill is level to slightly better; the large pp2k aggregate (+24.6%) comes only from the first prompt after boot, which is slow in both base runs and not in either new run. Server start took 95 s and 70 s for the new runs vs 65 s for base, so part of that first-prompt work may have moved to startup; this does not change the verdict. Exact and no regression, so it goes into the landing train as an opt-in.
|
…SPLIT and in-place own partials
ashhart
force-pushed
the
lead/glm-prefill-index-local
branch
from
November 22, 2026 08:15
c537d95 to
6560406
Compare
ashhart
added a commit
that referenced
this pull request
Nov 22, 2026
Unreleased: the five (#N) placeholders get their PR numbers, the two (#PR) duplicates go, #3192's line goes (#4427 replaced that behaviour on main and its line refs #3192), #3960 is named as the PR that landed #2799, and the penalty under --instruct-sampling card; ?token= Web addresses and pull's digest and size checks). Sixteen PRs merged 20-21 Nov with no line anywhere: a blank lines file replaced each PR's own line at landing. #4321 and #4322 go under Unreleased, the twelve that shipped in 1.3.3 under 1.3.3, and the two 1.3.1 lines that carried no PR number get #3941 and #4022. docs/environment.md: Flash Next checks 37 settings, and TF_GLM_INDEX_SPLIT (registered by #4510) gets its row.
ashhart
added a commit
that referenced
this pull request
Nov 22, 2026
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
added a commit
that referenced
this pull request
Nov 22, 2026
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.
bjornmonnens
added a commit
to bjornmonnens/TensorFold
that referenced
this pull request
Nov 24, 2026
…e under split prefill Since ashhart#4510 split prefill sends only the peers' partials: rank me's slot of the gathered buffer is unused and its partial stays in place. tf_glm_residual_add_own sums as tf_glm_residual_add does, rank 0 first, with rank me's partial read from own (glm_glue::ranks8own, as tf_glm_hc_post_own).
bjornmonnens
added a commit
to bjornmonnens/TensorFold
that referenced
this pull request
Nov 24, 2026
…e under split prefill Since ashhart#4510 split prefill sends only the peers' partials: rank me's slot of the gathered buffer is unused and its partial stays in place. tf_glm_residual_add_own sums as tf_glm_residual_add does, rank 0 first, with rank me's partial read from own (glm_glue::ranks8own, as tf_glm_hc_post_own).
bjornmonnens
added a commit
to bjornmonnens/TensorFold
that referenced
this pull request
Nov 25, 2026
…e under split prefill Since ashhart#4510 split prefill sends only the peers' partials: rank me's slot of the gathered buffer is unused and its partial stays in place. tf_glm_residual_add_own sums as tf_glm_residual_add does, rank 0 first, with rank me's partial read from own (glm_glue::ranks8own, as tf_glm_hc_post_own).
ashhart
pushed a commit
to bjornmonnens/TensorFold
that referenced
this pull request
Nov 25, 2026
…e under split prefill Since ashhart#4510 split prefill sends only the peers' partials: rank me's slot of the gathered buffer is unused and its partial stays in place. tf_glm_residual_add_own sums as tf_glm_residual_add does, rank 0 first, with rank me's partial read from own (glm_glue::ranks8own, as tf_glm_hc_post_own).
ashhart
pushed a commit
that referenced
this pull request
Nov 25, 2026
…e under split prefill Since #4510 split prefill sends only the peers' partials: rank me's slot of the gathered buffer is unused and its partial stays in place. tf_glm_residual_add_own sums as tf_glm_residual_add does, rank 0 first, with rank me's partial read from own (glm_glue::ranks8own, as tf_glm_hc_post_own).
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.
What this changes
Two exact prefill changes from a read-only review of GLM's two-box prefill:
TF_GLM_INDEX_SPLIT(existing setting, default 2048 unchanged) now applies only to multi-rank runs, and setting it to 32768 keeps indexer scores, pools and token rows local below that position. The indexer is row-independent, so the local result equals the split-and-gather result, without the blocking all-gathers.Checks
Still to run
Two GB10s: pp8k and pp32k with
TF_GLM_INDEX_SPLIT=32768vs default, A-B-B-A, final logits and following decode tokens compared.