mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#2868
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/848
Author: @Hardin22
Created: 10/4/2026
Status: ❌ Closed
Base:
main← Head:pr/split-resident📝 Commits (3)
b77dfbaLayer split: --vram-reserve-later-mib, a separate reserve for the later cards17794acResident RAM mode with a layer split01c141esetup: the low-RAM mode's resident variant on several GPUs (#642)📊 Changes
4 files changed (+170 additions, -44 deletions)
View changed files
📝
docs/MULTI_GPU.md(+23 -0)📝
setup.py(+34 -14)📝
src/program/generate.cpp(+83 -30)📝
tools/test_setup_risk.py(+30 -0)📄 Description
Refs #642. Two of the pieces you listed there as still open: the resident RAM mode on a layer split, and
--vram-reserve-later-mib. Three commits, each one reviewable by itself:--vram-reserve-later-mib N: the reserve of every card after the first (default:--vram-reserve-mib's value), used by the split search and by each later card's cache sizing. The card that drives the monitors needs more headroom than one that drives none.--resident-expertsno longer turns into--mmap-expertson a split:host_resholds slot numbers of whichever cache owns the layer, so reading a later stage's slot out of CUDA0's cache put another expert's bytes in RAM, and the answers turned to garbage after the first swaps. This was latent upstream because the guard kept the mode off a split.split_mmapleaves a resident config alone. Gated onMIN_ENGINE >= RESIDENT_SPLIT_ENGINE, which I set to(0, 1, 40)as a guess at the release that would carry it: until then setup behaves as today and the golden configs don't move. Please change the number if it's another release.Measured
Swift 1.5 IQ3_XXS at 160K (q4_0 KV,
--prefill 4096,--spec 4with the stock draft layer,--pool-workers 15). RTX 4060 Ti (layers 0-19) + RTX 5080 (20-47, display), i9-14900KF, 32 GB of RAM, Windows 11. Four greedy prompts (code, Italian prose, C, English prose), 400 tokens max, decode tok/s averaged over the four:6f32ec0, 5080 alone,--resident-experts6f32ec0, split 20,--mmap-experts(what--resident-expertsbecomes)--resident-experts(21.8-22.1 GiB of experts locked in RAM)The mmap split catches up once the OS file cache holds the experts, and only because nothing else was running on the PC. The resident copy is there from the first request, and it stays locked when other programs want the RAM.
--pcie-frac 0 --adapt-every 0 STRATA_IQ_MT_MIN=1, the split's greedy output is identical to upstream's--mmap-expertson the same split (4/4 prompts, 400 tokens each).--vram-reserve-mib 300 --vram-reserve-later-mib 1800on the same PC: the 4060 Ti's cache goes from 4551 to 4867 slots (vs--vram-reserve-mib 1000for both), and the 5080 keeps 1.3 GB free with everything loaded.tools/test_setup_*.pypass (260 tests). Two new tests intest_setup_risk.pyrun the new paths withMIN_ENGINEpatched.Notes
STRATA_RESIDENT_REMOTE=1) edits the same guard in generate.cpp, so whichever goes second has a small textual conflict there.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.