mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #747] Feature request: multi-conversation parking on multi-GPU layer-split #340
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#340
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 @AdaxLabs on GitHub (Oct 4, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/747
Feature request
Please extend Strata's bounded multi-conversation cache / parking to work with the existing multi-GPU layer-split serving path.
This is the remaining gap after #57 / #189: same-conversation checkpoints work very well on a split, and bounded multi-conversation parking works very well on one GPU, but the two features cannot currently be combined. The current docs explicitly state that enabling parking with
--layer-splitis rejected before model loading.We are not asking for concurrent inference. Requests can remain serial. The request is only to preserve and restore the complete state of several alternating conversations when one Strata model is split across multiple GPUs.
Why this matters for agent workloads
A typical controller/worker sequence is:
On a single-GPU Strata server, bounded conversation parking can restore A after B and avoid rereading A's full history.
On a layer-split server, the parent can reuse its own prior turn if no unrelated conversation intervenes, but an intervening worker causes the parent to be read cold again because multi-conversation parking is unavailable.
That makes the current multi-GPU path excellent for one long conversation, but expensive for agent harnesses that alternate controller and worker conversations.
Reproduction hardware / software
Linux host:
The same machine was also tested in single-GPU mode as a control.
A separate RTX 3060 12 GB single-GPU host was used to verify that the current multi-conversation cache behaves as expected when no layer split is involved.
Measured behavior
1. Dual-GPU layer split: same conversation works extremely well
With the cache disabled, the second ~86K-token turn took:
With normal prompt reuse enabled on the same dual-GPU K22 topology:
So the ordinary layer-split checkpoint/reuse path itself is working very well.
2. Dual-GPU layer split: A -> B -> A loses the parent
With the same dual-GPU interactive profile:
The returned parent is effectively cold again.
Attempting to enable the bounded multi-conversation cache on this K22 layer-split profile is rejected, matching the documented current limitation.
This contrast is the main point of the report:
3. Single-GPU control: multi-conversation parking restores A
On a single RTX 5060 Ti, parking works:
However, this is not a practical substitute for the split on this hardware:
So dropping to one GPU solely to gain parking gives up too much cold/prefill performance.
4. Independent single-GPU control on RTX 3060
On a separate RTX 3060 12 GB server:
This confirms that the multi-conversation feature itself solves the controller/worker pattern; the missing piece is compatibility with the layer-split state.
Requested upstream capability
Ideally the existing
--conversation-cache-mib/--conversation-cache-slotsfeature would support a layer-split model without changing the client contract.Conceptually:
I would prefer this to be implemented in upstream Strata rather than maintaining a private fork, because this touches the most correctness-sensitive session/KV/indexer/draft state and should evolve with the engine's own layer-split implementation.
Suggested acceptance gate
A useful minimum regression would be a real layer-split:
with:
Longer-term coverage for KV streaming, images, steering and supported KV formats would be valuable, but the core ask is the multi-GPU snapshot/restore path.
Relationship to existing work
--layer-split.Niko also noted during #57 that with a layer split each card owns session state for its layers, and that multi-GPU support could come later. This issue is intended as that focused follow-up rather than a competing cache design.
If useful, I can provide additional raw timing/monitor logs from the dual RTX 5060 Ti run or test an upstream branch on this hardware.
Testing and measurements were conducted as part of AdaxLabs' local multi-agent inference work.
Thanks for Strata — the existing same-conversation cache improvement is already dramatic on this setup; supporting parked controller/worker conversations on the split would remove the remaining major latency penalty for local agent workflows.
@Niko1221 commented on GitHub (Oct 4, 2026):
--conversation-cache-mibnow works with--layer-splitin 0.1.39: a parked conversation holds one image per stage, so a worker in between no longer makes the parent read its history again. docs/BATCHING.md has the test (tools/parking_test.py). Please reopen with the numbers if your parent/worker case still re-reads.Thanks @AdaxLabs for the clear request.
@MarsLuay commented on GitHub (Oct 13, 2026):
Follow-up validation after the feature landed: I tested the resolved multi-GPU parking path on Windows/CUDA 12 with an RTX 3080 Ti + Tesla V100 layer split.
Configuration:
In a controller/worker/parent sequence, the parent follow-up reused 2462 cached tokens, reduced the prompt to 26 new tokens, and fell from about 3.5 s to 0.73 s. The engine log reported a 41 ms checkpoint restore. After applying the configuration to the live server, telemetry recorded 4 parks, 1 restore, 2973 reused tokens, and no V100 driver or inference-fatal errors.
This provides Windows/experimental-CUDA-12 evidence for the multi-GPU parking implementation described here. The full benchmark table is in #2052: https://github.com/Niko1221/Strata/issues/2052#issuecomment-6136129748
STRATA_SPLIT_RINGbefore sizing the lend regions (a 104k read stops reading 10 GB from the file) #3556