docker-compose.yml 974 Bytes
Newer Older
luopl's avatar
luopl committed
1
2
3
4
5
6
services:
  llamafactory:
    build:
      dockerfile: ./docker/docker-rocm/Dockerfile
      context: ../..
      args:
chenych's avatar
chenych committed
7
8
9
10
11
        INSTALL_BNB: "false"
        INSTALL_VLLM: "false"
        INSTALL_DEEPSPEED: "false"
        INSTALL_FLASHATTN: "false"
        INSTALL_LIGER_KERNEL: "false"
chenych's avatar
chenych committed
12
        INSTALL_PYTORCH: "true"
chenych's avatar
chenych committed
13
        INSTALL_HQQ: "false"
luopl's avatar
luopl committed
14
        PIP_INDEX: https://pypi.org/simple
chenych's avatar
chenych committed
15
        PYTORCH_INDEX: https://download.pytorch.org/whl/nightly/rocm6.3
luopl's avatar
luopl committed
16
17
18
19
    container_name: llamafactory
    volumes:
      - ../../hf_cache:/root/.cache/huggingface
      - ../../ms_cache:/root/.cache/modelscope
luopl's avatar
luopl committed
20
      - ../../om_cache:/root/.cache/openmind
luopl's avatar
luopl committed
21
22
23
24
25
26
27
28
      - ../../data:/app/data
      - ../../output:/app/output
      - ../../saves:/app/saves
    ports:
      - "7860:7860"
      - "8000:8000"
    ipc: host
    tty: true
chenych's avatar
chenych committed
29
    shm_size: "16gb"
luopl's avatar
luopl committed
30
31
32
33
34
35
    stdin_open: true
    command: bash
    devices:
      - /dev/kfd:/dev/kfd
      - /dev/dri:/dev/dri
    restart: unless-stopped