docker-compose.yml 837 B

1234567891011121314151617181920212223242526272829303132
  1. services:
  2. llamafactory:
  3. build:
  4. dockerfile: ./docker/docker-rocm/Dockerfile
  5. context: ../..
  6. args:
  7. INSTALL_BNB: false
  8. INSTALL_VLLM: false
  9. INSTALL_DEEPSPEED: false
  10. INSTALL_FLASHATTN: false
  11. INSTALL_LIGER_KERNEL: false
  12. INSTALL_HQQ: false
  13. PIP_INDEX: https://pypi.org/simple
  14. container_name: llamafactory
  15. volumes:
  16. - ../../hf_cache:/root/.cache/huggingface
  17. - ../../ms_cache:/root/.cache/modelscope
  18. - ../../om_cache:/root/.cache/openmind
  19. - ../../data:/app/data
  20. - ../../output:/app/output
  21. - ../../saves:/app/saves
  22. ports:
  23. - "7860:7860"
  24. - "8000:8000"
  25. ipc: host
  26. tty: true
  27. stdin_open: true
  28. command: bash
  29. devices:
  30. - /dev/kfd:/dev/kfd
  31. - /dev/dri:/dev/dri
  32. restart: unless-stopped