Skip to content

Pin jax to 0.11.0 in CI — jax 0.11.1 hangs the fori_loop cells on CPU - #617

Merged
mmcky merged 1 commit into
mainfrom
pin-jax-0110
Aug 19, 2026
Merged

Pin jax to 0.11.0 in CI — jax 0.11.1 hangs the fori_loop cells on CPU#617
mmcky merged 1 commit into
mainfrom
pin-jax-0110

Conversation

@mmcky

@mmcky mmcky commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

jax/jaxlib 0.11.1 (released 2026-08-17 20:31 UTC) regresses lax.fori_loop on the CPU execution path: numpy_vs_numba_vs_jax executes in seconds under 0.11.0 and exceeds even an 1800 s cell timeout under 0.11.1 (locally bisected — the same jitted fori_loop hangs with and without the deprecated device=cpu argument). This repo is one rebuild away: the unpinned -U install would resolve 0.11.1 at the Monday 2026-08-24 cron cache rebuild, and the lecture jits its jax cells with device=cpu, so the CPU-path regression bites despite the GPU runners (executed in 8.18 s under 0.11.0 on 2026-08-17). numpyro stays unpinned — it was already installed after jax and remains compatible with 0.11.0.

The full evidence chain, family exposure map, and the unpin condition are recorded in QuantEcon/workspace-lectures#49. One PR per repo with this same change; with jax pre-installed, the lecture's unpinned !pip install quantecon jax cell is satisfied and does not upgrade.

🤖 Generated with Claude Code

jax 0.11.1 (2026-08-17) regresses lax.fori_loop on the CPU path.
numpy_vs_numba_vs_jax's jax cells jit with device=cpu, so the
regression bites even on this repo's GPU runners; the unpinned
'pip install -U jax[cuda13]' would resolve the broken release at the
next Monday cache rebuild (2026-08-24). Executed in 8.18s under 0.11.0
on 2026-08-17; the fr/fa siblings measured >1800s under 0.11.1. Full
evidence and the family-wide exposure map are recorded in
QuantEcon/workspace-lectures#49.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 19, 2026 02:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Pins JAX to a known-good version in GitHub Actions workflows to avoid a newly introduced JAX CPU-path regression that causes lecture notebook execution (notably lax.fori_loop in numpy_vs_numba_vs_jax) to hang during CI/cache/publish builds.

Changes:

  • Replace unpinned pip install -U "jax[cuda13]" with a pinned install pip install "jax[cuda13]==0.11.0" in CI workflows.
  • Add inline workflow documentation explaining the regression context and rationale for pinning (including reference to QuantEcon/workspace-lectures#49).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
.github/workflows/publish.yml Pins JAX to 0.11.0 during publish builds to prevent hangs during notebook execution.
.github/workflows/ci.yml Pins JAX to 0.11.0 for PR CI runs to keep execution times bounded and reliable.
.github/workflows/cache.yml Pins JAX to 0.11.0 for scheduled cache rebuilds to avoid cache-time notebook execution hangs.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown

@mmcky
mmcky merged commit a165009 into main Aug 19, 2026
5 checks passed
@mmcky
mmcky deleted the pin-jax-0110 branch August 19, 2026 02:32
mmcky added a commit that referenced this pull request Aug 20, 2026
* Pin jax to 0.11.0 in the three execution-* workflows

The 2026-08-19 pin (#617) covered cache.yml, ci.yml and publish.yml, but
this repo has six workflows that install jax. execution-linux.yml,
execution-osx.yml and execution-win.yml install "jax[CPU]" unpinned and
build with `jb build lectures -W --keep-going`, which executes every
lecture -- so jax 0.11.1 fails them on CellTimeoutError in
numpy_vs_numba_vs_jax.

execution-linux.yml runs on a daily cron and has been red since
2026-08-18: run 32152771492 (08-18) and run 32268416676 (08-19,
head_sha 915bfd9, i.e. after #617 merged) both log "Successfully
installed jax-0.11.1 jaxlib-0.11.1" and then CellTimeoutError at the
600s myst-nb timeout. The 08-16 run resolved jax 0.11.0 and executed the
same lecture in 4.35 seconds.

Pinning jax alone is sufficient: jax 0.11.0's metadata carries
Requires-Dist: jaxlib<=0.11.0,>=0.11.0, and the pairing is additionally
enforced at import in both directions, so jaxlib cannot drift.

Closes #619

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* Keep the !pip install command on a single comment line

The wrap split `!pip install quantecon jax` across two comment lines, so
skimming the first showed `!pip install quantecon` with `jax` orphaned
behind the next `# ` -- dropping the one token the sentence exists to
explain. Matches the unbroken form already used in cache.yml, ci.yml and
publish.yml.

Comments only; the pin is unchanged.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

2 participants