Skip to content

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

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#157
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 had no workflow-level jax install at all, so the lecture pip cell resolved the broken release on every build — this is what failed the publish-2026aug19 run twice, at both 600 s and 1800 s ceilings. After merge, the on-push cache rebuild should finally carry the executed lecture, and the failed publish run can be re-run.

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 executes in seconds under 0.11.0 and exceeds even
the new 1800s cell timeout under 0.11.1. This repo had no workflow-level
jax install, so the lecture's unpinned '!pip install quantecon jax' cell
resolved the broken release on every build. 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
@netlify

netlify Bot commented Aug 19, 2026

Copy link
Copy Markdown

Deploy Preview for majestic-griffin-10b166 ready!

Name Link
🔨 Latest commit 8faff68
🔍 Latest deploy log https://app.netlify.com/projects/majestic-griffin-10b166/deploys/6a85122f2663830008f8ecb3
😎 Deploy Preview https://deploy-preview-157--majestic-griffin-10b166.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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 in the GitHub Actions build workflows to avoid a regression in lax.fori_loop CPU execution that causes the numpy_vs_numba_vs_jax lecture to hang during automated builds/publishing.

Changes:

  • Add an explicit CI-time pip install "jax==0.11.0" step in the PR (ci), cache build, and publish workflows.
  • Document (in workflow comments) why the pin exists and where the supporting evidence is recorded.

Reviewed changes

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

File Description
.github/workflows/ci.yml Installs pinned JAX before building the lecture site in PR CI to prevent fori_loop CPU hangs.
.github/workflows/cache.yml Installs pinned JAX before the cache build to ensure cached executed outputs don’t pick up the regressed version.
.github/workflows/publish.yml Installs pinned JAX before publish builds so tag-based releases don’t hang during execution.

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

@mmcky
mmcky merged commit 7a1de58 into main Aug 19, 2026
6 of 7 checks passed
@mmcky
mmcky deleted the pin-jax-0110 branch August 19, 2026 02:32
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