mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5292] [Engine] dsv41 on sm_75 (RTX 2080 Ti, Windows): cudaStreamSynchronize "illegal memory access" on a short follow-up prefill; prefill stalls forever with --ssd-cache #3155
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#3155
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 @smirnovdmitrij87-byte on GitHub (Nov 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5292
[Engine] dsv41 on sm_75 (RTX 2080 Ti): cudaStreamSynchronize "illegal memory access" on a short follow-up prefill; prefill sometimes stalls indefinitely
Area: engine prompt processing
Summary
Running the DeepSeek-V4.1-Flash pack (
dsv41, IQ2 pack) on a single RTX 2080 Ti (Turing, sm_75),Windows, engine 0.1.56 (
build ffa80d731), MTP/dspark enabled, the engine crashed twice inside a28-minute continuous multi-turn session with:
Each time this happened on a short follow-up request (3.5k and 8.0k prompt tokens) right after the
previous turn had completed normally. The wrapper detected the dead engine and restarted it
automatically, which is what kept the session going — but 2 of 25 turns were lost.
Separately (same session, before the crash): a 59,451-token prompt was processed successfully, and a
110,292-token prompt was still reading normally when the client cancelled it (see "Context length is
not the trigger" below).
There is also a second symptom, a prefill stall rather than a crash: with
--ssd-cacheset theengine hangs on the very first 33-token prompt and never finishes (details at the end).
Environment
strata-dsv41 0.1.56 build ffa80d731(Windows x64)pack_iq2), expert-profile.bin/health,/v1/chat/completionsEngine launch args (verbatim, as read from the process command line):
Note on
--reserve-mib: this was raised from 256 to 1024 during this investigation. With 256 theengine died differently —
emb_upload(...): unknown error/cudaMemsetAsync(...): unknown erroron a50,594-token prompt, after which every subsequent request failed until a manual restart. With 1024 the
unknown errorfamily disappeared completely (verified: 59k and 110k prompts OK, nounknown errorinthe log after that restart). The
illegal memory accessbelow is a different failure that appearedonly afterwards, during the continuous session.
Symptom 1 — illegal memory access on a short follow-up (the crash)
Failure is always on a short prompt, immediately after a previously successful turn:
stop), then the next request died in 8 sstop), then the prefill stalled ~240 s and ended with the fatal errorLog excerpt from crash #1 (turn N finished cleanly, the very next prefill died):
Log excerpt from crash #2 (prefill of 7,980 tokens never advances, then the fatal error):
The stall-then-crash pattern is consistent:
reading the prompt: X tokens, N s so farrepeats withXfrozen for many minutes and then the synchronize reports the illegal access. In crash #2 that frozenline repeats 23 times before the error.
Context length is not the trigger
To separate this from the usual VRAM-pressure reports, a single-shot test was run against the same
engine:
So long prompts are fine on this box. The crash correlates with many sequential turns on the same
engine instance, not with prompt size.
Reproduction sketch
--dspark on,--max-context 131072.system prompt + growing history + a fresh tool result every turn),
max_tokens~600.Result: 23/25 turns OK, 2 crashes, 28.2 minutes total. Throughput ~12.9 tok/s on the turns that worked.
Not a hardware fault (for the record)
The card was checked at the time of the failures:
nvidia-smireported 52 °C, 55 W, no Xid errors,ECC/retired-pages N/A on this consumer card. Windows Event Log showed
nvlddmkmevents only around theearlier VRAM-pressure incident, none at the times of these two crashes. The GPU also loaded and served
the 110k-token prompt correctly between the two crashes.
Symptom 2 — prefill stalls forever when
--ssd-cacheis setOn the same box, adding
--ssd-cache 40 --ssd-policy lfu(and--vram-experts 0.85 --reserve-mib 1024)makes the engine accept the very first request and then hang on it:
The 33-token prompt is the trivial
"Say ALIVE"probe, and it never leaves the prompt-reading stage.Process state at that point: ~35.6 GB working set, CPU usage climbing (615 s accumulated), GPU idle.
Removing
--ssd-cache/--ssd-policyand going back to--vram-experts 0.95fixed the startup path,so the stall appears to be tied to the RAM store sizing at load time on this configuration (RAM store
sizes itself at model start, per the docs).
Attachments
strata-dsv41-crash.log— the full engine log (5,552 lines). It contains: the earlierunknown errorincident at--reserve-mib 256, the manual restart at--reserve-mib 1024, the 59kand 110k single-shot tests, the 25-turn continuous session with both fatal errors, and the
--ssd-cachestall.Log is from a personal workstation; it has been checked for credentials (no API keys, tokens, user
names or file paths with personal data — paths are whitespace-neutralised to
<pack_iq2>/<expert-profile.bin>where they appeared).Happy to run any additional tests, other context sizes,
--dspark off, or a build with extradiagnostics if that helps narrow it down.