2024-07-26 02:29:28 +08:00
|
|
|
services:
|
|
|
|
llamafactory:
|
|
|
|
build:
|
|
|
|
dockerfile: ./docker/docker-rocm/Dockerfile
|
|
|
|
context: ../..
|
|
|
|
args:
|
|
|
|
INSTALL_BNB: false
|
|
|
|
INSTALL_VLLM: false
|
|
|
|
INSTALL_DEEPSPEED: false
|
|
|
|
INSTALL_FLASHATTN: false
|
|
|
|
PIP_INDEX: https://pypi.org/simple
|
|
|
|
container_name: llamafactory
|
|
|
|
volumes:
|
|
|
|
- ../../hf_cache:/root/.cache/huggingface
|
|
|
|
- ../../ms_cache:/root/.cache/modelscope
|
|
|
|
- ../../data:/app/data
|
|
|
|
- ../../output:/app/output
|
|
|
|
- ../../saves:/app/saves
|
|
|
|
ports:
|
|
|
|
- "7860:7860"
|
|
|
|
- "8000:8000"
|
|
|
|
ipc: host
|
|
|
|
tty: true
|
|
|
|
stdin_open: true
|
|
|
|
command: bash
|
2024-07-26 11:51:00 +08:00
|
|
|
devices:
|
|
|
|
- /dev/kfd:/dev/kfd
|
2024-07-26 02:29:28 +08:00
|
|
|
- /dev/dri:/dev/dri
|
|
|
|
restart: unless-stopped
|