Skip to content

Commit cf151a8

Browse files
authored
Update cuda and libnvinfer versions (#823)
1 parent a97fee2 commit cf151a8

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

dev/versions.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Note: check their [install.md](https://github.com/kubernetes/client-go/blob/mast
9191
The Python version in the base images for `tf-api` and `onnx-serve-gpu`/`python-serve-gpu` determines the Python version used throughout Cortex.
9292

9393
1. Update the `tensorflow/tensorflow` base image in `images/tf-api/Dockerfile` to the desired version ([Dockerhub](https://hub.docker.com/r/tensorflow/tensorflow))
94-
1. Update the `nvidia/cuda` base image in `images/python-serve-gpu/Dockerfile` and `images/onnx-serve-gpu/Dockerfile` to the desired version ([Dockerhub](https://hub.docker.com/r/nvidia/cuda)) (it's possible these versions will diverge depending on ONNX runtime support)
94+
1. Update the `nvidia/cuda` base image in `images/python-serve-gpu/Dockerfile` and `images/onnx-serve-gpu/Dockerfile` (as well as `libnvinfer` in `images/python-serve-gpu/Dockerfile` and `images/tf-serve-gpu/Dockerfile`) to the desired version based on [TensorFlow's documentation](https://www.tensorflow.org/install/gpu#ubuntu_1804_cuda_101) ([Dockerhub](https://hub.docker.com/r/nvidia/cuda)) (it's possible these versions will diverge depending on ONNX runtime support)
9595
1. Run `docker run --rm -it tensorflow/tensorflow:***`, and in the container run `python3 --version` and `cat /etc/lsb-release`
9696
1. Run `docker run --rm -it nvidia/cuda:***`, and in the container run `cat /etc/lsb-release`
9797
1. The Ubuntu versions should match; if they do not, downgrade whichever one is too advanced
@@ -103,10 +103,6 @@ The Python version in the base images for `tf-api` and `onnx-serve-gpu`/`python-
103103

104104
Note: it's ok if example training notebooks aren't upgraded, as long as the exported model still works
105105

106-
## TensorRT
107-
108-
1. Update to the latest version of TensorRT in `images/tf-serve-gpu/Dockerfile` ([install guide](https://docs.nvidia.com/deeplearning/sdk/tensorrt-install-guide/index.html), [release notes](https://docs.nvidia.com/deeplearning/sdk/tensorrt-release-notes/index.html))
109-
110106
## ONNX runtime
111107

112108
1. Update the version in `onnx-cpu.requirements.txt` and `onnx-gpu.requirements.txt` ([releases](https://github.com/microsoft/onnxruntime/releases))

images/python-serve-gpu/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04
1+
FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04
22

33
RUN apt-get update -qq && apt-get install -y -q \
44
build-essential \
@@ -18,6 +18,8 @@ RUN apt-get update -qq && apt-get install -y -q \
1818
libxext6 \
1919
libxrender-dev \
2020
locales \
21+
libnvinfer6=6.0.1-1+cuda10.1 \
22+
libnvinfer-plugin6=6.0.1-1+cuda10.1 \
2123
&& apt-get clean -qq && rm -rf /var/lib/apt/lists/* && \
2224
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
2325
python3.6 get-pip.py && \

images/tf-serve-gpu/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM tensorflow/serving:2.1.0-gpu
22

3-
RUN apt-get update -qq && apt-get install -y -q \
4-
libnvinfer7 \
3+
RUN apt-get update -qq && apt-get install -y --no-install-recommends -q \
4+
libnvinfer6=6.0.1-1+cuda10.1 \
5+
libnvinfer-plugin6=6.0.1-1+cuda10.1 \
56
&& apt-get clean -qq && rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)