Files
llama.cpp-dev/docker-compose.yml
T
2026-11-09 21:32:23 +01:00

45 lines
1.3 KiB
YAML

services:
llama-cpp:
image: ghcr.io/ggml-org/llama.cpp:server-cuda
container_name: llama-cpp
restart: unless-stopped
runtime: nvidia
command: >
-m /models/Qwen_Qwen3.6-35B-A3B-IQ4_XS.gguf
-c "65535"
-ngl "999"
--jinja
--flash-attn auto
--n-cpu-moe 12
environment:
NVIDIA_VISIBLE_DEVICES: all
TZ: Europe/Paris
LLAMA_API_KEY: top-secret
LLAMA_ARG_HOST: 0.0.0.0
LLAMA_ARG_PORT: 8080
#LLAMA_ARG_MODELS_PRESET: /config/models.ini
#LLAMA_ARG_MODELS_MAX: 1
#LLAMA_ARG_MODELS_AUTOLOAD: true
volumes:
- /var/lib/docker/volumes/llama.cpp/models:/models
- /var/lib/docker/volumes/hawser_stacks/_data/llama-cpp/config/models.ini:/config/models.ini:ro
ports:
- "18080:8080"
# Values for 14B
# -m /models/qwen2.5-14b-instruct-q4_k_m-00001-of-00003.gguf
# -c "36000"
# Values for 7B
# -m /models/qwen2.5-7b-instruct-q4_k_m-00001-of-00002.gguf
# -c "131072" (max)
# Ligne de commande
# command: >
# -c "65536"
# -ngl "999"
# --host 0.0.0.0
# --port "8080"
# --api-key "top-secret"
# --jinja
# --flash-attn auto
# -m /models/Qwen3VL-8B-Instruct-Q4_K_M.gguf