Skip to content

Commit

Permalink
Update minimal JAX version to latest (0.3.16).
Browse files Browse the repository at this point in the history
0.3.16 includes jax-ml/jax#11807, which supports more flexible sharding constraints under vmap (see also flax/linen/partitioning.py).

0.3.16 removes jax.tree_util.tree_multimap, so we are also updating to the latest jgraph version (in which tree_multimap has been replaced).

PiperOrigin-RevId: 467265619
  • Loading branch information
James Lee-Thorp authored and Flax Authors committed Aug 12, 2022
1 parent 517b763 commit d9897c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ filterwarnings =
ignore:can't resolve package from.*:ImportWarning
# Jax imports flatbuffers which imports imp in a compat file.
ignore:the imp module is deprecated.*:DeprecationWarning
# TODO(#2037): Remove this once Jgraph uses jax.tree_map.
ignore:jax.tree_util.tree_multimap\(\) is deprecated.*:FutureWarning
# traverse_util.Traversal will be removed soon.
ignore:`flax.traverse_util.Traversal` will be deprecated.*:DeprecationWarning
# TODO: Will revisit all the deprecation warnings next week.
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

install_requires = [
"numpy>=1.12",
"jax>=0.3.15",
"jax>=0.3.16",
"matplotlib", # only needed for tensorboard export
"msgpack",
"optax",
Expand All @@ -40,7 +40,7 @@
"clu", # All examples.
"gym==0.18.3",
"jaxlib",
"jraph",
"jraph>=0.0.6dev0",
"ml-collections",
"opencv-python",
"pytest",
Expand Down

0 comments on commit d9897c5

Please sign in to comment.