Repository navigation
GLM-5.3-Flash: a request whose prefix restore is refused gets its own assistant binding - #2452
Merged
Merged
Conversation
… assistant binding Pin mlx-swift-lm 6f5cc339: the current SDK pin (995f3a5e) plus the change of Layr-Labs/mlx-swift-lm#473. An ordinary request whose GLM prefix restore is refused prefills cold; its MTP assistant no longer reuses the refused restore's stage-funded binding, so that restore's retirement no longer fails the engine's native completion. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 of 5 tasks
jonathan308
marked this pull request as ready for review
November 21, 2026 05:53
This branch was successfully 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.
Pins
libs/mlx-swift-lmto6f5cc339: the current SDK pin995f3a5eplus the change of Layr-Labs/mlx-swift-lm#473 (its commits cherry-picked; the four files it touches are byte-identical to #473's head). Branchsdk/provider-dev-glm-cold-start. #473 merged into mlx-swift-lmmainas7270d9eb02. Follow-up to #2436.What changes for a provider: a GLM-5.3-Flash prefix-cache restore prepares its MTP assistant on a binding whose memory the restore's checkpoint stage holds until publication. When publication is refused on an ordinary request (no first-token deadline), the request continues with a cold prefill. Until the refused restore finished retiring, the request's assistant could be set up on that same binding. When the restore then retired while the request was running, its retirement found the request's allocations on the binding and failed. The engine stopped with a native completion failure, failing that request and the others on the engine. Now the request gets its own binding; the refused restore's binding is unlinked when the request's binding is issued and keeps its memory until the restore retires. Published restores, deadline requests (#2436) and other models are unchanged.
Before
After
Changes
libs/mlx-swift-lm995f3a5e→6f5cc339.changelog.d/glm-refused-prefix-restore-cold-start.md.docs/architecture/inference.md: the GLM MTP + complete-prefix paragraph says what an ordinary request whose restore is refused gets.Validation
GLM5NextCompleteCheckpointTests.refusedNativeMTPPrefixAdoptionColdFallbackUsesItsOwnBinding(real tiny GLM target and MTP assistant) runs in mlx-swift-lm Fork Tests on Pipeline-parallel inference across an attested Apple Silicon cluster (+ Gemma 4) #473. Its red control is Red control for #473: tests without the change (do not merge) mlx-swift-lm#474, which fails with the engine's native completion failure.python3 scripts/changelog.py check,scripts/docs-impact-check.py --base origin/devandscripts/docs-check.sh: OK.d39ac804d6.2026-10-15-nvfp4-r1, MTP on, local API, SSD prefix tier). This compared a release build ofaf95afaf97(the same code as this head; only the changelog fragment differs) with the published 0.10.16, one provider at a time, in two rounds.darkbloom_glm5_next_retained_faultstayed 0), no crash report, and each provider was alive at the end.Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com