mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #250] Forced Single-GPU Low-RAM mode and miscalculated total memory limits despite theoretically available space #132
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#132
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 @Darmian03 on GitHub (Sep 30, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/250
Firstly, I want to thank you for making this amazing project. Comparing Strata to Unsloth Desktop and LM Studio, I get around triple the generation speed on my machine, reaching an incredible 66 tokens per second (with 0 context). It's a phenomenal piece of software!
Description of the Issue
Currently, I am facing an issue where
setup.shforces a single-GPU Low-RAM mode for theIQ3_XXSsize and completely disables my secondary card. When passing multi-GPU flags, the setup script overrides the user configuration, printing:[!] the low-RAM mode runs on one GPU: using GPU 0 (NVIDIA GeForce RTX 5070 Ti, 16 GB) only.Furthermore, if I attempt to run with
--low-ram off, the script hard-refuses to boot, recommending that I downsize toQ2_0orIQ2_XS, completely blockingIQ3_XXS.When running:
In the end I get
There is also a very confusing warning at the end of the boot sequence:
[strata] WARNING: RAM is tight - the model's experts take 40.0 GB of this PC's 46 GB, leaving 5.5 GB for everything else.However, tools like
vmtouchreveal that because Low-RAM mode was forced, less than 4% of the weights are actually cached in physical RAM (the system RAM is almost entirely unutilized, and the model is bottlenecked by active SSD faulting/streaming).System Specifications
The Memory Math: Expectation vs. Validation Script
The
IQ3_XXSprofile requires roughly 47.0 GB of total memory footprint.My hardware pool easily covers this requirement when combining VRAM and system RAM:
Subtracting ~8-9 GB for Ubuntu and background apps leaves around 26 GB VRAM + 32 GB RAM completely free (58 GB available fast memory). Despite this, the validation logic flags the setup as starved for memory and enforces the single-GPU SSD mapping mode.
Steps to Reproduce & Terminal Output
I ran the setup script with the following flags targeting 128K context and int8 KV cache:
Full Terminal Output:
Diagnostic Verification via
vmtouchWhile the engine was running, I verified memory mapping residency using
vmtouch. Only 3.43% of the model is in active physical RAM cache:Misconfiguration, Bug, or Intended Behavior?
I am personally confused about whether I am misconfiguring the setup flags, or if this behavior is an intended design limitation or a bug in the script's multi-GPU logic. Given that the hardware meets the required 47 GB footprint through the combined VRAM and RAM pools, it feels like a bug that the script evaluates the system's memory capacity using a strict single-GPU threshold and forces a performance-degrading SSD streaming mode, but I may be entirely wrong.
@Niko1221 commented on GitHub (Sep 30, 2026):
The single GPU is by design in low-RAM mode (the engine can't combine it with a layer split yet), but the messages don't say so. 0.1.31 explains why and shows the RAM math, and
--low-ram off --yesproceeds instead of failing on the prompt. 0.1.30 already picks the resident low-RAM variant on your machine, so no SSD streaming there.@Darmian03 commented on GitHub (Sep 30, 2026):
I ran some comprehensive tests on version 0.1.30 using a large 10K token context to see how the different
--low-ramprofiles handle prompt reading (prefill) versus token generation (decode). Here is what I found on my setup:--low-ram resident(Average Decode: 52.7 tps)free -h) - this didn't happen in previous versions. It used around 36GB of RAM.--low-ram on(Prefill: 1,117 tok/s | Average Decode: 51.0 to 56.5 tps)--low-ram mmap(Prefill: 781 tok/s | Average Decode: 66.5 to 66.9 tps)--low-ram onmode.Takeaway regarding Storage & RAM:
Interestingly,
mmapdelivers about 23% higher decoding speed than the newresidentmode during active generation. Since my OS drive is a Kingston KC3000 PCIe 4.0 NVMe SSD (which has built-in hardware DRAM), the standard Linux kernel page cache seems to handle the MoE expert paging with very low latency once the initial prompt is read.To sum up: the new
residentlogic works great for fixing the multi-thousand token prefill bottleneck. However, for actual token decoding, standardmmapis still noticeably faster on this specific DDR5 and DRAM-cached SSD setup. This may works anly in this specific scenario and I am unfortunately unable to run this benchmark on another machine. I am open to run other benchmarks if you would like though.Looking forward to testing how the upcoming v0.1.31 multi-GPU layer split changes these numbers!
@Niko1221 commented on GitHub (Oct 1, 2026):
0.1.31: setup says why the low-RAM mode uses one GPU (the engine can't combine it with a layer split yet) and shows the RAM math;
--low-ram off --yesinstalls without asking.