Repository navigation
T4 results, and a CPU cliff in the stored Bellman step - #7
Conversation
- results/runson-g4dn.2xlarge/2026-10-25.jsonl: the full matrix on the RunsOn T4 and its Xeon host, in both CUDA builds (184 rows; the cuda12 rows are labelled). One cell ran out of memory: the planner's 80% budget sits above JAX's default 75% allocator cap. - precision/runs/2026-10-25/checks/cpu_cliff.txt and a caveat in the README: on four CPUs, the stored step's throughput drops from 30-100 GB/s to 3-12 GB/s once its float64 array passes ~2 GiB (between 16k and 18k), and later in float32. The CPU cells at 20k in float64 measure this cliff, not precision. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
Documentation-only changes whose numeric claims (CPU medians, 184 rows, 11.92 GiB OOM in both builds) were verified exactly against the committed results and whose file references all exist.
No open issues 🎉
What changed in this PR
This documentation-only PR extends the precision/ benchmark run notes dated 2026-10-25. It records the first full precision-matrix results on the RunsOn Tesla T4 (g4dn.2xlarge, the lectures' CI instance) and its Xeon host across both CUDA 12 and CUDA 13 builds, and documents two diagnosed anomalies: a GPU out-of-memory cell caused by a mismatch between the planner's --memory-fraction budget (80%) and JAX's allocator cap (~75%), and a CPU "cliff" where the stored Bellman step collapses in throughput once its float64 array crosses ~2 GiB (2^31 bytes). It fits into the repo's effort to turn "float64 belongs on the CPU" into a measured rule, adding evidence and caveats without touching benchmark code.
Changes:
- Added a Phase 0 / T4 run row and a new "out-of-memory cell" section to
runs/2026-10-25/README.md, and split the Checks section to reference the new cliff evidence. - Added
runs/2026-10-25/checks/cpu_cliff.txtdocumenting the float64 throughput collapse across four CPUs with per-size timings and array-size annotations. - Added a caveat bullet to
precision/README.mddescribing the CPU cliff and linking to the evidence.
| File | Description |
|---|---|
| precision/runs/2026-10-25/README.md | Adds the T4 run table row, a T4 OOM-cell section, and splits the Checks section to point at the new cliff evidence. |
| precision/runs/2026-10-25/checks/cpu_cliff.txt | New evidence file with per-CPU and M1 Pro timings showing the float64 stored-Bellman cliff near 2^31 bytes. |
| precision/README.md | New caveat bullet summarizing the CPU float64 cliff and linking to cpu_cliff.txt. |
Review effort: Balanced
…ore's bandwidth on two Macs (#52) * 2026-11-09: the M6 on macOS 27.2, the Threadripper's cliff, and one core's bandwidth on two Macs Four runs, for QuantEcon/project-benchmarks-jax#4, #7, #47 and #48's follow-up: - precision/runs/2026-11-09/qe-mini1/mac-float64/: #48's probe on the M6 after its upgrade to macOS 27.2, three runs. Accelerate is level with 2026-11-06's; JAX's large float64 products are about 6% slower. - precision/runs/2026-11-09/qe-mini1/checks/: #4's checks again on 27.2, unchanged. - precision/runs/2026-11-09/qe-wharton1-gpu/cliff/: the probe's cliff step on the Threadripper. The drop past 2 GiB is YNNPACK's fused reduce on x86 too. - problems/checks/bw_probe.py and its runs on the M6 and the M5 Pro, under problems/results/<host>/2026-11-09/: P1's serial Numba step runs at a quarter of one core's read rate on both. Two earlier M6 attempts that day, which met macOS background load, are named in the notes and left out. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WT8bMYd92TBVnU47VfKZse * Notes: what the probe's byte counts include, and link the M5 Pro's cliff run The M6's bandwidth notes now say the counts are of the 1.8 GB arrays only, the 1.2 MB ones staying in cache. Two places that named the M5 Pro's cliff run linked only the M6's; each now links both. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WT8bMYd92TBVnU47VfKZse --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
The full precision matrix on the RunsOn T4 (
g4dn.2xlarge, the lectures' CI instance) and its Xeon host, in both CUDA builds. Also a CPU anomaly that the T4 run made clear.The T4
184 rows from two runs at
963b2c2, one per CUDA build: 40165642256 (CUDA 13) and 40165644168 (CUDA 12, labelledcuda12). Each took about 15 minutes.One cell ran out of memory:
bellman_storedat 40k in float64 on the card. The planner budgets 80% of the T4's 15 GiB, but JAX's allocator appears to cap itself at 75%. The run README explains it and proposes a fix, still to be tested on a card.A cliff on the CPU
On every CPU,
bellman_storedat 20k ran 7× to 23× slower in float64 than in float32. It's a cliff, not precision. The stored step's throughput falls from 30–100 GB/s to 3–12 GB/s once its float64 array passes about 2 GiB: between 16k (2.05 GB) and 18k (2.59 GB), on an M1 Pro. In float32 the cliff comes later.precision/runs/2026-10-25/checks/cpu_cliff.txt, and a new caveat in the precision README.It matters for large float64 models on a CPU. It is tracked for upstream in QuantEcon/project-benchmarks-jax.
🤖 Generated with Claude Code