llama.cppLLM inference engine in C/C++ for local and cloud hardware
vLLMHigh-throughput, memory-efficient inference and serving engine for LLMs
llama.cpp vs vLLM
How llama.cpp and vLLM compare on popularity, activity, license and platforms: two open-source Machine Learning Infrastructure projects, both alternatives to OpenAI API.
At a glance
- llama.cpp has more GitHub stars (136.5k vs 97.7k).
- Both are actively maintained (last commits today and today).
- llama.cpp uses MIT; vLLM uses Apache-2.0 (both permissive).
- vLLM can be self-hosted; llama.cpp is not listed as self-hostable.
Side by side
| llama.cpp | vLLM | |
|---|---|---|
| GitHub stars | ★ 136,491 | ★ 97,706 |
| Forks | 26,180 | 25,373 |
| Last commit | today | today |
| Latest version | v1.1.0 | v0.34.0 |
| Repository started | March 2023 | February 2023 |
| License | MIT · permissive | Apache-2.0 · permissive |
| Self-hosted | Desktop/CLI app | Yes |
| Platforms | Linux, macOS, Windows, Android, Docker, CLI, Web | Docker |
| Main language | C++ | Python |
| Alternative to | OpenAI API | OpenAI API |
Highlighted: more stars or forks, or a last commit at least two weeks more recent. Data from GitHub, updated 27 November 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
vLLM
vLLM is a library and server for running and serving large language models. It uses PagedAttention and continuous batching for throughput, offers an OpenAI-compatible API, and runs on many GPU, CPU and accelerator types.
Key features
- PagedAttention memory management
- Continuous batching and chunked prefill
- Prefix caching
- Speculative decoding
- Quantization (FP8, NVFP4, INT4, GPTQ, AWQ, GGUF)
- OpenAI-compatible API server