[GH-ISSUE #4862] [Engine] Exits -15/-6 on verify timeout (#267) on 2× RX 9070 XT (gfx1201), Linux #2230

Open
opened 2026-11-04 01:57:44 +07:00 by bsakaguchi · 15 comments
Owner

Originally created by @tproos on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4862

Summary

Qwen3.8-Flash-Next UD-IQ4_XS serves fast (55–74 tok/s decode) but the engine repeatedly dies mid-request with the #267 verify timeout. It happens during longer, tool-heavy chat sessions (web-fetch MCP results, ~15k–40k context). It persists on engine 0.1.55, with --pipeline-windows 0 and with --spec 2. Just before each crash, decode slows down progressively (e.g. 53 → 28 tok/s over ~30 s), and dmesg shows amdgpu_amdkfd_restore_userptr_worker storms at the same time.

System

  • Strata 0.2.9 (build 0.1.55), engine 0.1.55-linux-x86_64-hip-rx9070; also reproduced on 0.1.54
  • GPUs: 2× AMD Radeon RX 9070 XT 16 GB (gfx1201); Main GPU 2, Helper GPU 1; iGPU gfx1036 (Ryzen 9 9900X) set Off
  • RAM: 64 GB DDR5 (59 GB usable), NVMe 2 TB
  • OS: Ubuntu 26.04, kernel amdgpu driver; Mesa 26.0.8
  • Model: unsloth Qwen3.8-Flash-Next UD-IQ4_XS (3-part GGUF, in place), MTP draft layer, --vision
  • Launch: strata launch --model-path /home/thomas/models --context 64k (systemd service)

Engine command line (last run):

strata --serve --pack .../packs/unsloth-ud-iq4_xs --native .../Qwen3.8-Flash-Next-UD-IQ4_XS-00001-of-00003.gguf --expert-profile .../expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp .../mtp/rt --max-context 65536 --kv int8 --kv-resident 32768 --resident-budget-gib 30 --conversation-cache-mib 2048 --vision --pipeline-windows 0 --layer-split auto

What I tried (all still crash)

Change Result
Default config, 96k context crash (verify timeout, layer 45; pipelined decode)
Back to 64k crash (verify timeout, layer 43; pipelined decode)
--pipeline-windows 0 (+ STRATA_PIPELINE_AUTO=0) crash (verify timeout, layer 24)
--resident-budget-gib 34 → 30, --conversation-cache-mib 2048 longer stable, still crashes; 32 crashed quickly
Engine 0.1.54 → 0.1.55 (strata update) crash
--spec 4 → 2 crash
--spec 0 refused: native (IQ) pack needs --spec T (T >= 2)

One other failure seen once: a 63 s stall in request: parking the previous conversation -1 (RAM available ~16 GB, 57.9 GB resident) followed by an engine restart, before the conversation cache was capped.

Logs

Server log:

[strata] thinking: 1790 of budget 33843 (max 45123) tokens, 41.1 tok/s, 49 s
[strata] thinking: 1836 of budget 33843 (max 45123) tokens, 33.7 tok/s, 59 s
[strata] thinking: 1836 of budget 33843 (max 45123) tokens, 28.5 tok/s, 69 s
[strata] the engine stopped unexpectedly (exit code -15). Unrecoverable native verification failure: verify: timed out at layer 24; its GPU waits were released but the GPU did not finish within 5 s (#267) The next request starts the engine again.

Engine log (pipelined run):

strata serve: pipelined decode: verify: timed out at layer 43; its GPU waits were released but the GPU did not finish within 5 s (#267)
strata: released the verify window's GPU waits (#267): the GPU finished in 2856 ms

Free VRAM at verify capture with 96k context was ~550 MiB; with 64k ~690 MiB.

dmesg at the crash times:

[Sat Oct 31 14:22:38 2026] workqueue: amdgpu_amdkfd_restore_userptr_worker [amdgpu] hogged CPU for >10000us 1027 times, consider switching to WQ_UNBOUND
[Sat Oct 31 23:18:01 2026] workqueue: amdgpu_amdkfd_restore_userptr_worker [amdgpu] hogged CPU for >10000us 2051 times, consider switching to WQ_UNBOUND

No OOM kills.

Notes / guess

The progressive slowdown before each timeout, together with the userptr restore storms, suggests the kernel invalidating and re-pinning the host-RAM expert arena (MMU notifier → KFD userptr restore) under memory or page-cache pressure, with the GPU stalling past the 5 s verify watchdog. Happy to run diagnostics (STRATA_PARK_TRACE=1, a longer verify timeout, or a debug build) and attach full logs.

Reproduce

Chat page, MCP tools on (web-fetch), prompt: "list the changes to llama.cpp this week". The model does 5–8 fetches of GitHub commit pages; the crash usually comes within one or two such sessions.

Originally created by @tproos on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4862 ## Summary Qwen3.8-Flash-Next UD-IQ4_XS serves fast (55–74 tok/s decode) but the engine repeatedly dies mid-request with the #267 verify timeout. It happens during longer, tool-heavy chat sessions (web-fetch MCP results, ~15k–40k context). It persists on engine 0.1.55, with `--pipeline-windows 0` and with `--spec 2`. Just before each crash, decode slows down progressively (e.g. 53 → 28 tok/s over ~30 s), and dmesg shows `amdgpu_amdkfd_restore_userptr_worker` storms at the same time. ## System - Strata 0.2.9 (build 0.1.55), engine `0.1.55-linux-x86_64-hip-rx9070`; also reproduced on 0.1.54 - GPUs: 2× AMD Radeon RX 9070 XT 16 GB (gfx1201); Main GPU 2, Helper GPU 1; iGPU gfx1036 (Ryzen 9 9900X) set Off - RAM: 64 GB DDR5 (59 GB usable), NVMe 2 TB - OS: Ubuntu 26.04, kernel amdgpu driver; Mesa 26.0.8 - Model: unsloth Qwen3.8-Flash-Next UD-IQ4_XS (3-part GGUF, in place), MTP draft layer, `--vision` - Launch: `strata launch --model-path /home/thomas/models --context 64k` (systemd service) Engine command line (last run): ``` strata --serve --pack .../packs/unsloth-ud-iq4_xs --native .../Qwen3.8-Flash-Next-UD-IQ4_XS-00001-of-00003.gguf --expert-profile .../expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp .../mtp/rt --max-context 65536 --kv int8 --kv-resident 32768 --resident-budget-gib 30 --conversation-cache-mib 2048 --vision --pipeline-windows 0 --layer-split auto ``` ## What I tried (all still crash) | Change | Result | |---|---| | Default config, 96k context | crash (verify timeout, layer 45; pipelined decode) | | Back to 64k | crash (verify timeout, layer 43; pipelined decode) | | `--pipeline-windows 0` (+ `STRATA_PIPELINE_AUTO=0`) | crash (verify timeout, layer 24) | | `--resident-budget-gib 34 → 30`, `--conversation-cache-mib 2048` | longer stable, still crashes; 32 crashed quickly | | Engine 0.1.54 → 0.1.55 (`strata update`) | crash | | `--spec 4 → 2` | crash | | `--spec 0` | refused: native (IQ) pack needs `--spec T (T >= 2)` | One other failure seen once: a 63 s stall in `request: parking the previous conversation -1` (RAM available ~16 GB, 57.9 GB resident) followed by an engine restart, before the conversation cache was capped. ## Logs Server log: ``` [strata] thinking: 1790 of budget 33843 (max 45123) tokens, 41.1 tok/s, 49 s [strata] thinking: 1836 of budget 33843 (max 45123) tokens, 33.7 tok/s, 59 s [strata] thinking: 1836 of budget 33843 (max 45123) tokens, 28.5 tok/s, 69 s [strata] the engine stopped unexpectedly (exit code -15). Unrecoverable native verification failure: verify: timed out at layer 24; its GPU waits were released but the GPU did not finish within 5 s (#267) The next request starts the engine again. ``` Engine log (pipelined run): ``` strata serve: pipelined decode: verify: timed out at layer 43; its GPU waits were released but the GPU did not finish within 5 s (#267) strata: released the verify window's GPU waits (#267): the GPU finished in 2856 ms ``` Free VRAM at verify capture with 96k context was ~550 MiB; with 64k ~690 MiB. dmesg at the crash times: ``` [Sat Oct 31 14:22:38 2026] workqueue: amdgpu_amdkfd_restore_userptr_worker [amdgpu] hogged CPU for >10000us 1027 times, consider switching to WQ_UNBOUND [Sat Oct 31 23:18:01 2026] workqueue: amdgpu_amdkfd_restore_userptr_worker [amdgpu] hogged CPU for >10000us 2051 times, consider switching to WQ_UNBOUND ``` No OOM kills. ## Notes / guess The progressive slowdown before each timeout, together with the userptr restore storms, suggests the kernel invalidating and re-pinning the host-RAM expert arena (MMU notifier → KFD userptr restore) under memory or page-cache pressure, with the GPU stalling past the 5 s verify watchdog. Happy to run diagnostics (`STRATA_PARK_TRACE=1`, a longer verify timeout, or a debug build) and attach full logs. ## Reproduce Chat page, MCP tools on (web-fetch), prompt: "list the changes to llama.cpp this week". The model does 5–8 fetches of GitHub commit pages; the crash usually comes within one or two such sessions.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 31, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6550102138 --> @github-actions[bot] commented on GitHub (Oct 31, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Oct 31, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6550353182 --> @github-actions[bot] commented on GitHub (Oct 31, 2026): Thanks, this follows the format now.
Author
Owner

@dandandelion commented on GitHub (Nov 1, 2026):

To remove any third-party cause, do you have any overclock in place, especially memory OC?

<!-- gh-comment-id:6552773869 --> @dandandelion commented on GitHub (Nov 1, 2026): To remove any third-party cause, do you have any overclock in place, especially memory OC?
Author
Owner

@tproos commented on GitHub (Nov 1, 2026):

Update with more testing (same setup as the original report, Strata 0.2.9 / engine 0.1.55, HIP build linux-x86_64-hip-rx9070).

Hardware/BIOS verified stock

  • Board GIGABYTE X870E AERO X3D WOOD, BIOS F7b. PBO disabled, X3D Turbo off, Above 4G + Re-Size BAR enabled.
  • Both RX 9070 XT at PCIe 5.0 x8/x8 (confirmed with lspci, 32GT/s x8). A BIOS update had silently reset slot config earlier; fixed, no change in behaviour.
  • RAM tested at both JEDEC 4800 and EXPO 6000 (2×32 GB CMK64GX5M2B6000Z30): same crash either way.
  • GPUs at stock (power_dpm_force_performance_level = auto, no overdrive).

Crash signature
Not a real gradual slowdown: decode runs ~50–58 t/s, then the token counter freezes completely and the averaged tok/s decays until the watchdog fires. Seen as both -15 (verify timeout) and -6:

[strata] thinking: 993 of budget 31399 (max 41865) tokens, 46.1 tok/s, 29 s
[strata] thinking: 1036 of budget 31399 (max 41865) tokens, 32.0 tok/s, 40 s
[strata] thinking: 1036 of budget 31399 (max 41865) tokens, 24.5 tok/s, 50 s
...
[strata] thinking: 1036 of budget 31399 (max 41865) tokens, 12.6 tok/s, 90 s
strata serve: no progress for 60 s during a request (verify window: waiting for the GPU to finish the window (flags A/B/M raised) 3) - stopping the engine so the server starts it again

That one hung after only 6 tool calls, ~23.7k prompt tokens.

dmesg at the same time (counts are cumulative), escalating right up to the hang:
12:52:27 amdgpu_amdkfd_restore_userptr_worker [amdgpu] hogged CPU for >10000us 35 times
12:56:16 ... 67 times
12:57:00 ... 131 times

Observations

  • Short sessions are fine; long tool-heavy sessions hang. Reproduced several times in a row today.
  • After each crash, letting the engine restart and repeating the same question in the same chat eventually completes (4th attempt). Each fresh engine gets further, which suggests state accumulating within one engine lifetime rather than a prompt/context-specific trigger.
  • During a successful run: VRAM 31.3/32 GB (GPU0 15.8 GB, GPU1 15.4 GB), context 42k/64k, 58 t/s, GPU temps 42–48 °C, ~167 W total.
<!-- gh-comment-id:6557820897 --> @tproos commented on GitHub (Nov 1, 2026): Update with more testing (same setup as the original report, Strata 0.2.9 / engine 0.1.55, HIP build linux-x86_64-hip-rx9070). **Hardware/BIOS verified stock** - Board GIGABYTE X870E AERO X3D WOOD, BIOS F7b. PBO disabled, X3D Turbo off, Above 4G + Re-Size BAR enabled. - Both RX 9070 XT at PCIe 5.0 x8/x8 (confirmed with lspci, 32GT/s x8). A BIOS update had silently reset slot config earlier; fixed, no change in behaviour. - RAM tested at both JEDEC 4800 and EXPO 6000 (2×32 GB CMK64GX5M2B6000Z30): same crash either way. - GPUs at stock (power_dpm_force_performance_level = auto, no overdrive). **Crash signature** Not a real gradual slowdown: decode runs ~50–58 t/s, then the token counter freezes completely and the averaged tok/s decays until the watchdog fires. Seen as both -15 (verify timeout) and -6: [strata] thinking: 993 of budget 31399 (max 41865) tokens, 46.1 tok/s, 29 s [strata] thinking: 1036 of budget 31399 (max 41865) tokens, 32.0 tok/s, 40 s [strata] thinking: 1036 of budget 31399 (max 41865) tokens, 24.5 tok/s, 50 s ... [strata] thinking: 1036 of budget 31399 (max 41865) tokens, 12.6 tok/s, 90 s strata serve: no progress for 60 s during a request (verify window: waiting for the GPU to finish the window (flags A/B/M raised) 3) - stopping the engine so the server starts it again That one hung after only 6 tool calls, ~23.7k prompt tokens. **dmesg at the same time** (counts are cumulative), escalating right up to the hang: 12:52:27 amdgpu_amdkfd_restore_userptr_worker [amdgpu] hogged CPU for >10000us 35 times 12:56:16 ... 67 times 12:57:00 ... 131 times **Observations** - Short sessions are fine; long tool-heavy sessions hang. Reproduced several times in a row today. - After each crash, letting the engine restart and repeating the same question in the same chat eventually completes (4th attempt). Each fresh engine gets further, which suggests state accumulating within one engine lifetime rather than a prompt/context-specific trigger. - During a successful run: VRAM 31.3/32 GB (GPU0 15.8 GB, GPU1 15.4 GB), context 42k/64k, 58 t/s, GPU temps 42–48 °C, ~167 W total.
Author
Owner

@tproos commented on GitHub (Nov 1, 2026):

Same question with the same model completes reliably under llama.cpp (Vulkan) on this machine, ~16 t/s, 19k tokens, no GPU errors.

<!-- gh-comment-id:6558529815 --> @tproos commented on GitHub (Nov 1, 2026): Same question with the same model completes reliably under llama.cpp (Vulkan) on this machine, ~16 t/s, 19k tokens, no GPU errors.
Author
Owner

@dandandelion commented on GitHub (Nov 1, 2026):

Will you be able to provide journal logs?

<!-- gh-comment-id:6559735568 --> @dandandelion commented on GitHub (Nov 1, 2026): Will you be able to provide journal logs?
Author
Owner

@dandandelion commented on GitHub (Nov 1, 2026):

I had the very same issue with my CUDA card and it was the VRAM when exercising certain CUDA paths.

Like yours, Vulkan was working for me too, it was stress tested with vulkan memtest at around 54TBs of VRAM read/write and no errors whatsoever.

Will you be able to test a homogeneous quantization of the model (non-IQ) like the Gyro-M? If Gyro-M works for you without any problem then we’re pretty much having the same card-level problems

<!-- gh-comment-id:6559796519 --> @dandandelion commented on GitHub (Nov 1, 2026): I had the very same issue with my CUDA card and it was the VRAM when exercising certain CUDA paths. Like yours, Vulkan was working for me too, it was stress tested with vulkan memtest at around 54TBs of VRAM read/write and no errors whatsoever. Will you be able to test a homogeneous quantization of the model (non-IQ) like the Gyro-M? If Gyro-M works for you without any problem then we’re pretty much having the same card-level problems
Author
Owner

@tproos commented on GitHub (Nov 1, 2026):

Tested Gyro-S (Qwen3.8-Flash-Next-Gyro-S-TQ1_0) as suggested, same machine, same Strata 0.2.9 / engine 0.1.55, 64k context, same MCP tools and the same long tool-heavy question.

  • Completed without any hang: 26 tool calls, 33 requests, context up to 58k/64k.
  • Decode 75–100 t/s (avg 82 t/s), prefill ~1,000–2,000 t/s, VRAM hit rate ~94–97% (9.3 GB experts in VRAM, ~33 GB system RAM).
  • An earlier run with larger tool results filled the full 64k context, also with no hang.

With UD-IQ4_XS the same question hangs in the verify window after as few as 6 tool calls (~24k prompt tokens). So the hang seems specific to the IQ4_XS model path rather than VRAM or the host.

<!-- gh-comment-id:6562921008 --> @tproos commented on GitHub (Nov 1, 2026): Tested Gyro-S (Qwen3.8-Flash-Next-Gyro-S-TQ1_0) as suggested, same machine, same Strata 0.2.9 / engine 0.1.55, 64k context, same MCP tools and the same long tool-heavy question. - Completed without any hang: 26 tool calls, 33 requests, context up to 58k/64k. - Decode 75–100 t/s (avg 82 t/s), prefill ~1,000–2,000 t/s, VRAM hit rate ~94–97% (9.3 GB experts in VRAM, ~33 GB system RAM). - An earlier run with larger tool results filled the full 64k context, also with no hang. With UD-IQ4_XS the same question hangs in the verify window after as few as 6 tool calls (~24k prompt tokens). So the hang seems specific to the IQ4_XS model path rather than VRAM or the host.
Author
Owner

@tproos commented on GitHub (Nov 1, 2026):

Follow-up on the Gyro tests, @dandandelion:

Correction to my Gyro-S note: Strata's default put Gyro-S on one GPU only, while UD-IQ4_XS ran across both. So I tested further:

  • Gyro-M (TQ2_0) on both GPUs (--gpu 0,1, 30.7/32 GB VRAM, ~98.5% VRAM hit rate): no hang, 32 tool calls, full 64k context, decode 55–75 t/s.
  • UD-IQ4_XS on --gpu 0 only: -15 after 10 tool calls.
  • UD-IQ4_XS on --gpu 1 only: first run completed (13 tool calls, 41k context), second run -15 after 4 tool calls.

So Gyro-M works without problems, as you expected, while UD-IQ4_XS hangs on each card on its own as well as with both. Since the two cards are from different manufacturers, a shared VRAM fault seems less likely to me than something in the IQ4_XS path, but I'm happy to run a VRAM stress test on each card if you can point me to the one you used.

I've saved the journal logs from one of the single-GPU hangs; I can share relevant excerpts if there's something specific you'd like to look for.

<!-- gh-comment-id:6564466752 --> @tproos commented on GitHub (Nov 1, 2026): Follow-up on the Gyro tests, @dandandelion: Correction to my Gyro-S note: Strata's default put Gyro-S on one GPU only, while UD-IQ4_XS ran across both. So I tested further: - Gyro-M (TQ2_0) on both GPUs (--gpu 0,1, 30.7/32 GB VRAM, ~98.5% VRAM hit rate): no hang, 32 tool calls, full 64k context, decode 55–75 t/s. - UD-IQ4_XS on --gpu 0 only: -15 after 10 tool calls. - UD-IQ4_XS on --gpu 1 only: first run completed (13 tool calls, 41k context), second run -15 after 4 tool calls. So Gyro-M works without problems, as you expected, while UD-IQ4_XS hangs on each card on its own as well as with both. Since the two cards are from different manufacturers, a shared VRAM fault seems less likely to me than something in the IQ4_XS path, but I'm happy to run a VRAM stress test on each card if you can point me to the one you used. I've saved the journal logs from one of the single-GPU hangs; I can share relevant excerpts if there's something specific you'd like to look for.
Author
Owner

@dandandelion commented on GitHub (Nov 2, 2026):

This is the one I used: https://github.com/GpuZelenograd/memtest_vulkan

But, you already have strong evidence that it isn’t the Vulkan that is the problem. So I’ll get straight to the point.

What fixed it for me was downclocking the memory clocks (fixed is subjective since I cannot verify it outside my tests which is multiple days of inference). This is how it went:

Full clock at GDDR6 8001mhz (16002 effective): Inevitable ‘verify hangs’ at random points of decode (sometimes millions of tokens, sometimes just thousands)

-100 offset roughly at 15802 effective: Immediate verify hangs at low context even

-200 offset @ 15602: got approximately ~1.63m tokens across runs

-300 offset @ 15402: This was the stable one for me, multiple days of inference without any error, sure I lost around 5-8% decode but it’s stable.

So if you noticed the pattern, sweeping down the memory clocks, it made the issue worse (-100 offset immediately throws) up to a certain point when it became stable so it depends, you might need to find your stable clock so mileage may vary.

Then again, this is based off of my Xid 13 errors specific to CUDA so this is just a report rather than a definitive fix. #4190 was the thread that pointed me the right way and it explains the problem better. (tho two cards having the same verify hangs are just unlucky if my guess is right that this is hardware-level).

Note that this diagnosis cannot differentiate a card that has a defect (silicon lottery) vs a card that is dying or degrading UNLESS you have some records that IQ4_XS was working perfectly recently then that strongly suggests a degraded/dying card. But we're still right in the ballpark that some heterogeneous models execises certain execution path that our card doesn't like.

<!-- gh-comment-id:6566943349 --> @dandandelion commented on GitHub (Nov 2, 2026): This is the one I used: https://github.com/GpuZelenograd/memtest_vulkan But, you already have strong evidence that it isn’t the Vulkan that is the problem. So I’ll get straight to the point. What fixed it for me was downclocking the memory clocks (`fixed` is subjective since I cannot verify it outside my tests which is multiple days of inference). This is how it went: Full clock at GDDR6 8001mhz (16002 effective): Inevitable ‘verify hangs’ at random points of decode (sometimes millions of tokens, sometimes just thousands) -100 offset roughly at 15802 effective: Immediate verify hangs at low context even -200 offset @ 15602: got approximately ~1.63m tokens across runs -300 offset @ 15402: This was the stable one for me, multiple days of inference without any error, sure I lost around 5-8% decode but it’s stable. So if you noticed the pattern, sweeping down the memory clocks, it made the issue worse (-100 offset immediately throws) up to a certain point when it became stable so it depends, you might need to find your stable clock so mileage may vary. Then again, this is based off of my Xid 13 errors specific to CUDA so this is just a report rather than a definitive fix. #4190 was the thread that pointed me the right way and it explains the problem better. (tho two cards having the same verify hangs are just unlucky if my guess is right that this is hardware-level). Note that this diagnosis cannot differentiate a card that has a defect (silicon lottery) vs a card that is dying or degrading UNLESS you have some records that IQ4_XS was working perfectly recently then that strongly suggests a degraded/dying card. But we're still right in the ballpark that some heterogeneous models execises certain execution path that our card doesn't like.
Author
Owner

@tproos commented on GitHub (Nov 2, 2026):

Follow-up on both suggestions:

  1. STRATA_HC_SPLIT=1, the setting from PiccataPro's A/B test in #4190 (staged crashed, split was clean): my engine 0.1.55 HIP build defaults to "staged". With the setting, the engine log confirms "split" on both cards, but it still hangs. Two runs on --gpu 0,1 hit -15 after 8 and 12 tool calls. (The log calls the cards CUDA0/CUDA1 because the HIP build keeps the CUDA device names. They are the two RX 9070 XTs running through ROCm/HIP.)

  2. Memory downclock (amdgpu.ppfeaturemask=0xffffffff, OD_MCLK on the ASRock Taichi alone, --gpu 0): stock is 1259 MHz. I set 1000, but amdgpu_pm_info shows the card won't go below 1150 MHz under load (about -9%). Two runs at a confirmed 1150 MHz still hit -15, after 6 and 5 tool calls.

Same prompt each time, a long tool-heavy session. Gyro-S and Gyro-M never hang on the same cards, and llama.cpp Vulkan completes the same sessions with the same UD-IQ4_XS model.

Only been using these for a few days, no records with IQ4_XS working perfectly in Strata. Thanks for the report and suggestions though.

<!-- gh-comment-id:6583713834 --> @tproos commented on GitHub (Nov 2, 2026): Follow-up on both suggestions: 1. STRATA_HC_SPLIT=1, the setting from PiccataPro's A/B test in #4190 (staged crashed, split was clean): my engine 0.1.55 HIP build defaults to "staged". With the setting, the engine log confirms "split" on both cards, but it still hangs. Two runs on --gpu 0,1 hit -15 after 8 and 12 tool calls. (The log calls the cards CUDA0/CUDA1 because the HIP build keeps the CUDA device names. They are the two RX 9070 XTs running through ROCm/HIP.) 2. Memory downclock (amdgpu.ppfeaturemask=0xffffffff, OD_MCLK on the ASRock Taichi alone, --gpu 0): stock is 1259 MHz. I set 1000, but amdgpu_pm_info shows the card won't go below 1150 MHz under load (about -9%). Two runs at a confirmed 1150 MHz still hit -15, after 6 and 5 tool calls. Same prompt each time, a long tool-heavy session. Gyro-S and Gyro-M never hang on the same cards, and llama.cpp Vulkan completes the same sessions with the same UD-IQ4_XS model. Only been using these for a few days, no records with IQ4_XS working perfectly in Strata. Thanks for the report and suggestions though.
Author
Owner

@dandandelion commented on GitHub (Nov 2, 2026):

Anyways. If you think Vulkan would work much better for you and you REALLY need the IQ4_XS quant, then I suggest using an alternative. It has specific optimizations for QFN too. Hopefully Niko won’t mind if I share it here (not mine tho): https://github.com/vahpetr/llama.cpp-s1-fork

<!-- gh-comment-id:6585481383 --> @dandandelion commented on GitHub (Nov 2, 2026): Anyways. If you think Vulkan would work much better for you and you REALLY need the IQ4_XS quant, then I suggest using an alternative. It has specific optimizations for QFN too. Hopefully Niko won’t mind if I share it here (not mine tho): https://github.com/vahpetr/llama.cpp-s1-fork
Author
Owner

@alexanderi96 commented on GitHub (Nov 2, 2026):

The amdgpu_amdkfd_restore_userptr_worker storms right before each stop are the driver restoring host memory the
GPU reads after the kernel invalidated it. On a GPU without XNACK all of the process's queues stay evicted until that
finishes, which looks exactly like a frozen token counter followed by the verify timeout. #4866 has the mechanism and
an ftrace of it. With ~58 GB resident on a 64 GB host, reclaim is the likely trigger.

To confirm, read this before and after a stop:

p=$(pgrep -f -- '--serve --pack' | head -1)
cat /sys/class/kfd/kfd/proc/$p/stats_*/evicted_ms     # jumps by tens of seconds at a stop?

If it jumps, #3913 has two opt-in fixes. The first takes the GPU's host memory off userptr:
"HSA_USERPTR_FOR_PAGED_MEM": "0", "STRATA_HIP_ARENA_NONCOHERENT": "1", with ttm.pages_limit raised so GTT holds
the resident budget. The second, for when the kernel parameter is not an option, is STRATA_HIP_MLOCK=1 with
LimitMEMLOCK=infinity and vm.compact_unevictable_allowed=0. Gyro-M not hanging fits too: at a 98.5% VRAM hit
rate the GPU reads far less host memory than UD-IQ4_XS does.

<!-- gh-comment-id:6585826171 --> @alexanderi96 commented on GitHub (Nov 2, 2026): The `amdgpu_amdkfd_restore_userptr_worker` storms right before each stop are the driver restoring host memory the GPU reads after the kernel invalidated it. On a GPU without XNACK all of the process's queues stay evicted until that finishes, which looks exactly like a frozen token counter followed by the verify timeout. #4866 has the mechanism and an ftrace of it. With ~58 GB resident on a 64 GB host, reclaim is the likely trigger. To confirm, read this before and after a stop: ``` p=$(pgrep -f -- '--serve --pack' | head -1) cat /sys/class/kfd/kfd/proc/$p/stats_*/evicted_ms # jumps by tens of seconds at a stop? ``` If it jumps, #3913 has two opt-in fixes. The first takes the GPU's host memory off userptr: `"HSA_USERPTR_FOR_PAGED_MEM": "0", "STRATA_HIP_ARENA_NONCOHERENT": "1"`, with `ttm.pages_limit` raised so GTT holds the resident budget. The second, for when the kernel parameter is not an option, is `STRATA_HIP_MLOCK=1` with `LimitMEMLOCK=infinity` and `vm.compact_unevictable_allowed=0`. Gyro-M not hanging fits too: at a 98.5% VRAM hit rate the GPU reads far less host memory than UD-IQ4_XS does.
Author
Owner

@tproos commented on GitHub (Nov 3, 2026):

No problems since i applied https://github.com/Niko1221/Strata/pull/3913

<!-- gh-comment-id:6615150502 --> @tproos commented on GitHub (Nov 3, 2026): No problems since i applied https://github.com/Niko1221/Strata/pull/3913
Author
Owner

@bratnieks commented on GitHub (Nov 4, 2026):

HIP 2× RX 9070 XT: pipelined decode verify timeouts after long conversations, engine 0.1.56

Summary

On Linux with two RX 9070 XT cards, a Qwen3.8-Flash-Next SC117 abliterated IQ3_S model served a long conversation (roughly 151k–185k prompt tokens) and then the engine stopped in pipelined decode with a verify timeout. Following an automatic restart, it timed out again. This is an intermittent observation from actual use; the exact input and idle duration have not been captured as a minimal reproduction.

Environment

  • Strata 0.2.10, control build and HIP engine 0.1.56 (0.1.56-linux-x86_64-hip-rx9070).
  • Debian forky/sid, kernel 7.2.12+deb14-amd64, in-tree amdgpu; two RX 9070 XT 16 GB, gfx1201, layer split auto (layers 0–21 / 22–47).
  • 2× Xeon E5-2698 v4, 125 GiB RAM. QPI set to 8 GT/s in firmware; actual negotiated QPI speed not independently verified.
  • Model: SC117/Qwen3.8-Flash-Next-GSQ-RCO-abliterated-GGUF, IQ3_S, native pack, PLE second shard, MTP rt; CPU vision encoder enabled.
  • Settings: --expert-cache auto --vram-reserve-mib 1024 --prefill auto --max-context 262144 --kv int8 --ple-io ram --spec 4 --pipeline-windows 2 --vision --layer-split auto.
  • Environment: STRATA_VERIFY_COHERENT=1, STRATA_DOORBELL_STORE=1, STRATA_VERIFY_TRACE=1, GPU_MAX_HW_QUEUES=2; HSA_ENABLE_SDMA unset.

Observed sequence (local time UTC−03)

  1. An engine started at 15:57:46 on Nov 4. Multiple requests completed while a conversation grew from 151,177 to 184,668 prompt tokens; one 184,668-token prompt was read from zero and generated 197 tokens successfully.
  2. A later request failed with pipelined decode: verify: timed out at layer 30; its GPU waits were released and the GPU finished (#267). The exact request position and time of the timeout are not recorded in the engine log excerpt.
  3. The engine started again at 17:59:31. The following observed failure was pipelined decode: verify: timed out at layer 47; its GPU waits were released but the GPU did not finish within 5 s (#267). Subsequent release log lines report GPU completion at 3234 ms for one window and 0 ms for others; their relation to the individual pipeline windows is not established.
  4. The user reports leaving the machine idle and returning to two failures. The engine log alone does not establish idle duration or whether either failure immediately followed idle. Time in deep context and idle may be relevant, but neither is isolated.

The model was configured for 262,144 tokens; the observed successful prompts did not fill the entire context. Before these failures, a different request with 184,668 prompt tokens completed; this is not proof of the position of the failing request.

Kernel / hardware context

A filtered kernel journal for 17:30–18:20 on Nov 4 showed no matching PCIe AER, BadTLP, Machine Check, GPU reset, device-lost or illegal-opcode lines. This is a negative filtered search, not proof of a healthy system. Previous boots had QPI CRC MCEs and PCIe BadTLP/fatal errors, including a GPU lost from PCIe at 01:21 on Nov 4; physical PCIe instability has not been ruled out for the platform. Do not conflate that earlier device-loss event with these later failures.

Prior tests and limitations

  • Two-GPU single-request pipeline, 256K configured, MTP, GPU_MAX_HW_QUEUES=2: one 6144-token request completed before this incident. A later run on Nov 3 completed after warmup; it does not establish 24/7 stability.
  • An earlier single-request test with --pipeline-windows 0 and MTP also timed out at layer 29, before the CPU replacements and QPI BIOS change; it is not a controlled A/B of the current system.
  • A two-slot, 128K-per-slot, --batch-mtp --batch-groups 1 test failed in the first pair with SDMA default. With HSA_ENABLE_SDMA=0, five pairs completed before the user cancelled. This different mode does not establish a fix for single-request pipeline.
  • A single-request SDMA-off run was interrupted for CPU replacement, so no conclusion.
  • The verify tracing switches above were enabled, but the captured excerpt contains no detailed verify trace block. Please advise which diagnostic to enable or capture next.

Sanitized engine excerpts

strata serve: decode expert cache hit rate: 86.1% (160946 hits / 186957 lookups); 3385 more read by the GPU over PCIe or from another GPU (1.8% of all 190342 routed)
strata serve: route tail skip: 1548480 missed experts skipped (1633819 entries) since the start
strata serve: suffix drafts: 6 windows, 13 of 22 drafts accepted
strata serve: conversation cache: parked 184864 tokens in 2874.2 ms; parked=2 bytes=7317587208 evictions=3 snapshot_bytes=3658826200 reused_kv_bytes=0
strata serve: pipelined decode: verify: timed out at layer 30; its GPU waits were released and the GPU finished (#267)
strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms
strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms
strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms
strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms

strata verify: capturing the 5-token window (906 MiB of VRAM free)
strata verify: captured the 5-token window (upload no error, sync no error) in 7.8 ms
strata verify: capturing the 6-token window (902 MiB of VRAM free)
strata verify: captured the 6-token window (upload no error, sync no error) in 7.7 ms
strata serve: pipelined decode: verify: timed out at layer 47; its GPU waits were released but the GPU did not finish within 5 s (#267)
strata: released the verify window's GPU waits (#267): the GPU finished in 3234 ms
strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms
strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms
strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms
<!-- gh-comment-id:6642855011 --> @bratnieks commented on GitHub (Nov 4, 2026): # HIP 2× RX 9070 XT: pipelined decode verify timeouts after long conversations, engine 0.1.56 ## Summary On Linux with two RX 9070 XT cards, a Qwen3.8-Flash-Next SC117 abliterated IQ3_S model served a long conversation (roughly 151k–185k prompt tokens) and then the engine stopped in pipelined decode with a verify timeout. Following an automatic restart, it timed out again. This is an intermittent observation from actual use; the exact input and idle duration have not been captured as a minimal reproduction. ## Environment - Strata 0.2.10, control build and HIP engine 0.1.56 (`0.1.56-linux-x86_64-hip-rx9070`). - Debian forky/sid, kernel 7.2.12+deb14-amd64, in-tree amdgpu; two RX 9070 XT 16 GB, gfx1201, layer split auto (layers 0–21 / 22–47). - 2× Xeon E5-2698 v4, 125 GiB RAM. QPI set to 8 GT/s in firmware; actual negotiated QPI speed not independently verified. - Model: SC117/Qwen3.8-Flash-Next-GSQ-RCO-abliterated-GGUF, IQ3_S, native pack, PLE second shard, MTP rt; CPU vision encoder enabled. - Settings: `--expert-cache auto --vram-reserve-mib 1024 --prefill auto --max-context 262144 --kv int8 --ple-io ram --spec 4 --pipeline-windows 2 --vision --layer-split auto`. - Environment: `STRATA_VERIFY_COHERENT=1`, `STRATA_DOORBELL_STORE=1`, `STRATA_VERIFY_TRACE=1`, `GPU_MAX_HW_QUEUES=2`; `HSA_ENABLE_SDMA` unset. ## Observed sequence (local time UTC−03) 1. An engine started at 15:57:46 on Nov 4. Multiple requests completed while a conversation grew from 151,177 to 184,668 prompt tokens; one 184,668-token prompt was read from zero and generated 197 tokens successfully. 2. A later request failed with `pipelined decode: verify: timed out at layer 30; its GPU waits were released and the GPU finished (#267)`. The exact request position and time of the timeout are not recorded in the engine log excerpt. 3. The engine started again at 17:59:31. The following observed failure was `pipelined decode: verify: timed out at layer 47; its GPU waits were released but the GPU did not finish within 5 s (#267)`. Subsequent release log lines report GPU completion at 3234 ms for one window and 0 ms for others; their relation to the individual pipeline windows is not established. 4. The user reports leaving the machine idle and returning to two failures. The engine log alone does not establish idle duration or whether either failure immediately followed idle. Time in deep context and idle may be relevant, but neither is isolated. The model was configured for 262,144 tokens; the observed successful prompts did not fill the entire context. Before these failures, a different request with 184,668 prompt tokens completed; this is not proof of the position of the failing request. ## Kernel / hardware context A filtered kernel journal for 17:30–18:20 on Nov 4 showed no matching PCIe AER, BadTLP, Machine Check, GPU reset, device-lost or illegal-opcode lines. This is a negative filtered search, not proof of a healthy system. Previous boots had QPI CRC MCEs and PCIe BadTLP/fatal errors, including a GPU lost from PCIe at 01:21 on Nov 4; physical PCIe instability has not been ruled out for the platform. Do not conflate that earlier device-loss event with these later failures. ## Prior tests and limitations - Two-GPU single-request pipeline, 256K configured, MTP, GPU_MAX_HW_QUEUES=2: one 6144-token request completed before this incident. A later run on Nov 3 completed after warmup; it does not establish 24/7 stability. - An earlier single-request test with `--pipeline-windows 0` and MTP also timed out at layer 29, before the CPU replacements and QPI BIOS change; it is not a controlled A/B of the current system. - A two-slot, 128K-per-slot, `--batch-mtp --batch-groups 1` test failed in the first pair with SDMA default. With `HSA_ENABLE_SDMA=0`, five pairs completed before the user cancelled. This different mode does not establish a fix for single-request pipeline. - A single-request SDMA-off run was interrupted for CPU replacement, so no conclusion. - The verify tracing switches above were enabled, but the captured excerpt contains no detailed verify trace block. Please advise which diagnostic to enable or capture next. ## Sanitized engine excerpts ```text strata serve: decode expert cache hit rate: 86.1% (160946 hits / 186957 lookups); 3385 more read by the GPU over PCIe or from another GPU (1.8% of all 190342 routed) strata serve: route tail skip: 1548480 missed experts skipped (1633819 entries) since the start strata serve: suffix drafts: 6 windows, 13 of 22 drafts accepted strata serve: conversation cache: parked 184864 tokens in 2874.2 ms; parked=2 bytes=7317587208 evictions=3 snapshot_bytes=3658826200 reused_kv_bytes=0 strata serve: pipelined decode: verify: timed out at layer 30; its GPU waits were released and the GPU finished (#267) strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms strata verify: capturing the 5-token window (906 MiB of VRAM free) strata verify: captured the 5-token window (upload no error, sync no error) in 7.8 ms strata verify: capturing the 6-token window (902 MiB of VRAM free) strata verify: captured the 6-token window (upload no error, sync no error) in 7.7 ms strata serve: pipelined decode: verify: timed out at layer 47; its GPU waits were released but the GPU did not finish within 5 s (#267) strata: released the verify window's GPU waits (#267): the GPU finished in 3234 ms strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms ```
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#2230
No description provided.