mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #945] [CLOSED] setup: the low-RAM and KV-streaming decisions as functions #2928
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#2928
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/945
Author: @pipeob0
Created: 10/5/2026
Status: ❌ Closed
Base:
main← Head:feature/setup-rules📝 Commits (1)
ca11e33setup: the low-RAM and KV-streaming decisions as functions (low_ram_wanted, kv_streaming_wanted)📊 Changes
2 files changed (+62 additions, -3 deletions)
View changed files
📝
setup.py(+29 -3)📝
tools/test_setup_risk.py(+33 -0)📄 Description
Why
A front-end that wants to tell the user what would change on an installed model needs the same answer setup.py gives when it installs: is this model in the low-RAM mode here, does it stream its KV cache at this context. Step 5 and step 7 decided both inline, so anyone else had to re-derive the RAM math and would drift.
What
low_ram_wanted(model, ram, choice)andkv_streaming_wanted(model, ctx, kv, ram, choice)(pluskv_streaming_ram_gb), named next tolow_ram_fits; step 5 and step 7 now call them. The streaming branches keep their messages and say they arekv_streaming_wanted.low_ram_wantedis the oldbudget is None and (...), sincebudgetis set only for a size that has a RAM budget.Tests
test_setup_risk.RulesAgreeWithTheWrittenConfig: 54 mocked installs (3 sizes x 2 contexts x 3--kvx 3--kv-streaming) and 24 more (2 PCs x 4--low-ram), each comparing the written config's--kv-resident/--resident-experts/--mmap-expertswith the function.python -m unittest tools.test_setup_risk- no GPU, no download.AI
Written by an agent (pi) running on Strata's own local model (
qwen3.8-flash-next-iq3_s), reviewed and tested by hand on an RTX 5060 Ti 16 GB / Ryzen 7 5700X3D / 64 GB PC with engine 0.1.39.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.