Skip to content

Whole lectures on RunsOn: a workflow job for the T4 and its host CPU - #10

Merged
mmcky merged 2 commits into
mainfrom
whole-lectures-runson
Oct 25, 2026
Merged

mmcky merged 2 commits into
mainfrom
whole-lectures-runson

Conversation

@mmcky

@mmcky mmcky commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Runs #4's whole-lecture set on RunsOn, for the T4 and its host CPU that the lectures' CI uses. That leg answers meta#350's question 1 directly: which lectures should build on a CPU.

What changes

  • benchmark.yml gains run_lectures and lectures_instance. The new job runs the lecture-jax set at 4b939ec three times, interleaved, on the GPU and its host CPU. It installs the exact packages of the TITAN RTX run from that run's environment.txt, and uploads lectures/results/runson-<instance>/ as an artifact. It stops after five hours: three runs should take about 3.5 hours on a g4dn.2xlarge, about USD 2.50, so the cap is USD 3.80.
  • lectures_set.sh takes its paths from the environment (ROOT, PY, RUNNER, ENV_INFO). The defaults are the machines' layout, so it runs there exactly as before. Checked on qe-mini1 with one lecture from a temporary directory.

Status

The run is under way from the same commit on whole-lectures, as run 40181233548, which was dispatched before #8 was found to be merged. Its results will come in a follow-up PR.

The Phase 2 branch, phase2-cloud-cards, also edits benchmark.yml's inputs, so whichever of the two merges second will need a rebase.

🤖 Generated with Claude Code

Adds run_lectures and lectures_instance to the workflow: the lecture-jax
set, three runs on the GPU and its host CPU, with the TITAN RTX run's
exact packages, capped at five hours. lectures_set.sh takes its paths
from the environment, with the machines' layout as the default.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

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 cost-incurring GPU CI change with external network fetches and GPU-runtime behavior that cannot be validated in this environment, warranting human review.

1 open issue
What changed in this PR

This PR adds a RunsOn (AWS) CI leg that runs QuantEcon's whole lecture-jax set as written, three times, on a GPU instance and its host CPU, to feed meta#350's question of which lectures should default to the CPU. It builds on #8 (which captured the same set on the TITAN RTX, Threadripper and M6) by targeting the T4 g4dn.2xlarge that the lectures' CI uses, pinning the exact packages from the TITAN RTX run's environment.txt so the two are comparable.

Changes:

  • Adds run_lectures (boolean) and lectures_instance (choice) workflow_dispatch inputs plus a new benchmark-lectures job that fetches the lectures at commit 4b939ec, installs the pinned env, runs lectures_set.sh, summarises, and uploads lectures/results/runson-*/ as an artifact, capped at 5 hours.
  • Parametrizes lectures_set.sh to take ROOT, PY, RUNNER and ENV_INFO from the environment (defaults preserve the existing machine layout, so mac_lectures.sh is unaffected).
  • Documents the new RunsOn leg in lectures/whole/README.md.
File Description
.github/​workflows/​benchmark.yml Adds run_lectures/lectures_instance inputs and the benchmark-lectures RunsOn job (install pinned env, fetch lectures, run set, summarise, upload artifact).
lectures/​whole/​lectures_set.sh Reads paths from ROOT/PY/RUNNER/ENV_INFO with machine-layout defaults so the workflow can drive it unchanged.
lectures/​whole/​README.md Notes the new run_lectures RunsOn leg and its behavior.

Review effort: Balanced

Comment thread .github/workflows/benchmark.yml Resolved
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