mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5061] [Engine] DeepSeek V4.1: auto RAM store loads ~18-25 GB of duplicate experts when every expert is already on the GPU (Strix Halo) #2352
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#2352
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 @boxwrench on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5061
Area
[Engine]
Desktop app, Terminal or source?
Source (a build)
What happened
On Strix Halo, every DeepSeek expert fits on the GPU, but the auto-sized RAM store still loads ~18–25 GB of experts into RAM, and nothing ever reads them.
The startup log shows all experts on the GPU:
The store is filled anyway. That was 24.5 GB on one start and 17.8 GB on another:
Every request afterwards logs
CPU lane 0.0% of the experts. On this integrated GPU the store comes out of the same RAM the model lives in:Expected: with no experts on the CPU lane, the auto size should be 0 and no store should be built.
Same pack and build, adding
--ssd-cache 0(context also raised from 32768 to 131072):--ssd-cache 01a1625e601A 58,834-token prompt then read at 741 tok/s and answered correctly, and MemAvailable stayed at ~35 GB.
Likely cause: in
init_store()(src/dsv41/ds4_model.cu), the auto-size branch already computes the CPU lane's expert bytes:That value is only used for a log message, and the store is built even when
lane_gbis 0.Suggestion: when the store is auto-sized and
lane_gb <= 0, skip it and log one line, for example "all experts are on the GPU: RAM store off". An explicit--ssd-cache NorDS4_STORE_GBwould still be honoured.Possibly related: #4605 (auto store sizing on Windows), but this one is about the store not being needed at all.
Smallest steps or command that reproduce it
On a 128 GB Strix Halo, without
--ssd-cache: the log shows "N of N in VRAM" followed by "RAM store: ... read in (xx GB)", and requests log "CPU lane 0.0%".Reproduction status
Reproduced locally
Strata version
Source build of commit
c62d5e3· engine ds4-0.1Graphics card, memory and system
Strix Halo (Radeon 8060S iGPU) · 128 GB unified RAM · Linux, ROCm 7.2.2
Model, size and settings
DeepSeek-V4.1-Flash IQ2_XXS · 32K context (then 128K for the comparison) · pictures off