[GH-ISSUE #4116] [Engine] IQ3_S fails to start on a 64 GB-visible Strix Halo (Windows): the expert arena exhausts available RAM (error 1453) #1802

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

Originally created by @qwertie on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4116

Area

Engine

Desktop app, Terminal or source?

Source (START-HERE.bat, run-iq3_s.bat).

What happened

IQ3_S does not start on my machine with 64GB RAM + 64GB VRAM (Ryzen AI Max+ 395 / Strix Halo) under Windows.
The engine copies every expert into RAM (the expert arena), RAM runs out and Windows refuses a read:

[strata] loading the experts into RAM (about 55 GB) and locking part of them for the GPU.
...
[strata] still starting (79 s) - please wait ...
Traceback (most recent call last):
  File "C:\AI-models\Strata\serve\server.py", line 8717, in <module>
    sys.exit(main())
             ~~~~^^
  File "C:\AI-models\Strata\serve\server.py", line 8417, in main
    engine = StrataEngine(exe, engine_args(cfg) + (effort_end or []), cwd=cfg.get("cwd"), log=cfg.get("log"),
                          env=env, lazy=lazy)
  File "C:\AI-models\Strata\serve\server.py", line 1119, in __init__
    raise EngineDied(why + (f" (see {log})" if log else "") + note +
                     start_failure_hint(log, log_start) + tail)
EngineDied: the engine exited before it was ready (see C:\AI-models\Strata\strata-iq3_s.log)
the engine process ended: exit code 1
the engine log's last lines:
  strata generate: PCIe probe: 75.4 GB/s host->device (best of 74.4 75.4 46.2 44.2) -> pcie_frac 0.55 (default 0.55)
  strata generate: native pack: C:\AI-models\Strata-data\packs\iq3_s experts (largest blob 2.66 MB), token embedding IQ4_XS in mapped host memory (322 MiB, 0.5 s)
  strata: Strix Halo (gfx1151): 8-bit hyper-connection weights are on (decode about 9% faster, answers can differ in near-tie tokens); STRATA_HC_Q8=0 keeps the bf16 read
  strata generate: 266 MiB of weights loaded from C:\AI-models\Strata-data\packs\iq3_s in 0.5 s (494 canonical tensors skipped: served natively)
  strata: STRATA_HC_Q8=1: 0.62 GiB of Q8_0 hyper-connection projections for the verify read
  strata generate: 496 native projection matrices, 2656.38 MiB of weights, in 6.3 s
  strata generate: control vector mode = project, dir = per-layer, layers 4..44 (41 steered)
  strata generate: PLE direct read probe: 93912 rows/s (fine)
  strata generate: the SSD is kept awake while rows are read: one page of the table after 100 ms without a read, until 60 s after the last request (STRATA_SSD_KEEPALIVE=0 turns it off)
  strata generate: profile C:\AI-models\Strata\data\expert-profile.bin: 24576 ranked pairs, built for 24576 slots
  strata generate: PLE on, table 320001536 rows of C:\AI-models\Strata-data\models\IQ3_S\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf
  strata mtp: draft layer loaded, 1034 MiB of VRAM (experts 675, dense 111), files read in 0.54 s (1464 MiB/s)
  strata: STRATA_Q6_PACKED=1 packed the output head (248320 x 2560, +497.3 MiB)
  strata generate: experimental native Q5_K head, 521472000 bytes, in 1.2 s
  strata generate: GPU 0: AMD Radeon(TM) 8060S Graphics (gfx1151)
  strata generate: HIP runtime C:\AI-models\Strata\engine\amdhip64_7.dll
  strata generate: expert arena read unbuffered (0 of 16 probe reads from the file cache; 0.0 GiB available, 51.1 GiB of files)
  prefill gemm: hipBLASLt tuning enabled (32 rows, gfx1151, version 100500)
  strata prefill: warmed the BF16 and FP16 GEMM libraries on GPU 0 in 37963 ms (STRATA_PREFILL_WARM=0 skips)
  strata generate: ArenaExpertSource: the expert load was refused: short unbuffered read of layer 4 in C:\AI-models\Strata-data\models\IQ3_S\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf (error 1453)

Log (Error 1453 is ERROR_WORKING_SET_QUOTA):

strata generate: memory guard: limit 63.6 GiB (source: meminfo), current 27.4 GiB, reclaimable cache credited 0.0 GiB; available 36.2 GiB (MemAvailable 36.2 GiB), floor 2560 MiB
strata generate: expert arena read unbuffered (0 of 16 probe reads from the file cache; 0.0 GiB available, 51.1 GiB of files)
strata generate: ArenaExpertSource: the expert load was refused: short unbuffered read of layer 21 in ...IQ3_S-00001-of-00002.gguf (error 1453)

The README says Strata "switches to its low-RAM mode by itself" but it doesn't because

  1. (low_ram_needed in setup.py) it compares the total RAM with the experts plus 10 GB: 63.6 > 50.3 + 10
  2. But drivers and other programs already hold >26 GiB on my PC (the experts are 46.8 GiB)

--resident-experts added by hand fixes it, but I propose this should be automatic.

Smallest steps or command that reproduce it

  1. Use a PC whose free RAM at start is smaller than the model's experts
  2. Use setup's defaults and start it (run-iq3_s.bat).

Proposed change

When the arena cannot fit the RAM available at start (with 1 GiB to spare), enable resident
low-RAM mode (--resident-experts) automatically and say so on console. In the nonstandard case that --expert-profile
is disabled, use --mmap-experts instead. Opus5.5 proposes a check in the engine rather than setup because the
engine sees the RAM that is free when the model starts.

Draft PR: https://github.com/Niko1221/Strata/pull/4117. On this PC, the same build with the change starts the same config and works as if
--resident-experts was added manually:

Engine 0.1.49.2 (gfx1151 build) Low-RAM mode Start Decode, two 400-token answers (one run)
unchanged, setup's config no failed, error 1453 -
unchanged, --resident-experts added by hand ready in about 7.5 min 19.3, 20.3 tok/s
with the change, setup's config taken at start ready in about 6.5 min 18.8, 21.1 tok/s

Questions for the maintainers:

  • Is the engine the right place for this check, or would you rather fix setup's rule (free RAM instead of total
    RAM) instead?
  • One case changes: on Windows, a start that works today only because Windows pushes other programs into the page
    file to make room for the arena would now take the low-RAM mode, because that RAM is not counted as available.
    Is that acceptable?
  • The SYCL engine has its own generate.cpp with the same arena path. Opus can port the check, but not build or
    run SYCL here.

