services: llama-cpp: image: ghcr.io/ggml-org/llama.cpp:server-cuda container_name: llama-cpp restart: unless-stopped runtime: nvidia environment: NVIDIA_VISIBLE_DEVICES: all TZ: Europe/Paris volumes: - /var/lib/docker/volumes/llama.cpp/models:/models command: > -m /models/qwen2.5-7b-instruct-q4_k_m-00001-of-00002.gguf --host 0.0.0.0 --port "8080" -ngl "999" -c "131072" --jinja --flash-attn auto ports: - "18080:8080" # Values for 14B # -m /models/qwen2.5-14b-instruct-q4_k_m-00001-of-00003.gguf # -c "36000"