7575COPY ./requirements.txt requirements.txt
7676COPY ./requirements/ ./requirements/
7777
78- # conda init
7978RUN \
8079 wget https://bootstrap.pypa.io/get-pip.py --progress=bar:force:noscroll --no-check-certificate && \
8180 python${PYTHON_VERSION} get-pip.py && \
@@ -88,11 +87,11 @@ RUN \
8887 python ./requirements/adjust_versions.py requirements/extra.txt ${PYTORCH_VERSION} && \
8988 python ./requirements/adjust_versions.py requirements/examples.txt ${PYTORCH_VERSION} && \
9089 # Install all requirements
91- pip install -r requirements/devel.txt --no-cache-dir && \
90+ pip install --user - r requirements/devel.txt --no-cache-dir && \
9291 rm -rf requirements.* requirements/
9392
9493RUN \
95- CUDA_VERSION_MAJOR=$(python -c "import torch ; print(torch.version.cuda.split('.')[0])" ) && \
94+ CUDA_VERSION_MAJOR=$(python -c "import torch; print(torch.version.cuda.split('.')[0])" ) && \
9695 py_ver=$(python -c "print(int('$PYTHON_VERSION'.split('.') >= '3.9'.split('.')))" ) && \
9796 # install DALI, needed for examples
9897 # todo: waiting for 1.4 - https://github.com/NVIDIA/DALI/issues/3144#issuecomment-877386691
@@ -108,15 +107,18 @@ RUN \
108107
109108RUN \
110109 # install FairScale
111- pip install fairscale==0.4.0
110+ pip install fairscale==0.4.0 && \
111+ python -c "import fairscale; print(fairscale.__version__)"
112112
113113RUN \
114114 # install DeepSpeed
115- pip install deepspeed==0.5.7
115+ pip install deepspeed==0.5.7 && \
116+ python -c "import deepspeed; print(deepspeed.__version__)"
116117
117118RUN \
118119 # Show what we have
119120 pip --version && \
120121 pip list && \
121122 python -c "import sys; ver = sys.version_info ; assert f'{ver.major}.{ver.minor}' == '$PYTHON_VERSION', ver" && \
122- python -c "import torch; assert torch.__version__.startswith('$PYTORCH_VERSION'), torch.__version__"
123+ python -c "import torch; assert torch.__version__.startswith('$PYTORCH_VERSION'), torch.__version__" && \
124+ python -c "import horovod.torch"
0 commit comments