Who it is forA developer or power user running chat, image and voice models on one NVIDIA workstation who gets out-of-memory errors when a second model starts.
The problemTwo engines load into the same card at once, one fails with an out-of-memory error, and it is unclear which process holds the memory.
The outcomeEach engine waits its turn through berthd, the holder finishes its reply or job, and `berth status` shows who holds the card and who is waiting.
What you need first
- An NVIDIA GPU on Linux, or Windows 10/11 (experimental)
- Go installed for `go install`, or a release binary from the Install section
- At least one local engine, such as llama-server, ComfyUI or llama-swap
Steps
go install github.com/T-Crypt/berth/cmd/berth@latest, or download a release binary (see Install).berth service install --harborto run the daemon and the harbor as user services.berth run --as llama --priority foreground -- llama-server -m model.gguf --port 8080to start an engine under a lease.- Start a second engine the same way with
berth runand a lower priority such as--priority batch. (inferred, check the README) berth statusto see the holder, the waiting engine and the reason it waits.
Prompt for your agent
In the Berth repo at <path to berth>, install the berth binary and run `berth service install --harbor`, then start <engine command> with `berth run --as <name> -- <engine command>`. Expected output: `berth status` lists the engine as the card holder. Verify that a second engine started through `berth run` shows as waiting with a reason, not as a crash.
Caveat. Berth only governs engines started through `berth run`, the gateway, ComfyUI's API or a game claim, and it is alpha software at v0.3.2.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for T-Crypt/berth and "Stop local AI engines from crashing each other on one GPU"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer