Skip to content

Upgrade JAX to v0.8.2 and clean up installation instructions#1

Draft
google-labs-jules[bot] wants to merge 2 commits intojax-upgradefrom
upgrade-jax-0.8.2-5519985400734555835
Draft

Upgrade JAX to v0.8.2 and clean up installation instructions#1
google-labs-jules[bot] wants to merge 2 commits intojax-upgradefrom
upgrade-jax-0.8.2-5519985400734555835

Conversation

@google-labs-jules
Copy link

This PR upgrades the JAX dependency to v0.8.2 as requested. It also updates compatible versions for Flax, Optax, and TensorFlow. The code was modified to use jax.tree.map instead of the deprecated jax.tree_map. Installation instructions in README.md were updated to reflect the new dependency management strategy (CPU by default, explicit instruction for GPU). Verified the upgrade by running a deconvolution example script.


PR created automatically by Jules for task 5519985400734555835 started by @rmcao

- Updated JAX to v0.8.2, Flax to v0.12.2, Optax to v0.2.6, and TensorFlow to v2.20.0 in `requirements.txt`.
- Removed `jaxlib` from `requirements.txt` to allow flexible installation (CPU vs GPU).
- Replaced deprecated `jax.tree_map` with `jax.tree.map` in `calcil/reconstruction.py`.
- Updated `README.md` with clearer installation instructions, emphasizing that default installation is CPU-only and providing commands for GPU support.
- Fixed an issue with `orbax.checkpoint` requiring absolute paths by using `os.path.abspath` in `calcil/reconstruction.py`.
@google-labs-jules
Copy link
Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

- Updated JAX to v0.8.2, Flax to v0.12.2, Optax to v0.2.6, and TensorFlow to v2.20.0 in `requirements.txt`.
- Removed `jaxlib` from `requirements.txt` to allow flexible installation (CPU vs GPU).
- Replaced deprecated `jax.tree_map` with `jax.tree.map` in `calcil/reconstruction.py`.
- Updated `README.md` with clearer installation instructions, emphasizing that default installation is CPU-only and providing commands for GPU support.
- Fixed an issue with `orbax.checkpoint` requiring absolute paths by using `os.path.abspath` in `calcil/reconstruction.py`.
- Updated documentation in `docs/` to reflect changes in `requirements.txt` and `README.md`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants