mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #183] Client disconnect/cancel during long prompt kills the engine (exit code 1) instead of cancelling only the request #95
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#95
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jinkang06 on GitHub (Sep 30, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/183
The engine log says:
There is no CUDA OOM, watchdog timeout, or no-progress error.
After this, the engine is completely restarted:
The next request therefore loses the previous conversation state and
starts prompt processing from token zero again:
Expected behavior
A disconnect / request cancellation should:
Ideally, valid conversation checkpoints from before the cancelled
request should also remain usable.
The Strata documentation says that closing the connection or pressing
Stop stops the current model work so that the next request can start
immediately.
Additional VRAM information
After the restart Strata reports:
I will also test with the recommended larger VRAM reserve, but the
failure above appears to follow the explicit cancellation path rather
than an OOM path.
Question
Is
cancelledcurrently expected to terminate the engine process onLinux, or should this be handled as a recoverable per-request outcome?
I can test a patch or provide more logs if useful.
@demon851113 commented on GitHub (Sep 30, 2026):
Reproduced this on an RTX 5070 Ti with the same KV setup (int8, streamed,
--kv-resident 32768), both through the HTTP server and with a private engine. Root cause: theerrstring survives the cancelled request as"cancelled", and the next request's batched prompt path (sp.on_chunk) reads a non-emptyerras a failure. Fix and validation are in #194.@Niko1221 commented on GitHub (Sep 30, 2026):
Confirmed: a cancelled request left a stale 'cancelled' error string behind, and the next long prompt then failed and the engine exited. Fixed in 0.1.28 (in testing now) with #205's change; thanks also to @demon851113 for the root cause and validation in #194. Your '239 MiB free - LOW' line is a separate 0.1.27 problem (#199). Until then, add
"--vram-reserve-mib", "1100"to theargsof yourstrata-<model>.json(or pass--vram-reserve-mib 1100to the engine).@Niko1221 commented on GitHub (Sep 30, 2026):
Fixed in 0.1.28 (#205): the error string is cleared for every request and at the start of every prompt read. Our repro (a 35K prompt cancelled after 5 s, then the same prompt, then a short one) failed on 0.1.27 and passes on 0.1.28.