Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade jax #20864

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .kokoro/github/ubuntu/gpu/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ fi
if [ "$KERAS_BACKEND" == "jax" ]
then
echo "JAX backend detected."
export XLA_FLAGS=--xla_gpu_graph_level=0
pip install -r requirements-jax-cuda.txt --progress-bar off --timeout 1000
pip uninstall -y keras keras-nightly
python3 -c 'import jax;print(jax.__version__);print(jax.default_backend())'
Expand Down
2 changes: 1 addition & 1 deletion keras/src/backend/common/remat_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def test_invalid_mode(self):

class RematTest(testing.TestCase):
def test_remat_basic_call(self):
if backend.backend() in ("openvino", "numpy"):
if backend.backend() in ("openvino", "numpy") or testing.jax_uses_gpu():
self.skipTest(
"remat is not supported in openvino and numpy backends."
)
Expand Down
2 changes: 1 addition & 1 deletion requirements-jax-cuda.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ torchvision==0.21.0+cpu

# Jax with cuda support.
--find-links https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
jax[cuda12]==0.4.28
jax[cuda12]==0.5.0
flax

-r requirements-common.txt