# llama.cpp

> LLM inference in C/C++

Source: https://talira.ai/catalog/llama-cpp-g0rydd64
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool, Infrastructure
- Categories: [ai / inference / engines](https://talira.ai/categories/ai/inference/engines), [ai / inference / servers](https://talira.ai/categories/ai/inference/servers)
- Platforms: macos, linux, windows, android, docker[^4][^6]
- Licence: MIT[^3]
- Pricing: Free and open source[^3]
- Free tier: yes[^3]
- Self-hostable: yes[^4]
- API: yes[^5]
- Backed by: [ggml](https://talira.ai/orgs/ggml-org.md)
- Creator: Georgi Gerganov
- Funding: acquired by Hugging Face (2026)[^7]

llama.cpp runs large language models (and multimodal ones) locally or in the cloud with minimal setup, built on the ggml tensor library. It loads GGUF models, downloads them straight from Hugging Face, quantizes them, and runs on CPUs and on Metal, CUDA, HIP, Vulkan, SYCL and other GPU backends. `llama-server` is an OpenAI- and Anthropic-compatible HTTP server with continuous batching, tool calling, embeddings, reranking and a built-in chat app, and engines such as [Ollama](https://talira.ai/catalog/ollama-gr2tx5nn.md) use it as a backend. Georgi Gerganov started it in 2023; it's MIT-licensed, and ggml.ai, the company behind it, was acquired by Hugging Face in 2026.

## Links

- GitHub: https://github.com/ggml-org/llama.cpp

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/llama.cpp>[^1]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/llama.cpp>[^2]

## Problems it solves

- run an open language model on my laptop without a Python stack
- serve a local model behind an OpenAI-compatible API for my app
- run LLM inference on a machine with only a CPU
- use my AMD or Intel GPU for local models, not just NVIDIA
- quantize a model so it fits in my GPU's memory
- embed LLM inference in a C or C++ application
- constrain a local model's output to valid JSON or a grammar
- run a vision model locally on images
- self-host an embeddings and reranking endpoint on our own hardware

## Features

- GGUF models, downloaded directly from Hugging Face
- CPU, Metal, CUDA, HIP, Vulkan, SYCL, MUSA and BLAS backends
- quantization
- llama-server with OpenAI- and Anthropic-compatible APIs
- continuous batching and parallel decoding
- function calling and grammar-constrained output
- multimodal models
- embeddings and reranking endpoints
- built-in chat app
- speculative decoding

## Capabilities

- Has an API: plan not known
- Has a command line tool: plan not known

## Trust

Overall: 0.56 out of 1.
Signals: backing 0.75, extensibility 0.40.

- backed by ggml
- created by Georgi Gerganov
- funding: acquired by Hugging Face (2026)

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [LocalAI](https://talira.ai/catalog/localai-5j77s2mj.md): Your own AI, on your own hardware
- [Ollama](https://talira.ai/catalog/ollama-gr2tx5nn.md): Start building with open models, locally or in the cloud
- [Lemonade Server](https://talira.ai/catalog/lemonade-server-91fmrpag.md): Refreshingly fast local AI: a local AI server for text, images and speech on your own GPU and NPU
- [KoboldCpp](https://talira.ai/catalog/koboldcpp-a39h31en.md): Run GGUF AI models locally with a KoboldAI UI. One file, zero install.
- [vLLM](https://talira.ai/catalog/vllm-f1czevpj.md): A high-throughput and memory-efficient inference and serving engine for LLMs
- [SGLang](https://talira.ai/catalog/sglang-wv3z63s3.md): Fast inference for LLMs and multimodal models

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
[^3]: https://github.com/ggml-org/llama.cpp/blob/master/LICENSE (checked 19 Nov 2026)
[^4]: https://github.com/ggml-org/llama.cpp (checked 19 Nov 2026)
[^5]: https://github.com/ggml-org/llama.cpp/blob/master/tools/server/README.md (checked 19 Nov 2026)
[^6]: https://github.com/ggml-org/llama.cpp/blob/master/docs/build.md (checked 19 Nov 2026)
[^7]: https://ggml.ai/ (checked 20 Nov 2026)
