Repository navigation
glm metal: MTP drafts through the layer's own LM head when stored - #3632
Merged
Merged
Conversation
ashhart
added a commit
that referenced
this pull request
Nov 17, 2026
ashhart
added a commit
that referenced
this pull request
Nov 17, 2026
A checkpoint may store layers.45.shared_head.head (a lighter copy of lm_head, e.g. 4-bit beside an 8-bit backbone). On one Mac the loader loads it beside lm_head and the MTP drafts project through it; lm_head still produces every verified token, so replies are unchanged. Without the tensor nothing changes. 8-bit GLM-5.3-Flash with the 4-bit MTP layer and head, 6 bench prompts: 12/12 replies equal to the 8-bit alone; greedy 53.0 -> 53.2-53.5 tok/s, sampled 48.4 -> 50.1-50.3, 3.5 GB less memory.
ashhart
force-pushed
the
lead/glm-mtp-draft-head
branch
from
November 17, 2026 04:35
c73060a to
3670162
Compare
ashhart
added a commit
that referenced
this pull request
Nov 17, 2026
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.
A checkpoint may store
layers.45.shared_head.head, a lighter copy oflm_head(for example 4-bit beside an 8-bit backbone). On one Mac the loader now loads it besidelm_head, and the MTP drafts project through it (fwd.headWith).lm_headstill produces every verified token, so replies are unchanged. Without the tensor nothing changes.Measured on an M5 Ultra (the 8-bit GLM-5.3-Flash backbone with the 4-bit checkpoint's MTP layer, and that checkpoint's
lm_headstored as the draft head; 6 bench prompts, greedy and sampled):The head adds its bytes to the load: at 1M context it can push the MTP layer past the one-Mac 70% limit, and the engine then loads without MTP (it says so in the log).