Docker images for llama.cpp built from the latest main branch, with full Multi-Token Prediction (MTP) support including image input and recent bug fixes not yet available in official releases.
Multi-Token Prediction (MTP) is a speculative decoding technique that allows the model to predict multiple tokens per forward pass, resulting in significantly faster inference with no quality loss. To use it, you need both an MTP-compatible server build and a model that includes MTP draft layers.
| Tag | Backend |
|---|---|
havenoammo/llama:cuda13-server | NVIDIA CUDA 13 |
havenoammo/llama:cuda12-server | NVIDIA CUDA 12 |
havenoammo/llama:vulkan-server | Vulkan (cross-platform GPU) |
havenoammo/llama:intel-server | Intel GPU (SYCL) |
havenoammo/llama:rocm-server | AMD ROCm |
Note: These images are community-built and tested primarily on CUDA 13. Other backends should work but are less tested. Feedback welcome.
The Q8 variants keep MTP layers at full Q8 quantization, which can improve speculative decoding accuracy at the cost of slightly more VRAM usage.
docker run --gpus all --rm \
-p 8080:8080 \
-v ./models:/models \
havenoammo/llama:cuda13-server \
-m /models/Qwen3.6-27B-MTP-UD-Q8_K_XL.gguf \
--port 8080 \
--host 0.0.0.0 \
-n -1 \
--parallel 1 \
--ctx-size 262144 \
--fit-target 844 \
--mmap \
-ngl -1 \
--flash-attn on \
--metrics \
--temp 1.0 \
--top-p 0.95 \
--top-k 20 \
--jinja \
--chat-template-kwargs '{"preserve_thinking":true}' \
--ubatch-size 512 \
--batch-size 2048 \
--cache-type-k q8_0 \
--cache-type-v q8_0 \
--spec-type mtp \
--spec-draft-n-max 3
Adjust as you see fit. What matters most for MTP is --spec-type mtp and --spec-draft-n-max 3.
If you are already using the official ghcr.io/ggml-org/llama.cpp images, switching is straightforward. Simply replace the image name with the appropriate tag above. The server flags and model paths remain the same.
If you run into issues with a specific backend, feel free to open a discussion. Reports on which hardware and configurations work are especially helpful.
Content type
Image
Digest
sha256:30ae9befa…
Size
7 GB
Last updated
5 months ago
docker pull havenoammo/llama:rocm-server