[GH-ISSUE #3021] [Bug]: gfx1100 2x RX 7900 XT layer split + --resident-experts (0.1.45,Q2_0):16K–100K prompt prefill stalls (watchdog #29), GPU reset / device lost #1210

Closed
opened 2026-11-04 01:49:23 +07:00 by bsakaguchi · 11 comments
Owner

Originally created by @Wuqiyang312 on GitHub (Oct 18, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3021

What happened

Running Qwen3.8-Flash-Next Q2_0 on two RX 7900 XT cards with --resident-experts and a layer split. Short prompts work; every long prompt I tried hangs during prompt prefill (16K, 40K and 100K tokens). Two outcomes:

  1. The prompt watchdog fires and the engine stops itself:
    no progress for 60 s ... waiting for the GPU (attention, router) at layer N of the prompt chunk from token M (issue #29).
  2. The kernel then tries to reset the GPU and fails: MES failed to respond ... -> GPU reset begin! -> device lost from bus! -> GPU reset end with ret = -19 / GPU Recovery Failed: -19. Both cards can end up in this state; only a host reboot recovers them.

The same model and engine on one card are stable at 128K, including a 100K-token prompt.

Strata version, GPU, OS

  • Engine 0.1.45 (HIP backend)
  • 2x AMD Radeon RX 7900 XT (Navi 31, gfx1100, 20 GB each); an RTX 4060 Ti is present but not used by Strata
  • Debian 13, kernel 6.12.113+deb13-amd64, ROCm 7.1.1, HIP 7.1.52802
  • Container: rocm/pytorch:rocm10.1.0_ubuntu24.04_py3.12_pytorch_release_2.14.0
  • CPU/RAM: Ryzen 5 7500F, 30 GiB RAM, 178 GiB swap
  • Model: Qwen3.8-Flash-Next Q2_0 (62 GB model + 38 GB expert pack + 6.5 GB MTP), --resident-experts

Exact flags (conservative run that still failed)

--serve --pack <.../packs/q2_0> --native <...Q2_0-00001-of-00002.gguf>
--ple-gguf <...Q2_0-00002-of-00002.gguf>
--expert-profile <.../data/expert-profile.bin> --expert-cache auto
--prefill 4096 --pcie-frac 0 --spec 4 --spec-min-p 0.5 --mtp <.../mtp/rt>
--max-context 65536 --vram-reserve-mib 1024 --kv int8 --resident-experts
--layer-split auto

Config: "gpu": [0, 1], "layer_split": "auto", "backend": "hip",
"STRATA_RESIDENT_PIN": "0", "HSA_USERPTR_FOR_PAGED_MEM": "0".
The engine started with layers 0-24 on CUDA0 and 25-47 on CUDA1; the two caches
held 11606 and 10550 experts; 6.65 GiB were resident in RAM (pageable); 798 MiB
(CUDA0) and 846 MiB (CUDA1) of VRAM were free.

Two earlier runs used the same setup without the conservative flags:
--prefill auto, no --pcie-frac, no --vram-reserve-mib, --max-context 131072.
The first of those had 21894 cached experts (11503 + 10391, ~99.7% of the routed
mass), 10.00 GiB resident, and 474/522 MiB free.

Reproduction

  1. Start the server with the config above.
  2. Send a short prompt: it answers normally.
  3. Send a prompt of ~16K tokens (the conservative run) or ~40K/100K (the 128K runs).
  4. At some point during prefill the engine stops making progress. After 60 s the
    watchdog aborts it; in the 128K runs the kernel then fails to reset the GPU.

I used generated filler text ("the " * N) with a short question at the end, sent
through /v1/chat/completions; nothing else was running on the box.

Logs

Full engine log and server log are available (63 KB strata-q2_0.log, 2 KB
server.out); the key lines are below. dmesg timestamps are UTC.

Conservative run (64K, 16K-token prompt):

strata serve: no progress for 60 s during a request (reading the prompt (batched):
waiting for the GPU (attention, router) at layer 29 of the prompt chunk from token 0)
- stopping the engine so the server starts it again (issue #29)

128K run, 40K-token prompt (memlock raised to unlimited):

strata serve: no progress for 60 s during a request (reading the prompt (batched):
waiting for the GPU (attention, router) at layer 12 of the prompt chunk from token 16384)
- stopping the engine so the server starts it again (issue #29)

Kernel, 128K run with a 100K-token prompt:

amdgpu: init_user_pages: Failed to get user pages: -1   (846 times at engine start)
[gfxhub] page fault (src_id:0 ring:24 vmid:8 pasid:126)
  in process strata pid ... thread strata pid ...
  in page starting at address 0x00007fcb300be000 from client 10
GCVM_L2_PROTECTION_FAULT_STATUS:0x00801031
  Faulty UTCL2 client ID: TCP (0x8)
  PERMISSION_FAULTS: 0x3
MES failed to respond to msg=SUSPEND
failed to suspend all gangs
MES might be in unrecoverable state, issue a GPU reset
GPU reset begin!
device lost from bus!
GPU reset end with ret = -19
GPU Recovery Failed: -19

The engine printed the matching userspace error:

Memory access fault by GPU node-1 ... on address 0x7fcb300be000.
Reason: Page not present or supervisor privilege.

Kernel, 128K run, 40K-token prompt (after RLIMIT_MEMLOCK was raised to
unlimited; init_user_pages still failed 1814 times at start):

SMU: response:0xFFFFFFFF ... message:TransferTableSmu2Dram?
Failed to export SMU metrics table!
MES failed to respond to msg=REMOVE_QUEUE
failed to remove hardware queue from MES, doorbell=0x1008
MES might be in unrecoverable state, issue a GPU reset
GPU reset begin! / device lost from bus!   (14 reset + device-lost pairs)

What I tried / ruled out

  • P2P: rocm-smi --showtopoaccess reports GPU0 -> GPU1 = False; RDNA3
    consumer cards do not expose P2P here. The cards are behind a Broadcom
    PEX880xx PCIe Gen4 switch sharing one x16 uplink, so card-to-card traffic
    also has to go through the host. The engine's link probe reports
    CUDA0 link -1.0 GB/s -> miss cost x1.00 (same for CUDA1).
  • memlock: raised the server process to RLIMIT_MEMLOCK=unlimited; the
    watchdog/GPU failure persisted and init_user_pages kept failing.
  • PCIe pressure: --pcie-frac 0 (no PCIe expert fetches) did not help.
  • Prefill chunk: --prefill 4096 did not help; the stall moved from
    layer 12/token 16384 to layer 29/token 0.
  • VRAM pressure: --vram-reserve-mib 1024 left 798/846 MiB free; still hung.
  • Host-page reclaim workaround: HSA_USERPTR_FOR_PAGED_MEM=0 (as in #1705)
    did not help on this machine.

Single-GPU baseline (same model, same engine)

  • 128K context, one card: a 100,078-token prompt is accepted and answered
    correctly; prefill 92.3 s (1084 tok/s); decode 69.7-72.8 tok/s; a repeat of
    the same prompt hits the prompt cache (100,073 tokens reused, 0.96 s).
  • Short chat: ~49.8 tok/s end to end.

So the Q2_0 pack, tokenizer, MTP, 128K context and the single-GPU path are fine.

  • #1705 (closed): gfx1100 prefill "no progress" from host-page reclaim;
    HSA_USERPTR_FOR_PAGED_MEM=0 fixed it there. In a comment, HackityAnn reports
    the same class on 2x RX 9070 XT with --resident-experts + layer split where
    HSA did not help, but GPU_PINNED_MIN_XFER_SIZE=1048576 did.
  • #1407 (closed): gfx1200 2x RX 9060 XT layer split prompt stalls (watchdog #29).
    A comment traces it to GFXOFF + SDMA adaptive expert swaps and reports
    STRATA_HIP_ADAPT_KERNEL_COPY=1 and disabling GFXOFF as fixes.
  • #2637 (closed): gfx1100 2x 7900 XTX, --pipeline-windows 2 + MTP, exits on an
    18K prompt; fixed by STRATA_MTP_STAGE0=1. My config does not use
    --pipeline-windows, but the hardware and prompt length are close.

Question

Is this the same class as #1705 / #1407? Before I keep experimenting, would you
recommend trying GPU_PINNED_MIN_XFER_SIZE=1048576,
STRATA_HIP_ADAPT_KERNEL_COPY=1, and/or disabling GFXOFF on 0.1.45? I can run
them one at a time and report back with the engine log and dmesg for each arm.

I am currently back on one card at 128K (stable). I can attach the full
strata-q2_0.log, server.out and the dmesg excerpts from the three runs.

Originally created by @Wuqiyang312 on GitHub (Oct 18, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3021 ### What happened Running Qwen3.8-Flash-Next Q2_0 on two RX 7900 XT cards with `--resident-experts` and a layer split. Short prompts work; **every long prompt I tried hangs during prompt prefill** (16K, 40K and 100K tokens). Two outcomes: 1. The prompt watchdog fires and the engine stops itself: `no progress for 60 s ... waiting for the GPU (attention, router) at layer N of the prompt chunk from token M` (issue #29). 2. The kernel then tries to reset the GPU and fails: `MES failed to respond ...` -> `GPU reset begin!` -> `device lost from bus!` -> `GPU reset end with ret = -19` / `GPU Recovery Failed: -19`. Both cards can end up in this state; only a host reboot recovers them. The same model and engine on **one** card are stable at 128K, including a 100K-token prompt. ### Strata version, GPU, OS - Engine **0.1.45** (HIP backend) - 2x AMD Radeon RX 7900 XT (Navi 31, gfx1100, 20 GB each); an RTX 4060 Ti is present but not used by Strata - Debian 13, kernel **6.12.113+deb13-amd64**, ROCm **7.1.1**, HIP 7.1.52802 - Container: `rocm/pytorch:rocm10.1.0_ubuntu24.04_py3.12_pytorch_release_2.14.0` - CPU/RAM: Ryzen 5 7500F, 30 GiB RAM, 178 GiB swap - Model: Qwen3.8-Flash-Next Q2_0 (62 GB model + 38 GB expert pack + 6.5 GB MTP), `--resident-experts` ### Exact flags (conservative run that still failed) ```text --serve --pack <.../packs/q2_0> --native <...Q2_0-00001-of-00002.gguf> --ple-gguf <...Q2_0-00002-of-00002.gguf> --expert-profile <.../data/expert-profile.bin> --expert-cache auto --prefill 4096 --pcie-frac 0 --spec 4 --spec-min-p 0.5 --mtp <.../mtp/rt> --max-context 65536 --vram-reserve-mib 1024 --kv int8 --resident-experts --layer-split auto ``` Config: `"gpu": [0, 1]`, `"layer_split": "auto"`, `"backend": "hip"`, `"STRATA_RESIDENT_PIN": "0"`, `"HSA_USERPTR_FOR_PAGED_MEM": "0"`. The engine started with layers 0-24 on CUDA0 and 25-47 on CUDA1; the two caches held 11606 and 10550 experts; 6.65 GiB were resident in RAM (pageable); 798 MiB (CUDA0) and 846 MiB (CUDA1) of VRAM were free. Two earlier runs used the same setup without the conservative flags: `--prefill auto`, no `--pcie-frac`, no `--vram-reserve-mib`, `--max-context 131072`. The first of those had 21894 cached experts (11503 + 10391, ~99.7% of the routed mass), 10.00 GiB resident, and 474/522 MiB free. ### Reproduction 1. Start the server with the config above. 2. Send a short prompt: it answers normally. 3. Send a prompt of ~16K tokens (the conservative run) or ~40K/100K (the 128K runs). 4. At some point during prefill the engine stops making progress. After 60 s the watchdog aborts it; in the 128K runs the kernel then fails to reset the GPU. I used generated filler text (`"the " * N`) with a short question at the end, sent through `/v1/chat/completions`; nothing else was running on the box. ### Logs Full engine log and server log are available (63 KB `strata-q2_0.log`, 2 KB `server.out`); the key lines are below. dmesg timestamps are UTC. **Conservative run (64K, 16K-token prompt):** ```text strata serve: no progress for 60 s during a request (reading the prompt (batched): waiting for the GPU (attention, router) at layer 29 of the prompt chunk from token 0) - stopping the engine so the server starts it again (issue #29) ``` **128K run, 40K-token prompt (memlock raised to unlimited):** ```text strata serve: no progress for 60 s during a request (reading the prompt (batched): waiting for the GPU (attention, router) at layer 12 of the prompt chunk from token 16384) - stopping the engine so the server starts it again (issue #29) ``` **Kernel, 128K run with a 100K-token prompt:** ```text amdgpu: init_user_pages: Failed to get user pages: -1 (846 times at engine start) [gfxhub] page fault (src_id:0 ring:24 vmid:8 pasid:126) in process strata pid ... thread strata pid ... in page starting at address 0x00007fcb300be000 from client 10 GCVM_L2_PROTECTION_FAULT_STATUS:0x00801031 Faulty UTCL2 client ID: TCP (0x8) PERMISSION_FAULTS: 0x3 MES failed to respond to msg=SUSPEND failed to suspend all gangs MES might be in unrecoverable state, issue a GPU reset GPU reset begin! device lost from bus! GPU reset end with ret = -19 GPU Recovery Failed: -19 ``` The engine printed the matching userspace error: ```text Memory access fault by GPU node-1 ... on address 0x7fcb300be000. Reason: Page not present or supervisor privilege. ``` **Kernel, 128K run, 40K-token prompt** (after `RLIMIT_MEMLOCK` was raised to `unlimited`; `init_user_pages` still failed 1814 times at start): ```text SMU: response:0xFFFFFFFF ... message:TransferTableSmu2Dram? Failed to export SMU metrics table! MES failed to respond to msg=REMOVE_QUEUE failed to remove hardware queue from MES, doorbell=0x1008 MES might be in unrecoverable state, issue a GPU reset GPU reset begin! / device lost from bus! (14 reset + device-lost pairs) ``` ### What I tried / ruled out - **P2P:** `rocm-smi --showtopoaccess` reports `GPU0 -> GPU1 = False`; RDNA3 consumer cards do not expose P2P here. The cards are behind a Broadcom PEX880xx PCIe Gen4 switch sharing one x16 uplink, so card-to-card traffic also has to go through the host. The engine's link probe reports `CUDA0 link -1.0 GB/s -> miss cost x1.00` (same for CUDA1). - **memlock:** raised the server process to `RLIMIT_MEMLOCK=unlimited`; the watchdog/GPU failure persisted and `init_user_pages` kept failing. - **PCIe pressure:** `--pcie-frac 0` (no PCIe expert fetches) did not help. - **Prefill chunk:** `--prefill 4096` did not help; the stall moved from layer 12/token 16384 to layer 29/token 0. - **VRAM pressure:** `--vram-reserve-mib 1024` left 798/846 MiB free; still hung. - **Host-page reclaim workaround:** `HSA_USERPTR_FOR_PAGED_MEM=0` (as in #1705) did not help on this machine. ### Single-GPU baseline (same model, same engine) - 128K context, one card: a 100,078-token prompt is accepted and answered correctly; prefill 92.3 s (1084 tok/s); decode 69.7-72.8 tok/s; a repeat of the same prompt hits the prompt cache (100,073 tokens reused, 0.96 s). - Short chat: ~49.8 tok/s end to end. So the Q2_0 pack, tokenizer, MTP, 128K context and the single-GPU path are fine. ### Related issues - #1705 (closed): gfx1100 prefill "no progress" from host-page reclaim; `HSA_USERPTR_FOR_PAGED_MEM=0` fixed it there. In a comment, HackityAnn reports the same class on 2x RX 9070 XT with `--resident-experts` + layer split where HSA did not help, but **`GPU_PINNED_MIN_XFER_SIZE=1048576` did**. - #1407 (closed): gfx1200 2x RX 9060 XT layer split prompt stalls (watchdog #29). A comment traces it to GFXOFF + SDMA adaptive expert swaps and reports **`STRATA_HIP_ADAPT_KERNEL_COPY=1`** and **disabling GFXOFF** as fixes. - #2637 (closed): gfx1100 2x 7900 XTX, `--pipeline-windows 2` + MTP, exits on an 18K prompt; fixed by `STRATA_MTP_STAGE0=1`. My config does not use `--pipeline-windows`, but the hardware and prompt length are close. ### Question Is this the same class as #1705 / #1407? Before I keep experimenting, would you recommend trying `GPU_PINNED_MIN_XFER_SIZE=1048576`, `STRATA_HIP_ADAPT_KERNEL_COPY=1`, and/or disabling GFXOFF on 0.1.45? I can run them one at a time and report back with the engine log and dmesg for each arm. I am currently back on one card at 128K (stable). I can attach the full `strata-q2_0.log`, `server.out` and the dmesg excerpts from the three runs.
Author
Owner

@yzguy128 commented on GitHub (Oct 18, 2026):

Had the same behavior from Strata 1.45 with 2x 7900xtx. Try adding these environment variables to your .json launch parameters:

I'm ~48 hrs without a watchdog timeout now with these flags. The big change was the HSA_ENABLE_SMDA:0. This dropped my prefill speed, but I'll take it for stability. I also increased the watchdog timers, but this likely wasn't the fix. Increased timers just mean a longer timeout period. Not a fix.

"HSA_USERPTR_FOR_PAGED_MEM": "0",
"STRATA_ROUTE_TAIL_SKIP": "7",
"STRATA_PREFILL_CPU_SHARE": "auto",
"STRATA_PF_FUSED": "1",
"STRATA_PF_GEMM": "1",
"STRATA_PF_SWITCH_MIN_T": "4096",
"STRATA_MTP_STAGE0": "1",
"HSA_ENABLE_SDMA": "0",
"STRATA_WATCHDOG_S": "180",
"STRATA_ENGINE_STALL_S": "240"

I'm on Ubuntu 24.04. The other "lever" I'm testing was to change LACT idle clock behavior. I had it on Autoclocks before. Now it's on 3D_Window. Higher idle power but I had a card stalling coming out of Auto because it was streaming experts from RAM (non-resident in VRAM).

<!-- gh-comment-id:6252163952 --> @yzguy128 commented on GitHub (Oct 18, 2026): Had the same behavior from Strata 1.45 with 2x 7900xtx. Try adding these environment variables to your .json launch parameters: I'm ~48 hrs without a watchdog timeout now with these flags. The big change was the HSA_ENABLE_SMDA:0. This dropped my prefill speed, but I'll take it for stability. I also increased the watchdog timers, but this likely wasn't the fix. Increased timers just mean a longer timeout period. Not a fix. "HSA_USERPTR_FOR_PAGED_MEM": "0", "STRATA_ROUTE_TAIL_SKIP": "7", "STRATA_PREFILL_CPU_SHARE": "auto", "STRATA_PF_FUSED": "1", "STRATA_PF_GEMM": "1", "STRATA_PF_SWITCH_MIN_T": "4096", "STRATA_MTP_STAGE0": "1", "HSA_ENABLE_SDMA": "0", "STRATA_WATCHDOG_S": "180", "STRATA_ENGINE_STALL_S": "240" I'm on Ubuntu 24.04. The other "lever" I'm testing was to change LACT idle clock behavior. I had it on Autoclocks before. Now it's on 3D_Window. Higher idle power but I had a card stalling coming out of Auto because it was streaming experts from RAM (non-resident in VRAM).
Author
Owner

@leanrazor commented on GitHub (Oct 18, 2026):

@yzguy128 could you share your results with 2x7900xtx? Is it better than around 2000tokens/s preffil + 80token/s decode I am getting on 1x7900XTX with IQ3_XXS?

I am considering buying a 2nd 7900xtx hence the question. Also if you can - please let me know if you are using 2 times Pcie5x8 CPU slots on motherboard, because I guess that would be my aim...

<!-- gh-comment-id:6252582764 --> @leanrazor commented on GitHub (Oct 18, 2026): @yzguy128 could you share your results with 2x7900xtx? Is it better than around 2000tokens/s preffil + 80token/s decode I am getting on 1x7900XTX with IQ3_XXS? I am considering buying a 2nd 7900xtx hence the question. Also if you can - please let me know if you are using 2 times Pcie5x8 CPU slots on motherboard, because I guess that would be my aim...
Author
Owner

@yzguy128 commented on GitHub (Oct 18, 2026):

My prefill/decode speeds are right there but on an IQ3_S model. I have a miniPC with 2x m.2 to oculink adapters with a redriver chip at PCIe 4x4 with the two 7900xtx hooked via egpu docks. 64gb ddr5 5600 ram. NVME is on the pcie 4x1 remaining m.2 slot. The Second 7900xtx will just allow you to step up to an IQ3_s or even a Q4 with mmap (how I currently run my IQ3_s model to reduce ram pressure on my Ubuntu 24.04 server).

Still, even with MMAP and HSA_ENABLE_SDMA:0 and pcie 4x4, I'm still seeing ~1800-2000 prefill @80k tokens and decode can range from 80-130tps depending on hit rate and nature of decode. Here is my complete launch parameters from the JSON:

{
"exe": "/home/yzguy128/LLM/Strata-0.1.45-reason/engine/strata",
"args": [
"--pack",
"/home/yzguy128/LLM/Strata-data/packs/turbo-brilliance-iq3_s",
"--native",
"/home/yzguy128/LLM/Strata-data/models/turbo-brilliance-iq3_s/DavidAU-Qwen3.8-Flash-Next-Turbo-Brilliance-50x-GSQ-RCO-IQ3_S-00001-of-00002.gguf",
"--ple-gguf",
"/home/yzguy128/LLM/Strata-data/models/turbo-brilliance-iq3_s/DavidAU-Qwen3.8-Flash-Next-Turbo-Brilliance-50x-GSQ-RCO-IQ3_S-00002-of-00002.gguf",
"--expert-profile",
"/home/yzguy128/LLM/Strata-0.1.45-reason/data/expert-profile.bin",
"--expert-cache",
"6000",
"--prefill",
"auto",
"--spec",
"4",
"--spec-min-p",
"0.5",
"--mtp",
"/home/yzguy128/LLM/Strata-data/mtp/rt",
"--max-context",
"182144",
"--kv",
"int8",
"--kv-resident",
"20480",
"--vram-reserve-mib",
"3072",
"--mmap-experts",
"--resident-budget-gib",
"50"
],
"cwd": "/home/yzguy128/LLM/Strata-0.1.45-reason",
"tokenizer": "/home/yzguy128/LLM/Strata-data/packs/turbo-brilliance-iq3_s/tokenizer",
"model_name": "turbo-brilliance-50x-iq3_s-reason | {REASON:help} | memory on",
"log": "/home/yzguy128/LLM/Strata-0.1.45-reason/strata-turbo-brilliance-iq3_s-reason.log",
"lib_dirs": [
"/home/yzguy128/LLM/Strata-0.1.45-reason/.venv/lib/python3.14/site-packages/_rocm_sdk_devel/lib",
"/home/yzguy128/LLM/Strata-0.1.45-reason/.venv/lib/python3.14/site-packages/_rocm_sdk_libraries/lib"
],
"port": 7878,
"backend": "hip",
"env": {
"STRATA_HIPBLASLT_TUNING": "/home/yzguy128/LLM/Strata-0.1.45-reason/tools/hip/gfx1100-hipblaslt-100401.txt",
"HSA_USERPTR_FOR_PAGED_MEM": "0",
"STRATA_ROUTE_TAIL_SKIP": "7",
"STRATA_PREFILL_CPU_SHARE": "auto",
"STRATA_PF_FUSED": "1",
"STRATA_PF_GEMM": "1",
"STRATA_PF_SWITCH_MIN_T": "4096",
"STRATA_MTP_STAGE0": "1",
"HSA_ENABLE_SDMA": "0",
"STRATA_WATCHDOG_S": "180",
"STRATA_ENGINE_STALL_S": "240"
},
"gpu": [
0,
1
],
"gpus_asked": true,
"layer_split": "24",
"open_browser": false,
"remote_expert_opt": false,
"fit_max_tokens": true,
"sampling": {
"temperature": 0.6,
"top_p": 0.95,
"top_k": 20,
"min_p": 0.0,
"presence_penalty": 0.0,
"repetition_penalty": 1.0
},
"tool_call_recovery": true,
"reasoning_budget_tokens": 1536,
"reasoning_loop_recovery": "recover",
"repeat_stop_tokens": 128,
"anthropic_thinking": "on_request",
"vision": {
"exe": "/home/yzguy128/LLM/Strata-0.1.45-reason/engine/strata-vision",
"mmproj": "/home/yzguy128/LLM/Strata-data/models/mmproj-Qwen3.8-Flash-Next-BF16.gguf",
"model": "/home/yzguy128/LLM/Strata-data/models/turbo-brilliance-iq3_s/DavidAU-Qwen3.8-Flash-Next-Turbo-Brilliance-50x-GSQ-RCO-IQ3_S-00001-of-00002.gguf",
"gpu": false,
"max_tokens": 300,
"threads": 12
},
"aliases": [
"turbo-brilliance-50x-iq3_s"
],
"memory": {
"dir": "/home/yzguy128/LLM/Strata-0.1.45-reason/Strata-data/memory",
"recall_limit": 96,
"max_block_chars": 24000,
"per_turn": true,
"turn_recall_limit": 8,
"turn_block_chars": 2000,
"encrypt": 1,
"tool": true,
"auto_shelve": true,
"embedder": {
"dir": "/home/yzguy128/LLM/Strata-0.1.45-reason/Strata-data/embeddings/bge-small-en-v1.5",
"threads": 4
}
},
"reason_mode": "auto",
"reason_modes": true
}

<!-- gh-comment-id:6252680723 --> @yzguy128 commented on GitHub (Oct 18, 2026): My prefill/decode speeds are right there but on an IQ3_S model. I have a miniPC with 2x m.2 to oculink adapters with a redriver chip at PCIe 4x4 with the two 7900xtx hooked via egpu docks. 64gb ddr5 5600 ram. NVME is on the pcie 4x1 remaining m.2 slot. The Second 7900xtx will just allow you to step up to an IQ3_s or even a Q4 with mmap (how I currently run my IQ3_s model to reduce ram pressure on my Ubuntu 24.04 server). Still, even with MMAP and HSA_ENABLE_SDMA:0 and pcie 4x4, I'm still seeing ~1800-2000 prefill @80k tokens and decode can range from 80-130tps depending on hit rate and nature of decode. Here is my complete launch parameters from the JSON: { "exe": "/home/yzguy128/LLM/Strata-0.1.45-reason/engine/strata", "args": [ "--pack", "/home/yzguy128/LLM/Strata-data/packs/turbo-brilliance-iq3_s", "--native", "/home/yzguy128/LLM/Strata-data/models/turbo-brilliance-iq3_s/DavidAU-Qwen3.8-Flash-Next-Turbo-Brilliance-50x-GSQ-RCO-IQ3_S-00001-of-00002.gguf", "--ple-gguf", "/home/yzguy128/LLM/Strata-data/models/turbo-brilliance-iq3_s/DavidAU-Qwen3.8-Flash-Next-Turbo-Brilliance-50x-GSQ-RCO-IQ3_S-00002-of-00002.gguf", "--expert-profile", "/home/yzguy128/LLM/Strata-0.1.45-reason/data/expert-profile.bin", "--expert-cache", "6000", "--prefill", "auto", "--spec", "4", "--spec-min-p", "0.5", "--mtp", "/home/yzguy128/LLM/Strata-data/mtp/rt", "--max-context", "182144", "--kv", "int8", "--kv-resident", "20480", "--vram-reserve-mib", "3072", "--mmap-experts", "--resident-budget-gib", "50" ], "cwd": "/home/yzguy128/LLM/Strata-0.1.45-reason", "tokenizer": "/home/yzguy128/LLM/Strata-data/packs/turbo-brilliance-iq3_s/tokenizer", "model_name": "turbo-brilliance-50x-iq3_s-reason | {REASON:help} | memory on", "log": "/home/yzguy128/LLM/Strata-0.1.45-reason/strata-turbo-brilliance-iq3_s-reason.log", "lib_dirs": [ "/home/yzguy128/LLM/Strata-0.1.45-reason/.venv/lib/python3.14/site-packages/_rocm_sdk_devel/lib", "/home/yzguy128/LLM/Strata-0.1.45-reason/.venv/lib/python3.14/site-packages/_rocm_sdk_libraries/lib" ], "port": 7878, "backend": "hip", "env": { "STRATA_HIPBLASLT_TUNING": "/home/yzguy128/LLM/Strata-0.1.45-reason/tools/hip/gfx1100-hipblaslt-100401.txt", "HSA_USERPTR_FOR_PAGED_MEM": "0", "STRATA_ROUTE_TAIL_SKIP": "7", "STRATA_PREFILL_CPU_SHARE": "auto", "STRATA_PF_FUSED": "1", "STRATA_PF_GEMM": "1", "STRATA_PF_SWITCH_MIN_T": "4096", "STRATA_MTP_STAGE0": "1", "HSA_ENABLE_SDMA": "0", "STRATA_WATCHDOG_S": "180", "STRATA_ENGINE_STALL_S": "240" }, "gpu": [ 0, 1 ], "gpus_asked": true, "layer_split": "24", "open_browser": false, "remote_expert_opt": false, "fit_max_tokens": true, "sampling": { "temperature": 0.6, "top_p": 0.95, "top_k": 20, "min_p": 0.0, "presence_penalty": 0.0, "repetition_penalty": 1.0 }, "tool_call_recovery": true, "reasoning_budget_tokens": 1536, "reasoning_loop_recovery": "recover", "repeat_stop_tokens": 128, "anthropic_thinking": "on_request", "vision": { "exe": "/home/yzguy128/LLM/Strata-0.1.45-reason/engine/strata-vision", "mmproj": "/home/yzguy128/LLM/Strata-data/models/mmproj-Qwen3.8-Flash-Next-BF16.gguf", "model": "/home/yzguy128/LLM/Strata-data/models/turbo-brilliance-iq3_s/DavidAU-Qwen3.8-Flash-Next-Turbo-Brilliance-50x-GSQ-RCO-IQ3_S-00001-of-00002.gguf", "gpu": false, "max_tokens": 300, "threads": 12 }, "aliases": [ "turbo-brilliance-50x-iq3_s" ], "memory": { "dir": "/home/yzguy128/LLM/Strata-0.1.45-reason/Strata-data/memory", "recall_limit": 96, "max_block_chars": 24000, "per_turn": true, "turn_recall_limit": 8, "turn_block_chars": 2000, "encrypt": 1, "tool": true, "auto_shelve": true, "embedder": { "dir": "/home/yzguy128/LLM/Strata-0.1.45-reason/Strata-data/embeddings/bge-small-en-v1.5", "threads": 4 } }, "reason_mode": "auto", "reason_modes": true }
Author
Owner

@leanrazor commented on GitHub (Oct 18, 2026):

Thank you @yzguy128! Would you say the bump is worth it for 1k USD 7900XTX Nitro+ to just get better quants running? I have 128gb RAM installed at 6000mhz CL40. I wonder if the difference between quants can justify the price point of 2nd gpu if I plan to code a lot...

<!-- gh-comment-id:6252869275 --> @leanrazor commented on GitHub (Oct 18, 2026): Thank you @yzguy128! Would you say the bump is worth it for 1k USD 7900XTX Nitro+ to just get better quants running? I have 128gb RAM installed at 6000mhz CL40. I wonder if the difference between quants can justify the price point of 2nd gpu if I plan to code a lot...
Author
Owner

@yzguy128 commented on GitHub (Oct 18, 2026):

I would love to have 128GB RAM! Strata is so good at using all of your system's resources, I would say the bump is not worth it. If the qwen flash next were dense models I'd say go for it. The Flash Next architecture seems to benefit from big RAM pools when VRAM available is more than 12gb.

I'm currently testing this fork of Strata with built in memory and auto-reasoning based on the nature of the prompt:

https://github.com/TheHubUser4860938/Strata

It makes the most of the turbo-brilliance-iq3_s/DavidAU-Qwen3.8-Flash-Next-Turbo-Brilliance-50x-GSQ-RCO-IQ3_S.

I had to ask permission for access to this model on Huggingface from the team that released the model. Apparently is scores the same as the BF16 in reasoning test. So far so good. I've been using it for 2 days and no tool loops, or server hangs/kill/reloads. I may not have fixed my problem, but the past 2 days have been encouraging. Before, on Strata 1.45 and without the launch parameters I pinned, I was having server hangs every few hours and I could not figure out why. I used QWEN to read the logs and help me figure out possible reasons. Even had QWEN read through the "Issues" page on this github for similar 7900xtx issues to help pin down some possible changes.

We settled on the SDMA:0 change and changing the LACT auto to a pinned GPU control profile. Still testing, but it's encouraging so far.

<!-- gh-comment-id:6252978616 --> @yzguy128 commented on GitHub (Oct 18, 2026): I would love to have 128GB RAM! Strata is so good at using all of your system's resources, I would say the bump is not worth it. If the qwen flash next were dense models I'd say go for it. The Flash Next architecture seems to benefit from big RAM pools when VRAM available is more than 12gb. I'm currently testing this fork of Strata with built in memory and auto-reasoning based on the nature of the prompt: [https://github.com/TheHubUser4860938/Strata](url) It makes the most of the turbo-brilliance-iq3_s/DavidAU-Qwen3.8-Flash-Next-Turbo-Brilliance-50x-GSQ-RCO-IQ3_S. I had to ask permission for access to this model on Huggingface from the team that released the model. Apparently is scores the same as the BF16 in reasoning test. So far so good. I've been using it for 2 days and no tool loops, or server hangs/kill/reloads. I may not have fixed my problem, but the past 2 days have been encouraging. Before, on Strata 1.45 and without the launch parameters I pinned, I was having server hangs every few hours and I could not figure out why. I used QWEN to read the logs and help me figure out possible reasons. Even had QWEN read through the "Issues" page on this github for similar 7900xtx issues to help pin down some possible changes. We settled on the SDMA:0 change and changing the LACT auto to a pinned GPU control profile. Still testing, but it's encouraging so far.
Author
Owner

@enesunal commented on GitHub (Oct 18, 2026):

Most likely it's SDMA & numa rebalancing causing a race condition. Plausible explanation is SDMA read fails because the address is rebalanced then it fallbacks to indirect, once this happens all direct addresses should actually be dropped and renewed until SDMA can be used again.

For now, set kernel.numa_balancing=0; until there's a proper fix (it can be anywhere in amdgpu/KFD driver, HIP/ROCr, 7900xtx driver, or a sync is missing in Strata/llama.cpp). Turning off numa balancing fixed my issue and never experienced it again.

<!-- gh-comment-id:6255820181 --> @enesunal commented on GitHub (Oct 18, 2026): Most likely it's SDMA & numa rebalancing causing a race condition. Plausible explanation is SDMA read fails because the address is rebalanced then it fallbacks to indirect, once this happens all direct addresses should actually be dropped and renewed until SDMA can be used again. For now, set kernel.numa_balancing=0; until there's a proper fix (it can be anywhere in amdgpu/KFD driver, HIP/ROCr, 7900xtx driver, or a sync is missing in Strata/llama.cpp). Turning off numa balancing fixed my issue and never experienced it again.
Author
Owner

@bbob8735 commented on GitHub (Oct 19, 2026):

Another 2x 7900-class report, with two findings that may matter: numa_balancing was already off
here
, and HSA_ENABLE_SDMA=0 was not sufficient (hang within ~7 minutes). On this host the
page-moving trigger appears to be ordinary page-cache reclaim driven by the model's own expert file
tier, which is always on. Everything I have is below - I am repurposing this box to a quant that
fits, so I won't be able to run follow-up experiments.

Environment

  • Engine 0.1.45 (HIP), built by setup.sh:
    -DSTRATA_ENABLE_HIP=ON -DSTRATA_ENABLE_CUDA=OFF -DSTRATA_PREFILL_MMQ=ON -DSTRATA_MMQ_KQUANTS=ON -DSTRATA_Q6K_EXPERTS=ON -DCMAKE_HIP_ARCHITECTURES=gfx1100
  • 2x RX 7900 XTX 24 GiB (Navi 31, gfx1100), both PCIe 4.0 x16, 327 W cap, stock clocks
  • Ryzen 7 5800X (8c/16t), 62.7 GiB RAM (dual-channel DDR4), 2 GiB swap
  • Ubuntu 24.04, kernel 6.8.0-100-generic, amdgpu in-tree
  • ROCm 7.10.0a20251120 (AMD TheRock wheels installed into .venv by setup; the system ROCm is
    6.4 and too old), hipBLASLt 1.2.0 (setup selected tools/hip/gfx1100-hipblaslt-100200.txt)
  • kernel.numa_balancing = 0, single NUMA node
  • Model: Unsloth UD-Q4_K_XL (revision 38bb39e, all four shards SHA-256 verified) in the
    RAM-budget / mapped mode - experts read from the GGUFs in place, --resident-budget-gib
  • Client: an OpenAI-compatible coding agent over /v1/chat/completions, long multi-turn
    conversations, prompts 75K-170K tokens, one request at a time (no --parallel)

Engine command line:

--serve --pack <data>/packs/unsloth-ud-q4_k_xl --native <...>UD-Q4_K_XL-00001-of-00004.gguf
--expert-profile <strata>/data/expert-profile.bin --expert-cache auto --prefill auto
--spec 4 --spec-min-p 0.5 --mtp <data>/mtp/rt --max-context 196608 --kv int8 --kv-resident 32768
--resident-budget-gib 28 --vram-reserve-later-mib 2048 --vram-reserve-mib 3072
--prompt-cache-spread --layer-split 26 --tail-role-token 8678

Config env: STRATA_MMQ_KQ=1, STRATA_SPLIT_MTP_BATCH=1, STRATA_STAGE_TRIM=1,
STRATA_SPLIT_OVERLAP=1, STRATA_SCORES_THREAD=1, STRATA_HIPBLASLT_TUNING=<gfx1100 100200 table>.
(effort_position: "end", env_to_user, tool_call_recovery, fit_max_tokens set server-side.)

Startup is healthy every time - a representative instance:

PCIe probe: 14.4 GB/s host->device -> pcie_frac 0.40 (default 0.55)
layer split auto: K=24 ... the caches hold 12095 of 24576 profiled pairs (~98.0% of the routed mass)
KV streaming: 32768 of 196608 cells per QSA layer in VRAM, the K/V in 1.16 GiB of pinned RAM
expert cache 6127 slots, 17.87 GiB of VRAM
layer split: CUDA1 runs layers 26-47, expert cache 6073 slots (17.76 GiB)
R4 hit path ON - resident experts are computed on the GPU
FileExpertSource: mapped pinned cache complement ready: resident 28.00 GiB, pinned 28.00 GiB; page-locked and mapped
2946 MiB of VRAM free with everything loaded / CUDA1: 1734 MiB

Symptoms

28 engine starts in ~3.5 hours of normal use (26 of them crash-restarts), in two families, both
while reading a prompt:

strata serve: no progress for 60 s during a request (reading the prompt (batched):
  waiting for the GPU (attention, router) at layer N of the prompt chunk from token M)
  - stopping the engine so the server starts it again (issue #29)          [14 occurrences]

strata serve: ... Unrecoverable native verification failure: verify: timed out at layer N;
  its GPU waits were released but the GPU did not finish within 5 s (#267)

Exit codes seen: 14x -6, 12x -15.

Restart timeline (local time, engine starts; the gaps are the ~4 min model reload):

10:02 10:14 10:26 10:27 10:36 10:55 10:59 11:24 11:32 11:45 11:45 11:56 11:57 11:58
12:11 12:15 12:18 12:28 12:28 12:34 12:38 12:50 12:58 13:01 13:09 13:11 13:17 13:25

Observed stalled layers: 4, 5, 10, 13, 17, 20, 24, 25, 28, 29, 35, 36, 43 - i.e. both stages
of the split (0-25 on CUDA0, 26-47 on CUDA1), not one card and not one layer.

Prompt sizes at failure: reproduced at 79,169 and at 165,155 tokens, and the chunk offsets
include token 0, so it is not confined to very deep context or to a late chunk.

Not a VRAM problem: 1.5-2.9 GiB free per card at every failure, and no #2065
("below 512 MiB") warnings
in any run after the reserve was raised. No MES failed to respond,
no GPU reset, no device lost here - the cards stay usable and the engine restarts cleanly every
time (differs from the original report in that respect). I do not have root on this box, so I
cannot provide dmesg.

Successful and failing requests interleave. For contrast, two consecutive requests in one session:

prompt 168195 tokens = 166416 reused + 1779 read in 54104 ms, 501 generated @ 37.8 tok/s  (fine)
prompt 164824 tokens =      0 reused + 164824 read in 130034 ms                           (fine)
...then a 79,169-token prompt hangs at layer 29 from token 0.

What did not fix it

Each applied in isolation, each followed by a recurrence:

change result
--vram-reserve-mib 700 -> 1280 -> 3072 fixed a separate startup OOM (native dense projections: native dense upload blk.3.attn_output.weight: out of memory, exit -6 on engine restart) - no effect on the hangs
--vram-reserve-later-mib 1084 -> 2048 no effect
--resident-budget-gib 35 -> 28 no effect
arena page-locked vs pageable hangs in both states
STRATA_SPLIT_OVERLAP=1 -> unset hangs with it on and off
STRATA_HC_SPLIT=0 (staged hyper-connection read off) hangs
STRATA_STAGE_TRIM=1 + explicit --layer-split 26 large win for VRAM headroom (11,930 -> 12,756 expert slots); no effect on hangs
HSA_USERPTR_FOR_PAGED_MEM=0 (#1705) also broke page-locking of the 28 GiB arena: page-locking refused (out of memory); mlock failed (raise ulimit -l), so the arena silently ran pageable (pinned 0.00 GiB) and the CPU computed every miss. Hangs continued. Worth a note in #1705: this workaround moves pinning onto the mlock path, where RLIMIT_MEMLOCK (7.84 GiB here) binds, while the default HIP registration path is not bound by it.
HSA_ENABLE_SDMA=0 (this thread) hang within ~7 minutes
STRATA_WATCHDOG_S=180 + STRATA_ENGINE_STALL_S=240 does not cover the #267 5 s verify wait, which still kills the engine. There appears to be no env override for that 5 s wait, so on a split a slow window cannot degrade into a slow request.
--max-context 262144 -> 196608 no effect

Not tested: single-GPU (--gpu 0) on this box. The model's experts do not fit one card's cache
here, so it would have been a different configuration rather than a controlled comparison; I flag it
because it is the obvious missing data point.

The part that may be new

This model does not fit this machine, so there is a permanent expert file tier:

RAM budget 28.00 GiB: 9600 of the 36.10 GiB of experts the GPU cache does not hold, by profile rank;
                      the rest are read from the files
the file tier reads through the file cache (... 43.7 GiB of experts read from the files ...)
lend sizing: the prompt path borrows 2555 slots (ring 96 slots at chunk 8192),
             0 of them keep their experts in RAM too
WARNING: 2555 of the 2555 borrowed slots have no RAM copy: their experts are streamed from the
         model file during every chunk     (#669)

Per-request I/O, from the engine's own line, on a request that completed:

file tier I/O this request: the OS read 104745.0 MB from storage (111767 major faults)
                            for 311844.1 MB of expert reads

So >100 GB read and 111,767 major faults in a single request. The mapped GGUF pages the GPU
reads through are therefore being reclaimed and refaulted continuously. Host state during this:
62.7 GiB RAM with ~0.5 GiB free, 33 GiB in shared, and swap 100% full (2.0 of 2.0 GiB), with
active si/so.

If the mechanism behind this bug is GPU access racing with host pages moving underneath it, then NUMA
balancing is only one way to move them and memory pressure on an undersized host is another - one
that is permanently on and cannot be switched off with a sysctl. That would explain why
HSA_ENABLE_SDMA=0 held ~48 h on a host whose mover was NUMA balancing, but lasted ~7 minutes here.

Falsifiable prediction: on this hardware the hang rate should track file-tier volume, and should
fall to ~zero with a quant whose experts fit entirely in VRAM+RAM (no file tier). This box is moving
to IQ3_S (50.3 GB of experts, fully resident at a 128K context) for exactly that reason. If the hangs
stop, the useful conclusion for other 7900-class users is that the trigger is the file tier rather
than the split itself, and the practical advice is "size the quant to fit, or expect this".

Smaller notes

  • STRATA_HC_SPLIT is not documented in docs/; I found it only from the engine's own startup line
    (strata hc: CUDA0: the hyper-connection read runs as staged ... (STRATA_HC_SPLIT=1 or 0 ...)).
  • AMD_HIP.md ("Not validated: ... long contexts beyond 16K") and AMD_HIP_PERFORMANCE.md
    ("Existing CUDA multi-GPU code remains present but is not validation of HIP multi-GPU support")
    are both accurate warnings - HIP + layer split + 80K-170K prompts sits squarely in that gap. It
    might be worth saying so directly in MULTI_GPU.md, which currently reads as NVIDIA-centric but
    does point AMD users at --backend hip --gpus 1,0.
  • Unrelated but measured on this hardware, in case it is useful: STRATA_STAGE_TRIM=1 with an
    explicit --layer-split took the two caches from 11,930 to 12,756 expert slots and was the single
    largest tuning win here (chat decode 35.8 -> 47.8 tok/s, 16K prompt 597 -> 1265 tok/s,
    32K prompt 1101 -> 1482 tok/s, measured with tools/strata_bench.py).
<!-- gh-comment-id:6257192458 --> @bbob8735 commented on GitHub (Oct 19, 2026): Another 2x 7900-class report, with two findings that may matter: **`numa_balancing` was already off here**, and **`HSA_ENABLE_SDMA=0` was not sufficient** (hang within ~7 minutes). On this host the page-moving trigger appears to be ordinary page-cache reclaim driven by the model's own expert file tier, which is always on. Everything I have is below - I am repurposing this box to a quant that fits, so I won't be able to run follow-up experiments. ## Environment - Engine **0.1.45** (HIP), built by `setup.sh`: `-DSTRATA_ENABLE_HIP=ON -DSTRATA_ENABLE_CUDA=OFF -DSTRATA_PREFILL_MMQ=ON -DSTRATA_MMQ_KQUANTS=ON -DSTRATA_Q6K_EXPERTS=ON -DCMAKE_HIP_ARCHITECTURES=gfx1100` - 2x **RX 7900 XTX** 24 GiB (Navi 31, gfx1100), both **PCIe 4.0 x16**, 327 W cap, stock clocks - Ryzen 7 5800X (8c/16t), **62.7 GiB RAM** (dual-channel DDR4), **2 GiB swap** - Ubuntu 24.04, kernel **6.8.0-100-generic**, amdgpu in-tree - **ROCm 7.10.0a20251120** (AMD TheRock wheels installed into `.venv` by setup; the system ROCm is 6.4 and too old), **hipBLASLt 1.2.0** (setup selected `tools/hip/gfx1100-hipblaslt-100200.txt`) - `kernel.numa_balancing = 0`, single NUMA node - Model: **Unsloth UD-Q4_K_XL** (revision `38bb39e`, all four shards SHA-256 verified) in the RAM-budget / mapped mode - experts read from the GGUFs in place, `--resident-budget-gib` - Client: an OpenAI-compatible coding agent over `/v1/chat/completions`, long multi-turn conversations, prompts 75K-170K tokens, one request at a time (no `--parallel`) Engine command line: ``` --serve --pack <data>/packs/unsloth-ud-q4_k_xl --native <...>UD-Q4_K_XL-00001-of-00004.gguf --expert-profile <strata>/data/expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <data>/mtp/rt --max-context 196608 --kv int8 --kv-resident 32768 --resident-budget-gib 28 --vram-reserve-later-mib 2048 --vram-reserve-mib 3072 --prompt-cache-spread --layer-split 26 --tail-role-token 8678 ``` Config `env`: `STRATA_MMQ_KQ=1`, `STRATA_SPLIT_MTP_BATCH=1`, `STRATA_STAGE_TRIM=1`, `STRATA_SPLIT_OVERLAP=1`, `STRATA_SCORES_THREAD=1`, `STRATA_HIPBLASLT_TUNING=<gfx1100 100200 table>`. (`effort_position: "end"`, `env_to_user`, `tool_call_recovery`, `fit_max_tokens` set server-side.) Startup is healthy every time - a representative instance: ``` PCIe probe: 14.4 GB/s host->device -> pcie_frac 0.40 (default 0.55) layer split auto: K=24 ... the caches hold 12095 of 24576 profiled pairs (~98.0% of the routed mass) KV streaming: 32768 of 196608 cells per QSA layer in VRAM, the K/V in 1.16 GiB of pinned RAM expert cache 6127 slots, 17.87 GiB of VRAM layer split: CUDA1 runs layers 26-47, expert cache 6073 slots (17.76 GiB) R4 hit path ON - resident experts are computed on the GPU FileExpertSource: mapped pinned cache complement ready: resident 28.00 GiB, pinned 28.00 GiB; page-locked and mapped 2946 MiB of VRAM free with everything loaded / CUDA1: 1734 MiB ``` ## Symptoms **28 engine starts in ~3.5 hours** of normal use (26 of them crash-restarts), in two families, both while reading a prompt: ``` strata serve: no progress for 60 s during a request (reading the prompt (batched): waiting for the GPU (attention, router) at layer N of the prompt chunk from token M) - stopping the engine so the server starts it again (issue #29) [14 occurrences] strata serve: ... Unrecoverable native verification failure: verify: timed out at layer N; its GPU waits were released but the GPU did not finish within 5 s (#267) ``` Exit codes seen: **14x -6**, **12x -15**. Restart timeline (local time, engine starts; the gaps are the ~4 min model reload): ``` 10:02 10:14 10:26 10:27 10:36 10:55 10:59 11:24 11:32 11:45 11:45 11:56 11:57 11:58 12:11 12:15 12:18 12:28 12:28 12:34 12:38 12:50 12:58 13:01 13:09 13:11 13:17 13:25 ``` Observed stalled layers: **4, 5, 10, 13, 17, 20, 24, 25, 28, 29, 35, 36, 43** - i.e. **both stages** of the split (0-25 on CUDA0, 26-47 on CUDA1), not one card and not one layer. Prompt sizes at failure: reproduced at **79,169** and at **165,155** tokens, and the chunk offsets include `token 0`, so it is not confined to very deep context or to a late chunk. Not a VRAM problem: 1.5-2.9 GiB free per card at every failure, and **no `#2065` ("below 512 MiB") warnings** in any run after the reserve was raised. No `MES failed to respond`, no `GPU reset`, no `device lost` here - the cards stay usable and the engine restarts cleanly every time (differs from the original report in that respect). I do not have root on this box, so I cannot provide `dmesg`. Successful and failing requests interleave. For contrast, two consecutive requests in one session: ``` prompt 168195 tokens = 166416 reused + 1779 read in 54104 ms, 501 generated @ 37.8 tok/s (fine) prompt 164824 tokens = 0 reused + 164824 read in 130034 ms (fine) ...then a 79,169-token prompt hangs at layer 29 from token 0. ``` ## What did not fix it Each applied in isolation, each followed by a recurrence: | change | result | | --- | --- | | `--vram-reserve-mib` 700 -> 1280 -> 3072 | fixed a **separate** startup OOM (`native dense projections: native dense upload blk.3.attn_output.weight: out of memory`, exit -6 on engine restart) - no effect on the hangs | | `--vram-reserve-later-mib` 1084 -> 2048 | no effect | | `--resident-budget-gib` 35 -> 28 | no effect | | arena **page-locked** vs **pageable** | hangs in both states | | `STRATA_SPLIT_OVERLAP=1` -> unset | hangs with it on **and** off | | `STRATA_HC_SPLIT=0` (staged hyper-connection read off) | hangs | | `STRATA_STAGE_TRIM=1` + explicit `--layer-split 26` | large win for VRAM headroom (11,930 -> 12,756 expert slots); no effect on hangs | | `HSA_USERPTR_FOR_PAGED_MEM=0` (#1705) | **also broke page-locking** of the 28 GiB arena: `page-locking refused (out of memory); mlock failed (raise ulimit -l)`, so the arena silently ran pageable (`pinned 0.00 GiB`) and the CPU computed every miss. Hangs continued. Worth a note in #1705: this workaround moves pinning onto the `mlock` path, where `RLIMIT_MEMLOCK` (7.84 GiB here) binds, while the default HIP registration path is not bound by it. | | `HSA_ENABLE_SDMA=0` (this thread) | hang within ~7 minutes | | `STRATA_WATCHDOG_S=180` + `STRATA_ENGINE_STALL_S=240` | does not cover the `#267` 5 s verify wait, which still kills the engine. There appears to be **no env override for that 5 s wait**, so on a split a slow window cannot degrade into a slow request. | | `--max-context` 262144 -> 196608 | no effect | **Not tested:** single-GPU (`--gpu 0`) on this box. The model's experts do not fit one card's cache here, so it would have been a different configuration rather than a controlled comparison; I flag it because it is the obvious missing data point. ## The part that may be new This model does not fit this machine, so there is a **permanent expert file tier**: ``` RAM budget 28.00 GiB: 9600 of the 36.10 GiB of experts the GPU cache does not hold, by profile rank; the rest are read from the files the file tier reads through the file cache (... 43.7 GiB of experts read from the files ...) lend sizing: the prompt path borrows 2555 slots (ring 96 slots at chunk 8192), 0 of them keep their experts in RAM too WARNING: 2555 of the 2555 borrowed slots have no RAM copy: their experts are streamed from the model file during every chunk (#669) ``` Per-request I/O, from the engine's own line, on a request that completed: ``` file tier I/O this request: the OS read 104745.0 MB from storage (111767 major faults) for 311844.1 MB of expert reads ``` So >100 GB read and **111,767 major faults in a single request**. The mapped GGUF pages the GPU reads through are therefore being reclaimed and refaulted continuously. Host state during this: 62.7 GiB RAM with ~0.5 GiB free, 33 GiB in `shared`, and **swap 100% full (2.0 of 2.0 GiB)**, with active si/so. If the mechanism behind this bug is GPU access racing with host pages moving underneath it, then NUMA balancing is only one way to move them and **memory pressure on an undersized host is another** - one that is permanently on and cannot be switched off with a sysctl. That would explain why `HSA_ENABLE_SDMA=0` held ~48 h on a host whose mover was NUMA balancing, but lasted ~7 minutes here. **Falsifiable prediction:** on this hardware the hang rate should track file-tier volume, and should fall to ~zero with a quant whose experts fit entirely in VRAM+RAM (no file tier). This box is moving to IQ3_S (50.3 GB of experts, fully resident at a 128K context) for exactly that reason. If the hangs stop, the useful conclusion for other 7900-class users is that the trigger is the file tier rather than the split itself, and the practical advice is "size the quant to fit, or expect this". ## Smaller notes - `STRATA_HC_SPLIT` is not documented in `docs/`; I found it only from the engine's own startup line (`strata hc: CUDA0: the hyper-connection read runs as staged ... (STRATA_HC_SPLIT=1 or 0 ...)`). - `AMD_HIP.md` ("Not validated: ... long contexts beyond 16K") and `AMD_HIP_PERFORMANCE.md` ("Existing CUDA multi-GPU code remains present but is not validation of HIP multi-GPU support") are both accurate warnings - HIP + layer split + 80K-170K prompts sits squarely in that gap. It might be worth saying so directly in `MULTI_GPU.md`, which currently reads as NVIDIA-centric but does point AMD users at `--backend hip --gpus 1,0`. - Unrelated but measured on this hardware, in case it is useful: `STRATA_STAGE_TRIM=1` with an explicit `--layer-split` took the two caches from 11,930 to 12,756 expert slots and was the single largest tuning win here (chat decode 35.8 -> 47.8 tok/s, 16K prompt 597 -> 1265 tok/s, 32K prompt 1101 -> 1482 tok/s, measured with `tools/strata_bench.py`).
Author
Owner

@leanrazor commented on GitHub (Oct 19, 2026):

How did you manage to get

  • 2x RX 7900 XTX 24 GiB (Navi 31, gfx1100), both PCIe 4.0 x16, 327 W
    cap, stock clocks

2 PcIE x16 with ryzen 5 series? What board is that. I can't find such a
thing in X870e! :D

bbob8735 left a comment (Niko1221/Strata#3021)
https://github.com/Niko1221/Strata/issues/3021#issuecomment-6257192458

Another 2x 7900-class report, with two findings that may matter:
numa_balancing was already off here, and HSA_ENABLE_SDMA=0 was not
sufficient
(hang within ~7 minutes). On this host the
page-moving trigger appears to be ordinary page-cache reclaim driven by
the model's own expert file
tier, which is always on. Everything I have is below - I am repurposing
this box to a quant that
fits, so I won't be able to run follow-up experiments.
Environment

  • Engine 0.1.45 (HIP), built by setup.sh:
    -DSTRATA_ENABLE_HIP=ON -DSTRATA_ENABLE_CUDA=OFF
    -DSTRATA_PREFILL_MMQ=ON -DSTRATA_MMQ_KQUANTS=ON -DSTRATA_Q6K_EXPERTS=ON
    -DCMAKE_HIP_ARCHITECTURES=gfx1100
  • 2x RX 7900 XTX 24 GiB (Navi 31, gfx1100), both PCIe 4.0 x16, 327
    W cap, stock clocks
  • Ryzen 7 5800X (8c/16t), 62.7 GiB RAM (dual-channel DDR4), 2 GiB
    swap
  • Ubuntu 24.04, kernel 6.8.0-100-generic, amdgpu in-tree
  • ROCm 7.10.0a20251120 (AMD TheRock wheels installed into .venv by
    setup; the system ROCm is
    6.4 and too old), hipBLASLt 1.2.0 (setup selected
    tools/hip/gfx1100-hipblaslt-100200.txt)
  • kernel.numa_balancing = 0, single NUMA node
  • Model: Unsloth UD-Q4_K_XL (revision 38bb39e, all four shards
    SHA-256 verified) in the
    RAM-budget / mapped mode - experts read from the GGUFs in place,
    --resident-budget-gib
  • Client: an OpenAI-compatible coding agent over /v1/chat/completions,
    long multi-turn
    conversations, prompts 75K-170K tokens, one request at a time (no
    --parallel)

Engine command line:

--serve --pack /packs/unsloth-ud-q4_k_xl --native <...>UD-Q4_K_XL-00001-of-00004.gguf
--expert-profile /data/expert-profile.bin --expert-cache auto --prefill auto
--spec 4 --spec-min-p 0.5 --mtp /mtp/rt --max-context 196608 --kv int8 --kv-resident 32768
--resident-budget-gib 28 --vram-reserve-later-mib 2048 --vram-reserve-mib 3072
--prompt-cache-spread --layer-split 26 --tail-role-token 8678

Config env: STRATA_MMQ_KQ=1, STRATA_SPLIT_MTP_BATCH=1, STRATA_STAGE_TRIM=1
,
STRATA_SPLIT_OVERLAP=1, STRATA_SCORES_THREAD=1, STRATA_HIPBLASLT_TUNING=<gfx1100
100200 table>.
(effort_position: "end", env_to_user, tool_call_recovery, fit_max_tokens
set server-side.)

Startup is healthy every time - a representative instance:

PCIe probe: 14.4 GB/s host->device -> pcie_frac 0.40 (default 0.55)
layer split auto: K=24 ... the caches hold 12095 of 24576 profiled pairs (~98.0% of the routed mass)
KV streaming: 32768 of 196608 cells per QSA layer in VRAM, the K/V in 1.16 GiB of pinned RAM
expert cache 6127 slots, 17.87 GiB of VRAM
layer split: CUDA1 runs layers 26-47, expert cache 6073 slots (17.76 GiB)
R4 hit path ON - resident experts are computed on the GPU
FileExpertSource: mapped pinned cache complement ready: resident 28.00 GiB, pinned 28.00 GiB; page-locked and mapped
2946 MiB of VRAM free with everything loaded / CUDA1: 1734 MiB

Symptoms

28 engine starts in ~3.5 hours of normal use (26 of them
crash-restarts), in two families, both
while reading a prompt:

strata serve: no progress for 60 s during a request (reading the prompt (batched):
waiting for the GPU (attention, router) at layer N of the prompt chunk from token M)

  • stopping the engine so the server starts it again (issue #29) [14 occurrences]

strata serve: ... Unrecoverable native verification failure: verify: timed out at layer N;
its GPU waits were released but the GPU did not finish within 5 s (#267)

Exit codes seen: 14x -6, 12x -15.

Restart timeline (local time, engine starts; the gaps are the ~4 min model
reload):

10:02 10:14 10:26 10:27 10:36 10:55 10:59 11:24 11:32 11:45 11:45 11:56 11:57 11:58
12:11 12:15 12:18 12:28 12:28 12:34 12:38 12:50 12:58 13:01 13:09 13:11 13:17 13:25

Observed stalled layers: 4, 5, 10, 13, 17, 20, 24, 25, 28, 29, 35, 36,
43
- i.e. both stages
of the split (0-25 on CUDA0, 26-47 on CUDA1), not one card and not one
layer.

Prompt sizes at failure: reproduced at 79,169 and at 165,155 tokens,
and the chunk offsets
include token 0, so it is not confined to very deep context or to a late
chunk.

Not a VRAM problem: 1.5-2.9 GiB free per card at every failure, and
no #2065 ("below 512 MiB") warnings in any run after the reserve was
raised. No MES failed to respond,
no GPU reset, no device lost here - the cards stay usable and the engine
restarts cleanly every
time (differs from the original report in that respect). I do not have
root on this box, so I
cannot provide dmesg.

Successful and failing requests interleave. For contrast, two consecutive
requests in one session:

prompt 168195 tokens = 166416 reused + 1779 read in 54104 ms, 501 generated @ 37.8 tok/s (fine)
prompt 164824 tokens = 0 reused + 164824 read in 130034 ms (fine)
...then a 79,169-token prompt hangs at layer 29 from token 0.

What did not fix it

Each applied in isolation, each followed by a recurrence:
change result
--vram-reserve-mib 700 -> 1280 -> 3072 fixed a separate startup OOM (native
dense projections: native dense upload blk.3.attn_output.weight: out of
memory, exit -6 on engine restart) - no effect on the hangs
--vram-reserve-later-mib 1084 -> 2048 no effect
--resident-budget-gib 35 -> 28 no effect
arena page-locked vs pageable hangs in both states
STRATA_SPLIT_OVERLAP=1 -> unset hangs with it on and off
STRATA_HC_SPLIT=0 (staged hyper-connection read off) hangs
STRATA_STAGE_TRIM=1 + explicit --layer-split 26 large win for VRAM
headroom (11,930 -> 12,756 expert slots); no effect on hangs
HSA_USERPTR_FOR_PAGED_MEM=0 (#1705
https://github.com/Niko1221/Strata/issues/1705) also broke
page-locking
of the 28 GiB arena: page-locking refused (out of memory);
mlock failed (raise ulimit -l), so the arena silently ran pageable (pinned
0.00 GiB) and the CPU computed every miss. Hangs continued. Worth a note
in #1705 https://github.com/Niko1221/Strata/issues/1705: this
workaround moves pinning onto the mlock path, where RLIMIT_MEMLOCK (7.84
GiB here) binds, while the default HIP registration path is not bound by it.
HSA_ENABLE_SDMA=0 (this thread) hang within ~7 minutes
STRATA_WATCHDOG_S=180 + STRATA_ENGINE_STALL_S=240 does not cover the #267
5 s verify wait, which still kills the engine. There appears to be no
env override for that 5 s wait
, so on a split a slow window cannot
degrade into a slow request.
--max-context 262144 -> 196608 no effect

Not tested: single-GPU (--gpu 0) on this box. The model's experts do
not fit one card's cache
here, so it would have been a different configuration rather than a
controlled comparison; I flag it
because it is the obvious missing data point.
The part that may be new

This model does not fit this machine, so there is a permanent expert
file tier
:

RAM budget 28.00 GiB: 9600 of the 36.10 GiB of experts the GPU cache does not hold, by profile rank;
the rest are read from the files
the file tier reads through the file cache (... 43.7 GiB of experts read from the files ...)
lend sizing: the prompt path borrows 2555 slots (ring 96 slots at chunk 8192),
0 of them keep their experts in RAM too
WARNING: 2555 of the 2555 borrowed slots have no RAM copy: their experts are streamed from the
model file during every chunk (#669)

Per-request I/O, from the engine's own line, on a request that completed:

file tier I/O this request: the OS read 104745.0 MB from storage (111767 major faults)
for 311844.1 MB of expert reads

So >100 GB read and 111,767 major faults in a single request. The
mapped GGUF pages the GPU
reads through are therefore being reclaimed and refaulted continuously.
Host state during this:
62.7 GiB RAM with ~0.5 GiB free, 33 GiB in shared, and swap 100% full
(2.0 of 2.0 GiB)
, with
active si/so.

If the mechanism behind this bug is GPU access racing with host pages
moving underneath it, then NUMA
balancing is only one way to move them and memory pressure on an
undersized host is another
- one
that is permanently on and cannot be switched off with a sysctl. That
would explain why
HSA_ENABLE_SDMA=0 held ~48 h on a host whose mover was NUMA balancing,
but lasted ~7 minutes here.

Falsifiable prediction: on this hardware the hang rate should track
file-tier volume, and should
fall to ~zero with a quant whose experts fit entirely in VRAM+RAM (no file
tier). This box is moving
to IQ3_S (50.3 GB of experts, fully resident at a 128K context) for
exactly that reason. If the hangs
stop, the useful conclusion for other 7900-class users is that the trigger
is the file tier rather
than the split itself, and the practical advice is "size the quant to fit,
or expect this".
Smaller notes

  • STRATA_HC_SPLIT is not documented in docs/; I found it only from the
    engine's own startup line
    (strata hc: CUDA0: the hyper-connection read runs as staged ...
    (STRATA_HC_SPLIT=1 or 0 ...)).
  • AMD_HIP.md ("Not validated: ... long contexts beyond 16K") and
    AMD_HIP_PERFORMANCE.md
    ("Existing CUDA multi-GPU code remains present but is not validation
    of HIP multi-GPU support")
    are both accurate warnings - HIP + layer split + 80K-170K prompts sits
    squarely in that gap. It
    might be worth saying so directly in MULTI_GPU.md, which currently
    reads as NVIDIA-centric but
    does point AMD users at --backend hip --gpus 1,0.
  • Unrelated but measured on this hardware, in case it is useful:
    STRATA_STAGE_TRIM=1 with an
    explicit --layer-split took the two caches from 11,930 to 12,756
    expert slots and was the single
    largest tuning win here (chat decode 35.8 -> 47.8 tok/s, 16K prompt
    597 -> 1265 tok/s,
    32K prompt 1101 -> 1482 tok/s, measured with tools/strata_bench.py).

—
Reply to this email directly, view it on GitHub
https://github.com/Niko1221/Strata/issues/3021?email_source=notifications&email_token=AN7SBFDHBMFEGU2ZE3Y74735UVPBDA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMMRVG4YTSMRUGU4KM4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-6257192458,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AN7SBFH7BLBRN4U7FQOOBID5UVPBDAVCNFSNUABGKJSXA33TNF2G64TZHMYTGOBVHE2DMMZQGE5US43TOVSTWNJZGA3DMMZSG4YTDILWAI
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
https://github.com/notifications/mobile/ios/AN7SBFEEQRLJZJFLBOJI6GD5UVPBDA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMMRVG4YTSMRUGU4KM4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJKTGN5XXIZLSL5UW64Y
and Android
https://github.com/notifications/mobile/android/AN7SBFDV2E6HCTYINN4VOM35UVPBDA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMMRVG4YTSMRUGU4KM4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI.
Download it today!
You are receiving this because you commented.Message ID:
@.***>

<!-- gh-comment-id:6260184140 --> @leanrazor commented on GitHub (Oct 19, 2026): How did you manage to get - 2x *RX 7900 XTX* 24 GiB (Navi 31, gfx1100), both *PCIe 4.0 x16*, 327 W cap, stock clocks 2 PcIE x16 with ryzen 5 series? What board is that. I can't find such a thing in X870e! :D > *bbob8735* left a comment (Niko1221/Strata#3021) > <https://github.com/Niko1221/Strata/issues/3021#issuecomment-6257192458> > > Another 2x 7900-class report, with two findings that may matter: > *numa_balancing was already off here*, and *HSA_ENABLE_SDMA=0 was not > sufficient* (hang within ~7 minutes). On this host the > page-moving trigger appears to be ordinary page-cache reclaim driven by > the model's own expert file > tier, which is always on. Everything I have is below - I am repurposing > this box to a quant that > fits, so I won't be able to run follow-up experiments. > Environment > > - Engine *0.1.45* (HIP), built by setup.sh: > -DSTRATA_ENABLE_HIP=ON -DSTRATA_ENABLE_CUDA=OFF > -DSTRATA_PREFILL_MMQ=ON -DSTRATA_MMQ_KQUANTS=ON -DSTRATA_Q6K_EXPERTS=ON > -DCMAKE_HIP_ARCHITECTURES=gfx1100 > - 2x *RX 7900 XTX* 24 GiB (Navi 31, gfx1100), both *PCIe 4.0 x16*, 327 > W cap, stock clocks > - Ryzen 7 5800X (8c/16t), *62.7 GiB RAM* (dual-channel DDR4), *2 GiB > swap* > - Ubuntu 24.04, kernel *6.8.0-100-generic*, amdgpu in-tree > - *ROCm 7.10.0a20251120* (AMD TheRock wheels installed into .venv by > setup; the system ROCm is > 6.4 and too old), *hipBLASLt 1.2.0* (setup selected > tools/hip/gfx1100-hipblaslt-100200.txt) > - kernel.numa_balancing = 0, single NUMA node > - Model: *Unsloth UD-Q4_K_XL* (revision 38bb39e, all four shards > SHA-256 verified) in the > RAM-budget / mapped mode - experts read from the GGUFs in place, > --resident-budget-gib > - Client: an OpenAI-compatible coding agent over /v1/chat/completions, > long multi-turn > conversations, prompts 75K-170K tokens, one request at a time (no > --parallel) > > Engine command line: > > --serve --pack <data>/packs/unsloth-ud-q4_k_xl --native <...>UD-Q4_K_XL-00001-of-00004.gguf > --expert-profile <strata>/data/expert-profile.bin --expert-cache auto --prefill auto > --spec 4 --spec-min-p 0.5 --mtp <data>/mtp/rt --max-context 196608 --kv int8 --kv-resident 32768 > --resident-budget-gib 28 --vram-reserve-later-mib 2048 --vram-reserve-mib 3072 > --prompt-cache-spread --layer-split 26 --tail-role-token 8678 > > Config env: STRATA_MMQ_KQ=1, STRATA_SPLIT_MTP_BATCH=1, STRATA_STAGE_TRIM=1 > , > STRATA_SPLIT_OVERLAP=1, STRATA_SCORES_THREAD=1, STRATA_HIPBLASLT_TUNING=<gfx1100 > 100200 table>. > (effort_position: "end", env_to_user, tool_call_recovery, fit_max_tokens > set server-side.) > > Startup is healthy every time - a representative instance: > > PCIe probe: 14.4 GB/s host->device -> pcie_frac 0.40 (default 0.55) > layer split auto: K=24 ... the caches hold 12095 of 24576 profiled pairs (~98.0% of the routed mass) > KV streaming: 32768 of 196608 cells per QSA layer in VRAM, the K/V in 1.16 GiB of pinned RAM > expert cache 6127 slots, 17.87 GiB of VRAM > layer split: CUDA1 runs layers 26-47, expert cache 6073 slots (17.76 GiB) > R4 hit path ON - resident experts are computed on the GPU > FileExpertSource: mapped pinned cache complement ready: resident 28.00 GiB, pinned 28.00 GiB; page-locked and mapped > 2946 MiB of VRAM free with everything loaded / CUDA1: 1734 MiB > > Symptoms > > *28 engine starts in ~3.5 hours* of normal use (26 of them > crash-restarts), in two families, both > while reading a prompt: > > strata serve: no progress for 60 s during a request (reading the prompt (batched): > waiting for the GPU (attention, router) at layer N of the prompt chunk from token M) > - stopping the engine so the server starts it again (issue #29) [14 occurrences] > > strata serve: ... Unrecoverable native verification failure: verify: timed out at layer N; > its GPU waits were released but the GPU did not finish within 5 s (#267) > > Exit codes seen: *14x -6*, *12x -15*. > > Restart timeline (local time, engine starts; the gaps are the ~4 min model > reload): > > 10:02 10:14 10:26 10:27 10:36 10:55 10:59 11:24 11:32 11:45 11:45 11:56 11:57 11:58 > 12:11 12:15 12:18 12:28 12:28 12:34 12:38 12:50 12:58 13:01 13:09 13:11 13:17 13:25 > > Observed stalled layers: *4, 5, 10, 13, 17, 20, 24, 25, 28, 29, 35, 36, > 43* - i.e. *both stages* > of the split (0-25 on CUDA0, 26-47 on CUDA1), not one card and not one > layer. > > Prompt sizes at failure: reproduced at *79,169* and at *165,155* tokens, > and the chunk offsets > include token 0, so it is not confined to very deep context or to a late > chunk. > > Not a VRAM problem: 1.5-2.9 GiB free per card at every failure, and > *no #2065 ("below 512 MiB") warnings* in any run after the reserve was > raised. No MES failed to respond, > no GPU reset, no device lost here - the cards stay usable and the engine > restarts cleanly every > time (differs from the original report in that respect). I do not have > root on this box, so I > cannot provide dmesg. > > Successful and failing requests interleave. For contrast, two consecutive > requests in one session: > > prompt 168195 tokens = 166416 reused + 1779 read in 54104 ms, 501 generated @ 37.8 tok/s (fine) > prompt 164824 tokens = 0 reused + 164824 read in 130034 ms (fine) > ...then a 79,169-token prompt hangs at layer 29 from token 0. > > What did not fix it > > Each applied in isolation, each followed by a recurrence: > change result > --vram-reserve-mib 700 -> 1280 -> 3072 fixed a *separate* startup OOM (native > dense projections: native dense upload blk.3.attn_output.weight: out of > memory, exit -6 on engine restart) - no effect on the hangs > --vram-reserve-later-mib 1084 -> 2048 no effect > --resident-budget-gib 35 -> 28 no effect > arena *page-locked* vs *pageable* hangs in both states > STRATA_SPLIT_OVERLAP=1 -> unset hangs with it on *and* off > STRATA_HC_SPLIT=0 (staged hyper-connection read off) hangs > STRATA_STAGE_TRIM=1 + explicit --layer-split 26 large win for VRAM > headroom (11,930 -> 12,756 expert slots); no effect on hangs > HSA_USERPTR_FOR_PAGED_MEM=0 (#1705 > <https://github.com/Niko1221/Strata/issues/1705>) *also broke > page-locking* of the 28 GiB arena: page-locking refused (out of memory); > mlock failed (raise ulimit -l), so the arena silently ran pageable (pinned > 0.00 GiB) and the CPU computed every miss. Hangs continued. Worth a note > in #1705 <https://github.com/Niko1221/Strata/issues/1705>: this > workaround moves pinning onto the mlock path, where RLIMIT_MEMLOCK (7.84 > GiB here) binds, while the default HIP registration path is not bound by it. > HSA_ENABLE_SDMA=0 (this thread) hang within ~7 minutes > STRATA_WATCHDOG_S=180 + STRATA_ENGINE_STALL_S=240 does not cover the #267 > 5 s verify wait, which still kills the engine. There appears to be *no > env override for that 5 s wait*, so on a split a slow window cannot > degrade into a slow request. > --max-context 262144 -> 196608 no effect > > *Not tested:* single-GPU (--gpu 0) on this box. The model's experts do > not fit one card's cache > here, so it would have been a different configuration rather than a > controlled comparison; I flag it > because it is the obvious missing data point. > The part that may be new > > This model does not fit this machine, so there is a *permanent expert > file tier*: > > RAM budget 28.00 GiB: 9600 of the 36.10 GiB of experts the GPU cache does not hold, by profile rank; > the rest are read from the files > the file tier reads through the file cache (... 43.7 GiB of experts read from the files ...) > lend sizing: the prompt path borrows 2555 slots (ring 96 slots at chunk 8192), > 0 of them keep their experts in RAM too > WARNING: 2555 of the 2555 borrowed slots have no RAM copy: their experts are streamed from the > model file during every chunk (#669) > > Per-request I/O, from the engine's own line, on a request that completed: > > file tier I/O this request: the OS read 104745.0 MB from storage (111767 major faults) > for 311844.1 MB of expert reads > > So >100 GB read and *111,767 major faults in a single request*. The > mapped GGUF pages the GPU > reads through are therefore being reclaimed and refaulted continuously. > Host state during this: > 62.7 GiB RAM with ~0.5 GiB free, 33 GiB in shared, and *swap 100% full > (2.0 of 2.0 GiB)*, with > active si/so. > > If the mechanism behind this bug is GPU access racing with host pages > moving underneath it, then NUMA > balancing is only one way to move them and *memory pressure on an > undersized host is another* - one > that is permanently on and cannot be switched off with a sysctl. That > would explain why > HSA_ENABLE_SDMA=0 held ~48 h on a host whose mover was NUMA balancing, > but lasted ~7 minutes here. > > *Falsifiable prediction:* on this hardware the hang rate should track > file-tier volume, and should > fall to ~zero with a quant whose experts fit entirely in VRAM+RAM (no file > tier). This box is moving > to IQ3_S (50.3 GB of experts, fully resident at a 128K context) for > exactly that reason. If the hangs > stop, the useful conclusion for other 7900-class users is that the trigger > is the file tier rather > than the split itself, and the practical advice is "size the quant to fit, > or expect this". > Smaller notes > > - STRATA_HC_SPLIT is not documented in docs/; I found it only from the > engine's own startup line > (strata hc: CUDA0: the hyper-connection read runs as staged ... > (STRATA_HC_SPLIT=1 or 0 ...)). > - AMD_HIP.md ("Not validated: ... long contexts beyond 16K") and > AMD_HIP_PERFORMANCE.md > ("Existing CUDA multi-GPU code remains present but is not validation > of HIP multi-GPU support") > are both accurate warnings - HIP + layer split + 80K-170K prompts sits > squarely in that gap. It > might be worth saying so directly in MULTI_GPU.md, which currently > reads as NVIDIA-centric but > does point AMD users at --backend hip --gpus 1,0. > - Unrelated but measured on this hardware, in case it is useful: > STRATA_STAGE_TRIM=1 with an > explicit --layer-split took the two caches from 11,930 to 12,756 > expert slots and was the single > largest tuning win here (chat decode 35.8 -> 47.8 tok/s, 16K prompt > 597 -> 1265 tok/s, > 32K prompt 1101 -> 1482 tok/s, measured with tools/strata_bench.py). > > — > Reply to this email directly, view it on GitHub > <https://github.com/Niko1221/Strata/issues/3021?email_source=notifications&email_token=AN7SBFDHBMFEGU2ZE3Y74735UVPBDA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMMRVG4YTSMRUGU4KM4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-6257192458>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AN7SBFH7BLBRN4U7FQOOBID5UVPBDAVCNFSNUABGKJSXA33TNF2G64TZHMYTGOBVHE2DMMZQGE5US43TOVSTWNJZGA3DMMZSG4YTDILWAI> > . > Triage notifications, keep track of coding agent tasks and review pull > requests on the go with GitHub Mobile for iOS > <https://github.com/notifications/mobile/ios/AN7SBFEEQRLJZJFLBOJI6GD5UVPBDA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMMRVG4YTSMRUGU4KM4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJKTGN5XXIZLSL5UW64Y> > and Android > <https://github.com/notifications/mobile/android/AN7SBFDV2E6HCTYINN4VOM35UVPBDA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMMRVG4YTSMRUGU4KM4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI>. > Download it today! > You are receiving this because you commented.Message ID: > ***@***.***> >
Author
Owner

@Niko1221 commented on GitHub (Oct 19, 2026):

Thanks for taking the time to report this.

We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6271419996 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for taking the time to report this. We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Author
Owner

@bbob8735 commented on GitHub (Oct 19, 2026):

Reporting back as promised. The prediction held: moving to a quant whose experts fit stopped the
hangs completely.

Result

Same machine, same engine (0.1.45), same 2x RX 7900 XTX layer split, same ROCm 7.10.0a, nothing else
changed about the host:

UD-Q4_K_XL (experts don't fit) IQ3_S (experts fit)
runtime 4.5 h 19 h
requests served ~60 1,126
#29 no-progress hangs 14 0
#267 verify timeouts 9 0
engine deaths 23 0
decode tok/s (median) 11-42 76.8 (p10 63.9, p90 92.3, max 110.7)
cache reuse (median) varied 98.6%
prompt size (median / max) 85K / 170K 61K / 98K

19 hours, one engine process, zero restarts, 1,126 requests - at prompt sizes (up to 98K) that
reliably killed the engine within minutes on the other quant.

The metric that matters

This is the per-request expert file I/O from the engine's own log line, before and after:

UD-Q4_K_XL:  the OS read 104745.0 MB from storage (111767 major faults) for 311844.1 MB of expert reads
IQ3_S:       the OS read      2.8 MB from storage (     0 major faults)
             the OS read     15.2 MB from storage (     0 major faults)
             the OS read     48.7 MB from storage (     0 major faults)

111,767 major faults per request -> 0. The mapped GGUF pages the GPU reads through are no longer
being reclaimed and refaulted, because the experts fit. If the underlying bug is GPU access racing
with host pages moving, this removes the mover rather than narrowing the window - which is why it
works where HSA_ENABLE_SDMA=0 did not (that lasted ~7 minutes here).

A correction to my earlier comment

I implied the hang was associated with very deep context. It is not prompt-length dependent. It
also reproduced on a 10,093-token prompt. In hindsight that is what the mechanism predicts: the
per-token expert traffic is 10 experts x 48 layers regardless of prompt length, so decode churns the
page cache just as hard on a short prompt. Only the prefill streaming scales with prompt size.

So for anyone triaging this: the variable to track is expert file-tier volume, not context length.
Lowering --max-context or the client's context limit does not help, and I wasted time on that.

Two practical notes for others on 64 GB + 7900-class cards

1. IQ3_S in full-resident mode OOM-killed on a 63 GB host. Setup correctly warns it "needs a 64 GB
PC with little else running" - it took ~62 GB and the engine died with exit code -9 (the kernel's OOM
killer) once a conversation grew past ~90K tokens. --low-ram mmap fixed it completely:

resident mode:  RAM 59 GiB used, 3.2 GiB available, engine RSS 47.8 GB   -> OOM-killed
mmap mode:      RAM  8.6 GiB used,  54 GiB available, 49 GiB reclaimable page cache

Decode was unaffected (79-80% of experts still resident in VRAM across the two cards, 19,485 slots).
For a 64 GB box, --low-ram mmap looks like the better default for IQ3_S than the full RAM copy:
same speed, and the pages are reclaimable so the kernel evicts instead of killing.

2. On a layer split, the two VRAM reserve flags both need setting. The expert-cache auto-sizer
claims nearly all free VRAM at load, leaving too little for per-request allocations, and
--vram-reserve-mib only governs the first stage while --vram-reserve-later-mib governs the rest.
I hit this three times in one session:

  • 700 MiB default -> native dense upload blk.3.attn_output.weight: out of memory (exit -6) when the
    engine restarted while the previous instance was still releasing VRAM
  • raising only --vram-reserve-mib took CUDA0 to 1662 MiB free but left CUDA1 at 768
  • raising only --vram-reserve-later-mib took CUDA1 to 768 MiB but left CUDA0 dropping to 430 MiB
    mid-request, which trips the #2065 "below 512 MiB" warning

It might be worth having setup write both on a split, or having the auto-sizer reserve per-stage.

Unrelated but measured here

STRATA_STAGE_TRIM=1 with an explicit --layer-split was the single largest tuning win on this
hardware: expert slots 11,930 -> 12,756, and on UD-Q4_K_XL it took chat decode 35.8 -> 47.8 tok/s,
16K prompt 597 -> 1,265 tok/s and 32K prompt 1,101 -> 1,482 tok/s (tools/strata_bench.py).
Also, STRATA_HC_SPLIT still is not documented in docs/.

That is everything I have. The box is staying on IQ3_S, so I cannot reproduce the hang any more, but
the conclusion seems clean: on gfx1100 + layer split, the hang tracks expert file-tier churn, and
sizing the quant to fit VRAM+RAM avoids it entirely.

<!-- gh-comment-id:6277669840 --> @bbob8735 commented on GitHub (Oct 19, 2026): Reporting back as promised. **The prediction held: moving to a quant whose experts fit stopped the hangs completely.** ## Result Same machine, same engine (0.1.45), same 2x RX 7900 XTX layer split, same ROCm 7.10.0a, nothing else changed about the host: | | UD-Q4_K_XL (experts don't fit) | IQ3_S (experts fit) | | --- | ---: | ---: | | runtime | 4.5 h | **19 h** | | requests served | ~60 | **1,126** | | `#29` no-progress hangs | 14 | **0** | | `#267` verify timeouts | 9 | **0** | | engine deaths | **23** | **0** | | decode tok/s (median) | 11-42 | **76.8** (p10 63.9, p90 92.3, max 110.7) | | cache reuse (median) | varied | 98.6% | | prompt size (median / max) | 85K / 170K | 61K / 98K | 19 hours, one engine process, zero restarts, 1,126 requests - at prompt sizes (up to 98K) that reliably killed the engine within minutes on the other quant. ## The metric that matters This is the per-request expert file I/O from the engine's own log line, before and after: ``` UD-Q4_K_XL: the OS read 104745.0 MB from storage (111767 major faults) for 311844.1 MB of expert reads IQ3_S: the OS read 2.8 MB from storage ( 0 major faults) the OS read 15.2 MB from storage ( 0 major faults) the OS read 48.7 MB from storage ( 0 major faults) ``` **111,767 major faults per request -> 0.** The mapped GGUF pages the GPU reads through are no longer being reclaimed and refaulted, because the experts fit. If the underlying bug is GPU access racing with host pages moving, this removes the mover rather than narrowing the window - which is why it works where `HSA_ENABLE_SDMA=0` did not (that lasted ~7 minutes here). ## A correction to my earlier comment I implied the hang was associated with very deep context. **It is not prompt-length dependent.** It also reproduced on a **10,093-token** prompt. In hindsight that is what the mechanism predicts: the per-token expert traffic is 10 experts x 48 layers regardless of prompt length, so decode churns the page cache just as hard on a short prompt. Only the *prefill* streaming scales with prompt size. So for anyone triaging this: **the variable to track is expert file-tier volume, not context length.** Lowering `--max-context` or the client's context limit does not help, and I wasted time on that. ## Two practical notes for others on 64 GB + 7900-class cards **1. IQ3_S in full-resident mode OOM-killed on a 63 GB host.** Setup correctly warns it "needs a 64 GB PC with little else running" - it took ~62 GB and the engine died with exit code -9 (the kernel's OOM killer) once a conversation grew past ~90K tokens. `--low-ram mmap` fixed it completely: ``` resident mode: RAM 59 GiB used, 3.2 GiB available, engine RSS 47.8 GB -> OOM-killed mmap mode: RAM 8.6 GiB used, 54 GiB available, 49 GiB reclaimable page cache ``` Decode was unaffected (79-80% of experts still resident in VRAM across the two cards, 19,485 slots). For a 64 GB box, `--low-ram mmap` looks like the better default for IQ3_S than the full RAM copy: same speed, and the pages are reclaimable so the kernel evicts instead of killing. **2. On a layer split, the two VRAM reserve flags both need setting.** The expert-cache auto-sizer claims nearly all free VRAM at load, leaving too little for per-request allocations, and `--vram-reserve-mib` only governs the first stage while `--vram-reserve-later-mib` governs the rest. I hit this three times in one session: - 700 MiB default -> `native dense upload blk.3.attn_output.weight: out of memory` (exit -6) when the engine restarted while the previous instance was still releasing VRAM - raising only `--vram-reserve-mib` took CUDA0 to 1662 MiB free but left CUDA1 at 768 - raising only `--vram-reserve-later-mib` took CUDA1 to 768 MiB but left CUDA0 dropping to 430 MiB mid-request, which trips the `#2065` "below 512 MiB" warning It might be worth having setup write both on a split, or having the auto-sizer reserve per-stage. ## Unrelated but measured here `STRATA_STAGE_TRIM=1` with an explicit `--layer-split` was the single largest tuning win on this hardware: expert slots 11,930 -> 12,756, and on UD-Q4_K_XL it took chat decode 35.8 -> 47.8 tok/s, 16K prompt 597 -> 1,265 tok/s and 32K prompt 1,101 -> 1,482 tok/s (`tools/strata_bench.py`). Also, `STRATA_HC_SPLIT` still is not documented in `docs/`. That is everything I have. The box is staying on IQ3_S, so I cannot reproduce the hang any more, but the conclusion seems clean: on gfx1100 + layer split, the hang tracks expert file-tier churn, and sizing the quant to fit VRAM+RAM avoids it entirely.
Author
Owner

@rxr2 commented on GitHub (Oct 30, 2026):

One more data point for the page-cache-reclaim explanation (@bbob8735), from a single RX 7900 XTX, with an A/B:

Setup: Strata engine 0.1.52 (HIP), 1x RX 7900 XTX 24 GB, Ryzen 7 9800X3D, 64 GB RAM, Ubuntu 26.04 / kernel 7.0, Qwen3.8-Flash-Next IQ3_S (46.8 GiB of experts: ~15 GiB in VRAM, 36 GiB --resident-experts in RAM, the rest read from the file tier), model on NVMe (NTFS via ntfs3).

Symptom: the same as here: prompts of 32K+ tokens stalled in prefill (no progress for 60 s), with svm_range_restore_work in journalctl -k while the file tier read the model through the page cache. With 64 GB RAM the page cache cannot hold the experts outside the RAM copy, so every long prompt drove memory reclaim, and the reclaim moved pages the GPU queues were using.

A/B, one change, fresh restart per variant:

long prompts (32K-128K) that hung
default (file tier through the page cache) 5 of 11
STRATA_UNBUFFERED_LOAD=1 (file tier with O_DIRECT) 0 of 16

No other setting changed. In that A/B it cost ~9% at 12K-token prompts (no page-cache hits left), nothing at 32K+. That matches what you found by moving to a quant whose experts fit: whatever stops the file tier from filling the page cache stops the hangs. numa_balancing and HSA_ENABLE_SDMA were not changed here.

If you still run a model whose experts do not fit in VRAM + RAM, STRATA_UNBUFFERED_LOAD=1 is the first thing I would try.

The full measured configuration for one RX 7900 XTX (prefill ~3,180 tok/s at 12K-64K, decode 85-91 tok/s, no hangs; mostly upstream opt-ins that are off on gfx1100) and the benchmark scripts are here: https://github.com/rxr2/Strata/blob/rx7900/docs/RX7900XTX.md

<!-- gh-comment-id:6526653679 --> @rxr2 commented on GitHub (Oct 30, 2026): One more data point for the page-cache-reclaim explanation (@bbob8735), from a **single** RX 7900 XTX, with an A/B: **Setup:** Strata engine 0.1.52 (HIP), 1x RX 7900 XTX 24 GB, Ryzen 7 9800X3D, **64 GB RAM**, Ubuntu 26.04 / kernel 7.0, Qwen3.8-Flash-Next IQ3_S (46.8 GiB of experts: ~15 GiB in VRAM, 36 GiB `--resident-experts` in RAM, the rest read from the file tier), model on NVMe (NTFS via ntfs3). **Symptom:** the same as here: prompts of 32K+ tokens stalled in prefill (`no progress for 60 s`), with `svm_range_restore_work` in `journalctl -k` while the file tier read the model through the page cache. With 64 GB RAM the page cache cannot hold the experts outside the RAM copy, so every long prompt drove memory reclaim, and the reclaim moved pages the GPU queues were using. **A/B, one change, fresh restart per variant:** | | long prompts (32K-128K) that hung | |---|---:| | default (file tier through the page cache) | 5 of 11 | | `STRATA_UNBUFFERED_LOAD=1` (file tier with O_DIRECT) | **0 of 16** | No other setting changed. In that A/B it cost ~9% at 12K-token prompts (no page-cache hits left), nothing at 32K+. That matches what you found by moving to a quant whose experts fit: whatever stops the file tier from filling the page cache stops the hangs. `numa_balancing` and `HSA_ENABLE_SDMA` were not changed here. If you still run a model whose experts do not fit in VRAM + RAM, `STRATA_UNBUFFERED_LOAD=1` is the first thing I would try. The full measured configuration for one RX 7900 XTX (prefill ~3,180 tok/s at 12K-64K, decode 85-91 tok/s, no hangs; mostly upstream opt-ins that are off on gfx1100) and the benchmark scripts are here: https://github.com/rxr2/Strata/blob/rx7900/docs/RX7900XTX.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#1210
No description provided.