[GH-ISSUE #3539] [Engine] session files are refused under --layer-split (501), so a split restart re-reads the whole conversation #1453

Closed
opened 2026-11-04 01:51:24 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @xunying7860 on GitHub (Oct 21, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3539

Summary

Session files (shipped in 0.1.40, #661) are the durable way to keep a conversation across a
process restart, but they are refused whenever the engine runs with --layer-split /
--peer-device / --batch: the server answers 501, and docs/DETAILS.md states it
explicitly —

"Not supported with --layer-split, --peer-device, --batch (the config's "parallel",
#465; the server answers 501) or --prompt-cache 0."

Meanwhile the RAM conversation cache does work under the split since 0.1.39 (#747):
"a parked conversation holds one image per stage" (docs/DETAILS.md, Conversation cache). So the
per-stage state mechanism already exists — session files just do not use it.

Why it matters (measured on a real box)

The layer split is not optional for anyone whose model does not fit one card, and those are
exactly the users who pay the most for a restart, because the conversation has to be re-read:

path cost
restore a 329,625-token conversation from a session file 18.6 s (session restored … in 18644.9 ms)
re-read instead (317,033-token prompt) ~1,360 tok/s ⇒ ~4 minutes of saturated GPU before the first token

Parking does not cover this case: it is host-RAM state and dies with the process.

Request

Support session files under --layer-split the way parking does — one file per stage, or one
container holding a per-stage image — so that a restart with a split does not re-read the whole
conversation. If a narrower first step is preferred: per-stage save/restore for
--layer-split (same API, same 501 today) would already help.

Environment

  • engine 0.1.44.1, Linux (Ubuntu 22.04), CUDA build
  • 2× RTX 3080 20 GB, PCIe, no NVLink / no P2P
  • Qwen3.8-Flash-Next IQ3_S, kv int8, 1,048,576 ctx
  • --conversation-cache-mib 30720 --conversation-cache-slots 2
  • the numbers above come from the same engine + model on one card; the layer-split config is
    what we are moving to
Originally created by @xunying7860 on GitHub (Oct 21, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3539 ## Summary Session files (shipped in 0.1.40, #661) are the durable way to keep a conversation across a process restart, but they are refused whenever the engine runs with `--layer-split` / `--peer-device` / `--batch`: the server answers **501**, and `docs/DETAILS.md` states it explicitly — > "Not supported with `--layer-split`, `--peer-device`, `--batch` (the config's `"parallel"`, > #465; the server answers `501`) or `--prompt-cache 0`." Meanwhile the RAM conversation cache **does** work under the split since 0.1.39 (#747): "a parked conversation holds one image per stage" (`docs/DETAILS.md`, Conversation cache). So the per-stage state mechanism already exists — session files just do not use it. ## Why it matters (measured on a real box) The layer split is not optional for anyone whose model does not fit one card, and those are exactly the users who pay the most for a restart, because the conversation has to be re-read: | path | cost | |---|---| | restore a 329,625-token conversation from a session file | **18.6 s** (`session restored … in 18644.9 ms`) | | re-read instead (317,033-token prompt) | **~1,360 tok/s ⇒ ~4 minutes** of saturated GPU before the first token | Parking does not cover this case: it is host-RAM state and dies with the process. ## Request Support session files under `--layer-split` the way parking does — one file per stage, or one container holding a per-stage image — so that a restart with a split does not re-read the whole conversation. If a narrower first step is preferred: per-stage `save`/`restore` for `--layer-split` (same API, same 501 today) would already help. ## Environment * engine **0.1.44.1**, Linux (Ubuntu 22.04), CUDA build * 2× RTX 3080 20 GB, PCIe, **no NVLink / no P2P** * Qwen3.8-Flash-Next IQ3_S, kv int8, 1,048,576 ctx * `--conversation-cache-mib 30720 --conversation-cache-slots 2` * the numbers above come from the same engine + model on one card; the layer-split config is what we are moving to
Author
Owner

@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:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6659554351 --> @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: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
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#1453
No description provided.