Skip to content

Commit 78d2d0c

Browse files
mmckyclaude
andcommitted
Pin jax to 0.11.0 in CI -- jax 0.11.1 hangs the fori_loop cells on CPU
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 73a5509 commit 78d2d0c

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
@@ -22,6 +22,15 @@ jobs:
2222
python-version: "3.13"
2323
environment-file: environment.yml
2424
activate-environment: quantecon
25+
- name: Install JAX (CPU, pinned)
26+
shell: bash -l {0}
27+
run: |
28+
# Pinned: jax 0.11.1 (2026-08-17) hangs numpy_vs_numba_vs_jax's
29+
# lax.fori_loop cells on the CPU path -- context is recorded in
30+
# QuantEcon/workspace-lectures#49. With jax already present, the
31+
# lecture's unpinned `!pip install quantecon jax` cell is satisfied
32+
# and does not upgrade.
33+
pip install "jax==0.11.0"
2534
- name: Display Conda Environment Versions
2635
shell: bash -l {0}
2736
run: conda list

.github/workflows/publish.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ jobs:
3535
python-version: "3.13"
3636
environment-file: environment.yml
3737
activate-environment: quantecon
38+
- name: Install JAX (CPU, pinned)
39+
shell: bash -l {0}
40+
run: |
41+
# Pinned: jax 0.11.1 (2026-08-17) hangs numpy_vs_numba_vs_jax's
42+
# lax.fori_loop cells on the CPU path -- context is recorded in
43+
# QuantEcon/workspace-lectures#49. With jax already present, the
44+
# lecture's unpinned `!pip install quantecon jax` cell is satisfied
45+
# and does not upgrade.
46+
pip install "jax==0.11.0"
3847
- name: Display Conda Environment Versions
3948
shell: bash -l {0}
4049
run: conda list

0 commit comments

Comments
 (0)