Skip to content

qe-wharton1-gpu 2026-11-02: the problem-type suite and lecture-python.myst - #26

Merged
mmcky merged 3 commits into
mainfrom
wharton1-2026-11-02
Nov 2, 2026
Merged

mmcky merged 3 commits into
mainfrom
wharton1-2026-11-02

Conversation

@mmcky

@mmcky mmcky commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

qe-wharton1-gpu's run of 2026-11-02, from 10:04 to 22:31 UTC, at 5fbf033, under project-econ-on-ai-hardware's machine lock. Part of #4 and #5. It has two steps:

  1. the problem-type suite on every backend at every size, jax-gpu on the TITAN RTX at 0b:00.0 among them;
  2. lecture-python.myst's 33 JAX lectures, three runs each on the card and then on the Threadripper, lecture by lecture, with the T4 runner's packages. Its environment.txt lists the same packages at the same versions, once names are normalised.

No GitHub runner was on the machine. The benchmark was the only process on the card, and the desktop's card at 43:00.0 was at 0% in all 76 samples in state.txt.

lecture-python.myst. The README's table gains TITAN RTX and Threadripper columns.

  • The card and its CPU split the lectures much as the runner's do. The TITAN RTX is more than 2× ahead of the Threadripper on 9 lectures, 8 of them among the T4's 9. The Threadripper is more than 2× ahead on 6, the Xeon's 5 among them.
  • The TITAN RTX is slower than the T4 on 28 of the 32 lectures both ran, by a median of 22%: 1,822 s against 1,630 s. It is faster on imp_sample (60.7 s against 104.3 s), ifp_advanced, ak_aiyagari and two_computation. The Threadripper is slower than the Xeon by about as much, a median of 20%, on 29 of 33, despite its 32 cores to the Xeon's 4. So the host may be what makes the difference, but these runs don't separate it.
  • sargent_surico on the card fails as it did on the T4, because the lecture pins JAX to the CPU and JAX_PLATFORMS=cuda leaves no CPU backend. This time run_lecture.py kept the rows, with platform_error and 13 failed cells. The Threadripper runs it cleanly in 834 s, so the M6's ordqz failure (sargent_surico fails on macOS 27: SciPy's ordqz(output='complex') under Accelerate lecture-python.myst#1103) doesn't happen here.
  • ar1_bayes is from a re-run (126d7a9). Its first runs failed on both devices from cell 8 on, because PyTensor's C compile needs Python.h, and Ubuntu's /usr/bin/python3.12 has no headers installed (python3.12-dev). With @mmcky's go-ahead it ran again from 22:47 to 23:02 UTC, under the lock, three times on each device. This time it used a venv on uv's own CPython 3.12.3, which ships its headers, with identical packages and a fresh PyTensor cache. Every cell ran: 205.8 s on the TITAN RTX (the T4: 204.5 s) and 100.1 s on the Threadripper (the Xeon: 87.1 s). The failed runs moved to ar1_bayes-no-headers/, beside lecture-python/, which the dashboard doesn't read. Nothing was installed system-wide.

The problem-type suite: 250 cells, all ok. These are the largest sizes in float64, median warm time in seconds, with cold time in brackets:

Problem NumPy Numba Numba, parallel JAX on the CPU JAX on the TITAN RTX
P1 vfi, grid 1,500 331 (331) 138 (142) 32.9 (36.8) 31.8 (36.4) 3.25 (4.32)
P3 egm, grid 50,000 282 (286) 321 (328) 305 (311) 394 (397) 7.4 (8.59)
P4 wealth, 10,000,000 households 128 (128) 311 (311) 5.28 (7.01) 84.5 (84.1) 2.34 (4.43)
P7 kalman, batch 10,000 47.8 (46.9) 65.9 (78.4) 199 (216) 62.2 (62.8) 3.15 (4.38)
P7 kalman, state 200 1.11 (1.12) 1.21 (13.6) 1.26 (18.2) 3.29 (3.8) 0.494 (1.7)

On the Threadripper, Numba's parallel build is 3× slower than its serial build on the Kalman batch (199 s against 65.9 s). On the M6 it was 6× faster (#25). These runs don't say why. Run python problems/summarise.py problems/results/qe-wharton1-gpu to see every size and both precisions. The problem types' README has no results tables yet. Now that both machines are in, those can follow in their own PR.

The files:

  • problems/results/qe-wharton1-gpu/2026-11-02.jsonl;
  • lectures/results/qe-wharton1-gpu/2026-11-02/lecture-python/, with environment.txt and lectures-set.log;
  • one level up, the run's own files: wharton1_run.sh, wharton1_setup.sh, which built the environments, and state.txt, which samples the machine every ten minutes. The scripts keep the names they ran under, after Copilot's review (9b68528);
  • for the re-run, ar1_rerun.sh, ar1_rerun-state.txt and lecture-python/lectures-set-ar1.log, with the first runs in ar1_bayes-no-headers/.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WT8bMbJUx63ms5Evcjx1Un

….myst

qe-wharton1-gpu's run of 2026-11-02, from 10:04 to 22:31 UTC, at 5fbf033,
under econ-on-ai-hardware's machine lock: the problem-type suite on every
backend at every size, the TITAN RTX among them (250 cells, all ok), and
lecture-python.myst's 33 JAX lectures, three runs each on the card and on
the Threadripper, with the T4 runner's packages.

The lecture-python table gains TITAN RTX and Threadripper columns, with
notes: the TITAN RTX is slower than the T4 on 27 of 31 lectures, about as
much as the Threadripper is slower than the Xeon; sargent_surico's CUDA
rows are kept with platform_error; ar1_bayes fails on both devices
because the system Python has no headers for PyTensor's C compile.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMbJUx63ms5Evcjx1Un
Copilot AI balanced review requested due to automatic review settings November 2, 2026 22:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Note

Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.

