[GH-ISSUE #2013] [Bug]: Windows Strix Halo (gfx1151): prebuilt HIP engine never becomes ready, sticky "unspecified launch failure" during serve init #803

Closed
opened 2026-11-04 01:46:01 +07:00 by bsakaguchi · 6 comments
Owner

Originally created by @400msstack on GitHub (Oct 12, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2013

What happened

First Windows Strix Halo report (docs/STRIX_HALO.md says this combination is untested so far).

Setup (START-HERE.bat --yes --family qwen --model IQ3_S --no-start) completed fine: GPU detected as gfx1151, --check reported the PC can run Strata, the model downloaded and the packs/MTP layer were built. But the engine never reaches "ready": the model loads, session is up (engine 0.1.43) is printed, and then a GPU error during serve initialisation kills it. It never got as far as a request (I started it with tools/strata_bench.py --long, which stops when the server does not come up).

What I tried (each one a fresh start; nothing else using the GPU, Unsloth/LM Studio closed):

# Change from setup's config Last line before exit
1 none (setup's strata-iq3_s.json) prefill: setting the FP16 activation image failed: unspecified launch failure
2 STRATA_GFX1151_DEFAULTS=0 same as 1
3 STRATA_HIPBLASLT_TUNING removed, --prefill 2048, STRATA_PF_STEP_SYNC=1 gets further: strata serve: cannot create the refill stream
4 3 + STRATA_GFX1151_DEFAULTS=0 + AMD_SERIALIZE_KERNEL=3 + HIP_LAUNCH_BLOCKING=1 strata serve: verify: stream create failed

So the place it dies moves with the settings, but it always looks like a sticky error left by an earlier kernel (the failing call is a cudaMemcpyToSymbol / cudaStreamCreateWithFlags that should not fail on its own). With AMD_SERIALIZE_KERNEL=3 + HIP_LAUNCH_BLOCKING=1 the log still did not name a faulting kernel.

Two things that look odd to me:

  • The expert cache sees only 5.41 GiB free (5.90 GiB with the defaults off) on a 64 GB BIOS carve-out, right after cudaHostRegister PORTABLE ok for the ~47 GiB expert arena. Maybe the registered host memory is being charged against the carve-out on Windows?
  • Large pages are refused (VirtualAlloc error 1314, no "Lock pages in memory" privilege), so the arena uses 4 KB pages. Probably unrelated, but noting it.

Not tried yet: a smaller BIOS carve-out, --expert-cache 0, a 32K context, Linux. Happy to run any diagnostic build or env switch you want.

Strata version, GPU, OS

0.1.43 prebuilt strata-windows-x64-hip (repo at 7695859, 2026-10-11; BUILD.json archs include gfx1151, rocm 10.2.0a20260930, hipBLASLt 100500) · AMD Ryzen AI Max+ 395 / Radeon 8060S (gfx1151), 128 GB LPDDR5X-8000 unified, BIOS carve-out 64 GB (OS sees 63.6 GB) · Windows 11 Pro build 26300, AMD driver 32.0.31036.15 (2026-08-12), page file 127 GB

Engine log

Run 1 (setup's config), from session is up on:

strata: gfx1151 (Strix Halo): 18 exact speed switches on by default (STRATA_GFX1151_DEFAULTS=0 turns them off; a switch you set is kept): GDN_HEAD GDN_PP GDN_CONVL2 GDN_NOY CVEC_FUSE HCD_EXACT PF_PAD Q8_PACKED Q6_PACKED MMVF_ROWS ATTN_LANECELL EXPERT_V2 TSUM LFUSE GDN_SPLIT QFUSE PLE_BATCH SH_STREAM
strata generate: memory guard: limit 63.6 GiB (source: meminfo), current 10.2 GiB, reclaimable cache credited 0.0 GiB; available 53.5 GiB (MemAvailable 53.5 GiB), floor 2560 MiB
strata generate: PCIe probe: 77.7 GB/s host->device (best of 77.7 77.0 75.5 75.3) -> pcie_frac 0.55 (default 0.55)
...
strata generate: GPU 0: AMD Radeon(TM) 8060S Graphics (gfx1151)
strata generate: expert arena: cudaHostRegister PORTABLE ok; large pages refused for 50295996416 B (GetLargePageMinimum=2097152, VirtualAlloc error 1314); using 4 KB pages
strata generate: loaded 46.84 GiB at 5.32 GiB/s
strata generate: CPU pool tasks/phase: 48 (automatic), participating threads: 16
strata generate: expert cache auto: Windows keeps 2560 MiB free after the cache on a card this size (...)
strata generate: expert cache auto: 5.41 GiB free, 2560 MiB reserved (+218 MiB for the draft head) -> 1087 slots
strata generate: expert cache 1398 slots, 2.70 GiB of VRAM; policy is PROFILE, ranked by routing frequency, no eviction.
strata generate: pre-filled 1398 of 1398 slots from the profile in 0.3 s (10102 MB/s); slot 0 verified
strata generate: R4 hit path ON - resident experts are computed on the GPU
strata generate: session is up (engine 0.1.43)
strata generate: token graph hit path: 1398 resident experts, decided on the device
strata serve: Windows commit: 113.0 GiB left of a 190.6 GiB limit (RAM + page file)
strata serve: prompt chunk auto: 4608 tokens, a 199-slot ring
strata serve: the prompt path borrows 1218 CUDA0 cache slots (2.35 GiB)
prefill gemm: hipBLASLt tuning enabled (32 rows, gfx1151, version 100500)
prefill: setting the FP16 activation image failed: unspecified launch failure

Run 3 (no tuning table, --prefill 2048), tail:

strata serve: the prompt path borrows 970 CUDA0 cache slots (1.87 GiB)
strata hc: CUDA0: the hyper-connection read runs as staged (...); checked bit for bit against the plain read on this card (STRATA_HC_SPLIT=1 or 0 for the earlier ones)
strata verify: window up to 6 tokens, 75.1 MiB of device buffers
strata mtp: draft head over 106299 tokens (212.9 MiB)
strata serve: cannot create the refill stream

Run 4 (run 3 + defaults off + serialized launches), tail:

strata generate: expert cache auto: 5.90 GiB free, 2560 MiB reserved (+218 MiB for the draft head) -> 1286 slots
strata generate: token graph hit path: 1656 resident experts, decided on the device
strata serve: the prompt path borrows 971 CUDA0 cache slots (1.86 GiB)
strata hc: CUDA0: the hyper-connection read runs as staged (...)
strata serve: verify: stream create failed

Engine command line (setup's): strata.exe --serve --pack <data>\packs\iq3_s --native <...>-IQ3_S-00001-of-00002.gguf --ple-gguf <...>-IQ3_S-00002-of-00002.gguf --expert-profile data\expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <data>\mtp\rt --max-context 131072 --kv int8 (KV streaming off: setup said there was not enough RAM for it).

Full logs can be attached on request.

Originally created by @400msstack on GitHub (Oct 12, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2013 ### What happened First Windows Strix Halo report (docs/STRIX_HALO.md says this combination is untested so far). Setup (`START-HERE.bat --yes --family qwen --model IQ3_S --no-start`) completed fine: GPU detected as gfx1151, `--check` reported the PC can run Strata, the model downloaded and the packs/MTP layer were built. But the engine never reaches "ready": the model loads, `session is up (engine 0.1.43)` is printed, and then a GPU error during serve initialisation kills it. It never got as far as a request (I started it with `tools/strata_bench.py --long`, which stops when the server does not come up). What I tried (each one a fresh start; nothing else using the GPU, Unsloth/LM Studio closed): | # | Change from setup's config | Last line before exit | |---|---|---| | 1 | none (setup's `strata-iq3_s.json`) | `prefill: setting the FP16 activation image failed: unspecified launch failure` | | 2 | `STRATA_GFX1151_DEFAULTS=0` | same as 1 | | 3 | `STRATA_HIPBLASLT_TUNING` removed, `--prefill 2048`, `STRATA_PF_STEP_SYNC=1` | gets further: `strata serve: cannot create the refill stream` | | 4 | 3 + `STRATA_GFX1151_DEFAULTS=0` + `AMD_SERIALIZE_KERNEL=3` + `HIP_LAUNCH_BLOCKING=1` | `strata serve: verify: stream create failed` | So the place it dies moves with the settings, but it always looks like a sticky error left by an earlier kernel (the failing call is a `cudaMemcpyToSymbol` / `cudaStreamCreateWithFlags` that should not fail on its own). With `AMD_SERIALIZE_KERNEL=3` + `HIP_LAUNCH_BLOCKING=1` the log still did not name a faulting kernel. Two things that look odd to me: - The expert cache sees only **5.41 GiB free** (5.90 GiB with the defaults off) on a 64 GB BIOS carve-out, right after `cudaHostRegister PORTABLE ok` for the ~47 GiB expert arena. Maybe the registered host memory is being charged against the carve-out on Windows? - Large pages are refused (`VirtualAlloc error 1314`, no "Lock pages in memory" privilege), so the arena uses 4 KB pages. Probably unrelated, but noting it. Not tried yet: a smaller BIOS carve-out, `--expert-cache 0`, a 32K context, Linux. Happy to run any diagnostic build or env switch you want. ### Strata version, GPU, OS 0.1.43 prebuilt `strata-windows-x64-hip` (repo at 7695859, 2026-10-11; BUILD.json archs include gfx1151, rocm 10.2.0a20260930, hipBLASLt 100500) · AMD Ryzen AI Max+ 395 / Radeon 8060S (gfx1151), 128 GB LPDDR5X-8000 unified, BIOS carve-out 64 GB (OS sees 63.6 GB) · Windows 11 Pro build 26300, AMD driver 32.0.31036.15 (2026-08-12), page file 127 GB ### Engine log Run 1 (setup's config), from `session is up` on: ```text strata: gfx1151 (Strix Halo): 18 exact speed switches on by default (STRATA_GFX1151_DEFAULTS=0 turns them off; a switch you set is kept): GDN_HEAD GDN_PP GDN_CONVL2 GDN_NOY CVEC_FUSE HCD_EXACT PF_PAD Q8_PACKED Q6_PACKED MMVF_ROWS ATTN_LANECELL EXPERT_V2 TSUM LFUSE GDN_SPLIT QFUSE PLE_BATCH SH_STREAM strata generate: memory guard: limit 63.6 GiB (source: meminfo), current 10.2 GiB, reclaimable cache credited 0.0 GiB; available 53.5 GiB (MemAvailable 53.5 GiB), floor 2560 MiB strata generate: PCIe probe: 77.7 GB/s host->device (best of 77.7 77.0 75.5 75.3) -> pcie_frac 0.55 (default 0.55) ... strata generate: GPU 0: AMD Radeon(TM) 8060S Graphics (gfx1151) strata generate: expert arena: cudaHostRegister PORTABLE ok; large pages refused for 50295996416 B (GetLargePageMinimum=2097152, VirtualAlloc error 1314); using 4 KB pages strata generate: loaded 46.84 GiB at 5.32 GiB/s strata generate: CPU pool tasks/phase: 48 (automatic), participating threads: 16 strata generate: expert cache auto: Windows keeps 2560 MiB free after the cache on a card this size (...) strata generate: expert cache auto: 5.41 GiB free, 2560 MiB reserved (+218 MiB for the draft head) -> 1087 slots strata generate: expert cache 1398 slots, 2.70 GiB of VRAM; policy is PROFILE, ranked by routing frequency, no eviction. strata generate: pre-filled 1398 of 1398 slots from the profile in 0.3 s (10102 MB/s); slot 0 verified strata generate: R4 hit path ON - resident experts are computed on the GPU strata generate: session is up (engine 0.1.43) strata generate: token graph hit path: 1398 resident experts, decided on the device strata serve: Windows commit: 113.0 GiB left of a 190.6 GiB limit (RAM + page file) strata serve: prompt chunk auto: 4608 tokens, a 199-slot ring strata serve: the prompt path borrows 1218 CUDA0 cache slots (2.35 GiB) prefill gemm: hipBLASLt tuning enabled (32 rows, gfx1151, version 100500) prefill: setting the FP16 activation image failed: unspecified launch failure ``` Run 3 (no tuning table, `--prefill 2048`), tail: ```text strata serve: the prompt path borrows 970 CUDA0 cache slots (1.87 GiB) strata hc: CUDA0: the hyper-connection read runs as staged (...); checked bit for bit against the plain read on this card (STRATA_HC_SPLIT=1 or 0 for the earlier ones) strata verify: window up to 6 tokens, 75.1 MiB of device buffers strata mtp: draft head over 106299 tokens (212.9 MiB) strata serve: cannot create the refill stream ``` Run 4 (run 3 + defaults off + serialized launches), tail: ```text strata generate: expert cache auto: 5.90 GiB free, 2560 MiB reserved (+218 MiB for the draft head) -> 1286 slots strata generate: token graph hit path: 1656 resident experts, decided on the device strata serve: the prompt path borrows 971 CUDA0 cache slots (1.86 GiB) strata hc: CUDA0: the hyper-connection read runs as staged (...) strata serve: verify: stream create failed ``` Engine command line (setup's): `strata.exe --serve --pack <data>\packs\iq3_s --native <...>-IQ3_S-00001-of-00002.gguf --ple-gguf <...>-IQ3_S-00002-of-00002.gguf --expert-profile data\expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <data>\mtp\rt --max-context 131072 --kv int8` (KV streaming off: setup said there was not enough RAM for it). Full logs can be attached on request.
Author
Owner

@Niko1221 commented on GitHub (Oct 12, 2026):

Thank you for such a complete first Windows Strix Halo report. We have no Strix Halo machine any more, so I can only reason from your logs, and I want to be honest about that. What the logs say: every run dies at the first call that has to wait for the GPU after the prompt path starts (a cudaMemcpyToSymbol in run 1, a stream create in runs 3 and 4), and the failing call moves with your settings. That is the signature of an error left by earlier GPU work (or by the GPU running out of memory), not of that call. STRATA_GFX1151_DEFAULTS=0 changing nothing rules out the 18 gfx1151 switches. The 5.41 GiB free is the suspicious number: 64 GB carve-out - 47 GiB arena - the dense weights and KV is about that, so I think the driver may charge the registered arena against the carve-out, and then the prompt path's allocations and the hipBLASLt / module loading start from almost nothing.

Three quick tests, in this order, each a fresh start (please keep your other settings):

  1. STRATA_ARENA_PIN_GIB=16 (pins only the first 16 GiB of the arena; the rest stays in RAM). Does 'free' in the expert-cache line go up by roughly 30 GiB, and does the engine become ready?
  2. Run 1 with only STRATA_HIPBLASLT_TUNING removed (keep --prefill auto). The gfx1151 table was calibrated on Linux against ROCm 7.14 / hipBLASLt 1.5.0; I would like to know whether the table is what trips the Windows library. Run 3 got past the failing call without it.
  3. STRATA_TRACE=1 (it prints the free VRAM after each start-up step). We are adding STRATA_TRACE=2 for the next build: it also waits for the GPU at each step and names the first step after which the GPU reports an error. If you want to try it before a release we can send you a build.

If you can also tell us: the 'Dedicated GPU memory' and 'Shared GPU memory' figures in Task Manager (Performance > GPU) right before you start the engine, and again after the line 'expert arena: cudaHostRegister PORTABLE ok'; and whether the engine reaches ready with --expert-cache 0 --max-context 8192 --prefill 1024. That tells us whether this is memory or a kernel. Linux on this machine is documented to work (docs/STRIX_HALO.md), so a kernel that is wrong for gfx1151 in general is unlikely; I suspect the Windows memory accounting or the hipBLASLt tuning.

<!-- gh-comment-id:6129323289 --> @Niko1221 commented on GitHub (Oct 12, 2026): Thank you for such a complete first Windows Strix Halo report. We have no Strix Halo machine any more, so I can only reason from your logs, and I want to be honest about that. What the logs say: every run dies at the first call that has to wait for the GPU after the prompt path starts (a cudaMemcpyToSymbol in run 1, a stream create in runs 3 and 4), and the failing call moves with your settings. That is the signature of an error left by earlier GPU work (or by the GPU running out of memory), not of that call. STRATA_GFX1151_DEFAULTS=0 changing nothing rules out the 18 gfx1151 switches. The 5.41 GiB free is the suspicious number: 64 GB carve-out - 47 GiB arena - the dense weights and KV is about that, so I think the driver may charge the registered arena against the carve-out, and then the prompt path's allocations and the hipBLASLt / module loading start from almost nothing. Three quick tests, in this order, each a fresh start (please keep your other settings): 1. STRATA_ARENA_PIN_GIB=16 (pins only the first 16 GiB of the arena; the rest stays in RAM). Does 'free' in the expert-cache line go up by roughly 30 GiB, and does the engine become ready? 2. Run 1 with only STRATA_HIPBLASLT_TUNING removed (keep --prefill auto). The gfx1151 table was calibrated on Linux against ROCm 7.14 / hipBLASLt 1.5.0; I would like to know whether the table is what trips the Windows library. Run 3 got past the failing call without it. 3. STRATA_TRACE=1 (it prints the free VRAM after each start-up step). We are adding STRATA_TRACE=2 for the next build: it also waits for the GPU at each step and names the first step after which the GPU reports an error. If you want to try it before a release we can send you a build. If you can also tell us: the 'Dedicated GPU memory' and 'Shared GPU memory' figures in Task Manager (Performance > GPU) right before you start the engine, and again after the line 'expert arena: cudaHostRegister PORTABLE ok'; and whether the engine reaches ready with --expert-cache 0 --max-context 8192 --prefill 1024. That tells us whether this is memory or a kernel. Linux on this machine is documented to work (docs/STRIX_HALO.md), so a kernel that is wrong for gfx1151 in general is unlikely; I suspect the Windows memory accounting or the hipBLASLt tuning.
Author
Owner

@400msstack commented on GitHub (Oct 13, 2026):

Thanks a lot, your diagnosis was right: STRATA_ARENA_PIN_GIB=16 alone fixes it. The engine becomes ready and answers correctly. Each test below was a fresh start with my other settings unchanged (setup's strata-iq3_s.json), nothing else using the GPU, and STRATA_TRACE=1 added to every run.

Results

# Change Result
1 STRATA_ARENA_PIN_GIB=16 Ready in 33-37 s. Expert cache now sees 68.36 GiB free (was 5.41) and holds all 24576 experts (46.84 GiB). 256-token answer: 44.7 / 45.0 tok/s decode (two starts), draft 156/221 accepted. 21047 MiB of VRAM free with everything loaded
2 setup's config with only STRATA_HIPBLASLT_TUNING removed (--prefill auto kept) Same failure as run 1: prefill: setting the FP16 activation image failed: unspecified launch failure. So the tuning table is not the cause; my earlier run 3 only got further because --prefill 2048 needed less memory
3 setup's config + STRATA_TRACE=1 Same failure as run 1 (trace below)
4 --expert-cache 0 --max-context 8192 --prefill 1024 Fails: free VRAM reaches 0 MiB after the verifier/drafter binding, then cannot create the refill stream and Hip error: 'unspecified launch failure'(719) at .../hipblaslt/library/src/amd_detail/hipblaslt.cpp:468. Note: the log still shows expert cache 2385 slots, 4.58 GiB with --expert-cache 0

The memory accounting: pinning costs about 2x on Windows

From the STRATA_TRACE=1 lines, the free VRAM drop across the arena registration is about twice the pinned size:

Run Pinned Free before (after native head) Free after weights/session/drafter Drop
setup default (whole arena) ~47 GiB 101470 MiB 5540 MiB ~94 GiB
STRATA_ARENA_PIN_GIB=16 17 slices (15 GiB) 101470 MiB 69995 MiB ~31 GiB

(The drafter is ~1 GiB of that.) The first trace line reports 107694 MiB free after the CUDA context and the weight arena, i.e. the 64 GB carve-out plus the shared pool.

Task Manager counters (GPU Adapter Memory Dedicated / Shared Usage, sampled by script):

Point Default (fails) STRATA_ARENA_PIN_GIB=16
before start 1.63 / 0.07 GB 1.63 / 0.07 GB
right after the cudaHostRegister line 1.62-1.63 / 0.07 GB 56.16 / 16.11 GB
ready - 56.77 / 16.30 GB

So in the failing runs the driver's free figure drops by ~94 GiB while Task Manager's usage barely moves: it looks like the registered arena is charged against the GPU budget roughly twice, without being visible as usage.

Benchmark with the fix (tools/strata_bench.py --long, 0.1.43 prebuilt, IQ3_S, 131072 context, STRATA_ARENA_PIN_GIB=16)

Test Median (range)
chat decode 35.2 tok/s (32.5-50.3, n=9)
chat first token 0.65 s
4K prompt 711.4 tok/s (708.1-711.7), first token 5.71 s
16K prompt 732.6 tok/s (732.3-733.4), first token 21.99 s
32K prompt 707.9 tok/s (707.2-708.3), first token 45.35 s
agent session cache hit 68.7 %, turn first token 5.24 s, decode 42.0 tok/s (30.4-48.4, n=15)

Engine log: every expert is in the GPU cache (24576 of 24576), Windows commit: 56.6 GiB left of a 190.6 GiB limit. Large pages are still refused (error 1314), 4 KB pages.

Two small extras

  • tools/strata_bench.py crashes on a Japanese Windows (cp932 locale) in project_version(): (ROOT / "CMakeLists.txt").read_text() -> UnicodeDecodeError: 'cp932' codec can't decode byte 0xef in position 0 (the file starts with a UTF-8 BOM). read_text(encoding="utf-8-sig") would fix it; I worked around it with PYTHONUTF8=1.
  • I have not tried other STRATA_ARENA_PIN_GIB values yet; happy to sweep a few (8 / 24 / 32) or try a STRATA_TRACE=2 build if useful. A default that caps the pin on Windows UMA (or sizes it from the measured drop) would probably make setup work out of the box here.

Hardware/OS unchanged: Ryzen AI Max+ 395 / Radeon 8060S (gfx1151), 128 GB LPDDR5X-8000, BIOS carve-out 64 GB, Windows 11 Pro 26300, AMD driver 32.0.31036.15.

<!-- gh-comment-id:6141586503 --> @400msstack commented on GitHub (Oct 13, 2026): Thanks a lot, your diagnosis was right: **`STRATA_ARENA_PIN_GIB=16` alone fixes it.** The engine becomes ready and answers correctly. Each test below was a fresh start with my other settings unchanged (setup's `strata-iq3_s.json`), nothing else using the GPU, and `STRATA_TRACE=1` added to every run. ### Results | # | Change | Result | |---|---|---| | 1 | `STRATA_ARENA_PIN_GIB=16` | **Ready in 33-37 s.** Expert cache now sees **68.36 GiB free** (was 5.41) and holds **all 24576 experts** (46.84 GiB). 256-token answer: 44.7 / 45.0 tok/s decode (two starts), draft 156/221 accepted. `21047 MiB of VRAM free with everything loaded` | | 2 | setup's config with only `STRATA_HIPBLASLT_TUNING` removed (`--prefill auto` kept) | Same failure as run 1: `prefill: setting the FP16 activation image failed: unspecified launch failure`. So the tuning table is **not** the cause; my earlier run 3 only got further because `--prefill 2048` needed less memory | | 3 | setup's config + `STRATA_TRACE=1` | Same failure as run 1 (trace below) | | 4 | `--expert-cache 0 --max-context 8192 --prefill 1024` | Fails: free VRAM reaches **0 MiB** after the verifier/drafter binding, then `cannot create the refill stream` and `Hip error: 'unspecified launch failure'(719) at .../hipblaslt/library/src/amd_detail/hipblaslt.cpp:468`. Note: the log still shows `expert cache 2385 slots, 4.58 GiB` with `--expert-cache 0` | ### The memory accounting: pinning costs about 2x on Windows From the `STRATA_TRACE=1` lines, the free VRAM drop across the arena registration is about **twice** the pinned size: | Run | Pinned | Free before (after native head) | Free after weights/session/drafter | Drop | |---|---|---|---|---| | setup default (whole arena) | ~47 GiB | 101470 MiB | 5540 MiB | ~94 GiB | | `STRATA_ARENA_PIN_GIB=16` | 17 slices (15 GiB) | 101470 MiB | 69995 MiB | ~31 GiB | (The drafter is ~1 GiB of that.) The first trace line reports `107694 MiB free after the CUDA context and the weight arena`, i.e. the 64 GB carve-out plus the shared pool. Task Manager counters (`GPU Adapter Memory` Dedicated / Shared Usage, sampled by script): | Point | Default (fails) | `STRATA_ARENA_PIN_GIB=16` | |---|---|---| | before start | 1.63 / 0.07 GB | 1.63 / 0.07 GB | | right after the `cudaHostRegister` line | 1.62-1.63 / 0.07 GB | 56.16 / 16.11 GB | | ready | - | 56.77 / 16.30 GB | So in the failing runs the driver's *free* figure drops by ~94 GiB while Task Manager's usage barely moves: it looks like the registered arena is charged against the GPU budget roughly twice, without being visible as usage. ### Benchmark with the fix (`tools/strata_bench.py --long`, 0.1.43 prebuilt, IQ3_S, 131072 context, `STRATA_ARENA_PIN_GIB=16`) | Test | Median (range) | |---|---| | chat decode | 35.2 tok/s (32.5-50.3, n=9) | | chat first token | 0.65 s | | 4K prompt | 711.4 tok/s (708.1-711.7), first token 5.71 s | | 16K prompt | 732.6 tok/s (732.3-733.4), first token 21.99 s | | 32K prompt | 707.9 tok/s (707.2-708.3), first token 45.35 s | | agent session | cache hit 68.7 %, turn first token 5.24 s, decode 42.0 tok/s (30.4-48.4, n=15) | Engine log: `every expert is in the GPU cache (24576 of 24576)`, `Windows commit: 56.6 GiB left of a 190.6 GiB limit`. Large pages are still refused (error 1314), 4 KB pages. ### Two small extras - `tools/strata_bench.py` crashes on a Japanese Windows (cp932 locale) in `project_version()`: `(ROOT / "CMakeLists.txt").read_text()` -> `UnicodeDecodeError: 'cp932' codec can't decode byte 0xef in position 0` (the file starts with a UTF-8 BOM). `read_text(encoding="utf-8-sig")` would fix it; I worked around it with `PYTHONUTF8=1`. - I have not tried other `STRATA_ARENA_PIN_GIB` values yet; happy to sweep a few (8 / 24 / 32) or try a `STRATA_TRACE=2` build if useful. A default that caps the pin on Windows UMA (or sizes it from the measured drop) would probably make setup work out of the box here. Hardware/OS unchanged: Ryzen AI Max+ 395 / Radeon 8060S (gfx1151), 128 GB LPDDR5X-8000, BIOS carve-out 64 GB, Windows 11 Pro 26300, AMD driver 32.0.31036.15.
Author
Owner

@mistral13 commented on GitHub (Oct 19, 2026):

Hi

Starta has been running for two weeks on my Windows laptop with Strix Halo. Here’s the hardware:

GPU and VRAM: AMD Radeon(TM) 8060S Graphics (Strix Halo APU, gfx1151), unified memory: 64.0 GB BIOS carve-out
32 GB shared with system RAM, 108 GB usable by the GPU. There is no discrete PCIe GPU link — the CPU and the
iGPU share one memory pool.
CPU: AMD Ryzen AI MAX+ PRO 395 w/ Radeon 8060S (16 cores / 32 threads, AVX-512)
Installed RAM: 128 GB unified memory (64GB RAM; 64GB VRAM)

I’m currently using version 0.1.45, which I’m also running benchmarks with right now. From what I can see, the different models behave very differently (e.g prefill for unsloth have of other modells), and shared memory is used in very different ways.

You can see the results from version 1.44.1 here.
https://github.com/Niko1221/Strata/issues/3032

If there’s anything you’d like me to test, just let me know.

Edit: results from 0.1.45 https://github.com/Niko1221/Strata/issues/3398

<!-- gh-comment-id:6277983648 --> @mistral13 commented on GitHub (Oct 19, 2026): Hi Starta has been running for two weeks on my Windows laptop with Strix Halo. Here’s the hardware: GPU and VRAM: AMD Radeon(TM) 8060S Graphics (Strix Halo APU, gfx1151), unified memory: 64.0 GB BIOS carve-out 32 GB shared with system RAM, 108 GB usable by the GPU. There is no discrete PCIe GPU link — the CPU and the iGPU share one memory pool. CPU: AMD Ryzen AI MAX+ PRO 395 w/ Radeon 8060S (16 cores / 32 threads, AVX-512) Installed RAM: 128 GB unified memory (64GB RAM; 64GB VRAM) I’m currently using version 0.1.45, which I’m also running benchmarks with right now. From what I can see, the different models behave very differently (e.g prefill for unsloth have of other modells), and shared memory is used in very different ways. You can see the results from version 1.44.1 here. https://github.com/Niko1221/Strata/issues/3032 If there’s anything you’d like me to test, just let me know. Edit: results from 0.1.45 https://github.com/Niko1221/Strata/issues/3398
Author
Owner

@tomamama022-art commented on GitHub (Oct 21, 2026):

Edit (2026-10-22): more data changed my reading. What I wrote below about resident RAM mode was incomplete. On this PC the failures go with the GPU running out of the memory it can use, and two things use it up:

  • A page-locked RAM copy. The resident starts failed with a 10 GiB expert cache as well as with a 35 GiB one. The one resident start that worked was one where the driver refused the page-locking.
  • A large GPU expert cache. In mmap mode, starts with a 21 GiB and with a 34 GiB cache failed too, including one on engine 0.1.47 without --batch.

I struck through the sentence below that says mmap mode works. I also corrected the free-VRAM range for mmap (it was 45,891 MiB, now 44,851–45,939 MiB) and the wording about the verify stalls, and added a note on my IQ3_S log. The table at the end lists every start in my three engine logs. Later on 2026-10-22: resident mode started once page-locking was off (STRATA_RESIDENT_PIN=0); see the addition at the very end.

Same GPU and OS as this thread, and a similar failure on engines 0.1.45.3 and 0.1.46.1: the engine never becomes ready, with unspecified launch failure. Here it only happens in resident RAM mode (--resident-budget-gib). mmap mode works. (Edit: mmap mode fails as well when the expert cache is large; see the edit above.) It matches your diagnosis above (it dies at the first call that waits for the GPU once the prompt path starts), so I am adding it here. I'm happy to open a separate issue if you prefer. #3555 (gfx1100) looks related: it is also resident RAM mode, with a 44 GiB pinned complement, on the same two engine versions. But its reporter rules out memory, and it fails later, in verify.

Setup: Ryzen AI MAX+ 395 / Radeon 8060S (gfx1151). The GPU is integrated: Windows reports 512 MiB of dedicated GPU memory (the BIOS carve-out, so almost nothing is carved out here, unlike the 64 GB above), and the engine works from the 128 GB of unified memory (127.1 GiB visible to Windows). Windows 11 (build 26300) · AMD driver 32.0.32015.7029 · Strata 0.2.1 desktop app, control 0.1.46.3 · Qwen3.8-Flash-Next UD-Q4_K_XL with --native + --pack, --max-context 131072 --kv int8 --kv-resident 32768 --prefill auto --spec 4 --spec-min-p 0.5 --vram-reserve-mib 2048, pictures on. The failing args are the ones the app wrote for this model (the run config's args_written): --expert-cache 9392 --resident-budget-gib 71.

8 resident starts over two days, 0 served requests (budget 71 or 49, three of them with --batch 3). 5 stopped at prefill: copy stream, 1 in rocBLAS init, 1 while copying the RAM copy, and 1 right after an earlier launch failure:

  • What gets allocated. The expert cache takes 11962 slots / 34.93 GiB of VRAM. The RAM copy is 39.65 GiB page-locked: the 12,614 experts the cache does not hold (36.80 GiB) plus the 974 lend slots (2.85 GiB). With 71, the commit check first lowered the budget to 46.5–54.0 GiB, which still held all of it. With 49 it was not lowered. Windows commit had 11.4–24.4 GiB left after the load. The UD-Q4_K_XL log has no expert-arena lines, so the large page-locked block there is this complement, not the arena from this thread. The KV streaming's 1.55 GiB of pinned RAM is the only other one. (My IQ3_S log does show this thread's symptom. On 0.1.45.3 with the registered arena, four starts on 2026-10-20 logged expert arena: cudaHostRegister PORTABLE ok and then expert cache auto: 0.00 GiB free, 13127 MiB reserved ... -> 0 slots. I switched to --mmap-experts after that.)

  • 5 starts stop at strata serve: prefill: copy stream. These are the only 5 occurrences of that line in the log, all in resident starts. serve reports each one as EngineDied: the engine exited before it was ready after 145–185 s of still starting, and its quoted engine lines end on that line. In 2 of them (one per engine version), the engine log shows the failure right after it:

    engine log, 0.1.46.1, budget 71 (excerpt; lines between are omitted)
    strata generate: expert cache 11962 slots, 34.93 GiB of VRAM; policy is
    FileExpertSource: mapped pinned cache complement ready: resident 39.65 GiB, pinned 39.65 GiB in 44 s; page-locked and mapped
    strata serve: Windows commit: 18.7 GiB left of a 135.1 GiB limit (RAM + page file)
    strata: prefill plan inputs: 71.7 GiB experts, 34.9 GiB in the GPU caches, 39.6 GiB RAM copy (974 lend slots kept), file tier 0.0 GiB; ...
    strata serve: the prompt path borrows 974 CUDA0 cache slots (2.85 GiB)
    strata serve: prefill: copy stream
    ggml_backend_cuda_device_get_memory: cudaMemGetInfo failed (unspecified launch failure), returning 0/0
    ROCm error: unspecified launch failure
    current device: -1, in function ggml_backend_cuda_device_get_type at .../ggml/src/ggml-cuda/ggml-cuda.cu:5015
    .../ggml/src/ggml-cuda/ggml-cuda.cu:108: ROCm error
    
  • 1 start failed earlier, in rocBLAS init (0.1.45.3, 71, --batch 3). It logged hipErrorFileNotFound (tensile_host.cpp), then hipErrorLaunchFailure (rocblas_auxiliary.cpp), then rocBLAS error: Could not initialize Tensile host: followed by invalid unordered_map<K, T> key. serve reported exit code 0xC0000409: stack buffer overrun / fast-fail. The previous start, in mmap mode, had no GPU error.

  • 1 start ended while copying the RAM copy (0.1.45.3, 71, no --batch). The engine log ends at copied cache complement through layer 40/48 (35.20 GiB, 22 s). There is no error text, and serve logged no exit for it. The next start, with the mmap settings, followed 4.5 min later, so my own settings change may have replaced this one rather than it having died.

  • After a launch failure, the next start (mmap or resident) logs PCIe probe failed -> pcie_frac default 0.55 and native embedding: cannot pin 644 MiB: unspecified launch failure, nor place it in VRAM, then exits before ready. The 8th resident start is one of these.

    • After the two 0.1.46.1 failures, the start after that was normal.
    • After the 0.1.45.3 failure, the start after that (mmap, --expert-cache 9392 --batch 3) became ready with 0 MiB of VRAM free with everything loaded. serve restarted it when its first request's verify window never finished (#267).
    • Two more verify stalls happened that day with --expert-cache 4096 --batch 3 and 30,746 MiB free (details in the table), and none in the next day's starts without --batch. I note this for completeness, not as part of this failure.

mmap for comparison (--expert-cache 4096 --mmap-experts, same model): the expert cache is 5223 slots / 15.23 GiB, and Windows commit has 76–84 GiB left (70–71 GiB with --batch 3). There is 44,851–45,939 MiB of VRAM free with everything loaded. It has served multi-hour agent runs. I saw one unspecified launch failure in mmap mode (0.1.46.1), right after two reads of a 71,543-token prompt were cancelled mid-read. It did not happen again over later runs, which had 17 more mid-read cancels.

A guess (untested): in this thread, pinning cost about twice its size in free VRAM on Windows Strix Halo. If the 39.65 GiB page-locked complement is charged the same way on top of the 34.9 GiB expert cache, the GPU budget would be used up by the time the prompt path starts, which is where it stops here. PR #2963 keeps page-locking below WDDM's shared-memory budget, but only when the one allocation is refused. Here it was granted, so that PR may not help as written. (Edit: the UD-Q5_K_XL rows in the table fit this, since page-locked starts failed even with a 10 GiB cache. But a large cache alone does the same in mmap mode.)

Not tried yet: engine 0.1.47 (0.2.2); (0.1.47: only the two test starts in the table below) 0.1.43.1; STRATA_RESIDENT_PIN=0; (tried later: see the addition at the end) STRATA_TRACE=1; the Task Manager dedicated / shared GPU memory figures you asked for above. I can try these if they help. The Windows System log shows no display-driver reset (no Event 4101) in this period.

Added 2026-10-22: every start in my three engine logs (UD-Q4_K_XL, UD-Q5_K_XL and IQ3_S), plus the app's test starts of engines 0.1.46, 0.1.46.1 and 0.1.47 when updating. I copied the first test start's lines from its log before the second test start overwrote the file. "Stopped by me" means I stopped the server myself (stopping (Ctrl+C ...) in serve's log), so those starts are no evidence either way.

Engine Model Experts --expert-cache GPU expert cache Outcome
0.1.45.3, 0.1.46.1 UD-Q4_K_XL resident, 39.65 GiB page-locked 9392 11962 slots / 34.93 GiB 8 starts, 0 requests served (above)
0.1.46 UD-Q5_K_XL resident, 71.27 or 63.00 GiB page-locked 2474 2739 slots / 10.20 GiB 2 starts, both stopped at prefill: copy stream (serve: EngineDied: the engine exited before it was ready)
0.1.46.1 UD-Q5_K_XL resident, 80.50 GiB, page-locking refused (out of memory), locked via working-set minimum + VirtualLock, pinned 0.00 GiB 2474 2739 slots / 10.20 GiB ready with 0 MiB of VRAM free with everything loaded; served 15 requests, up to 65,870 tokens
0.1.46 UD-Q5_K_XL mmap 2474 2739 slots / 10.20 GiB 2 starts, 56,158 MiB free, both served
0.1.45.3 UD-Q4_K_XL mmap, --batch 3 9392 11962 slots / 34.93 GiB 1 start became ready with 0 MiB of VRAM free with everything loaded; its first request's verify window never finished and serve restarted the engine (#267). A second was stopped by me while it filled the cache. (A third, right after a launch failure, is not counted.)
0.1.45.3 UD-Q4_K_XL mmap, --batch 3 4096 5223 slots / 15.23 GiB 30,746 MiB free. 3 starts served. In 1, the verify window never finished (#267). In 1, the engine stopped itself after 60 s without progress in the verify windows (#29, exit code 3221226505). 1 was stopped by me during start
0.1.45.3 IQ3_S registered arena auto 0 slots (expert cache auto: 0.00 GiB free, 13127 MiB reserved ... -> 0 slots) 4 starts, none became ready (this thread's symptom)
0.1.45.3 IQ3_S mmap, --batch 3 auto 11243 slots / 21.34 GiB (sized 22213 slots from 68.13 GiB free, 13127 MiB reserved, then shrunk twice after only 0 MiB free once the slots are written and only 276 MiB free ...) the profile fill failed at pair 0: ExpertCache::fill_slot_blocking: unspecified launch failure. A second start with the same args ended after the sizing line; outcome not recorded
0.1.45.3 IQ3_S mmap, --batch 3 4096 5341 slots / 10.16 GiB 3 starts. The first ended during the cache fill with no error and no request, and the next start replaced it 2 min later (outcome not recorded). The other two reached ready with 46,553 MiB free and served 2 and 49 requests
0.1.46.1 IQ3_S mmap, --batch 3 auto sized 22251 slots from 68.22 GiB free; no final size logged rocBLAS init failed right after the sizing line, as in the 0.1.45.3 resident start above: hipErrorFileNotFound (tensile_host.cpp), then 'hipErrorLaunchFailure':719 (rocblas_auxiliary.cpp:979), then rocBLAS error: Could not initialize Tensile host: / invalid unordered_map<K, T> key
0.1.46.1 IQ3_S mmap auto sized 24576 slots from 83.01 GiB free the log ends at the sizing line; outcome not recorded
0.1.47 IQ3_S mmap auto 17667 slots / 33.63 GiB (sized 24576 slots from 83.00 GiB free, 700 MiB reserved, then only 0 MiB free once the slots are written ...; shrinking the expert cache three times) the app's test start failed: the profile fill failed at pair 0: ExpertCache::fill_slot_blocking: unspecified launch failure
0.1.47 UD-Q4_K_XL mmap 4096 5223 slots / 15.23 GiB the app's test start an hour later: ready, 45,891 MiB free, answered
0.1.46, 0.1.46.1 UD-Q4_K_XL, IQ3_S mmap, no --batch 4096 5223 slots / 15.23 GiB, or 5341 slots / 10.16 GiB 44,851–45,939 MiB free (61,743 MiB for IQ3_S). Served normally in every start, including multi-hour agent runs. The one exception is the unspecified launch failure after two cancelled reads (above) and the start right after it

A new guess (untested): page-locked host memory and the GPU's own allocations seem to draw on the same budget that Windows gives this integrated GPU. When the two together pass it, the next call that waits for the GPU fails with unspecified launch failure.

  • A RAM copy that is locked but not page-locked (the start where page-locking was refused) did not trigger it, even though the engine then reported 0 MiB of VRAM free.
  • With auto, the engine sizes the cache from a free figure (68–83 GiB here) that turns out to be too high: twice it found only 0 MiB free once the slots are written, shrank the cache, and still failed.
  • --expert-cache 9392, the value the app wrote for this PC, gives the 34.93 GiB cache. I have not tried a value between 4096 and 9392.

Added 2026-10-22 (later): resident RAM mode starts without page-locking. I test-started UD-Q4_K_XL on engine 0.1.47 in resident RAM mode with STRATA_RESIDENT_PIN=0 and a small cache (--resident-budget-gib 71 --expert-cache 4096, plus the run config's PAL_DISABLE_SDMA=1). It ran in an isolated runtime, the way the app's updater test-starts an engine. It became ready and answered (one start; I have not run long prompts on it yet):

FileExpertSource: allocating 59.35 GiB pageable resident cache complement
FileExpertSource: pageable resident cache complement ready: resident 59.35 GiB, pinned 0.00 GiB in 58 s
strata generate: resident RAM mode: 59.35 GiB of experts in RAM (pageable), 5223 in the GPU cache; adaptive swaps exchange them with the GPU cache (no file reads)
strata serve: 45159 MiB of VRAM free with everything loaded
strata serve: prompt 53 tokens = 0 reused + 53 read in 5773 ms (9.2 tok/s), 1 generated in 207 ms (4.8 tok/s), drafts accepted 0 of 0, 1 checkpoints
strata serve: resident RAM: 59.35 GiB of experts in RAM, 0 exchanged with the VRAM tier, 0 blob reads from the file
  • The two attempts just before it failed before the engine's own start line. That failure was in the vision encoder, which is what serve starts first (cudaMemGetInfo failed (unspecified launch failure)). The engine then logged cannot pin 644 MiB. A control start with the mmap settings passed right after, and then this start passed. I do not know what broke the GPU for those two minutes, so I count those two attempts as no evidence either way.
  • This fits your Windows change in 0.2.1.2, which keeps the expert arena unregistered and held by the working-set lock (docs/STRIX_HALO.md). It also fits the UD-Q5_K_XL resident start above, whose page-locking the driver refused. So, as something to test rather than a request: on Windows Strix Halo, a pageable resident RAM copy (what STRATA_RESIDENT_PIN=0 does) may be the safer default, once its speed has been measured against page-locked and mmap.
  • Not tested yet: UD-Q4_K_XL page-locked with the 4096 cache (the UD-Q5_K_XL rows cover page-locked with a 10 GiB cache); STRATA_RESIDENT_PIN=0 with the 9392 cache; speed against mmap.
  • Two more data points, since docs/STRIX_HALO.md says nobody has run a Strix Halo on Windows yet. Everything in this comment is from Windows. dxdiag on this PC reports 334 MB of dedicated GPU memory (the adapter's registry size is the 512 MiB in Setup) and 104,159 MB of shared GPU memory. That is more than the "half the RAM" that STRIX_HALO.md says setup counts on Windows.

Investigated and drafted with Claude Code (log analysis and writing). The numbers and log lines come from the logs on my machine and were cross-checked against them.

<!-- gh-comment-id:6321379022 --> @tomamama022-art commented on GitHub (Oct 21, 2026): **Edit (2026-10-22):** more data changed my reading. What I wrote below about resident RAM mode was incomplete. On this PC the failures go with the GPU running out of the memory it can use, and two things use it up: - **A page-locked RAM copy.** The resident starts failed with a 10 GiB expert cache as well as with a 35 GiB one. The one resident start that worked was one where the driver refused the page-locking. - **A large GPU expert cache.** In mmap mode, starts with a 21 GiB and with a 34 GiB cache failed too, including one on engine 0.1.47 without `--batch`. I struck through the sentence below that says mmap mode works. I also corrected the free-VRAM range for mmap (it was 45,891 MiB, now 44,851–45,939 MiB) and the wording about the verify stalls, and added a note on my IQ3_S log. The table at the end lists every start in my three engine logs. **Later on 2026-10-22:** resident mode started once page-locking was off (`STRATA_RESIDENT_PIN=0`); see the addition at the very end. Same GPU and OS as this thread, and a similar failure on engines **0.1.45.3 and 0.1.46.1**: the engine never becomes ready, with `unspecified launch failure`. ~~Here it only happens in **resident RAM mode** (`--resident-budget-gib`). mmap mode works.~~ (Edit: mmap mode fails as well when the expert cache is large; see the edit above.) It matches your diagnosis above (it dies at the first call that waits for the GPU once the prompt path starts), so I am adding it here. I'm happy to open a separate issue if you prefer. #3555 (gfx1100) looks related: it is also resident RAM mode, with a 44 GiB pinned complement, on the same two engine versions. But its reporter rules out memory, and it fails later, in verify. **Setup:** Ryzen AI MAX+ 395 / Radeon 8060S (gfx1151). The GPU is integrated: Windows reports 512 MiB of dedicated GPU memory (the BIOS carve-out, so almost nothing is carved out here, unlike the 64 GB above), and the engine works from the 128 GB of unified memory (127.1 GiB visible to Windows). Windows 11 (build 26300) · AMD driver 32.0.32015.7029 · Strata 0.2.1 desktop app, control 0.1.46.3 · Qwen3.8-Flash-Next UD-Q4_K_XL with `--native` + `--pack`, `--max-context 131072 --kv int8 --kv-resident 32768 --prefill auto --spec 4 --spec-min-p 0.5 --vram-reserve-mib 2048`, pictures on. The failing args are the ones the app wrote for this model (the run config's `args_written`): `--expert-cache 9392 --resident-budget-gib 71`. **8 resident starts over two days, 0 served requests** (budget 71 or 49, three of them with `--batch 3`). 5 stopped at `prefill: copy stream`, 1 in rocBLAS init, 1 while copying the RAM copy, and 1 right after an earlier launch failure: - **What gets allocated.** The expert cache takes 11962 slots / 34.93 GiB of VRAM. The RAM copy is 39.65 GiB page-locked: the 12,614 experts the cache does not hold (36.80 GiB) plus the 974 lend slots (2.85 GiB). With `71`, the commit check first lowered the budget to 46.5–54.0 GiB, which still held all of it. With `49` it was not lowered. Windows commit had 11.4–24.4 GiB left after the load. The UD-Q4_K_XL log has no expert-arena lines, so the large page-locked block there is this complement, not the arena from this thread. The KV streaming's 1.55 GiB of pinned RAM is the only other one. (My IQ3_S log does show this thread's symptom. On 0.1.45.3 with the registered arena, four starts on 2026-10-20 logged `expert arena: cudaHostRegister PORTABLE ok` and then `expert cache auto: 0.00 GiB free, 13127 MiB reserved ... -> 0 slots`. I switched to `--mmap-experts` after that.) - **5 starts stop at `strata serve: prefill: copy stream`.** These are the only 5 occurrences of that line in the log, all in resident starts. serve reports each one as `EngineDied: the engine exited before it was ready` after 145–185 s of `still starting`, and its quoted engine lines end on that line. In 2 of them (one per engine version), the engine log shows the failure right after it: <details><summary>engine log, 0.1.46.1, budget 71 (excerpt; lines between are omitted)</summary> ``` strata generate: expert cache 11962 slots, 34.93 GiB of VRAM; policy is FileExpertSource: mapped pinned cache complement ready: resident 39.65 GiB, pinned 39.65 GiB in 44 s; page-locked and mapped strata serve: Windows commit: 18.7 GiB left of a 135.1 GiB limit (RAM + page file) strata: prefill plan inputs: 71.7 GiB experts, 34.9 GiB in the GPU caches, 39.6 GiB RAM copy (974 lend slots kept), file tier 0.0 GiB; ... strata serve: the prompt path borrows 974 CUDA0 cache slots (2.85 GiB) strata serve: prefill: copy stream ggml_backend_cuda_device_get_memory: cudaMemGetInfo failed (unspecified launch failure), returning 0/0 ROCm error: unspecified launch failure current device: -1, in function ggml_backend_cuda_device_get_type at .../ggml/src/ggml-cuda/ggml-cuda.cu:5015 .../ggml/src/ggml-cuda/ggml-cuda.cu:108: ROCm error ``` </details> - **1 start failed earlier, in rocBLAS init** (0.1.45.3, `71`, `--batch 3`). It logged `hipErrorFileNotFound` (`tensile_host.cpp`), then `hipErrorLaunchFailure` (`rocblas_auxiliary.cpp`), then `rocBLAS error: Could not initialize Tensile host:` followed by `invalid unordered_map<K, T> key`. serve reported `exit code 0xC0000409: stack buffer overrun / fast-fail`. The previous start, in mmap mode, had no GPU error. - **1 start ended while copying the RAM copy** (0.1.45.3, `71`, no `--batch`). The engine log ends at `copied cache complement through layer 40/48 (35.20 GiB, 22 s)`. There is no error text, and serve logged no exit for it. The next start, with the mmap settings, followed 4.5 min later, so my own settings change may have replaced this one rather than it having died. - **After a launch failure**, the next start (mmap or resident) logs `PCIe probe failed -> pcie_frac default 0.55` and `native embedding: cannot pin 644 MiB: unspecified launch failure, nor place it in VRAM`, then exits before ready. The 8th resident start is one of these. - After the two 0.1.46.1 failures, the start after that was normal. - After the 0.1.45.3 failure, the start after that (mmap, `--expert-cache 9392 --batch 3`) became ready with `0 MiB of VRAM free with everything loaded`. serve restarted it when its first request's verify window never finished (#267). - Two more verify stalls happened that day with `--expert-cache 4096 --batch 3` and 30,746 MiB free (details in the table), and none in the next day's starts without `--batch`. I note this for completeness, not as part of this failure. **mmap for comparison** (`--expert-cache 4096 --mmap-experts`, same model): the expert cache is 5223 slots / 15.23 GiB, and Windows commit has 76–84 GiB left (70–71 GiB with `--batch 3`). There is 44,851–45,939 MiB of VRAM free with everything loaded. It has served multi-hour agent runs. I saw one `unspecified launch failure` in mmap mode (0.1.46.1), right after two reads of a 71,543-token prompt were cancelled mid-read. It did not happen again over later runs, which had 17 more mid-read cancels. **A guess (untested):** in this thread, pinning cost about twice its size in free VRAM on Windows Strix Halo. If the 39.65 GiB page-locked complement is charged the same way on top of the 34.9 GiB expert cache, the GPU budget would be used up by the time the prompt path starts, which is where it stops here. PR #2963 keeps page-locking below WDDM's shared-memory budget, but only when the one allocation is refused. Here it was granted, so that PR may not help as written. (Edit: the UD-Q5_K_XL rows in the table fit this, since page-locked starts failed even with a 10 GiB cache. But a large cache alone does the same in mmap mode.) **Not tried yet:** ~~engine 0.1.47 (0.2.2);~~ (0.1.47: only the two test starts in the table below) 0.1.43.1; ~~`STRATA_RESIDENT_PIN=0`;~~ (tried later: see the addition at the end) `STRATA_TRACE=1`; the Task Manager dedicated / shared GPU memory figures you asked for above. I can try these if they help. The Windows System log shows no display-driver reset (no Event 4101) in this period. **Added 2026-10-22: every start in my three engine logs** (UD-Q4_K_XL, UD-Q5_K_XL and IQ3_S), plus the app's test starts of engines 0.1.46, 0.1.46.1 and 0.1.47 when updating. I copied the first test start's lines from its log before the second test start overwrote the file. "Stopped by me" means I stopped the server myself (`stopping (Ctrl+C ...)` in serve's log), so those starts are no evidence either way. | Engine | Model | Experts | `--expert-cache` | GPU expert cache | Outcome | | --- | --- | --- | --- | --- | --- | | 0.1.45.3, 0.1.46.1 | UD-Q4_K_XL | resident, 39.65 GiB page-locked | 9392 | 11962 slots / 34.93 GiB | 8 starts, 0 requests served (above) | | 0.1.46 | UD-Q5_K_XL | resident, 71.27 or 63.00 GiB page-locked | 2474 | 2739 slots / 10.20 GiB | 2 starts, both stopped at `prefill: copy stream` (serve: `EngineDied: the engine exited before it was ready`) | | 0.1.46.1 | UD-Q5_K_XL | resident, 80.50 GiB, `page-locking refused (out of memory)`, locked via working-set minimum + VirtualLock, pinned 0.00 GiB | 2474 | 2739 slots / 10.20 GiB | ready with `0 MiB of VRAM free with everything loaded`; served 15 requests, up to 65,870 tokens | | 0.1.46 | UD-Q5_K_XL | mmap | 2474 | 2739 slots / 10.20 GiB | 2 starts, 56,158 MiB free, both served | | 0.1.45.3 | UD-Q4_K_XL | mmap, `--batch 3` | 9392 | 11962 slots / 34.93 GiB | 1 start became ready with `0 MiB of VRAM free with everything loaded`; its first request's verify window never finished and serve restarted the engine (#267). A second was stopped by me while it filled the cache. (A third, right after a launch failure, is not counted.) | | 0.1.45.3 | UD-Q4_K_XL | mmap, `--batch 3` | 4096 | 5223 slots / 15.23 GiB | 30,746 MiB free. 3 starts served. In 1, the verify window never finished (#267). In 1, the engine stopped itself after 60 s without progress in the verify windows (#29, exit code 3221226505). 1 was stopped by me during start | | 0.1.45.3 | IQ3_S | registered arena | auto | 0 slots (`expert cache auto: 0.00 GiB free, 13127 MiB reserved ... -> 0 slots`) | 4 starts, none became ready (this thread's symptom) | | 0.1.45.3 | IQ3_S | mmap, `--batch 3` | auto | 11243 slots / 21.34 GiB (sized 22213 slots from `68.13 GiB free, 13127 MiB reserved`, then shrunk twice after `only 0 MiB free once the slots are written` and `only 276 MiB free ...`) | `the profile fill failed at pair 0: ExpertCache::fill_slot_blocking: unspecified launch failure`. A second start with the same args ended after the sizing line; outcome not recorded | | 0.1.45.3 | IQ3_S | mmap, `--batch 3` | 4096 | 5341 slots / 10.16 GiB | 3 starts. The first ended during the cache fill with no error and no request, and the next start replaced it 2 min later (outcome not recorded). The other two reached ready with 46,553 MiB free and served 2 and 49 requests | | 0.1.46.1 | IQ3_S | mmap, `--batch 3` | auto | sized 22251 slots from `68.22 GiB free`; no final size logged | rocBLAS init failed right after the sizing line, as in the 0.1.45.3 resident start above: `hipErrorFileNotFound` (`tensile_host.cpp`), then `'hipErrorLaunchFailure':719` (`rocblas_auxiliary.cpp:979`), then `rocBLAS error: Could not initialize Tensile host:` / `invalid unordered_map<K, T> key` | | 0.1.46.1 | IQ3_S | mmap | auto | sized 24576 slots from `83.01 GiB free` | the log ends at the sizing line; outcome not recorded | | 0.1.47 | IQ3_S | mmap | auto | 17667 slots / 33.63 GiB (sized 24576 slots from `83.00 GiB free, 700 MiB reserved`, then `only 0 MiB free once the slots are written ...; shrinking the expert cache` three times) | the app's test start failed: `the profile fill failed at pair 0: ExpertCache::fill_slot_blocking: unspecified launch failure` | | 0.1.47 | UD-Q4_K_XL | mmap | 4096 | 5223 slots / 15.23 GiB | the app's test start an hour later: ready, 45,891 MiB free, answered | | 0.1.46, 0.1.46.1 | UD-Q4_K_XL, IQ3_S | mmap, no `--batch` | 4096 | 5223 slots / 15.23 GiB, or 5341 slots / 10.16 GiB | 44,851–45,939 MiB free (61,743 MiB for IQ3_S). Served normally in every start, including multi-hour agent runs. The one exception is the `unspecified launch failure` after two cancelled reads (above) and the start right after it | **A new guess (untested):** page-locked host memory and the GPU's own allocations seem to draw on the same budget that Windows gives this integrated GPU. When the two together pass it, the next call that waits for the GPU fails with `unspecified launch failure`. - A RAM copy that is locked but not page-locked (the start where page-locking was refused) did not trigger it, even though the engine then reported `0 MiB of VRAM free`. - With `auto`, the engine sizes the cache from a free figure (68–83 GiB here) that turns out to be too high: twice it found `only 0 MiB free once the slots are written`, shrank the cache, and still failed. - `--expert-cache 9392`, the value the app wrote for this PC, gives the 34.93 GiB cache. I have not tried a value between 4096 and 9392. **Added 2026-10-22 (later): resident RAM mode starts without page-locking.** I test-started UD-Q4_K_XL on engine 0.1.47 in resident RAM mode with `STRATA_RESIDENT_PIN=0` and a small cache (`--resident-budget-gib 71 --expert-cache 4096`, plus the run config's `PAL_DISABLE_SDMA=1`). It ran in an isolated runtime, the way the app's updater test-starts an engine. It became ready and answered (one start; I have not run long prompts on it yet): ``` FileExpertSource: allocating 59.35 GiB pageable resident cache complement FileExpertSource: pageable resident cache complement ready: resident 59.35 GiB, pinned 0.00 GiB in 58 s strata generate: resident RAM mode: 59.35 GiB of experts in RAM (pageable), 5223 in the GPU cache; adaptive swaps exchange them with the GPU cache (no file reads) strata serve: 45159 MiB of VRAM free with everything loaded strata serve: prompt 53 tokens = 0 reused + 53 read in 5773 ms (9.2 tok/s), 1 generated in 207 ms (4.8 tok/s), drafts accepted 0 of 0, 1 checkpoints strata serve: resident RAM: 59.35 GiB of experts in RAM, 0 exchanged with the VRAM tier, 0 blob reads from the file ``` - The two attempts just before it failed before the engine's own start line. That failure was in the vision encoder, which is what serve starts first (`cudaMemGetInfo failed (unspecified launch failure)`). The engine then logged `cannot pin 644 MiB`. A control start with the mmap settings passed right after, and then this start passed. I do not know what broke the GPU for those two minutes, so I count those two attempts as no evidence either way. - This fits your Windows change in 0.2.1.2, which keeps the expert arena unregistered and held by the working-set lock (docs/STRIX_HALO.md). It also fits the UD-Q5_K_XL resident start above, whose page-locking the driver refused. So, as something to test rather than a request: on Windows Strix Halo, a pageable resident RAM copy (what `STRATA_RESIDENT_PIN=0` does) may be the safer default, once its speed has been measured against page-locked and mmap. - Not tested yet: UD-Q4_K_XL page-locked with the 4096 cache (the UD-Q5_K_XL rows cover page-locked with a 10 GiB cache); `STRATA_RESIDENT_PIN=0` with the 9392 cache; speed against mmap. - Two more data points, since docs/STRIX_HALO.md says nobody has run a Strix Halo on Windows yet. Everything in this comment is from Windows. dxdiag on this PC reports 334 MB of dedicated GPU memory (the adapter's registry size is the 512 MiB in Setup) and 104,159 MB of shared GPU memory. That is more than the "half the RAM" that STRIX_HALO.md says setup counts on Windows. --- _Investigated and drafted with Claude Code (log analysis and writing). The numbers and log lines come from the logs on my machine and were cross-checked against them._
Author
Owner

@400msstack commented on GitHub (Oct 28, 2026):

Update from the original reporter (Ryzen AI Max+ 395 / Radeon 8060S gfx1151, Windows 11, 128 GB, IQ3_S).

Engine 0.1.52 (updated via UPDATE.bat; installed from the signed update feed) starts and runs the full tools\strata_bench.py --long suite without STRATA_ARENA_PIN_GIB. All 24576 experts are in the GPU cache, with ~52.8 GiB of VRAM free after load (21.4 GiB free with STRATA_ARENA_PIN_GIB=16 on the same build). The log shows expert arena: NOT registered with the GPU driver (integrated GPU, UMA mode), which matches the double-subtraction explanation.

Bench (median, 3 runs): decode 44.5 tok/s without the pin, 47.0 with PIN=16 (ranges overlap); prefill 706 / 767 / 748 tok/s at 4K / 16K / 32K. Previously on 0.1.43: decode 35.2, prefill ~711-733.

So from my side this looks fixed on gfx1151/Windows. Happy to close it unless you'd like me to test anything else (e.g. STRATA_ARENA_PIN_GIB=0 to compare).

<!-- gh-comment-id:6468977683 --> @400msstack commented on GitHub (Oct 28, 2026): Update from the original reporter (Ryzen AI Max+ 395 / Radeon 8060S gfx1151, Windows 11, 128 GB, IQ3_S). Engine 0.1.52 (updated via UPDATE.bat; installed from the signed update feed) starts and runs the full `tools\strata_bench.py --long` suite **without** `STRATA_ARENA_PIN_GIB`. All 24576 experts are in the GPU cache, with ~52.8 GiB of VRAM free after load (21.4 GiB free with `STRATA_ARENA_PIN_GIB=16` on the same build). The log shows `expert arena: NOT registered with the GPU driver (integrated GPU, UMA mode)`, which matches the double-subtraction explanation. Bench (median, 3 runs): decode 44.5 tok/s without the pin, 47.0 with `PIN=16` (ranges overlap); prefill 706 / 767 / 748 tok/s at 4K / 16K / 32K. Previously on 0.1.43: decode 35.2, prefill ~711-733. So from my side this looks fixed on gfx1151/Windows. Happy to close it unless you'd like me to test anything else (e.g. `STRATA_ARENA_PIN_GIB=0` to compare).
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6659229883 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
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#803
No description provided.