mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3177] v0.1.45 HIP/gfx1100: verify timeout during ~54K-token request with MTP enabled (single RX 7900 XTX) #1279
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#1279
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 @peterhon168 on GitHub (Oct 19, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3177
Summary
On a single Radeon RX 7900 XTX, Strata v0.1.45 (Linux HIP) serves a short MTP request successfully, but a long agent request of about 54,316 input tokens stalls shortly after decode starts. The request eventually returns HTTP 503 and the engine exits with code -15. The backend reports a native verification timeout at layer 18. This appears related to the long-context HIP verify watchdog reported in #2449, though this case uses v0.1.45 and only one GPU.
Environment
--spec 2--prefill auto:32768HSA_USERPTR_FOR_PAGED_MEM=0was already set (the workaround discussed in #1705).Observed behavior
The engine is then observed to stop with exit code -15. The client sees the engine-stopped error on its next request.
Expected behavior
The request should finish or fail with a recoverable error without terminating the inference engine. A watchdog should not misclassify a completed GPU operation as an unrecoverable verify failure.
Control / limitations
With MTP disabled, short requests pass, and one earlier long Pi agent call completed. This was not a strict A/B reproduction with identical prompt and load, so I cannot yet conclude that MTP is the sole cause. The short MTP success shows that enabling MTP itself does not immediately fail. No private prompts, local paths, addresses, or unredacted logs are included here.
Could you advise whether this is the same verify-wait issue as #2449, and whether there is a fix or a specific diagnostic trace that would distinguish a HIP watchdog problem from an MTP/long-context interaction?
@faf-net commented on GitHub (Oct 19, 2026):
A data point from a second single RX 7900 XTX (gfx1100), Linux HIP: I tried to reproduce this with your settings and could not. 6 of 6 long agent requests finished, no verify timeout, no engine exit.
Setup
gfx1100-hipblaslt-100200enabledrt--spec 2 --spec-min-p 0.5 --prefill auto:32768 --max-context 262144 --kv int8 --expert-cache auto --pool-workers 9(no--expert-resident; expert cache auto → 7,420 slots, 14.07 GiB; "598 MiB of VRAM free with everything loaded"; verify window up to 4 tokens)HSA_USERPTR_FOR_PAGED_MEMnot setRequest: one multi-turn agent conversation, 5 tools offered, 18
read_filecalls whose results are Strata's ownserve/server.py, then "write the review now". 55,019 prompt tokens,max_tokens 2500, temperature 0.6,tool_choice: "none"(without it the model answered with another tool call after ~200 tokens, so decode never got far). Each request starts with a unique session tag, so no prefix reuse.v0.1.45(source build at the tag)v0.1.45v0.1.45v0.1.45, MTP head removed296b59d(0.1.44.1)296b59d(0.1.44.1)timed out at layer/Unrecoverable native verificationin the engine logs: 0. Our day-to-day logs since 2026-10-15 (IQ3_XXS,--spec 4, MTP, prompts up to 248K, about 430 KB of log) contain none either.So on this box neither MTP nor the long agent prompt alone triggers it on 0.1.45. The differences to your setup that are left: ROCm 7.2.4 vs TheRock 7.10, kernel 6.8 vs 6.18, your expert resident cache of 36 GiB, the PCIe link (x4 here), and the content and length of the real agent session (your stall came after ~444 tokens; here every run decoded 2,500). If it helps, I can rerun with a specific diagnostic build or env var.
Scripts and per-run JSON: https://github.com/faf-net/ugreen-idx6011-egpu-llm (folder
messen/,r3177.py).@Raboo commented on GitHub (Oct 21, 2026):
I'm not sure, but I might have hit the same problem, but earlier, already in the thinking phase of "Write a flappy bird game in a single html", 50 seconds in..
Running Strata v0.2.1 in a docker container (ghcr.io/niko1221/strata:latest-rocm-gfx110x).
Also I can tell you that this AMD RX 7900 XT was running much slower than my 8 year old Nvidia RTX 2080 Ti, which is weird since VRAM is almost double and VRAM bandwidth almost triple.
Let me know if my issue is not related and I'll create a new issue.
/data/state/strata/runtime/launch-docker.server.log:
/data/state/strata/launch/docker.engine.log:
container logs:
@faf-net commented on GitHub (Oct 21, 2026):
Not the maintainer, but a data point from another gfx1100 (RX 7900 XTX, Linux HIP, 0.2.1): I have not seen this verify timeout in any run since 0.2.1, with
--vram-reserve-mib 832. Two things in your log that differ from mine:--batch 2takes 1.72 GiB from the expert cache (58.8 % hit rate here). In the same0.2.1-rocm-gfx110ximage,PARALLEL=1gave me +8 % decode (58.9 -> 63.7 tok/s), andSTRATA_HIPBLASLT_TABLE=on+23 % / +60 % on 4K / 16K prompts.Which CPU is it? The engine planned 13 workers on every core but the host's.
@Raboo commented on GitHub (Oct 21, 2026):
@faf-net
How can i set
--vram-reserve-mibvia container env?I didn't even realize i had
--batch 2, just defaulted at that from the docker container i guess, I suppose the envPARALLELcontrols that argument?I currently have these envs for my compose file.
@Raboo commented on GitHub (Oct 21, 2026):
Even tuning fails for me.
Tuning result: failed. Your current settings could not be measured: the worker refused the request (503): b'{"error": {"type": "server_error", "message": "the engine stopped unexpectedly (exit code -6); the next request restarts it"}}' The standard settings run.@faf-net commented on GitHub (Oct 21, 2026):
STRATA_SETtakes engine flags as well asSTRATA_*variables, and underscores are fine:vram_reserve_mib=1024becomes--vram-reserve-mib 1024(split_settinginstrata_cli/launch/settings.py, control 0.1.47). So add it to your line:Yes, the entrypoint passes
PARALLELtostrata launch --parallel, which is where--batch 2came from;PARALLEL: '1'turns it off.STRATA_HIPBLASLT_TABLE: Truealso works (onandtrueboth enable it).On the tuning failure: exit code -6 is an abort inside the engine. The tuner also tries reserves down to 256 MiB, so with 256K context on a 20 GB card my guess is that one of its candidates ran out of VRAM, but that is only a guess. The end of
/data/state/strata/launch/docker.engine.logfrom that run would show it. I would setTUNE: skipand keep the reserve set by hand. If the engine still stops, tryCONTEXT: '131072'once to see whether it is memory. The0.2.2-rocm-gfx110ximage is also worth a try; it runs cleanly here on the XTX.@Raboo commented on GitHub (Oct 22, 2026):
It still ran quick tuning with
TUNE: skipand of course crashed.I updated the launch json and changed to skip manually.
Now I just get a restart loop instead.
@faf-net commented on GitHub (Oct 22, 2026):
The
TUNE: skipadvice was mine, so here is why it didn't work: in the 0.2.2 entrypoint,TUNE=skipadds no--tuneflag, and the saved presetdockerstill carries"tune": "quick"from your first start. Because that tuning never finished, every start tunes again. Editing the preset was the right fix;PRESET: docker2would also do it. @Niko1221: passing--tune skipthrough whenTUNE=skipis set would fix this.On the loop:
strata launchwaits a fixed 600 s and the engine stayed in "starting" the whole time, so it looks stuck, not slow (the same image loads IQ3_XXS/256K here in about 15 s). The end of/data/state/strata/launch/docker.engine.logshould show where it stops. Setrestart: "no"while you look.@vletu-ghub commented on GitHub (Oct 26, 2026):
A/B on one box: the verify timeout follows the ROCm 10.1 build, not the prompt
Same symptom as the report:
verify: timed out at layer N; its GPU waits were released and the GPU finished (#267)followed by the engine stopping with exit code -15. On my box it reproduces with the 0.1.51 engine built against system ROCm 10.1, and does not reproduce with the same engine built against the 7.10 wheels — through a ~6-hour agent session with eight cold compaction/truncation reads.Box and config (unchanged between the two builds)
--resident-budget-gib 46 --pcie-frac 0 --max-context 262144 --kv int8 --spec 4 --spec-min-p 0.5 --mtp .../mtp/rt --vram-reserve-mib 832 --vision(vision CPU),HSA_USERPTR_FOR_PAGED_MEM=0,STRATA_SCORES_THREAD=1.GPU_TARGETS=gfx1100,STRATA_PREFILL_MMQ=ON.Build A — ROCm 10.1 (
/opt/rocmcore-10.1)gfx1100-hipblaslt-100401(43 rows).Build B — ROCm 7.10 wheels (TheRock 7.10.0a20251120)
gfx1100-hipblaslt-100200(26 rows).verify: timed outline in the file is Build A's last line before I restarted on Build B.Questions
@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.