mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-02 19:52:50 +08:00
1. add docker-npu (Dockerfile and docker-compose.yml) 2. move cuda docker to docker-cuda and tiny changes to adapt to the new path Former-commit-id: d7207e8ad10c7df6dcb1f5e59ff8eb06f9d77e67
32 lines
917 B
YAML
32 lines
917 B
YAML
services:
|
|
llamafactory:
|
|
build:
|
|
dockerfile: Dockerfile
|
|
context: .
|
|
args:
|
|
INSTALL_DEEPSPEED: false
|
|
PIP_INDEX: https://pypi.org/simple
|
|
container_name: llamafactory
|
|
volumes:
|
|
- ../../hf_cache:/root/.cache/huggingface/
|
|
- ../../data:/app/LLaMA-Factory/data
|
|
- ../../output:/app/LLaMA-Factory/output
|
|
- /usr/local/dcmi:/usr/local/dcmi
|
|
- /usr/local/bin/npu-smi:/usr/local/bin/npu-smi
|
|
- /usr/local/Ascend/driver/lib64:/usr/local/Ascend/driver/lib64
|
|
- /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info
|
|
- /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
|