AI GLOSSARY · LOCAL AND OPEN MODELS

llama.cpp

Markdown version · Wikidata Q125998452

Definition

llama.cpp is an open-source C/C++ project for running large language model inference. Its README, published by ggml-org on GitHub, gives its main goal as enabling LLM inference with minimal setup.

Also called: llama cpp, llamacpp, llama-cpp-python, llama.cpp server, what is llama.cpp.

In plain language

llama.cpp is a program that runs an AI language model on your own computer instead of on a company's servers. You give it a model file, often in the GGUF format, and it answers prompts from the command line or through a small local web server. Other apps are built on top of it, so you may use it without knowing. It is a tool for running a model, not a model: you still have to find a model, and a large one will not fit on every machine. Setup, updates and memory limits are yours to manage, and a local server is only private if you keep it from being reachable by others.

Technical definition

The llama.cpp README describes the project as LLM inference in C/C++ and says its main goal is to enable LLM (and MLLM) inference with minimal setup; it is built on top of the ggml library. Hugging Face's documentation says llama.cpp can download and run a GGUF model from a Hugging Face repository path, caching the checkpoint, and can serve an OpenAI-spec chat completions endpoint through its server command. Install options include a package manager or building from source with hardware-specific flags, for example CUDA for Nvidia GPUs. Hugging Face's documentation says LM Studio is built on llama.cpp.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Guide · Illustrative, not executed

    Self-Hosting an AI Agent: What You Take On

    What you see
    The guide cites the llama.cpp README for its goal of LLM inference with minimal setup and state-of-the-art performance on a wide range of hardware, with Docker and source builds among the install options, and lists what running it yourself makes you responsible for.
    Why it exercises the concept
    It treats llama.cpp as the engine half of a self-hosted agent, and spells out the setup, exposure and file-access decisions that come with it.
  2. Skill by Skill Almanac · Illustrative, not executed

    local-model-sizing 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    A check of whether an open-weight language model will run on a given GPU, Mac or PC, with weight, KV-cache and overhead memory per quantization level.
    Why it exercises the concept
    The llama.cpp README does not tell you whether a model fits your hardware, so sizing it before you download is a useful step.
  3. Skill by Hugging Face · Illustrative, not executed

    hf-cli 21/100 · grade FScored · Method v0.2 · How we score

    What you see
    The catalogue lists this skill under ai-ml-engineering without a description line, so read its page before relying on it.
    Why it exercises the concept
    Hugging Face's llama.cpp page shows pulling a GGUF model from a Hub repository path; this skill is a Hugging Face entry in the catalogue.

How it shows up when you use agents

llama.cpp is one way to give an agent a local model. You install it or build it, point it at a GGUF file, and start its server, which Hugging Face's documentation says can offer an OpenAI-style chat completions endpoint. A coding agent or script that can talk to such an endpoint then sends requests to your machine. Other tools sit on top of it: Hugging Face says LM Studio is built on llama.cpp, and Ollama's README names it as a backend, so you may already be running it. This is the engine side of a self-hosted LLM.

What breaks when it is misunderstood: people expect a hosted-service experience and get a command-line tool whose flags, builds and hardware options they must manage. Memory limits decide what loads, and a quantized file trades quality for size.

Next action: size the model first with local-model-sizing, start with the smallest model that suits the task, and read Self-hosting an AI agent before leaving a server running. See GGUF for the file format and inference for what the engine does.

Common confusions

  • llama.cpp versus Llama. Llama is a family of models; llama.cpp is software that runs models in its supported formats. The name shares a prefix, but the project is not limited to one model family.
  • llama.cpp versus Ollama. Ollama's README names llama.cpp as its backend. Ollama is an application around it, with its own commands and model library.
  • llama.cpp versus GGUF. GGUF is a file format; llama.cpp is one program that reads it.
Show all 14 related terms

Terms that mention llama.cpp

17 terms mention this one

Guides that mention llama.cpp

More in Local and open models

Next steps

  1. Self-Hosting an AI Agent: What You Take On The long-form guide.
  2. local-model-sizing A skill that exercises it.
  3. Ollama Related term.
  4. GGUF Related term.
  5. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-24. Wikipedia is never the only source.

Review record

Last verified

Drafted by claude-sonnet-5-5; sources and example targets checked by claude-haiku-5-5 source check; claude-sonnet-5-5 editor pass on 2026-11-24. Last verified .

This entry is still in review, so it is not listed in search engines yet.

Change log (2)
  • : First version.
  • : Verifier pass: applied defect-list corrections (unsourced claims dropped or reworded to source wording).