mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #498] setup: offer the layer split (--gpus) for UD-Q4_K_XL when the GGUFs fit in RAM — the engine already runs it without the budget (2x RTX 3090: 31 → 64-78 tok/s) #229
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#229
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 @mad9home on GitHub (Oct 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/498
Summary
docs/UNSLOTH_Q4.mdsays UD-Q4_K_XL is "one GPU only: with--gpusit uses the first one". The reason is the RAM budget mode (--resident-budget-gib), which the engine refuses with a layer split (generate.cpp: "--resident-cpu-experts does not support layer splits"). Without the budget, the engine already splits UD-Q4_K_XL across two cards, reading the experts that the GPUs do not hold through the OS file cache. On a PC with enough RAM for the GGUFs, this roughly doubles decode speed.Proposal: when
--gpusis given (or two usable cards are found) and the RAM can hold the GGUFs plus headroom, setup could drop--resident-budget-giband write"gpu": [..], "layer_split": "auto". That is the mapped mode that #384 already uses for the low-RAM resident variant. It would bridge the gap until the "real resident mode across a split" from #384 lands.Setup
v0.1.35,d9ab843), Docker image built from source, sm_86, no vision38bb39e, SHA-256 verified, mounted read-onlyConfig: the one that setup wrote for one GPU, edited by hand:
The engine starts with
layer split across GPUs [0, 1] (auto), and the expert cache holds 4,077 experts (11.99 GiB).Results
Warm runs (each load gets at least 3 warm-up requests first, because Q4 decode drifts up after a load), 1,024 generated tokens, greedy, thinking off,
strata-bench.py-style prompts:/v1/modelsanswersThese numbers match PR #417 (2x RTX PRO 4500, UD-Q4_K_XL: 61.5 → 111.5 tok/s short, 70 → 130 tok/s at 128K), which also had to run the split "in the default cache mode (the resident budget cannot be combined with a split)".
RAM
This is the concern from #384, so I measured
MemAvailableevery 2 s through warm-up, the 4K runs and the 128K run:MemAvailable: 68 GiB of 165 GiB, stable, no swapping, no 0-free episodeSo on a PC with RAM well above the GGUF size, the mapped mode is safe. The 0-free case in #384 was 47 GB of RAM with a ~70 GB model. A threshold of roughly "GGUF size + 24 GB" (the same headroom the budget already uses) would separate the two cases.
Possible setup change
--gpus(oroffer_togetherfinds a pair) and RAM ≥ GGUF size + headroom: write the split config without--resident-budget-gib(mapped mode), and print a note that the experts come through the file cache.UNSLOTH_Q4.md, change "One GPU only" to describe the condition.Happy to test a branch on this box (2x 3090, 165 GiB), or to open a PR for the setup part if you prefer.
@Niko1221 commented on GitHub (Oct 2, 2026):
Released in 0.1.37: with ~135 GB of RAM or more and two or more cards, setup offers the layer split for UD-Q4_K_XL (without the RAM budget: the experts are loaded into RAM);
--gpusis honoured, and a start with--gpuson a budget config no longer fails. Thanks!