Skip to main content
← Runners

llama.cpp

ggml-org
Open source MIT GGUF C++ Local inference llama-server 8 axes checked Active Checked 2026-11-21

Read the two badges separately: the first is whether this page is backed by evidence, the second is whether the product is still maintained. An archived product can have complete evidence; complete evidence does not mean the product is active.

30-second check: should it make your shortlist?

In one line

llama.cpp is the bedrock of the entire local-inference ecosystem: GGUF is defined…

How you use it

Local / self-hosted · CLI

Licence / commercial use

Open licence

Read the original licence before commercial use
Mainland China

Direct in mainland · Not in filing list

These four cards help you rule things out, not decide for you. The real differences are in the eight questions and sources below.

Information not confirmed

  • Full supported-model list: official docs roll with merges; check the repo model pages.
  • MCP boundaries: --mcp-servers-json is experimental; check the current server README parameters.
  • The official relationship between llama.app and the GitHub repo: the README links the installer, with ownership described on the site.

llama.cpp is the bedrock of the entire local-inference ecosystem: GGUF is defined here, the models-site quant index is built to its yardstick, and Ollama/LM Studio/KoboldCpp all build on top of it. MIT, pure C/C++, with an official REST line via llama-server.

When to use it, when not to

Fits: fine-grained control (quant tiers/backends/params), GGUF on consumer GPUs and Apple silicon, powering in-house tools. Not a fit: out-of-the-box GUIs; multi-model high-concurrency serving.

China availability domestic / direct access / CAC filing · snapshot 2026-11-21

Origin
foreign-made ggml-org (open-source org led by Georgi Gerganov).
Direct access
direct OK github.com/ggml-org/llama.cpp and llama.app measured 200 direct (2026-10-21); the llama.cpp apex domain measured 000 (network-limited, not a death verdict).
CAC filing
not in filing list:not in the CAC public registry (searched 2026-10-21); the open-source project does not serve the mainland public, so filing does not apply.

Filing status is quoted from the CAC public registry (updated batch by batch; this site copies the number and does not interpret it). "Direct access" is this site's own reachability measurement from a mainland network, not a vendor promise. GitHub-hosted sites fluctuated on the measurement day — the note says so.

8 questions, one table

8 questions, each comparable item by item with its peers.

Model & openness

The root of the GGUF ecosystem: the official server runs F16 and quantised models on GPU/CPU, with models taken from Hugging Face as GGUF or converted from safetensors; supported model families roll with merges, while quantised files come from community quantisers (2026-11-21).

Where it runs

A C/C++ inference library plus llama-server: OpenAI-compatible /v1/chat/completions, /v1/completions, embeddings and responses, and an Anthropic-compatible /v1/messages. Build backends cover CPU, Metal, SYCL, CUDA, HIP and Vulkan, with a built-in web UI (2026-11-21).

Local files

Fully local: model weights, KV cache, conversations and outputs stay on the user’s machine; --kv-offload moves KV cache to GPU while --no-kv-offload keeps it on CPU, and there is no official cloud-hosted line (2026-11-21).

Tasks after shutdown

llama-server is a long-running service: continuous batching is on by default, -np/--parallel sets slot count and --ctx-checkpoints retains context checkpoints. It suits an always-on process, with any hosted queue built by the deployer (2026-11-21).

Tools & extensions

A strong tool surface: --jinja enables OpenAI-style function calling/tool use with native formats plus a generic fallback for any model; experimental --mcp-servers-json connects Cursor-compatible MCP servers; --agent enables built-in tools and a CORS proxy; plus schema-constrained JSON, multimodal, reranking and monitoring endpoints (2026-11-21).

Context & memory

Context is controlled at launch: -c/--ctx-size sets the prompt window, --kv-unified-per-slot caps each parallel slot, -ctk/-ctv compress KV cache to q8/q4 types and --ctx-checkpoints retains up to 32 checkpoints (2026-11-21).

Permissions & limits

MIT licensed with no account system for the local process; llama-server authenticates Bearer keys via --api-key or --api-key-file; MCP/agent are off by default and, when enabled, restrict CORS to localhost for safety, with official warnings against untrusted environments (2026-11-21).

Best for

Fit: fine-grained control over quantisation, backends, context and KV cache; GGUF on consumer hardware; a local inference base for downstream tools; MCP/tool calling at the server layer. Not fit: turnkey GUIs or high-throughput multi-model serving (vLLM/SGLang are stronger there) (2026-11-21).

Licence and terms of use

MIT (official repo README badge and LICENSE consistent, direct-fetched 2026-10-21).

Top misconception

  • Treating GGUF support as 'every model has a quant build' — quant builds come from third-party quantizers; check the models-site index
  • Knowing only the CLI — llama-server is the official REST line many tools run on
  • Using an old-domain habit — the README now promotes the llama.app install script (direct-fetched 2026-10-21)

Evidence sources

Checked 2026-11-21,Content updated 2026-11-21。This is the date of the entry, not a claim that every field was rechecked that day.

TypeNameLink
repoggml-org/llama.cpp — repository (MIT; 132,794 stars, last push 2026-10-30, verified via GitHub API)https://github.com/ggml-org/llama.cpp
changelogggml-org/llama.cpp — Releases (changelog including nightly; fetched 200 on 2026-11-21)https://github.com/ggml-org/llama.cpp/releases
docsllama.app — official installer docs (API server and tool calling; fetched 200 on 2026-11-21)https://llama.app/docs/api
docsllama.cpp — server README (parallel slots, MCP/agent, api-key and KV cache parameters; fetched via GitHub API 2026-11-21)https://github.com/ggml-org/llama.cpp/blob/master/tools/server/README.md
docsllama.cpp — Function Calling docs (--jinja and native/generic tool formats; fetched via GitHub API 2026-11-21)https://github.com/ggml-org/llama.cpp/blob/master/docs/function-calling.md
docsllama.cpp — Build docs (CPU/Metal/SYCL/CUDA/HIP/Vulkan backends; fetched via GitHub API 2026-11-21)https://github.com/ggml-org/llama.cpp/blob/master/docs/build.md

Test notes

This entry checks the official server, function-calling and build docs plus the repo licence. Throughput, VRAM and MCP tool-chain stability need testing on specific hardware and models.

Related entries

  • OllamaThe generation that built an out-of-the-box experience on top of llama.cpp; for low-level control return to this dossier.
  • KoboldCppThe single-file GUI route built on llama.cpp.
  • OpenAI Agents SDKOther layer · Frameworks & runtimes
  • LlamaIndex FrameworkOther layer · Frameworks & runtimes

Same-category peers

Look at these three before reading further

Selected by overlap in jobs, not ranked. Compare where it runs, licence and status first; if one of the three fails, skip it.

ObjectWhereLicenceEvidence / statusWhat it is for
ExLlamaV3Local / self-hostedOpen licence8 questions checked
Active
The successor to ExLlamaV2: low-latency local inference on NVIDIA GPUs u
LocalAILocal / self-hostedOpen licence8 questions checked
Active
LocalAI is the 'change the URL and go local' multimodal runtime: a singl
MLC LLMLocal / self-hostedOpen licence8 questions checked
Active
MLC LLM: a compile-to-native cross-platform inference engine (Apache-2.0

This page is generated from the ai-handbook data layer (CC BY 4.0). For the judging criteria and method notes, see METHODOLOGY.md.