Close Menu
techwavedispatch.com

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Draining peatlands is responsible for a few percent of our global warming

    November 26, 2026

    Here’s Everything You Can Do With With the New Gemini AI on Android Auto

    November 26, 2026

    Change Partners at Every Layer: Balanced Random Regrouping for Model Merging

    November 26, 2026
    Facebook X (Twitter) Instagram
    Trending
    • Draining peatlands is responsible for a few percent of our global warming
    • Here’s Everything You Can Do With With the New Gemini AI on Android Auto
    • Change Partners at Every Layer: Balanced Random Regrouping for Model Merging
    • From minimalist to maximalist: Ars staffers show off their home offices
    • A First Drive With the Fiat Topolino in New York City
    • Knowledge-Base Gradient Descent: Self-Structuring Learning through Question Answering
    • Microsoft details how state-backed hackers use the ARTEX AI framework to automate cyberattacks
    • The Best Gaming Mouse You Can Buy After Testing Dozens of Models
    Facebook X (Twitter) Instagram
    techwavedispatch.com
    Subscribe
    Thursday, November 26
    • Home
    • AI Tools & Software
    • Machine Learning
    • Generative AI
    • Robotics & Automation
    • Future Tech & Hardware
    • AI in Business
    • Ethics & Regulations
    • More
      • Gadgets & Smart Devices
      • Cybersecurity & AI
      • Tech Breakthroughs
    techwavedispatch.com
    Home»AI Tools & Software»New in llama.cpp: Model Management
    AI Tools & Software

    New in llama.cpp: Model Management

    adminBy adminNovember 8, 2026No Comments3 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    New in llama.cpp: Model Management
    Share
    Facebook Twitter LinkedIn Pinterest Email

    llama.cpp server now ships with router mode, which lets you dynamically load, unload, and switch between multiple models without restarting.

    Reminder: llama.cpp server is a lightweight, OpenAI-compatible HTTP server for running LLMs locally.

    This feature was a popular request to bring Ollama-style model management to llama.cpp. It uses a multi-process architecture where each model runs in its own process, so if one model crashes, others remain unaffected.



    Quick Start

    Start the server in router mode by not specifying a model:

    llama-server
    

    This auto-discovers models from your llama.cpp cache (LLAMA_CACHE or ~/.cache/llama.cpp). If you’ve previously downloaded models via llama-server -hf user/model, they’ll be available automatically.

    You can also point to a local directory of GGUF files:

    llama-server --models-dir ./my-models
    



    Features

    1. Auto-discovery: Scans your llama.cpp cache (default) or a custom --models-dir folder for GGUF files
    2. On-demand loading: Models load automatically when first requested
    3. LRU eviction: When you hit --models-max (default: 4), the least-recently-used model unloads
    4. Request routing: The model field in your request determines which model handles it



    Examples



    Chat with a specific model

    curl http://localhost:8080/v1/chat/completions \
      -H "Content-Type: application/json" \
      -d '{
        "model": "ggml-org/gemma-3-4b-it-GGUF:Q4_K_M",
        "messages": [{"role": "user", "content": "Hello!"}]
      }'
    

    On the first request, the server automatically loads the model into memory (loading time depends on model size). Subsequent requests to the same model are instant since it’s already loaded.



    List available models

    curl http://localhost:8080/models
    

    Returns all discovered models with their status (loaded, loading, or unloaded).



    Manually load a model

    curl -X POST http://localhost:8080/models/load \
      -H "Content-Type: application/json" \
      -d '{"model": "my-model.gguf"}'
    



    Unload a model to free VRAM

    curl -X POST http://localhost:8080/models/unload \
      -H "Content-Type: application/json" \
      -d '{"model": "my-model.gguf"}'
    



    Key Options

    Flag Description
    --models-dir PATH Directory containing your GGUF files
    --models-max N Max models loaded simultaneously (default: 4)
    --no-models-autoload Disable auto-loading; require explicit /models/load calls

    All model instances inherit settings from the router:

    llama-server --models-dir ./models -c 8192 -ngl 99
    

    All loaded models will use 8192 context and full GPU offload. You can also define per-model settings using presets:

    llama-server --models-preset config.ini
    
    [my-model]
    model = /path/to/model.gguf
    ctx-size = 65536
    temp = 0.7
    



    Also available in the Web UI

    The built-in web UI also supports model switching. Just select a model from the dropdown and it loads automatically.



    Join the Conversation

    We hope this feature makes it easier to A/B test different model versions, run multi-tenant deployments, or simply switch models during development without restarting the server.

    Have questions or feedback? Drop a comment below or open an issue on GitHub.

    llama.cpp Management model
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    admin
    • Website

    Related Posts

    Change Partners at Every Layer: Balanced Random Regrouping for Model Merging

    November 26, 2026

    Microsoft details how state-backed hackers use the ARTEX AI framework to automate cyberattacks

    November 26, 2026

    Introducing the llama.cpp benchmark dashboard for AMD Ryzen and Radeon

    November 26, 2026
    Leave A Reply Cancel Reply

    Top Posts

    NVIDIA Is Investigating Reports That CEO Jensen Huang Was The Target Of Chinese Spy Efforts

    November 8, 202619 Views

    Mixture of Experts Explained

    November 13, 202610 Views

    ADIndex: Layer-Adaptive Sparse Attention Indexing via Group-Level Distillation

    November 11, 20266 Views

    Anthropic releases new Mythos and Fable models amid RSI concerns

    November 9, 20266 Views
    Don't Miss
    Tech Breakthroughs

    Draining peatlands is responsible for a few percent of our global warming

    By adminNovember 26, 20260

    The simplest way to represent the climate impact of both CO2 and methane changes was…

    Here’s Everything You Can Do With With the New Gemini AI on Android Auto

    November 26, 2026

    Change Partners at Every Layer: Balanced Random Regrouping for Model Merging

    November 26, 2026

    From minimalist to maximalist: Ars staffers show off their home offices

    November 26, 2026
    About Us

    Welcome to TechWave Dispatch

    At TechWave Dispatch, we bring you the latest news, insights, and developments from the ever-evolving world of technology. Our mission is to keep readers informed about the innovations shaping our digital future.

    From artificial intelligence and machine learning to cybersecurity, robotics, smart devices, and groundbreaking technologies, we cover the topics that matter in today's fast-moving tech landscape.

    Our Picks

    Draining peatlands is responsible for a few percent of our global warming

    November 26, 2026

    Here’s Everything You Can Do With With the New Gemini AI on Android Auto

    November 26, 2026

    Change Partners at Every Layer: Balanced Random Regrouping for Model Merging

    November 26, 2026
    Most Popular

    Robot Videos: Home Cable Robot, JPL turns 90, and More

    November 6, 20260 Views

    RIP Cybertruck. You Were Unloved, Unwanted, and Utterly Absurd

    November 6, 20260 Views

    After printing 40,000 whistles, this is the 3D printer I’d buy

    November 6, 20260 Views
    Facebook X (Twitter) Instagram Pinterest
    • Terms and Conditions
    • Privacy Policy
    • Contact Us
    • About Us
    © 2026 TechWave Dispatch. All Rights Reserved.

    Type above and press Enter to search. Press Esc to cancel.