support docker-npu-[amd64|arm64] build

Former-commit-id: 25f16f5e299c94175e62bac9f0da5b47a2bb31b7
This commit is contained in:
fanjunliang
2024-06-27 15:21:55 +08:00
parent d82d86e16d
commit 31fcd03f3c
4 changed files with 13 additions and 6 deletions

View File

@@ -465,7 +465,7 @@ docker exec -it llamafactory bash
```bash
# 根据您的环境选择镜像
docker build -f ./docker/docker-npu/Dockerfile \
docker build --platform linux/arm64 -f ./docker/docker-npu/Dockerfile \
--build-arg INSTALL_DEEPSPEED=false \
--build-arg PIP_INDEX=https://pypi.org/simple \
-t llamafactory:latest .