mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1898] Windows + Radeon AI PRO R9700 (gfx1201): first request always stalls in the first verify window ("reading the prompt (verify windows), from token 0"), 503 after 60 s #745
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#745
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 @newosj9050 on GitHub (Oct 10, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1898
Setup
strata-device --list-devices:device 0: AMD Radeon AI PRO R9700, arch gfx1201, wave32.--selftestpasses (plan FITS)--mmap-experts--spec 4 --spec-min-p 0.5 --mtp ... --prefill 512 --kv int8 --expert-cache auto --max-context 8192 --adapt-every 0 --pcie-frac 0 --vram-reserve-mib 3072 --no-prefill-borrowWhat happens
The server starts and
/healthreportsloaded: true. Every first chat request stalls for 60 s, the watchdog (#29) stops the engine, and the client gets 503. About 12 times in a row, always at the same place:After the waits are released the GPU finishes in 2 ms (56 ms in another run), so the GPU itself is not hung. It looks like the host and the GPU do not see each other's flag writes in the first verify window. This resembles #697 (Windows, gfx1201,
GPU rang 0, fixed by a fence after the doorbell store in 0.1.40), but here the GPU rang once (rang 1), the engine is 0.1.41, and the stall is in the verify-window path.What I tried (none helped; the stall is identical each time)
--no-prefill-borrowGPU_PINNED_MIN_XFER_SIZE=1048576in the serverenv(#920)--mtp,--spec 2(stall report:4 tokens at position 0,GPU rang 1, same)--expert-cacheand reserve sizes--speccannot be removed: the native pack requires--spec >= 2.Question
Is the first verify window known to need a fence / volatile store on gfx1201 Windows (see the
STRATA_DOORBELL_STOREnote in #1705)? Is there an env switch to run the first window the old way? As far as I can tell this is the first R9700 + Windows report. I have thread-stack dumps (strata-stall-*.dmp, about 490 KB each) and full logs, and I am happy to test builds.Related: #697 #267 #29 #613 #579
@newosj9050 commented on GitHub (Oct 11, 2026):
Update: likely root cause is the HIP graph capture path on Windows (llama.cpp on the same PC crashes unless graphs are disabled)
Same machine (R9700, gfx1201, Windows 11 10.0.26300). I updated the AMD driver to 26.9.2 (32.0.32015.2008) and it still stalls, so it is not the VRAM-eviction bug from ggml-org/llama.cpp#23443.
I built llama.cpp (2026-10-10) with ROCm 10.1 for gfx1201. With GPU offload,
llama-serveralways dies with0xC0000374(heap corruption) at warmup or on the first request.test-backend-ops -b ROCm0passes thousands of ops including MUL_MAT, so it is not an individual kernel.GGML_CUDA_DISABLE_GRAPHS=1fixes it: 3B and 26B models both run on the GPU. These did not help:DEBUG_HIP_GRAPH_CLASSIC_PATH=1,DEBUG_HIP_GRAPH_SEGMENT_SCHEDULING=0,GGML_CUDA_NO_PINNED, building without OpenMP.Strata's log stalls right after
strata verify: captured the 6-token window, and #1785 also fails at verify-window capture. So I suspect the same graph capture/replay path. Is there (or could there be) a switch to run the verify window without graph capture on HIP/Windows? I could not find one instrata.exeor the docs. I'm happy to test builds.@newosj9050 commented on GitHub (Oct 11, 2026):
Minimal repro for the HIP graph problem (no llama.cpp / Strata involved)
A 40-line HIP program crashes on this machine (Windows 11 26300, driver 32.0.32015.2008 = 26.9.2, R9700 gfx1201; also on the second GPU), so the Strata stall above is probably the same runtime bug: launching a captured graph several times corrupts the heap inside
hipStreamSynchronize(PAL path,palvirtual.cppinAMD_LOG_LEVEL=3).Build:
clang++ -x hip graph.hip --offload-arch=gfx1201 -lamdhip64(ROCm 10.1 SDK from the AMD wheels), rungraph.exe 100.Result: exit code
0xC0000374(heap corruption) or0xC0000005, random per run. 3 runs each: 5 launches 1/3 crash, 100 launches 1/3, 200 launches 2/3. With 1 launch it always passes. The first variant (10 kernels per graph, 100 launches without syncing in between) crashes almost every time.Same result with amdhip64 10.0.3679, 10.0.3684 (ROCm 10.1) and the nightly 7.14.0a20260612 runtime. Not fixed by
DEBUG_CLR_GRAPH_PACKET_CAPTURE=0,HIP_FORCE_DEV_KERNARG=0/1,ROC_USE_FGS_KERNARG=0,HIP_GRAPH_MEM_POOL=0,AMD_SERIALIZE_KERNEL=3, holding VRAM, or running a GPU load beside it. Without graphs (llama.cpp withGGML_CUDA_DISABLE_GRAPHS=1) everything works but slowly.So the question for Strata: is there a way to run the verify window without a captured graph (an env switch or build flag)? Happy to test builds.
@newosj9050 commented on GitHub (Oct 11, 2026):
Reported the minimal HIP repro to AMD: https://github.com/ROCm/rocm-systems/issues/13246
Also tried
HSA_TOOLS_DISABLE_REGISTER=1andHIP_LAUNCH_BLOCKING=1on the repro: no effect.@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. 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.
@newosj9050 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to answer. I retested on 0.2.0-beta and the stall is gone, so this can stay closed.
Setup: Windows 11 Pro, Radeon AI PRO R9700 (gfx1201, 32 GB), repo at tag
v0.2.0-beta(3d1fb480), enginestrata-engine-0.1.45.3-windows-x86_64-hip-rx9070(SHA256 matches the release's SHA256SUMS.txt), same settings as in the report (--mmap-experts --spec 4 --prefill 512 --kv int8 ..., Qwen3.8-Flash-Next IQ2_XS).Result:
Side note for other users on Windows:
START-HERE.bat --updateprintedNo ready-made AMD engine for v0.1.45.3 (HTTP Error 404)because it asks for astrata-windows-x86_64-hip.zip, while the release asset isstrata-engine-0.1.45.3-windows-x86_64-hip-rx9070.tar.gz. I unpacked that file intoengine\by hand.