#!/bin/bash # FEW-SHOT PHASE 1 (E1) eval chain: 5 conditions on checkpoint # 010000, gate-critical conditions first. Wave 1 runs b/a/c in # parallel lanes (one GPU, ~3 GB per eval process), wave 2 runs # d/e. Each condition is resumable; this script is idempotent. set -u EXP=$HOME/sera_v4_experiments CKPT=$EXP/sera-v4-fs1-demo/checkpoints/010000/pretrained_model RES=$EXP/fewshot/results mkdir -p "$RES" cd "$HOME/lerobot" run_cond() { .venv/bin/python "$EXP/tools/eval_demo.py" --ckpt "$CKPT" \ --condition "$1" --out "$RES/fs1-cond-$1.jsonl" \ > "$RES/fs1-cond-$1.log" 2>&1 echo "condition $1 done" } run_cond b & run_cond a & run_cond c & wait run_cond d & run_cond e & wait echo "ALL CONDITIONS DONE"