mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#1964
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 @udqe on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4412
Area
[Engine] (speed, kernels, models, the server and API)
Desktop app, Terminal or source?
Source (START-HERE.bat, setup.sh or a build)
What happened
The #2065 request-start guard reads free VRAM without a device wrap (generate.cpp ~13413-13429):
OnDevicerestores the caller's device (on_device.hpp:14-17), and the serve thread's caller device is the primary, so thekVramSafeMibwarning, the reserve-suggestion formula, andg_req_vram_free_mib(~1531-1533) are all device-0 values. The stall report then prints that single number as "VRAM free when this request began" (~1547-1552). On a layer split the card that fills first is typically the LATER one (stage layers + drafter + window captures + stage park buffers) - exactly the #2192 environment - yet no per-request warning can ever fire for it, and a stall on that card is reported with the roomier card-0 number.The same file solved this class twice already, device-aware, and only this check was left behind: the startup check loops all stages per device (#2192, ~12099-12111, "add --vram-reserve-later-mib"), and the #2409 restore check samples main + stage devices (
restore_devsloop, ~14136-14153).Observed context on this machine (2x RTX 4090 24 GiB WDDM, K=22 split, engine 0.1.52, Windows 11): nvidia-smi steady-state free is GPU0 ~1220 MiB vs GPU1 ~1143 MiB (GPU1 consistently tighter), and the engine's own prefill line measured CUDA1 at 734 MiB free ("no VRAM for a super-chunk: layers 22..48 ... (734 MiB free)") - below
kVramSafeMib- while no per-request #2065 warning ever mentioned CUDA1.Expected: per-card sampling and warnings ("CUDA1: only X MiB free at the start of this request ... add --vram-reserve-later-mib N"), and a stall report that prints each sampled card. Actual: device 0 only.
Suggested fix: iterate
stageswithOnDeviceexactly like the #2409 restore check, keep a per-device low-water dedup (the current staticlow_said_atis also shared), and print the per-card numbers in the stall report.Smallest steps or command that reproduce it
Static finding (no triggered stall on my machine). What would verify: on a --layer-split rig, drive only the LATER card below kVramSafeMib (1024) at request start (tight --vram-reserve-later-mib plus expert traffic on the later stages) and send a request: no #2065 warning fires for that card although the device-0 check would warn at the same free value; then a stall on the later card prints device 0's number in the stall report.
Reproduction status
unconfirmed static analysis (code quoted above, re-read against the v0.2.7 source). Observed context quoted from this machine: the engine's own prefill line measured CUDA1 at 734 MiB free ("no VRAM for a super-chunk: layers 22..48 ... (734 MiB free)") while no per-request warning ever mentioned CUDA1; nvidia-smi steady-state free GPU0 ~1220 MiB vs GPU1 ~1143 MiB.
Strata version
Terminal and app 0.2.7, engine 0.1.52 (release store build windows-x86_64-cuda-cuda13), source checkout of v0.2.7 for the code citations.
Graphics card, memory and system
2x RTX 4090 24 GiB (both PCIe 4.0 x16, engine probe 26.3-26.4 GB/s), Threadripper 3970X, 128 GiB RAM, Windows 11 (WDDM), driver 610.88.
Model, size and settings
Qwen3.8-Flash-Next Unsloth UD-Q4_K_XL, --max-context 307200 --kv int8 --kv-resident 32768 --spec 4 --pipeline-windows 2 --layer-split auto (K=22) --vram-reserve-mib 1728 --vram-reserve-later-mib 972 --conversation-cache-mib 12288 --conversation-cache-slots 4 --expert-cache auto --prefill auto, STRATA_ROUTE_PRIOR=1.0.
@github-actions[bot] commented on GitHub (Oct 28, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Oct 28, 2026):
Thanks, this follows the format now.
@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.