Upload strict640x480-v2/code/wait_and_evaluate_all5.sh with huggingface_hub
Browse files4 unmodified lines567891027 unmodified lines38394041424344454647484950514 unmodified linesmethod="${1:?method: dino|stereo|moe|local_arca}"gpu="${2:?physical GPU index}"root=/workspace/RoboFactory/runs/strict640x480_v2py=/workspace/venvs/robofactory-act/bin/python3.1027 unmodified linesmkdir -p "$result_dir"for task in lift_barrier camera_alignment three_robots_stack_cube long_pipeline_delivery take_photo; do# A single worker owns the freed GPU, avoiding concurrent simulator processes# silently contending for one policy replica. The seed file is frozen and# verified by the evaluator before any rollout starts.CUDA_VISIBLE_DEVICES="$gpu" "$py" -u "$evaluator" \--checkpoint "$checkpoint" --task "$task" \--seed-file "$root/heldout_seeds/$task.json" --episodes 100 \--workers 1 --devices 0 --max-steps 1500 \--output "$result_dir/eval_${task}.json"doneprintf 'FORMAL_ALL5_EVALUATION_COMPLETE %s\n' "$method"4 unmodified lines5678910111227 unmodified lines404142434445464748495051525354555657585960616263646566674 unmodified linesmethod="${1:?method: dino|stereo|moe|local_arca}"gpu="${2:?physical GPU index}"skip_tasks=",${3:-},"eval_workers="${EVAL_WORKERS:-1}"root=/workspace/RoboFactory/runs/strict640x480_v2py=/workspace/venvs/robofactory-act/bin/python3.1027 unmodified linesmkdir -p "$result_dir"for task in lift_barrier camera_alignment three_robots_stack_cube long_pipeline_delivery take_photo; docase "$skip_tasks" in *",$task,"*) echo "SKIP_ASSIGNED_TASK $method $task"; continue;; esacresult="$result_dir/eval_${task}.json"# A parallel worker may have already completed this exact frozen protocol on# another freed GPU. Reuse only a complete 100-episode JSON; never treat a# partial file as valid.if [[ -s "$result" ]] && "$py" - "$result" <<'PY'import json, sysr = json.load(open(sys.argv[1], encoding="utf-8"))raise SystemExit(0 if r.get("episodes") == 100 and len(r.get("rows", [])) == 100 else 1)PYthenecho "REUSE_FORMAL_EVAL $method $task"continuefi# A single worker owns the freed GPU, avoiding concurrent simulator processes# silently contending for one policy replica. The seed file is frozen and# verified by the evaluator before any rollout starts.CUDA_VISIBLE_DEVICES="$gpu" "$py" -u "$evaluator" \--checkpoint "$checkpoint" --task "$task" \--seed-file "$root/heldout_seeds/$task.json" --episodes 100 \--workers "$eval_workers" --devices 0 --max-steps 1500 \--output "$result"doneprintf 'FORMAL_ALL5_EVALUATION_COMPLETE %s\n' "$method"
strict640x480-v2/code/wait_and_evaluate_all5.sh+18-2