Skip to content

qe-wharton2's M5 Pro: the precision matrix and the whole-lecture set - #13

Merged
mmcky merged 2 commits into
mainfrom
qe-wharton2-results
Oct 25, 2026
Merged

mmcky merged 2 commits into
mainfrom
qe-wharton2-results

Conversation

@mmcky

@mmcky mmcky commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

qe-wharton2's M5 Pro joins #1 and #4: its CPU (18 cores, 6 super and 12 performance, 64 GB), from main at 736a9ee, with the M6's exact packages.

Run Rows Where
The precision matrix, --devices cpu 46, none skipped results/qe-wharton2/2026-10-25.jsonl; driver and log in precision/runs/2026-10-25/
The lecture-jax set, three runs 87, all clean lectures/results/qe-wharton2/2026-10-25/whole/
overborrowing under /usr/bin/time -l, once more after the timed runs for its peak memory lectures/results/qe-wharton2/2026-10-25/checks/

What it shows, added to lectures/whole/README.md:

  • The M5 Pro runs the whole set fastest: 756 s, against the TITAN RTX's 873 s, the T4's 922 s and the M6's 1,256 s.
  • The cards still win the same seven lectures, but by 1.5× to 6.4× over the M5 Pro, where it was 2× to 24× over the M6.
  • Against the M6: 5% slower at the median, up to 1.3× slower on small lectures, and up to 1.5× faster on large ones (opt_invest).
  • The M6's overborrowing time is mostly swap. The lecture peaks at a 35.0 GB footprint, more than the M6's 32 GB. Its cell 31 takes 426 s to 459 s on the M6 and 62 s on the M5 Pro. So the card's 24.3× lead there is over the M6's memory; over the M5 Pro it is 3.6×.
  • The precision matrix: at the larger sizes, the M5 Pro is 1.1× to 2× faster than the M6 on compute- and memory-bound kernels; at the smallest it is level or slightly behind, and it is level on the latency-bound Kalman filter. On the stored step's two largest cells it is 3.3× and 10× faster, which fits the M6 running short of memory there too. That last point is noted in precision/runs/2026-10-25/README.md but not diagnosed.

The conditions: qe-wharton2 is a guest machine, so nothing on it was paused.

  • Its console had been idle for 26 hours and stayed idle. It ran on AC power with the lid open, and macOS reported no thermal warning.
  • Its managed endpoint agents took at most about 14% of one core.
  • Before the runs, the new environment's bytecode was compiled and each package imported once. The first imports had taken 48 s while its security software checked the new files.
  • The runs were tight: at most 1.14× between a lecture's fastest and slowest run.

Privacy: the results were scanned before committing. state.txt is published redacted: the console user's name and the managed software's names are replaced by placeholders, and their CPU figures are kept. One home path in the log is shortened to ~. The results files contain no home paths, addresses or credentials. Every .err file was empty, so none is included.

Also: summarise_whole.py now shows failed for a device whose runs failed. It leaves such a device out of "fastest" and out of its total, and says how many lectures the total covers. It had named the T4 host the fastest on overborrowing, from its out-of-memory runs.

The dashboard's layout for more than six machines (QuantEcon/project-benchmarks-jax#10) is merged, so the M5 Pro gets its own colour once this merges.

🤖 Generated with Claude Code

The M5 Pro (18 cores, 64 GB) on its CPU, from main at 736a9ee with the
M6's exact packages: the precision matrix (46 rows) and the lecture-jax
set three times. It runs the set in 756 s, the fastest of the six
devices. A memory check shows overborrowing peaks at 35.0 GB, more than
the M6's 32 GB, so the M6's time for it is mostly swap.

state.txt is redacted: qe-wharton2 is a guest machine, so its console
user's name and its managed software's names are replaced.

summarise_whole.py now gives a device whose runs failed no time, rather
than naming the T4 host's out-of-memory overborrowing the fastest.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 25, 2026 22:51

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.

🟡 Changes recommended

The summarise_whole.py change introduces two reachable crash paths (min(med, ...) and max(counts.values())) when a lecture fails on all of its devices or no successful medians exist, which should be guarded before approval.

1 open issue
What changed in this PR

This PR adds a third machine — qe-wharton2's Apple M5 Pro (18-core CPU, 64 GB) — to the two existing hardware-benchmark workstreams (#1 the precision matrix, #4 the whole JAX-lecture set). It is almost entirely committed result artifacts (JSONL/JSON results, a run log, a run script, and redacted state samples), plus a documentation update and one functional change to the whole-set summariser.

Changes:

  • Record the M5 Pro's precision matrix (46 rows, --devices cpu) and three whole-lecture runs (87 results, all clean), plus an /usr/bin/time -l peak-memory check for overborrowing, and document them in precision/runs/2026-10-25/README.md.
  • Update summarise_whole.py so a device with any unexpected run failure is marked failed, excluded from "fastest" and from its running total, with the total annotated by how many lectures it covers.
  • Publish a redacted state.txt (console user and managed-agent names replaced by placeholders) and the pinned environment freeze.
File Description
lectures/​whole/​summarise_whole.py Core logic change: track failed devices and per-device counts, print failed, annotate partial totals; introduces two empty-collection crash paths.
precision/​runs/​2026-10-25/​README.md Adds the M5 Pro Phase 0 table row, result links, and guest-machine conditions; links and counts verified consistent.
precision/​runs/​2026-10-25/​wharton2_run.sh, wharton2.log Driver script and log recording the actual run.
lectures/​results/​qe-wharton2/​.../​whole/​*/​cpu-as-written-*.json Per-lecture, per-run timing artifacts (e.g. arellano_jax, ifp_egm_jax, schelling_*, about_jax no-code).
lectures/​results/​qe-wharton2/​.../​whole/​state.txt, environment.txt Redacted machine-state samples and pinned package freeze.
lectures/​results/​qe-wharton2/​.../​checks/​overborrowing-memory.txt /usr/bin/time -l peak-memory record for overborrowing.

Review effort: Balanced

Comment thread lectures/whole/summarise_whole.py Resolved
A lecture whose runs failed on every device left no medians, and min()
raised; an input with no clean runs, or none at all, made max() raise
on the totals. Such a lecture's fastest is now "none", and a total that
misses lectures is marked against the lectures in the table rather than
the best device's count. The four-host summary is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mmcky
mmcky merged commit 71f3d96 into main Oct 25, 2026
@mmcky
mmcky deleted the qe-wharton2-results branch October 25, 2026 23:02
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