mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3744] [Engine] session files (SAVE/RESTORE) refuse multi-GPU layer-split runs — request per-device session files #1570
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#1570
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?
Originally created by @exotic16 on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3744
One line: session files are the only way to resume a conversation across restarts/machines, but
generate.cpprefuses them whenever layers are split across GPUs — which is the only way a model+KV too big for one card can be served at all.Where it refuses
At
011c9e60(engine 0.1.47),src/program/generate.cpp~line 11941:serve/server.pyalready implements the full llama-server-shaped surface (POST /slots/0?action=save|restore {"filename":...},--slot-save-path DIR,--session-min-free-mib,--session-save-reclaim) — only the engine side refuses. We wired the whole client/API/backup side first and Phase-0-benched the engine before deploying, so we know everything works up to this gate.Our setup (where it hurts)
Two Linux hosts, each serving the SAME model at
--max-context 262144 --kv int8 --layer-split autoover two NVIDIA cards (64 GB + 24 GB on one host, 16 GB + 12 GB on the other; model+KV exceed any single card, so a split is mandatory):--conversation-cache-mib 49152 --conversation-cache-slots 8 --conversation-cache-park-gain 4096 --prompt-cache-spread→ ~95–97 % of prompt tokens reused, warm TTFT ~0.5 s vs ~89 s cold.Request
Session files that carry per-device/per-stage conversation state (KV blocks per card + the conversation identity), stamped with the same build/topology identity the engine already uses to refuse mismatches:
SAVEon a layer-split run writes one session (dir or container) with a section per stage/device.RESTORErequires the same build and the same card topology — mismatch keeps the current, correct behavior: refuse the file, cold-prefill instead, never misapply.Scope suggestion: same-topology save/restore first; it alone unlocks restart-resume and eviction overflow, which is what we actually need.
Acceptance test we would run
Open a conversation with an exact-answer fact,
POST /slots/0?action=save, restart the engine,action=restore, continue the chat: the follow-up must (a) answer the exact fact, (b) showreused≈ full prompt in/metrics, (c) first token in seconds not a minute — and a restore under a different build must be refused with a cold-prefill fallback, not corrupted output.Versions: engine 0.1.47 /
011c9e60, llama-server-shaped serve API,--layer-split auto,--kv int8, Linux, CUDA.@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.