mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3884] [Engine] HIP 719 "adaptive swap copy failed" during inference — UD-Q4_K_XL on R9700 (gfx1201), Windows #1655
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#1655
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 @sma777 on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3884
Problem
Engine
0.1.48-windows-x86_64-hip-rx9070on a Radeon AI PRO R9700 (gfx1201), Windows 11: UD-Q4_K_XL (native pack, 256K ctx) loads, serves early requests normally, then inference dies — every engine start I tried (4/4 on 2026-10-23):The engine then tears down (repeated
hipModuleUnload failed: unspecified launch failure) and the launcher restarts it. For reference: the same box, engine build and flags run the IQ3_S native pack at 262144 ctx for hours without any fault, so this looks specific to the Q4_K_XL expert traffic on this card.Environment
--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <rt-pack> --max-context 262144 --kv int8 --kv-resident 32768 --vision --vram-reserve-mib 2048Relevant startup detail from the same log: the 71.7 GiB expert arena cannot be fully registered on Windows —
cudaHostRegisterof the whole arena fails (invalid argument), only 44 slices (~65 GiB) end up pinned, on 4 KB pages. The fault above then lands on an unpinned swap slot (pinned 0).Reproduce
strata launch --preset "UD-Q4_K_XL 256K"(args above), Windows 11, R9700.adaptive swap copy failed→ HIP 719 → engine teardown. Expected: sustained serving or a clean error.Question
Is the failed whole-arena
cudaHostRegister(and the resulting partially-pinned arena) known to interact with adaptive swap/refill on Windows/HIP and produce 719? Should UD-Q4_K_XL on a 32 GB card + 96 GB RAM instead run with--mmap-experts --resident-budget-gib 48? Happy to bisect one knob at a time and attach full sanitized logs.@Niko1221 commented on GitHub (Oct 26, 2026):
Thank you, the pinned/unpinned detail is useful. The 'adaptive swap copy failed' line is where the engine notices the fault; error 719 is a kernel that failed before it, so the first error in the log matters more than this line. Please attach the engine log from the start up to the first error (with --verify trace if you can) and try, one at a time: --adapt-swaps 0, --spec 0, and --mmap-experts --resident-budget-gib 48 as you suggested (that one is a reasonable setting for a 32 GB card with 96 GB RAM). Say which of them stops the crash and we can narrow it. A test on the next release is also worth doing: it changes the gfx12 decode defaults.