Eval bug: CUDA graphs hang the GPU channel (RC watchdog + Xid 8) on RTX 5090 Laptop / sm_120; GGML_CUDA_DISABLE_GRAPHS=1 is a complete workaround
Name and Version
version: 0.1.0-dev (build 1, commit 9f0d017)
built with GNU 13.3.0 for Linux x86_64
Full commit: 9f0d017efb4a388bd5c60a27a575c90f20868e51 (2026-08-17)
Operating systems
Linux
GGML backends
CUDA
Hardware
| GPU | NVIDIA GeForce RTX 5090 Laptop GPU (GB203M), 24463 MiB, compute capability 12.0 |
| CPU | Intel Core Ultra 9 275HX |
| Laptop | HP OMEN MAX 16 (board 8D41) |
| Driver | 595.84 |
| CUDA runtime | 13.2 |
| CUDA toolkit used to build | 13.3, V13.3.73 |
| OS | Ubuntu 24.04.4 LTS, kernel 7.0.0-29-generic |
Build configuration:
CMAKE_BUILD_TYPE = Release
CMAKE_CUDA_ARCHITECTURES = 120
GGML_CUDA = ON
GGML_CUDA_GRAPHS = ON
GGML_CUDA_FA = ON
GGML_CUDA_FORCE_CUBLAS = OFF
GGML_CUDA_FORCE_MMQ = OFF
GGML_SCHED_MAX_COPIES = 1
Models
Qwen3.8-27B Q4_K_M GGUF (arch qwen35, 27.32B params, 15.65 GiB, hybrid attention + SSM, 64 layers, n_embd_head_k/v = 256), loaded together with the F16 mmproj for vision.
The hang reproduces with two different Q4_K_M builds of this architecture: the stock unsloth Qwen3.8-27B-Q4_K_M.gguf and a third party abliterated build of the same model. So it is not specific to one quantization run or one finetune.
Problem description and steps to reproduce
Under sustained inference load, the GPU stops servicing a command channel. The NVIDIA kernel driver's Robust Channel watchdog declares the GPU locked after a 7 second notify timeout, raises Xid 8, and llama-server aborts inside ggml_abort with a CUDA error.
Setting GGML_CUDA_DISABLE_GRAPHS=1 eliminates the failure completely. Nothing else needs to change.
Command line that reproduces the hang:
llama-server \
--model Qwen3.8-27B-Q4_K_M.gguf \
--mmproj mmproj-F16.gguf \
--host 0.0.0.0 --port 8000 \
-b 2048 -ub 512 -fitt 0 \
--cache-type-k q8_0 --cache-type-v q8_0 \
--cache-ram 32768 --ctx-checkpoints 32 \
--threads 12 --threads-batch 12 \
-ngl 999 --no-mmap --mlock \
--reasoning-preserve \
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0 \
--presence-penalty 0.0 --repeat-penalty 1.0 \
-np 1 -lv 4
The exact same command line prefixed with GGML_CUDA_DISABLE_GRAPHS=1 does not hang.
Steps:
- Start
llama-serverwith the command above. - Drive it with a real coding agent workload (I used OpenCode) so the slot stays busy with long prompts and long generations.
- Wait. The hang is stochastic, not deterministic. It never happens on the first request.
Failure rate
Across 11 observed hangs, time from server start to hang was:
min 4 minutes
mean 8.6 minutes
max 15 minutes
With GGML_CUDA_DISABLE_GRAPHS=1 the same workload has run 50 minutes and then 32+ minutes without a single hang, on the same boot, same GPU, same model, same client. Assuming the failure rate is unchanged, the probability of surviving 32 minutes by chance is under 3 percent.
A/B evidence, same boot, same hour, same model
| PID | GGML_CUDA_DISABLE_GRAPHS |
fusion | Result |
|---|---|---|---|
| 4555 | not set | enabled | hang at 16:27:41 |
| 10643 | not set | enabled | hang at 16:37:15 |
| 3568 | =1 |
disabled | 50 minutes clean, stopped manually |
| 40527 | =1 |
enabled | 32+ minutes clean and still running |
PID 40527 is the important row. It has kernel fusion enabled and only CUDA graphs disabled, and it is stable. So this is not the fusion path, it is the graph path.
Collateral damage
While llama-server holds the GPU, the X server hits Xid 8 on its own channel too:
NVRM: Xid (PCI:0000:02:00): 8, pid=2434, name=Xorg, channel 0x00000002
This is consistent with a single long running or non terminating kernel blocking the GPU for more than the 7 second watchdog window, starving other channels.
What I ruled out
- Power / TGP. Hangs occur identically at the stock 95 W limit and at the full 175 W (150 W base + 25 W Dynamic Boost). Not a power delivery problem.
- Thermal.
HW Thermal Slowdowncounter is 0. Temperatures ranged 67 to 82 C against a 87 C target, 89 C slowdown, 92 C shutdown. No thermal event. - Hardware fault. No Xid 79, no Xid 63/64, no ECC errors. A clean reboot does not prevent the hang, it recurs 16 minutes into a fresh boot.
- MTP / speculative decoding. Hangs with and without
--spec-type draft-mtp. - Kernel fusion.
GGML_CUDA_DISABLE_FUSION=1is not required. With fusion enabled and only graphs disabled the server is stable. - KV cache quantization.
q8_0K and V are used in both the hanging and the stable configuration.
First Bad Commit
Not bisected. Present in 9f0d017.
This looks distinct from the two existing Blackwell reports:
- #21564 reports Xid 43 (illegal memory access) traced to
flash_attn_stream_k_fixup. - #24399 reports a device exception from an out of range shared memory store in
mul_mat_q<Q8_0,128>.
Both of those are illegal accesses. What I am seeing is a hang, not an illegal access: the RC watchdog fires on a 7 second timeout and the hardware exception counters stay at zero. Different failure mode, and the workaround is different as well.
Relevant log output
Kernel log
Every hang is preceded by the watchdog line:
kernel: NVRM: krcWatchdog_IMPL: RC watchdog: GPU is probably locked! Notify Timeout Seconds: 7
kernel: NVRM: Xid (PCI:0000:02:00): 8, pid=4555, name=llama-server, channel 0x00000007
Sample sequence over one afternoon:
15:05:41 Xid 8 llama-server channel 0x00000007
15:20:45 Xid 8 llama-server channel 0x00000007
15:24:35 Xid 8 llama-server channel 0x00000007
15:28:33 Xid 8 llama-server channel 0x00000007
15:35:44 Xid 8 llama-server channel 0x00000007
16:24:12 Xid 8 Xorg channel 0x00000002
16:27:41 Xid 8 llama-server channel 0x00000007
16:37:15 Xid 8 llama-server channel 0x00000005
Backtrace A, synchronous, names the graph path
This is the informative one. The error is caught in the frame that launched the kernel, inside the CUDA graph compute path:
#3 ggml_cuda_error(char const*, char const*, char const*, int, char const*)
from libggml-cuda.so.0
#4 rms_norm_mul_f32_cuda(float const*, float const*, float const*, float*, int, int, int, int,
long, long, long, long, long, long, unsigned int, unsigned int, unsigned int, unsigned int,
long, long, long, unsigned int, unsigned int, unsigned int, unsigned int, float, CUstream_st*)
from libggml-cuda.so.0
#5 ggml_cuda_op_rms_norm_fused(ggml_backend_cuda_context&, ggml_tensor*, ggml_tensor*)
from libggml-cuda.so.0
#6 ggml_cuda_try_fuse(ggml_backend_cuda_context*, ggml_cgraph*, int)
from libggml-cuda.so.0
#7 ggml_backend_cuda_graph_compute(ggml_backend*, ggml_cgraph*)
from libggml-cuda.so.0
#8 ggml_backend_sched_graph_compute_async
from libggml-base.so.0
#9 llama_context::graph_compute(ggml_cgraph*, bool)
#10 llama_context::process_ubatch(llama_ubatch const&, llm_graph_type, llama_memory_context_i*, ggml_status&)
#11 llama_context::decode(llama_batch const&)
#12 llama_decode
#15 server_context_impl::decode(int&, int, llama_batch&)
#16 server_context_impl::update_slots()
#17 server_queue::start_loop(long)
Because CUDA errors are sticky, rms_norm_mul_f32_cuda may be the first call to observe an already dead context rather than the culprit itself. I am reporting the frame as observed, not as a claim about which kernel hangs.
Backtrace B, asynchronous, most common form
Most hangs surface later, at the synchronization point, so no kernel name is available:
#3 ggml_cuda_error(char const*, char const*, char const*, int, char const*)
#4 ggml_backend_cuda_synchronize(ggml_backend*)
#5 ggml_backend_sched_synchronize
#6 llama_context::synchronize()
#7 server_queue::yield_to_queue(std::function<void ()>&&)
#8 server_context_impl::decode(int&, int, llama_batch&)
#9 server_context_impl::update_slots()
#10 server_queue::start_loop(long)
GPU state at the time of the hangs
GPU Current Temp : 82 C
GPU Target Temperature : 87 C
HW Thermal Slowdown : Not Active (counter 0 us)
SW Power Cap : Active (expected, at the 175 W ceiling)
Power draw : 167 W of a 175 W limit
Additional notes
I am happy to run any diagnostic build, apply a patch, bisect, or capture a CUDA_LAUNCH_BLOCKING=1 trace. This machine reproduces the hang within 15 minutes of load, so turnaround is fast.
Second data point, different Blackwell GPU: NVIDIA RTX PRO 4000 Blackwell (workstation, PCIe). Same failure mode, same OS (Ubuntu 24.04 but 7.0.0-28-generic), same workaround.
- Qwen3.8-27B UD-Q4_K_XL, -c 98304, -ctk/-ctv q8_0, -fa on
- All runs had --spec-type draft-mtp --spec-draft-n-max 2 (MTP on), crashing and stable alike — only delta is GGML_CUDA_DISABLE_GRAPHS=1
- Xid 8 RC watchdog (7s) on channels 0x00000003 and 0x00000006 across runs; one crash during tg at ~41k context (n_gen=1469, tg=37.27 t/s), not pp
- With GGML_CUDA_DISABLE_GRAPHS=1: filled KV to full with no Xid (overnight run remained stable)
- No ECC/thermal/power events observed
Consistent with your finding that MTP is not a factor; graph path implicated by the same A/B logic. Happy to provide dmesg/backtraces if useful.
Same bug with me.
fastfetch
.... tao@Kubutu
.',:clooo: .:looooo:. ----------
.;looooooooc .oooooooooo' OS: Ubuntu 24.04.4 LTS (Noble Numbat) x86_64
.;looooool:,''. :ooooooooooc Host: MS-iCraft Z890 Pacific (E2.2D)
;looool;. 'oooooooooo, Kernel: Linux 7.0.0-30-generic
;clool' .cooooooc. ,, Uptime: 5 days, 14 hours, 57 mins
... ...... .:oo, Packages: 3482 (dpkg), 12 (snap)
.;clol:,. .loooo' Shell: bash 5.2.21
:ooooooooo, 'ooool Display (UGREEN): 2560x1440 in 27", 60 Hz [External]
'ooooooooooo. loooo. Terminal: /dev/pts/5 9.6p1
'ooooooooool coooo. CPU: Intel(R) Core(TM) Ultra 7 270K Plus (8+16) @ 5.50 GHz
,loooooooc. .loooo. GPU 1: NVIDIA GeForce RTX 5090 [Discrete]
.,;;;'. ;ooooc GPU 2: Intel Graphics @ 2.00 GHz [Integrated]
... ,ooool. Memory: 15.92 GiB / 62.28 GiB (26%)
.cooooc. ..',,'. .cooo. Swap: 2.56 GiB / 64.00 GiB (4%)
;ooooo:. ;oooooooc. :l. Disk (/): 800.35 GiB / 1.83 TiB (43%) - ext4
.coooooc,.. coooooooooo. Local IP (enp131s0): XXX
.:ooooooolc:. .ooooooooooo' Locale: zh_CN.UTF-8
.':loooooo; ,oooooooooc
..';::c' .;loooo:'
Fri Aug 28 17:27:10 2026
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 610.43.02 KMD Version: 610.43.02 CUDA UMD Version: 13.3 |
+-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 5090 On | 00000000:02:00.0 Off | N/A |
| 0% 41C P8 21W / 600W | 3MiB / 32607MiB | 0% Default |
+-----------------------------------------+------------------------+----------------------+
Processes:
No running processes found
nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2026 NVIDIA Corporation
Built on Tue_Jun_09_02:43:40_PM_PDT_2026
Cuda compilation tools, release 13.3, V13.3.73
Build cuda_13.3.r13.3/compiler.38244171_0
sudo dmesg -T | grep -Ei 'NVRM|Xid|watchdog' | tail -100
[五 8月 28 16:17:33 2026] NVRM: krcWatchdog_IMPL: RC watchdog: GPU is probably locked! Notify Timeout Seconds: 7
[五 8月 28 16:17:33 2026] NVRM: GPU at PCI:0000:02:00: GPU-6175bcbe-b680-f62e-2a32-5d808fd96ff7
[五 8月 28 16:17:33 2026] NVRM: GPU Board Serial Number: 0
[五 8月 28 16:17:33 2026] NVRM: Xid (PCI:0000:02:00): 8, pid=408678, name=llama-server, channel 0x00000003
[五 8月 28 16:41:35 2026] NVRM: krcWatchdog_IMPL: RC watchdog: GPU is probably locked! Notify Timeout Seconds: 7
[五 8月 28 16:41:35 2026] NVRM: Xid (PCI:0000:02:00): 8, pid=435984, name=llama-server, channel 0x00000003
[五 8月 28 17:23:17 2026] NVRM: krcWatchdog_IMPL: RC watchdog: GPU is probably locked! Notify Timeout Seconds: 7
[五 8月 28 17:23:17 2026] NVRM: Xid (PCI:0000:02:00): 8, pid=581734, name=llama-server, channel 0x00000003
[五 8月 28 17:24:16 2026] NVRM: krcWatchdog_IMPL: RC watchdog: GPU is probably locked! Notify Timeout Seconds: 7
[五 8月 28 17:24:16 2026] NVRM: Xid (PCI:0000:02:00): 8, pid=587536, name=llama-server, channel 0x00000003
errors:
0.47.894.819 E CUDA error: the launch timed out and was terminated
0.47.894.821 E current device: 0, in function ggml_backend_cuda_synchronize at /home/tao/Pytorch/llama.cpp/ggml/src/ggml-cuda/ggml-cuda.cu:2537
0.47.894.822 E cudaStreamSynchronize(cuda_ctx->stream())
[New LWP 587657]
[New LWP 587574]
[New LWP 587573]
[New LWP 587572]
[New LWP 587571]
[New LWP 587570]
[New LWP 587569]
[New LWP 587568]
[New LWP 587567]
[New LWP 587566]
[New LWP 587565]
[New LWP 587564]
[New LWP 587563]
[New LWP 587562]
[New LWP 587561]
[New LWP 587560]
[New LWP 587559]
[New LWP 587558]
[New LWP 587557]
[New LWP 587556]
[New LWP 587555]
[New LWP 587554]
[New LWP 587553]
[New LWP 587552]
[New LWP 587551]
[New LWP 587550]
[New LWP 587549]
[New LWP 587548]
[New LWP 587540]
[New LWP 587539]
[New LWP 587538]
This GDB supports auto-downloading debuginfo from the following URLs:
<https://debuginfod.ubuntu.com>
Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal]
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x000070db8fd10913 in __GI___wait4 (pid=588802, stat_loc=0x0, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:30
warning: 30 ../sysdeps/unix/sysv/linux/wait4.c: No such file or directory
#0 0x000070db8fd10913 in __GI___wait4 (pid=588802, stat_loc=0x0, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:30
30 in ../sysdeps/unix/sysv/linux/wait4.c
#1 0x000070db90349723 in ggml_print_backtrace () from /home/tao/Pytorch/llama.cpp/build/Cuda/bin/libggml-base.so.0
#2 0x000070db903498cb in ggml_abort () from /home/tao/Pytorch/llama.cpp/build/Cuda/bin/libggml-base.so.0
#3 0x000070db8c479007 in ggml_cuda_error(char const*, char const*, char const*, int, char const*) () from /home/tao/Pytorch/llama.cpp/build/Cuda/bin/libggml-cuda.so.0
#4 0x000070db8c480c48 in ggml_backend_cuda_synchronize(ggml_backend*) () from /home/tao/Pytorch/llama.cpp/build/Cuda/bin/libggml-cuda.so.0
#5 0x000070db90363dee in ggml_backend_sched_synchronize () from /home/tao/Pytorch/llama.cpp/build/Cuda/bin/libggml-base.so.0
#6 0x000070db8f301199 in llama_context::synchronize() () from /home/tao/Pytorch/llama.cpp/build/Cuda/bin/libllama.so.0
#7 0x000070db90515046 in server_queue::yield_to_queue(std::function<void ()>&&) () from /home/tao/Pytorch/llama.cpp/build/Cuda/bin/libllama-server-impl.so
#8 0x000070db905654d9 in server_context_impl::decode(int&, int, llama_batch&) () from /home/tao/Pytorch/llama.cpp/build/Cuda/bin/libllama-server-impl.so
#9 0x000070db90566f71 in server_context_impl::update_slots() () from /home/tao/Pytorch/llama.cpp/build/Cuda/bin/libllama-server-impl.so
#10 0x000070db90515c85 in server_queue::start_loop(long) () from /home/tao/Pytorch/llama.cpp/build/Cuda/bin/libllama-server-impl.so
#11 0x000070db904cd9d0 in llama_server(common_params&, int, char**) () from /home/tao/Pytorch/llama.cpp/build/Cuda/bin/libllama-server-impl.so
#12 0x000070db904cea16 in llama_server(int, char**) () from /home/tao/Pytorch/llama.cpp/build/Cuda/bin/libllama-server-impl.so
#13 0x000070db8fc2a1ca in __libc_start_call_main (main=main@entry=0x5893cf8d8270 <main>, argc=argc@entry=53, argv=argv@entry=0x7ffdbc341cc8) at ../sysdeps/nptl/libc_start_call_main.h:58
warning: 58 ../sysdeps/nptl/libc_start_call_main.h: No such file or directory
#14 0x000070db8fc2a28b in __libc_start_main_impl (main=0x5893cf8d8270 <main>, argc=53, argv=0x7ffdbc341cc8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffdbc341cb8) at ../csu/libc-start.c:360
warning: 360 ../csu/libc-start.c: No such file or directory
#15 0x00005893cf8d82a5 in _start ()
[Inferior 1 (process 587536) detached]
Aborted (core dumped)
Reproduced on an RTX 5090, llama-server b10355 (dd1ea5243) — same workaround
Confirmed on a build currently in use by LM Studio runtime v2.25.2, which I recompiled locally.
Environment
- GPU: NVIDIA GeForce RTX 5090
- Driver: 610.57.04
- CUDA toolkit: 13.3 (V13.3.73)
- Build:
10355 (dd1ea5243)(2026-08-10), gcc/g++ 15.3.0 - Configure:
CUDAToolkit_ROOT=/opt/cuda CUDACXX=/opt/cuda/bin/nvcc cmake -B build \ -DCMAKE_BUILD_TYPE=Release -DGGML_NATIVE=ON -DGGML_CUDA=ON \ -DGGML_CUDA_FA_ALL_QUANTS=ON -DGGML_SCHED_MAX_COPIES=1 -DBUILD_SHARED_LIBS=OFF \ -DCMAKE_CUDA_ARCHITECTURES="120" \ -DCMAKE_C_COMPILER=/usr/bin/gcc-15 -DCMAKE_CXX_COMPILER=/usr/bin/g++-15 \ -DCMAKE_C_FLAGS="-O2 -fno-strict-aliasing -fno-fast-math" \ -DCMAKE_CXX_FLAGS="-O2 -fno-strict-aliasing -fno-fast-math" \ -DCMAKE_CUDA_FLAGS="-Xcompiler -O2,-fno-strict-aliasing,-fno-fast-math" - Model: Qwen3.8-27B UD-Q6_K GGUF (unsloth) + F16 mmproj;
--cache-type-k q8_0 --cache-type-v q8_0 - Server flags (relevant subset):
--ctx-size 241664 --batch-size 512 --ubatch-size 512 --parallel 2 --kv-unified --cont-batching --flash-attn on --cache-ram 32768 --no-context-shift --spec-type draft-mtp --spec-draft-n-max 2
Crash data
12 crashes over 2 days, all with the identical signature:
NVRM: krcWatchdog_IMPL: RC watchdog: GPU is probably locked! (Notify Timeout Seconds: 7)
NVRM: Xid (PCI:0000:09:00): 8, pid=..., name=llama-server, channel 0x00000002
server-side:
ggml-cuda.cu:106: CUDA error: the launch timed out and was terminated
current device: 0, in function ggml_backend_cuda_synchronize at ggml-cuda.cu:2499
cudaStreamSynchronize(cuda_ctx->stream())
- Workload: coding agent (OpenCode) keeping the slot busy with ~150–220k-token prompts and long generations, plus a synthetic loop (216k-token prefill + 4096-token generation, repeated).
- Time to first crash under the synthetic heavy load: ~24 min (server uptime ~26 min). Under the organic agent workload, crashes recurred across multiple server instances at irregular intervals.
- Hang point varies by lifecycle phase: mid-decode (~3.4k / ~3.8k generated tokens) and between turns, immediately after a prompt-cache eviction.
- Ruled out: thermal (no HW slowdown, 58–61 °C), no Xid 79/63/64, no ECC errors, no PCIe AER / MCE.
Workaround: GGML_CUDA_DISABLE_GRAPHS=1 (env var added to llama-swap config, no rebuild)
- Synthetic loop (2 × [216k prefill + 4096-gen]) passes clean, then 8 hours of continuous uptime under a near-full agent workload — 0 Xid events.
--spec-type draft-mtpwas enabled in both the crashing and the stable runs, so the workaround holds with MTP on.- One difference from the OP's setup: multi-slot (
--parallel 2 --kv-unified --cont-batching) rather than-np 1— so it's not tied to single-slot operation.
New datapoint: multi-GPU (4090 + 5080, tensor split) with the same Xid 8
Reporting my setup to complete the picture: all current repros in this issue appear to be single-GPU. Mine is (to my knowledge) the only one with an uneven tensor split across two GPUs, and it reproduces the same Xid 8 / RC watchdog with the same workaround.
The issue started after I replaced a RTX 4060 Ti 16G with a RTX 5080 (both as the second GPU next to the 4090); with the previous card this never occurred.
Environment
- GPUs: NVIDIA GeForce RTX 4090 (Ada, device 0) + NVIDIA GeForce RTX 5080 (Blackwell, sm_120, device 1),
--tensor-split 3,1 - Driver: 595.84 (open kernel module), Linux x86_64, Ubuntu 24.04
- Build: b10665 (commit ca3d5a3e1), CUDA 13
- Model: Qwen3.8-27B UD-Q4_K_XL + mmproj-F16 (arch qwen35)
- Relevant flags:
-c 262144 -fa on -np 1 --cache-type-k q8_0 --cache-type-v q8_0 --spec-type draft-mtp --spec-draft-n-max 3 --cache-ram 32768 --tensor-split 3,1
Symptom (identical to this issue)
NVRM: krcWatchdog_IMPL: RC watchdog: GPU is probably locked! Notify Timeout Seconds: 7
NVRM: Xid (PCI:0000:05:00): 8, name=llama-server, channel 0x00000004
CUDA error: the launch timed out and was terminated
current device: 1, in function ggml_backend_cuda_synchronize
- The failing GPU is always the 5080 (device 1, Blackwell); the 4090 (Ada) never reports an error
- Backtrace:
ggml_backend_cuda_synchronize -> llama_context::synchronize -> server_context_impl::decode -> common_speculative_process(MTP) - With graphs ON + tensor split 3,1, it crashed twice in ~12h under real agentic load (100k+ token contexts). It does not reproduce with short cutoff (2k) - the trigger is a large prefill/cache, same pattern reported here
Local A/B test (Aug 23, harness: 58k prefill + 2048 generation in a loop)
| Configuration | Result |
|---|---|
| Baseline (PDL on, graphs on) | Xid 8 in ~15 requests |
GGML_CUDA_PDL=0 (graphs on) |
Same Xid 8 - PDL ruled out as the trigger |
GGML_CUDA_DISABLE_GRAPHS=1 (PDL default) |
0 Xid in 129 requests / 58 min |
| PR #26827 (serialize MTP ubatches) | Xid 8 in ~3 min - insufficient in this setup (uneven split + separate MTP KV) |
Current state
GGML_CUDA_DISABLE_GRAPHS=1 as workaround: ~11h without Xid under real use (coding agents, large contexts). Measured cost: ~10-15% in decode tok/s.
One observation that may help the investigation: with graphs OFF, transient stalls of 30-300s still happen (they recover on their own, no Xid) - i.e. the stall exists in every configuration; what the graph adds is the risk of the channel not completing within the watchdog window.
Note: my English is not very good, so I used AI to translate this. Corrections are welcome.
Same signature on RTX 5090 desktop — GGML_CUDA_DISABLE_GRAPHS=1 stabilizes, MTP spec decode unaffected
Reproducing the exact failure here and can confirm the env-var workaround.
Setup
- RTX 5090 desktop, 32 GB, driver 610.43.02 (open kernel module), X11 active on the GPU
- Upstream HEAD, clean tree: version: 0.4.0-dev (build 10820, commit 74a7c897f) — one commit after tag b10819
- Build: Release, GNU 13.3.0, CUDA 13.3, GGML_CUDA=ON, GGML_CUDA_FORCE_MMQ=ON, GGML_CUDA_FA_ALL_QUANTS=ON (FA on), GGML_CUDA_GRAPHS=ON (default). Note: OP's build had FORCE_MMQ=OFF, so the hang reproduces with both MMQ and cuBLAS matmul paths
- Qwen3.8-27B UD Q5_K_M + F16 mmproj (same qwen35 hybrid attention + SSM arch as OP, 64 layers)
- Flags of note: -c 196608 -b 4096 -ub 4096 --flash-attn on --cache-type-k q8_0 --cache-type-v q4_1 --spec-type draft-mtp --spec-draft-n-max 2 --cont-batching --cache-ram 65535 --load-mode none --reasoning on --reasoning-budget 4096 --parallel 1
Observed failure (graphs enabled, pre-fix)
- 4 crashes in ~1 h of serving a coding agent through a proxy, time-to-hang 12–25 min
- Identical dmesg signature: krcWatchdog_IMPL: RC watchdog: GPU is probably locked! Notify Timeout Seconds: 7 → Xid 8 on llama-server's channel, plus one collateral Xid 8 on Xorg's channel (same as OP's "collateral damage")
- App-side death in ggml_backend_cuda_synchronize → CUDA error: the launch timed out and was terminated, i.e. OP's Backtrace B
- No visible stall: last print_timing showed healthy throughput (n_gen=1848, tg=67.96 t/s) right before the kill; no Xid 31/63/64/79, ECC clean, HW thermal counter 0 us at ~72 °C
Workaround verification
- GGML_CUDA_DISABLE_GRAPHS=1 (everything else unchanged, MTP spec decode still enabled): sustained 14k+ token continuous generations, no recurrence, server stable across >1 h
- With graphs off, MTP draft acceptance (306/438 in a sample) still yields ~120 t/s, so the graphs-off cost is essentially invisible when spec decode is on
Happy to run instrumented builds or CUDA_LAUNCH_BLOCKING=1 captures — this box hangs within ~15 min of agent workload with graphs enabled, so turnaround is fast.
Another confirmed data point: desktop RTX 5090 (GB202), driver 610.57.04, Ubuntu 24.04, kernel 7.0.0-31-generic, build 10851 (67672dc5b), CUDA arch 120 — same Xid 8 / RC watchdog signature, kernel-log confirmed.
Model: Qwen3.8-27B Q4_K_M (a third-party finetune — supports the OP's observation that it's not specific to one quantization run), served by llama-server with 2–3 parallel slots, ~516k total context, KV q4_0,
--flash-attn on,-b 8192 -ub 256, mlock, and dflash draft speculative decoding (--spec-type draft-dflash, draft KV q8_0) — so add dflash to MTP on the list of spec-decode configs that don't change the outcome.Three RC-watchdog kills across two different 5090s in a 3-GPU fleet within ~28 hours, each 5–10 minutes into sustained multi-slot gateway traffic (concurrent long prefill + decode at crash time):
Sep 08 22:36:47 kernel: NVRM: krcWatchdog_IMPL: RC watchdog: GPU is probably locked! Notify Timeout Seconds: 7 Sep 08 22:36:47 kernel: NVRM: Xid (PCI:0000:c2:00): 8, pid=1316826, name=llama-server, channel 0x00000007 Sep 09 02:06:46 kernel: NVRM: Xid (PCI:0000:e2:00): 8, pid=1411595, name=llama-server, channel 0x00000007 Sep 09 02:29:44 kernel: NVRM: Xid (PCI:0000:e2:00): 8, pid=1753266, name=llama-server, channel 0x00000007Server side each time:
CUDA error: the launch timed out and was terminated in function ggml_backend_cuda_synchronize at ggml/src/ggml-cuda/ggml-cuda.cu:2543 cudaStreamSynchronize(cuda_ctx->stream())CUDA graphs were active in the crashed instances (
graphs reusedin the hundreds at time of death). One possibly useful observation: the hang has so far only hit our instances with the largest per-slot windows (180k–258k tokens/slot, <1.2 GiB free VRAM); identical instances at 172k/slot with ~1 GiB+ free have run for days under the same traffic without an Xid. Could be coincidence given the stochastic timing, or free-memory pressure may modulate the hang probability. We haven't run theGGML_CUDA_DISABLE_GRAPHS=1A/B yet — will report back once we have a multi-day result.
Another data point, and I think the only non-Ubuntu one so far. Mostly a confirmation, but there are three details from my setup that might be useful.
Setup: RTX 5090 desktop (GB202, sm_120), driver 610.57.04 open kernel modules, Fedora 44, kernels 7.1.8-200 / 7.1.10-200 / 7.1.13-200. Ollama 0.32.15, which vendors llama.cpp b10488 — so not an upstream build, but the same graph path. Qwen3.8-27B Q5_K_M (qwen35), -c 131072, q8_0 K/V, FA on, --spec-type draft-mtp, single slot, ~26 GB resident. For the runs below I checked that the env var actually reached the spawned llama-server process and not just the service.
Signature looks identical to everyone else's: RC watchdog 7 s → Xid 8 on llama-server's channel → cudaErrorLaunchTimeout, GPU self-recovers in ~15 s, host stays up. 62 events logged, all of them Xid 8 — no 31/63/64/79, no ECC, no thermal or power events. Nearly all backtraces are the OP's Backtrace B (ggml_backend_cuda_synchronize). Collateral hit gnome-shell's channel 3 times (Wayland equivalent of the Xorg case) and an unrelated SDR application once, so at least here the starvation isn't limited to the compositor.
1. VRAM headroom and per-slot context don't seem to protect
@cogni-ai-ee wondered whether free memory modulates this — hangs at 180–258k tokens/slot with <1.2 GiB free, while 172k/slot instances with more headroom ran for days.
My box doesn't fit either reading: 131k tokens on a single slot, 26484 of 32607 MiB used — 6123 MiB free — and 62 events. That's below your clean instances on context size and several times their headroom on free VRAM. Might just mean my setup differs in some other way, but I thought it was worth mentioning before you spend time on it.
2. Kernel version doesn't look like the trigger, at least here
Every report in the thread that states a kernel is on Ubuntu's 7.0.0 series, so I may have the only data where that varies. Three kernels, one unchanged driver binary (610.57.04). I happen to log GPU power every 10 s, so I can normalise by sustained load rather than wall clock — events per 100 minutes above 500 W:
kernel 7.1.10 12 events / 192 min = 6.2
kernel 7.1.8 7 events / 71 min = 9.9
kernel 7.1.13 42 events / 317 min = 13.2
All non-zero. I spent a few days convinced the kernel was the variable before this data talked me out of it.
3. Graphs-off exposure, load-normalised
214 minutes above 500 W across two boots and two kernels, zero events. At the rates above that would be 13–28 expected. This is mixed real workload rather than a controlled A/B, so much weaker evidence than @giovaneHR's harness — but it points the same way.
@giovaneHR — the 30–300 s self-recovering stalls with graphs off are the thing I keep coming back to, especially next to @alpharesearch seeing healthy throughput right up to the kill. If the stall is there in every configuration and graphs only push it past the 7 s window, that seems like it would change what a fix needs to do. If you don't mind me asking, how did you spot them — gaps in print_timing, or something else? I have the 10 s power sampling and haven't gone looking for sub-watchdog stalls yet, but I'd guess they'd show as troughs.
I also had whole-GPU hangs on an RTX 5090 under Windows 11 while running Qwen3.8-27B Q4_K_M through LM Studio 0.4.24+1, CUDA12 llama.cpp runtime 2.40.0, and NVIDIA driver 616.92.
Failures persisted after reinstalling drivers and disabling overclocking. Windows recorded nvlddmkm events 14/153, and nvidia-smi reported GPU loss requiring a reboot.
After regressions of conservative-to-aggressive configurations, isolated batching, flash attention, CUDA graphs, context length and checkpoints. The maximum configuration failed with graphs both enabled and disabled. Batch 8192, microbatches 256, 512 and 2048 failed as well. Flash attention also failed at batch 512/microbatch 128. Enabling graphs on an otherwise passing configuration failed after five responses.
The strongest configuration that passed was: batch 8192, microbatch 128, context 32768, checkpoints 32, flash attention off, CUDA graphs off (GGML_CUDA_DISABLE_GRAPHS=1 verified in the backend process), full GPU/KV offload, one slot, and MTP disabled.
Hope this helps.
Similar here:
CUDA error: the launch timed out and was terminated current device: 0, in function ggml_backend_cuda_synchronize cudaStreamSynchronize(cuda_ctx->stream())
The kernel log shows:
NVRM: krcWatchdog_IMPL: RC watchdog: GPU is probably locked! Notify Timeout Seconds: 7 NVRM: Xid (PCI:0000:02:00): 8, pid=33763, name=llama-server, channel 0x0000000e
GGML_CUDA_DISABLE_GRAPHS=1 appears to avoid the crash so far.
llama.cpp: version: 0.4.1-dev build: 11050 commit: 60b06ab9a9eeec26f8125c9316ccbf4ee4713d1f tag: b11050
GPU: NVIDIA RTX PRO 4000 Blackwell PCI ID: 10de:2c34 VRAM: 24467 MiB
NVIDIA driver: 595.91.07 Open Kernel Module
CUDA: 13.2 nvcc V13.2.78
OS: Ubuntu 24.04.5 LTS
Kernel: 6.17.0-1032-oem
Same issue: Ubuntu 26.04, RTX 5090, CUDA 13.2, Driver 595.99.02
Another data point, this time Windows 11 + RTX 5080 (desktop), with a kernel dump. CUDA graphs were enabled (default) when it happened. In this case the GPU hang did not stay inside llama-server: the driver failed to recover and the whole system went down with a 0x133 DPC_WATCHDOG_VIOLATION in nvlddmkm.sys.
Setup
| GPU | NVIDIA GeForce RTX 5080 (desktop, 16 GB, sm_120). Also drives the display (WDDM). Stock clocks, default power limit 360 W, no OC/undervolt tools installed |
| CPU / RAM | AMD Ryzen 7 9800X3D, 64 GB |
| OS | Windows 11 25H2, build 26200.9457 |
| Driver at time of crash | 591.86 (nvlddmkm.sys timestamp 2026-01-20) |
| llama.cpp | b11588 (7f51953d7), official llama-b11588-bin-win-cuda-13.4-x64.zip + cudart 13.4 |
| Model | Qwen3.6-35B-A3B, Q4_K_M GGUF (arch qwen35moe), a third-party uncensored finetune (HauhauCS) |
Command line:
llama-server -m Qwen3.6-35B-A3B-...-Q4_K_M.gguf --chat-template-file <patched template> --jinja \
-c 262144 -fa on -ctk q8_0 -ctv q8_0 --fit on --host 127.0.0.1 --port 8081
--fit with the default target margin put ~15.7 of 16.3 GB VRAM in use, with the remaining MoE experts in system RAM.
Workload
An agentic coding client (Claude Code via the /v1/messages endpoint) with an MCP tool server. That means many sequential requests with large prompts: ~115k tokens of system prompt and tool definitions, growing to ~149k tokens in the run where it failed. So it is long sustained prefill plus generation, which matches the pattern described in this issue.
What happened (Windows event log + dump)
| Time | Event |
|---|---|
| 00:34:11 | nvlddmkm Event 153: UCodeReset TDR occurred on GPUID:100, plus Event 14 |
| 00:34:13 | StartMenuExperienceHost.exe crashes in nvwgf2umx.dll (0xc0000005), presumably fallout from the reset |
| 00:35–00:36 | Start menu and explorer hang |
| 00:37:16 | nvlddmkm Event 153: Resetting TDR occurred on GPUID:100 |
| 00:39:36 | Bugcheck 0x133 DPC_WATCHDOG_VIOLATION, screen dead, hard power-off needed |
!analyze -v (WinDbg 1.2610, kernel triage dump):
DPC_WATCHDOG_VIOLATION (133)
Arg1: 0000000000000001 (cumulative DPC/ISR time exceeded)
Arg2: 0000000000001e00 (watchdog period, ticks = ~120 s)
DPC_TIMEOUT_TYPE: DPC_QUEUE_EXECUTION_TIMEOUT_EXCEEDED
FAILURE_BUCKET_ID: 0x133_ISR_nvlddmkm!unknown_function
SYMBOL_NAME: nvlddmkm+e34e3
STACK_TEXT:
nt!KeBugCheckEx
nt!KeAccumulateTicks+0x59c
nt!KiUpdateRunTime+0x9b
nt!KeClockInterruptNotify+0x44d
nt!KiCallInterruptServiceRoutine+0x334
nt!KiInterruptSubDispatchNoLockNoEtw+0x4e
nt!KiInterruptDispatchNoLockNoEtw+0x3c
nvlddmkm+0xe34e3
After the second TDR the driver apparently never recovered the GPU, and its interrupt path kept a CPU at elevated IRQL until the watchdog fired.
No WHEA errors. This was the first nvlddmkm error or unexpected shutdown on this machine in 60 days, and the GPU was not stress-tested by anything else at the time.
Status / next steps
- Driver updated to 617.42. Its release notes list no general fixes for this, and the Windows/LM Studio report above also saw
nvlddmkm14/153 on 616.92, so I don't expect the driver update alone to fix it. - I now run with
GGML_CUDA_DISABLE_GRAPHS=1(confirmed inggml-cuda.dllof this build). Not verified yet under the same workload. I will follow up with results, including whether it still occurs with graphs disabled, as reported above for one Windows setup.
Happy to provide more data (the minidump, nvidia-smi logs during a repro) if useful.
Gemma 4 + MTP, RTX 5070 Ti: no detected hangs in a 32 h short-prompt soak (≤ 8k prompts) or a separate ~1 busy h follow-up at 65–86k occupied
On llama.cpp b11804 (RTX 5070 Ti, Windows 11, driver 621.01), a 32-hour observation window produced 22,924 test attempts and no detected hangs. Soak prompts were 53–8,035 tokens; the 22,914 successful requests accumulated 9.64 hours of server-reported prompt-evaluation plus decode time. A separate long-context run added 0.966 busy hours. CUDA graph replay was directly observed in separate diagnostic runs at ~65k prompt depth, with and without MTP; graph execution during the original soak was not directly verified. Reports in this thread that name a model use Qwen3.x.
Update 2026-10-24: I ran the same build, model files and flags with -c 98304 (the only changed flag), without the proxy. Prompts were 65,170–77,925 tokens, with 73,362–86,117 occupied at turn end and 8,192 tokens decoded per turn (longest uninterrupted decode 60.5 s). No hangs were detected over 0.97 busy hours (time with a request in flight): 49/49 requests OK, no gap between streamed tokens above 0.047 s. After streaming progress began, 20 s without another data line triggered suspicion and 60 s triggered a stall; before the first prefill progress chunk, the thresholds were 90 s and 180 s. Server and event-log checks supplemented these thresholds. Assuming a constant rate and complete detection, the one-sided 95 % upper bound is about 3.1 hangs per busy hour (4.8 per decode hour): a limited negative result for this config and workload, not long-run stability. In a separate matched graphs-on/off benchmark, decode throughput was 29 % higher at a 65,102-token prompt depth and 44 % higher after a 27-token prompt.
Soak setup and checks. llama-b11804-bin-win-cuda-13.4-x64 behind llama-swap (a model-switching proxy); Unsloth gemma-4-12B-it-qat-UD-Q4_K_XL (all quantized tensors Q4_0) with its MTP draft (--spec-draft-n-max 4); -c 16384 -np 1 -fa on -ub 1024, f16 KV cache. Non-streaming chat, serial apart from two deliberate overlapping pairs; idle gaps of up to 90 min, one suspend-to-RAM and one hibernate, all served by the same process. Checks: a 20 s proxy deadline per request; in the server log, a release for every task launch, no CUDA error line and no in-task silence ≥ 5 s outside the suspends. All 10 non-OK outcomes have non-hang explanations (details).
What this does not cover (biggest gap first)
- Architecture, build, driver and execution path. Gemma 4 (interleaved sliding-window and full attention) against Qwen3.x (full attention and recurrent Gated DeltaNet); b11804 against the builds identified here, up to b11588. Hangs reported here without MTP mean MTP is not required for the failure; they do not mean this config takes the same path.
- Long-context exposure. Only about one busy hour, serial, on one slot, though beyond the thread's decode crash at ~41k occupied tokens and its 58k-token prefill harness; soak prompts never exceeded 8,035 tokens, nor soak requests 17.7 s.
- Detection coverage. The follow-up's streaming detector caught deliberate 25 s and 90 s process freezes on a separate test server (details). This control did not pass through the soak's proxy; under the soak's classification rules, a proxy deadline outside suspension counted as a stall. It tests detection of interrupted process progress, not sensitivity to the reported GPU hang. DxgKrnl channels could not be exported, and the bounds assume complete detection.
- Other differences, none isolated. A 16 GB card against mostly 5090 / 5080 / PRO 4000 here; Q4_0 weights, f16 KV,
-ub 1024; one slot.
What would change this: a GPU hang with a matching failure signature on Gemma would weaken an exclusively Qwen explanation without establishing a shared root cause; matched runs with CUDA graphs disabled would then test graph dependence.
Command, model files, definitions, non-OK outcomes, extra numbers, and the follow-up (recipe, graph logs, A/B, positive control)
Command (configured inference flags; paths shortened, the projector shown under its upstream filename, routing and logging arguments omitted). Environment: LLAMA_ARG_CHAT_TEMPLATE_KWARGS={"enable_thinking":false}. GGML_CUDA_DISABLE_GRAPHS is not set in the server config; checked on 2026-10-24, it is also absent from the user and machine environment. The soak-time server process environment was not captured.
llama-server
--model gemma-4-12B-it-qat-UD-Q4_K_XL.gguf
--mmproj mmproj-BF16.gguf
--model-draft mtp-gemma-4-12B-it.gguf
--spec-type draft-mtp --spec-draft-n-max 4
--n-gpu-layers 99 --ctx-size 16384 --jinja
--temp 1.0 --top-k 64 --top-p 0.95 --threads 8
-fa on -ctk f16 -ctv f16
--cache-ram 0 --ctx-checkpoints 0 --parallel 1 --slot-prompt-similarity 0
-ub 1024
The requests set temperature 0, which overrides the server default --temp 1.0.
Model files. Target and projector come from unsloth/gemma-4-12B-it-qat-GGUF at revision 980b060. The target gemma-4-12B-it-qat-UD-Q4_K_XL.gguf is 6,716,356,800 B, with header general.file_type = 2 (MOSTLY_Q4_0): 329 Q4_0 tensors (including token_embd) and 338 F32, with no K-quants. The MTP draft (253,708,800 B) is gemma4-assistant, 4 blocks, size label 423M; its header says BF16, but its 23 quantized tensors are Q4_0 (plus 26 F32). The model's sliding window is 1,024 tokens. Without --swa-full, b11804 allocates n_swa + n_ubatch = 2,048 SWA cache cells, so -ub affects the cache as well as prefill batching.
Build and system. version: 0.7.0-dev (build 11804, commit c7fc50941), Clang 20.1.8, bundled CUDA runtime 13.4. RTX 5070 Ti 16 GB (GB203). Driver 621.01 (CUDA UMD 13.5), Windows 11 25H2 build 26200.
Request classes. About 11 % of requests carried one image; outputs reached 1,285 tokens. Shares are of all 22,924 attempts; token ranges are over successful requests. All requests had temperature 0 and stream: false.
| Class | Share | Prompt tokens | Output tokens | max_tokens |
|---|---|---|---|---|
| short text | 63 % | 2,738–2,955 | 10–229 | 4096 |
| long text | 16 % | 3,103–4,095 | 373–1,285 | 4096 |
| long prompt | 5 % | 7,373–8,035 | 1,024 (cap) | 1024 |
| vision, 1 image | 11 % | 243–1,037 | 158–258 | 512 |
| generation | 5 % | 53 | 200 (cap) | 200 |
95 fixture entries, 91 distinct request bodies, were cycled. Gaps between requests were 0.3–3 s, apart from the deliberate idle gaps. The idle ladder used gaps of 5, 15, 30, 60 and 90 min followed by 6-request bursts, 8 bursts in all. The load profiles, including a 6 h sustained phase, are scheduler targets, not measured GPU utilisation. Queue-corrected client request time covered about a third of the scheduled window. After each resume from suspend-to-RAM and hibernate, the first four requests (short text, vision, long text, long prompt) were all OK.
Windows checks. The System and Application logs for the window (172 and 397 records) were searched for nvlddmkm 14/153, Display 4101, bugcheck 0x133, WHEA and LiveKernelEvent records; none were present. The DxgKrnl channels could not be exported.
Stall definition. A request counted as a stall if any of these held:
- the client saw it in flight for more than 30 s of queue-corrected awake time, polled every 250 ms (the client socket timeout was 180 s);
- it hit the 20 s proxy deadline outside a suspend;
- the backend log showed a task without a release, an in-task silence over 20 s, or a CUDA error line;
- the Windows System log showed a GPU or driver fault event in the window.
The log checks are a progress proxy, not direct kernel-progress instrumentation. Because the proxy ends every request at 20 s, a freeze longer than that surfaces as a deadline outcome; the client's 30 s flag cannot fire through the proxy.
Exposure and bounds. Every bound is -ln(0.05)/T for 0 events, under a homogeneous Poisson assumption; it holds only for this workload and assumes the detectors would have caught a hang.
| Exposure T (successful requests only) | Hours | 95 % upper rate / h |
|---|---|---|
| server-reported prompt-eval + decode time, 22,914 requests (headline) | 9.64 | 0.31 |
| proxy upstream time | 9.86 | 0.30 |
| client request time, queue-corrected, overlaps counted once; cancellation and suspend-interrupted probes excluded | 10.65 | 0.28 |
All three rows measure the same requests with different clocks, so they are not independent confirmations. I had planned a 10-hour exposure threshold: client time meets it, prompt-eval + decode time does not, and the headline uses the smaller denominator.
Non-OK request outcomes (10 of 22,924)
- 6 long-prompt probes asked the client to cancel after 5 s. Each was logged as
cancel task, and the next request was OK. - 2 overlapped suspend entry or suspension and got the proxy's deadline response around resume.
- 1 was refused before reaching llama.cpp, because the model had been deliberately unloaded at that moment. On reload, the "model loaded" line appeared at process-log time 4.238 s, and the warm-up and the first following request succeeded.
- 1 was a client-side
WinError 10055connection failure that never reached the proxy; its host-side cause was not established.
Slowest successful request. 17.7 s for 1,283 output tokens, against a 7.8 s median (p95 8.3 s) over 279 runs of the same fixture. Decode averaged 75.2 t/s against that fixture's median of 178.4 t/s, slower but still progressing. At the same moment a co-resident desktop app's dedicated GPU allocation had risen by 2,431 MiB and free VRAM was 1,489 MiB.
Other observations
- Apart from model load, the server log had no CUDA, OOM, abort or assert lines.
- ggml's graph-reuse counter (
graphs reused) reached 1,682,211, and the scheduler'sgraph reallocscounters stayed at 0/0. These concern ggml compute graphs; neither shows that CUDA graphs executed. - The server's VRAM was steady at 8,700 MiB dedicated + 284 MiB shared over 31 h, with brief lower readings.
- Two-hour medians of short-text decode stayed within 225–236 t/s, with no sustained decline. The highest sampled GPU temperature was 73.8 °C, and no thermal-throttle flags appeared in the samples.
- An earlier, separate 150-minute run with the same flags gave 2,775 / 2,775 OK, a maximum of 14.9 s and 1.25 h of summed request time. It ran under different conditions and is not pooled with the numbers above.
Follow-up (2026-10-24): recipe. Same binary, model files, flags and environment as the command above, except --ctx-size 98304 (about 4.6 GB VRAM free after load, no other change needed to fit). Each run used a fresh llama-server process on a local port, without the proxy; GGML_CUDA_DISABLE_GRAPHS was unset except in the A/B's "off" arm. The long-context run lasted 58.5 min of serial, streaming requests (stream: true, return_progress: true): 24 two-turn episodes plus one warm-up. Turn A is a synthetic document (a generated fictional maintenance archive, 65,000–70,000 tokens) with an instruction to write a long commentary; turn B is the same conversation plus turn A's output and a second instruction. The generator script is available on request. Every turn decodes 8,192 tokens (ignore_eos), sampled at the server defaults (temp 1.0, top-k 64, top-p 0.95) with a fixed seed per request. cache_n was 0 for every request, so every turn was a full prefill.
| Long-context run | Value |
|---|---|
| requests OK | 49 / 49 (48 turns + warm-up); 49 task launches, 49 releases |
| prompt tokens | turn A 65,170–69,684 · turn B 73,410–77,925 |
| occupied at turn end | 73,362–86,117 |
| per turn | prefill 22.1–28.6 s · decode 40.9–60.5 s at 135–200 t/s · draft acceptance 0.48–0.84 (pooled 0.69) |
| exposure | 0.966 client request h; server-reported timings: 0.339 h prompt evaluation + 0.624 h decode = 0.963 h · 393,280 decoded tokens (including 64 warm-up tokens) |
| largest gap between streamed tokens | 0.047 s (no gap ≥ 1 s) |
| suspect / stall flags, CUDA error lines, server deaths | 0 / 0, 0, 0 |
| Windows System log, whole session | 5 records, none GPU-, driver- or WHEA-related |
Bounds for 0 events: client request time 0.966 h → 3.1 / h (server-reported 0.963 h also rounds to 3.1); decode time alone 0.624 h → 4.8 / h. Not pooled with the soak (different workload).
Hang check in the follow-up. Stall = absence of progress, not a wall deadline: no streamed data line for 20 s = suspect, 60 s = stall, 300 s = unrecovered (the runner halts and keeps the evidence). Before the first progress chunk of a prefill the thresholds were 90 s / 180 s. A server exit, a CUDA error line in the server log, or a Windows System/Application driver record (polled every 30 s) also halts the run.
Graph-debug runs. Same flags at -c 98304 with GGML_CUDA_GRAPH_DEBUG=1 and -lv 5, once with the MTP draft and once target-only. Each: a short warm-up, one episode with a 65,103-token prompt (turn A 2,048 tokens decoded, turn B re-prefilled at 67.2k, 1,024 tokens decoded), then a 512-token generation from a short prompt. Debug-line counts from the server log, assigned to request phases from client timestamps (timestamps aligned using median task-launch offsets; maximum launch residual 0.059 s):
| Debug line | MTP pair | target only |
|---|---|---|
CUDA graph warmup complete |
37 | 19 |
CUDA Graph id … reused |
5,387 | 3,627 |
| … of these inside decode phases | 5,351 | 3,616 |
CUDA graph warmup reset |
33 | 16 |
CUDA graph update failed (replays continued afterwards) |
2 | 3 |
disabling CUDA graphs due to … |
0 | 0 |
Replays occur during decode in both 65k-depth turns. In the MTP run, decode replays mostly alternate four of one graph id with one of another, consistent with four draft steps per target verification; I did not attribute graph ids to models. Debug logging distorts timing, so nothing timed comes from these two runs.
Graphs on/off A/B. Eight fresh server processes in the order ABBA BAAB; A = default, B = GGML_CUDA_DISABLE_GRAPHS=1; -c 98304, normal logging. Every launch got the same token arrays (cache_prompt: false, temperature 0, ignore_eos): a discarded warm-up, three 512-token decodes from a 27-token prompt, then one 65,102-token prompt with a 1,536-token decode. Ratios are per adjacent A/B pair (4 pairs); the 95 % interval is a t-interval on the log ratios (df = 3). Short-prompt ratios use each launch's median of three measured decodes. These t-intervals assume independent, approximately normal pair-level log ratios and describe repeatability in this benchmark.
| Measure | graphs on | graphs off | on vs off (95 % CI) |
|---|---|---|---|
| decode, 512 tokens after a 27-token prompt | 180.9–185.8 t/s | 125.5–129.8 t/s | +43.9 % (+41.0 to +46.8) |
| decode, 1,536 tokens at 65k depth | 147.7–149.5 t/s | 114.7–116.5 t/s | +29.0 % (+26.8 to +31.2) |
| prefill, 65,102 tokens | 2,944–2,954 t/s | 2,949–2,954 t/s | −0.06 % (−0.33 to +0.22) |
Draft acceptance (0.4454 short, 0.5155 long) and output hashes were identical in all eight launches. Together with the separate diagnostic replay logs, the A/B throughput difference supports graph execution in the timed A arms. It does not directly verify replay throughout the 0.966-hour run or retrospectively during the 32-hour soak; graph IDs in the MTP diagnostic run were not attributed to target versus drafter.
Positive control for the progress detector. A separate test server (the soak's 16k flags, plus -lv 5 and GGML_CUDA_GRAPH_DEBUG=1) was started as my own child process. During one streaming 2,048-token request, I froze it with NtSuspendProcess for 25 s at streamed chunk 200 and for 90 s at chunk 603, then resumed it. The same detector logic recorded gaps of 25.065 s and 90.067 s: the first raised "suspect" at 20.2 s, the second "suspect" at 20.0 s and "stall" at 60.1 s, and both cleared when tokens resumed. The request then completed (2,048 / 2,048 tokens) and a follow-up request was OK. The server's own timings showed only slowness (16.5 t/s over the request, no error). Its log at -lv 5 showed in-task silences of 25.04 s and 90.05 s, and CUDA graph replays resumed after each freeze. These injected freezes produced no GPU- or driver-related System-log records, so this control tests the progress checks, not driver-level detection.
Possibly related Blackwell failure on Windows, although I cannot confirm the same root cause. Disabling CUDA graphs does not prevent it in my case.
Environment:
- RTX 5060 Ti 16 GB (SM120), Ryzen 5 5600X, 32 GB RAM; factory CPU/GPU settings.
- Windows 10 Pro 22H2, build 19045.6466; NVIDIA driver 610.62.
- llama.cpp b11312 (0c1e57098), CUDA 13.4 build.
- Model: basal-omni-1.0-max-Q6_K.gguf. Observations:
- Intermittent whole-system automatic restarts, without a visible BSOD. This still happens with Windows AutoReboot=0.
- Initially observed during inference, subsequently reproduced during standalone llama-server startup, before readiness and without sending inference requests.
- Restarts persisted with GGML_CUDA_DISABLE_GRAPHS=1, FlashAttention off, F16 KV, compact SWA, --cache-ram 0, context 16384, one slot and ubatch 128.
- Both --load-mode none and --load-mode mmap failed.
- CPU/GPU stress tests and a separate GPU training workload have been stable. With verbosity 5, the latest startup log ends in done_getting_tensors, reporting a fallback from CUDA_Host to CPU for token_embd.weight. No subsequent buffer-size, context initialization or warmup messages survived. This suggests investigating model mapping/allocation, but the last log line does not identify the failing operation.
Windows records Kernel-Power 41 with BugcheckCode=0. Crash-dump initialization also fails (volmgr 46), so there is no kernel dump or actionable stack trace. Available-memory readings were substantial, but sampling was delayed and does not establish conditions immediately before the reset.
Sharing this as an additional observation, not confirmation of the graph-specific bug.
I want to add to this that I have seen this happen on a 4090 as well. For the 4090 it happens much less frequently. I've only seen it happen 3 times and I haven't seen it happen since disabling the CUDA graphs.
I am using it through unsloth desktop.
The 5090 system I have is mixed gpu's with a 5070 ti as well. On this system models that are fully offloaded across both GPUs, it happens consistently and regularly, enough so that I am no longer using this machine. It doesn't seem to happen as often with models that are partially offloaded using the CPU as well. This machine will serve qwen 3.8 27b UD-Q6, qwen 3.8 flash-next UD-Q4, GLM 5.3 flash UD-Q4, and deep seek v4.1 flash - UD IQ3-XXS
The 4090 machine only serves qwen 3.8 27b - UD-Q4
Both machines are stock, no over/under volting.