Run This Ai
EN DE

llama-cpp-python

Python bindings for llama.cpp with OpenAI-compatible server and multi-model support

★ 10,440 GitHub MIT llmpythonllama-cppinferenceopenai-compatibleself-hostedlocal-ai LLM & Chat

Overview

llama-cpp-python provides high-performance Python bindings for llama.cpp, the popular C/C++ LLM inference engine. With 10k+ GitHub stars, it offers a complete solution for running local LLMs: low-level ctypes access to the C API, a high-level Python API with LangChain/LlamaIndex compatibility, and an OpenAI-compatible web server with function calling, vision API, and multi-model support. Install via pip, run as a Docker container, or use as a local Copilot replacement — all fully self-hosted.

Requirements

Min vCPU
1
Min RAM
4096 MB
Min Disk
10 GB
Rec vCPU
4
Rec RAM
4096 MB
Rec Disk
20 GB

Recommended VPS

Hostinger · KVM 4

4 vCPU · 16384 MB · 200 GB

$11.99
View plan

Hostinger · KVM 4

4 vCPU · 16384 MB · 200 GB

$11.99
View plan

Hostinger · KVM 8

8 vCPU · 32256 MB · 400 GB

$20.00
View plan

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

Best VPS for llama-cpp-python →

Related tools

Guides & articles