Repository navigation
Conversation
ashhart
force-pushed
the
lead/glm-ports
branch
from
November 16, 2026 11:57
3f29556 to
de4a092
Compare
This was referenced Nov 17, 2026
ashhart
force-pushed
the
lead/glm-ports
branch
from
November 19, 2026 04:45
de4a092 to
512e770
Compare
ashhart
force-pushed
the
lead/glm-ports
branch
from
November 23, 2026 12:13
512e770 to
cb5b8b0
Compare
…half its temperature, where each lands The MTP head drafted its argmax while a sampled stream's target draws keyed at each row's position, so a draft matched only when the target happened to draw the head's top token. Each draft is now drawn with the stream's own rule (seed, top-k, top-p, min-p) keyed at the position it would fill, the key the target's draw of that row uses, at half the stream's temperature: the head's distribution runs flatter than the target's, and a sweep of sampled bench decode on an M5 Ultra read argmax drafts 84.8 tok/s, keyed at the stream's temperature 85.9, at half of it 87.2, at a quarter 85.3. The target's keyed draw still decides every token, so replies are unchanged. Greedy streams keep the argmax; TF_GLM_KEYED_DRAFTS=0 restores it for sampled ones; a pair (sampled streams refused) is unchanged. tf-glm-drafts checks drafted against plain replies on the checkpoint, greedy and sampled, through generate and the served slots (queued plain rounds; windows, keeps and drafts as the lane core runs them, misses included), with keyed and argmax drafts, and prints the drafts each case kept.
ashhart
force-pushed
the
lead/glm-ports
branch
from
November 26, 2026 14:58
cb5b8b0 to
5bb5fc6
Compare
This branch has not been deployed
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.
GLM-5.3-Flash on Metal: on sampled streams, MTP drafts are drawn by the stream's own keyed rule, so more of them land. Output is unchanged.
The change. Before, each MTP draft was the head's argmax, while the target samples. Now a sampled stream's draft is drawn with that stream's keyed rule, at the position the draft fills and at half the stream's temperature (a flatter head gives a sharper draft). The target's own keyed draw still decides every token, so replies can't change. Greedy streams are unchanged, and a two-Mac pair is untouched.
TF_GLM_KEYED_DRAFTS=0restores the argmax.Why half the temperature: a sweep of sampled decode gave argmax 84.8 tok/s, full temperature 85.9, half 87.2, a quarter 85.3. At full temperature, creative prose lost speed.
Measured on an M5 Ultra (16 bench prompts, 512 tokens,
--no-thinking, short context; two runs each):"draft": falseTests: new
tf-glm-draftspasses 30/30 on the full checkpoint. It covers greedy and sampled, generate and the served slots, keyed and argmax drafts, with plenty of misses: every reply equals"draft": false. Lean finds nothing new.