mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3702] [Engine] CUDA layer split auto leaves 68 MiB on the last card; verify window capture then fails with out of memory and the engine exits (RTX 3060 + RTX 5060 Ti, 0.2.2) #1538
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#1538
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 @Norhiro on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3702
Area
[Engine]
Desktop app, Terminal or source?
Source (START-HERE.bat, setup.sh or a build): engine built from the
v0.2.2tag (011c9e60)What happened
On an unequal NVIDIA pair (RTX 3060 12 GB + RTX 5060 Ti 16 GB) with
"layer_split": "auto"and the default reserves, the split plan leaves 68 MiB free on the last card (CUDA1, the 5060 Ti, which holds the head, the draft layer and the verify). The engine says so at start:Each new verify window size is captured on first use and takes a few MiB on CUDA1 (68 → 64 → 58 → 52 → 10 MiB). The next capture then fails and the engine exits:
verify: instantiate: out of memory, or withthe engine stopped unexpectedly (exit code 1); the next request restarts itprefill gemm: cublasGemmEx f16: cuBLAS status 14strata_bench.py --longrun failed (chat, all three 4K prompts, 16K, agent)Expected: the auto placement keeps enough room on the later card for its own window graphs, or a failed capture falls back instead of ending the engine. The search reserves
kWindowMib= 96 MiB for the verify windows on a later stage (stage_roominsrc/program/generate.cpp), but the card ended up with 68 MiB free after loading.Workaround that works here:
--vram-reserve-later-mib 1400(the value the log suggests). With it the same card has 770 MiB free after loading and none of 10 later--longruns failed (5 configurations: both card orders under auto and three manual splits, each cold and warm). It costs expert-cache slots on the last card (auto K=18 → K=19, CUDA1 cache 2,579 → 2,343 slots).Related: #3470 (later-stage free VRAM shrinking on long prompts, same LOW warning; this report shows what happens when it runs out), #3664 (an MTP capture that ends the engine on out of memory).
Smallest steps or command that reproduce it
"gpu": [0, 1](5060 Ti = 0, 3060 = 1 innvidia-smi),"layer_split": "auto"and no--vram-reserve-*option; the server puts the faster card last (CUDA0 = 3060, CUDA1 = 5060 Ti). Engine args:--native <UD-Q4_K_XL shard 1> --resident-budget-gib 38 --expert-profile data/expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <mtp/rt> --max-context 40960 --kv int8CUDA1: 68 MiB of VRAM free ... LOW.python tools/strata_bench.py --config <cfg> --longis enough). Within the first minutes a request fails withverify: instantiate: out of memoryand the engine exits.It happened on every start (6 starts in 11 minutes, until the run was stopped). An earlier run on 0.2.0-beta with the same pair also logged
CUDA1: 58-70 MiB ... LOW,cuBLAS status 14twice and engine restarts (not analysed further at the time).Reproduction status
Reproduced locally: on 0.2.2 (every start, 6 starts). Workaround verified: 0 failed requests in 10
--longruns with--vram-reserve-later-mib 1400.Strata version
Engine
strata 0.1.47, built from thev0.2.2tag (011c9e60), CUDA 13.3 toolkit, archs 86;120.serve/server.pyandtools/strata_bench.pyfrom the same tag; underautothe server puts the faster card last and adds no later-card reserve.Graphics card, memory and system
Model, size and settings
Qwen3.8-Flash-Next UD-Q4_K_XL (Unsloth, 4 shards), resident RAM budget 38 GiB (the rest read from an NVMe file tier), context 40,960,
--kv int8, MTP on,--spec 4, no pictures.STRATA_ROUTE_TAIL_SKIPdefault (on).Logs
Start-up and the first capture sequence, first start (paths shortened): see the attached
engine_log_excerpt.txt. The lines that matter:Client side (
strata_bench.py --long, cold):engine_log_excerpt.txt
@Niko1221 commented on GitHub (Oct 27, 2026):
Thank you. Fixed in 0.2.7: Audit fixes for failed allocations, the reserve arithmetic as a tested helper, a per-card out-of-memory report (#3638 #3702 #3797). We could check it with unit tests and builds, but not on your hardware or with your workload. Please try 0.2.7 and tell us how it goes.
Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.7