Skip to content

GLM-5.3-Flash: a refused prefix restore's release no longer stops the provider - #2436

Merged
jonathan308 merged 3 commits into
devfrom
fix/glm-refused-prefix-restore-release
Nov 20, 2026
Merged

jonathan308 merged 3 commits into
devfrom
fix/glm-refused-prefix-restore-release

Conversation

@jonathan308

@jonathan308 jonathan308 commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Pins libs/mlx-swift-lm to 995f3a5e: the current SDK pin 4144be23 plus the change of Layr-Labs/mlx-swift-lm#471 (its commits cherry-picked; the four files it touches are byte-identical to #471's head 2b7021a9). Branch sdk/provider-0.10.16-glm-release-fix. #471 merged into mlx-swift-lm main as 4bec0c2435.

What changes for a provider: a GLM-5.3-Flash request submitted with a first-token deadline prepares its complete-prefix restore, including the MTP assistant state, before publication. Until publication commits it, that assistant's charge belongs to the restore's checkpoint stage. When the restore is refused, the engine discards the request. That release used to retire the assistant binding as if the request held the charge, which added it to the memory ledger as growth. Under memory pressure the process ledger refused the growth and the provider stopped with a Swift trap (AdmissionV2.releaseAllLocked), then relaunched minutes later. Now the release only deactivates that binding; the stage keeps the charge and refunds it once the restore's native work retires. Other models, published restores and ordinary requests are unchanged.

Before

flowchart TD
  A[GLM deadline admission prepares prefix restore + MTP assistant] --> B[Publication refused]
  B --> C[discardDeadlineRejectedRequest -> releaseAll]
  C --> D[Stage-held assistant charge added to ledger: growth]
  D --> E{Process headroom?}
  E -- no --> F[Swift trap: provider stops]
  E -- yes --> G[Charged twice until assistant leases die]
Loading

After

flowchart TD
  A[GLM deadline admission prepares prefix restore + MTP assistant] --> B[Publication refused]
  B --> C[discardDeadlineRejectedRequest -> releaseAll]
  C --> D[Uncommitted import: binding deactivated, no ledger change]
  D --> E[Restore's native work retires: stage refunds its charge once]
Loading

Changes

  • libs/mlx-swift-lm 4144be23 → 995f3a5e.
  • changelog.d/glm-refused-prefix-restore-release.md.
  • docs/architecture/inference.md: the GLM MTP + complete-prefix paragraph states where a restore's assistant charge lives and what a refused restore's release does.

Validation

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

Pin mlx-swift-lm 59919868: the 0.10.16 SDK pin (4144be23) plus the change of
Layr-Labs/mlx-swift-lm#471. Releasing a first-token deadline request whose GLM
prefix restore was refused no longer moves the restore's MTP assistant charge,
which its checkpoint stage still holds, into the engine's memory ledger. That
growth could be refused under memory pressure, and the release then trapped.

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 6:03pm UTC
darkbloom-status Ready Ready Preview Nov 20, 2026 6:03pm UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 20, 2026 6:03pm UTC

Request Review

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

This branch was successfully deployed

3 active deployments
Preview – eigen-homepages-darkbloom — 5c34062d Deployed Nov 20, 2026 by vercel[bot]
Preview – d-inference-landing — 5c34062d Deployed Nov 20, 2026 by vercel[bot]
Preview – darkbloom-status — 5c34062d 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