Today I'm releasing llmgo, the inference engine I wrote to run Marvin, as a public Docker image:
docker pull jlcox1970/llmgo
In I Like Dog Food I wrote about swapping llama.cpp out of Marvin for an engine of my own, and in the follow-up I took it from answering in gibberish to 61 tokens a second. It has run Marvin every day since. Now you can run it too.
What llmgo is
llmgo is the software that runs an AI model on your own graphics card. You give it a GGUF model file, and it answers through the same OpenAI-compatible API that most AI tools already speak, so anything that can talk to a cloud model can talk to it. Nothing leaves your machine.
I wrote it in Go, with my own CUDA kernels. It ships as a single container built from scratch: no operating system, no shell, no Python, just the engine and the libraries it links against. That was the reason I started it in the first place. I wanted the thing at the centre of Marvin to be small enough that I could actually audit it.
What it does
- It picks its own settings. I designed llmgo to look at the host and decide for itself: the whole model on the GPU when it fits, layers split between GPU and CPU when it doesn't, and the CPU alone when there's no usable GPU. It sizes the context and the K/V cache type to the VRAM you have free, and times its kernels on your card at startup, caching the results for the next start.
- It guesses ahead. Qwen3.5-family models carry their own multi-token prediction (MTP) layer. llmgo uses it to draft up to 15 tokens ahead and checks them all in one pass, which is where most of the decode speed comes from.
- It remembers. A prompt cache, in RAM and optionally on disk, means a long conversation doesn't start from scratch every turn. Only the new part of the prompt is processed.
- It shows its work. Prometheus metrics on port 9091, so you can watch a real working session rather than a benchmark.
The numbers
On my RTX 5060 Ti 16 GB with Qwen3.8-27B, against llama.cpp running the same model with its own MTP drafting turned on:
| llmgo | llama.cpp (MTP) | |
|---|---|---|
| Decode, ~60k context | 68 tok/s | 38 tok/s |
| Decode, ~76k context and beyond | 65 tok/s | 33 tok/s |
| Prefill, ~10k prompt | 887 tok/s | 887 tok/s |
Decode, the speed it writes its answer, is where llmgo pulls away, and the gap widens as the conversation gets longer. Prefill, the speed it reads your prompt, is level. I'd rather show that than leave it out.
How I measured
- Card: RTX 5060 Ti 16 GB, the whole model on the GPU.
- Model: Qwen3.8-27B-UD-Q2_K_XL, the same file for both engines.
- Shared settings: 130,000 tokens of context and a q4_0 K/V cache for both.
- llama.cpp: the official
full-cudaimage with flash attention, a 1024-token batch, one slot, its prompt cache, and MTP speculative decoding (--spec-type draft-mtp --spec-draft-n-max 2). - llmgo: the defaults in the public image, which draft up to 15 tokens and verify only as many as pay for themselves.
- Workload: the same prompts on both, taken from real Marvin sessions. The llmgo figures are medians over one pod's working life of 170 requests.
One caution I learned the hard way: with speculative decoding, tokens a second moves with how predictable the answer is. The same build can score 54, 51 and 50 on three different answers. These figures are what I see on real work, not a guarantee for yours. The run-by-run story of how llmgo got here, with every build charted, is in From gibberish to 61 tok/s.
Try it
You'll need an RTX 30, 40 or 50 series card, NVIDIA driver 570 or newer, and the NVIDIA Container Toolkit. I don't ship a model in the image, so point it at your own GGUF file:
docker run --rm --gpus all -p 8080:8080 -p 9091:9091 \
-v /path/to/models:/models:ro \
-e MODEL_PATH=/models/<your-model>.gguf \
jlcox1970/llmgo:latest
Once the model is on the GPU (about a minute for a 27B), send requests to http://localhost:8080/v1/chat/completions. Older cards aren't supported on the GPU, but llmgo will still run there on the CPU.
It supports Qwen3.5 (with MTP drafting), Qwen3, Qwen2, Qwen3.5 MoE on the CPU, nomic-embed-text for embeddings, and image input through a Qwen3.x mmproj file. The full list of settings, endpoints and my Kubernetes notes are on the Docker Hub page.
What's not here yet
I'll publish the source code later. For now llmgo is available as the image. It includes code I adapted from ggml/llama.cpp (MIT) and the Qwen chat template (Apache 2.0), credited in /usr/share/doc/llmgo/ inside the image.
I've tested it on two cards, my RTX 5060 Ti 16 GB and my RTX 3050 8 GB. If you run it on something else, I'd like to know how it goes.
Tell me what breaks
The comments below are the place for questions, your numbers on other cards, and any bugs you hit. Include your card, the model file and what you asked it, and I'll take a look.
Back in April I was told I wouldn't be any good in AI because I didn't know GPUs. Now the engine I wrote is on the shelf for anyone to pull. Enjoy the food.
