Files
gpu-broker/deploy/gpu-broker-ollama-proxy.service
T
2026-11-11 13:57:36 -07:00

15 lines
557 B
Desktop File

# Sits on Ollama's usual port (:11434); Ollama itself moves to 127.0.0.1:11435 (ollama.service.d/gpu-broker.conf).
[Unit]
Description=gpu-broker: Ollama proxy (lease before a model loads, CPU fallback when GPUs are busy)
After=gpu-broker.service ollama.service
Wants=gpu-broker.service
[Service]
ExecStart=/usr/local/bin/gpu-broker ollama-proxy --listen 0.0.0.0:11434 --upstream http://127.0.0.1:11435 --broker http://127.0.0.1:8130 --max-wait 1m --cpu-threads 4 --prefer 1
DynamicUser=yes
Restart=always
RestartSec=2
[Install]
WantedBy=multi-user.target