1
- FROM lablup/common-base:py38-cuda11.1
1
+ FROM lablup/common-base:py38-cuda11.3
2
2
3
3
# Install PyTorch
4
4
ENV PYTORCH_VERSION=1.10.1
@@ -7,15 +7,19 @@ ENV TORCHAUDIO_VERSION=0.10.1
7
7
ENV TORCHTEXT_VERSION=0.11.0
8
8
ENV TENSORBOARDX_VERSION=2.4.1
9
9
10
+ WORKDIR /tmp
10
11
RUN python3 -m pip uninstall -y torch tensorboardx && \
11
12
python3 -m pip install -U pip==22.0.3 setuptools==60.9.3 && \
12
13
python3 -m pip install --no-cache-dir tensorboardX==${TENSORBOARDX_VERSION} && \
13
14
python3 -m pip install --no-cache-dir \
14
- http://download.pytorch.org/whl/cu111/torch-${PYTORCH_VERSION}%2Bcu111-cp38-cp38-linux_x86_64.whl && \
15
+ http://download.pytorch.org/whl/cu113/torch-${PYTORCH_VERSION}%2Bcu113-cp38-cp38-linux_x86_64.whl && \
16
+ python3 -m pip install --no-cache-dir \
17
+ http://download.pytorch.org/whl/cu113/torchvision-0.11.2%2Bcu113-cp38-cp38-linux_x86_64.whl && \
18
+ python3 -m pip install --no-cache-dir \
19
+ http://download.pytorch.org/whl/cu113/torchaudio-0.10.1%2Bcu113-cp38-cp38-linux_x86_64.whl && \
20
+ python3 -m pip install --no-cache-dir \
21
+ http://download.pytorch.org/whl/torchtext-0.11.1-cp38-cp38-linux_x86_64.whl && \
15
22
python3 -m pip install --no-cache-dir \
16
- torchvision \
17
- torchaudio \
18
- torchtext \
19
23
torchserve \
20
24
torchcsprng \
21
25
jsonargparse \
@@ -26,7 +30,7 @@ RUN python3 -m pip uninstall -y torch tensorboardx && \
26
30
pretrainedmodels \
27
31
cnn-finetune \
28
32
keras4torch \
29
- pytorch-lightning
33
+ pytorch-lightning
30
34
31
35
# torch2trt PyTorch to TensorRT converter which utilizes the TensorRT Python API
32
36
WORKDIR /tmp
@@ -38,6 +42,7 @@ RUN git clone --branch=v0.3.0 https://github.com/NVIDIA-AI-IOT/torch2trt /tmp/to
38
42
RUN python3 -m pip install --extra-index-url \
39
43
https://developer.download.nvidia.com/compute/redist nvidia-dali-cuda100
40
44
45
+
41
46
# Install Horovod, temporarily using CUDA stubs
42
47
RUN ldconfig /usr/local/cuda/targets/x86_64-linux/lib/stubs && \
43
48
HOROVOD_GPU_ALLREDUCE=NCCL HOROVOD_GPU_BROADCAST=NCCL \
0 commit comments