Berth: open-source VRAM leasing daemon stops OOM crashes when multiple AI engines share one GPU

Distinct-Pie2389 · reddit · 2026-10-12

Redditor Distinct-Pie2389 open-sourced Berth, a VRAM leasing daemon that stops CUDA out-of-memory crashes when running multiple engines (llama-swap, llama.cpp, Ollama, ComfyUI) on one RTX 4090. Engines start via berth run and queue with the daemon; when a higher-priority engine needs the GPU, Berth unloads the current holder (llama-swap unload URL, then SIGTERM, then SIGKILL) and only hands over once nvidia-smi confirms memory is free. Limits: Linux + NVIDIA only, one card per daemon, no dashboard auth (keep it on loopback/Tailscale). vLLM/SGLang/LM Studio/TabbyAPI/LocalAI support tested against docs only.

Original post →

More from coding & agent

coding & agent channel →