Learn AI Math

llama.cpp

What is llama.cpp?

In one sentence: llama.cpp is a popular open-source program for running large language models efficiently on ordinary computers.

Written in C and C++, it runs on CPUs and GPUs, supports Apple, NVIDIA, AMD and more, and uses the GGUF format with many quantization levels. Many other tools are built on it.

What does llama.cpp look like?

Ollama and LM Studio use llama.cpp under the hood.

Why does llama.cpp matter?

llama.cpp made running LLMs at home practical for millions of people.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.