Skip to content

Commit 26af80e

Browse files
authored
Upgrade TensorFlow to 2.6.4 & base image (#1163)
- Upgraded to `m92` base image. - Removed upgrade to `nbconvert` now that base image has the expected version. - Removed workaround for NVIDIA GPG key now that the base image has fixed it. http://b/232964717
1 parent 11f01ce commit 26af80e

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

Dockerfile.tmpl

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN ln -s /usr/local/cuda/lib64/stubs/libcuda.so /usr/local/cuda/lib64/stubs/lib
2626
FROM ${BASE_IMAGE_REPO}/${CPU_BASE_IMAGE_NAME}:${BASE_IMAGE_TAG}
2727
{{ end }}
2828
# Keep these variables in sync if base image is updated.
29-
ENV TENSORFLOW_VERSION=2.6.2
29+
ENV TENSORFLOW_VERSION=2.6.4
3030

3131
# We need to redefine the ARG here to get the ARG value defined above the FROM instruction.
3232
# See: https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact
@@ -53,13 +53,6 @@ RUN pip uninstall -y horovod && \
5353
/tmp/clean-layer.sh
5454
{{ end }}
5555

56-
{{ if eq .Accelerator "gpu" }}
57-
# b/230864778: Temporarily swap the NVIDIA GPG key. Remove once new base image with new GPG key is released.
58-
RUN rm /etc/apt/sources.list.d/cuda.list && \
59-
apt-key del 7fa2af80 && \
60-
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub
61-
{{ end }}
62-
6356
# Use a fixed apt-get repo to stop intermittent failures due to flaky httpredir connections,
6457
# as described by Lionel Chan at http://stackoverflow.com/a/37426929/5881346
6558
RUN sed -i "s/httpredir.debian.org/debian.uchicago.edu/" /etc/apt/sources.list && \
@@ -85,7 +78,10 @@ RUN conda config --add channels nvidia && \
8578
/tmp/clean-layer.sh
8679

8780
{{ if eq .Accelerator "gpu" }}
88-
RUN conda install cudf=21.10 cuml=21.10 cudatoolkit=$CUDA_MAJOR_VERSION.$CUDA_MINOR_VERSION && \
81+
82+
# b/232247930: uninstall pyarrow to avoid double installation with the GPU specific version.
83+
RUN pip uninstall -y pyarrow && \
84+
conda install cudf=21.10 cuml=21.10 cudatoolkit=$CUDA_MAJOR_VERSION.$CUDA_MINOR_VERSION && \
8985
/tmp/clean-layer.sh
9086
{{ end }}
9187

@@ -405,8 +401,6 @@ RUN pip install bleach && \
405401
pip install jupyterlab-lsp && \
406402
pip install MarkupSafe && \
407403
pip install mistune && \
408-
# b/227194111 install latest version of nbconvert until the base image includes nbconvert >= 6.4.5
409-
pip install --upgrade nbconvert Jinja2 && \
410404
pip install nbformat && \
411405
pip install notebook && \
412406
pip install papermill && \

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pipeline {
9393
}
9494
stage('Test CPU Image') {
9595
options {
96-
timeout(time: 5, unit: 'MINUTES')
96+
timeout(time: 10, unit: 'MINUTES')
9797
}
9898
steps {
9999
sh '''#!/bin/bash

config.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
BASE_IMAGE_REPO=gcr.io/deeplearning-platform-release
2-
BASE_IMAGE_TAG=m91
2+
BASE_IMAGE_TAG=m92
33
CPU_BASE_IMAGE_NAME=tf2-cpu.2-6
44
GPU_BASE_IMAGE_NAME=tf2-gpu.2-6
55
LIGHTGBM_VERSION=3.3.1

0 commit comments

Comments
 (0)