Add bagua installation in dockerfile (#11283)

Co-authored-by: Aki Nitta <nitta@akihironitta.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
This commit is contained in:
wangraying 2022-02-24 22:17:31 +08:00 committed by GitHub
parent d9938da8a4
commit a0655611de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,7 @@ ARG CUDA_VERSION=10.2
FROM nvidia/cuda:${CUDA_VERSION}-devel-ubuntu18.04
ARG BAGUA_CUDA_VERSION=102
ARG PYTHON_VERSION=3.9
ARG PYTORCH_VERSION=1.8
@ -117,6 +118,10 @@ RUN \
pip install deepspeed==0.5.7 && \
python -c "import deepspeed; print(deepspeed.__version__)"
RUN \
# install Bagua
pip install bagua-cuda${BAGUA_CUDA_VERSION}==0.9.0
RUN \
# Show what we have
pip --version && \