fix: update JAX dependency stack to modern compatible versions#544
Open
Okyumi wants to merge 1 commit into
Open
fix: update JAX dependency stack to modern compatible versions#544Okyumi wants to merge 1 commit into
Okyumi wants to merge 1 commit into
Conversation
Update optional JAX dependencies from pinned 2023 versions to bounded ranges that resolve correctly with modern package managers: - jax/jaxlib: ==0.4.8/==0.4.7 → >=0.4.26,<0.5 - flax: ==0.6.8 → >=0.7.0,<0.8 (preserves FrozenDict, serialization APIs) - optax: ==0.1.4 → >=0.1.4,<0.2 (preserves adam(), incremental_update() APIs) - chex: ==0.1.5 → >=0.1.5 (no breaking changes) - scipy: <1.13.0 → >=1.10.0 (jax 0.4.26+ works with modern scipy) Upper bounds on flax (<0.8) and optax (<0.2) prevent API-breaking upgrades that would require code changes to the 14 JAX algorithm files. Fixes vwxyzjn#540
|
@Okyumi is attempting to deploy a commit to the Costa Huang's projects Team on Vercel. A member of the Team first needs to authorize it. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Fixes #540 — Updates the optional JAX dependency group in
pyproject.tomlfrom pinned 2023 versions to bounded ranges that resolve correctly with modern package managers (pip, uv).Problem
The current JAX deps pin ancient versions (
jax==0.4.8,jaxlib==0.4.7,flax==0.6.8). When pip/uv resolves these, it often installs an incompatiblejaxlib, producing:This blocks all JAX contributors from running or merging JAX-related PRs.
Changes
File modified:
pyproject.toml(dependency versions only, zero code changes)==0.4.8>=0.4.26,<0.5<0.5prevents future major breaks==0.4.7>=0.4.26,<0.5==0.6.8>=0.7.0,<0.8flax.serialization.to_bytes,FrozenDict,flax.struct.dataclass— all preserved in 0.7.x, deprecated in 0.8+==0.1.4>=0.1.4,<0.2optax.adam()andoptax.incremental_update()APIs changed in 0.2.0; 14 files use these==0.1.5>=0.1.5<1.13.0>=1.10.0Why These Bounds
The upper bounds on flax (
<0.8) and optax (<0.2) are specifically chosen to avoid API-breaking changes that would require modifying the 14 JAX algorithm files. This means zero code changes — the fix is entirely in dependency version constraints.Testing
pyproject.tomlparses correctlyppo_continuous_action_jax.py,sac_continuous_action_jax.py,ddpg_continuous_action_jax.py,td3_continuous_action_jax.py, and their Atari/evaluation variants