This commit is contained in:
hiyouga committed 2024-06-27 20:14:48 +08:00
1 parent 33ef6f4ec2
commit e44a4f07f0
7 files changed
+28 -26

No files matched your search

+2 -2
View File
@@ -2,6 +2,7 @@
# More versions can be found at https://hub.docker.com/r/cosdt/cann/tags
FROM cosdt/cann:8.0.rc1-910b-ubuntu22.04
# Define environments
ENV DEBIAN_FRONTEND=noninteractive
# Define installation arguments
@@ -27,8 +28,7 @@ RUN EXTRA_PACKAGES="torch-npu,metrics"; \
if [ "$INSTALL_DEEPSPEED" == "true" ]; then \
EXTRA_PACKAGES="${EXTRA_PACKAGES},deepspeed"; \
fi; \
pip install -e ".[$EXTRA_PACKAGES]" && \
pip uninstall -y transformer-engine flash-attn
pip install -e ".[$EXTRA_PACKAGES]"
# Set up volumes
VOLUME [ "/root/.cache/huggingface", "/root/.cache/modelscope", "/app/data", "/app/output" ]