Skip to content

Commit 019234e

Browse files
committed
Upgrade PyTorch to 1.12
http://b/238238619
1 parent 932bdeb commit 019234e

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

config.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ BASE_IMAGE_TAG=m94
33
CPU_BASE_IMAGE_NAME=tf2-cpu.2-9
44
GPU_BASE_IMAGE_NAME=tf2-gpu.2-9
55
LIGHTGBM_VERSION=3.3.2
6-
TORCH_VERSION=1.11.0
7-
# TODO(b/215031404#comment4) Remove zlib sed command after upgrade to >= 0.11.1
8-
TORCHAUDIO_VERSION=0.11.0
9-
TORCHTEXT_VERSION=0.12.0
10-
TORCHVISION_VERSION=0.12.0
6+
TORCH_VERSION=1.12.0
7+
TORCHAUDIO_VERSION=0.12.0
8+
TORCHTEXT_VERSION=0.13.0
9+
TORCHVISION_VERSION=0.13.0
1110
CUDA_MAJOR_VERSION=11
1211
CUDA_MINOR_VERSION=0

packages/torch.Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ARG CUDA_MINOR_VERSION
1313
RUN test -n "$TORCHVISION_VERSION"
1414

1515
# Build instructions: https://github.com/pytorch/pytorch#from-source
16-
RUN conda install astunparse numpy ninja pyyaml mkl mkl-include setuptools==59.5.0 cmake cffi typing_extensions future six requests dataclasses
16+
RUN conda install astunparse numpy ninja pyyaml mkl mkl-include setuptools cmake cffi typing_extensions future six requests dataclasses
1717
RUN conda install -c pytorch magma-cuda${CUDA_MAJOR_VERSION}${CUDA_MINOR_VERSION}
1818

1919
# By default, it uses the version from version.txt which includes the `a0` (alpha zero) suffix and part of the git hash.
@@ -44,8 +44,6 @@ RUN cd /usr/local/src && \
4444
git checkout tags/v$TORCHAUDIO_VERSION && \
4545
git submodule sync && \
4646
git submodule update --init --recursive --jobs 0 && \
47-
# TODO(b/215031404#comment4) Remove after upgrade next release (0.11.1)
48-
sed -i s?https://zlib.net/zlib-1.2.11.tar.gz?https://sourceforge.net/projects/libpng/files/zlib/1.2.11/zlib-1.2.11.tar.gz? third_party/zlib/CMakeLists.txt && \
4947
python setup.py bdist_wheel
5048

5149
# Build torchtext

0 commit comments

Comments
 (0)