#36 · Primary category: AI Gateway & API Infrastructure

llama-swap

golang llama llamacpp localllama localllm openai openai-api vllm

Reliable model swapping for any local OpenAI/Anthropic compatible server - llama.cpp, vllm, etc

Project last updated:08/29/26

GitHub Stars

5.5K

Forks

444

Contributors

70

License

MIT

Why we included this project

Keeping several local models on one machine usually means running separate servers and configs. llama-swap sits in front of any OpenAI- or Anthropic-compatible backend and loads the model you ask for, then unloads it to free VRAM when you're done. One binary and one config file replace the mix of llama.cpp, vLLM, tabbyAPI, or stable-diffusion.cpp instances you'd otherwise manage. If you rotate between models during the day, your clients keep hitting the same endpoint while the upstream server changes underneath. A small web UI and a handful of admin endpoints show what's loaded and let you force-unload models manually.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category