FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Trying Keras 3 w/ tf2.16 again (#1390) · ZahidSQLDBA/docker-python@abc385c · GitHub

Commit abc385c

Browse files
authored
Trying Keras 3 w/ tf2.16 again (Kaggle#1390)
It looks like it was actually the JAX version bump that was breaking things, so trying the TF & Keras bump.
1 parent 61bd309 commit abc385c

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

‎tpu/Dockerfile‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,12 @@ 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:
77-
RUN curl --output /lib/libtpu.so https://storage.googleapis.com/cloud-tpu-tpuvm-artifacts/libtpu/${TF_LIBTPU_VERSION}/libtpu.so
73+
RUN curl --output /usr/local/lib/python3.10/site-packages/libtpu/libtpu.so https://storage.googleapis.com/cloud-tpu-tpuvm-artifacts/libtpu/${TF_LIBTPU_VERSION}/libtpu.so
7874

7975
# Kaggle Model Hub patches:
8076
ADD patches/kaggle_module_resolver.py /usr/local/lib/${PYTHON_VERSION_PATH}/site-packages/tensorflow_hub/kaggle_module_resolver.py

‎tpu/config.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ PYTHON_WHEEL_VERSION=cp310
33
PYTHON_VERSION_PATH=python3.10
44
# gsutil ls gs://cloud-tpu-tpuvm-artifacts/tensorflow
55
# https://cloud.google.com/tpu/docs/supported-tpu-configurations#libtpu_versions
6-
TENSORFLOW_VERSION=2.15.0
7-
TF_LIBTPU_VERSION=1.9.0
6+
TENSORFLOW_VERSION=2.16.1
7+
TF_LIBTPU_VERSION=1.10.1
88
TF_LINUX_WHEEL_VERSION=manylinux_2_17_x86_64.manylinux2014_x86_64
99
JAX_VERSION=0.4.23
1010
# gsutil ls gs://pytorch-xla-releases/wheels/tpuvm/* | grep libtpu | grep -v -E ".*rc[0-9].*"

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL