From 17400c262b1f14c9000fd9f6db4494ac2f74c525 Mon Sep 17 00:00:00 2001 From: "stephane.david" Date: Tue, 15 Sep 2026 18:35:04 +0200 Subject: [PATCH] Update to use env variables --- docker-compose.yml | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index ec27902..410e594 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,17 +7,18 @@ services: environment: NVIDIA_VISIBLE_DEVICES: all 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: - /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: - "18080:8080" @@ -28,4 +29,13 @@ services: # 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 \ No newline at end of file