llama.cppLLM inference engine in C/C++ for local and cloud hardware
llamafileSingle-file local LLM and speech executables
llama.cpp vs llamafile
How llama.cpp and llamafile compare on popularity, activity, license and platforms: two open-source Machine Learning Infrastructure projects, both alternatives to LM Studio.
At a glance
- llama.cpp has more GitHub stars (137.2k vs 26.8k, about 5× as many).
- Both are actively maintained (last commits today and 2 days ago).
- llama.cpp uses MIT; llamafile uses Apache-2.0 (both permissive).
Side by side
| llama.cpp | llamafile | |
|---|---|---|
| GitHub stars | ★ 137,232 +1122 in 10 days | ★ 26,775 +40 in 7 days |
| Forks | 26,504 | 1,686 |
| Last commit | today | 2 days ago |
| Latest version | v1.1.1 | 0.10.6 |
| Repository started | March 2023 | September 2023 |
| License | MIT · permissive | Apache-2.0 · permissive |
| Self-hosted | Desktop/CLI app | Desktop/CLI app |
| Platforms | macOS, Windows, Android, Docker, CLI | Linux, macOS, Windows |
| Main language | C++ | C++ |
| Alternative to | Anthropic API, ChatGPT, ChatGPT Plus, Gemini, LM Studio, Microsoft Copilot +1 | LM Studio |
Highlighted: more stars or forks, or a last commit at least two weeks more recent. Data from GitHub, updated 4 December 2026.
llama.cpp
llama.cpp runs large language models and multimodal models locally or in the cloud with minimal setup. It includes a CLI, an OpenAI-compatible server with a built-in chat app, and a C library API.
Key features
- Local and cloud LLM inference on many hardware types
- Command-line chat tool with vision model support
- Built-in server with REST API and browser chat app
- OpenAI- and Anthropic-compatible endpoints
- Streaming, tool calling and structured output
- GBNF grammars for constrained output
llamafile
llamafile bundles llama.cpp and Cosmopolitan into one executable to run open LLMs locally without installation; whisperfile adds speech-to-text the same way.
Key features
- Single-file LLM executables
- No install local inference
- Embedded or external GGUF weights
- Cross-OS Cosmopolitan packaging
- AMD64 and ARM64 builds
- whisperfile speech-to-text