mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4229] [Engine] HIP, two gfx1201 cards, layer split: batched prompt read stops at a chunk boundary, stage-2 card busy until reset; on this host triggered by a -50 mV offset, clean at -25 mV and 0 mV #1857
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#1857
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 @eysie101 on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4229
Version 1.3, 2026-10-26
On a two-card HIP layer split, 11 of 23 fresh prompt reads of several chunks stopped at a chunk boundary; 0 of 2 on one card; 0 of 158 reads within one chunk (Q5_K_M, Q4_K_S).
Related: #541, #579, #697, #3297, #3443, #3680.
Environment
amdgpu, q35 11.0,cpu: host, 16 vCPU, 155648 MiB, both cardshostpci: pcie=1,driver=vfio01:00.0(ASUS 1043:0626),02:00.0(Gigabyte 1458:242f)power1_cap210 W,OD_VDDGFX_OFFSET-50 mV,power_dpm_force_performance_levelmanual;amdgpu: Overdrive is enabledhip-runtime-amd 7.2.4-1; engine libraries_rocm_sdk_libraries_gfx120X_all296b59d, HIP build; 0.1.50 (source6270e2d9) in 2 runslayer_split: auto: layers 0 to 23 on device 0, 24 to 47 and the head on device 1serve/server.py,/v1/chat/completions,parallel: 2, one request at a time unless statedEngine arguments (Q5)
--pack/--native/--ple-gguf--expert-profiledata/expert-profile.bin--max-context--kv/--kv-resident--expert-cache--vram-reserve-mib/--vram-reserve-later-mib--prefill--pool-workers--resident-budget-gib--ple-io--spec/--spec-min-p--suffix-draft/--lookup-chain/--mtp-max-t--adapt-every/--adapt-async--mtp/--batch-mtp/--batch-groups--pipeline-windowsSTRATA_ROUTE_TAIL_SKIP=0,STRATA_RESIDENT_HEADROOM_GIB=12Engine start lines (Q5, two cards)
pcie_frac 0.38(default 0.55)R4 hit path ON - resident experts are computed on the GPUObservation
reading the prompt (batched): waiting for the GPU (attention, router) at layer L of the prompt chunk from token N; L = 26 (N = 57,344, no watchdog, 852 s) and L = 40 (N = 24,576, watchdog); both layers lie in stage 2's range 24 to 47.finishing the chunk from token N(N = 24,576 and 40,960).gpu_busy_percent100, 74 to 106 W, sclk 3554 to 3577 MHz; its VRAM use does not change.hipStreamSynchronize; one host thread inkfd_wait_on_events; three insched_yield.0 layers served since the last finished step,expert pool: epoch 6892, batch epoch 6892: 27 of 27 jobs claimed, 27 done; 8 of 8 workers parked, 8 sleeping,host idle for 158097 ms,threads waiting on the disk (state D): 0 of 97.STRATA_WATCHDOG_S=120the engine exits -6:no progress for 120 s during a request; without it the run does not end.HW Exception by GPU node-1 (Agent handle: ...) reason :GPU Hangbefore the exit.MES(0) failed to respond to msg=REMOVE_QUEUE,msg=SUSPEND,failed to suspend gangs from MES,MES might be in unrecoverable state, issue a GPU reset,Failed to evict queue 8,GPU mode1 reset,VRAM is lost due to GPU reset!,GPU reset(N) succeeded!,[drm] device wedged, but no recovery needed.GPUVMor page fault line for the whole boot (7 resets).pcieportline between 2026-10-24 and 2026-10-26.gpu_busy_percent100, 80 W, 3570 MHz with no process holding/dev/kfdor/dev/dri/renderD*;cat /sys/kernel/debug/dri/0000:02:00.0/amdgpu_gpu_recoverended it.rocgdb -p <pid>(rocm-gdb 7.2.4) on the stopped engine:fatal error: failed to suspend os_queue_id 9,amd-dbgapi: could not attach to process; guest kernel:amdgpu: PID <pid> not debug enabled for op 6; the card reset within 2 s.Occurrence
STRATA_PF_STEP_SYNC=1HIP_VISIBLE_DEVICES=1,0gpuabsent)No effect on the stop
STRATA_PF_STEP_SYNC=1: 1 stop in 3 runs.HSA_USERPTR_FOR_PAGED_MEM=0withGPU_PINNED_MIN_XFER_SIZE=1048576: 1 stop in 1 run.HIP_VISIBLE_DEVICES=1,0: the stop follows the stage-2 role.src/prefill/prefill.cpp@296b59dafterhand_buf_ ^= 1;, gated bySTRATA_PF_STAGE_SERIAL=1): 1 stop in 1 run.Source (0.1.44.1 @
296b59d)doorbell_wait_kernelandcopy_rows_from_mapped_afterspin on host memory;src/prefill/prefill.cppcalls neither.src/prefill/prefill.cppuses the CPU pool only withSTRATA_PREFILL_CPU_SHARE; it was not set.Separate observation
Logs
engine-log-q5-L1-chunk8192.txt (last 80 of 129 lines)
server-out-q5-L1-chunk8192.txt (last 40 of 94 lines)
kernel-log-q5-L1-teardown.txt (last 12 of 12 lines)
engine-log-q5-X1-stage-serial.txt (last 80 of 123 lines)
server-out-q5-X1-stage-serial.txt (last 40 of 45 lines)
kernel-log-q5-X1-teardown.txt (last 12 of 12 lines)
@github-actions[bot] commented on GitHub (Oct 26, 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 26, 2026):
Thanks, this follows the format now.
@eysie101 commented on GitHub (Oct 26, 2026):
Undervolt test, same host and engine as above,
power1_cap210 W on both cards throughout,--prefill auto(8192), production binary 0.1.44.1 @296b59d, four fresh 64K prompts per run (28 chunk boundaries):OD_VDDGFX_OFFSETEach completed read: 1,185 to 1,750 tok/s; decode 40 to 46 tok/s. No GPU reset during these runs; the kernel log stays clean. The stage-serialisation patch above and the two env workarounds were not used in these runs.
The MES / mode-1 reset signature appeared only at -50 mV. Probability that 56 boundaries pass at the -50 mV rate is below 1 %.
At -25 mV the Q6_K cases that failed at -50 mV also passed: the 30-turn session (hang at turn 4 before; now 31 of 31, no non-finite retry) and chunk 32768 (two #879 non-finite failures before; now 13 of 13, decode 31 to 38 tok/s instead of 9 to 12).
@eysie101 commented on GitHub (Oct 26, 2026):
Closing from the reporter's side: on this host the stops were caused by the -50 mV
OD_VDDGFX_OFFSET, not by the engine. With -25 mV (and 0 mV) the same two-card layer split completed every multi-chunk read, the 30-turn sessions and the Q6_K chunk-32768 case that produced non-finite logits before. The measurements stay above for anyone who undervolts a gfx1201 pair (see also #3680). If a note in the troubleshooting docs is wanted, the voltage table above is the source.@sdroege commented on GitHub (Oct 31, 2026):
Single-card confirmation on a Radeon AI PRO R9700 (gfx1201), engine 0.1.54, UD-Q4_K_XL, no layer split.
At
OD_VDDGFX_OFFSET -60 mV, batched prompt reads of 16K and 32K stopped at a chunk boundary:no progress for 60 s ... waiting for the GPU (attention, router) at layer L of the prompt chunk from token N, thenMES(0) failed to respond to msg=REMOVE_QUEUE, MODE1 reset, VRAM lost. 6 of 7 runs. Independent of--prefillchunk (8192/16384),--vram-reserve-mib(576/2048), the gfx12 speed switches and--spec(2/4/8).At -25 mV and 0 mV: two full runs each (16K and 32K, 3 requests per stage) with no hang, no non-finite logits and no GPU reset.
Devcoredump of the hang:
[gfxhub] Page fault observed, faulty address0x0, GCVM protection fault status 0, MES ringRptr 0x0 Wptr 0x3c800, gfx ring idle (CP_RB_RPTR = CP_RB_WPTR = 0x200). So this reproduces your -50 mV finding on a single card without a layer split, with a different model and engine version.