[PR #576] [CLOSED] multi-GPU: conversation parking across a layer split #2702

Closed
opened 2026-11-04 02:02:29 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 8a2e370 multi-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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/576 **Author:** [@saikiran-rs](https://github.com/saikiran-rs) **Created:** 10/3/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `split-conversation-parking` --- ### 📝 Commits (1) - [`8a2e370`](https://github.com/Niko1221/Strata/commit/8a2e3702584234cf68cf1d9d27ad2cb62ba54f32) multi-GPU: conversation parking across a layer split ### 📊 Changes **7 files changed** (+298 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:02:29 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2702
No description provided.