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#3536
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/1564
Author: @ShevchenkoVadim
Created: 10/8/2026
Status: ❌ Closed
Base:
main← Head:setup-budget-on-split📝 Commits (1)
6199adbsetup: UD-Q4_K_XL / UD-IQ4_XS keep their RAM budget on a layer split (#642)📊 Changes
4 files changed (+114 additions, -17 deletions)
View changed files
📝
docs/MULTI_GPU.md(+2 -1)📝
docs/UNSLOTH_Q4.md(+10 -3)📝
setup.py(+39 -11)📝
tools/test_setup_unsloth.py(+63 -2)📄 Description
Title
Issue: related to #1145 (the comment there: setup is stale for UD-IQ4_XS on several GPUs, a hand-built config was needed)
Summary
Since engine 0.1.40 (
fe9c10ca, #848) the resident RAM copy works on a layer split - every stage's cache is left out of it and the rest is ranked by the whole expert profile - and--resident-budget-gibruns through the same code (pin_cache_complement), so the engine no longer refuses the budget on a split.split_mmap()got the matching setup exemption in43c8cfa9, but the RAM budget's setup paths still assume the old engine (#498): a start of a UD-Q4_K_XL / UD-IQ4_XS config on several GPUs deletes--resident-budget-giband asks for ~135 GB of RAM, and--gpusat setup drops the budget too.This keeps the budget on a split from
RESIDENT_SPLIT_ENGINE, gated exactly like #642. The recommendations do not change (golden configs unchanged): one GPU stays the default; the split is used only when asked for.What changed
setup.pysplit_budget(): returns without touching the config whenresident_split()(assplit_mmap()does).offer_together(): a budget config is offered both cards at any RAM, with a message that the budget is kept; the default answer stays "n".unsloth_together(): with--gpus(also with an explicit--resident-budget-gib) or "2" when asked, the cards go together with the budget; asked as before with one GPU recommended;--yesalone keeps one GPU.q4_split(the "split without the budget" path) only beforeRESIDENT_SPLIT_ENGINE, so--resident-budget-gibstays in the args.tools/test_setup_unsloth.py: the #498 tests run withMIN_ENGINEpinned to 0.1.39 (asStartOnSeveralGpusdoes for #642); three new tests cover the kept budget at install (--gpus, explicit budget, the "2" answer) and at a start (--gpusat 165 and 64 GB, the offer).docs/UNSLOTH_Q4.md,docs/MULTI_GPU.md: the budget on a split.Extra Notes
Tests:
python -m unittest discover -s tools -p "test_setup_*.py"on Linux (the strata Docker image,STRATA_EXECVunset): 421 tests; the 2 failures intest_setup_engine_hashare the same on main without this change (no ready-made 0.1.41 engine to download from the test box).Measured on real hardware, engine 0.1.41, this branch's setup.py starting the config: RTX 3090 (PCIe x16) + RTX 3080 Ti (x4), i9-14900K, 91 GB RAM, UD-Q4_K_XL, budget 64 GiB, 262K context,
--no-prefill-borrow --prefill 4096, images on:Answers checked by hand (arithmetic, a list, an image). Before this change the same config on two cards lost its budget at every start.
#1145 ran
--resident-budget-gib 18on a 3-GPU split with engine 0.1.40 for 2 hours without crashes, NaN windows or stalls - the engine side of this.Not changed: the default stays one GPU for these models. On this box the split was +17% decode; whether two cards should become the recommendation (as #642 did for the low-RAM mode) is your call.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
--family swift#4676