[Unit] Description=A Llama CPP Server Running a Non-Reasoning Model [Container] # Shared AI internal pod without internet access Pod=ai-internal.pod # Image is built locally via podman build Image=localhost/llama-cpp-vulkan:latest # Downloaded models volume Volume=/home/ai/models/text:/models:z # GPU Device AddDevice=/dev/kfd AddDevice=/dev/dri # Server command Exec=--port 8002 \ -c 262144 \ -n 32768 \ --temp 0.7 \ --top-p 0.8 \ --top-k 20 \ --presence-penalty 1.5 \ --min-p 0.00 \ --perf \ --n-gpu-layers all \ -fa on \ --spec-type draft-mtp --spec-draft-n-max 2 \ --jinja \ --chat-template-kwargs '{"preserve_thinking": false, "enable_thinking": false}' \ -m /models/qwen3.6-35b-a3b-mtp/Qwen3.6-35B-A3B-UD-Q5_K_M.gguf \ --mmproj /models/qwen3.6-35b-a3b-mtp/mmproj-F16.gguf \ --alias instruct # Health Check HealthCmd=CMD-SHELL curl --fail http://127.0.0.1:8002/health || exit 1 HealthInterval=10s HealthRetries=3 HealthStartPeriod=10s HealthTimeout=30s HealthOnFailure=kill # EnvironmentFile=/home/ai/.llama-api/keys.env [Service] Restart=always # Extend Timeout to allow time to pull the image TimeoutStartSec=900 [Install] # Start by default on boot WantedBy=multi-user.target default.target