Repository navigation
Phase 2: the A100, the RTX PRO 6000 Blackwell, the H100 and the A10 - #14
Conversation
…f pass and the lecture scales Adds the instances project-compute's card choice needs, a smoke run that describes the GPU and its driver, NVIDIA's fabric manager for the p4d's NVSwitch, a matmul pass with JAX_DEFAULT_MATMUL_PRECISION=highest, the aiyagari_jax and ifp_egm_jax scale scripts on the GPU, and a 60-minute cap on the job. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…y driver release A T4 run of the workflow showed JAX's allocator stops at 10.92 GiB of the card's 14.6 with preallocation off, and at 13.84 with XLA_PYTHON_CLIENT_MEM_FRACTION=0.95. That is why a T4 cell that run_matrix.py judged would fit ran out of memory. GPU cells now set the fraction, so --memory-fraction is the only limit. The image's driver, 580.105.08 with the open kernel module, comes from NVIDIA's CUDA repository, which has a fabric manager for that release. The job now stops if JAX sees no GPU, and summarise_scale.py skips a platform it has no runs for. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…or lack of EC2 capacity RunsOn gives up on a queued job after six launch attempts over about 45 minutes. This re-dispatches every two hours, for up to 48 hours, and stops when a run launches. It never cancels or re-dispatches a run that has launched. Co-Authored-By: Claude Opus 5.5 <[email protected]>
When RunsOn can't place a job it may fail it from a small fallback instance at Set up runner, rather than leave it queued. The loop took that for a launch and stopped. A run now counts as launched only once its checkout has started; one that failed before that is re-dispatched. Co-Authored-By: Claude Opus 5.5 <[email protected]>
For the cards that RunsOn can't place: the matrix, a TF32-off matmul pass, five lectures as written and the two scale scripts, with the machine's topology and driver recorded, packed for copying off. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… installed uv Co-Authored-By: Claude Opus 5.5 <[email protected]>
…xtras lambda.sh lists Lambda instance types with capacity, waits for one, and launches, lists and terminates instances through Lambda's API, reading the key from LAMBDA_API_KEY or ~/.config/lambda/api_key. The precision job's extras now also run five lectures as written on the card, as run_by_hand.sh does off RunsOn. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The workflow's conflict, Phase 2's precision inputs and steps beside main's whole-lectures job, is resolved as on the rebased branch phase2 (c6fae40), whose tree this matches. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The precision matrix, matmul with TF32 off, five lectures as written and the two scale scripts on four rented cards: three on Lambda and the Blackwell card on EC2 in us-east-2, since RunsOn's zones had no g7e capacity. precision/runs/2026-10-26/README.md records where and how each ran, and two things that happened only on the newer cards: the stored step runs out of memory while compiling, needing about twice its array, and float64 compiles of the recomputing step take minutes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
🔵 Needs a closer look
It is a large, mostly-data change whose new cloud-cost orchestration scripts (lambda.sh, phase2_retry.sh) rely on runtime behaviour that cannot be verified here, warranting final human review.
No open issues 🎉
What changed in this PR
This PR is Phase 2 of the precision/platform benchmarking effort (#1): it records float32-vs-float64 measurements for four rented GPUs (A100 SXM4 40 GB, RTX PRO 6000 Blackwell, H100 80 GB, A10) that stand in for the cards project-compute is choosing between, plus a float64 ceiling and the A10G stand-in. Because RunsOn couldn't launch the cloud instances for lack of EC2 capacity, the runs were done by hand on rented machines (Lambda and one EC2 instance), and the results, logs, and environment captures are committed under lectures/results/<host>/ and precision/runs/2026-10-26/. It also adds the operational tooling used to obtain them.
Changes:
- Adds operational scripts:
run_by_hand.sh(runs the precision job on a rented GPU),lambda.sh(Lambda cloud API wrapper), andphase2_retry.sh(re-dispatch loop from #9). - Sets
XLA_PYTHON_CLIENT_MEM_FRACTION=0.95for GPU cells inrun_matrix.py, and makessummarise_scale.pytolerate GPU-only runs; updatesprecision/README.mdworkflow-input docs. - Commits the Phase 2 result artifacts (JSON cells, lecture runs, logs,
machine.txt, environment captures) and a run record README.
| File | Description |
|---|---|
precision/run_matrix.py |
Adds XLA_PYTHON_CLIENT_MEM_FRACTION=0.95 (via setdefault) to GPU cell env so the allocator's 75% cap no longer blocks cells the planner admits; wires the flag into CELL_FLAGS. |
precision/run_by_hand.sh |
New script that records the machine, installs JAX (cuda12/cuda13 by driver), runs the matrix, a TF32-off matmul pass, five lectures ×3, and the scale scripts. |
precision/lambda.sh |
New Lambda cloud API wrapper (capacity/wait/add-key/launch/list/terminate). |
precision/phase2_retry.sh |
New loop that cancels/re-dispatches queued RunsOn runs until one launches. |
lectures/aiyagari_jax/summarise_scale.py |
Guards the CPU-vs-GPU comparison and fidelity sections so GPU-only runs summarise cleanly. |
precision/README.md |
Documents the workflow's Phase 2 inputs (table) and the new mem-fraction behaviour. |
precision/runs/2026-10-26/README.md |
Human-readable record of the four runs, costs, and the OOM/compile-time findings. |
lectures/results/<a100,a10,h100,blackwell>/2026-10-26/** |
Committed run artifacts: per-cell JSON, lecture runs, lectures-set.log, machine.txt, requirements.txt/environment.txt, and scale/aiyagari summaries. |
I reviewed the functional code and found it correct: the summarise_scale.py keys (a_size, hpi_warm_s, etc.) match aiyagari_scale.py's output; the phase2_retry.sh jq job name matches name: Precision Benchmarks in benchmark.yml; run_by_hand.sh's hardcoded qe-wharton1-gpu/2026-10-25/whole/environment.txt dependency and run_lecture.py --env-info interface exist; and the README's workflow-input table matches benchmark.yml. No blocking issues were found, so no inline comments were stored.
Review effort: Balanced
Phase 2 of #1: the precision matrix on the two cards project-compute is choosing between, through their stand-ins, plus an H100 as a float64 ceiling and an A10 for meta#350's question 6. Each run also did matmul with TF32 off, five lectures as written three times on the card, and the
aiyagari_jaxandifp_egm_jaxscale scripts. Every run finished;precision/runs/2026-10-26/README.mdis the record.cuda12(driver 570)g7e.2xlarge, us-east-2a, on-demand, USD 3.36/hrcuda13(driver 595)cuda12g5cuda12About USD 6 in all. The Blackwell card ran outside RunsOn because its launches in RunsOn's zones, us-west-2a and 2b, failed for capacity again (run 40253580690, cancelled before it launched).
Headline numbers on the card, warm, from the results files:
get_greedy, float64, 10k points, against the TITAN RTXTwo things seen only on the newer cards, recorded in the README and not diagnosed:
compile()tries to allocate a second buffer as large as the array (11.94 GiB beside the 11.92 GiB array on the A10). XLA's memory analysis counts only the array, and the TITAN RTX (24 GB) runs 40k in float64. So compiling needs about twice the array on these cards. XLA's GPU autotuner is one candidate;--xla_gpu_autotune_level=0would test it.Also on this branch:
run_by_hand.sh(the precision job's work on a rented machine),lambda.sh(Lambda's API), the retry loop from #9, GPU cells settingXLA_PYTHON_CLIENT_MEM_FRACTION=0.95, and the workflow's Phase 2 inputs, withmainmerged in. The privacy scan found no hostnames, addresses or account numbers;/home/ubuntu/is shortened to~/.The dashboard needs QuantEcon/project-benchmarks-jax's next dashboard PR first. Without it, cards measured only in the
cuda12build would be hidden by default, like a variant.🤖 Generated with Claude Code