llama.cpp
Open-source software for running language models locally on CPU or GPU, including a server with an OpenAI-compatible API.
What it does
llama.cpp is open-source software written in C/C++ that runs open-weight language models on your own hardware. Models use the GGUF format and can be shrunk to roughly 2 to 8 bits per weight so they also run on ordinary computers. Besides CPUs, it supports GPUs through CUDA, Metal, Vulkan, HIP, SYCL and other backends. The bundled server offers interfaces compatible with OpenAI and Anthropic, plus embeddings, reranking, function calling, output that follows a JSON schema, and image, audio and video input. A chat interface is built in.
Who it suits
Development teams and IT departments that want to run models in-house or build them into their own applications without using a cloud service. For an easier start, the Llama app for macOS and Windows 11 is built on llama.cpp.
Data protection for businesses
Models run entirely on your own computers or servers. You choose the location, including the EU, and your inputs are not used as training material by any vendor. No data processing agreement is needed because no vendor processes your data. There are no business plans. The MIT licence permits commercial use.
Limits
Setup is mostly done on the command line and requires technical knowledge. Quality and speed depend on the model, the quantization and the hardware. Heavy compression can noticeably reduce accuracy. There is no paid support; help is available on GitHub.