mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1932] serve: a checkpoint save that fails with a device fault reports no reason to the client, and gpu_sync_ok() passed on the already-faulted device (240K prefill, 0.1.41, gfx1100) #766
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#766
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 @jexShain on GitHub (Oct 11, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1932
Environment
--backend hip), prebuilt 0.1.41Relevant args:
--max-context 262144 --kv int8 --kv-resident 32768 --spec 4 --prefill auto:32768 --expert-cache 4096 --vram-reserve-mib 700, plus a CPU vision encoder.What happened
A single request with a 240,903-token prompt died part way through prefill with a 400 the client cannot explain, and the engine had to reload the model:
The cause is in the engine log, one line above the summary:
Note where it failed:
194560 = 10 x 19456— exactly the end of the 10th prompt chunk, i.e. the periodic checkpoint save. 2673 MiB of VRAM was free, so this is not VRAM exhaustion.I have seen this once (0.1.41, 2026-10-11). I am not able to reproduce it on demand; many other 240K prefills on the same machine and config went through fine, before and after.
Two things that look like real defects, independent of the fault itself
1.
gpu_sync_ok()passes on an already-faulted device, so the message misattributes the failure.src/program/generate.cpp:7217-7223:Here
cudaDeviceSynchronize()succeeded —ckpt_whystayed empty, which is why the request's error carries no reason — and the very next operation failed:checkpoint_savereportedconversation snapshot running-state copy: unspecified launch failure, i.e. a device fault (hipErrorLaunchFailure) on the copy. The threehipModuleUnload failedlines immediately after confirm the context really was dead. So the #613 discrimination did not fire on a case that was, in fact, the GPU — it just reported a bare "checkpoint failed", which points the reader at the checkpoint code instead.2. The reason never reaches the client, only stderr.
src/program/generate.cpp:1380-1385:The comment acknowledges the gap. From an API client's point of view a failed checkpoint save is indistinguishable from any other 400, and since the request took 192 s to get there, there is nothing to go on. I only found the reason because this machine keeps the engine's stderr in a log file. Would it be acceptable to append
ckpt_why(or theerrorstring) to the caller'seunconditionally, the way the GPU-hang path already does?Question rather than a claim
Is aborting the whole request the intended response to a failed checkpoint save? A checkpoint is only a cache for the next continuation, so in principle the current prefill could finish and merely lose reuse. Here it may be moot — the context was already faulted and the engine reloaded anyway — but if
checkpoint_at()can also fail for benign reasons, discarding a 240K prefill (192 s) over a failed cache save is a harsh trade.I have no evidence the checkpoint save caused the fault; it may simply be the first device operation after it. If it is any help, the common factor with #613 is a 240K-class prefill on Windows + gfx1100 with the cache lent to the prompt path (
the prompt path borrows 5177 CUDA0 cache slots), and the failure landed exactly on a chunk boundary where the save happens.@talisp commented on GitHub (Oct 14, 2026):
Another data point for the same failure family, on a different setup: 2x NVIDIA A2 16 GB (CUDA, Linux, v0.1.42), Q8_0 (188 GB, experts streamed from SSD, 62 GiB RAM),
--vram-reserve-mib 700,--pipeline-windows 2.saving a checkpoint part failedand the engine exited (code 1). The reason was only in the engine's stderr:checkpoint save: conversation snapshot running-state copy: out of memory. So the same "no reason reaches the client" as here, with an out-of-memory instead of a device fault.mtp prefill: the input records do not fit(cudaMalloc,src/core/mtp.cpp~1138/1180 in 0.1.42). In another run of the same case the message wasmtp: step capture: no error, which gives no cause at all.Suggestion, in the same direction as this issue: put the engine's reason string, the size it asked for and the device's free memory in the line the client sees.
With
--vram-reserve-mib 1000we have not seen either failure again (Q8_0, 64K to 1M, one run per context). Not re-tested on 0.1.43 or later.Numbers and context for the whole battery: #2446 (drafted by an AI assistant from our logs; the account owner reads replies).
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.