Repository navigation
GLM CUDA: opt-in context copies priced by the lane host - #2146
Merged
Merged
Conversation
Owner
Author
|
First TP=2 run on two GB10s, on our NVFP4 checkpoint,
These are general chat and code prompts, not ones that repeat long passages, so this says little about what copies gain where they should help. It stays opt-in, and it isn't a speed claim. The reporter's EXL3 checkpoint hasn't been run. |
ashhart
marked this pull request as ready for review
November 5, 2026 01:55
ashhart
added a commit
that referenced
this pull request
Nov 5, 2026
ashhart
force-pushed
the
lead/s236-glm-copies
branch
from
November 5, 2026 03:59
696c90a to
c2c9fc4
Compare
Keep the existing default policy and add TF_GLM_COPIES=1 for root and context copies through the lane core. Seed existing target prices and observe copy acceptance, retaining the explicit head-confidence prefix without bypassing copy costs. Exercise real family facts, paid and rejected offers, confidence limits, shared streams, resumed prompts and cancellation on the host. Device exactness and performance remain qualification gates. Part of #1910.
ashhart
force-pushed
the
lead/s236-glm-copies
branch
from
November 5, 2026 07:01
c2c9fc4 to
b1d3f5b
Compare
8 tasks done
jschmied
added a commit
to jschmied/TensorFold
that referenced
this pull request
Nov 5, 2026
…shhart#2146 landed, ashhart#2229 without the branch name
ashhart
pushed a commit
to jschmied/TensorFold
that referenced
this pull request
Nov 6, 2026
…shhart#2146 landed, ashhart#2229 without the branch name
ashhart
pushed a commit
to jschmied/TensorFold
that referenced
this pull request
Nov 6, 2026
…shhart#2146 landed, ashhart#2229 without the branch name
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.
Part of #1910.
Native GLM on CUDA has no copy drafts. This adds them as an opt-in:
TF_GLM_COPIES=1on rank 0 uses the lane host's cost-priced root and context copies with a four-token history match. The default policy doesn't change, and followers execute rank 0's verify, keep and head commands as they do today.Copy drafts cost Spark 2.5 between 3.8% and 22.7% on 3 Nov, so an offer has to pay for itself here: copies go through the shared cost allocation and their own observed acceptance, and an expensive offer can get zero rows.
Test plan
TF_GLM_COPIES=1. Queued, on our NVFP4 checkpoint.Nothing here has run on a GPU yet, and it claims no speed gain until that run says so.
@BadAd84 tried copy drafts on GLM first, in #1498, and measured them losing on a quote workload (-15.8%), which is why this stays opt-in and claims no speed gain. Our TP=2 run above didn't include that workload. No code from #1498 is used here.