[GH-ISSUE #3733] K-quant experts (UD-Q5_K_XL) x peer GPU tier: HIP 719 launch failures + no-progress hangs on 50K+ token prompts (gfx1100 primary + gfx1151 peer, 0.1.47-dual) #1563

Closed
opened 2026-11-04 01:52:16 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @bobgitmcgrath on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3733

Environment

  • Engine: strata-0.1.47-dual (built from source, v0.2.2-era tree; dual-arch gfx1100+gfx1151), served via serve/server.py
  • OS / kernel: Ubuntu, kernel 6.8.0-146-generic (x86_64)
  • hipBLASLt: 7.1.1+dfsg (per crash frame path)
  • GPUs: Radeon Pro W7800 48 GB (gfx1100) as primary + Radeon 8060S iGPU (gfx1151, Strix Halo) as --peer-device 1 (2 GiB VRAM carve-out; peer experts live in GTT / system RAM). Launch order --gpu 1,0 --peer-device 1 (KFD enumeration at the time).
  • System RAM: 121 GiB usable (128 GB unified board)
  • Model: Qwen3.8-Flash-Next UD-Q5_K_XL (Unsloth Dynamic, 6 shards, 158.3 GB). Pack built with tools/iq_pack.py (native_experts v4): gate/up Q5_K (type 13, early layers Q6_K type 14), down Q8_0 (type 8); 24,576 expert blobs, 91.6 GiB total.
  • Common flags: --expert-cache 16384 --prefill auto:8192 --spec 4 --spec-min-p 0.5 --mtp <mtp-pack> --max-context 229376 --kv int8 --kv-resident 32768 --resident-budget-gib 48 --conversation-cache-mib 8192 --vram-reserve-mib 1024 (deltas per row below)

Summary

K-quant expert weights (Q5_K/Q6_K/Q8_0) resident in the peer iGPU's GTT crash under 50K+-token prompts in every kernel path we could configure — peer compute, P2P-fetch + native grouped kernels, and the MMQ K-quant path. Three distinct failure signatures below. Two controls bracket the fault: the same engine + topology serves UD-IQ4_XS (IQ3_S/IQ4_NL expert dtypes) with the peer tier for 21+ hours clean including 173K-token prompts, and the same Q5 battery runs clean with the peer disabled (W7800-only). So it is neither the model nor the peer tier per se — it is the K-quant × peer-GTT combination.

Configuration matrix (52,878-token tool-calling probes; ~43K-token assembled system prompt per probe)

# Config Result
1 peer compute (default --peer-prefill-rows), --prefill auto:32768, budget 48 #29-class no-progress hang during the 52K prompt read (layer 29, "waiting for the GPU (attention, router)") ×2; plus HSA AqlQueue::Inactivate() assertion on a small request
2 peer compute, --prefill auto:8192, budget 48, --vram-reserve-mib 1024 52K read completes (256 s, ~206 tok/s; lend 1001/1001 uncovered, see #669); in decode: signature 1 below
3 peer memory-only (--peer-prefill-rows 0), prefill 8192, budget 48 4 probes clean (58–61 tok/s decode; 23–31 % of routed experts over PCIe per request); probe 5: signature 2 below
4 peer memory-only + STRATA_MMQ_KQ=1 probe 1 clean (70.5 tok/s — fastest Q5 decode measured); probe 2: signature 3 below
5 control — solo (no --peer-device), budget 48, prefill 8192 full 10-probe battery CLEAN, 0 engine stops (24–36 tok/s)
6 control — UD-IQ4_XS + peer (production, gu IQ3_S(21) / d IQ4_NL(20)) 21+ h clean, 0 hangs, 173K-token prompts, 76–87 tok/s

Signature 1 — peer compute: HIP 719 at peer finish (config 2)

[strata] reading the prompt: 52,873 of 52,878 tokens, 256 s so far     <- read completes
[strata] done: 29 tokens in 259 s (11.9 tok/s) (error, cancel=False)
[strata] 400 invalid request: the peer GPU's experts failed
Hip error: 'unspecified launch failure'(719) at .../hipblaslt-7.1.1+dfsg/library/src/amd_detail/hipblaslt.cpp:170
strata-0.1.47-dual: ./runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp:630: ... Inactivate(): Assertion `err == HSA_STATUS_SUCCESS && "Destroy queue failed."' failed.
[strata] the engine stopped unexpectedly (exit code -6)

Signature 2 — peer memory-only: HIP 719 in the primary's native grouped kernel (config 3)

--peer-prefill-rows 0 (peer computes nothing; its experts are fetched over PCIe into the primary's path). After 4 clean probes:

native_expert_grouped/swiglu: unspecified launch failure
[strata] thinking: 3 of budget 2048 tokens, 0.2 tok/s, 12 s
strata-0.1.47-dual: ./runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp:630: ... Inactivate(): Assertion `err == HSA_STATUS_SUCCESS && "Destroy queue failed."' failed.
[strata] the engine stopped unexpectedly (exit code -6)
[strata] done: 3 tokens in 22 s (0.1 tok/s) (error, cancel=False)

The launch failure is reported by the primary-side grouped expert/swiglu kernel while consuming K-quant weights resident in peer GTT (0 engine stops in the solo control with the same weights in page-locked system RAM).

Signature 3 — MMQ K-quant path: no-progress hang, aggressive paging, then fatal MES teardown (config 4)

STRATA_MMQ_KQ=1 (the owner default for UD-Q5/Q6 per the 0.1.44 setup defaults). Probe 2:

strata: memory: 60201 MiB resident, 68 MiB in swap, 9195 MiB RAM available; 24206 major page faults so far
[strata] the engine stopped unexpectedly (exit code -6). The engine stopped itself because it had stopped making progress - a hang it caught. Its log line: strata serve: no progress for 60 s during a request ... (issue #29)

Then, during the kill/teardown of the hung engine, the GPU left the bus and the machine needed a hard reboot:

amdgpu 0000:65:00.0: remove_all_kfd_queues_mes: Failed to remove queue
amdgpu 0000:65:00.0: MES might be in unrecoverable state
amdgpu 0000:65:00.0: failed to remove hardware queue from MES
amdgpu 0000:65:00.0: TransferTableSmu2Dram: ...
amdgpu 0000:65:00.0: device lost from bus!
amdgpu 0000:65:00.0: SMU: bus error for message: PrepareMp1ForUnload(46) response:0xFFFFFFFF

(The card re-enumerated fine after reboot; 24,206 major faults in ~4 minutes of MMQ decode suggests the MMQ path is paging heavily on HIP.)

  • #29 — the no-progress watchdog class (signatures 1–3 all end in engine stops; config 1 hangs mid-read with 32K chunks)
  • #669 — lend coverage: at budget 48 the lend line reads 1001 of 1001 lendable slots (100%) will read their experts from the pack; with --prefill auto:8192 the 52K read still completes (~206 tok/s); with auto:32768 it starves into #29 (config 1)
  • #2065 — VRAM-free warning: observed 282 MiB free before --vram-reserve-mib 1024; absent after
  • #3349 — gfx11 K-quant community evidence (RX 7900 XT, gfx1100). Our primary is gfx1100 and the peer is gfx1151; signatures 1–2 implicate the peer-resident weights rather than the primary's ISA alone (solo control is clean on the same primary)

Asks

  1. Stage peer-fetched K-quant weights locally before the grouped kernel (host bounce or VRAM copy), or verify remote-pointer support per dtype family — the IQ4_NL control shows the peer-GTT transport itself is sound.
  2. Harden the MMQ K-quant HIP path: the paging profile (24K major faults in minutes) and the fatal MES/device-lost teardown after a watchdog stop make STRATA_MMQ_KQ=1 unusable on this platform today.
  3. Until fixed: gate the peer tier by expert dtype family — a clear startup warning/refusal for K-quant experts on a peer device would beat 719s and bus-drop fatalities.
  4. Guidance: is there a supported configuration for UD-Q5/Q6-class packs on dual-GPU AMD (peer tier) at all? Happy to test it.

Reproducibility

Full configs for every matrix row, the pack, and the probe battery are preserved; exact flag deltas are listed above. We also have 30-s-interval audit series (meminfo incl. Shmem/Mlocked/Cached, per-card sysfs vram/gtt, engine VmRSS/VmLck/RssAnon/RssFile) across load → battery → restore for five windows, and complete engine logs for all three signatures. Happy to attach whatever helps.

Originally created by @bobgitmcgrath on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3733 ### Environment - **Engine:** `strata-0.1.47-dual` (built from source, v0.2.2-era tree; dual-arch gfx1100+gfx1151), served via `serve/server.py` - **OS / kernel:** Ubuntu, kernel 6.8.0-146-generic (x86_64) - **hipBLASLt:** 7.1.1+dfsg (per crash frame path) - **GPUs:** Radeon Pro W7800 48 GB (gfx1100) as primary + Radeon 8060S iGPU (gfx1151, Strix Halo) as `--peer-device 1` (2 GiB VRAM carve-out; peer experts live in GTT / system RAM). Launch order `--gpu 1,0 --peer-device 1` (KFD enumeration at the time). - **System RAM:** 121 GiB usable (128 GB unified board) - **Model:** Qwen3.8-Flash-Next **UD-Q5_K_XL** (Unsloth Dynamic, 6 shards, 158.3 GB). Pack built with `tools/iq_pack.py` (native_experts v4): gate/up Q5_K (type 13, early layers Q6_K type 14), down Q8_0 (type 8); 24,576 expert blobs, 91.6 GiB total. - **Common flags:** `--expert-cache 16384 --prefill auto:8192 --spec 4 --spec-min-p 0.5 --mtp <mtp-pack> --max-context 229376 --kv int8 --kv-resident 32768 --resident-budget-gib 48 --conversation-cache-mib 8192 --vram-reserve-mib 1024` (deltas per row below) ### Summary K-quant expert weights (Q5_K/Q6_K/Q8_0) resident in the peer iGPU's GTT crash under 50K+-token prompts **in every kernel path we could configure** — peer compute, P2P-fetch + native grouped kernels, and the MMQ K-quant path. Three distinct failure signatures below. Two controls bracket the fault: the **same engine + topology serves UD-IQ4_XS (IQ3_S/IQ4_NL expert dtypes) with the peer tier for 21+ hours clean** including 173K-token prompts, and the **same Q5 battery runs clean with the peer disabled** (W7800-only). So it is neither the model nor the peer tier per se — it is the K-quant × peer-GTT combination. ### Configuration matrix (52,878-token tool-calling probes; ~43K-token assembled system prompt per probe) | # | Config | Result | |---|--------|--------| | 1 | peer compute (default `--peer-prefill-rows`), `--prefill auto:32768`, budget 48 | #29-class no-progress hang **during** the 52K prompt read (layer 29, "waiting for the GPU (attention, router)") ×2; plus HSA `AqlQueue::Inactivate()` assertion on a small request | | 2 | peer compute, `--prefill auto:8192`, budget 48, `--vram-reserve-mib 1024` | 52K read **completes** (256 s, ~206 tok/s; lend 1001/1001 uncovered, see #669); in decode: **signature 1** below | | 3 | peer memory-only (`--peer-prefill-rows 0`), prefill 8192, budget 48 | 4 probes clean (58–61 tok/s decode; 23–31 % of routed experts over PCIe per request); probe 5: **signature 2** below | | 4 | peer memory-only + `STRATA_MMQ_KQ=1` | probe 1 clean (70.5 tok/s — fastest Q5 decode measured); probe 2: **signature 3** below | | 5 | **control** — solo (no `--peer-device`), budget 48, prefill 8192 | full 10-probe battery **CLEAN**, 0 engine stops (24–36 tok/s) | | 6 | **control** — UD-IQ4_XS + peer (production, gu IQ3_S(21) / d IQ4_NL(20)) | **21+ h clean**, 0 hangs, 173K-token prompts, 76–87 tok/s | ### Signature 1 — peer compute: HIP 719 at peer finish (config 2) ``` [strata] reading the prompt: 52,873 of 52,878 tokens, 256 s so far <- read completes [strata] done: 29 tokens in 259 s (11.9 tok/s) (error, cancel=False) [strata] 400 invalid request: the peer GPU's experts failed Hip error: 'unspecified launch failure'(719) at .../hipblaslt-7.1.1+dfsg/library/src/amd_detail/hipblaslt.cpp:170 strata-0.1.47-dual: ./runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp:630: ... Inactivate(): Assertion `err == HSA_STATUS_SUCCESS && "Destroy queue failed."' failed. [strata] the engine stopped unexpectedly (exit code -6) ``` ### Signature 2 — peer memory-only: HIP 719 in the primary's native grouped kernel (config 3) `--peer-prefill-rows 0` (peer computes nothing; its experts are fetched over PCIe into the primary's path). After 4 clean probes: ``` native_expert_grouped/swiglu: unspecified launch failure [strata] thinking: 3 of budget 2048 tokens, 0.2 tok/s, 12 s strata-0.1.47-dual: ./runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp:630: ... Inactivate(): Assertion `err == HSA_STATUS_SUCCESS && "Destroy queue failed."' failed. [strata] the engine stopped unexpectedly (exit code -6) [strata] done: 3 tokens in 22 s (0.1 tok/s) (error, cancel=False) ``` The launch failure is reported by the **primary-side** grouped expert/swiglu kernel while consuming K-quant weights resident in peer GTT (0 engine stops in the solo control with the same weights in page-locked system RAM). ### Signature 3 — MMQ K-quant path: no-progress hang, aggressive paging, then fatal MES teardown (config 4) `STRATA_MMQ_KQ=1` (the owner default for UD-Q5/Q6 per the 0.1.44 setup defaults). Probe 2: ``` strata: memory: 60201 MiB resident, 68 MiB in swap, 9195 MiB RAM available; 24206 major page faults so far [strata] the engine stopped unexpectedly (exit code -6). The engine stopped itself because it had stopped making progress - a hang it caught. Its log line: strata serve: no progress for 60 s during a request ... (issue #29) ``` Then, during the kill/teardown of the hung engine, the GPU left the bus and the machine needed a hard reboot: ``` amdgpu 0000:65:00.0: remove_all_kfd_queues_mes: Failed to remove queue amdgpu 0000:65:00.0: MES might be in unrecoverable state amdgpu 0000:65:00.0: failed to remove hardware queue from MES amdgpu 0000:65:00.0: TransferTableSmu2Dram: ... amdgpu 0000:65:00.0: device lost from bus! amdgpu 0000:65:00.0: SMU: bus error for message: PrepareMp1ForUnload(46) response:0xFFFFFFFF ``` (The card re-enumerated fine after reboot; 24,206 major faults in ~4 minutes of MMQ decode suggests the MMQ path is paging heavily on HIP.) ### Related - #29 — the no-progress watchdog class (signatures 1–3 all end in engine stops; config 1 hangs mid-read with 32K chunks) - #669 — lend coverage: at budget 48 the lend line reads `1001 of 1001 lendable slots (100%) will read their experts from the pack`; with `--prefill auto:8192` the 52K read still completes (~206 tok/s); with `auto:32768` it starves into #29 (config 1) - #2065 — VRAM-free warning: observed 282 MiB free before `--vram-reserve-mib 1024`; absent after - #3349 — gfx11 K-quant community evidence (RX 7900 XT, gfx1100). Our primary is gfx1100 and the peer is gfx1151; signatures 1–2 implicate the peer-resident weights rather than the primary's ISA alone (solo control is clean on the same primary) ### Asks 1. **Stage peer-fetched K-quant weights locally before the grouped kernel** (host bounce or VRAM copy), or verify remote-pointer support per dtype family — the IQ4_NL control shows the peer-GTT transport itself is sound. 2. **Harden the MMQ K-quant HIP path**: the paging profile (24K major faults in minutes) and the fatal MES/device-lost teardown after a watchdog stop make `STRATA_MMQ_KQ=1` unusable on this platform today. 3. **Until fixed: gate the peer tier by expert dtype family** — a clear startup warning/refusal for K-quant experts on a peer device would beat 719s and bus-drop fatalities. 4. **Guidance**: is there a supported configuration for UD-Q5/Q6-class packs on dual-GPU AMD (peer tier) at all? Happy to test it. ### Reproducibility Full configs for every matrix row, the pack, and the probe battery are preserved; exact flag deltas are listed above. We also have 30-s-interval audit series (meminfo incl. Shmem/Mlocked/Cached, per-card sysfs vram/gtt, engine VmRSS/VmLck/RssAnon/RssFile) across load → battery → restore for five windows, and complete engine logs for all three signatures. Happy to attach whatever helps.
bsakaguchi 2026-11-04 01:52:16 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 22, 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:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

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

<!-- gh-comment-id:6342846968 --> @github-actions[bot] commented on GitHub (Oct 22, 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: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". 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](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Oct 28, 2026):

Closing this issue because it still did not follow the format after 5 days. That is housekeeping, not a rejection.

To bring it back: fix the title (area prefix) and the missing parts, then comment /reopen. A check runs and reopens it, or tells you what is still missing. See CONTRIBUTING.md.

<!-- gh-comment-id:6466832733 --> @github-actions[bot] commented on GitHub (Oct 28, 2026): Closing this issue because it still did not follow the format after 5 days. That is housekeeping, not a rejection. To bring it back: fix the title (area prefix) and the missing parts, then comment `/reopen`. A check runs and reopens it, or tells you what is still missing. See [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
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#1563
No description provided.