Skip to content

DocsRun on your hardware

5 min read · updated

On a cloud GPU

Run decisio on one NVIDIA card, serve the default model on port 8000, pin what it serves, and keep it running under a supervisor.

Install decisio from PyPI and start it on a Linux box with one NVIDIA card. It serves Gemma 4 31B at http://127.0.0.1:8000, ready once /health answers.

shell
python3.12 -m venv .venv && . .venv/bin/activate
pip install "decisio[serve]==0.60.0"
# serves Gemma 4 31B; the first start downloads about 31 GB
python -m decisio.serve.vllm_engine --images on
# answers once it is ready
curl -s http://127.0.0.1:8000/health

Needs Linux with one NVIDIA card. Its comments are shown above their commands.

Figure · On one card

The server listens on the machine itself; a proxy in front lets your backend in.

The proxy and the restart policy are yours; the steps below have a systemd unit and a Kubernetes Deployment.

PartWhat you need
SystemLinux, with one NVIDIA card
Driverone that supports CUDA 13.0
Python3.12
Diskroom for the first download, in the Hugging Face cache

ModelWeights in memoryMeasured onLongest text, with no flag
Gemma 4 31B, the default30.6 GiB, FP8; about 31 GB to downloadone 96 GB card; also starts and answers on one 80 GB H100 PCIethe largest that fits, 32,768 to 98,304 tokens
Gemma 4 12B22.8 GiB, bf16one 96 GB card; served 65,536 tokens on the same H10032,768 to 65,536 tokens
Gemma 4 12B in FP812.74 GiB, FP8one 32 GB RTX 5090, at its full context32,768 to 65,536 tokens
Qwen3.6-35B-A3B33.3 GiB, FP8; about 36 GB to downloadone 96 GB card32,768 tokens

Start another model with --base gemma-4-12b, --base gemma-4-12b-fp8 or --base qwen3.6-35b-a3b. Choosing a model compares them; Requirements and limits has every machine.

The first start downloads the weights and loads them onto the card. The 31B was ready after 7 min 54 s with the download, and after 4 min 3 s with the weights already on disk.

Measured on decisio 0.11.0 from PyPI, one RTX PRO 6000 Blackwell at 600 W, 2026-10-09.

It is ready when /health answers 200, with the model and the longest text it serves:

json
{
"ok": true,
"base": "gemma-4-31b",
"max_model_len": 98304,
"max_model_len_source": "auto: the base's ceiling of 98,304 fits on this card",
"max_model_len_ceiling": 98304,
"engine_process": "in",
"vllm": "0.31.0",
"gpu": "NVIDIA RTX PRO 6000 Blackwell Workstation Edition"
}

Recorded output.

Recorded on Gemma 4 31B from its FP8 checkpoint, decisio 0.17.0, one RTX PRO 6000 at 600 W, 2026-10-19, on the plain layout; trimmed to the fields a reader checks.

pip resolves its own versions around the engine. For exactly the versions decisio was measured with, install from a clone of the release with its lock file:

shell
git clone --branch v0.60.0 https://github.com/aminry/decisio
cd decisio
uv sync --extra serve --frozen
uv run python -m decisio.serve.vllm_engine --images on

Needs Linux with one NVIDIA card.

Name the model repository at a revision, so a later change to it cannot change your answers:

shell
uv run python -m decisio.serve.vllm_engine --base tachara-ai/decisio-gemma-4-31b --images on # its current commit, printed
uv run python -m decisio.serve.vllm_engine --base tachara-ai/decisio-gemma-4-31b@<commit> --images on # a pinned commit

Needs Linux with one NVIDIA card; decisio's commands, with --images on.

  • The server checks the repository’s settings against its own and refuses to start on a difference, naming what differs.
  • Pin --max-model-len 32768 unless you need longer texts: --max-model-len 32768 serves only what was measured, and the same value on every card keeps one certificate valid on all of them, since the length served is part of what it covers.
  • After upgrading decisio, certify your tasks again (Upgrade).

The server listens on 127.0.0.1:8000; --host and --port change that. Call it from your backend, with a reverse proxy in front when other machines must reach it.

When its engine dies, the server answers 503 and exits with code 70, so a supervisor can start a new one. With systemd, for a clone in /opt/decisio and a user decisio:

/etc/systemd/system/decisio.service
[Unit]
Description=decisio server
After=network-online.target
Wants=network-online.target
[Service]
User=decisio
WorkingDirectory=/opt/decisio
Environment=HF_HOME=/var/lib/decisio/hf
ExecStart=/usr/local/bin/uv run --no-sync python -m decisio.serve.vllm_engine --host 127.0.0.1 --port 8000 --images on
Restart=on-failure
RestartSec=5
# a first start downloads the checkpoint and loads the engine: do not let systemd give up on it
TimeoutStartSec=infinity
[Install]
WantedBy=multi-user.target

decisio wrote it for its docs and has not run it; the options are systemd's documented ones.

On Kubernetes, one GPU, the weights on a volume, and /health as the startup and liveness probe:

yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: decisio
spec:
replicas: 1
selector:
matchLabels: {app: decisio}
template:
metadata:
labels: {app: decisio}
spec:
restartPolicy: Always # the default: the exit with code 70 starts a new container
containers:
- name: decisio
image: ghcr.io/aminry/decisio@sha256:9b22076d0d3359b90d1ae9536a4943db45fd3ffd43f8e9b2bba8b0a391ae28da
args: ["--images", "on"]
env:
- {name: DECISIO_BASE, value: gemma-4-31b}
ports:
- containerPort: 8000
resources:
limits:
nvidia.com/gpu: 1
volumeMounts:
- {name: data, mountPath: /data}
- {name: shm, mountPath: /dev/shm}
startupProbe: # the first start downloads the checkpoint: 45 minutes, as the image's HEALTHCHECK
httpGet: {path: /health, port: 8000}
periodSeconds: 15
failureThreshold: 180
livenessProbe: # /health answers 503 once the engine has died, before the process exits
httpGet: {path: /health, port: 8000}
periodSeconds: 30
timeoutSeconds: 10
failureThreshold: 3
volumes:
- name: data
persistentVolumeClaim: {claimName: decisio-data}
- name: shm
emptyDir: {medium: Memory, sizeLimit: 8Gi}

decisio wrote it for its docs, with the release image in place of its placeholder, and has not run it; the probes read /health as measured.

  • Each probe reads /health: 200 once the engine is loaded, 503 from the moment it has died.
  • Each replica is a separate server: give it its own --tasks-dir, or share the replicas’ tasks with --task-store (Set up for production).
  • With Docker: the same server from the release image, with Compose.
  • Requirements and limits: every machine, the context length and what was measured on what.
  • Operate: health, monitoring and what to watch in production.