TRACE-VLA code snapshot 2026-11-22 11:47 +07: 456 canonical files + SHA256 manifest + sync report
b4396f0 verified Download code/sera_v4/tools/chain_oracle.sh from phammminhhieu/trace-vla-code: direct link, hf CLI and curl.
- Browser
- Download file 1.45 kB
-
https://huggingface.co/phammminhhieu/trace-vla-code/resolve/main/code/sera_v4/tools/chain_oracle.sh
- Command line
-
hf download hf://phammminhhieu/trace-vla-code/code/sera_v4/tools/chain_oracle.sh
-
curl -L -o chain_oracle.sh https://huggingface.co/phammminhhieu/trace-vla-code/resolve/main/code/sera_v4/tools/chain_oracle.sh
1.45 kB
| # Oracle battery chain (coordinator 5): waits for CHAIN_J_DONE, | |
| # then runs O1 (70 ep) -> O3 (70) -> O2 (60) -> O2 control (30) | |
| # on D@10k with the F0-paired harness. Never interrupts training. | |
| set -u | |
| EXP="$HOME/sera_v4_experiments" | |
| LOG="$EXP/round2_probe/chain_oracle.log" | |
| RES="$EXP/round2_probe/results" | |
| TOOLS="$EXP/tools" | |
| CKPT="$EXP/sera-v4-d-skillroute/checkpoints/010000/pretrained_model" | |
| cd "$HOME/lerobot" || exit 1 | |
| log() { echo "[$(date -Is)] $*" >> "$LOG"; } | |
| log "CHAIN_ORACLE WAITING" | |
| while ! grep -q "CHAIN_J_DONE" "$EXP/round2_probe/chain_j.log" 2>/dev/null; do sleep 60; done | |
| log "CHAIN_J COMPLETE -> oracle battery start" | |
| run() { # mode arm outfile extra... | |
| local mode="$1" arm="$2" out="$3"; shift 3 | |
| log "RUN $mode $arm" | |
| env MUJOCO_GL=egl PYTHONUNBUFFERED=1 SERA_EXECUTE_STEPS=4 .venv/bin/python \ | |
| "$TOOLS/eval_oracle.py" --ckpt "$CKPT" --arm "$arm" --out "$out" \ | |
| --mode "$mode" "$@" </dev/null >> "$LOG" 2>&1 | |
| log "DONE $mode $arm" | |
| } | |
| run o1 oracle-o1 "$RES/oracle-o1-d10k.jsonl" | |
| run o3 oracle-o3 "$RES/oracle-o3-d10k.jsonl" | |
| run o2 oracle-o2 "$RES/oracle-o2-d10k.jsonl" \ | |
| --swap-file "$TOOLS/swap_map.json" \ | |
| --tasks "libero_spatial:5:10,libero_goal:0:10,libero_goal:9:10,libero_10:0:10,libero_10:6:10,libero_10:7:10" | |
| run o2ctrl oracle-o2ctrl "$RES/oracle-o2ctrl-d10k.jsonl" \ | |
| --swap-file "$TOOLS/swap_ctrl.json" \ | |
| --tasks "libero_spatial:5:10,libero_goal:9:10,libero_10:0:10" | |
| log "CHAIN_ORACLE_DONE" | |