mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3692] [Engine] Windows HIP: expert cache auto shrinks to ~3,100 slots while ~4.4 GiB of VRAM sit free - the free-VRAM read after the memset reports near zero under WDDM, and the size follows the pagefile state #1531
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#1531
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 @dai8647 on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3692
Area
[Engine]
Desktop app, Terminal or source?
Source (engine built from the release tag on Windows, HIP build).
What happened
expert cache autocan shrink the cache far below what the card actually hasfree, and how far it shrinks depends on the machine's pagefile/commit state
rather than on the model.
Same binary, same config, same card, two days:
expert cache 3087 slots, 4,456 MiB freeexpert cache 4480 slots, 7.29 GiB of VRAMOn the 18th the engine gave itself 1,393 fewer expert slots (about 30% of
the cache) while roughly 4.4 GiB of VRAM sat unused. The engine's own log
shows the mechanism:
The free-VRAM read that happens after the slots are written reports close
to zero under WDDM, so the shrink loop steps the cache down by quarters. On
the 18th the same read said "only 4,456 MiB free" and the loop stopped at
3,087 slots; on the 21st it said 1,119 MiB and it stopped at 4,480. The
difference between the two days was the pagefile/commit state, not the GPU.
Why it matters: the expert cache is what keeps the decode fast, and the engine
also warns about the opposite extreme ("only 996 MiB of VRAM free at the start
of this request (below 1024 MiB): when the card is this full the driver can
page GPU memory to system RAM, decode falls to a few tok/s"). The same read
that overshoots on one day produces an under-filled cache, and on another day
it produces the driver-paging warning.
Smallest steps or command that reproduce it
--expert-cache auto,--vram-reserve-mib 1280.size), then boot again after restoring a System-managed paging file.
expert cache N slotsline between the two boots.Reproduction status
Reproduces on every boot while the paging file is off or small; the same
binary on the same card boots at 4,400+ slots once a System-managed paging file
is back. Two boots on the same day with the same paging-file setting gave the
same number, so it follows the memory state, not the day.
Strata version
0.1.44.1 (the shape is the same on 0.1.45 and 0.2.0-beta, which shrink to
3,087 slots with "only 0 MiB free once the slots are written").
Graphics card, memory and system
RX 7800 XT 16 GB (gfx1101) · 96 GB RAM · Ryzen 5 5500 (AVX2) · Windows 11
(pagefile off in the first run, System-managed 9 GiB in the second)
Model, size and settings
Swift-Qwen3.8-Flash-Next IQ3_XXS (Swift-abliterated), pack
packs/swift_mmap,--expert-cache auto --vram-reserve-mib 1280 --resident-budget-gib 40Logs
A suggestion: the free-VRAM read right after the memset decides the final
size, and under WDDM it is the least reliable number of the whole boot. A
read taken a moment later (after the driver has settled), or one that compares
the free amount against the amount the slots actually reserved, would keep the
cache near the card's real capacity in both situations. Alternatively the
shrink could stop at the size the earlier auto estimate already proposed
(3,530 slots here) instead of going below it.
@github-actions[bot] commented on GitHub (Oct 22, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Oct 22, 2026):
Thanks, this follows the format now.
@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:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.