You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently your pyproject.toml claims to support jax>=0.5.0, but this is incorrect since 0.6.0, that has deprecated jax.tree_map. Downloading the current dependencies and running basically anything results in:
AttributeError: jax.tree_map was removed in JAX v0.6.0: use jax.tree.map (jax v0.4.25 or newer) or jax.tree_util.tree_map (any JAX version).
I changed the pyproject.toml to specify JAX<0.6.0.
I agree with the underlying issue, but I think pinning jax<0.6.0 is not the right long-term fix for evosax. Since we already require jax>=0.5.0, I’d rather keep the project compatible with the newer tree API and use jax.tree.map / jax.tree_util.tree_map instead of narrowing the dependency range.
main already includes that migration now, and the current dependency constraint is jax>=0.5.0,<0.7, so this PR has effectively been superseded.
I’m going to close this as stale, but thanks again for catching the breakage and opening the PR. If you run into any remaining JAX 0.6+ incompatibilities, a follow-up PR with the specific failing case would be very helpful.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello (again),
Currently your
pyproject.tomlclaims to support jax>=0.5.0, but this is incorrect since 0.6.0, that has deprecatedjax.tree_map. Downloading the current dependencies and running basically anything results in:AttributeError: jax.tree_map was removed in JAX v0.6.0: use jax.tree.map (jax v0.4.25 or newer) or jax.tree_util.tree_map (any JAX version).I changed the
pyproject.tomlto specify JAX<0.6.0.