Open Source
Explore the latest AI open-source projects from GitHub and HuggingFace.
Explore the latest AI open-source projects from GitHub and HuggingFace.
Berth is a single Go binary that acts as a broker for one GPU's memory, so the programs on a PC take turns with the card instead of grabbing it and crashing each other with out-of-memory errors. Engines are started through berth run, the gateway, ComfyUI's API or a game claim, and each asks the berthd daemon for a lease. Requests are queued by priority (hold, foreground, interactive, batch); when another engine holds the card, Berth lets the holder finish its current reply or image job, unloads it with its own unload, then SIGTERM, then SIGKILL, waits until the driver shows the memory free, and only then grants the next lease. Engines that can offload themselves, such as ComfyUI, vLLM, SGLang or anything serving the park protocol, can move weights to system RAM and resume from there instead of reloading from disk. Games launched through Steam, Lutris, gamescope and several Windows launchers make Berth drain AI engines until the player quits, and a process holding VRAM without a lease is reported as a stowaway with its PID and memory but left running. A preview OpenAI-compatible gateway starts the engine for a named model on demand and also proxies ComfyUI's workflow API. Berth discovers llama.cpp, llama-swap, Ollama, vLLM, SGLang, Kokoro, LM Studio, KoboldCpp, TabbyAPI and LocalAI on their default ports, shows per-card memory, load, temperature and power, tokens per second and latency percentiles in a read-only harbor web UI, exposes Prometheus metrics, and pulls models from Hugging Face or CivitAI with size and sha256 checks. A skill installer teaches Claude Code, Codex, OpenCode and Hermes Agent to ask Berth for the card instead of killing GPU processes. NVIDIA on Linux is the supported target, AMD RDNA3/RDNA4 and Windows 10/11 with NVIDIA are experimental, and the README labels the project alpha (v0.3.6) with multi-GPU support in a single daemon still planned. Apache-2.0 licensed.