mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2408] [Bug]: CUDA OOM while restoring a long conversation-cache snapshot on a 2-GPU layer split #973
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#973
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 @MarsLuay on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2408
What happened
On a Windows host with an NVIDIA GeForce RTX 3080 Ti + Tesla V100-PCIE-32GB, Strata 0.1.40 failed while serving a conversation that had been restored from the conversation cache. The relevant run used a two-GPU layer split,
--layer-split 24,--conversation-cache-slots 2,--conversation-cache-mib 4096,--max-context 262144,--kv int8,--kv-resident 32768,--vram-reserve-mib 700, and speculative decoding.The engine log shows the cache restore immediately before the failure:
The process did not return a normal response after this sequence and the runtime started a new engine process afterward.
Expected behavior
A conversation-cache hit is an optimization. If restoring its running state would not leave the configured VRAM reserve on every device in the layer split, Strata should return the parked snapshot to the cache and reread the prompt, rather than turning the request into a process-fatal CUDA OOM.
Why this appears restore-specific
restored 148167 tokens (live)in the same server log.Reproduction details
This was observed on the hardware and configuration above while exercising a roughly 148K-token conversation with two conversation-cache slots. I do not yet have a minimal deterministic reproducer; the attached sequence is from the engine log. The failure is not claimed to occur on every request.
Suggested direction
Before restoring a parked conversation, sample free VRAM on CUDA0 and each layer-split stage. If any sampled device is below
--vram-reserve-mib, skip the restore, put the snapshot back into the conversation cache, and reread the prompt. If a VRAM sample itself fails, preserve the existing behavior rather than rejecting the cache hit based on an incomplete sample.@talisp commented on GitHub (Oct 14, 2026):
A related case on a different configuration, in case it helps: 2x NVIDIA A2 16 GB, Linux, v0.1.42,
--layer-split auto,--kv int8 --kv-resident 32768,--vram-reserve-mib 700,--pipeline-windows 2, Q8_0 (188 GB, experts streamed from SSD, 62 GiB RAM).It is not a cache restore, but it ends the same way: at 256K the engine exited during a conversation checkpoint save (
snapshot running-state copy: out of memory, one line above the client-visiblesaving a checkpoint part failed).Two observations that may bear on the expected behaviour described here (check the reserve before the copy, and fall back):
--vram-reserve-mib 1000removed the failures for us (64K to 1M, one run per context). At 128K,--vram-reserve-mib 1500,--pipeline-windows 0and--prefill 1024also passed (one run each).More detail and the rest of the battery: #2446. Not tested on 0.1.43 or later. (Drafted by an AI assistant from our logs; the account owner reads replies.)
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. 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.