Sleeping models in Rust: reclaiming 79GB of idle VRAM with sub-200ms wake

ahstanin · reddit · 2026-09-12

Running a local multi-modal agent stack (Qwen3.8-27B LLM + Nemotron STT + Chatterbox TTS + OCR) with all runtimes hot consumed 122GB of idle VRAM, largely because runtimes like SGLang statically reserve big KV pools (often 85% of available memory).

The author built a small Rust controller that puts models to sleep between turns: it flushes execution buffers and KV pools while keeping the process and base weights mapped, avoiding cold restarts.

The post ends by asking how others handle multi-model memory allocation when instant voice/tool responses matter but a second GPU is off the table.

Related event: Rust Model Sleep Cuts Local Agent VRAM from 122GB to 43GB(2 posts)→

Original post →

More from coding & agent

coding & agent channel →