mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5134] RDNA3 (gfx1100 / RX 7900 XTX): prefill aborts with 'the draft layer''s K/V: an illegal memory access was encountered' after very long-context requests (MTP on) #2401
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#2401
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 @mcfooog on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5134
Note: this box runs the RDNA3 fork (nicejunjie/Strata-rdna3, gfx1100 HIP build) that tracks this project; the crash is in the shared draft-layer K/V prefill path, so I am reporting here in case it is a general engine issue. Happy to file against the fork instead if you prefer.
Summary
On an AMD Radeon RX 7900 XTX (gfx1100) running the RDNA3 fork, the engine crashes during a
prefill step with:
It reproduces after serving very-long-context requests (~50k–72k prompt tokens) while MTP
speculative decoding is enabled. The wrapper detects the dead engine and restarts it, which
reloads ~46.8 GiB of weights (~4 min), during which
/healthreportsloaded: falseand theservice is unavailable. Observed 3 crashes in one day (~4 h and ~7.5 h apart).
Environment
Linux ai-server 6.8.0-147-generic #147-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 24 11:33:16 UTC 2026 x86_640x744c, 24 GB VRAM6.4.4-129/models/ai/Strata-rdna3/build-hip/strata(HIP/RDNA3 build)309f0c8f8cef010f62746f80caf677c68e7141f9(git describe→ no tags; labeled "0.1.43 + RDNA3 kernels")iq3_s, 2 GGUF shards)/health,/v1/chat/completionsEngine launch args (from the restart banner in the log)
Relevant to the crash: MTP speculative decoding is ON (
--mtp,--spec 4,--mtp-q4 all,--mtp-window 4096), context is huge (--max-context 262144), VRAM is nearly full (see~1.5–1.6 GiB freemessages below).Symptoms / reproduction
The failure is consistent: serve a request with a very large prompt (tens of thousands of
tokens), then the next prefill aborts. Three occurrences on 2026-11-03:
Approximate reproduction: process one very long-context completion (e.g. 50k–72k token prompt),
then issue another request whose prefill touches the MTP draft-layer K/V → illegal memory access.
Engine log evidence
Note the fully-accepted speculative drafts (
200 of 200,212 of 212,260 of 260) immediatelybefore the failing prefill, and that the fault is reported specifically for the draft layer's
K/V.
Kernel / amdgpu log evidence (matching the crash)
Also during/after the reload, VRAM is extremely tight:
Analysis / hypothesis
(draft) path, not the main model prefill.
KV-streaming (
18–27 GiB read from RAM) and near-total VRAM occupancy (~1.5 GB free).page fault ... GCVM_L2_PROTECTION_FAULT_STATUS+sq_intr type 2, priv 1indicates the GPUexecuted an access outside the mapped VA range for the draft-layer K/V allocations — consistent
with a draft-layer K/V buffer being under-sized / stale / freed-and-reused when context grows
past a boundary, or with an insufficient
--vram-reserve-mibat these sizes.--max-context, so a longprefill writes past it.
after an ultra-long request.
--vram-reserve-mib 1792) is too small when the conversation cache is at--conversation-cache-mib 16384with 8 slots and long KV residency.Workarounds currently in place
Restart=on-failure+ outerserver.pyrelaunch) keeps the boxself-healing, but each crash = ~4–5 min of
loaded:falsedowntime.--spec) and/or capping context as a stability workaround(loses speculative-decoding speed).
STRATA_MTP_HIP_PRIO/STRATA_MTP_STAGE0paths if theyaddress draft-layer K/V lifetime.
Request
--vram-reserve-mib,--mtp-window,--spec,--conversation-cache-slots) without fully disabling MTP?--max-context(with an assertion instead of a GPU page fault)?Happy to provide the full engine log and
dmesgon request.@github-actions[bot] commented on GitHub (Nov 3, 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