mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 21:05:40 +07:00
[GH-ISSUE #5067] [Engine] dsv41 on CUDA (2x RTX 5070 Ti, layer split): Xid 13 / Xid 31 at the start of a request after 125K-200K agent contexts, then every request fails #2353
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#2353
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 @ValerioDolci on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5067
Area
[Engine] (speed, kernels, models, the server and API)
Desktop app, Terminal or source?
Source (START-HERE.bat, setup.sh or a build)
What happened
strata-dsv41crashed twice on CUDA during one night of agent traffic: OpenCode coding tasks, one request at a time, with prompts growing to 125K-200K tokens. Both crashes left the GPU in a sticky error state, and the engine did not recover by itself.Crash 1: Xid 13 on the card at 03:00.0, 05:51. The trigger was the first conversation switch after a long one. Conversation A ended at 200,265 tokens and was saved as a slot. Conversation B then started fresh: its first request (6,571 tokens) worked, and its second request faulted. From that point every request failed within milliseconds.
Crash 2: Xid 31 MMU fault on the other card (01:00.0), 06:25. This was inside a single conversation; the engine had been restarted fresh before the task and the slot folder emptied. The last completed request is the line below. The fault came about one second after the next request of the same conversation arrived, which appends a few thousand tokens to the reused prefix. The engine log has no error line after that. The request hung for 15 minutes (twice), and then the server restarted the engine.
What the two have in common (an observation, not proof): both faults hit at the start of a request that reuses a prefix and reads more than 96 new tokens, i.e. the chunked prompt pass. Both came after long contexts (125K and 200K) and after more than 40 minutes of continuous traffic with many expert-cache moves. They happened on different cards with different Xids.
Expected: requests keep working, as they did for the 1.5 hours and ~100 requests of agent traffic before crash 1 (three tasks, prompts up to 200K).
This looks related to #4350, which shows the same symptom (a fault after a conversation switch, then every request fails). That issue is on gfx1100 and its root cause there is gfx11-specific (the Q6_K
dq_rows_kernel), so this seems to be a separate CUDA case; the comment there says it had not been reproduced on CUDA.Smallest steps or command that reproduce it
I do not have a minimal script yet. A synthetic run on the same build, with a long conversation A (74-82K tokens, growing 1.5K per turn), a short conversation B (2 turns), back to A, 4 cycles (14 requests), did not fault. A run at 190-205K is in progress, and I will add the result here. Real traffic that faulted: OpenCode agent tasks, one request at a time, prompts growing by 0.1-6K tokens per turn up to 125K-200K, about 40-60 requests per task.
Reproduction status
Reproduced locally
Strata version
Strata 0.2.9 (tag v0.2.9,
c62d5e3a), enginestrata-dsv41 0.1.55 build c62d5e3a1, built from source withpackaging/build_dsv41_cuda.sh(ARCH=120, CUDA 13.1, gcc-14, llama.cpp pin 3cf03257). 0.2.10 is built here too and not yet tested.Graphics card, memory and system
2x RTX 5070 Ti 16 GB (sm_120, PCIe 5.0 x8/x8, no P2P), Ryzen 9 9900X, 96 GB DDR5, model files on an NVMe (Lexar NM790 4 TB). Ubuntu 26.04.1, kernel 7.0.0-38-generic, NVIDIA driver 595.99.02.
Model, size and settings
DeepSeek-V4.1-Flash-1017 IST-DAS 2.25 bpw (ISTA-DASLab IQ2_XS, six-shard layout, SHA-256 checked), pack made with the
istarecipe (--dspark-noise-token 128799 --dspark-markov-rank 256,profile-2.25.bin). Pictures off.Speed before the faults was fine: 20-23 tok/s decode on short prompts, 15-20 at 100-200K, 475 tok/s prefill at 18K.
Logs
The full engine log and the kernel log for both crashes are available on request.
@ValerioDolci commented on GitHub (Nov 3, 2026):
Update on the scripted reproduction, same build (0.2.9 / engine 0.1.55
c62d5e3a1) and settings as above, run directly against the server with nothing else on the cards:max_tokens256: no fault. Prefix reuse worked on every turn (cached= previous prompt, the same "took back a ... conversation" lines as in the real run).So a conversation switch at a 200K context is not enough by itself. What the real traffic had and this script does not: about 100 requests over 1.5 hours before crash 1 (about 40-60 per task), answers of up to 5K generated tokens with thinking on, and real code and tool output in the prompts. My filler is repetitive, so routing and expert-cache moves are probably far more varied in the real traffic. Next I will try to replay the real agent conversations, and I will run the same on 0.2.10.