Skip to content

Commit 410054c

Browse files
authored
Merge pull request #1345 from Kaggle/keras3
Install Keras 3
2 parents 83789d0 + 20ec1a3 commit 410054c

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

tpu/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ RUN pip install tensorflow_hub https://storage.googleapis.com/cloud-tpu-tpuvm-ar
6262
kagglehub && \
6363
/tmp/clean-layer.sh
6464

65+
# b/318672157 Install Keras 3 for loading models.
66+
# We ignore dependencies for now since tf2.15 should work despite pip saying it won't.
67+
RUN pip install --no-dependencies "keras>3" keras-cv keras-nlp && \
68+
/tmp/clean-layer.sh
69+
6570
# Tensorflow libtpu:
6671
RUN curl --output /lib/libtpu.so https://storage.googleapis.com/cloud-tpu-tpuvm-artifacts/libtpu/${TF_LIBTPU_VERSION}/libtpu.so
6772

tpu/config.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
BASE_IMAGE=python:3.10
22
PYTHON_WHEEL_VERSION=cp310
33
PYTHON_VERSION_PATH=python3.10
4-
# https://cloud.google.com/tpu/docs/supported-tpu-configurations#tpu_software_versions:~:text=TensorFlow%20version-,libtpu.so%20version,-2.13.0
5-
TENSORFLOW_VERSION=2.14.0
6-
TF_LIBTPU_VERSION=1.8.0
4+
# https://cloud.google.com/tpu/docs/supported-tpu-configurations#libtpu_versions
5+
TENSORFLOW_VERSION=2.15.0
6+
TF_LIBTPU_VERSION=1.9.0
77
TF_LINUX_WHEEL_VERSION=manylinux_2_17_x86_64.manylinux2014_x86_64
88
JAX_VERSION=0.4.17
99
# Supports nightly

0 commit comments

Comments
 (0)