What is llama.cpp?
llama.cpp runs large language models efficiently on CPUs, Apple Silicon and GPUs. It defines the GGUF model format and powers many local AI apps, and it includes its own web UI and OpenAI-compatible server.
Key features
- GGUF quantised models
- CPU, Metal, CUDA, Vulkan
- Built-in server and web UI
- Basis for many local AI apps
llama.cpp as an open source alternative
llama.cpp is listed on our comparison page as an open source replacement for ChatGPT. Compare it with the other options:
- Open source alternatives to ChatGPT (7 options)
Licence
llama.cpp is released under the MIT licence, a permissive licence. More MIT software →
llama.cpp: FAQ
Is llama.cpp open source?
Yes. llama.cpp is released under the MIT licence (permissive), and its source code is public.
Is llama.cpp free?
The software is free to use.
What does llama.cpp replace?
llama.cpp is an open source alternative to ChatGPT.
Can I self-host llama.cpp?
llama.cpp runs on your own machine or in your own development environment.