mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #576] [CLOSED] multi-GPU: conversation parking across a layer split #2702
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#2702
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/576
Author: @saikiran-rs
Created: 10/3/2026
Status: ❌ Closed
Base:
main← Head:split-conversation-parking📝 Commits (1)
8a2e370multi-GPU: conversation parking across a layer split📊 Changes
7 files changed (+298 additions, -36 deletions)
View changed files
📝
docs/DETAILS.md(+14 -6)📝
docs/MULTI_GPU.md(+2 -0)📝
include/strata/core/conversation_cache.hpp(+19 -3)📝
include/strata/core/conversation_snapshot.hpp(+27 -0)📝
src/core/conversation_snapshot_test.cpp(+75 -0)📝
src/core/conversation_state.cpp(+146 -17)📝
src/program/generate.cpp(+15 -10)📄 Description
--conversation-cache-mib refused to start with --layer-split. A parked conversation now carries one SavedConversationStage per later stage: that stage's running state (its carve) and the K/V of the QSA layers it owns, captured and restored on its own device (OnDevice). The draft layer stays the last kv of the first stage's image and is copied on the last stage's GPU. Split checkpoints keep their stage_parts through parking and are validated per stage. The one-GPU API is unchanged (overloads with an empty stage list); retained K/V reuse stays one-GPU, a split always captures in full.
Test: conversation_snapshot_test split_session (two carves on one device, F16/INT8/Q4_0 x resident/streamed K/V): the capture stays within its estimate; a one-GPU restore, another layer range and a damaged stage are refused before any write; A/B/A is byte-exact on every stage and the draft; the PLE window and the checkpoint parts survive a restore.
Measured on two RTX 3060 12 GB (x16 + x8), UD-Q4_K_XL, 262K context, 16 GiB cache: two chats of 55K and 47K tokens asked in turn; the follow-ups' time to the first token fell from 59.4 s / 52.2 s to 1.98 s / 1.85 s (restore 0.47-0.49 s), same answers.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.