mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3166] [Engine] kv: the main K/V ring's size changes MTP draft acceptance at shallow depth (1K: -40 % with MTP, +3 % without) #1273
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#1273
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 @xyzzing on GitHub (Oct 19, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3166
The main KV ring's size changes MTP draft acceptance at shallow depth
Setup: Radeon RX 7900 XTX (gfx1100), ROCm 10.2 nightly (TheRock), engine 0.1.45-8eb3e85d,
Qwen3.8-Flash-Next IQ3_S, 1,024-token prompt, 256 generated tokens, one-shot greedy,
--kv int8,--expert-cache auto,--kv-residentvaried, max-context 139,264. 3 seeds a arm, 256-token generations(a 64-token window hides this: the same config reads ~56 tok/s at 128K in 64-token cells and 76.7 at 256).
path is not hurt at all).
interaction is specific to shallow depth, where attention is cheap and the drafter dominates the round.
autocache only 18.09 → 17.92 GiB free(7,957 → 7,862 slots, −1.2 %).
So growing the main K/V ring costs about 40 % of the MTP path at 1K while paying 12-22 % at depth. The
drafter's own ring is separate (
kv_planmode 2, sized from--mtp-window), so the resource it loses is notobvious. The drafter's 512 experts are ~708 MB and decode-only (cf. the closed #2830), which is one
candidate for what the ring's allocation displaces.
Two things would help: a note on which resource the ring takes from the drafter, and whether the ring can be
sized per request (short requests keep the live value, deep ones grow it) - that is the shape we are testing
next. Happy to share the cells and logs.
(Pre-declared reading for the isolation was |BN−AN| < 2 % for "the cost is in the draft path"; the measured
+3.0 % misses that bar by one point, in the safe direction - without MTP the ring is a small gain, so no
main-path regression exists to blame.)
@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.
@xyzzing commented on GitHub (Oct 19, 2026):
Re-tested on v0.2.0-beta as the tracker reset asks. It is not fixed, but it is much smaller than on 0.1.45.
Environment: RX 7900 XTX (gfx1100), ROCm 10.2 nightly, engine built from
v0.2.0-beta(3d1fb480; its--versionsays 0.1.45.3), IQ3_S, 1,024-token prompt, 256 generated tokens, one-shot greedy,--kv int8,--expert-cache auto, max-context 139,264. Three seeds an arm; interleaved.So on 0.2.0-beta the ring's shallow-depth cost is roughly a third of what it was, but still present. For reference, PR #3168 keeps a shallow run at the live 32,768 ring and measured 1K −0.2 % on 0.1.45, which is why that fix is scoped as an opt-in rather than a claim that this interaction is gone.
Happy to run anything else specific (e.g. a profiled cell showing which drafter resource moves) if that would help.