Repository navigation
feat: require jax and jaxlib >=0.12.0,<0.13 - #216
Merged
Merged
Conversation
jax/jaxlib 0.11.2 deadlocks XLA:CPU likelihoods (every call at 4 cores on RAL job 415009); 0.12.0 and 0.12.0.1 ran 30,000 calls with no hang and no XLA flag (PyAutoNerves#213, PyAutoDNA decisions/jax-cpu-policy-2026-11.md, approved 2026-11-11). Pin jaxlib too: jax 0.12.0 still accepts jaxlib 0.11.2. Replaces the 0.7 floor and the 0.10.* / 0.11.0 exclusions; platform markers kept. No default XLA:CPU flag. Colab: the setup cell installs with --no-deps and so never upgraded Colab's preinstalled jax 0.11.1. _ensure_jax_floor now reads versions from package metadata (before anything imports jax), upgrades jax/jaxlib/numpy (and the matching jax-cuda plugin on GPU runtimes) and asks for one runtime restart. README 'JAX compatibility' rewritten (numpy >=2.2, Haswell+ x86-64). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 12, 2026
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.
Phase 2 of #215. Research #213; decision PyAutoDNA
decisions/jax-cpu-policy-2026-11.md, approved by the maintainer 2026-11-11.Summary
jax>=0.12.0,<0.13andjaxlib>=0.12.0,<0.13, with the existing platform markers. These replace>=0.7.0,<0.12.0,!=0.10.*,!=0.11.0. Both are pinned because jax 0.12.0 still accepts jaxlib 0.11.2.setup_colabinstalls with--no-deps, so it never upgraded Colab's preinstalled jax 0.11.1. The new_ensure_jax_floor()runs before anything imports jax. It reads versions from package metadata, upgrades jax/jaxlib/numpy (plus the matchingjax-cuda12/13-pluginon GPU runtimes), and raisesColabRestartRequiredasking for one runtime restart. On the second run the floor is met and setup continues.Phase-1 validation on jax 0.12.0.1 (details on #215)
jax.gradthrough zero-contour critical curves (a jax 0.12custom_roottranspose bug). Tracked in Minddraft/bug/autogalaxy/zero_contour_grad_fails_on_jax_0_12.md; the 2 scripts go NEEDS_FIX in phase 3.Merge order (release work)
Merge with PyAutoHands (release.yml pins) and PyAutoHeart#332 (validation pins). Then, right after, the workspace PRs: their
smoke_install.shasserts jax<0.12and must move to 0.12, plus the un-quarantine, re-pins and NEEDS_FIX entries. Then the library floorsautonerves>2026.11.9.1.API Changes
No Python API change. Install requirement change: jax/jaxlib ≥ 0.12.0,< 0.13 (numpy ≥ 2.2 effective). New public name:
autonerves.setup_colab.ColabRestartRequired.Test Plan
test_dependency_policy.py: the new truth table (0.11.2 ✗, 0.12.0 / 0.12.0.1 ✓, 0.13 ✗; markers preserved).test_setup_colab.py: the floor gate is a no-op when met; upgrades and asks for a restart for old jax/jaxlib/numpy; picks the right CUDA plugin; runs before the GPU probe imports jax.🤖 Generated with Claude Code