mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #467] Windows + 32 GB RAM: the low-RAM resident mode never engages - the fit check runs after the engine's own cache warm-up #214
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#214
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 @icocoon on GitHub (Oct 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/467
Version: Strata 0.1.34 (ready-made
strata-windows-x64-hip.zipengine), WindowsOS: Windows 11 Pro (build 26300), AMD Software: Adrenalin driver 32.0.31035.1003
GPU: AMD Radeon RX 7900 XTX 24 GB (gfx1100)
CPU: Ryzen 7 7800X3D (AVX-512) | RAM: 32 GB (31.1 GiB usable) | Disk: NVMe SSD
Model:
ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUFIQ2_XS (revisioned59f92082b1e93c0e96d60a8b11aab089b52f09), installed by setup itself (--family qwen --model IQ2_XS)What happens
The low-RAM resident mode (
--resident-experts, chosen by setup) never engages on this PC; every start falls back to--mmap-expertswith:setup.py --checkitself says this configuration fits ("IQ2_XS needs ~48 GB RAM: fits in the low-RAM mode (the GPU holds ~53% of its experts, the rest stays in RAM)"), and MODELS.md states "a 32 GB PC with a 24 GB GPU runs Q2_0, IQ2_XS and the Coder this way".Measurements
I probed memory every 2 s from just before starting the server (setup-written config;
STRATA_RESIDENT_PIN=0as setup wrote it):The WARNING's position in the engine log shows when the fit check runs - after the engine has fully initialized:
The math
So the check cannot pass at the moment it runs, and no value of
STRATA_RESIDENT_HEADROOM_GIBhelps (for any headroom >= 0: 0.5 GiB - headroom < 16.2 GiB). On this machine the docs' "32 GB + a 24 GB card runs IQ2_XS in low-RAM mode" is not reachable on Windows.Impact
Not a crash: the mmap fallback works (server healthy, correct answers; an informal test measured roughly 47 tok/s including reasoning tokens). But the resident protection against memory pressure is not available - anything that shrinks the OS file cache sends the missing experts back to the SSD - and the documented 32 GB configuration silently degrades.
Possible fix direction
Read the available memory for the fit check before the engine warms its own caches (or reuse the reading taken at the start of initialization), similar in spirit to the #403 fix ("the safety check uses the same RAM reading"). The file-cache pages the engine itself has just created may be counted against available memory here; excluding the engine's own working set from the reading would also fix it.
Related: #403 (a clamped budget fails its own safety check), #250 (miscalculated limits despite theoretically available space), #286 (Windows low-RAM tier).
@Niko1221 commented on GitHub (Oct 2, 2026):
Fixed in 0.1.35. Your diagnosis was right: Windows counted the mapped experts the GPU cache had just read as part of the engine's working set, not as available. The engine now trims its working set before the check (it prints the available RAM before and after). When the RAM still can't hold the whole complement, it keeps the hottest experts that fit, by profile rank, instead of falling back to mmap for all of them. The answers are the same as with mmap. Run
START-HERE.bat(Linux:./setup.sh) once to update.