mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2594] KV streaming on a layer split reports 0 block reads (0.1.43 7695859a, IQ2_XS, RTX 3090 + RTX 3060), while the same config on one card reports 215k-252k #1037
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#1037
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 @TurtleFlyRU on GitHub (Oct 15, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2594
What happens
On a layer split the engine's per-request counter reads
KV streaming: 100.00% of 0 block reads hit VRAM, 0.0 MiB read from RAMfor every request, at every context size and with every KV format. The start line says threequarters of each QSA layer's cells are not in VRAM, so the RAM copy should be read. The same machine, build, model
and
--kv-resident 32768on the 3090 alone reports real reads for the same residency line.Start line, split:
Start line, one RTX 3090, same
--kv-resident 32768:Per request, split (131072 context, a 4019-token prompt):
Per request, one RTX 3090 (same context, the same 4K prompt in the same suite):
The split also reports 0 reads at
--max-context 262144with prompts of up to 255,433 tokens, and with--kv k8v4and--kv q4_0, so it is not one format, one context size or one prompt.Why I think something is off
With 32768 of 131072 cells per QSA layer in VRAM, 98304 cells per layer are not, and a 64K-256K prompt has to
attend to them. If the host copy holds them, those blocks have to be read from RAM. The split reports 0 such reads
in every run we made; the single card reports 200k-250k per request for the same residency. Either the split does
not stream K/V blocks at all, or the counter is not wired for the split path - I cannot tell which from the
outside.
A second thing I cannot explain and would like to understand:
1.55 / 0.13 = 12. If the single card's number isthe whole model's host copy (12 QSA layers) and the split's number is one QSA layer's share, the two are the same
1.55 GiB and only the counter differs. If both numbers are the same quantity, then on a split the host copy is 12x
smaller, which would explain 0 reads but would mean the split keeps the K/V somewhere else. Which is it?
Configuration
Split (both cards), port 8092:
"gpu": "0,1"; the engine reorders tocard order 1,0, so CUDA0 is the RTX 3060 (layers 0-2, 1536 slots,2.06 GiB) and CUDA1 the RTX 3090 (layers 3-47, 12927 slots, 17.32 GiB).
--layer-split autochose K=3.Single card: the same file with
"gpu": 1(the 3090), everything else identical.How to reproduce
The counters are the
strata serve: KV streaming: ...lines in the engine log, one per request, and thestrata generate: KV streaming: ...line at start.tools/ctx_sizes.py --sizes 170000,262144shows the samething at 262144.
System
7695859a, source build (engine 0.1.43)What I ruled out
--kv-residentbeing ignored: the start line does report32768 of 131072 cells per QSA layer in VRAMinboth cases, and raising it to 65536 costs 294 slots on the 3090, so the option is read.
What I did not test
STRATA_SPLIT_TIMING=1on a long request, which is probably the next step - I can run it on request.Related
--kv-resident 32768on a split, so I would expect the streaming path to be active there; they do not quotethe block-read counter.
case, a card that should not stream; this report is about the counter on a split.
I have per-run JSON, engine logs and the full configs for everything above and can attach them.
@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.