🟡 Changes recommended

The change has unresolved review findings, notably a potentially fragile lock-release trap that can leave a stale lock blocking future runs and a setup script that assumes an existing venv without creating or validating it, alongside minor script-name mismatches in comments.

4 open issues
What changed in this PR

This pull request adds the qe-wharton1-gpu benchmark artifacts for the 2026-11-02 run, covering (1) the problem-type suite across backends/sizes (including JAX on a TITAN RTX) and (2) lecture-python.myst JAX lecture runs on GPU and CPU, along with scripts/logs to reproduce and audit the run.

Changes:

  • Add host-local reproduction scripts (setup.sh, run.sh) and machine/GPU sampling output for the run.
  • Check in new benchmark result artifacts (problem-suite jsonl, per-lecture per-run JSON outputs, environment/log capture).
  • Update documentation tables to include the new machine’s lecture-python.myst results.

This pull request requires changes.

File Notes
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​setup.sh Reproduction/setup script for the run
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​run.sh Run orchestration script (problem suite + lectures + sampling)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​mccall_risk/​cuda-as-written-3.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​mccall_risk/​cuda-as-written-2.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​mccall_risk/​cuda-as-written-1.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​mccall_risk/​cpu-as-written-3.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​mccall_risk/​cpu-as-written-2.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​mccall_risk/​cpu-as-written-1.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​mccall_persist_trans/​cuda-as-written-3.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​mccall_persist_trans/​cuda-as-written-2.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​mccall_persist_trans/​cuda-as-written-1.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​mccall_persist_trans/​cpu-as-written-3.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​mccall_persist_trans/​cpu-as-written-2.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​mccall_persist_trans/​cpu-as-written-1.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​mccall_model_with_separation/​cpu-as-written-1.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​kesten_processes/​cuda-as-written-3.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​kesten_processes/​cuda-as-written-2.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​kesten_processes/​cuda-as-written-1.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​kesten_processes/​cpu-as-written-3.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​kesten_processes/​cpu-as-written-2.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​kesten_processes/​cpu-as-written-1.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​jv/​cuda-as-written-3.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​jv/​cuda-as-written-2.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​jv/​cuda-as-written-1.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​jv/​cpu-as-written-3.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​jv/​cpu-as-written-2.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​jv/​cpu-as-written-1.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​inventory_dynamics/​cuda-as-written-3.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​inventory_dynamics/​cuda-as-written-2.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​inventory_dynamics/​cuda-as-written-1.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​inventory_dynamics/​cpu-as-written-3.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​inventory_dynamics/​cpu-as-written-2.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​inventory_dynamics/​cpu-as-written-1.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​endogenous_lake/​cuda-as-written-3.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​endogenous_lake/​cuda-as-written-2.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​endogenous_lake/​cuda-as-written-1.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​endogenous_lake/​cpu-as-written-3.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​endogenous_lake/​cpu-as-written-2.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​endogenous_lake/​cpu-as-written-1.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​career/​cuda-as-written-3.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​career/​cuda-as-written-2.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​career/​cuda-as-written-1.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​career/​cpu-as-written-3.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​career/​cpu-as-written-2.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​career/​cpu-as-written-1.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​ar1_turningpts/​cuda-as-written-3.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​ar1_turningpts/​cuda-as-written-2.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​ar1_turningpts/​cuda-as-written-1.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​ar1_turningpts/​cpu-as-written-3.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​ar1_turningpts/​cpu-as-written-2.json Result artifact (lecture run output)
lectures/​results/​qe-wharton1-gpu/​2026-11-02/​lecture-python/​ar1_turningpts/​cpu-as-written-1.json Result artifact (lecture run output)

Review effort: Balanced

mmcky and others added 2 commits November 3, 2026 09:50
Copilot's review: the run's scripts name each other wharton1_run.sh and
wharton1_setup.sh, so they are committed under those names, unchanged,
and the README says the set-up builds on the machine's existing
~/bench/benchmarks/.venv.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMbJUx63ms5Evcjx1Un
ar1_bayes failed on both devices because PyTensor's C compile needs
Python.h and Ubuntu's python3.12 has no headers installed. With
@mmcky's go-ahead it ran again from 22:47 to 23:02 UTC under the
machine lock, three times on the card and the CPU, in a venv on uv's own
CPython 3.12.3 with identical packages and a fresh PyTensor cache. Every
cell ran: 205.8 s on the TITAN RTX, 100.1 s on the Threadripper.

The re-run's results replace the failed ones in lecture-python/; those
move to ar1_bayes-no-headers/ beside it, which the dashboard doesn't
read. The README's table and counts include ar1_bayes now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMbJUx63ms5Evcjx1Un
@mmcky
mmcky merged commit b98983c into main Nov 2, 2026
@mmcky
mmcky deleted the wharton1-2026-11-02 branch November 2, 2026 23:57
mmcky added a commit that referenced this pull request Nov 3, 2026
…TAN RTX (#28)

* Problem types: results tables for the M6, the Threadripper and the TITAN RTX

A Results section in problems/README.md, from both machines' runs of
2026-11-02 at 5fbf033 (#25, #26): for each problem and sweep in float64,
each device's fastest stack at each size, warm and cold, with the fastest
device in bold; float32 against float64 at the largest sizes; and what
the tables show. Every number is in summarise.py's per-host tables.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMbJUx63ms5Evcjx1Un

* Problem types: name the stack in the float32 table

Copilot's review: each cell of the float32 table now names the stack that
set its time, so the table can be checked against summarise.py's on its
own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMbJUx63ms5Evcjx1Un

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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