mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4352] [Engine] After the engine dies, its own strata-vision encoder holds the VRAM and min_free_vram_mib refuses every load (503) #1923
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#1923
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 @mkemalemdar on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4352
Area
[Engine] (speed, kernels, models, the server and API)
Desktop app, Terminal or source?
Docker
What happened
After the engine died during a request (
verify: layer 37 never rang (an illegal memory access was encountered), see #3813), the next request was refused, and every one after it:The only other process on the GPU was Strata's own image encoder, which kept running after the engine died:
/healthreports"loaded": false. Expected: Strata does not count its own encoder as "another program", or stops it when the engine dies, and loads again.Reading
ensure_loaded()(same code in v0.2.7,serve/server.py): themin_free_vram_mibcheck runs before the_vision_down()/vision.restart()step, and the encoder is only stopped byunload(). Butunload()returns"not loaded"early when the engine isn't alive, beforeself.vision.unload(), soPOST /unloaddoesn't release it either. With a dead engine and a live encoder, the free VRAM can't reachmin_free_vram_mibunless the encoder's share is subtracted. Stopping thestrata-visionprocess by hand frees it;ensure_loaded()then restarts it.Smallest steps or command that reproduce it
--visionandmin_free_vram_mibset close to the card's free VRAM without the encoder (here 15000 on 16 GB).Reproduction status
Reproduced locally
Strata version
engine 0.1.38 (
GET /v1/status), Docker image built from source at99f3dbd; the same order inensure_loaded()in v0.2.7Graphics card, memory and system
RTX 5060 Ti 16 GB · 30 GB RAM · Ubuntu (kernel 7.0), driver 595.91.07
Model, size and settings
Qwen3.8-Flash-Next GSQ-RCO IQ1_M · 262K context · pictures on (
--vision) ·min_free_vram_mib15000@Niko1221 commented on GitHub (Nov 5, 2026):
Hello mkemalemdar,
Thank you. In Strata 0.2.11 the free-VRAM check releases this server's own picture encoder when the engine is not running, and
POST /unloaddoes too, so the dead engine's encoder no longer makes every load answer 503. A foreign program holding the memory still refuses, as it should. If a load is still refused for free VRAM on 0.2.11, please sendnvidia-smiand the server log lines around the refusal.The Strata project