Skip to main content
Local Inference & ServingLocal-first

llama.cpp

ggml-org / llama.cpp

A C/C++ inference engine that runs on CPUs, Apple Silicon and consumer GPUs, with a wide range of quantisation formats.

135.6k stars 25744 forks C++ Language MIT License Last push 2026-11-18

Why choose it

  • Runs without a Python stack on many platforms.
  • Quantisation formats cover small memory budgets.
  • A common backend behind many local UIs.

Not for

You need high-throughput multi-user serving.
You want a managed API rather than a binary and libraries.

Minimum setup

  1. Build or download a binary and run a small GGUF model.
  2. Record tokens/sec, memory and thread count.
  3. Try a lower-bit quantisation and compare quality on your own prompts.

Dependencies and cost

Check runtime, model weights and external service dependencies in the README.

License and usage boundaries

Code is MIT; model weights, training data and generated content may have separate terms — check each before commercial use.

Open source is not automatically commercial-use friendly: GPL / AGPL are copyleft; code, model and output licenses are separate. Read the LICENSE and model card before launch, and involve legal when needed.

Alternatives and neighbors

  • Ollama — Start here,Pull and run local models with one command, with a built-in model library and an OpenAI-compatible API.
  • LocalAI — Local-first,A local OpenAI-compatible API supporting text, image and speech backends.
  • Text Generation WebUI — Local-first,A local LLM web UI supporting llama.cpp, Transformers and ExLlama backends, with model loading, chat and extensions on one page.

Next steps

  • Open GitHub and read the README, LICENSE, latest release and issues first.
  • Make an onboarding checklist for deployment dependencies, VRAM, data, network and permissions.
  • Run a small sample first, then decide on production; never start with production data.

GitHub repository ↗ Docs ↗ Add to compare

Snapshot: stars / forks / language / license / pushed_at come from the GitHub API snapshot on 2026-11-20; later changes are not written back. Tags and “fit / not fit” are editorial judgments, not GitHub metadata.
No endorsement: this site only indexes and flags risks; it does not audit code, guarantee security or make license decisions for you. Review repository scripts and model weights yourself.