abetlen/llama-cpp-python
Python bindings for llama.cpp observed · 2026-08-28
Health v2 · maintenance only
92/100
- Activity 98
- Release rhythm 86
- Longevity 89
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0.0
- age_days: 1259
- days_rel: 16
- days_push: 16
- n_releases_24m: 217
Adoption not part of the score
10585 stars · 1446 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Python bindings for llama.cpp providing low-level ctypes access to the C API plus a high-level API for text completion with OpenAI-like interfaces. It also ships an OpenAI-compatible web server supporting function calling, vision models, and multiple models.
Use cases
- run llama.cpp models from python
- serve a local openai-compatible llm api
- run gguf models locally without a gpu cloud
- use a local llm with langchain or llamaindex
- replace github copilot with a local code completion model
- run multimodal vision models locally
When to choose
- you want to run quantized gguf models locally in python
- you need an openai-compatible endpoint without external services
- you want cpu or custom hardware-accelerated inference via cmake options
When to avoid
- you need managed multi-node inference at scale
- you prefer a pure-python or cloud-hosted inference stack
- you cannot compile C/C++ and no prebuilt wheel fits your hardware
Facets
library · maturity active
llm-inference http-server sdk large-language-models machine-learning artificial-intelligence developer-tools python windows cross-platform llama-cpp gguf openai-compatible-api local-llm langchain llamaindex ctypes-bindings text-generation linux macos gpu
3 sources
- readme: https://github.com/abetlen/llama-cpp-python · fetched 2026-08-28 · cc84edd758fc
- homepage: https://llama-cpp-python.readthedocs.io · fetched 2026-08-29 · b5dd3b24fe9f
- registry_pypi: https://pypi.org/pypi/llama-cpp-python/json · fetched 2026-08-29 · a223f2a87d62
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| abetlen/llama-cpp-python | main | 92 |
For agents
markdown · JSON · MCP: product_card(name="abetlen/llama-cpp-python")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem