Skip to content
Merged
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
4 changes: 2 additions & 2 deletions keras_rs/src/layers/embedding/distributed_embedding_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,10 +560,10 @@ def test_correctness(
# Determine explicit shardings/layouts for jit compilation
# (required for sparsecore computations).
trainable_layouts = keras.tree.map_structure(
lambda x: x.value.layout, layer.trainable_variables
lambda x: x.value.format, layer.trainable_variables
)
non_trainable_layouts = keras.tree.map_structure(
lambda x: x.value.layout, layer.non_trainable_variables
lambda x: x.value.format, layer.non_trainable_variables
)
# Input/output data involved in sparsecore operations are
# sharded across all sparse-core-capable devices.
Expand Down
2 changes: 1 addition & 1 deletion requirements-jax-cuda.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ torch>=2.1.0
# Jax with cuda support.
# Keep same version as Keras repo.
--find-links https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
jax[cuda12_pip]==0.6.2
jax[cuda12]==0.6.2

# Support for large embeddings.
jax-tpu-embedding;sys_platform == 'linux' and platform_machine == 'x86_64'
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tensorflow~=2.18.0;sys_platform == 'darwin'
torch>=2.1.0

# Jax.
jax[cpu]
jax[cpu]>=0.6.2
jax-tpu-embedding;sys_platform == 'linux' and platform_machine == 'x86_64'

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