Skip to content

Phase 2: the A100, the RTX PRO 6000 Blackwell, the H100 and the A10 - #14

Merged
mmcky merged 10 commits into
mainfrom
phase2-cloud-cards
Oct 26, 2026
Merged

mmcky merged 10 commits into
mainfrom
phase2-cloud-cards

Conversation

@mmcky

@mmcky mmcky commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

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_jax and ifp_egm_jax scale scripts. Every run finished; precision/runs/2026-10-26/README.md is the record.

Card Stands in for Where Build
A100 SXM4 40 GB the A800 40GB Active Lambda, USD 1.99/hr cuda12 (driver 570)
RTX PRO 6000 Blackwell Server Edition the RTX PRO 6000 Max-Q EC2 g7e.2xlarge, us-east-2a, on-demand, USD 3.36/hr cuda13 (driver 595)
H100 SXM5 80 GB a float64 ceiling Lambda, USD 4.29/hr cuda12
A10 24 GB the A10G in RunsOn's g5 Lambda, USD 1.29/hr cuda12

About 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:

Card float64 matmul, n = 8,192, TFLOPS float32 matmul with TF32 off, TFLOPS Stored Bellman step, float64, 20k, GB/s Recomputing step, float64, 20k, Gcells/s Recomputing step, float64 time over float32 get_greedy, float64, 10k points, against the TITAN RTX
TITAN RTX 0.55 – 189 5.6 19× 1×
T4 0.26 – 120 2.9 35× –
A10 0.49 15.1 242 5.4 30× 0.9×
A100 40 GB 19.2 19.0 1,270 64.6 2.3× 10.9×
RTX PRO 6000 Blackwell 1.76 82.9 903 19.6 28× 3.3×
H100 80 GB 63.9 51.4 2,700 173 2.0× 25.8×

Two things seen only on the newer cards, recorded in the README and not diagnosed:

  • The stored step runs out of memory while compiling. On the A10 at 40k in float64 and 60k in float32, and on the A100 at 60k in float64, 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=0 would test it.
  • float64 compiles of the recomputing step take minutes: 155 s to 460 s at 40k and 60k on the A10, A100 and H100, and 92 s at 60k on the Blackwell card, against under 1 s on Turing in both CUDA builds.

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 setting XLA_PYTHON_CLIENT_MEM_FRACTION=0.95, and the workflow's Phase 2 inputs, with main merged 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 cuda12 build would be hidden by default, like a variant.

🤖 Generated with Claude Code

mmcky and others added 10 commits October 25, 2026 21:10
…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]>
…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]>
…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]>
Copilot AI balanced review requested due to automatic review settings October 26, 2026 02:17

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.

🔵 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), and phase2_retry.sh (re-dispatch loop from #9).
  • Sets XLA_PYTHON_CLIENT_MEM_FRACTION=0.95 for GPU cells in run_matrix.py, and makes summarise_scale.py tolerate GPU-only runs; updates precision/README.md workflow-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

@mmcky
mmcky merged commit f0af03e into main Oct 26, 2026
1 check passed
@mmcky
mmcky deleted the phase2-cloud-cards branch October 26, 2026 02:37
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