mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2261] [0.1.43.1] RTX PRO 6000 96 GB: setup keeps KV streaming on although every expert fits in VRAM - turning it off gives decode +9.5 %, agent decode +13 %, 16K TTFT -23 % #904
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#904
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 @beastrobin on GitHub (Oct 13, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2261
What setup chose, and why it is wrong here
setup.py decides KV streaming from system RAM ("the owner's rule",
--kv-streaming auto, around the code that prints "the KV cache stays in VRAM (fewer cached experts)"). With this install (iq3_s,--max-context 262144 --kv int8) it wrote--kv-resident 32768: at contexts above 64K the K/V streams from pinned RAM and only 32768 cells per QSA layer stay in VRAM. The reasoning is sound when the KV competes with an expert cache that cannot hold everything. On this PC it cannot:So streaming costs PCIe and stalls and buys nothing. The engine log confirms the cost during prompt reads:
KV streaming: 47-65 % of block reads hit VRAM, 50-365 MiB read from RAMper request at 40-64K context.A/B (same machine, same day, same session)
Engine 0.1.43.1 (release build,
a0116b27), RTX PRO 6000 Blackwell Workstation Edition (96 GiB, sm_120), Core Ultra 9 285K, 253 GiB RAM, Windows 11 26200, driver 610.74, GPU power capped at 300 W for both arms. Suite:python tools/strata_bench.py --url http://127.0.0.1:8200 --long --runs 2. Only one setting differs:--kv-resident 32768vs--kv-resident 0(the latter means "all cells in VRAM"). Medians of two runs each.Both results folders (
results.json+ engine log excerpts) can be attached:bench/results/2026-10-13-community-rtx-pro-6000-blackwell-worksta-qwen3-8-flash-next-iq3-sand-2.Suggested rule (one sentence before code)
When
--expert-cache autofills every slot (all experts resident) and the free VRAM after loading is more thanmax_context x the int8 K/V per token, keep the KV fully in VRAM regardless of context size — i.e. treat "streaming from 64K" as a consequence of the expert cache's needs, not of the context length alone. The RAM test stays the guard it is today when some experts are not resident.Not tested
Not tested: contexts above 262144 (where full residency may genuinely not fit),
--kv k8v4, multi-GPU splits with this setting, vision-heavy sessions at long context, and whether one intermediate kv-resident value between 32768 and full captures most of the gain on smaller big cards (24-32 GB). Two runs per arm only; the ranges for the chat numbers are wide because batch windows interleave.Arm A — as installed (--kv-resident 32768)
Community benchmark on NVIDIA RTX PRO 6000 Blackwell Workstation Edition
Measured on 2026-10-13 with
tools/strata_bench.py(suite 1, 2 runs per test, medians with ranges). Speeds are the engine's own timings; first-token times are measured by the client over HTTP. Speed only: no correctness check was run.Hardware and software
Model and configuration
Method
Run by
python tools/strata_bench.py --long --runs 2against the HTTP API of a Strata server (already running); model loading is not timed. One warm-up chat and a 1K prompt are discarded first. Every prompt starts with a unique tag, so the conversation cache cannot help the fresh-prompt tests.tools/ab_engine.py, up to 100 new tokens, 2 runscached_tokens) and timings (prompt_n)Results
Ranges are the lowest and highest of the runs;
Runscounts requests that returned a token.Agent session (conversation cache)
Cache hit over the follow-up turns: 68.8 % (68.8-68.8); earlier-turn tokens read again per session: 4 (3-4) (earlier turns that the cache did not hold; the 13634 (13634-13635) new tokens of the files are read once); first turn (nothing cached) first token: 0.77 s (0.71-0.83).
Per-request data:
results.json. Engine log lines from the start:engine-log-excerpt.txt(when this run started the server).Correctness and limitations
Not measured: this is a speed suite. The conversation uses the model's own replies, so token counts differ a little between runs. Machine details come from the server,
nvidia-smi/rocm-smiand the OS; background load and power limits are not recorded. Total time of the suite: 52 s.Arm B — proposed setting (--kv-resident 0)
Community benchmark on NVIDIA RTX PRO 6000 Blackwell Workstation Edition
Measured on 2026-10-13 with
tools/strata_bench.py(suite 1, 2 runs per test, medians with ranges). Speeds are the engine's own timings; first-token times are measured by the client over HTTP. Speed only: no correctness check was run.Hardware and software
Model and configuration
Method
Run by
python tools/strata_bench.py --long --runs 2against the HTTP API of a Strata server (already running); model loading is not timed. One warm-up chat and a 1K prompt are discarded first. Every prompt starts with a unique tag, so the conversation cache cannot help the fresh-prompt tests.tools/ab_engine.py, up to 100 new tokens, 2 runscached_tokens) and timings (prompt_n)Results
Ranges are the lowest and highest of the runs;
Runscounts requests that returned a token.Agent session (conversation cache)
Cache hit over the follow-up turns: 68.7 % (68.7-68.8); earlier-turn tokens read again per session: 40 (5-74) (earlier turns that the cache did not hold; the 13634 (13633-13635) new tokens of the files are read once); first turn (nothing cached) first token: 0.64 s (0.57-0.71).
Per-request data:
results.json. Engine log lines from the start:engine-log-excerpt.txt(when this run started the server).Correctness and limitations
Not measured: this is a speed suite. The conversation uses the model's own replies, so token counts differ a little between runs. Machine details come from the server,
nvidia-smi/rocm-smiand the OS; background load and power limits are not recorded. Total time of the suite: 41 s.@ischencheng commented on GitHub (Oct 14, 2026):
Opened #2450 for this. With
--kv-streaming auto, setup now keeps the K/V in VRAM on one card that holds every expert and the whole K/V. On an L40S with IQ2_XS at 262K that was 0-5% faster on decode and 0-8% on 48K/120K prompt reads, smaller than your numbers but the same direction.@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.