[GH-ISSUE #3884] [Engine] HIP 719 "adaptive swap copy failed" during inference — UD-Q4_K_XL on R9700 (gfx1201), Windows #1655

Closed
opened 2026-11-04 01:52:57 +07:00 by bsakaguchi · 1 comment
Owner

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-rx9070 on 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):

strata serve: adaptive swap copy failed (layer 47, slot 1112, pinned 0): unspecified launch failure
Hip error: 'unspecified launch failure'(719) at .../hipblaslt/library/src/amd_detail/hipblaslt.cpp:468

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

Engine 0.1.48-windows-x86_64-hip-rx9070
OS Windows 11 Pro, 10.0.26300
GPU / driver R9700 32 GB (gfx1201); AMD 26.10.1 (32.0.32015)
CPU / RAM Ryzen 9 9950X3D, 96 GB DDR5
Model Qwen3.8-Flash-Next UD-Q4_K_XL, native 4-shard pack, shipped expert-profile.bin
Args --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 2048

Relevant startup detail from the same log: the 71.7 GiB expert arena cannot be fully registered on Windows — cudaHostRegister of 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

  1. strata launch --preset "UD-Q4_K_XL 256K" (args above), Windows 11, R9700.
  2. Use it for normal sustained requests.
  3. Within minutes: 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.

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-rx9070` on 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): ``` strata serve: adaptive swap copy failed (layer 47, slot 1112, pinned 0): unspecified launch failure Hip error: 'unspecified launch failure'(719) at .../hipblaslt/library/src/amd_detail/hipblaslt.cpp:468 ``` 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 | | | |---|---| | Engine | 0.1.48-windows-x86_64-hip-rx9070 | | OS | Windows 11 Pro, 10.0.26300 | | GPU / driver | R9700 32 GB (gfx1201); AMD 26.10.1 (32.0.32015) | | CPU / RAM | Ryzen 9 9950X3D, 96 GB DDR5 | | Model | Qwen3.8-Flash-Next UD-Q4_K_XL, native 4-shard pack, shipped expert-profile.bin | | Args | `--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 2048` | Relevant startup detail from the same log: the 71.7 GiB expert arena cannot be fully registered on Windows — `cudaHostRegister` of 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 1. `strata launch --preset "UD-Q4_K_XL 256K"` (args above), Windows 11, R9700. 2. Use it for normal sustained requests. 3. Within minutes: `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.
Author
Owner

@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.

<!-- gh-comment-id:6423252626 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1655
No description provided.