mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #847] Allow system ram to be used instead of SSD when available. #376
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#376
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 @jarrodhroberson on GitHub (Oct 4, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/847
I have 192GB of system RAM, AMD 9950X, and Radeon R9700 AI Pro and 4TB PCIe 4 NVMe drive.
Running latest LTS Ubuntu.
Would strata run faster with the larger models I can run if all the spillover that is on disk was moved to a RAM DISK?
How much work to add a CLI switch to create a RAM disk and copy the SSD data to it and use it instead?
@jangatzke commented on GitHub (Oct 4, 2026):
You don't have to load the model into RAM. Linux will keep the weights in cache (RAM) after the first read as long as there is no memory pressure.
@apdogod123321-ops commented on GitHub (Oct 4, 2026):
what about windows?
@ecatvids-glitch commented on GitHub (Oct 5, 2026):
Windows also implements file caching for, I assume, similar results.
@Quantumcross commented on GitHub (Oct 5, 2026):
I'd like this feature too, I only have slow storage available but tons of ram available (weird in today's world I know), and I'd like to just make sure the n-gram lookup goes hot and stays hot on startup.
@Quantumcross commented on GitHub (Oct 5, 2026):
Ah looks like this is the
--ple-io ramflag? I think it should automatically detect that if it detects that the table is on rotational storage, but mine is on a zfs pool backed with rotational storage so it couldn't detect that.See:#605 #746
@apdogod123321-ops commented on GitHub (Oct 5, 2026):
it wont work for me on windows even when I do mmap it just still streams from nvme. I think we should try to make --ple-io ram work on windows.
@talisp commented on GitHub (Oct 5, 2026):
A data point from a large-RAM Linux box (251 GB RAM, 1 GPU with ~42 GiB usable, 0.1.39, Unsloth UD-IQ4_XS, whose experts are 55 GiB). Short version: for the experts you do not need a RAM disk. When the RAM is big enough, setup already keeps every expert in VRAM or RAM.
What setup and the engine did here:
RAM budget: 55 GiB of UD-IQ4_XS's experts in RAM, i.e.--resident-budget-gib 55in the generated args.freeshows 227 GB of buff/cache here, so the GGUFs stay cached), which is RAM too, as @jangatzke said.What still comes from the disk by default is the 28.8 GB n-gram (PLE) table. It is read with
--ple-io direct, unbuffered and past the page cache (docs/DETAILS.md, "Where the model lives").--ple-io ram(Linux, #605) keeps that table in RAM; it is the flag @Quantumcross found. We still run the default (direct, on a virtual disk), and we never neededram: decode is already fast here with the default, mostly at 90–190K tokens of context (official Qwen sampling, replies of 300+ tokens, from the engine log):So in our case the table on disk was not a visible bottleneck (impression;
rammight still add something, and we have not measured it).My opinion for 192 GB on Linux: run setup normally, so it picks the RAM budget, then add
--ple-io ramto the args instrata-<model>.json. Check the start log for theresident RAM modeline and the PLE line. I have no data for Windows.@Niko1221 commented on GitHub (Oct 6, 2026):
Part of this exists: the experts are loaded into RAM and the SSD is read only for what does not fit (--resident-budget-gib and the low-RAM modes, docs/DETAILS.md). Which RAM size and model are you using? If everything fits in RAM already, an extra RAM cache layer would not help.
@jarrodhroberson commented on GitHub (Oct 6, 2026):
not doing that on my machine Ubunutu 26.04, I have let it run overnight doing tests and the same RAM allocation the entire time, and I am pretty sure Windows would not cache 80GB either.
I have 182GB free all the time and it is still registering constant hits to my NVMe drive.
@jarrodhroberson commented on GitHub (Oct 6, 2026):
thanks I will try this and see what it does.
@Niko1221 commented on GitHub (Oct 7, 2026):
On Linux, --ple-io ram keeps the n-gram table in RAM and --resident-budget-gib (or --resident-experts) keeps the experts in RAM; 0.1.40 loads the --ple-io ram table on 16 threads. On Windows the file is mapped, so it still streams from the page cache; the docs say so. Closing with that answer.
@jarrodhroberson commented on GitHub (Oct 7, 2026):
thanks for the detailed information!