Skip to content

Commit 533b738

Browse files
committed
upate packages for pytorch
1 parent 5e71dba commit 533b738

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

python-pytorch/Dockerfile.1.10-py38-cuda11.1

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM lablup/common-base:py38-cuda11.1
1+
FROM lablup/common-base:py38-cuda11.3
22

33
# Install PyTorch
44
ENV PYTORCH_VERSION=1.10.1
@@ -7,15 +7,19 @@ ENV TORCHAUDIO_VERSION=0.10.1
77
ENV TORCHTEXT_VERSION=0.11.0
88
ENV TENSORBOARDX_VERSION=2.4.1
99

10+
WORKDIR /tmp
1011
RUN python3 -m pip uninstall -y torch tensorboardx && \
1112
python3 -m pip install -U pip==22.0.3 setuptools==60.9.3 && \
1213
python3 -m pip install --no-cache-dir tensorboardX==${TENSORBOARDX_VERSION} && \
1314
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 && \
1522
python3 -m pip install --no-cache-dir \
16-
torchvision \
17-
torchaudio \
18-
torchtext \
1923
torchserve \
2024
torchcsprng \
2125
jsonargparse \
@@ -26,7 +30,7 @@ RUN python3 -m pip uninstall -y torch tensorboardx && \
2630
pretrainedmodels \
2731
cnn-finetune \
2832
keras4torch \
29-
pytorch-lightning
33+
pytorch-lightning
3034

3135
# torch2trt PyTorch to TensorRT converter which utilizes the TensorRT Python API
3236
WORKDIR /tmp
@@ -38,6 +42,7 @@ RUN git clone --branch=v0.3.0 https://github.com/NVIDIA-AI-IOT/torch2trt /tmp/to
3842
RUN python3 -m pip install --extra-index-url \
3943
https://developer.download.nvidia.com/compute/redist nvidia-dali-cuda100
4044

45+
4146
# Install Horovod, temporarily using CUDA stubs
4247
RUN ldconfig /usr/local/cuda/targets/x86_64-linux/lib/stubs && \
4348
HOROVOD_GPU_ALLREDUCE=NCCL HOROVOD_GPU_BROADCAST=NCCL \

0 commit comments

Comments
 (0)