#29 · Primary category: Inference & Local Deploy
llama-cpp-python
Python bindings for llama.cpp
Project last updated:08/17/26
GitHub Stars
10.6K
Forks
1.5K
Contributors
195
License
MIT
Why we included this project
For running GGUF-format models entirely on your own hardware, this is the Python library most people pick to talk to llama.cpp. It exposes the C engine at two levels: a low-level ctypes interface for fine control, and a high-level API shaped like OpenAI's, so code written against one stays portable to the other. The bundled web server speaks the OpenAI protocol and adds function calling, vision support, and multi-model hosting on top. Because the package compiles llama.cpp itself, you choose the backend at install time, CPU, CUDA, Metal, Vulkan, or ROCm, which makes it workable from a laptop up to a dedicated GPU box. It also plugs into LangChain and LlamaIndex, so teams already using those can move to local inference without rewriting their orchestration code.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
ollama
Get up and running with Kimi-K2.6, GLM-5.2, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
llama.cpp
LLM inference in C/C++
vllm
A high-throughput and memory-efficient inference and serving engine for LLMs
gpt4all
GPT4All: Run Local LLMs on Any Device. Open-source and available for commercial use.
LocalAI
LocalAI is the open-source AI engine. Run any model - LLMs, vision, voice, image, video - on any hardware. No GPU required.