vLLM Success Recipe Using Docker Compose in a WSL2 Environment

#2
by ccchhh - opened

Win11 WSL2 Ubuntu 24
RTX PRO 6000

services:
  vllm-qwen:
    image: vllm/vllm-openai:qwen38-flash-next
    container_name: vllm-qwen3.8-flash-nvfp4
    restart: unless-stopped
    ports:
      - "8000:8000"
    volumes:
      - /mnt/d/MODEL/Qwen3.8-Flash-Next-NVFP4:/model:ro
    environment:
      - NVIDIA_VISIBLE_DEVICES=all
      - NVIDIA_DRIVER_CAPABILITIES=all
      - VLLM_LOGGING_LEVEL=INFO
      - VLLM_USE_V2_MODEL_RUNNER=0
      - VLLM_PLE_CPU_OFFLOAD=1
    ipc: host
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]
    entrypoint: ["vllm", "serve"]
    command:
      - "/model"
      - "--served-model-name"
      - "Qwen3.8-Flash-Next-NVFP4"
      - "--port"
      - "8000"
      - "--trust-remote-code"
      - "--enable-auto-tool-choice"
      - "--tool-call-parser"
      - "qwen3_xml"
      - "--reasoning-parser"
      - "qwen3"
      - "--max-model-len"
      - "32768"
      - "--max-num-seqs"
      - "128"
      - "--gpu-memory-utilization"
      - "0.90"
ccchhh changed discussion status to closed
ccchhh changed discussion status to open

Sign up or log in to comment