mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #653] [CLOSED] serve: park conversations with a layer split #2746
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#2746
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/653
Author: @anon761
Created: 10/3/2026
Status: ❌ Closed
Base:
main← Head:serve-park-layer-split📝 Commits (1)
e6f38a1serve: park conversations with a layer split📊 Changes
5 files changed (+227 additions, -29 deletions)
View changed files
📝
docs/DETAILS.md(+5 -3)📝
include/strata/core/conversation_cache.hpp(+6 -2)📝
include/strata/core/conversation_snapshot.hpp(+13 -0)📝
src/core/conversation_state.cpp(+54 -18)📝
src/program/generate.cpp(+149 -6)📄 Description
What
Conversation parking (
--conversation-cache-mib) refuses--layer-splitat start:On a split every stage holds its own carve of the session, so a parked conversation becomes one image per stage:
stage_partsstage_parts) on restoreThe snapshot core takes the draft as optional (a pointer); the existing reference signatures stay and refuse an image with stage parts, so the single-GPU path is unchanged. Split parks are always full captures (the retained-K/V reuse stays single-GPU). The one-GPU check of the hand-off (
--split-device 0) shares one session between its stages and still refuses parking.docs/DETAILS.mdand--helpsay so.Tests
tools/conversation_cache_parity.pywith--layer-split autoon 2x RTX 3090, Unsloth UD-Q4_K_XL:conversation_{cache,memory,snapshot,validation,transfer}_testpass (-DSTRATA_BUILD_CONVERSATION_TESTS=ON).Measured
Same box, 262K context, two coding conversations of ~11K tokens taking turns (A, B, A, B, ...), 4 turns each over the OpenAI endpoint.
mainhas to run without parking on a split:main, split, no parking--conversation-cache-mib 65536A ~11K-token conversation parks in 360-400 ms (two stages, ~640-770 MB) and is restored in 41-47 ms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.