ggml-org/llama.cpp

Machine Learning

Runs LLM and VLM inference locally across CPUs, GPUs and phones without a Python stack.

132,257
24,775
C++
MIT
3 years old

The problem

Getting an LLM to answer on your own hardware usually means dragging in a Python environment, a large framework, a CUDA toolchain and a model format that only one stack understands. That works on a single well-provisioned Linux box and falls apart everywhere else: an old laptop, a Mac, a phone, a Windows machine with a consumer GPU, or a cloud VM with a fraction of a card. llama.cpp exists to make model inference a small, portable binary that runs on whatever is actually there.

What's different

The project is a C/C++ inference implementation built on ggml, with hand-written kernels per backend rather than a general tensor runtime with a compatibility layer. Three things actually separate it. First, quantization down to very low bit widths (README claims 1.5-bit through 8-bit integer formats) is a first-class design goal, not an afterthought, which is what lets large models fit in modest memory. Second, backend coverage is unusually wide for one codebase: CUDA, HIP, Metal, Vulkan, SYCL, WebGPU, and even NPU targets, plus CPU+GPU hybrid inference for models that exceed VRAM. Third, it ships a CLI and an OpenAI-compatible server so an existing client can point at it without changes.

Compared with vLLM, the trade-off is clear: vLLM targets throughput on server GPUs and has much less interest in your laptop or a Snapdragon phone. Compared with Python transformers plus bitsandbytes, llama.cpp trades flexibility and quick model experimentation for speed and portability. Compared with using a hosted API, you trade model quality and zero ops for privacy, no per-token cost, and no network dependency.

Who it's for

It fits people who need inference to run on hardware they already own or can cheaply rent: desktop and mobile app developers embedding a local model, teams that cannot send data to a third party, edge and embedded deployments, and anyone prototyping on a Mac. It is a reasonable choice for a small self-hosted server with a few concurrent users.

Look elsewhere if you need high-throughput multi-tenant serving, aggressive continuous batching at scale, or a stable long-term ABI — the README itself links an open issue about a lib llama API, which tells you the library interface is still in flux. If your models are exotic architectures released last week, expect to wait for a port.

Cost of adoption

MIT licensed, which removes most legal friction. Installation is genuinely light — the README offers a curl script (curl -LsSf https://llama.app/install.sh | sh), a PowerShell one-liner, Docker, prebuilt release binaries, and a source build. The real cost is operational: you pick and manage GGUF model files yourself, choose quant levels, and tune GPU offload layers by hand to fit memory. Builds with GPU backends need the matching vendor toolchain, and the backend table shows several targets still marked in progress. The project moves fast, with nightly and tagged releases, so pin a version rather than tracking master.

Verdict

This is not a new project riding a spike: created in March 2023, it has had over 1,300 days to accumulate 132k stars and roughly 24.7k forks, and the recent trending appearance added only about 106–111 stars per day — steady maintenance-level attention, not a hype wave. The announcement that ggml.ai joined Hugging Face (839 points on HN) is the more meaningful signal: institutional backing for a project whose main risk was always maintainer burnout. For local inference it is close to the default choice, and the main reason not to use it is that you need datacenter-scale serving throughput rather than portability.

Hacker News

Ggml.ai joins Hugging Face to ensure the long-term progress of Local AI
▲ 839 · 223 comments · February 20, 2026
Vision Now Available in Llama.cpp
▲ 550 · 104 comments · May 10, 2025
Mistral Integration Improved in Llama.cpp
▲ 95 · 15 comments · August 11, 2025

Written by AI from the project's README, updated October 25, 2026. The project's own docs are the source of truth.