mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2013] [Bug]: Windows Strix Halo (gfx1151): prebuilt HIP engine never becomes ready, sticky "unspecified launch failure" during serve init #803
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#803
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @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,--checkreported 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 withtools/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):
strata-iq3_s.json)prefill: setting the FP16 activation image failed: unspecified launch failureSTRATA_GFX1151_DEFAULTS=0STRATA_HIPBLASLT_TUNINGremoved,--prefill 2048,STRATA_PF_STEP_SYNC=1strata serve: cannot create the refill streamSTRATA_GFX1151_DEFAULTS=0+AMD_SERIALIZE_KERNEL=3+HIP_LAUNCH_BLOCKING=1strata serve: verify: stream create failedSo 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/cudaStreamCreateWithFlagsthat should not fail on its own). WithAMD_SERIALIZE_KERNEL=3+HIP_LAUNCH_BLOCKING=1the log still did not name a faulting kernel.Two things that look odd to me:
cudaHostRegister PORTABLE okfor the ~47 GiB expert arena. Maybe the registered host memory is being charged against the carve-out on Windows?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 at7695859, 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 GBEngine log
Run 1 (setup's config), from
session is upon:Run 3 (no tuning table,
--prefill 2048), tail:Run 4 (run 3 + defaults off + serialized launches), tail:
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.
@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):
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.
@400msstack commented on GitHub (Oct 13, 2026):
Thanks a lot, your diagnosis was right:
STRATA_ARENA_PIN_GIB=16alone fixes it. The engine becomes ready and answers correctly. Each test below was a fresh start with my other settings unchanged (setup'sstrata-iq3_s.json), nothing else using the GPU, andSTRATA_TRACE=1added to every run.Results
STRATA_ARENA_PIN_GIB=1621047 MiB of VRAM free with everything loadedSTRATA_HIPBLASLT_TUNINGremoved (--prefill autokept)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 2048needed less memorySTRATA_TRACE=1--expert-cache 0 --max-context 8192 --prefill 1024cannot create the refill streamandHip error: 'unspecified launch failure'(719) at .../hipblaslt/library/src/amd_detail/hipblaslt.cpp:468. Note: the log still showsexpert cache 2385 slots, 4.58 GiBwith--expert-cache 0The memory accounting: pinning costs about 2x on Windows
From the
STRATA_TRACE=1lines, the free VRAM drop across the arena registration is about twice the pinned size:STRATA_ARENA_PIN_GIB=16(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 MemoryDedicated / Shared Usage, sampled by script):STRATA_ARENA_PIN_GIB=16cudaHostRegisterlineSo 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)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.pycrashes on a Japanese Windows (cp932 locale) inproject_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 withPYTHONUTF8=1.STRATA_ARENA_PIN_GIBvalues yet; happy to sweep a few (8 / 24 / 32) or try aSTRATA_TRACE=2build 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.
@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
@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:
--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 ((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.--resident-budget-gib). mmap mode works.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'sargs_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 atprefill: 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. With49it 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 loggedexpert arena: cudaHostRegister PORTABLE okand thenexpert cache auto: 0.00 GiB free, 13127 MiB reserved ... -> 0 slots. I switched to--mmap-expertsafter 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 asEngineDied: the engine exited before it was readyafter 145–185 s ofstill 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)
1 start failed earlier, in rocBLAS init (0.1.45.3,
71,--batch 3). It loggedhipErrorFileNotFound(tensile_host.cpp), thenhipErrorLaunchFailure(rocblas_auxiliary.cpp), thenrocBLAS error: Could not initialize Tensile host:followed byinvalid unordered_map<K, T> key. serve reportedexit 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 atcopied 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.55andnative 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.--expert-cache 9392 --batch 3) became ready with0 MiB of VRAM free with everything loaded. serve restarted it when its first request's verify window never finished (#267).--expert-cache 4096 --batch 3and 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 oneunspecified launch failurein 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;(tried later: see the addition at the end)STRATA_RESIDENT_PIN=0;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.--expert-cacheprefill: copy stream(serve:EngineDied: the engine exited before it was ready)page-locking refused (out of memory), locked via working-set minimum + VirtualLock, pinned 0.00 GiB0 MiB of VRAM free with everything loaded; served 15 requests, up to 65,870 tokens--batch 30 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.)--batch 3expert cache auto: 0.00 GiB free, 13127 MiB reserved ... -> 0 slots)--batch 368.13 GiB free, 13127 MiB reserved, then shrunk twice afteronly 0 MiB free once the slots are writtenandonly 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--batch 3--batch 368.22 GiB free; no final size loggedhipErrorFileNotFound(tensile_host.cpp), then'hipErrorLaunchFailure':719(rocblas_auxiliary.cpp:979), thenrocBLAS error: Could not initialize Tensile host:/invalid unordered_map<K, T> key83.01 GiB free83.00 GiB free, 700 MiB reserved, thenonly 0 MiB free once the slots are written ...; shrinking the expert cachethree times)the profile fill failed at pair 0: ExpertCache::fill_slot_blocking: unspecified launch failure--batchunspecified launch failureafter two cancelled reads (above) and the start right after itA 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.0 MiB of VRAM free.auto, the engine sizes the cache from a free figure (68–83 GiB here) that turns out to be too high: twice it foundonly 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=0and a small cache (--resident-budget-gib 71 --expert-cache 4096, plus the run config'sPAL_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):cudaMemGetInfo failed (unspecified launch failure)). The engine then loggedcannot 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.STRATA_RESIDENT_PIN=0does) may be the safer default, once its speed has been measured against page-locked and mmap.STRATA_RESIDENT_PIN=0with the 9392 cache; speed against mmap.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.
@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 --longsuite withoutSTRATA_ARENA_PIN_GIB. All 24576 experts are in the GPU cache, with ~52.8 GiB of VRAM free after load (21.4 GiB free withSTRATA_ARENA_PIN_GIB=16on the same build). The log showsexpert 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=0to compare).@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:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.