llama.cpp vs vLLM vs MLX vs Ollama
Compare hardware backends, quantization formats, concurrency trade-offs, and recommended GPUs across the four main local LLM runtimes.
llama.cpp
CUDA · Metal · ROCmUniversal C/C++ local LLM runtime with exact GGUF & MoE CPU offload
The baseline single-user and power-user engine across NVIDIA CUDA, Apple Metal, AMD ROCm/Vulkan, Intel SYCL, and CPU-only machines. Supports fine-grained --n-cpu-moe offload, Q8_0/Q4_0 KV cache, and --jinja --cache-reuse for Coding Agents.
vLLM
CUDA · ROCm (Linux)High-throughput PagedAttention server for multi-user & Blackwell NVFP4
Production OpenAI-compatible serving engine built around PagedAttention and continuous batching. Excels on NVIDIA CUDA (including Blackwell NVFP4) and supported AMD ROCm GPUs when serving teams or parallel agent loops.
MLX (Apple Silicon)
Apple Metal (Unified Memory)Native Apple unified-memory framework for M1–M5 Max & Ultra Macs
Apple’s first-party array framework with mlx-lm serving. Eliminates CPU/GPU memory copies on Apple Silicon unified memory, delivering top efficiency on 48 GB–512 GB Mac Studio and MacBook Pro rigs.
Ollama
CUDA · Metal · ROCmOne-command local model manager & OpenAI-compatible daemon
Wraps llama.cpp (and MLX backends) behind a Docker-like pull/run CLI and background API daemon. Ideal for fast onboarding, automatic model management, and quick switching across local tools.