llama.cpp
Core C/C++ LLM inference engine powering GGUF quantization across CPUs, Apple Silicon, and consumer GPUs.
Typical Workflow & Performance
Typical workflow: compiling and running quantized GGUF models via llama-server on Apple Silicon and CPU-only systems. Delivers maximum hardware efficiency with zero external runtime dependencies.
Based on the project's documentation and community reports, not our own lab benchmarks. Speed depends on your GPU, drivers, quantization and settings.
Which GPUs Can Run llama.cpp?
llama.cpp runs on the CPU, so no dedicated GPU is required; a GPU only makes it faster. Plan for at least 4 GB of system RAM.
| VRAM | Example GPUs | Runs llama.cpp? |
|---|---|---|
| 4 GB | GTX 1650, RTX 3050 Laptop | Yes |
| 6 GB | RTX 2060, RTX 3060 Laptop, GTX 1660 Super | Yes |
| 8 GB | RTX 3060 Ti, RTX 3070, RTX 4060 | Yes |
| 12 GB | RTX 3060 12GB, RTX 4070 | Yes |
| 16 GB | RTX 4060 Ti 16GB, RTX 4070 Ti Super, RTX 5070 Ti | Yes |
| 24 GB | RTX 3090, RTX 4090 | Yes |
How to Install llama.cpp
- macOS / Linux (Homebrew):
brew install llama.cpp - Windows: Download a prebuilt zip from the GitHub Releases page (pick the CUDA build for NVIDIA cards).
- Run a GGUF model from Hugging Face:
llama-cli -hf ggml-org/gemma-3-1b-it-GGUF
Steps follow the official instructions at the time of writing. Projects change often, so check the official README for the latest version.
Pros
- Runs quantized LLMs on pure CPU, Apple Metal, CUDA, Vulkan, and ROCm
- Zero-dependency C/C++ binary with built-in OpenAI-compatible HTTP server
- Reference implementation for GGUF quantization and split CPU/GPU offloading
Cons
- Command-line flags require manual tuning for optimal layer offloading
- Built-in web chat interface is minimal compared to Open WebUI