Skip to content

Commit e3181fe

Browse files
authored
Keras 3 w/ tf2.16 (#1385)
We should be able to install Keras 3 directly now that we have tf2.16. http://b/318672157 http://b/334956594
1 parent 878dc6a commit e3181fe

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tpu/Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,10 @@ RUN pip install tensorflow_hub https://storage.googleapis.com/cloud-tpu-tpuvm-ar
6565
papermill jupyterlab python-lsp-server[all] "jupyter-lsp==1.5.1" \
6666
pandas matplotlib opencv-python-headless librosa accelerate diffusers scikit-learn transformers \
6767
seaborn timm albumentations einops pyarrow fastparquet opencv-python \
68+
"keras>3" keras-cv keras-nlp \
6869
kagglehub && \
6970
/tmp/clean-layer.sh
7071

71-
# b/318672157 Install Keras 3 for loading models.
72-
# We ignore dependencies for now since tf2.15 should work despite pip saying it won't.
73-
RUN pip install --no-dependencies "keras>3" keras-cv keras-nlp && \
74-
/tmp/clean-layer.sh
75-
7672
# Tensorflow libtpu:
7773
RUN curl --output /lib/libtpu.so https://storage.googleapis.com/cloud-tpu-tpuvm-artifacts/libtpu/${TF_LIBTPU_VERSION}/libtpu.so
7874

0 commit comments

Comments
 (0)