This commit is contained in:
Marc Blatter 2026-07-10 17:52:45 +00:00
parent f398d6d794
commit 9254499bc6
1 changed files with 34 additions and 0 deletions

34
compose-vLLM.yaml Normal file
View File

@ -0,0 +1,34 @@
services:
vllm:
image: vllm/vllm-openai:latest
container_name: vllm
restart: unless-stopped
ipc: host # vLLM braucht shared memory für Tensor-Parallelism
ports:
- "8000:8000" # OpenAI-kompatible API
volumes:
- /opt/vLLM/models:/root/.cache/huggingface # HF-Model-Cache
- /opt/vLLM/config:/vllm-workspace/config
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
command: >
--model Qwen/Qwen2.5-14B-Instruct-AWQ
--host 0.0.0.0
--port 8000
--gpu-memory-utilization 0.90
--max-model-len 16384
--enable-auto-tool-choice
--tool-call-parser hermes