[GH-ISSUE #1706] Windows HIP: a fixed --expert-cache fails hard when other programs hold VRAM (0.1.40.2 3x slower, 0.1.41 launch failure) #680

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

Originally created by @jerem91150 on GitHub (Oct 9, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1706

Native Windows 11, RX 7900 XTX 24 GB, 64 GB RAM, Qwen3.8-Flash-Next IQ3_XXS, --expert-cache 7859 (fixed, calibrated on an idle card), 131K context.

Context: this came out of work I do across Strata and Project Maya on the same machine (Strata serves Qwen here, Maya runs GLM-5.3, and I compare and tune both). The VRAM-holding trick below served both: I wrote it for this Strata test and reused it on Maya.

With ordinary desktop programs open (Steam, a browser, Discord, a game launcher), about 4 to 5 GB of the card are taken before Strata starts. A fixed cache does not see that:

same test set (2 scene prompts, 9K, 27K) idle card ~4.5 GB held by another program
0.1.40.2, fixed cache 81 s 224 s with the real programs open (27K prompt 28.5 -> 126 s), Windows spills to shared memory
0.1.41, fixed cache 77 s does not answer: 0 MiB of VRAM free, then iq_embed_rows: unspecified launch failure, HTTP 503
0.1.41, --expert-cache auto 74.6 s 80.4 s

To reproduce the "other program" without opening anything, I held 4.5 GB with a few hipMalloc + hipMemset calls from Python (ctypes on the bundled amdhip64_7.dll).

auto is also faster on the idle card here (27K prompt 28.3 -> 23.7 s): the room it leaves goes to the prompt path. So on Windows I would suggest that setup write auto, or that a fixed value be clamped at start when the free VRAM it measures is short, instead of the warning followed by the launch failure. The warning in 0.1.41 does name the cause and auto, which is how I found it.

Originally created by @jerem91150 on GitHub (Oct 9, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1706 Native Windows 11, RX 7900 XTX 24 GB, 64 GB RAM, Qwen3.8-Flash-Next IQ3_XXS, `--expert-cache 7859` (fixed, calibrated on an idle card), 131K context. Context: this came out of work I do across Strata and Project Maya on the same machine (Strata serves Qwen here, Maya runs GLM-5.3, and I compare and tune both). The VRAM-holding trick below served both: I wrote it for this Strata test and reused it on Maya. With ordinary desktop programs open (Steam, a browser, Discord, a game launcher), about 4 to 5 GB of the card are taken before Strata starts. A fixed cache does not see that: | same test set (2 scene prompts, 9K, 27K) | idle card | ~4.5 GB held by another program | |---|---|---| | 0.1.40.2, fixed cache | 81 s | 224 s with the real programs open (27K prompt 28.5 -> 126 s), Windows spills to shared memory | | 0.1.41, fixed cache | 77 s | does not answer: `0 MiB of VRAM free`, then `iq_embed_rows: unspecified launch failure`, HTTP 503 | | 0.1.41, `--expert-cache auto` | **74.6 s** | **80.4 s** | To reproduce the "other program" without opening anything, I held 4.5 GB with a few `hipMalloc` + `hipMemset` calls from Python (ctypes on the bundled amdhip64_7.dll). `auto` is also faster on the idle card here (27K prompt 28.3 -> 23.7 s): the room it leaves goes to the prompt path. So on Windows I would suggest that setup write `auto`, or that a fixed value be clamped at start when the free VRAM it measures is short, instead of the warning followed by the launch failure. The warning in 0.1.41 does name the cause and `auto`, which is how I found it.
Author
Owner

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

The warning you saw is by design (recommend, never force: a fixed --expert-cache N is kept as asked). On Windows the free VRAM the engine reads at start runs high (WDDM), so a fixed cache sized on an idle card leaves nothing when other programs hold VRAM later; --expert-cache auto sizes from the free VRAM at start and keeps a floor of 2560 MiB. setup does not write a fixed number on Windows HIP (calibration is off there), so a fixed value comes from a hand edit or an old config: auto is the answer, as you found. We added nothing automatic; if you would like the engine to shrink a fixed cache to the free VRAM at start (with a log line), say so and we will make it an option.

<!-- gh-comment-id:6099700396 --> @Niko1221 commented on GitHub (Oct 10, 2026): The warning you saw is by design (recommend, never force: a fixed --expert-cache N is kept as asked). On Windows the free VRAM the engine reads at start runs high (WDDM), so a fixed cache sized on an idle card leaves nothing when other programs hold VRAM later; --expert-cache auto sizes from the free VRAM at start and keeps a floor of 2560 MiB. setup does not write a fixed number on Windows HIP (calibration is off there), so a fixed value comes from a hand edit or an old config: auto is the answer, as you found. We added nothing automatic; if you would like the engine to shrink a fixed cache to the free VRAM at start (with a log line), say so and we will make it an option.
Author
Owner

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

Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.

If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.

<!-- gh-comment-id:6156187777 --> @Niko1221 commented on GitHub (Oct 13, 2026): Thanks for the report. To keep the tracker current we are closing issues older than three days: [0.1.44](https://github.com/Niko1221/Strata/releases/tag/v0.1.44) is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1. If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.
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#680
No description provided.