llama.cpp
llama.cpp is the open-source C/C++ engine behind most local AI apps, created by Georgi Gerganov in 2023 and backed by Hugging Face since 2026.
Last updated
llama.cpp is a free, open-source C/C++ library and set of tools for running large language models on ordinary computers, including ones with no graphics card. Georgi Gerganov started it in March 2023. It is led by his company ggml.ai, which joined Hugging Face on February 20, 2026. Most local AI apps run on it, including Ollama and LM Studio.
Who made llama.cpp?
Georgi Gerganov, a developer based in Bulgaria, started the GGML tensor library in September 2022 and then wrote whisper.cpp, a fast C/C++ port of OpenAI’s Whisper speech-to-text model. In March 2023, shortly after Meta’s first Llama model came out, he applied the same approach to Llama in plain C/C++ with no dependencies. That is why it is called llama.cpp. It ran on a MacBook CPU at a time when running such models normally needed a data-center GPU.
In 2023 Gerganov founded ggml.ai to support the work. Its pre-seed funding came from Nat Friedman and Daniel Gross.
Who owns llama.cpp now?
The code is MIT-licensed and belongs to its contributors. The team that leads it is now part of Hugging Face: on February 20, 2026, Hugging Face announced that GGML and llama.cpp were joining the company. According to that announcement:
- Gerganov and his team still spend all of their time on llama.cpp and keep full technical leadership.
- The project stays 100% open source and community-driven.
- Hugging Face provides long-term funding and will make it easier to bring new models from its Transformers library to llama.cpp.
On September 3, 2026, Nvidia agreed to acquire Hugging Face. That deal still needs regulatory approval, so for now llama.cpp’s backer is an independent Hugging Face.
What does llama.cpp do?
llama.cpp turns a model file into a working chatbot or API on your own hardware. Its main features are:
- Quantization, which shrinks models to 2 to 8 bits per weight so they fit in ordinary RAM. See what Q4_K_M means.
- Many hardware backends, including x86 and Arm CPUs, Apple Metal, NVIDIA CUDA, AMD HIP, Vulkan and SYCL
- Partial offloading, which puts some model layers on the graphics card and keeps the rest in system RAM
llama-server, which serves an OpenAI-compatible API and a simple web chat interface- The GGUF file format, created by the project in August 2023 and now the standard for local models
As of November 2026, its GitHub repository has more than 130,000 stars.
How do I start with llama.cpp?
Download a prebuilt release from GitHub, get a GGUF file from Hugging Face, and run llama-server -m model.gguf. To choose a model that fits your machine, use the LLM VRAM and RAM calculator or the guides for 8GB, 16GB and 32GB of RAM. All local LLM guides are in the local LLM topic hub.
llama.cpp: common questions
Who created llama.cpp?
llama.cpp was created by Georgi Gerganov, a software developer from Bulgaria, in March 2023. He had earlier written the GGML tensor library and whisper.cpp. Today it is developed by his team at ggml.ai together with hundreds of open-source contributors.
Who owns llama.cpp?
llama.cpp is open-source software under the MIT License, so no one owns the code in the usual sense. The company that leads it, ggml.ai, joined Hugging Face on February 20, 2026. Hugging Face says Georgi Gerganov and his team keep full technical control and that the project stays 100% open source.
Is llama.cpp made by Meta?
No. The name comes from Meta's Llama models, which were the first models it ran, but llama.cpp is an independent open-source project. It now runs many model families, including Qwen, Gemma, Mistral, DeepSeek and gpt-oss.
Is llama.cpp free and open source?
Yes. llama.cpp is free and open source under the MIT License, which allows commercial use. You can download prebuilt binaries from its GitHub releases page or build it from source.
Is llama.cpp faster than Ollama?
Often slightly, because you can tune every setting and get new optimizations the day they are merged. Ollama and LM Studio both build on llama.cpp's GGML library, so on the same model and settings the speed is usually close. Ollama and LM Studio are easier to use; llama.cpp gives the most control.
What is GGUF?
GGUF is the model file format created by the llama.cpp project in August 2023. It stores the model weights, the tokenizer and the settings in one file, and supports quantized weights from about 1.5 to 8 bits. It is the standard format for local models in Ollama, LM Studio and llama.cpp.
Sources
Topic
More on Local LLMs
- GuideBest Local LLM for 16GB RAM: 10 Models That Fit (2026)The best local LLMs for 16GB RAM and no GPU: 10 models that fit, real Ollama sizes, speed estimates, and the popular picks that only fit a 16GB GPU.
- GuideBest Local LLM for 32GB RAM: 10 Models That Fit (2026)The best local LLMs for 32GB RAM and no GPU: 10 models that fit, real Ollama sizes, and why mixture-of-experts models run 5 to 10 times faster on a CPU.
- GuideWhat Is Q4_K_M? GGUF Quantization Explained (2026)What Q4_K_M means in a GGUF file, how it compares with Q4_K_S, Q5_K_M, Q6_K, Q8_0, IQ4_XS and UD-Q4_K_XL, and which quantization to download for your RAM.
- GuideBest LLM for 8GB RAM, CPU Only: 9 Open Source Picks (2026)The best open source LLMs for 8GB RAM and no GPU: 9 models that fit, real download sizes, speed estimates and Ollama setup for Windows, Mac and Linux.
- AI Token CounterCount tokens exactly for GPT-5, GPT-4o and GPT-4, with estimates for Claude and Gemini, context window fit and cost. Free, nothing is uploaded.
- LLM VRAM and RAM CalculatorFind how much VRAM or RAM a local LLM needs for any model size, GGUF quantization and context length, and whether it fits your GPU, Mac or PC.