Skip to content

Commit 82d62b2

Browse files
author
Miguel Varela Ramos
authored
Revert version upgrade for TF Serving (#1891)
1 parent c9a3b16 commit 82d62b2

File tree

8 files changed

+12
-13
lines changed

8 files changed

+12
-13
lines changed

dev/versions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ python versions in our pip dependencies (e.g. [tensorflow](https://pypi.org/proj
143143
## TensorFlow / TensorFlow Serving
144144

145145
1. Find the latest release on [GitHub](https://github.com/tensorflow/tensorflow/releases)
146-
1. Search the codebase for the current minor TensorFlow version (e.g. `2.4`) and update versions as appropriate
146+
1. Search the codebase for the current minor TensorFlow version (e.g. `2.3`) and update versions as appropriate
147147
1. Update the version for libnvinfer in `images/tensorflow-serving-gpu/Dockerfile` dockerfile as appropriate (https://www.tensorflow.org/install/gpu)
148148

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

docs/workloads/batch/predictors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class PythonPredictor:
9090

9191
## TensorFlow Predictor
9292

93-
**Uses TensorFlow version 2.4.1 by default**
93+
**Uses TensorFlow version 2.3.0 by default**
9494

9595
### Interface
9696

docs/workloads/realtime/predictors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Your `predictor` method can return different types of objects such as `JSON`-par
131131

132132
## TensorFlow Predictor
133133

134-
**Uses TensorFlow version 2.4.1 by default**
134+
**Uses TensorFlow version 2.3.0 by default**
135135

136136
### Interface
137137

images/tensorflow-predictor/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ COPY pkg/cortex/serve/cortex_internal.requirements.txt /src/cortex/serve/cortex_
4848
RUN pip install --no-cache-dir \
4949
-r /src/cortex/serve/serve.requirements.txt \
5050
-r /src/cortex/serve/cortex_internal.requirements.txt \
51-
tensorflow-cpu==2.4.1 \
52-
tensorflow-serving-api==2.4.1
51+
tensorflow-cpu==2.3.0 \
52+
tensorflow-serving-api==2.3.0
5353

5454
COPY pkg/cortex/serve/init/install-core-dependencies.sh /usr/local/cortex/install-core-dependencies.sh
5555
RUN chmod +x /usr/local/cortex/install-core-dependencies.sh

images/tensorflow-serving-cpu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM tensorflow/serving:2.4.1
1+
FROM tensorflow/serving:2.3.0
22

33
RUN apt-get update -qq && apt-get install -y -q \
44
curl \

images/tensorflow-serving-gpu/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
FROM tensorflow/serving:2.4.0-gpu
1+
FROM tensorflow/serving:2.3.0-gpu
22

3-
# https://www.tensorflow.org/install/gpu
43
RUN apt-get update -qq && apt-get install -y --no-install-recommends -q \
5-
libnvinfer7=7.1.3-1+cuda11.0 \
6-
libnvinfer-plugin7=7.1.3-1+cuda11.0 \
4+
libnvinfer6=6.0.1-1+cuda10.1 \
5+
libnvinfer-plugin6=6.0.1-1+cuda10.1 \
76
curl \
87
&& apt-get clean -qq && rm -rf /var/lib/apt/lists/*
98

pkg/cortex/serve/init/install-core-dependencies.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ fi
3030
if [ "${CORTEX_IMAGE_TYPE}" = "tensorflow-predictor" ]; then
3131
if ! module_exists "tensorflow" || ! module_exists "tensorflow_serving"; then
3232
pip install --no-cache-dir -U \
33-
tensorflow-cpu==2.4.1 \
34-
tensorflow-serving-api==2.4.1
33+
tensorflow-cpu==2.3.0 \
34+
tensorflow-serving-api==2.3.0
3535
fi
3636
elif [ "${CORTEX_IMAGE_TYPE}" = "onnx-predictor-cpu" ] && ! module_exists "onnxruntime"; then
3737
pip install --no-cache-dir -U \

test/apis/keras/document-denoiser/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ requests==2.22.0
33
opencv-python==4.1.2.30
44
keras==2.3.1
55
h5py==2.10.0
6-
tensorflow-cpu==2.4.1
6+
tensorflow-cpu==2.3.0

0 commit comments

Comments
 (0)