llama.cpp
MIT local LLM inference in C/C++ on almost any hardware
AI Agents / Local Inference · OSS/MIT · 132k
Reviewed 2026-10-13 · last push 2026-10-19 · repo checked 2026-10-19
What's Good
MIT (ggml-org/llama.cpp), release v0.6.0, plus nightly builds. One-line installers (curl or PowerShell), prebuilt binaries, Docker, or build from source. Plain C/C++ with no dependencies; Apple Silicon is first-class via Metal, plus CUDA, HIP (AMD), Vulkan, SYCL, WebGPU and more. 1.5- to 8-bit quantization, and CPU+GPU hybrid inference for models bigger than your VRAM. Handles vision models too, and GBNF grammars constrain output. ★~131k.
The Catch
It runs GGUF models, so you convert or download quantized weights, and model licences are separate — check the model card before commercial use. Lots of knobs: speed depends on backend, quant and offload settings, so expect to tune. Vs Ollama (friendlier model manager on similar ground): pick llama.cpp when you want the engine and its flags directly. Vs vLLM or SGLang: those are GPU serving engines for many concurrent users; llama.cpp is the one for laptops, edge boxes and single-user servers.
Verdict
The default local LLM engine — free, runs nearly anywhere, but you own the model choice and the tuning.
Embed
Maintainer? Add the badge to your README. It is free, links to this review, and there is no paid version.
Markdown
[](https://stackgems.com/gems/llama-cpp)
HTML
<a href="https://stackgems.com/gems/llama-cpp"><img src="https://stackgems.com/badge/llama-cpp.svg" alt="llama.cpp reviewed on Stack Gems" height="20"></a>
Related
AI Agents →- OllamaMIT local model runner — free forever; Pro cloud $20/mo
- vLLMApache-2.0 high-throughput LLM inference and serving engine
- KevApache-2.0 tiny Jev-like decision models you train and serve locally
- ReefApache-2.0 infra for continually self-improving agents
- MagnitudeApache-2.0 local inference desktop+CLI — consumer profiler for agents