[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

Open
opened 2026-11-04 01:58:39 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @ValerioDolci on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5067

Note

AI-assisted report: the investigation and this text were prepared with Claude (Anthropic) working on my machine, and I reviewed them before posting. Log lines are copied from the engine log and journalctl -k, trimmed but not edited.

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-dsv41 crashed 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.

maya ds4 serve: prompt 200265 tokens = 200204 reused + 61 read in 4135 ms (14.8 tok/s), 397 generated in 25913 ms (15.32 tok/s); CPU lane 7.7% of the experts
ds4 slots: saved a 200661-token conversation (0.20 GB in RAM in 0.0 s); 4 in RAM, 2 in /home/feyd/ds41/ds4-slots
maya ds4 serve: prompt 6571 tokens = 0 reused + 6571 read in 50005 ms (131.4 tok/s), 94 generated in 8640 ms (10.88 tok/s); CPU lane 7.6% of the experts
ds4: cudaStreamSynchronize(s): operation not supported on global/shared address space
ds4 cache: layer 0 expert 31: the move into VRAM failed
ds4 cache: layer 1 expert 332: the move into VRAM failed
... (520 "move into VRAM failed" lines in total, then every request fails)
NVRM: Xid (PCI:0000:03:00): 13, Graphics SM Warp Exception on (GPC 0, TPC 0, SM 0): Invalid Address Space
NVRM: Xid (PCI:0000:03:00): 13, Graphics SM Global Exception on (GPC 0, TPC 0, SM 0): Multiple Warp Errors
NVRM: Xid (PCI:0000:03:00): 13, Graphics Exception: ESR 0x505730=0x30010 0x505734=0x4 0x505728=0x1c81fb60 0x50572c=0x1174
... (the same "Invalid Address Space" on every SM of every GPC, 0-5)
NVRM: Xid (PCI:0000:03:00): 13, pid=276202, name=strata-dsv41, Graphics Exception: channel 0x00000003, Class 0000cec0, Offset 00000510, Data 0017e2ac

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.

maya ds4 serve: prompt 125085 tokens = 122528 reused + 2557 read in 18223 ms (140.3 tok/s), 144 generated in 7849 ms (18.35 tok/s); CPU lane 7.4% of the experts
NVRM: Xid (PCI:0000:01:00): 31, pid=312080, name=strata-dsv41, channel 0x00000004, intr 00000000. MMU Fault: ENGINE GRAPHICS GPC0 GPCCLIENT_T1_2 faulted @ 0x7b0a_9fffa000. Fault is of type FAULT_PDE ACCESS_TYPE_VIRT_READ

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), engine strata-dsv41 0.1.55 build c62d5e3a1, built from source with packaging/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 ista recipe (--dspark-noise-token 128799 --dspark-markov-rank 256, profile-2.25.bin). Pictures off.

