TRACE-VLA code snapshot 2026-11-22 11:47 +07: 456 canonical files + SHA256 manifest + sync report (part 2)
ae1ed83 verified Download code/trace_validation/scripts/df_r6_200k_seq.sh from phammminhhieu/trace-vla-code: direct link, hf CLI and curl.
- Browser
- Download file 3.95 kB
-
https://huggingface.co/phammminhhieu/trace-vla-code/resolve/main/code/trace_validation/scripts/df_r6_200k_seq.sh
- Command line
-
hf download hf://phammminhhieu/trace-vla-code/code/trace_validation/scripts/df_r6_200k_seq.sh
-
curl -L -o df_r6_200k_seq.sh https://huggingface.co/phammminhhieu/trace-vla-code/resolve/main/code/trace_validation/scripts/df_r6_200k_seq.sh
3.95 kB
| # R6 200k master sequence (Young's order 10:59 22/11/2026): | |
| # verify raw store -> smoke phase 1 -> PHASE 1 (30k->100k, vision | |
| # blocks 8-11 + norm open) -> eval 100k + corr 100k -> rebuild | |
| # cache with the 100k encoder -> PHASE 2 (100k->200k, vision | |
| # frozen) -> eval 200k + corr 200k -> vision identity check -> | |
| # 4-milestone compare. | |
| # Sequential only (parallel train+eval measured net-negative). | |
| # Idempotent stages via flags in data_factory/flags200k/; each stage | |
| # retried up to 3 times inside the sequence; the watchdog relaunches | |
| # the whole sequence (resuming from checkpoints) up to 3 times. | |
| set -u | |
| EXP=$HOME/sera_v4_experiments | |
| SCR=$EXP/trace_validation/scripts | |
| DF=$EXP/data_factory | |
| PY=$HOME/lerobot/.venv/bin/python | |
| FLAGS=$DF/flags200k | |
| mkdir -p "$FLAGS" | |
| LOG=$DF/r6_200k_seq.log | |
| log() { echo "[$(date '+%F %T')] $*" | tee -a "$LOG"; } | |
| run_stage() { | |
| local name=$1 flag=$2; shift 2 | |
| if [ -f "$FLAGS/$flag.done" ]; then log "SKIP $name (done)"; return 0; fi | |
| local try=1 | |
| while [ $try -le 3 ]; do | |
| log "RUN $name (try $try)" | |
| if "$@" >> "$LOG" 2>&1; then | |
| touch "$FLAGS/$flag.done"; log "DONE $name"; return 0 | |
| fi | |
| log "FAIL $name (try $try)"; try=$((try + 1)); sleep 20 | |
| done | |
| log "STAGE FAILED PERMANENTLY: $name" | |
| touch "$FLAGS/STOP" | |
| return 1 | |
| } | |
| latest_ckpt() { ls "$1"/ckpt_*.pt 2>/dev/null | sort | tail -1; } | |
| step_of() { basename "$1" | sed 's/ckpt_//; s/\.pt//' | sed 's/^0*//'; } | |
| phase1_cmd() { | |
| local ck=$DF/runs/r6_30k/ckpt_30000.pt st=30000 latest | |
| latest=$(latest_ckpt "$DF/runs/r6_200k") | |
| if [ -n "$latest" ]; then ck=$latest; st=$(step_of "$latest"); fi | |
| log "phase1 resume: init=$ck start=$st" | |
| "$PY" "$SCR/df_train_r6_200k.py" --init "$ck" --start-step "$st" \ | |
| --steps 100000 --out "$DF/runs/r6_200k" \ | |
| --ckpt-steps 40000,50000,60000,70000,80000,90000,100000 | |
| } | |
| phase2_cmd() { | |
| local ck=$DF/runs/r6_200k/ckpt_100000.pt st=100000 latest | |
| latest=$(latest_ckpt "$DF/runs/r6_200k_p2") | |
| if [ -n "$latest" ]; then ck=$latest; st=$(step_of "$latest"); fi | |
| log "phase2 resume: init=$ck start=$st" | |
| "$PY" "$SCR/df_train_arms_p2.py" r6 --init "$ck" --start-step "$st" \ | |
| --steps 200000 --out "$DF/runs/r6_200k_p2" \ | |
| --vision-from "$DF/runs/r6_200k/ckpt_100000.pt" \ | |
| --tag r6_200k \ | |
| --ckpt-steps 110000,120000,130000,140000,150000,160000,170000,180000,190000,200000 | |
| } | |
| dash_note() { | |
| "$PY" -c " | |
| import sys; sys.path.insert(0, '$SCR') | |
| from v2_dash import merge_item | |
| merge_item('data_factory.train.r6_200k', {'phase_note': '$1'}) | |
| " >> "$LOG" 2>&1 || true | |
| } | |
| cd "$SCR" || exit 1 | |
| log "=== R6 200k sequence start ===" | |
| run_stage "verify raw store" verify_raw \ | |
| "$PY" "$SCR/df_verify_raw200k.py" || exit 1 | |
| run_stage "smoke phase1 (30 steps)" smoke_p1 \ | |
| "$PY" "$SCR/df_train_r6_200k.py" --smoke 30 \ | |
| --init "$DF/runs/r6_30k/ckpt_30000.pt" --start-step 30000 \ | |
| --out "$DF/runs/r6_200k_smoke" || exit 1 | |
| dash_note "Pha 1/2 · vision MỞ (blocks 8-11 + norm)" | |
| run_stage "phase 1 train 30k->100k" phase1 phase1_cmd || exit 1 | |
| dash_note "Eval mốc 100k" | |
| run_stage "eval 100k" eval100k \ | |
| "$PY" "$SCR/df_eval_arms_200k.py" r6_100k || exit 1 | |
| run_stage "corr eval 100k" corr100k \ | |
| "$PY" "$SCR/df_corr_eval_200k.py" 100k || exit 1 | |
| run_stage "build cache v100k" cachev100k \ | |
| "$PY" "$SCR/df_build_cache_v100k.py" \ | |
| --ckpt "$DF/runs/r6_200k/ckpt_100000.pt" || exit 1 | |
| dash_note "Pha 2/2 · vision ĐÓNG (đóng băng ở encoder 100k)" | |
| run_stage "phase 2 train 100k->200k" phase2 phase2_cmd || exit 1 | |
| dash_note "Eval mốc 200k" | |
| run_stage "eval 200k" eval200k \ | |
| "$PY" "$SCR/df_eval_arms_200k.py" r6_200k || exit 1 | |
| run_stage "corr eval 200k" corr200k \ | |
| "$PY" "$SCR/df_corr_eval_200k.py" 200k || exit 1 | |
| run_stage "vision identity check" verify_final \ | |
| "$PY" "$SCR/df_verify_raw200k.py" --final || exit 1 | |
| run_stage "4-milestone compare" compare \ | |
| "$PY" "$SCR/df_r6_200k_compare.py" || exit 1 | |
| touch "$FLAGS/ALL_DONE" | |
| log "=== R6 200k sequence COMPLETE ===" | |