Skip to content

Commit cc59650

Browse files
hertschuhLakshmiKalaKadali
authored andcommitted
Bump Python and Tensorflow versions to fix protobuf version mismatch. (keras-team#148)
`jax-tpu-embedding` requires a more recent version of `protobuf` than what comes with Tensorflow 2.18. Also bump the JAX version as 0.7.0 is the minimum required for `jax-tpu-embedding`. This forces us to bump the minimum version for Python to 3.11.
1 parent 605fa82 commit cc59650

File tree

8 files changed

+16
-15
lines changed

8 files changed

+16
-15
lines changed

.github/workflows/actions.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
KERAS_BACKEND: ${{ matrix.backend }}
2323
steps:
2424
- uses: actions/checkout@v4
25-
- name: Set up Python 3.10
25+
- name: Set up Python 3.11
2626
uses: actions/setup-python@v5
2727
with:
28-
python-version: "3.10"
28+
python-version: "3.11"
2929
- name: Get pip cache dir
3030
id: pip-cache
3131
run: |
@@ -50,10 +50,10 @@ jobs:
5050
runs-on: ubuntu-latest
5151
steps:
5252
- uses: actions/checkout@v4
53-
- name: Set up Python 3.10
53+
- name: Set up Python 3.11
5454
uses: actions/setup-python@v5
5555
with:
56-
python-version: "3.10"
56+
python-version: "3.11"
5757
- name: Get pip cache dir
5858
id: pip-cache
5959
run: |

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up Python
2121
uses: actions/setup-python@v5
2222
with:
23-
python-version: "3.10"
23+
python-version: "3.11"
2424
- name: Get pip cache dir
2525
id: pip-cache
2626
run: |

.github/workflows/publish-to-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Set up Python
1515
uses: actions/setup-python@v5
1616
with:
17-
python-version: "3.10"
17+
python-version: "3.11"
1818
- name: Get pip cache dir
1919
id: pip-cache
2020
run: |

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ authors = [
99
]
1010
description = "Multi-backend recommender systems with Keras 3."
1111
readme = "README.md"
12-
requires-python = ">=3.10"
12+
requires-python = ">=3.11"
1313
license = {text = "Apache License 2.0"}
1414
dynamic = ["version"]
1515
classifiers = [
1616
"Development Status :: 3 - Alpha",
1717
"Programming Language :: Python :: 3",
18-
"Programming Language :: Python :: 3.10",
1918
"Programming Language :: Python :: 3.11",
19+
"Programming Language :: Python :: 3.12",
20+
"Programming Language :: Python :: 3.13",
2021
"Programming Language :: Python :: 3 :: Only",
2122
"Operating System :: Unix",
2223
"Operating System :: Microsoft :: Windows",

requirements-jax-cuda.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Tensorflow cpu-only version.
2-
tensorflow-cpu
2+
tensorflow-cpu>=2.20.0
33

44
# Torch cpu-only version.
55
--extra-index-url https://download.pytorch.org/whl/cpu
@@ -8,7 +8,7 @@ torch>=2.1.0
88
# Jax with cuda support.
99
# Keep same version as Keras repo.
1010
--find-links https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
11-
jax[cuda12]==0.6.2
11+
jax[cuda12]>=0.7.0
1212

1313
# Support for large embeddings.
1414
jax-tpu-embedding;sys_platform == 'linux' and platform_machine == 'x86_64'

requirements-tensorflow-cuda.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Tensorflow with cuda support.
2-
tensorflow[and-cuda]~=2.17.0
2+
tensorflow[and-cuda]
33

44
# Torch cpu-only version.
55
--extra-index-url https://download.pytorch.org/whl/cpu

requirements-torch-cuda.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Tensorflow cpu-only version.
2-
tensorflow-cpu~=2.17
2+
tensorflow-cpu
33

44
# Torch with cuda support.
55
--extra-index-url https://download.pytorch.org/whl/cu121

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Tensorflow.
2-
tensorflow-cpu~=2.18.0;sys_platform != 'darwin'
3-
tensorflow~=2.18.0;sys_platform == 'darwin'
2+
tensorflow-cpu>=2.20.0;sys_platform != 'darwin'
3+
tensorflow>=2.20.0;sys_platform == 'darwin'
44

55
# Torch.
66
--extra-index-url https://download.pytorch.org/whl/cpu
77
torch>=2.1.0
88

99
# Jax.
10-
jax[cpu]>=0.6.2
10+
jax[cpu]>=0.7.0
1111
jax-tpu-embedding;sys_platform == 'linux' and platform_machine == 'x86_64'
1212

1313
# pre-commit checks (formatting, linting, etc.)

0 commit comments

Comments
 (0)