#2323rd of 129 in Model serving
llama-swap
Go proxy that starts and swaps local model servers per request
Run it:Vast.ai ↗ (opens in a new tab)RackNerd ↗ (opens in a new tab)RepoCloud ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.
Watch puts llama-swap on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.llama-swap is on your watch list. Its new releases and problems show there.
- Stars
- 6.4k
- License
- MIT
- Last commit
- Nov 2026
- Last release
- Nov 2026
- Language
- Go
2,849 on 26 Mar 20266,351 on 26 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
llama-swap is a single Go binary that reads the `model` field of incoming OpenAI- or Anthropic-style requests and starts the matching upstream server from a YAML config, stopping the previous one. It works with llama.cpp and forks, vllm, stable-diffusion.cpp, audio.cpp and ComfyUI. A `matrix` option allows concurrent models, and a built-in web UI offers a playground, logs and manual load/unload.
Who it is for: Self-hosters running several local models on one GPU machine
Strengths
- One binary and one YAML file; no external dependencies
- Covers chat, embeddings, rerank, audio, image and Anthropic messages endpoints
- Per-model ttl auto-unload, API keys, Prometheus /metrics and log streaming endpoints
- Upstream servers can be upgraded independently since each model is just a cmd
Weaknesses
- Does not run inference itself; needs separate upstream servers like llama-server
- Python servers like vllm are recommended to run in Docker or Podman for clean shutdown
- Default mode holds one model at a time; concurrency needs matrix DSL setup
- Swapping means a full model reload, adding latency on the first request after a switch
What it needs
- GPU optional
- Docker
- Needs llama-server or another OpenAI-compatible inference server
- Models: GGUF via llama.cpp, vllm, stable-diffusion.cpp, whisper.cpp, audio.cpp
- port 8080
What changed
- v277 ↗ (opens in a new tab)Security fix
“Important Security fix for cross-site requests. NVIDIA GPU temperatures show up again on newer drivers.”
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Known problems
Open now, reported in the last 90 days
- vLLM sleep level 2 bug in vllm-wrapper ↗ (opens in a new tab)1 reactions
- Metrics requests through /upstream keep a model loaded forever ↗ (opens in a new tab)1 reactions
Reported, then fixed by a linked change
- [Feature request] allow to "view" activity log of failed LLM requests ↗ (opens in a new tab)4 reactions · closed 20 Jun 2026Fixed by server: capture failed (non-200) LLM requests ↗ (opens in a new tab)
- Unified Docker image failing to build ↗ (opens in a new tab)3 reactions · closed 30 Aug 2026Fixed by Split Docker build into per-project stages for CI ↗ (opens in a new tab)
- v218 does not show webui (404 page not found) ↗ (opens in a new tab)3 reactions · closed 30 May 2026Fixed by ui-svelte: update build directory ↗ (opens in a new tab)
- The "load" button doesn't work for only one specific model. ↗ (opens in a new tab)2 reactions · closed 14 Jun 2026Fixed by ui: improve manual model load and cancel ↗ (opens in a new tab)
- Activity log does not capture cached and input prompt token count for Antropic API streaming responses ↗ (opens in a new tab)1 reactions · closed 15 May 2026Fixed by proxy,ui-svelte: improve support for v1/messages and v1/responses ↗ (opens in a new tab)
Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.
Also in Model serving
See all 129| Rank | Project | Score |
|---|---|---|
| #21 | web-llmRuns LLMs inside the browser on WebGPU with an OpenAI-style JS API | 82 out of 100 |
| #22 | mooncakeKV cache transfer engine and distributed cache store for LLM inference clusters | 82 out of 100 |
| #24 | openvinoInference toolkit for converting and running models on Intel CPUs, GPUs and NPUs | 81 out of 100 |
| #25 | edge0Streaming MoE inference that serves 35B models from SSD on Apple Silicon | 81 out of 100 |
| #26 | cogPackages Python ML models into Docker images with a generated HTTP API | 81 out of 100 |