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#2537
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/265
Author: @maedoc
Created: 9/30/2026
Status: ❌ Closed
Base:
main← Head:nvme-kv-cache📝 Commits (10+)
66846e9NVMe KV cold tier for warm sessions (docs/nvme-kv-cache-design.md)b2a3db8kv-nvme: snapshot at the chat turn boundary (nvme_dump_at)a9e783bdocs: fold the NVMe tier design into a self-contained record; drop the review annexese449704kv-nvme: payload-integrity footer on every snapshotf0e8b27kv-nvme: diagnose layout drift before integrity on restored87b662WIP checkpoint: shared conversation core imported, tier retyped to it (step 2, unfinished)5c3a601docs: write the section kv_nvme.hpp already pointed atb5acb62kv-nvme: a turn-boundary snapshot stored the WRONG IMAGE LIST, so any conversation with a picture was unreachable0cc235bkv-nvme: NvmeEntry::imgs was NEVER FILLED, so every image comparison in the tier compared against nothing3f55676kv-nvme, generate: the shared core's diagnostic string was thrown away at every call site📊 Changes
50 files changed (+14973 additions, -175 deletions)
View changed files
📝
.gitignore(+1 -0)📝
CMakeLists.txt(+76 -1)➕
docs/nvme-delta-cache-handoff.md(+824 -0)➕
docs/nvme-delta-restore-handoff.md(+262 -0)➕
docs/nvme-kv-cache-design.md(+693 -0)➕
docs/nvme-kv-cache-web-design.md(+431 -0)➕
docs/nvme-kv-cache-web-plan.md(+382 -0)➕
docs/nvme-kv-web-merge-handoff.md(+335 -0)➕
docs/nvme-restore-perf-evidence.md(+114 -0)➕
include/strata/core/conversation_cache.hpp(+162 -0)➕
include/strata/core/conversation_memory.hpp(+24 -0)➕
include/strata/core/conversation_snapshot.hpp(+66 -0)📝
include/strata/core/layer.hpp(+13 -0)📝
include/strata/core/mtp.hpp(+3 -0)📝
include/strata/kernels/kv_stream.hpp(+9 -1)📝
include/strata/kernels/qsa.hpp(+19 -0)➕
include/strata/platform/kv_delta.hpp(+356 -0)➕
include/strata/platform/kv_nvme.hpp(+436 -0)➕
serve/kvcache.py(+475 -0)📝
serve/server.py(+126 -27)...and 30 more files
📄 Description
Builds on the work reviewed in #52, with the two asks it left open addressed: snapshots bound to the weights that wrote them, and
--kv k8v4in the format key.Summary
The v3 header carried the model geometry, and geometry is not identity - two weight sets of one architecture share it exactly, so a snapshot of another model's conversation had everything it needed to match, verify its digest and apply cleanly. v4 makes the header say whose bytes these are.
--kv k8v4in the format key - the key is nowqsa_kv_key, total over all four formats, so a k8v4 store is keyed apart from every other layout instead of being filed as fp16--kv-nvmeis passedTwo things worth flagging: this converges onto #189's shared core as soon as that lands - this branch currently carries the imported copy - and the disk tier in #190 is acknowledged; the coordination is the open item.
The one re-prefill per conversation after the upgrade is the deliberate cost of the version bump: a v3 file is refused by version, never converted.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.