mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #541] AMD/HIP (R9700, engine 0.1.36): batched prompt read stalls at a repeatable token; STRATA_PLE_BATCH=0 avoids it #255
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#255
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 @icodebot on GitHub (Oct 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/541
Summary
On AMD (HIP, Radeon AI PRO R9700, gfx1201, Linux) engine 0.1.36 stalls while reading long prompts in the batched path; the 60 s watchdog (#29) catches it and restarts the engine. The same 223K-token prompt stalled twice at exactly the same position. With
STRATA_PLE_BATCH=0(the workaround from #224) the same prompt was read end to end.Possibly the same family as #217 / #251 / #224, but on AMD/HIP and on a newer engine than those fixes.
Environment
36fa455, engine 0.1.36, backendhipcoder-iq1_m),--prefill auto(8192-token chunks),--max-context 262144,--kv int8,--kv-resident 32768,--expert-cache auto(all 12288 experts resident in VRAM), MTP draft head onWhat happened
Five stalls in one log, all in the batched prompt read:
Workaround that worked
Restarted the server with
STRATA_PLE_BATCH=0(checked it reached the engine via/proc/<pid>/environ). The same compaction prompt then completed:Prompt speed with the workaround (~600-635 tok/s) was about the same as before it (~630 tok/s on the earlier attempts). One success after two failures at the same spot; I have not run it more times.
The full log (
strata-coder-iq1_m.log, including the stall reports) is available if useful.@Niko1221 commented on GitHub (Oct 3, 2026):
Thanks for the log. This looks like the hang fixed in 0.1.38 (#382): on gfx1201 with KV streaming (
--kv-resident), the draft layer's prompt pass could queue a graph launch and copies per group, and that queue sometimes never finished. It runs at the end of each batched chunk, which matches "finishing the chunk from token ...". 0.1.38 runs that pass per group on HIP.STRATA_PLE_BATCH=0most likely only changed the timing enough to avoid it.Could you try 0.1.38 without
STRATA_PLE_BATCH=0on the same compaction prompt? If it still stalls,STRATA_MTP_PREFILL_SYNC=1on 0.1.37 would tell us whether it's the same path. Please also post the stall report lines the watchdog writes just before it stops the engine.@Niko1221 commented on GitHub (Oct 7, 2026):
This is the same stall as #579 (a batched prompt on gfx1201 that stops at the same token), so I am closing it as a duplicate and keeping the discussion there. 0.1.38 fixed the hang class and 0.1.40 added a fence on the doorbell ring (#697). If it still stalls on 0.1.40, please say so on #579 with THP off and STRATA_ARENA_PIN_GIB=0, and once with STRATA_PLE_BATCH=0.