Skip to content

GLM-5.3-Flash: a request whose prefix restore is refused gets its own assistant binding - #2452

Merged
jonathan308 merged 2 commits into
devfrom
fix/glm-refused-prefix-restore-cold-start
Nov 21, 2026
Merged

jonathan308 merged 2 commits into
devfrom
fix/glm-refused-prefix-restore-cold-start

Conversation

@jonathan308

@jonathan308 jonathan308 commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Pins libs/mlx-swift-lm to 6f5cc339: the current SDK pin 995f3a5e plus 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). Branch sdk/provider-dev-glm-cold-start. #473 merged into mlx-swift-lm main as 7270d9eb02. 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

flowchart TD
  A[Ordinary GLM request: prefix restore prepared] --> B[Publication refused]
  B --> C[Cold prefill]
  C --> D[Assistant set up on the refused restore's binding]
  D --> E[Restore retires while the request runs]
  E --> F[Native completion failure: the engine stops]
Loading

After

flowchart TD
  A[Ordinary GLM request: prefix restore prepared] --> B[Publication refused]
  B --> C[Cold prefill]
  C --> D[Own assistant binding; the refused one is unlinked]
  D --> E[Restore retires: its stage refunds its memory once]
  E --> F[The request completes]
Loading

Changes

  • libs/mlx-swift-lm 995f3a5e → 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

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

… 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>
@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference-landing Ready Ready Preview Nov 20, 2026 9:43pm UTC
darkbloom-status Ready Ready Preview Nov 20, 2026 9:43pm UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 20, 2026 9:43pm UTC

Request Review

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

3 active deployments
Preview – d-inference-landing — d39ac804 Deployed Nov 20, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — d39ac804 Deployed Nov 20, 2026 by vercel[bot]
Preview – darkbloom-status — d39ac804 Deployed Nov 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant