| name | reserve-tpu |
| description | Reserve an Iris-backed TPU worker for fast debugging with dev_tpu.py. |
Skill: Dev TPU
Use this skill for the standard fast TPU debugging loop without wiring a full training job each time.
scripts/iris/dev_tpu.py reserves a TPU-backed worker through Iris, waits for the worker VM to come up, and lets you SSH into it or run commands directly against it. It uses gcloud SSH and SCP against the worker Iris assigned to the holder job. There is no persistent ~/.ssh/config alias.
Critical concurrency rule
Run at most one TPU job at a time on a given dev TPU VM. Do not launch concurrent TPU commands on the same worker from multiple shells, tmux panes, or background jobs.
Commands
allocate: submit a TPU holder job, resolve the assigned worker VM(s), optionally sync the repo, block until release
status: show the active local session metadata
connect: open an interactive SSH session to one reserved worker
setup_env: sync the repo by default, then install/refresh the remote uv environment on one or all reserved workers
execute: sync local files to ~/marin on the reserved worker(s), then run one command
watch: sync all reserved workers and rerun a command on the selected worker when local files change
release: terminate the holder job and remove the local session file
Prerequisites
- Authenticate to GCP and set up the repo.
gcloud auth login
gcloud config set project hai-gcp-models
gcloud auth application-default login
make dev_setup