Skip to content

Commit 5ff419f

Browse files
mmckyclaude
andcommitted
Pin jax at 0.12.1 in the CPU execution workflows too
Copilot's review: the Linux, macOS and Windows execution checks still installed jax[CPU]==0.11.0, so the lecture's 0.12.1 line would upgrade jax partway through their builds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL
1 parent 53c29e5 commit 5ff419f

3 files changed

Lines changed: 24 additions & 27 deletions

File tree

‎.github/workflows/execution-linux.yml‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,14 @@ jobs:
3131
- name: Install Jax [CPU]
3232
shell: bash -l {0}
3333
run: |
34-
# Pinned: jax 0.11.1 (2026-08-17) regresses XLA:CPU execution --
35-
# numpy_vs_numba_vs_jax's lax.fori_loop and lax.scan cells go
36-
# quadratic in n, so this -W build dies on CellTimeoutError. Matches
37-
# the pin already in cache/ci/publish.yml; evidence and the exposure
38-
# map are recorded in QuantEcon/workspace-lectures#49. With jax
39-
# already present, the lecture's unpinned
40-
# `!pip install quantecon jax` cell is satisfied and does not
41-
# upgrade.
42-
pip install "jax[CPU]==0.11.0"
34+
# Pinned to the lecture baseline, QuantEcon/lectures'
35+
# _base/environment-update.yml, as in cache/ci/publish.yml. jax 0.11.1
36+
# regressed XLA:CPU execution -- numpy_vs_numba_vs_jax's lax.fori_loop
37+
# and lax.scan cells went quadratic in n, so this -W build died on
38+
# CellTimeoutError (QuantEcon/workspace-lectures#49); 0.12.1 runs them.
39+
# The lecture's own install cell names the same version, so it is
40+
# satisfied and reinstalls nothing.
41+
pip install "jax[CPU]==0.12.1"
4342
- name: Build Lectures (+ Execution Checks)
4443
shell: bash -l {0}
4544
run: jb build lectures --path-output=./ -W --keep-going

‎.github/workflows/execution-osx.yml‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,14 @@ jobs:
3131
- name: Install Jax [CPU]
3232
shell: bash -l {0}
3333
run: |
34-
# Pinned: jax 0.11.1 (2026-08-17) regresses XLA:CPU execution --
35-
# numpy_vs_numba_vs_jax's lax.fori_loop and lax.scan cells go
36-
# quadratic in n, so this -W build dies on CellTimeoutError. Matches
37-
# the pin already in cache/ci/publish.yml; evidence and the exposure
38-
# map are recorded in QuantEcon/workspace-lectures#49. With jax
39-
# already present, the lecture's unpinned
40-
# `!pip install quantecon jax` cell is satisfied and does not
41-
# upgrade.
42-
pip install "jax[CPU]==0.11.0"
34+
# Pinned to the lecture baseline, QuantEcon/lectures'
35+
# _base/environment-update.yml, as in cache/ci/publish.yml. jax 0.11.1
36+
# regressed XLA:CPU execution -- numpy_vs_numba_vs_jax's lax.fori_loop
37+
# and lax.scan cells went quadratic in n, so this -W build died on
38+
# CellTimeoutError (QuantEcon/workspace-lectures#49); 0.12.1 runs them.
39+
# The lecture's own install cell names the same version, so it is
40+
# satisfied and reinstalls nothing.
41+
pip install "jax[CPU]==0.12.1"
4342
- name: Build Lectures (+ Execution Checks)
4443
shell: bash -l {0}
4544
run: jb build lectures --path-output=./ -W --keep-going

‎.github/workflows/execution-win.yml‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,14 @@ jobs:
3535
- name: Install Jax [CPU]
3636
shell: bash -l {0}
3737
run: |
38-
# Pinned: jax 0.11.1 (2026-08-17) regresses XLA:CPU execution --
39-
# numpy_vs_numba_vs_jax's lax.fori_loop and lax.scan cells go
40-
# quadratic in n, so this -W build dies on CellTimeoutError. Matches
41-
# the pin already in cache/ci/publish.yml; evidence and the exposure
42-
# map are recorded in QuantEcon/workspace-lectures#49. With jax
43-
# already present, the lecture's unpinned
44-
# `!pip install quantecon jax` cell is satisfied and does not
45-
# upgrade.
46-
pip install "jax[CPU]==0.11.0"
38+
# Pinned to the lecture baseline, QuantEcon/lectures'
39+
# _base/environment-update.yml, as in cache/ci/publish.yml. jax 0.11.1
40+
# regressed XLA:CPU execution -- numpy_vs_numba_vs_jax's lax.fori_loop
41+
# and lax.scan cells went quadratic in n, so this -W build died on
42+
# CellTimeoutError (QuantEcon/workspace-lectures#49); 0.12.1 runs them.
43+
# The lecture's own install cell names the same version, so it is
44+
# satisfied and reinstalls nothing.
45+
pip install "jax[CPU]==0.12.1"
4746
- name: Build Lectures (+ Execution Checks)
4847
shell: powershell
4948
run: jb build lectures --path-output=./ -W --keep-going

0 commit comments

Comments
 (0)