Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade PyTorch to 1.11 #1155

Merged
merged 3 commits into from
May 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ RUN conda install -c pytorch magma-cuda${CUDA_MAJOR_VERSION}${CUDA_MINOR_VERSION
rm -rf /tmp/torch && \
/tmp/clean-layer.sh
{{ else }}
RUN pip install torch==$TORCH_VERSION+cpu torchvision==$TORCHVISION_VERSION+cpu torchaudio==$TORCHAUDIO_VERSION torchtext==$TORCHTEXT_VERSION -f https://download.pytorch.org/whl/torch_stable.html && \
RUN pip install torch==$TORCH_VERSION+cpu torchvision==$TORCHVISION_VERSION+cpu torchaudio==$TORCHAUDIO_VERSION+cpu torchtext==$TORCHTEXT_VERSION -f https://download.pytorch.org/whl/torch_stable.html && \
/tmp/clean-layer.sh
{{ end }}

Expand Down Expand Up @@ -497,7 +497,8 @@ RUN pip install flashtext && \
pip install bqplot && \
pip install earthengine-api && \
pip install transformers && \
pip install datasets && \
# b/232247930 >= 2.2.0 requires pyarrow >= 6.0.0 which conflicts with dependencies for rapidsai 0.21.*
pip install datasets==2.1.0 && \
pip install dlib && \
pip install kaggle-environments && \
pip install geopandas && \
Expand Down
9 changes: 5 additions & 4 deletions config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ BASE_IMAGE_TAG=m91
CPU_BASE_IMAGE_NAME=tf2-cpu.2-6
GPU_BASE_IMAGE_NAME=tf2-gpu.2-6
LIGHTGBM_VERSION=3.3.1
TORCH_VERSION=1.9.1
TORCHAUDIO_VERSION=0.9.1
TORCHTEXT_VERSION=0.10.1
TORCHVISION_VERSION=0.10.1
TORCH_VERSION=1.11.0
# TODO(b/215031404#comment4) Remove zlib sed command after upgrade to >= 0.11.1
TORCHAUDIO_VERSION=0.11.0
TORCHTEXT_VERSION=0.12.0
TORCHVISION_VERSION=0.12.0
CUDA_MAJOR_VERSION=11
CUDA_MINOR_VERSION=0
2 changes: 2 additions & 0 deletions packages/torch.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ RUN cd /usr/local/src && \
git checkout tags/v$TORCHAUDIO_VERSION && \
git submodule sync && \
git submodule update --init --recursive --jobs 0 && \
# TODO(b/215031404#comment4) Remove after upgrade next release (0.11.1)
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 && \
python setup.py bdist_wheel

# Build torchtext
Expand Down