What is llama.cpp?
In Turkish: llama.cpp · Topic: Using AI
An open-source inference library written in C/C++ that lets large language models run locally on ordinary computers, phones and small servers. Started by Georgi Gerganov for Llama models, it now supports many model families.
How does it work?
The model is downloaded as a single GGUF file. llama.cpp loads it into memory and generates the reply piece by piece. To save memory and gain speed it relies on quantization: model weights are stored with fewer bits, so large models fit into limited memory. The software can run on a processor alone, or part of the model can be offloaded to a graphics card. It also offers command-line tools and a local server mode, so other applications can connect to the model.
Why does it matter?
Running a model locally keeps data on the user's own device, works without an internet connection and avoids cloud costs. llama.cpp played a major role in bringing open-weight models to a wide audience. When news stories talk about running a model on your own device, infrastructure like this is usually involved.
Example
A user can download a small quantized model as a GGUF file and chat with it on a laptop through llama.cpp, with no internet connection.
FAQ
Is llama.cpp the same thing as the Llama model?
No. Llama is Meta's model family, while llama.cpp is independent software that runs models. Despite the name, it can run many different models.
Does llama.cpp need a powerful graphics card?
Not necessarily. It works on a processor alone, though a graphics card can noticeably speed things up. The memory needed depends on the model's size and quantization level.
News mentioning "llama.cpp"
llama.cpp, the popular tool for running AI models locally, reaches its first stable 1.0 release
Georgi Gerganov announced the first major release of llama.cpp and ggml. Both libraries will now follow rules that make clear from the version number which updates will break compatibility; this release removes 35 deprecated functions.