Reproduction status

Reproduced locally on engine 0.1.49.2 built from main at 7dd5cf18 for gfx1151 (33.3 GiB available, error 1453 at layer 0).

Strata version

App 0.2.3 from source, engine 0.1.48. Also engine 0.1.49.2 built from main at 7dd5cf18 (tools\hip\build_windows.bat, STRATA_HIP_ARCHS=gfx1151).

Graphics card, memory and system

AMD Ryzen AI Max+ 395 with Radeon 8060S (gfx1151), 128 GB LPDDR5X, 64 GB BIOS carve-out (Windows sees 63.6 GiB),
86 GB page file. Windows 11 Pro 10.0.26200. The engine's bundled HIP runtime (amdhip64_7.dll).

Model, size and settings

Qwen3.8-Flash-Next IQ3_S (GSQ-RCO), setup's config: --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --max-context 204800 --kv int8 --vision --vram-reserve-mib 700, the experimental speed projection on. Pictures on
(the GPU picture reader does not start on gfx1151, so it falls back to the CPU).

Related: #2295 (a different Windows arena error, 1450 with large pages, closed in the tracker reset) and #3861
(gfx1151 on Windows, speed).

Originally created by @qwertie on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4116 ### Area Engine ### Desktop app, Terminal or source? Source (`START-HERE.bat`, `run-iq3_s.bat`). ### What happened IQ3_S does not start on my machine with 64GB RAM + 64GB VRAM (Ryzen AI Max+ 395 / Strix Halo) under Windows. The engine copies every expert into RAM (the expert arena), RAM runs out and Windows refuses a read: ``` [strata] loading the experts into RAM (about 55 GB) and locking part of them for the GPU. ... [strata] still starting (79 s) - please wait ... Traceback (most recent call last): File "C:\AI-models\Strata\serve\server.py", line 8717, in <module> sys.exit(main()) ~~~~^^ File "C:\AI-models\Strata\serve\server.py", line 8417, in main engine = StrataEngine(exe, engine_args(cfg) + (effort_end or []), cwd=cfg.get("cwd"), log=cfg.get("log"), env=env, lazy=lazy) File "C:\AI-models\Strata\serve\server.py", line 1119, in __init__ raise EngineDied(why + (f" (see {log})" if log else "") + note + start_failure_hint(log, log_start) + tail) EngineDied: the engine exited before it was ready (see C:\AI-models\Strata\strata-iq3_s.log) the engine process ended: exit code 1 the engine log's last lines: strata generate: PCIe probe: 75.4 GB/s host->device (best of 74.4 75.4 46.2 44.2) -> pcie_frac 0.55 (default 0.55) strata generate: native pack: C:\AI-models\Strata-data\packs\iq3_s experts (largest blob 2.66 MB), token embedding IQ4_XS in mapped host memory (322 MiB, 0.5 s) strata: Strix Halo (gfx1151): 8-bit hyper-connection weights are on (decode about 9% faster, answers can differ in near-tie tokens); STRATA_HC_Q8=0 keeps the bf16 read strata generate: 266 MiB of weights loaded from C:\AI-models\Strata-data\packs\iq3_s in 0.5 s (494 canonical tensors skipped: served natively) strata: STRATA_HC_Q8=1: 0.62 GiB of Q8_0 hyper-connection projections for the verify read strata generate: 496 native projection matrices, 2656.38 MiB of weights, in 6.3 s strata generate: control vector mode = project, dir = per-layer, layers 4..44 (41 steered) strata generate: PLE direct read probe: 93912 rows/s (fine) strata generate: the SSD is kept awake while rows are read: one page of the table after 100 ms without a read, until 60 s after the last request (STRATA_SSD_KEEPALIVE=0 turns it off) strata generate: profile C:\AI-models\Strata\data\expert-profile.bin: 24576 ranked pairs, built for 24576 slots strata generate: PLE on, table 320001536 rows of C:\AI-models\Strata-data\models\IQ3_S\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf strata mtp: draft layer loaded, 1034 MiB of VRAM (experts 675, dense 111), files read in 0.54 s (1464 MiB/s) strata: STRATA_Q6_PACKED=1 packed the output head (248320 x 2560, +497.3 MiB) strata generate: experimental native Q5_K head, 521472000 bytes, in 1.2 s strata generate: GPU 0: AMD Radeon(TM) 8060S Graphics (gfx1151) strata generate: HIP runtime C:\AI-models\Strata\engine\amdhip64_7.dll strata generate: expert arena read unbuffered (0 of 16 probe reads from the file cache; 0.0 GiB available, 51.1 GiB of files) prefill gemm: hipBLASLt tuning enabled (32 rows, gfx1151, version 100500) strata prefill: warmed the BF16 and FP16 GEMM libraries on GPU 0 in 37963 ms (STRATA_PREFILL_WARM=0 skips) strata generate: ArenaExpertSource: the expert load was refused: short unbuffered read of layer 4 in C:\AI-models\Strata-data\models\IQ3_S\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf (error 1453) ``` Log (Error 1453 is `ERROR_WORKING_SET_QUOTA`): ``` strata generate: memory guard: limit 63.6 GiB (source: meminfo), current 27.4 GiB, reclaimable cache credited 0.0 GiB; available 36.2 GiB (MemAvailable 36.2 GiB), floor 2560 MiB strata generate: expert arena read unbuffered (0 of 16 probe reads from the file cache; 0.0 GiB available, 51.1 GiB of files) strata generate: ArenaExpertSource: the expert load was refused: short unbuffered read of layer 21 in ...IQ3_S-00001-of-00002.gguf (error 1453) ``` The README says Strata "switches to its low-RAM mode by itself" but it doesn't because 1. (`low_ram_needed` in `setup.py`) it compares the total RAM with the experts plus 10 GB: 63.6 > 50.3 + 10 2. But drivers and other programs already hold >26 GiB on my PC (the experts are 46.8 GiB) `--resident-experts` added by hand fixes it, but I propose this should be automatic. ### Smallest steps or command that reproduce it 1. Use a PC whose free RAM at start is smaller than the model's experts 2. Use setup's defaults and start it (`run-iq3_s.bat`). ### Proposed change When the arena cannot fit the RAM available at start (with 1 GiB to spare), enable resident low-RAM mode (`--resident-experts`) automatically and say so on console. In the nonstandard case that `--expert-profile` is disabled, use `--mmap-experts` instead. Opus5.5 proposes a check in the engine rather than setup because the engine sees the RAM that is free when the model starts. Draft PR: https://github.com/Niko1221/Strata/pull/4117. On this PC, the same build with the change starts the same config and works as if `--resident-experts` was added manually: | Engine 0.1.49.2 (gfx1151 build) | Low-RAM mode | Start | Decode, two 400-token answers (one run) | | --- | --- | --- | --- | | unchanged, setup's config | no | failed, error 1453 | - | | unchanged, `--resident-experts` added | by hand | ready in about 7.5 min | 19.3, 20.3 tok/s | | with the change, setup's config | taken at start | ready in about 6.5 min | 18.8, 21.1 tok/s | Questions for the maintainers: - Is the engine the right place for this check, or would you rather fix setup's rule (free RAM instead of total RAM) instead? - One case changes: on Windows, a start that works today only because Windows pushes other programs into the page file to make room for the arena would now take the low-RAM mode, because that RAM is not counted as available. Is that acceptable? - The SYCL engine has its own `generate.cpp` with the same arena path. Opus can port the check, but not build or run SYCL here. ### Reproduction status Reproduced locally on engine 0.1.49.2 built from `main` at 7dd5cf18 for gfx1151 (33.3 GiB available, error 1453 at layer 0). ### Strata version App 0.2.3 from source, engine 0.1.48. Also engine 0.1.49.2 built from `main` at 7dd5cf18 (`tools\hip\build_windows.bat`, `STRATA_HIP_ARCHS=gfx1151`). ### Graphics card, memory and system AMD Ryzen AI Max+ 395 with Radeon 8060S (gfx1151), 128 GB LPDDR5X, 64 GB BIOS carve-out (Windows sees 63.6 GiB), 86 GB page file. Windows 11 Pro 10.0.26200. The engine's bundled HIP runtime (`amdhip64_7.dll`). ### Model, size and settings Qwen3.8-Flash-Next IQ3_S (GSQ-RCO), setup's config: `--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --max-context 204800 --kv int8 --vision --vram-reserve-mib 700`, the experimental speed projection on. Pictures on (the GPU picture reader does not start on gfx1151, so it falls back to the CPU). Related: #2295 (a different Windows arena error, 1450 with large pages, closed in the tracker reset) and #3861 (gfx1151 on Windows, speed).
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. 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:6660023847 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. 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).
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#1802
No description provided.