Repository navigation
Cluster and Parallel Runs
REALM supports two forms of parallelism:
- Vectorization runs multiple environments in one simulator process.
- Sweeping runs task and perturbation pairs as separate jobs.
The repository includes scheduler-neutral Slurm templates in scripts/cluster_evals/. Site-specific
launchers, partitions, account names and filesystem paths are intentionally not included.
Request a GPU allocation using your cluster's normal workflow and enter the compute node. Then set
REALM_SIF and REALM_DATA_PATH and run ./scripts/run_apptainer.sh as shown in
Quick Start.
scripts/cluster_evals/run_evals_for_ckpt.sh submits one job per task and perturbation pair through
scripts/cluster_evals/run_single_eval.sh. Set the image and data paths through environment
variables, then pass any site-specific sbatch options from your shell or configure them for your
cluster. The templates do not select a partition or account.
A batch script should:
- check the image, dataset, logs and checkpoint paths;
- start the policy server when needed;
- wait until the policy port is available;
- run the single or vectorized evaluation script;
- check the number of output rollouts.
Use a different port for each parallel policy server. Record the image checksum, repository commit, task config, model name and full evaluation command.
Isaac can exit with status 0 after an exception and can segfault during shutdown after a successful run. Check the report files and logs instead of using only the scheduler status.
Task and perturbation IDs are defined in realm/eval.py. Read them from the code instead of keeping
a second list in the batch scripts.
Give each task and perturbation pair a unique run ID. A resumed sweep should skip a pair only when all expected report rows already exist.
python -u examples/04_vector_evaluate.py --num_envs 4 ...--repeats are processed in waves of --num_envs. Four environments is a reasonable starting
point on a high-memory GPU. Measure memory and throughput before increasing it.
V-SC, VB-MOBJ, VSB-NOBJ and SB-VRB add or remove objects and need a simulator stop/play
cycle. The vector environment performs one cycle for the whole wave, so these perturbations still
support vectorized evaluation but have slower resets.