trace-vla-code / code /sera_v4 /tools /chain_gz.sh
phammminhhieu's picture
TRACE-VLA code snapshot 2026-11-22 11:47 +07: 456 canonical files + SHA256 manifest + sync report
b4396f0 verified
Raw History Blame Contribute Delete
1.31 kB
#!/usr/bin/env bash
# Paired-control waiter (approved by Young 2026-11-18 20:26): launch the
# composition-Z rollout for arm G@10k (MI routing loss) the moment Q's
# composition-Z finishes, so the GPU never idles. Same protocol as Q-Z:
# rollout_skill_v4.py, tasks {1,3,4,6,7,8}, eps 0..9 (60 ep), seed 0,
# everything frozen. Output: quest_probe/results/g-mi-comp-z.jsonl.
# This is a CONTROL number for interpretation, NOT a new E1 gate.
set -u
EXP="$HOME/sera_v4_experiments"
RES="$EXP/quest_probe/results"
LOG="$EXP/quest_probe/chain_gz.log"
cd "$HOME/lerobot" || exit 1
export MUJOCO_GL=egl PYTHONUNBUFFERED=1
echo "CHAIN_GZ WAITER START $(date -Is)" >> "$LOG"
while true; do
rows=$(grep -c "^{" "$RES/q-quest-comp-z.jsonl" 2>/dev/null || echo 0)
if [ "${rows:-0}" -ge 60 ]; then
if grep -q "CHAIN_E1_END" "$EXP/chain_e1.log" 2>/dev/null \
|| ! pgrep -f "rollout_skill_v4.py --ckpt" > /dev/null; then
break
fi
fi
sleep 20
done
echo "Q-Z COMPLETE (rows=$rows); launching G-Z $(date -Is)" >> "$LOG"
.venv/bin/python "$EXP/tools/rollout_skill_v4.py" \
--ckpt "$EXP/sera-v4-g-mi/checkpoints/010000/pretrained_model" \
--model v3 --tasks 1,3,4,6,7,8 --eps 0,1,2,3,4,5,6,7,8,9 \
--out "$RES/g-mi-comp-z.jsonl" --seed 0 >> "$LOG" 2>&1
echo "G_Z DONE $(date -Is)" >> "$LOG"