1
1
FROM lablup/common-base:py38-cuda11.1
2
2
3
3
# Install PyTorch
4
- ENV PYTORCH_VERSION=1.10.0
5
- ENV TORCHVISION_VERSION=0.10.0
6
- ENV TORCHAUDIO_VERSION=0.10.0
7
- ENV TORCHTEXT_VERSION=0.10 .0
4
+ ENV PYTORCH_VERSION=1.10.1
5
+ ENV TORCHVISION_VERSION=0.11.1
6
+ ENV TORCHAUDIO_VERSION=0.10.1
7
+ ENV TORCHTEXT_VERSION=0.11 .0
8
8
ENV TENSORBOARDX_VERSION=2.4.1
9
9
10
- RUN python3 -m pip uninstall -y torch && \
10
+ RUN python3 -m pip uninstall -y torch tensorboardx && \
11
11
python3 -m pip install -U pip==22.0.3 setuptools==60.9.3 && \
12
+ python3 -m pip install --no-cache-dir tensorboardX==${TENSORBOARDX_VERSION} && \
12
13
python3 -m pip install --no-cache-dir \
13
- http://download.pytorch.org/whl/cu111/torch-${PYTORCH_VERSION}%2Bcu111-cp38-cp38-linux_x86_64.whl \
14
- http://download.pytorch.org/whl/cu111/torchvision-${TORCHVISION_VERSION}%2Bcu111-cp38-cp38-linux_x86_64.whl \
15
- torchaudio==${TORCHAUDIO_VERSION} \
14
+ http://download.pytorch.org/whl/cu111/torch-${PYTORCH_VERSION}%2Bcu111-cp38-cp38-linux_x86_64.whl && \
15
+ # http://download.pytorch.org/whl/cu111/torchvision-${TORCHVISION_VERSION}%2Bcu111-cp38-cp38-linux_x86_64.whl \
16
+ python3 -m pip install --no-cache-dir \
17
+ torchvision \
18
+ torchaudio \
19
+ # http://download.pytorch.org/whl/cu111/torchaudio-${TORCHAUDIO_VERSION}%2Bcu111-cp38-cp38-linux_x86_64.whl \
20
+ torchtext \
16
21
torchserve \
17
- torchtext==${TORCHTEXT_VERSION} \
18
- # torchcsprng \
22
+ torchcsprng \
19
23
jsonargparse \
20
24
torchmetrics \
21
25
pyDeprecate \
@@ -25,7 +29,6 @@ RUN python3 -m pip uninstall -y torch && \
25
29
cnn-finetune \
26
30
keras4torch \
27
31
pytorch-lightning
28
- # python3 -m pip install --no-cache-dir tensorboardX==${TENSORBOARDX_VERSION}
29
32
30
33
# torch2trt PyTorch to TensorRT converter which utilizes the TensorRT Python API
31
34
WORKDIR /tmp
@@ -41,7 +44,7 @@ RUN python3 -m pip install --extra-index-url \
41
44
RUN ldconfig /usr/local/cuda/targets/x86_64-linux/lib/stubs && \
42
45
HOROVOD_GPU_ALLREDUCE=NCCL HOROVOD_GPU_BROADCAST=NCCL \
43
46
HOROVOD_WITHOUT_TENSORFLOW=1 HOROVOD_WITH_PYTORCH=1 HOROVOD_WITHOUT_MXNET=1 \
44
- pip install --no-cache-dir horovod==0.22.1 && \
47
+ pip install --no-cache-dir horovod==0.23.0 && \
45
48
ldconfig
46
49
47
50
RUN python3 -m pip install --no-cache-dir \
0 commit comments