Repository navigation
Whole lectures on RunsOn: a workflow job for the T4 and its host CPU - #10
Merged
Merged
Conversation
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]>
There was a problem hiding this comment.
🔵 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) andlectures_instance(choice)workflow_dispatchinputs plus a newbenchmark-lecturesjob that fetches the lectures at commit4b939ec, installs the pinned env, runslectures_set.sh, summarises, and uploadslectures/results/runson-*/as an artifact, capped at 5 hours. - Parametrizes
lectures_set.shto takeROOT,PY,RUNNERandENV_INFOfrom the environment (defaults preserve the existing machine layout, somac_lectures.shis 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
…tance does Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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.ymlgainsrun_lecturesandlectures_instance. The new job runs the lecture-jax set at4b939ecthree times, interleaved, on the GPU and its host CPU. It installs the exact packages of the TITAN RTX run from that run'senvironment.txt, and uploadslectures/results/runson-<instance>/as an artifact. It stops after five hours: three runs should take about 3.5 hours on ag4dn.2xlarge, about USD 2.50, so the cap is USD 3.80.lectures_set.shtakes its paths from the environment (ROOT,PY,RUNNER,ENV_INFO). The defaults are the machines' layout, so it runs there exactly as before. Checked onqe-mini1with 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 editsbenchmark.yml's inputs, so whichever of the two merges second will need a rebase.🤖 Generated with Claude Code