#!/usr/bin/env bash # rope inference script for a finished rope TODO run (after 20 epochs): runs the rope test set only # (34 cases from the test split of splits/mixed_rope_wrist_holdout.json) on 4 GPUs, writes summary.md and uploads # checkpoints// + results//test_epoch_019/ to the HF repo. # bash scripts/infer_rope.sh configs/nano_action_causal_rope_sensoronly_v1.yaml # bash scripts/infer_rope.sh configs/nano_action_causal_rope_sensoronly_noforce_v1.yaml # Refuses configs of another task, and refuses to run before runs//epoch_019.pt exists. set -euo pipefail HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" source "${ACTS_REPO:-$HERE}/env.sh" cd "$ACTS_REPO" CONFIG="${1:?usage: infer_rope.sh configs/nano_action_causal_rope__v1.yaml [--no-upload]}"; shift || true exec "$PYTHON_BIN" -u scripts/todo_eval_upload.py "$CONFIG" --task rope --ngpu "${NGPU:-4}" "$@"