Skip to content

Commit 7a1de58

Browse files
mmckyclaude
andauthored
Pin jax to 0.11.0 in CI -- jax 0.11.1 hangs the fori_loop cells on CPU (#157)
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>
1 parent bbec080 commit 7a1de58

3 files changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/cache.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ jobs:
1717
python-version: "3.13"
1818
environment-file: environment.yml
1919
activate-environment: quantecon
20+
- name: Install JAX (CPU, pinned)
21+
shell: bash -l {0}
22+
run: |
23+
# Pinned: jax 0.11.1 (2026-08-17) hangs numpy_vs_numba_vs_jax's
24+
# lax.fori_loop cells on the CPU path -- context is recorded in
25+
# QuantEcon/workspace-lectures#49. With jax already present, the
26+
# lecture's unpinned `!pip install quantecon jax` cell is satisfied
27+
# and does not upgrade.
28+
pip install "jax==0.11.0"
2029
- name: Build HTML
2130
shell: bash -l {0}
2231
run: |

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ jobs:
1616
python-version: "3.13"
1717
environment-file: environment.yml
1818
activate-environment: quantecon
19+
- name: Install JAX (CPU, pinned)
20+
shell: bash -l {0}
21+
run: |
22+
# Pinned: jax 0.11.1 (2026-08-17) hangs numpy_vs_numba_vs_jax's
23+
# lax.fori_loop cells on the CPU path -- context is recorded in
24+
# QuantEcon/workspace-lectures#49. With jax already present, the
25+
# lecture's unpinned `!pip install quantecon jax` cell is satisfied
26+
# and does not upgrade.
27+
pip install "jax==0.11.0"
1928
- name: Install latex dependencies
2029
run: |
2130
sudo apt-get -qq update

.github/workflows/publish.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ jobs:
2121
python-version: "3.13"
2222
environment-file: environment.yml
2323
activate-environment: quantecon
24+
- name: Install JAX (CPU, pinned)
25+
shell: bash -l {0}
26+
run: |
27+
# Pinned: jax 0.11.1 (2026-08-17) hangs numpy_vs_numba_vs_jax's
28+
# lax.fori_loop cells on the CPU path -- context is recorded in
29+
# QuantEcon/workspace-lectures#49. With jax already present, the
30+
# lecture's unpinned `!pip install quantecon jax` cell is satisfied
31+
# and does not upgrade.
32+
pip install "jax==0.11.0"
2433
- name: Install latex dependencies
2534
run: |
2635
sudo apt-get -qq update

0 commit comments

Comments
 (0)