mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3253] [Engine] session files work with --peer-device #4531
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#4531
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/3253
Author: @pspranger-throw
Created: 10/19/2026
Status: 🔄 Open
Base:
main← Head:pr/peer-device-lift📝 Commits (1)
c8596d9serve: 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
Problem and result
Supersedes #1273, which was closed in the 0.2.0-beta tracker reset. That PR cannot be reopened after its branch was rebased while closed (GitHub returns 422 on reopen); the diff and the validation below are unchanged.
The SAVE/RESTORE path refuses every session-file operation when
--peer-deviceis set, so session persistence cannot be used on a two-GPU shape that keeps the second card as a peer expert cache. That shape is not an edge case: for the IQ3_S 262K configuration it is the only decode-positive lever.The peer tier is a pure in-memory expert cache, rebuilt at load from the expert source files (which are already part of the model fingerprint). It holds no session state, so nothing is missing from a saved file and no per-run peer artifact can drift. After this change SAVE and RESTORE work normally with the peer active.
Related discussion
#1273. Niko, 2026-10-17: "This lifts a refusal rather than speeding anything, so it is outside this speed pass; it applies cleanly and can be taken in the fixes pass."
The branch is rebased onto
main(e88ee39d, head99cf9d88). Rebase-only: one line of code plus the DETAILS.md sentence; the diff is unchanged from the reviewed patch.Approach
--peer-devicerefusal from the SAVE/RESTORE path.--layer-splitstays refused: it moves K/V across stages, which a session file cannot represent.kv_stream_reset/kv_ring_restore, from #1269) is unchanged and runs with the peer active.Validation
Passed:
main(e88ee39d), with #1269 applied for the streaming restore, CUDA 13.4, archs 75;86 (368 targets).conversation_file_test: 223/223 checks. All 8 conversation suites pass underctest: conversation_cache, conversation_split_failure, conversation_memory, conversation_file, session_save_reclaim, conversation_snapshot, conversation_validation, conversation_transfer.--peer-device 1, 153K session, direct server on loopback:SERR, noFATAL, no refusals.Failed:
Not run:
--layer-splitremains deliberately unsupported and was not tested.Limits
--layer-splitcontinues to return the existing refusal.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.