mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1210
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @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-expertsand a layer split. Short prompts work; every long prompt I tried hangs during prompt prefill (16K, 40K and 100K tokens). Two outcomes:no progress for 60 s ... waiting for the GPU (attention, router) at layer N of the prompt chunk from token M(issue #29).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
rocm/pytorch:rocm10.1.0_ubuntu24.04_py3.12_pytorch_release_2.14.0--resident-expertsExact flags (conservative run that still failed)
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
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, sentthrough
/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 KBserver.out); the key lines are below. dmesg timestamps are UTC.Conservative run (64K, 16K-token prompt):
128K run, 40K-token prompt (memlock raised to unlimited):
Kernel, 128K run with a 100K-token prompt:
The engine printed the matching userspace error:
Kernel, 128K run, 40K-token prompt (after
RLIMIT_MEMLOCKwas raised tounlimited;init_user_pagesstill failed 1814 times at start):What I tried / ruled out
rocm-smi --showtopoaccessreportsGPU0 -> GPU1 = False; RDNA3consumer 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).RLIMIT_MEMLOCK=unlimited; thewatchdog/GPU failure persisted and
init_user_pageskept failing.--pcie-frac 0(no PCIe expert fetches) did not help.--prefill 4096did not help; the stall moved fromlayer 12/token 16384 to layer 29/token 0.
--vram-reserve-mib 1024left 798/846 MiB free; still hung.HSA_USERPTR_FOR_PAGED_MEM=0(as in #1705)did not help on this machine.
Single-GPU baseline (same model, same engine)
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).
So the Q2_0 pack, tokenizer, MTP, 128K context and the single-GPU path are fine.
Related issues
HSA_USERPTR_FOR_PAGED_MEM=0fixed it there. In a comment, HackityAnn reportsthe same class on 2x RX 9070 XT with
--resident-experts+ layer split whereHSA did not help, but
GPU_PINNED_MIN_XFER_SIZE=1048576did.A comment traces it to GFXOFF + SDMA adaptive expert swaps and reports
STRATA_HIP_ADAPT_KERNEL_COPY=1and disabling GFXOFF as fixes.--pipeline-windows 2+ MTP, exits on an18K 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 runthem 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.outand the dmesg excerpts from the three runs.@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).
@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...
@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
}
@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...
@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.
@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.
@bbob8735 commented on GitHub (Oct 19, 2026):
Another 2x 7900-class report, with two findings that may matter:
numa_balancingwas already offhere, and
HSA_ENABLE_SDMA=0was not sufficient (hang within ~7 minutes). On this host thepage-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
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.venvby setup; the system ROCm is6.4 and too old), hipBLASLt 1.2.0 (setup selected
tools/hip/gfx1100-hipblaslt-100200.txt)kernel.numa_balancing = 0, single NUMA node38bb39e, all four shards SHA-256 verified) in theRAM-budget / mapped mode - experts read from the GGUFs in place,
--resident-budget-gib/v1/chat/completions, long multi-turnconversations, prompts 75K-170K tokens, one request at a time (no
--parallel)Engine command line:
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_tokensset server-side.)Startup is healthy every time - a representative instance:
Symptoms
28 engine starts in ~3.5 hours of normal use (26 of them crash-restarts), in two families, both
while reading a prompt:
Exit codes seen: 14x -6, 12x -15.
Restart timeline (local time, engine starts; the gaps are the ~4 min model reload):
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, nodevice losthere - the cards stay usable and the engine restarts cleanly everytime (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:
What did not fix it
Each applied in isolation, each followed by a recurrence:
--vram-reserve-mib700 -> 1280 -> 3072native 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-mib1084 -> 2048--resident-budget-gib35 -> 28STRATA_SPLIT_OVERLAP=1-> unsetSTRATA_HC_SPLIT=0(staged hyper-connection read off)STRATA_STAGE_TRIM=1+ explicit--layer-split 26HSA_USERPTR_FOR_PAGED_MEM=0(#1705)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 themlockpath, whereRLIMIT_MEMLOCK(7.84 GiB here) binds, while the default HIP registration path is not bound by it.HSA_ENABLE_SDMA=0(this thread)STRATA_WATCHDOG_S=180+STRATA_ENGINE_STALL_S=240#2675 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-context262144 -> 196608Not tested: single-GPU (
--gpu 0) on this box. The model's experts do not fit one card's cachehere, 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:
Per-request I/O, from the engine's own line, on a request that completed:
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), withactive 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=0held ~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_SPLITis not documented indocs/; 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") andAMD_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 butdoes point AMD users at
--backend hip --gpus 1,0.STRATA_STAGE_TRIM=1with anexplicit
--layer-splittook the two caches from 11,930 to 12,756 expert slots and was the singlelargest 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).@leanrazor commented on GitHub (Oct 19, 2026):
How did you manage to get
cap, stock clocks
2 PcIE x16 with ryzen 5 series? What board is that. I can't find such a
thing in X870e! :D
@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:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.
@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:
#29no-progress hangs#267verify timeouts19 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:
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=0did 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-contextor 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 mmapfixed it completely: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 mmaplooks 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-mibonly governs the first stage while--vram-reserve-later-mibgoverns the rest.I hit this three times in one session:
native dense upload blk.3.attn_output.weight: out of memory(exit -6) when theengine restarted while the previous instance was still releasing VRAM
--vram-reserve-mibtook CUDA0 to 1662 MiB free but left CUDA1 at 768--vram-reserve-later-mibtook CUDA1 to 768 MiB but left CUDA0 dropping to 430 MiBmid-request, which trips the
#2065"below 512 MiB" warningIt 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=1with an explicit--layer-splitwas the single largest tuning win on thishardware: 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_SPLITstill is not documented indocs/.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.
@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-expertsin 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), withsvm_range_restore_workinjournalctl -kwhile 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:
STRATA_UNBUFFERED_LOAD=1(file tier with O_DIRECT)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_balancingandHSA_ENABLE_SDMAwere not changed here.If you still run a model whose experts do not fit in VRAM + RAM,
STRATA_UNBUFFERED_LOAD=1is 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