Repository navigation
Whole lectures as used: lecture-jax on the TITAN RTX, the Threadripper and the M6 - #8
Conversation
- --dtype as-written runs a lecture untouched, whatever precision it sets, for the whole-lecture comparison (#4). float32 and float64 still require exactly one jax_enable_x64 line. - Each cell records its MyST tags. A cell tagged raises-exception, which a lecture uses to show an error on purpose (jax_intro_jax's a[0] = 1), counts as an expected error, not a failure, in all_ok. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he Threadripper and the M6 The first part of #4: 28 lectures with code, as written, three runs each, timed per cell. The M6 runs 21 faster than the card, 20 of them by more than 2x; the card wins the seven built on one large vectorised computation, and over the whole set, 873 s to 1,256 s. Adds summarise_whole.py, the drivers and the results, with a README. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
🔵 Needs a closer look
It is a large empirical data contribution whose correctness depends on the run_lecture.py/summarise_whole.py code changes referenced in the description but not presented in the reviewed diff, so a human should verify the full change set.
No open issues 🎉
What changed in this PR
This PR adds the first part of #4: every lecture in lecture-jax (at commit 4b939ec) run "as written" in a fresh process and timed cell-by-cell, three times each, on qe-wharton1-gpu's TITAN RTX and Threadripper 2990WX and on qe-mini1's Apple M6. It fits the repository's existing "lectures, run as used" methodology (alongside the aiyagari_jax/ifp_egm_jax studies), extending it from single lectures to the whole lecture set to answer which lectures run faster on a CPU than on the GPU they are built on.
Changes:
- Adds the driver scripts and lecture list used to produce the runs (
lectures_set.sh,mac_lectures.sh,lectures.txt), mirroring the existingmac_set.shpause/resume convention. - Commits the per-run result JSON (174 runs from
qe-wharton1-gpu, 87 fromqe-mini1) plus each host'senvironment.txtandqe-mini1'sstate.txt. - Updates
lectures/README.mdto point at the newwhole/set and its results path.
Note: the PR description also references changes to lectures/run_lecture.py and lectures/whole/summarise_whole.py, but those files' diffs were not part of the changed-file set presented for review; I read them only as context to confirm the driver scripts invoke them correctly.
| File | Description |
|---|---|
lectures/whole/lectures_set.sh |
Per-platform driver: runs each lecture in lectures.txt via run_lecture.py --dtype as-written, one-hour perl alarm cap, writes JSON/err per run. |
lectures/whole/mac_lectures.sh |
qe-mini1 wrapper that SIGSTOPs agents/wallpaper, records state.txt, then calls lectures_set.sh; resumes on EXIT. |
lectures/whole/lectures.txt |
The 29 lecture names driving the runs; matches the committed result directories exactly. |
lectures/README.md |
Adds the whole/ row to the results table and documents the whole-lecture results path (also fixes a leading-whitespace glitch). |
lectures/results/qe-wharton1-gpu/.../whole/**/*.json |
Card + Threadripper per-cell timing results (intentionally committed per .gitignore). |
lectures/results/qe-mini1/.../whole/**/*.json |
Apple M6 per-cell timing results. |
lectures/results/*/.../whole/environment.txt |
Pinned package lists for each host's environment. |
lectures/results/qe-mini1/.../whole/state.txt |
Machine state before/paused/after the M6 run. |
Review effort: Balanced
The first part of #4: every lecture in lecture-jax at
4b939ec, run as written in a fresh process, timed cell by cell, three times each, onqe-wharton1-gpu's TITAN RTX and its Threadripper 2990WX, and onqe-mini1's M6 with its agents paused. The full table and the method are inlectures/whole/README.md.What it shows
overborrowing,wealth_dynamics_jax,schelling_shocks,opt_invest,hopenhayn,kesten_processes_jaxandopt_savings_2.overborrowingandwealth_dynamics_jaxtake 834 s of the M6's total.schelling_jaxcalls a small jitted function per agent from a Python loop: 34.8 s in one cell on the card, 0.7 s on the M6.kerasandjax_nntrain small networks for thousands of tiny steps. Small lectures pay 3 s to 12 s on the card for CUDA's start-up and slower first calls, against 0.4 s to 2 s on the M6.jax_intro_jax's, which the lecture tagsraises-exception.What changed
lectures/run_lecture.py--dtype as-writtenruns a lecture at the precision it sets; each cell records its tags, and araises-exceptioncell counts as an expected errorlectures/whole/summarise_whole.pyrun_lecture.pybefore it recorded tagslectures/whole/lectures_set.sh,mac_lectures.sh,lectures.txtlectures/results/<host>/2026-10-25/whole/qe-wharton1-gpuand 87 fromqe-mini1, with each machine'senvironment.txtand log, andqe-mini1'sstate.txtThe results were scanned before committing: no home paths, addresses or credentials, and every
.errfile was empty, so none is included.Still to come under #4
sargent_suricoamong them.qe-wharton2's M5 Pro, once it is onboarded.🤖 Generated with Claude Code