mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 21:05:40 +07:00
[GH-ISSUE #5420] [Engine] decode halves when a second model is loaded in the same START-HERE.bat run; an oversize model fails outright on the second load #3241
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#3241
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 @werewolfvit on GitHub (Nov 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5420
Area
[Engine] (the server and model loading)
Desktop app, Terminal or source?
Source (START-HERE.bat)
What happened
Windows 10, RX 7900 XTX 24 GB, 63.2 GB RAM, Strata from source via START-HERE.bat.
GET /v1/status→last_timings.predicted_per_second).strata.exeprocess exists, and no other programs are started.A second symptom from the same situation: if the model is much larger than RAM + VRAM combined, the first load can succeed, but the second load in the same run does not even start — the engine crashes on start.
What I expected: unloading/restarting should return the memory to the OS, so a second load behaves like the first one.
Smallest steps or command that reproduce it
predicted_per_secondfromGET http://127.0.0.1:8080/v1/status.predicted_per_second: about 2x lower.Reproduction status
Reproduced locally
Strata version
Strata v0.2.11 (main, commit
9f7d977d) · engine 0.1.57, prebuilt HIP (BUILD.json: backend "hip", rocm 10.2.0a20260930)Graphics card, memory and system
AMD Radeon RX 7900 XTX 24 GB · 63.2 GB RAM · Windows 10 Pro 19045 (AMD driver, no other GPU consumers)
Model, size and settings
Qwen3.8-Flash-Next Gyro-M TQ2_0 · 131072 context · kv int8, kv-resident 32768 · vision on · dflash2 draft, spec 6 ·
--prefill auto --expert-cache auto --vram-reserve-mib 700. The halving reproduces with the other downloaded sizes too (IQ2_XS / IQ3_XXS / IQ3_S), and the second-load crash reproduces with packs well above RAM + VRAM.Logs
Ready to attach
strata-<model>.logand the server log; the failed second load ends with an engine exit during startup rather than a READY line.Observed numbers (one machine)
GET /v1/statusreportsmachine.ram.used_gib ≈ 43.7of 63.2, the singlestrata.exeworking set is ~30–33 GB, free physical RAM ~21 GB. So after the first load/restart the OS does not appear to get the first engine's memory back, and the second engine runs under heavy memory pressure — which fits the halved decode. Page file usage stays near 0, so the loss looks like memory held by the process/allocator (or the dying/restarted engine) rather than paging.serve/server.py:restart()/unload()keep the spawn config and start a new engine process in the same server run (withENGINE_QUIT_WAIT_S/TERM/KILLwaits and aRESTART_RETRY_S = 15 sbetween tries).Asking for diagnosis: is the halved second-load decode a known effect of the in-run restart (memory not released to the OS before the new engine starts), and can the server wait/verify that the previous engine's memory is actually freed — or fail with a clear message for oversize models instead of crashing at startup?