Skip to content

Name the GPU a Transformer run trains on - #249

Open
jovo wants to merge 2 commits into
mainfrom
record-cuda-gpu-name
Open

jovo wants to merge 2 commits into
mainfrom
record-cuda-gpu-name

Conversation

@jovo

@jovo jovo commented Dec 4, 2026

Copy link
Copy Markdown
Member

Transformer runs on Skipjack GPUs record resources.hardware.gpu: null, even when they train on CUDA. Each run file holds the job's resources, which come from a ResourceMeter() on the CPU. Only Qwen runs patched in a GPU name, from nvidia-smi. AGENTS.md asks each run to record its hardware, so these runs don't say which of the six GPU types they used.

What changes

  • job_gpu(slugs, device) in run_settings.py names the GPU the job's arms train on. A Qwen arm keeps the driver's GPU, as before. A Transformer arm names the GPU of the device transformer_device picks, through prolearn.resources.hardware: the CUDA device's name, or the Apple chip's GPU under MPS. Other arms name none.
  • A job of several arms records one GPU, as it records one machine. Skipjack and pueue jobs each run one arm and seed.

The device each run trains on is unchanged. Only the record changes. Runs already written keep null.

Checks run: pre-commit, pytest --runslow (1024 passed). hardware("cuda") calls torch.cuda.get_device_name(), which returned the RTX PRO 6000's name on Skipjack while I was checking #247.

🤖 Generated with Claude Code

The job's resources come from a meter on the CPU, so hardware.gpu was null
for Transformer runs on CUDA or MPS. Only Qwen runs named a GPU. job_gpu
names the GPU of the device the job's Transformers train on, and keeps the
driver's GPU for Qwen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jovo

jovo commented Dec 4, 2026

Copy link
Copy Markdown
Member Author

Codex review of 00b67b2, run by pr-review.

  1. experiments/run_settings.py:515 — risk: The new implementation has no pseudocode step ID and no property test, violating the repository’s design rule for implemented steps. The example test covers three selected arms only. A future Transformer arm or a mixed arm list can bypass the intended metadata behavior without a test that checks the property across ARMS.

@jovo jovo added the reviewed-codex Reviewed by Codex (pr-review) label Dec 4, 2026
Answers the Codex review of #249: the test now covers each arm in ARMS
and a job that mixes a Transformer with other arms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jovo

jovo commented Dec 4, 2026

Copy link
Copy Markdown
Member Author

Codex finding 1: the test now checks every arm in ARMS and a mixed job (latest commit). No pseudocode step ID: the rule covers the algorithms on the docs' Algorithms pages, and job_gpu only fills in the run record.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewed-codex Reviewed by Codex (pr-review)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant