mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3726] [Other] Setup, low-RAM mode: KV streaming is never chosen (withdrawn: slower for agent workloads) #1558
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#1558
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 @altiber on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3726
Environment: Windows 11, Strata v0.2.2 (
011c9e60), engine 0.1.47 built from source (CUDA 13.0, archs 86;120), Q2_0 native pack, layer split over RTX 5070 Ti 16 GB + RTX 3070 8 GB (gpu: [0,1], card order 1,0), Ryzen 7 9700X, 31 GB RAM,--resident-experts,--max-context 131072 --kv int8, MTP +--spec 4.kv_streaming_wanted/ step 7 turn KV streaming on only whenram >= MODELS[model]["ram_gb"] + kv_ram + 1, i.e. when the RAM holds all the experts. On a low-RAM PC (31 GB with Q2_0) that is never true, so the KV cache stays in VRAM - although there the RAM copy is partial anyway and the GPU cache is what matters most.Turned on by hand (
--kv-resident 32768) on the PC above, with the WDDM fix from the companion issue:(The prompt figures are from different engine builds a day apart, same model and config otherwise; take them as indicative.)
Proposal: in the low-RAM mode stream as well, when the RAM has the KV cache plus 16 GB for the OS:
@github-actions[bot] commented on GitHub (Oct 22, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@altiber commented on GitHub (Oct 23, 2026):
Measured on a real coding-agent workload, I withdraw this proposal.
With
--kv-resident 32768(and the WDDM fix of #3725) the expert caches did grow as described (3070 stage: 1941 -> 2086 slots, 5070 Ti room 7.57 -> 8.65 GiB) and a cold ~20K prompt read faster in a synthetic bench. But on ~2 h of a Kilo agent run (525 requests vs 1323 before, same model and machine, medians by input length) the whole request was slower, worst for short prompts:The agent mostly appends a tail to a cached prompt, and that tail reads the RAM-held KV blocks. So for a low-RAM PC running an agent, keeping the KV cache in VRAM (the current rule) looks right.
@github-actions[bot] commented on GitHub (Oct 23, 2026):
Thanks, this follows the format now.