ONE ENGINE · THREE WORKFLOWS

GGUF, without
the guesswork.

A focused Python package for running local language models, generating media, and editing GGUF files — all powered by one unified gguf.cpp build.

Start building
Python ≥ 3.8MIT licensedCPU by default
ggufCPP ENGINE
01serverTEXT / API
02diffuserIMAGE / VIDEO
03editorEDIT / QUANTIZE

01 / FIRST RUN

From zero to local.

Install the package, launch the unified GUI, and keep the CLI close when you need reproducibility.

ARECOMMENDED

Install the package

The bundled engine compiles during installation. Use a backend flag when you want GPU acceleration.

$ pip install gguf-cpp
# NVIDIA $ GGUF_CPP_CUDA=1 pip install gguf-cpp

Also available: GGUF_CPP_HIP=1 · GGUF_CPP_VULKAN=1. Metal is enabled by default on macOS.

BUNIFIED GUI

Open the three-panel workspace

One local server mounts Server, Diffuser, and Editor at predictable routes on one port.

$ gguf-cpp
/server/LLM chat + API
/diffuser/media generation
/editor/GGUF tools

02 / THE WORKSPACE

Choose your surface.

Each panel is useful on its own. Together they cover the path from model file to working application.

GET /v1/modelsPOST /v1/chat/completions200 OK · 42 tok/s

LOCAL API

Serve models like a local OpenAI endpoint.

Load a GGUF model, tune context and GPU layers, then connect any OpenAI SDK or your own HTTP client. Streaming is supported.

Read server manual

03 / TECHNICAL MANUAL

Recipes that stay readable.

Copy a working baseline, then change one variable at a time as you tune performance.

S

Run an LLM server

Start the GUI or hand raw arguments to gguf-server.

$ gguf-cpp server engine -- \ --model model.gguf \ --port 8888 \ --ctx-size 8192 \ --n-gpu-layers 999
TIP

Use gguf-cpp server --help for panel options, or add --no-browser in headless environments.

D

Generate an image

Use the bundled diffusion CLI for a deterministic first test.

$ gguf-cpp diffuser engine -- \ -m sd.gguf \ -p "a lighthouse at dusk" \ -o out.png
NOTE

For image-to-image, masks, control images, and text encoders, use the Diffuser GUI or pass the engine's full CLI flags.

E

Quantize a model

Convert a model and select a default tensor type.

$ gguf-cpp editor quantize \ -m in.gguf \ -o out-q4_k.gguf \ --type q4_k $ gguf-cpp editor devices
SAFE

Keep the original file. Use --tensor-type-rules when select tensors need a different quantization type.

04 / INTEGRATION

Built for existing clients.

The server exposes familiar endpoints, so local inference can fit into tools you already use.

GET/v1/modelsList models
POST/v1/chat/completionsChat + streaming
POST/v1/completionsText completion
POST/v1/embeddingsVector embeddings
GET/healthReadiness check
$ curl http://127.0.0.1:8888/v1/chat/completions \ -H "Content-Type: application/json" \ -d '{ "model": "local-model", "messages": [{"role":"user", "content":"Hello"}], "stream": true }'

05 / FOR DEVELOPERS

Build it. Test it. Extend it.

The repository keeps Python orchestration and the vendored C++ engine together, with one CMake configure.

01

Build from source

Editable installs compile and place the engine artifacts beside each panel.

$ pip install -e .
02

Configure a backend

Use CMake flags or environment variables to opt into CUDA, HIP, Vulkan, or Metal.

$ CMAKE_ARGS="-DGGUF_CPP_CUDA=ON" \ pip install -e .
03

Verify the build

Check panel help and the quantizer device list before running a model.

$ gguf-cpp --version $ gguf-cpp editor devices
REPOSITORY MAPsrc/gguf_cpp/Python panelsvendor/engine/unified C++ engineBrowse source ↗