mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4393] [Engine] STRATA_KVA=1 silently disables the 0.2.7 layer-major prefill on a layer split — where KVA can never run anyway #1950
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#1950
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 @TheHubUser4860938 on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4393
Problem: 0.2.7 made the layer-major prefill walk the DEFAULT for a CUDA layer split. But
lm_preparedeclines the walk onkva_config().onalone (src/prefill/prefill.cpp:5961:if (kva_config().on) { why = "STRATA_KVA is on"; return 0; }) — it never consultskva_engine().blocked, which generate.cpp:6189-6190 sets to "a layer split across GPUs" (or "batch slots (--batch)") precisely because KVA cannot run there. KVA's own per-read decline path honors blocked (include/strata/prefill/kva.hpp:114). So on a split, a provably inert KVA still refuses the walk — every prompt, forever — and the log line "layer-major declined: STRATA_KVA is on" implies an active KVA.Environment:
Strata Version: 0.2.7 (source checkout at tag v0.2.7, commit
5e8a4cca; the file discussed is byte-identical to the tag)OS: Linux x86-64
Reported from the Strata-Mnemosyne fork's merged tree; the offending code is upstream's own.
Reproduce:
STRATA_KVA=1(the app's "Faster long prompts" switch, the Terminal's Advanced row) + a two-card layer split, long prompt. Expected: the walk runs (KVA is blocked on a split, so nothing is lost); actual: chunk-major prefill, losing the gain the walk brings (the37e4832ameasurements: 2.8x at 8K, 4.8-5.7x at 20-32K on two RTX A4000). No wrong numbers — a silent performance loss. STRATA_DEFAULTS=026 does not help; the trigger is the user turning KVA ON.Suggested one-line fix: decline on
kva_config().on && kva_engine().blocked.empty().Reproduction status: unconfirmed static analysis (engine not rebuilt in this window; both guard sites read end to end). What would verify: one first-token timing, KVA on/off, on a two-card split.
@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. 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.