mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#2063
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 @mkw432 on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4566
Problem
On gfx1031 the engine intermittently self-stops with the #29 watchdog during "reading the prompt (batched)". 7 stalls across 7 configs so far, at layers 14/19/31/35/38/44/46 and chunks 0/512/1024/3484/12613. Same command sometimes passes several runs first.
Environment
c87773ed5df25479)--prefill 512,--resident-budget-gib 16,STRATA_RESIDENT_PIN=1,--spec 2(0 is rejected for this pack)Reproduce
Start with those args and run a two-task agent loop (m4 then m13 from a local hard set), or any growing prompt chain. Usually within ~10 min the watchdog fires at a random layer.
Expected
Requests complete.
Actual
The engine exits -6 after 60 s without progress:
The pool is idle, no disk waits, RAM is fine (min ~10.5 GiB available, ~1.1 GiB free VRAM during runs), and there are no amdgpu/kfd/ttm messages. With
STRATA_VERIFY_TRACE=1the handshake was clean up to the last window (CPU served every doorbell) and then went silent; GPU breadcrumbs stopped atlayer 48 group 0: hc-read0. After the waits are released the GPU finishes (4.3 s / 13.6 s / 0 ms). The work completes; the host just doesn't see it. Same family as #649, but in prefill rather than verify.Configs tried
--no-prefill-borrowSTRATA_HIP_ADAPT_KERNEL_COPY=1(line confirmed in log)STRATA_VERIFY_COHERENT=1with swaps on--adapt-swaps 0--no-prefill-borrow --adapt-swaps 0Long context
A 29K-token decode hits
verify: timed out at layer 23(the 20 s deadline).STRATA_VERIFY_COHERENT=1fixes that: 48K and 62K prompts pass (~210 s / ~280 s prefill, 5/5 needle retrieval). It doesn't touch the prefill stall.Untested
GFXOFF (debugfs needs root here),
HSA_ENABLE_SDMA=0,STRATA_DOORBELL_STORE=1. The mmap/file-tier arm stalled once as well, so the workaround is only validated in resident mode.Reproduction status
Reproduced locally, many runs. Full logs and
STRATA_VERIFY_TRACEblocks available; happy to run an instrumented build.@github-actions[bot] commented on GitHub (Oct 29, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Oct 29, 2026):
Thanks, this follows the format now.
@mkw432 commented on GitHub (Nov 3, 2026):
Reproduction and a working mitigation on 0.1.56 (v0.2.10), same card.
Setup. RX 6700 XT 12 GB (gfx1031), Ryzen 5 5600X, 31 GiB RAM, Ubuntu, in-kernel amdgpu. Engine 0.1.56, built from source for gfx1031 (
setup.py --updatecompiled rather than installing the rx6000 package).Model. Qwen3.8-Flash-Next Coder IQ1_M (pack + both source shards),
--prefill 512 --max-context 32768 --kv int8 --spec 2 --vram-reserve-mib 1536 --resident-budget-gib 16 --mmap-experts.Failure. Short requests are fine (chat decode 22.4 tok/s; 4K and 16K prompts ~267 tok/s). A 700-token answer at temperature 0 stopped at ~146 generated tokens with:
engine exit −15; the server restarted the engine on the next request.
Mitigation. With
--adapt-swaps 0andSTRATA_VERIFY_COHERENT=1the same request completed: 343 tokens in 13.48 s (25.4 tok/s), drafts accepted 69/92, correct output. So the pair that stabilised prefill here also covers the verify-timeout variant on Coder/IQ1_M on this box.Also measured, same box.
STRATA_DENSE_MMQ=1on the qwen35moe path (Qwen3.6-35B-A3B UD-Q4_K_XL, 24K context,--mtp 2): +14.8% at 16K prefill (606.6 → 696.2 tok/s), +0.5% at 4K (710.4 → 713.8), decode flat (41.3 tok/s), agent decode −4.7%. Outputs diverged from the non-MMQ arm on all three fixed greedy prompts, so I am leaving it off outside prompt-heavy batch work.@shaoyanji commented on GitHub (Nov 4, 2026):
New data point for this thread, from a different gfx10 part (gfx1010, RX 5700 8 GB, local HIP build, engine 0.1.46.2, binary 2026-10-21). Full report in #5229; the part that belongs here:
It is deterministic at this prompt size, not random. Qwen3.8-Flash-Next Coder IQ1_M (58.4 GB, same pack family as your comment), plain flags (
--prefill auto --max-context 32768 --kv int8 --spec 4 --mtp, default threads, no--adapt-swaps), one request at a time. Three agent-suite runs, three stall sites:Always
layer 1 of the prompt chunk, always ~9k. 4,096-token prompts never stall (166.8 tok/s); turns of 609 to 9,029 tokens never stall; IQ2_XS and IQ3_XXS stall the same way at turn 0, so it is not the pack. The startup line on this box isstrata serve: prompt chunk auto: 3840 tokens, a 351-slot ring— 9,076 is not a multiple of 3,840, so it is not simply the second chunk boundary.Two questions for your mitigation: does
--adapt-swaps 0help when the stall is inside a batched prompt chunk read rather than the verify path (yours also neededSTRATA_VERIFY_COHERENT=1after averify: timed out at layer 37)? And is this on your list for a build after 0.1.56? I am ten point releases back and will retest 0.1.56 on this card either way.