mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#489
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 @taxah92 on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1169
Field report from a single-GPU production rig, stock v0.1.40 (commit
1cbcacb), no fork, no layer split. The same code is still on currentmain(82f46a8):src/core/verify.cpplines 949-953.Setup: Tesla V100 SXM2 16 GB (sm_70), CUDA 12.4 distro toolkit, Ubuntu 26.04, EPYC 7532. IQ3_S pack,
--max-context 1048576 --rope-scaling yarn --kv k8v4 --kv-resident 32768,--mtp --spec 3 --suffix-draft 3, conversation parking on (--conversation-cache-mib 24576, 3 slots),--prompt-cache 16. Two long agent conversations (~95k and ~150k tokens) alternating through parking.Symptom (appeared within ~1 hour of switching
--kv int8 → k8v4, vanished on revert): one conversation's replies started containing material from the other conversation — content that was never in its own prompt — while losing its own most recent decode-written turns (the model "forgot" work it had just done and tried to redo it). The int8 era of the same engine, same flags except--kv, never showed this.Where:
src/core/verify.cpp, the batched append branch of the verify window (#783, default on, taken whenever the MTP window has n>1 rows):The per-row branch just below (
else for (int t = tb; t < te; ++t)) handles hybrid correctly — it buildskv_hybrid_k_half(st.host)/kv_hybrid_v_half(st.host)and passes them under themirror = st.host.present()guard. The batched branch hardcodesnullptr.Consequence: with
--kv-resident(streaming), every cell written by decode never reaches the pinned host copy. Both consumers of that copy then read stale bytes: the KV-streaming tier (block reads that miss VRAM) and conversation parking / prompt-cache restore ("a streamed one reads its host copy",conversation_snapshot.cpp). Restore trusts the invariant that every writer mirrors — so reused prefixes resume from another conversation's arena pages and fresh decode turns vanish. This matches exactly the failure signature @fishlikeX described for the fork's batch replay in #711 (jmnargi/Strata-V100#36: "reused prefixes returned other conversations", five-line fix) — the same class of bug, now in upstream's #783 batched append. As @fishlikeX predicted there: "If the batched replay form ever moves upstream, the hybrid mirror has to move with it — that is the one line this port initially missed."Suggested fix: mirror the per-row branch in the batched one:
Workaround in the meantime:
STRATA_NO_BATCH_KV_STEP=1(the #783 PR-d kill switch) routes appends through the correct per-row branch;--kv int8is unaffected either way.Related but separate: #1135 (deterministic repetition under k8v4 on sequential generation) — same format, different defect. Both argue for a k8v4 + streaming + parking case in the test suite;
tools/stateless_prompt_probe.py --parkedfrom the V100 fork reproduces this one.@Niko1221 commented on GitHub (Oct 7, 2026):
Fixed in 0.1.40.2: same cause as #1188, which is also why a parked conversation lost its decode-written turns. Credit to Benjamin Larsson (PR #1264). Multi-turn counting (turns 301-400, 401-500 on top of the live session) is clean with the fix. Please retest.