[PR #1273] [CLOSED] serve: session files work with --peer-device #3350

Closed
opened 2026-11-07 14:40:51 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1273
Author: @pspranger-throw
Created: 10/6/2026
Status: ❌ Closed

Base: main ← Head: pr/peer-device-lift


📝 Commits (1)

  • 82dc03a serve: session files work with --peer-device

📊 Changes

2 files changed (+1 additions, -2 deletions)

View changed files

📝 docs/DETAILS.md (+1 -1)
📝 src/program/generate.cpp (+0 -1)

📄 Description

The blanket refusal in the SAVE/RESTORE path is gone. The peer tier is a pure in-memory expert cache rebuilt at load from the expert source files (the model fingerprint's inputs); it holds no session state, so nothing is missing from a saved file and no per-run peer artifact can drift.

Verified live: save and restore a conversation with --peer-device 1 active.

Tested live on an RTX 3090 + RTX 2060S box, IQ3_S 3.5 bpw, --peer-device 1 active (the peer filled 3,571 experts / 6.78 GiB and rebalanced during the runs):

  • Shallow cycle: a 10,462-token session saved through the slot API (396 MB, 314 ms); the engine stopped and started; restored in 423 ms; the next turn reused 10,495 of 10,515 tokens (99.8%) in 0.8 s, where the cold prefill was ~13 s.
  • Deep cycle, same peer shape: a 198,830-token session (3.05 GiB) saved in 1.4 s, restored at start in 3.5 s; the next turn reused 198,859 of 198,879 tokens (99.99%) in 1.8 s, where the cold read was ~177 s.
  • Through a gateway switch (39,060 tokens, peer active): 833 MB saved in 959 ms, restored in 1.0 s, 99.95% reused in 0.7 s.
  • End-to-end workflow: while the main IQ3_S session was live, sub-agents ran on other engines (different local models) that took over the GPUs and RAM; switching back to the main session was always warm.

🔄 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/1273 **Author:** [@pspranger-throw](https://github.com/pspranger-throw) **Created:** 10/6/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr/peer-device-lift` --- ### 📝 Commits (1) - [`82dc03a`](https://github.com/Niko1221/Strata/commit/82dc03a8d3496a3948b3f022652494c1d540085e) serve: session files work with --peer-device ### 📊 Changes **2 files changed** (+1 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/DETAILS.md` (+1 -1) 📝 `src/program/generate.cpp` (+0 -1) </details> ### 📄 Description The blanket refusal in the SAVE/RESTORE path is gone. The peer tier is a pure in-memory expert cache rebuilt at load from the expert source files (the model fingerprint's inputs); it holds no session state, so nothing is missing from a saved file and no per-run peer artifact can drift. Verified live: save and restore a conversation with --peer-device 1 active. Tested live on an RTX 3090 + RTX 2060S box, IQ3_S 3.5 bpw, `--peer-device 1` active (the peer filled 3,571 experts / 6.78 GiB and rebalanced during the runs): - Shallow cycle: a 10,462-token session saved through the slot API (396 MB, 314 ms); the engine stopped and started; restored in 423 ms; the next turn reused 10,495 of 10,515 tokens (99.8%) in 0.8 s, where the cold prefill was ~13 s. - Deep cycle, same peer shape: a 198,830-token session (3.05 GiB) saved in 1.4 s, restored at start in 3.5 s; the next turn reused 198,859 of 198,879 tokens (99.99%) in 1.8 s, where the cold read was ~177 s. - Through a gateway switch (39,060 tokens, peer active): 833 MB saved in 959 ms, restored in 1.0 s, 99.95% reused in 0.7 s. - End-to-end workflow: while the main IQ3_S session was live, sub-agents ran on other engines (different local models) that took over the GPUs and RAM; switching back to the main session was always warm. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 14:40:51 +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#3350
No description provided.