abetlen/llama-cpp-python

Python bindings for llama.cpp

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 57 minutes ago
Added to GitGenius on September 5th, 2026
Created on March 23rd, 2023
Open Issues & Pull Requests: 678 (+0)
GitHub issues: Enabled
Number of forks: 1,448
Total Stargazers: 10,602 (+0)
Total Subscribers: 84 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 38.0 hours
Mean response time: 24.5 days
90th percentile: 62.4 days
Tracked items: 327

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 99% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. 84% of tracked open issues have had no activity in three months, so the open count overstates what is actively being worked. Only 5% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 269
New in 7 days: 1
Closed in 7 days: 5
Avg open age: 617 days
Stale 30+ days: 262
Stale 90+ days: 252

Recent activity

Opened in 7 days: 1
Closed in 7 days: 5
Comments in 7 days: 1
Events in 7 days: 7

Top labels

  • bug (40)
  • enhancement (19)
  • build (15)
  • documentation (9)
  • question (9)
  • windows (7)
  • hardware (6)
  • llama.cpp (4)

Detailed Description

llama-cpp-python is a Python binding library that wraps the llama.cpp C library to enable large language model inference in Python applications.

The project solves the problem of running large language models efficiently on consumer hardware by providing Python access to llama.cpp, a highly optimized C++ implementation. It offers both low-level ctypes access to the underlying C API and high-level Python abstractions for common tasks like text completion. The library supports multiple hardware acceleration backends including CPU-based options like OpenBLAS and GPU acceleration through CUDA and Metal, with configuration available at installation time through environment variables or pip flags.

Developers should choose this tool if they need to run language models locally with minimal dependencies or integrate model inference into Python applications without heavy frameworks. It suits projects ranging from simple scripts to production servers, with built-in support for OpenAI-compatible APIs and integration with popular frameworks like LangChain and LlamaIndex. The project includes specialized features such as function calling, vision model support, and multi-model serving capabilities. For those evaluating alternatives, the README does not make explicit comparisons to other binding libraries.

The project maintains active engagement with pull requests and issues, showing consistent responsiveness to user contributions and bug reports. Development includes regular updates to align with upstream llama.cpp changes and to add new features as the underlying library evolves. The maintainers actively expand backend support and add new capabilities like vision API integration and function calling, indicating ongoing investment in keeping the bindings feature-complete relative to the C++ library.