Skip to content

Feat/k8v4 kv streaming - #705

Closed
merbanan wants to merge 2 commits into
Niko1221:mainfrom
merbanan:feat/k8v4-kv-streaming
Closed

merbanan wants to merge 2 commits into
Niko1221:mainfrom
merbanan:feat/k8v4-kv-streaming

Conversation

@merbanan

@merbanan merbanan commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

--kv k8v4 (8-bit K, rotated 4-bit V) could not stream: the engine refused --kv k8v4 --kv-resident N and setup turned streaming off for it. This adds streaming for the hybrid format, so K8V4's smaller KV cache and the freed VRAM of streaming add up.

merbanan and others added 2 commits October 5, 2026 23:58
The block movers learn the hybrid page (kKvHybrid: INT8 K codes + scales, Q4_0 V); the hybrid appends write through to the host copy and the prompt path's staging pool with aliased pools (K and V are each passed twice); snapshots of a streamed K8V4 state read the host copy. kv_stream_parity covers it (bitwise, streamed vs resident). At 128K with 20,480 resident cells: +780 slots over resident K8V4, and long-context decode is faster than resident KV.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The engine streams a K8V4 KV cache now, so setup no longer turns streaming off
for it: the RAM test counts K8V4's 816 bytes per context token and attention
layer (8-bit 1056, 4-bit 576). DETAILS.md no longer says K8V4 cannot stream.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@merbanan
merbanan force-pushed the feat/k8v4-kv-streaming branch from b14de96 to dc7f024 Compare October 5, 2026 22:30
Niko1221 pushed a commit that referenced this pull request Oct 6, 2026
Setup no longer excludes K8V4 from KV streaming (KV_CELL_BYTES prices 816 B/cell), and docs/DETAILS.md says
it streams. This needs the engine of the PR #711 commit: MIN_ENGINE must be raised to 0.1.40 at the release,
or an older engine refuses the pair.

Co-authored-by: Trevin <132922589+T-Crypt@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@Niko1221

Niko1221 commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Fixed in 0.1.40: #711 covers the engine side, and the setup and docs hunks of this PR went in as a separate commit with you as the author. Closing as a duplicate of #711.

@Niko1221 Niko1221 closed this Oct 6, 2026
Niko1221 pushed a commit that referenced this pull request Oct 6, 2026
Setup no longer excludes K8V4 from KV streaming (KV_CELL_BYTES prices 816 B/cell), and docs/DETAILS.md says
it streams. This needs the engine of the PR #711 commit: MIN_ENGINE must be raised to 0.1.40 at the release,
or an older engine refuses the pair.

Co-authored-by: Trevin <132922589+T-Crypt@users.noreply.github.com>
anon761 pushed a commit to anon761/Strata-upstream that referenced this pull request Oct 6, 2026
…221#705)

Setup no longer excludes K8V4 from KV streaming (KV_CELL_BYTES prices 816 B/cell), and docs/DETAILS.md says
it streams. This needs the engine of the PR Niko1221#711 commit: MIN_ENGINE must be raised to 0.1.40 at the release,
or an older engine refuses the pair.

Co-authored-by: Trevin <132922589+T-Crypt@users.noreply.github.com>
sskver pushed a commit to sskver/Strata that referenced this pull request Oct 7, 2026
…221#705)

Setup no longer excludes K8V4 from KV streaming (KV_CELL_BYTES prices 816 B/cell), and docs/DETAILS.md says
it streams. This needs the engine of the PR Niko1221#711 commit: MIN_ENGINE must be raised to 0.1.40 at the release,
or an older engine refuses the pair.

Co-authored-by: Trevin <132922589+T-Crypt@users.noreply.github.com>
MistVVK added a commit to MistVVK/XeStrata that referenced this pull request Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants