llama.cpp is an open-source inference engine in C/C++, built on the ggml library. It aims to run LLMs and multimodal models locally and in the cloud with minimal setup, and it is the project behind the GGUF model format.
llama cli runs a model directly, including ones pulled from Hugging Face, and llama serve starts an OpenAI-compatible API server. GBNF grammars constrain output, and it supports multimodal input, text-to-speech models and multi-GPU use. Docker images and Android builds are available.
Install with the shell or PowerShell script, Docker, prebuilt release binaries, or build from source. It is MIT licensed. Many other tools, including Ollama and LM Studio, build on it.