Skip to content
HUIAHUB

ggml-org/llama.cpp

llama.cpp

LLM inference in C/C++

Metrics updated Mature+0.7% 7d

GitHub metrics

Stars
136K
+919 this week
Forks
26K
30-day growth
—
Open issues
698
133K135K136KNov 7, 2026Nov 23, 2026
GitHub stars from the official GitHub API, recorded each time the repository was checked (3 days).
GitHub stars by day
DayGitHub stars
2026-11-07133399
2026-11-16135239
2026-11-23136158

What it does

llama.cpp is a C/C++ program and library that runs large language models, including vision-language models, on your own hardware, from a laptop CPU to a multi-GPU server. It is built on the ggml tensor library and needs models in the GGUF file format.

After installing, two commands cover most uses. llama cli downloads a model from Hugging Face and opens an interactive session in the terminal. llama serve starts an HTTP server with a built-in web UI and OpenAI-compatible routes for chat completions, responses and embeddings. The server also has an Anthropic Messages compatible route, reranking, function calling, JSON-schema constrained output and Prometheus-style metrics.

The project puts weight on running well on ordinary machines. It has integer quantization from 1.5-bit to 8-bit to cut memory use, Metal and Accelerate support on Apple silicon, and CPU+GPU hybrid inference for models larger than the available VRAM. Backends cover CUDA, HIP for AMD, Vulkan, SYCL, Metal and others. Models in other formats can be converted with the convert_*.py scripts in the repository.

Why it matters

llama.cpp is written in plain C/C++ without external dependencies, and the same code builds for Macs, Windows and Linux PCs, Android and GPU servers. Its stated goal is LLM inference with minimal setup on a wide range of hardware. Low-bit quantization and splitting a model between CPU and GPU let people run models that would otherwise not fit in memory, and the bundled server gives those models an OpenAI-compatible API.

Main features

  • `llama serve`: OpenAI-compatible chat, responses and embeddings routes with a web UI
  • Anthropic Messages API compatible chat completions in the server
  • Integer quantization at 1.5, 2, 3, 4, 5, 6 and 8 bits
  • CPU+GPU hybrid inference for models larger than total VRAM
  • Backends including CUDA, HIP, Metal, Vulkan, SYCL, MUSA and CANN
  • Function calling, JSON-schema constrained output and GBNF grammars
  • Downloads GGUF models straight from Hugging Face with the `-hf` flag
  • Parallel decoding with continuous batching and speculative decoding in the server

Who it's for

  • Developers running models locally on a Mac, Windows or Linux machine
  • People with limited GPU memory who need quantized models or CPU+GPU splitting
  • App builders who want an OpenAI-compatible local server without a Python stack
  • Embedded and mobile developers targeting Android or uncommon hardware backends

Strengths

  • Runs on a very wide range of hardware, from Apple silicon and x86 CPUs to NVIDIA, AMD, Intel and Snapdragon chips
  • Low-bit quantization and CPU+GPU splitting reduce the memory a model needs
  • Single server binary with a web UI and OpenAI and Anthropic compatible routes
  • Very frequent releases: 30 in the last 90 days, latest v0.9.0 on 2026-11-04

Limitations

  • Needs models in GGUF format; other formats must be converted first
  • Tensor-parallel multi-GPU mode is experimental and not implemented for many architectures
  • Image input in the server is marked experimental
  • The OpenVINO backend is listed as in progress

Getting started

The README offers an install script, Docker images, prebuilt binaries on the releases page and a build-from-source guide. The shell install script is:

curl -LsSf https://llama.app/install.sh | sh

Requirements: Models in GGUF format; building from source needs CMake and a C/C++ compiler, plus the CUDA toolkit for NVIDIA GPU builds.

Always follow the official instructions in the README on GitHub. This overview is our summary, not a copy.

Sources