Update to use env variables

This commit is contained in:
thedarty committed 2026-09-15 18:35:04 +02:00
1 parent cf81a80a22
commit 17400c262b
1 file changed
+20 -10
+20 -10
View File
@@ -7,17 +7,18 @@ services:
environment: environment:
NVIDIA_VISIBLE_DEVICES: all NVIDIA_VISIBLE_DEVICES: all
TZ: Europe/Paris TZ: Europe/Paris
LLAMA_ARG_MODEL: /models/Qwen3VL-8B-Instruct-Q4_K_M.gguf
LLAMA_ARG_MMPROJ: /models/mmproj-Qwen3VL-8B-Instruct-Q8_0.gguf
LLAMA_ARG_CTX_SIZE: 65535
LLAMA_ARG_CACHE_TYPE_K: q8_0
LLAMA_ARG_N_GPU_LAYERS: all
LLAMA_ARG_HOST: 0.0.0.0
LLAMA_ARG_PORT: 8080
LLAMA_API_KEY: top-secret
LLAMA_ARG_JINJA: enable
LLAMA_ARG_FLASH_ATTN: auto
volumes: volumes:
- /var/lib/docker/volumes/llama.cpp/models:/models - /var/lib/docker/volumes/llama.cpp/models:/models
command: >
-m /models/Qwen3VL-8B-Instruct-Q4_K_M.gguf
--host 0.0.0.0
--port "8080"
--api-key "top-secret"
-ngl "999"
-c "65536"
--jinja
--flash-attn auto
ports: ports:
- "18080:8080" - "18080:8080"
@@ -28,4 +29,13 @@ services:
# Values for 7B # Values for 7B
# -m /models/qwen2.5-7b-instruct-q4_k_m-00001-of-00002.gguf # -m /models/qwen2.5-7b-instruct-q4_k_m-00001-of-00002.gguf
# -c "131072" (max) # -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