DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to share the GPU between llama-swap and ComfyUI without ping-pong with Berth

Put llama-swap's models and ComfyUI under one lease so a model swap waits for the image job.

Short answer: Install Berth and run berth service install --harbor; then Back up your llama-swap config file before changing it; run berth wire llama-swap to add the lease to every model in your config. All steps.

Who it is forA local AI user running llama-swap for chat models and ComfyUI for images on one card, who sees loads fail while the other tool holds memory.

The problemllama-swap swaps models in its own config but cannot see ComfyUI or other processes holding VRAM, so a load fails.

The outcomeEach llama-swap model runs under a Berth lease, ComfyUI waits at a job boundary, and a crashed process's PID and memory appear in `berth status`.

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

  1. Install Berth and run berth service install --harbor.
  2. Back up your llama-swap config file before changing it.
  3. Run berth wire llama-swap to add the lease to every model in your config.
  4. Restart llama-swap so the wrapped model commands take effect.
  5. Run berth status and start an image job in ComfyUI to see the handoff.

Prompt for your agent

In the Berth repo at <path to berth>, run `berth wire llama-swap` against the llama-swap config at <config path>. Expected output: each model entry is wrapped in `berth run`. Verify with `berth status` that a ComfyUI job and a llama-swap model are queued in turn rather than loading together.

Caveat. The README says an upstream llama-swap integration is planned, and until then `berth wire llama-swap` is the wrapper step you have to keep.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for T-Crypt/berth and "Share the GPU between llama-swap and ComfyUI without ping-pong"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer