mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[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
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#680
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 @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:
0 MiB of VRAM free, theniq_embed_rows: unspecified launch failure, HTTP 503--expert-cache autoTo reproduce the "other program" without opening anything, I held 4.5 GB with a few
hipMalloc+hipMemsetcalls from Python (ctypes on the bundled amdhip64_7.dll).autois 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 writeauto, 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 andauto, which is how I found it.@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.
@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.