llama-cpp-python
Python bindings for llama.cpp with OpenAI-compatible server and multi-model support
Overview
Requirements
Recommended VPS
Hostinger · KVM 4
4 vCPU · 16384 MB · 200 GB
Hostinger · KVM 4
4 vCPU · 16384 MB · 200 GB
Hostinger · KVM 8
8 vCPU · 32256 MB · 400 GB
Affiliate disclosure
Docker Compose
# Generated by Run This Ai — docker-compose.yml
services:
llama-cpp-python:
image: ghcr.io/abetlen/llama-cpp-python:latest
restart: unless-stopped
ports:
- 8080:8080
volumes:
- ./data/llama-cpp-python:/data
Related tools
NextChat
Cross-platform ChatGPT web UI with multi-model support for Ollama, Claude, Gemini, and more
Lobe Chat
Extensible, open-source ChatGPT alternative with plugins, knowledge base, and multi-LLM support
Open WebUI
User-friendly WebUI for LLMs (Ollama, OpenAI API)
text-generation-webui
Run local LLMs with a powerful web interface — text, vision, tool-calling, and OpenAI-compatible API
Streamlit
Build and share data apps in pure Python — fast
Gradio
Build and share delightful machine learning apps in Python
Guides & articles
Getting Started with llama-cpp-python OpenAI-Compatible Server
Step-by-step tutorial to install, configure, and run llama-cpp-python's OpenAI-compatible LLM server with your own models.
How to Run LLMs Locally with llama-cpp-python - A Complete Guide
A complete guide to running LLMs locally with llama-cpp-python — OpenAI-compatible server, vision support, function calling, and multi-model serving.