llama.cpp
C/C++ inference engine for GGUF LLMs and VLMs with an OpenAI-compatible server
llama.cpp runs quantized LLMs and vision-language models on CPUs and GPUs from a plain C/C++ codebase built on ggml. It ships a CLI (`llama cli`) and an OpenAI-compatible HTTP server (`llama serve`) with a built-in web UI, and can pull models directly from Hugging Face. Backends cover CUDA, HIP, Metal, Vulkan, SYCL, CANN, OpenCL and others, with CPU+GPU hybrid offload for models larger than VRAM.
Strengths
- Many backends: CUDA, HIP, Metal, Vulkan, SYCL, CANN, MUSA, OpenCL, RPC, WebGPU
- 1.5-bit to 8-bit integer quantization reduces memory use
- CPU+GPU hybrid inference for models larger than VRAM
- No dependencies in the core; prebuilt binaries, Docker and winget available
Weaknesses
- OpenVINO backend is marked in progress
- Building from source needs backend-specific toolchains such as CUDA or Vulkan SDKs
- Built-in web UI is minimal next to dedicated chat front-ends
- Interfaces are CLI and C API; no managed model library in the README
- GPU optional
- Docker
- Models: GGUF, LLM, VLM, Hugging Face download