Download code/run_geco.sh from herooooooooo/repro-generative-control-as-optimization: direct link, hf CLI and curl.
- Browser
- Download file 1.67 kB
-
https://huggingface.co/spaces/herooooooooo/repro-generative-control-as-optimization/resolve/main/code/run_geco.sh
- Command line
-
hf download hf://spaces/herooooooooo/repro-generative-control-as-optimization/code/run_geco.sh
-
curl -L -o run_geco.sh https://huggingface.co/spaces/herooooooooo/repro-generative-control-as-optimization/resolve/main/code/run_geco.sh
1.67 kB
| # GeCO (arXiv 2603.17834) Table 5 on SmolVLA / LIBERO, start to finish, on Modal. | |
| # pip install modal==<version in experiments/lerobot/modal/requirements.txt> && modal setup | |
| # bash run_geco.sh | |
| # Steps (all remote; ~6 GPU-hours, about $15-25 of Modal credit at December 2026 prices): | |
| # 0. download the LIBERO dataset and SmolVLA weights into a Modal volume (once, ~33 GB, CPU only) | |
| # 1. train G0 (standard SmolVLA) and G1 (GeCO) on LIBERO-Goal, 10k steps each (L40S), then evaluate both | |
| # on LIBERO-Goal (ID) and LIBERO-Spatial (OOD), 10 episodes per task, logging one OOD score per planning call | |
| # 2. re-evaluate G1 with 30 and 100 GeCO steps per call (the paper uses 10) | |
| # 3. offline diagnosis on 400 dataset frames per suite (residual by step, field at the expert chunk, baseline) | |
| # 4. download the run folders and print the Table 5 comparison (results/geco_report.json) | |
| set -euo pipefail | |
| cd "$(dirname "$0")" | |
| APP=experiments/lerobot/modal/app.py | |
| modal run "$APP::prefetch" | |
| out=$(modal run "$APP::full" --runs G0,G1 --trials 10 --steps 10000 | tee /dev/stderr | grep "all done:") | |
| G0=$(echo "$out" | grep -oE "G0_[0-9TZ]+" | head -1) | |
| G1=$(echo "$out" | grep -oE "G1_[0-9TZ]+" | head -1) | |
| modal run "$APP::geco_kmax" --folder "$G1" --kmaxes 30,100 | |
| modal run "$APP::diagnose" --g0 "$G0" --g1 "$G1" --frames 400 --k-max 100 | |
| mkdir -p experiments/results/phase2 | |
| for f in "$G0" "$G1"; do | |
| modal volume get --force behavior-results "phase2/$f" experiments/results/phase2/ | |
| done | |
| PYTHONPATH=src python3 experiments/lerobot/geco_report.py --g0 "experiments/results/phase2/$G0" \ | |
| --g1 "experiments/results/phase2/$G1" --json geco_report.json | |