Skip to content

2026-11-21: Phase 2's four problem types on the M6, the M5 Pro and the TITAN RTX - #83

Merged
mmcky merged 2 commits into
mainfrom
results-2026-11-21-phase2
Nov 21, 2026
Merged

mmcky merged 2 commits into
mainfrom
results-2026-11-21-phase2

Conversation

@mmcky

@mmcky mmcky commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

For #5's Phase 2: the first measured runs of P5, P2, P6 and P8 with its three companions, every size in both precisions, on three machines in the same hours. Each host's notes, logs, state records, scripts and summary.md sit beside its rows, as in #61.

Host Stacks Cells When (UTC, 2026-11-21) Notes
qe-mini1, Apple M6 the four CPU stacks 424 02:45:14 to 04:01:30 README
qe-wharton2, Apple M5 Pro the four CPU stacks 424 03:22:22 to 04:40:20 README
qe-wharton1-gpu, Threadripper 2990WX and TITAN RTX at 0b:00.0 all five 525, then 24 for the OpenBLAS check, 1 rerun and 2 for the autotuner check 05:15:11 to 09:45:48 and 10:11:30 to 10:42:14 README

Checks. On both Macs every cell ran, and every answer agreed with NumPy's in float64. The iteration counts that differ are all in float32 and are listed in each summary.md. On qe-wharton1-gpu, one cell passed the 900 s limit: P6's numpy at a grid of 50,000 in float32, whose float64 twin took 551 s. Two of P5's dense answers in float32 there were outside the 1e-3 tolerance: jax-cpu's at 1,000 assets, 2.0e-3 off, and the card's at 5,000, 1.4e-2 off. Most float32 dense answers on that host, NumPy's own included, are further off than on the Macs. These are reported as measured, with nothing changed in spec.py.

P8's two checks, which problems/README.md asked of the first Linux and GPU run, are answered there now:

  • With OpenBLAS held to one thread, mle_blocked's numba-parallel had a lower median warm time at every size, by up to 11× in float64 and 19× in float32, so its BLAS calls inside prange oversubscribe the Threadripper's cores. Those rows are labelled openblas-1-thread.
  • On the TITAN RTX in float64, XLA leaves autodiff's [k, n] product inside the Newton loop at 10 and 300 parameters, so it is paid every iteration (hoist.txt). That the CPU backend computes it once comes from P8: maximum likelihood with autodiff, by Newton–Raphson on the mle lectures' Poisson regression #81's development on the M6, as P8's note in problems/README.md records, not from this check. The rows agree: on the card mle takes 1.73× to 1.95× as long as mle_hand from 100 parameters up in float64, and on the CPUs 0.89× to 1.17×.

problems/README.md gets a paragraph for the run in its Results section, and the two P8 notes give the checks' answers in place of "to be checked".

A second session on qe-wharton1-gpu, 10:11:30 to 10:42:14 UTC, in the second commit, 95e42a5, which is this PR's final head:

  • The timed-out cell again, with 1,800 s (timeout-1800, Matt's Q27). It passed that limit too, so its cold and warm solves took about 900 s each or more, over 3.3× its float64 time. It wasn't run again (Matt's Q30).
  • P8's mle and mle_hand at 10,000,000 observations in float64 on the card, with XLA's autotuner off (autotune0, Matt's Q28). The card's float64 compiles grow with the observations, to 11.8 s and 22.0 s at 10,000,000. With the autotuner off they take 0.37 s and 0.31 s, but the warm solve is 3 to 3.7 times as slow. So one solve in a fresh process is faster without the autotuner, and it pays for itself from the 5th and 13th solve in one process.

The same commit takes the organiser's review of 1385643, and regenerates qe-wharton1-gpu's summary.md with both labels' tables.

Publication. qe-wharton2 is a guest machine. As in its earlier runs, its state.txt shows software the owner's institution manages as <managed agent>. This run's files go further than those runs': they show the account's home folder as ~, its name as <user> and the temporary folder as <temporary folder>.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WT8bMZbJB4j8pmPEYyJ8SG

mmcky and others added 2 commits November 21, 2026 20:53
…e TITAN RTX

For #5's Phase 2: P5, P2, P6 and P8 with its three companions, every
size in both precisions, on qe-mini1's M6 and qe-wharton2's M5 Pro (the
four CPU stacks, 424 cells each), and on qe-wharton1-gpu (all five
stacks, 525 cells, with the TITAN RTX at 0b:00.0). Every cell ran on
the Macs and every answer agreed. On qe-wharton1-gpu one cell passed
the 900 s limit, and two of P5's dense float32 answers were outside
the tolerance. The same run made P8's two checks: OpenBLAS held to one
thread (labelled openblas-1-thread) and XLA's hoisting on the card.
Each host's notes, logs, state records, scripts and summary.md are
beside its rows, and problems/README.md records the two checks'
answers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMZbJB4j8pmPEYyJ8SG
The one cell that passed 900 s, P6's numpy at a grid of 50,000 in
float32 on qe-wharton1-gpu, again with 1,800 s (timeout-1800, Q27): it
passed that too, and wasn't run again (Q30). P8's mle and mle_hand at
10,000,000 observations in float64 on the TITAN with XLA's autotuner
off (autotune0, Q28): it accounts for the card's long float64 compiles,
and its kernels are 3 to 3.7 times as fast warm. qe-wharton1-gpu's
summary.md is regenerated with both labels' tables.

From the organiser's review of 1385643: the M5 Pro's redaction is
stricter than its earlier runs', not the same; the hoisting check is
the card's half only, with the CPU half from #81's development; the
OpenBLAS check's claims narrowed to the medians and sizes that hold;
cputimes.txt's total is a lower bound; the M6's overlaps paired with
the right cells; and each version cited where it's recorded.

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

mmcky commented Nov 21, 2026

Copy link
Copy Markdown
Contributor Author

Pushed 95e42a5, this PR's final head. It adds the second session on qe-wharton1-gpu (10:11:30 to 10:42:14 UTC): the timeout-1800 rerun, which passed 1,800 s as well and stays a timeout (Matt's Q30), and the autotune0 cells, which show XLA's autotuner accounts for the card's long float64 compiles. It also takes the organiser's review of 1385643, and regenerates qe-wharton1-gpu's summary.md with both labels' tables. The description is updated to match, and its links now point at 95e42a5.

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.

1 participant