What is llama.cpp?
llama.cpp es un motor de inferencia sencillo en C/C++ para ejecutar modelos de lenguaje grandes de forma local y en la nube. It sits in the Local Runtimes category of the Models & Inference tools and is open-source, written in C/C++ and licensed MIT. To get started: instalar llama.cpp.

Resumen
llama.cpp es un motor de inferencia sencillo en C/C++ para ejecutar modelos de lenguaje grandes de forma local y en la nube. Carga modelos en formato GGUF y los ejecuta en una amplia gama de hardware con una configuración mínima, desde la CPU de un portátil hasta GPU de NVIDIA, AMD y Apple.
Está pensado para desarrolladores que quieren ejecutar modelos abiertos en sus propias máquinas sin una pila pesada de Python ni dependencias externas. La cuantización de enteros (de 1.5 bits a 8 bits) reduce el uso de memoria, y la inferencia híbrida CPU+GPU permite acelerar parcialmente modelos más grandes que tu VRAM total.
Como entorno de ejecución local dentro del ámbito de la inferencia y el servicio de modelos, llama.cpp te ofrece tanto una herramienta de línea de comandos (llama-cli) para consultas puntuales como un servidor compatible con OpenAI (llama-server) al que puedes apuntar el código de cliente que ya tienes. También es el principal entorno de pruebas de la biblioteca ggml subyacente.
Qué hace
- Implementación en C/C++ puro, sin dependencias externas
- Ejecuta modelos GGUF en CPU, Apple Silicon (Metal/NEON/Accelerate) y GPU mediante CUDA, HIP, MUSA, Vulkan y SYCL
- Cuantización de enteros de 1.5 a 8 bits para una inferencia más rápida y un menor uso de memoria
- Inferencia híbrida CPU+GPU para acelerar parcialmente modelos más grandes que la VRAM total
- Servidor API REST integrado compatible con OpenAI (llama-server), con soporte multimodal
- Descarga y ejecuta modelos directamente desde Hugging Face con el flag -hf
Primeros pasos
Instala un binario precompilado o compila desde el código fuente, y luego indica a llama.cpp un archivo de modelo GGUF o un repositorio de Hugging Face.
Instalar llama.cpp
Instálalo con un gestor de paquetes (brew, nix o winget), ejecútalo con Docker, descarga un binario precompilado desde la página de versiones o compílalo desde el código fuente. Consulta las guías de instalación y compilación del proyecto para más detalles.
brew install llama.cppEjecutar un modelo desde la línea de comandos
Usa llama-cli con un archivo GGUF local, o añade -hf para descargar y ejecutar un modelo directamente desde Hugging Face.
# Use a local model file
llama-cli -m my_model.gguf
# Or download and run a model directly from Hugging Face
llama-cli -hf ggml-org/gemma-3-1b-it-GGUFIniciar el servidor compatible con OpenAI
Inicia llama-server para exponer una API REST a la que puedan llamar los clientes compatibles con OpenAI.
llama-server -hf ggml-org/gemma-3-1b-it-GGUF
Commands and code are distilled from the project's own documentation — always check the repositorio oficial para lo último.
Cuándo usarlo
- Ejecutar modelos abiertos sin conexión en un portátil o estación de trabajo, sin una pila de Python
- Servir una API local compatible con OpenAI para aplicaciones y agentes durante el desarrollo
- Hacer caber modelos más grandes en hardware limitado con cuantización e inferencia híbrida CPU+GPU
- Ejecutar inferencia en Apple Silicon o en GPU que no son de NVIDIA mediante Metal, Vulkan, HIP o SYCL
Historial de versiones
Every verified update to llama.cpp that AI/TLDR tracked, newest first — each links to our coverage and the official changeset.
- 2026-11-13v1.0.0
The first stable release of llama.cpp and ggml, which now follow semantic versioning: a major bump means a breaking change to the public C API. The deprecated public API (llama_set_warmup and 35 other functions) is removed, and the release adds an FP8 (E4M3) KV cache, Kimi-K3.1 support and an OpenAI-compatible /v1/audio/speech server endpoint.
- 2026-09-14v0.4.1
Adds architecture support for Maple 20B-A1B (a ternary mixture of experts, on CPU), Tencent Hy 4 as a preview architecture, and Spark2.5. ggml moves to v0.24.0, JSON schema handling is rebuilt around a common_schema representation, and the deprecated --mmap, --mlock, and --direct-io flags are removed in favour of --load-mode.
- 2026-09-04v0.4.0
Adds initial support for the Qwen3.8-Flash-Next (qwen4exp), NVIDIA Nemotron-3-Puzzle-75B-A9B, Nemotron 3.5 DSpark, and nanbeige4.2-3B architectures. A new --lazy-mode flag reads tensors from disk on demand, the server gains per-slot context limits, and ggml moves to 0.23.0 with sparse flash attention and Apple RDMA as an RPC transport.
llama.cpp in the news
- 2026-11-26DESTACADOllama-cpp-rdna-boosts — patches that speed up llama.cpp on AMD GPUs
- 2026-11-13MAYORllama.cpp v1.0.0 — first stable release, with semantic versioning
- 2026-10-16DESTACADOPS5LM v0.9.0 — llama.cpp runs on a jailbroken PS5's GPU
- 2026-09-30MAYORMagnitude — a local inference engine for agents, up to 2x faster than llama.cpp
- 2026-09-14MAYOROllama 0.34.1 — MLX safetensors leave experimental, GGUF needs llama.cpp
- 2026-09-14MAYORllama.cpp v0.4.1 — Maple 20B-A1B and Tencent Hy 4 now run locally
- 2026-09-04MAYORllama.cpp v0.4.0 — Qwen3.8-Flash-Next support and lazy tensor loading
- 2026-08-11MAYORMetal Capability Shim — llama.cpp runs up to 16x faster inside macOS VMs
Del Feed de lanzamientos de AI/TLDR — cada elemento se verifica en la fuente al publicarse.
How llama.cpp compares
llama.cpp alongside other open-source local runtimes tools AI/TLDR tracks, ranked by GitHub stars.
| Herramienta | Estrellas | Qué hace |
|---|---|---|
| Ollama | ★ 189k | A developer-friendly tool that downloads and runs local LLMs from the terminal with a built-in OpenAI-compatible API. |
| llama.cpp | ★ 137k | Ejecuta LLM en C/C++ en CPU, Apple Silicon y GPU con bajo consumo de memoria |
| GPT4All | ★ 77.3k | GPT4All is a free desktop app and Python client that runs large language models locally on your own computer, with no API calls or GPU required. |
| Colibrì | ★ 54.1k | A pure-C inference engine that keeps a Mixture-of-Experts model's dense trunk resident in RAM and streams its routed experts from disk, so 744B-2.8T models run on consumer hardware. |
| LocalAI | ★ 50.6k | A self-hosted server that exposes an OpenAI-compatible API for running text, vision, voice, and image models on local hardware. |
| Strata | ★ 49.5k | A one-click Windows and Linux engine that splits the 125B Qwen3.8-Flash-Next across GPU, RAM, CPU and SSD so it runs on a 12 GB gaming card, with OpenAI and Anthropic APIs on localhost. |
| Jan | ★ 46.3k | An open-source desktop app that runs LLMs fully offline as a ChatGPT-style assistant on your own computer. |
| AirLLM | ★ 43.7k | A Python inference library that keeps only one transformer layer on the GPU at a time, so a 70B model runs on a single 4GB card and a 671B MoE model on about 12GB, without quantization. |

