Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions changelog.d/glm-refused-prefix-restore-cold-start.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
### GLM-5.3-Flash: a request whose prefix restore is refused gets its own assistant

- When a GLM-5.3-Flash prefix-cache restore was refused for an ordinary
request (one without a first-token deadline), the request continued with a
cold prefill. Until the refused restore finished retiring, the request's MTP
assistant could be set up on the restore's binding, whose memory the restore
still held. If the restore then retired while that assistant still held
allocations on its binding, the engine could stop with a native completion
failure, failing that request and the others on the engine.
- The request now gets its own assistant binding. The refused restore keeps
its memory until it retires (mlx-swift-lm `6f5cc339`, the current SDK pin
plus this fix).
5 changes: 4 additions & 1 deletion docs/architecture/inference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1796,7 +1796,10 @@ speculative batch. The profile composes with the complete-prefix store
assistant state is charged to its checkpoint stage until publication moves it
to the request. When a deadline admission's restore is refused, releasing the
request leaves that charge on the stage, which refunds it once the restore's
native work retires (`AdmissionV2.retireMTPBindingLocked`).
native work retires (`AdmissionV2.retireMTPBindingLocked`). An ordinary request
whose restore is refused prefills cold with its own assistant binding; the
refused restore's binding is unlinked at issuance and keeps its stage charge
(`AdmissionV2.issueMTPBinding`).
`DARKBLOOM_GLM_RECTANGULAR_VERIFY=0` (also `false`, `no`, `off`) selects the
serial-target single-proposal profile
(`GLM5NextProtectedModel.resolvedMTPConfiguration`). Prefill interleave keeps the global
Expand Down
Loading