---
title: "New in llama.cpp: Model Management"
description: "llama.cpp's llama-server now has a router mode that dynamically loads, unloads and switches between multiple GGUF models without restarting, with each model running in its own process so a crash in one doesn't affect others."
url: "https://swe.quest/articles/new-in-llama-cpp-model-management-29f59b030eee0376"
canonical: "https://huggingface.co/blog/ggml-org/model-management-in-llamacpp"
source: "Hugging Face"
published: "2025-12-11"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 5
tags: ["inference","llms","developer-tools"]
---

# New in llama.cpp: Model Management

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2025-12-11, 5 min read, Announcement. Original: [https://huggingface.co/blog/ggml-org/model-management-in-llamacpp](https://huggingface.co/blog/ggml-org/model-management-in-llamacpp)

## Summary

llama.cpp's llama-server now has a router mode that dynamically loads, unloads and switches between multiple GGUF models without restarting, with each model running in its own process so a crash in one doesn't affect others. Started without a model, it auto-discovers models from the llama.cpp cache or a --models-dir folder, loads them on demand based on the request's model field, and evicts the least-recently-used model once --models-max (default 4) is reached. Endpoints exist to list, load and unload models, and per-model settings such as context size and temperature can be set via an INI preset file.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Prerequisites

- OpenAI-compatible chat API
- GGUF model files

## Keywords

llama.cpp, llama-server, GGUF, Ollama, router mode

## Related posts

- [Beyond Containers: llama.cpp Now Pulls GGUF Models Directly from Docker Hub](https://swe.quest/articles/beyond-containers-llama-cpp-now-pulls-gguf-models-directly-from-docker-hub-cdf9961778a715be.md): Docker · 2025-09-19 · Medium · 3 min read · Inference & serving, Containers, LLMs, ML platforms
  llama.cpp can now pull and run GGUF models directly from Docker Hub via a new --docker-repo (-dr) flag, treating the registry as a versioned model repository using repository:tag syntax.
- [Run LLMs Locally with Docker: A Quickstart Guide to Model Runner](https://swe.quest/articles/run-llms-locally-with-docker-a-quickstart-guide-to-model-runner-ccfbbb71db5d1485.md): Docker · 2025-04-04 · Medium · 5 min read · Inference & serving, LLMs, Containers, Developer tools
  Docker Model Runner, in beta with Docker Desktop 4.40 on Apple silicon, pulls LLMs packaged as OCI artifacts and serves them through an OpenAI-compatible API backed by llama.cpp.
- [Llama 2 is here - get it on Hugging Face](https://swe.quest/articles/llama-2-is-here-get-it-on-hugging-face-c56eec059476bd0f.md): Hugging Face · 2023-07-18 · Medium · 9 min read · LLMs, Inference & serving, Model training, Python
  Meta's Llama 2 family (7B, 13B, 70B base and RLHF-tuned chat models) is released under a commercially usable license, trained on 40% more tokens than Llama 1 with 4k context and grouped-query attention for the 70B model, and is integrated across the Hugging Face ecosystem.
- [Local LLM Messenger: Chat with GenAI on Your iPhone](https://swe.quest/articles/local-llm-messenger-chat-with-genai-on-your-iphone-7541b86ddf4d704e.md): Docker · 2024-07-23 · Medium · 13 min read · LLMs, Python, Containers
  Local LLM Messenger (LoLLMM), an honorable-mention project from Docker's AI/ML Hackathon by Justin Garrison, lets you send iMessages to LLMs running on your own machine.
- [Llama can now see and run on your device - welcome Llama 3.2](https://swe.quest/articles/llama-can-now-see-and-run-on-your-device-welcome-llama-3-2-7daa894f937a79ac.md): Hugging Face · 2024-09-25 · Medium · 16 min read · LLMs, Computer vision, Inference & serving, Model training
  Meta's Llama 3.2 adds ten open-weight models: 11B and 90B vision models built by attaching a vision tower and image adapter to frozen Llama 3.1 8B/70B text models, 1B and 3B multilingual text models aimed at on-device use, and Llama Guard 3 variants for vision and small deployments.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
