2024-06-24 10:57:36 +00:00
|
|
|
services:
|
|
|
|
llamafactory:
|
|
|
|
build:
|
2024-06-24 16:54:28 +00:00
|
|
|
dockerfile: ./docker/docker-npu/Dockerfile
|
|
|
|
context: ../..
|
2024-06-24 10:57:36 +00:00
|
|
|
args:
|
|
|
|
INSTALL_DEEPSPEED: false
|
|
|
|
PIP_INDEX: https://pypi.org/simple
|
|
|
|
container_name: llamafactory
|
|
|
|
volumes:
|
2024-06-26 02:15:00 +00:00
|
|
|
- ../../hf_cache:/root/.cache/huggingface
|
|
|
|
- ../../ms_cache:/root/.cache/modelscope
|
|
|
|
- ../../data:/app/data
|
|
|
|
- ../../output:/app/output
|
2024-06-24 10:57:36 +00:00
|
|
|
- /usr/local/dcmi:/usr/local/dcmi
|
|
|
|
- /usr/local/bin/npu-smi:/usr/local/bin/npu-smi
|
2024-06-24 16:54:28 +00:00
|
|
|
- /usr/local/Ascend/driver:/usr/local/Ascend/driver
|
2024-06-24 10:57:36 +00:00
|
|
|
- /etc/ascend_install.info:/etc/ascend_install.info
|
|
|
|
ports:
|
|
|
|
- "7860:7860"
|
|
|
|
- "8000:8000"
|
|
|
|
ipc: host
|
|
|
|
tty: true
|
|
|
|
stdin_open: true
|
|
|
|
command: bash
|
|
|
|
devices:
|
|
|
|
- /dev/davinci0
|
|
|
|
- /dev/davinci_manager
|
|
|
|
- /dev/devmm_svm
|
|
|
|
- /dev/hisi_hdc
|
|
|
|
restart: unless-stopped
|