strata-dsv41 --serve --pack <pack-2.25> --max-context 262144 --eos 1 --vision off --dspark auto --dspark-conf 0.65 --tp 2 --layer-split auto
ds4: tensor parallel 2 -> 1: the experts' 256-value blocks split n_ff 2304 no other way (each GPU its own layers)
ds4: DSpark not loaded: ...
ds4: RAM store: 6513 of the profile's hottest experts read in (59.6 GB) in 9.0 s
ds4: CUDA0 layers [0, 19]: weights 2.81 GB, experts 9.89 GB (1020 of 7680 in VRAM), caches 0.15 GB, 580 MiB free
ds4: CUDA1 layers [20, 39] + head: weights 3.05 GB, experts 9.82 GB (968 of 7680 in VRAM), caches 0.10 GB, 584 MiB free
ds4: 13372 routed experts on the CPU lane (130.1 GB, in place in the model's files), 12 threads

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.

Originally created by @ValerioDolci on GitHub (Nov 3, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5067 > [!NOTE] > AI-assisted report: the investigation and this text were prepared with Claude (Anthropic) working on my machine, and I reviewed them before posting. Log lines are copied from the engine log and `journalctl -k`, trimmed but not edited. ### 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-dsv41` crashed 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. ``` maya ds4 serve: prompt 200265 tokens = 200204 reused + 61 read in 4135 ms (14.8 tok/s), 397 generated in 25913 ms (15.32 tok/s); CPU lane 7.7% of the experts ds4 slots: saved a 200661-token conversation (0.20 GB in RAM in 0.0 s); 4 in RAM, 2 in /home/feyd/ds41/ds4-slots maya ds4 serve: prompt 6571 tokens = 0 reused + 6571 read in 50005 ms (131.4 tok/s), 94 generated in 8640 ms (10.88 tok/s); CPU lane 7.6% of the experts ds4: cudaStreamSynchronize(s): operation not supported on global/shared address space ds4 cache: layer 0 expert 31: the move into VRAM failed ds4 cache: layer 1 expert 332: the move into VRAM failed ... (520 "move into VRAM failed" lines in total, then every request fails) ``` ``` NVRM: Xid (PCI:0000:03:00): 13, Graphics SM Warp Exception on (GPC 0, TPC 0, SM 0): Invalid Address Space NVRM: Xid (PCI:0000:03:00): 13, Graphics SM Global Exception on (GPC 0, TPC 0, SM 0): Multiple Warp Errors NVRM: Xid (PCI:0000:03:00): 13, Graphics Exception: ESR 0x505730=0x30010 0x505734=0x4 0x505728=0x1c81fb60 0x50572c=0x1174 ... (the same "Invalid Address Space" on every SM of every GPC, 0-5) NVRM: Xid (PCI:0000:03:00): 13, pid=276202, name=strata-dsv41, Graphics Exception: channel 0x00000003, Class 0000cec0, Offset 00000510, Data 0017e2ac ``` **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. ``` maya ds4 serve: prompt 125085 tokens = 122528 reused + 2557 read in 18223 ms (140.3 tok/s), 144 generated in 7849 ms (18.35 tok/s); CPU lane 7.4% of the experts ``` ``` NVRM: Xid (PCI:0000:01:00): 31, pid=312080, name=strata-dsv41, channel 0x00000004, intr 00000000. MMU Fault: ENGINE GRAPHICS GPC0 GPCCLIENT_T1_2 faulted @ 0x7b0a_9fffa000. Fault is of type FAULT_PDE ACCESS_TYPE_VIRT_READ ``` 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`), engine `strata-dsv41 0.1.55 build c62d5e3a1`, built from source with `packaging/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 `ista` recipe (`--dspark-noise-token 128799 --dspark-markov-rank 256`, `profile-2.25.bin`). Pictures off. ``` strata-dsv41 --serve --pack <pack-2.25> --max-context 262144 --eos 1 --vision off --dspark auto --dspark-conf 0.65 --tp 2 --layer-split auto ds4: tensor parallel 2 -> 1: the experts' 256-value blocks split n_ff 2304 no other way (each GPU its own layers) ds4: DSpark not loaded: ... ds4: RAM store: 6513 of the profile's hottest experts read in (59.6 GB) in 9.0 s ds4: CUDA0 layers [0, 19]: weights 2.81 GB, experts 9.89 GB (1020 of 7680 in VRAM), caches 0.15 GB, 580 MiB free ds4: CUDA1 layers [20, 39] + head: weights 3.05 GB, experts 9.82 GB (968 of 7680 in VRAM), caches 0.10 GB, 584 MiB free ds4: 13372 routed experts on the CPU lane (130.1 GB, in place in the model's files), 12 threads ``` 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.
Author
Owner

@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:

  • Long conversation A starting at 187,491 tokens (first read 650 s), growing about 3K per turn to 205,619, with a short conversation B of two turns (3.3-3.9K) between returns to A. That is 4 cycles, 15 requests and 4 switches back to A after B, max_tokens 256: no fault. Prefix reuse worked on every turn (cached = previous prompt, the same "took back a ... conversation" lines as in the real run).
  • Earlier, the same script at 74-82K: 14 requests, no fault.

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.

<!-- gh-comment-id:6597338772 --> @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: - Long conversation A starting at **187,491 tokens** (first read 650 s), growing about 3K per turn to **205,619**, with a short conversation B of two turns (3.3-3.9K) between returns to A. That is 4 cycles, 15 requests and 4 switches back to A after B, `max_tokens` 256: **no fault**. Prefix reuse worked on every turn (`cached` = previous prompt, the same "took back a ... conversation" lines as in the real run). - Earlier, the same script at 74-82K: 14 requests, no fault. 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2353
No description provided.