1
1
FROM lablup/common-base:py38-cuda11.1
2
- # Install PyTorch and MXNet
3
- ENV PYTORCH_VERSION=1.7.1
4
- ENV TORCHVISION_VERSION=0.8.2
5
- ENV TORCHAUDIO_VERSION=0.7.2
6
- ENV TORCHTEXT_VERSION=0.8.1
2
+
3
+ # Install PyTorch
4
+ ENV PYTORCH_VERSION=1.8.1
5
+ ENV TORCHVISION_VERSION=0.9.1
6
+ ENV TORCHAUDIO_VERSION=0.8.1
7
+ ENV TORCHTEXT_VERSION=0.9.1
7
8
ENV TENSORBOARDX_VERSION=2.1
9
+ ENV MXNET_VERSION=1.7.0
8
10
9
11
RUN python3 -m pip uninstall -y torch && \
10
12
python3 -m pip install --no-cache-dir \
11
- https://download.pytorch.org/whl/cu110 /torch-${PYTORCH_VERSION}%2Bcu110 -cp38-cp38-linux_x86_64.whl \
12
- https://download.pytorch.org/whl/cu110 /torchvision-${TORCHVISION_VERSION}%2Bcu110 -cp38-cp38-linux_x86_64.whl \
13
+ https://download.pytorch.org/whl/cu111 /torch-${PYTORCH_VERSION}%2Bcu111 -cp38-cp38-linux_x86_64.whl \
14
+ https://download.pytorch.org/whl/cu111 /torchvision-${TORCHVISION_VERSION}%2Bcu111 -cp38-cp38-linux_x86_64.whl \
13
15
https://download.pytorch.org/whl/torchaudio-${TORCHAUDIO_VERSION}-cp38-cp38-linux_x86_64.whl \
16
+ https://download.pytorch.org/whl/cu111/torchcsprng-0.2.1%2Bcu111-cp38-cp38-linux_x86_64.whl \
17
+ https://download.pytorch.org/whl/torchserve-0.3.0-py2.py3-none-any.whl \
14
18
https://download.pytorch.org/whl/torchtext-${TORCHTEXT_VERSION}-cp38-cp38-linux_x86_64.whl && \
15
19
python3 -m pip install --no-cache-dir tensorboardX==${TENSORBOARDX_VERSION}
16
20
@@ -28,23 +32,25 @@ RUN python3 -m pip install --extra-index-url \
28
32
RUN ldconfig /usr/local/cuda/targets/x86_64-linux/lib/stubs && \
29
33
HOROVOD_GPU_ALLREDUCE=NCCL HOROVOD_GPU_BROADCAST=NCCL \
30
34
HOROVOD_WITH_TENSORFLOW=1 HOROVOD_WITH_PYTORCH=1 HOROVOD_WITHOUT_MXNET=1 \
31
- pip install --no-cache-dir horovod==0.21.1 && \
35
+ pip install --no-cache-dir horovod==0.21.3 && \
32
36
ldconfig
33
37
34
38
RUN python3 -m pip install --no-cache-dir \
35
39
mpi4py==3.0.3 \
36
- mlflow==1.12.1 \
37
- nni==1.9 \
40
+ mlflow==1.15.0 \
41
+ nni==2.1 \
38
42
scikit-nni==0.2.1
39
43
40
44
RUN apt autoclean && \
41
45
rm -rf /var/lib/apt/lists/* && \
42
46
rm -rf /root/.cache && \
43
47
rm -rf /tmp/*
48
+
44
49
COPY ./service-defs /etc/backend.ai/service-defs
50
+ COPY ./runner-scripts/bootstrap.sh runner-scripts/setup_multinode.py /opt/container/
45
51
46
52
# Install ipython kernelspec
47
- Run python3 -m ipykernel install --display-name "PyTorch 1.7 .1 on Python 3.8 (CUDA 11.1)" && \
53
+ Run python3 -m ipykernel install --display-name "PyTorch 1.8 .1 on Python 3.8 (CUDA 11.1)" && \
48
54
cat /usr/local/share/jupyter/kernels/python3/kernel.json
49
55
50
56
# Backend.AI specifics
0 commit comments