pose6daug-scripts / ops /eval_on_checkpoint.sh
mlnha's picture
Add EVALUATION.md, actaug builder, ops scripts; resync eval code
28ed187 verified
Raw History Blame Contribute Delete
2.18 kB
#!/usr/bin/env bash
# Evaluate checkpoint-1500 as soon as it is complete, same settings as the other runs:
# policy_seed 12345, seed_base 42, 4 workers (42..45), the 160-episode exact-replay set.
# GPUs 4-7 only -- 2,3 are training and 0,1 belong to someone else.
set -u
R=/data/minha/pose6daug/train_robocasa/runs/pnpcountertocab_actaug_256_newemb_from60k_gbs64_30000steps_20260922_140904
CK=$R/checkpoint-1500
E=/lp-dev/jonghoon/___neurips_pose6daug___/migrator/code/06_eval/eval_groot15_exact_replay.sh
M=/data/minha/pose6daug/train_robocasa/myGR00T
L=/tmp/claude-1001/-home-nvidia/68c27ffb-706b-4cb3-8bf2-4618a200d378/scratchpad/eval_actaug_1500.log
echo "[wait] checkpoint-1500 ๋Œ€๊ธฐ $(date -u +%H:%M:%S)" > "$L"
until [ -f "$CK/model.safetensors.index.json" ]; do sleep 60; done
sleep 60 # ์“ฐ๊ธฐ ์™„๋ฃŒ ์—ฌ์œ 
echo "[wait] ๊ฐ์ง€ $(date -u +%H:%M:%S)" >> "$L"
# 4 servers land 2-per-GPU on the cards the training is using; an OOM here would take
# the training down too, so wait until each card really has room.
NEED=42000
while true; do
f2=$(nvidia-smi -i 2 --query-gpu=memory.free --format=csv,noheader,nounits)
f3=$(nvidia-smi -i 3 --query-gpu=memory.free --format=csv,noheader,nounits)
[ "$f2" -ge "$NEED" ] && [ "$f3" -ge "$NEED" ] && break
echo "$(date -u +%H:%M:%S) ๋Œ€๊ธฐ: GPU2 ${f2}MiB GPU3 ${f3}MiB (ํ•„์š” ${NEED})" >> "$L"
sleep 300
done
echo "[wait] ๋ฉ”๋ชจ๋ฆฌ ํ™•๋ณด, eval ์‹œ์ž‘ $(date -u +%H:%M:%S)" >> "$L"
MODEL_PATH="$CK" MYGROOT_ROOT="$M" EVAL_CLIENT="$M/scripts/eval_robocasa_replay_state_grasp.py" DATASETNAME=actaug_256 EVAL_OUTPUT_BASE=/home/nvidia/minha/pose6daug/evals/results EVAL_RUN_NAME=seed12345/actaug256_ckpt1500_exact160 REPLAY_STATE_ROOT=/lp-dev/jonghoon/isaac-gr00t/eval_results/pnpcountertocab_mimicgen8_exact160_replay_policyseed12345_20260506 N_EPISODES=160 EXPECTED_REPLAY_STATES=160 GPUS=2,3,2,3 POLICY_SEED=12345 SEED_BASE=42 bash "$E" >> "$L" 2>&1
echo "[wait] eval ์ข…๋ฃŒ $(date -u +%H:%M:%S)" >> "$L"
python3 /tmp/claude-1001/-home-nvidia/68c27ffb-706b-4cb3-8bf2-4618a200d378/scratchpad/organize_videos.py --root /home/nvidia/minha/pose6daug/evals/results/seed12345/actaug256_ckpt1500_exact160 >> "$L" 2>&1