gnn_wm2 / _nodeonly_eval /watch_eval.sh
EndeavourDD's picture
Upload folder using huggingface_hub (part 18)
4245ec7 verified
Raw
History Blame Contribute Delete
572 Bytes
#!/usr/bin/env bash
BASE=/workspace/_nodeonly_eval
while true; do
n=$(find "$BASE" -name protocol_metrics.json 2>/dev/null | wc -l)
alive=$(pgrep -f "eval_nodeonly_protocol.py" | wc -l)
prog=""
for s in shard0 shard1 shard2 shard5; do
w=$(grep -aoE "[0-9]+/[0-9]+ windows" "$BASE/$s.log" 2>/dev/null | tail -1)
prog="$prog $s:${w:-..}"
done
echo "[$(date -Is)] done_shards=$n/4 alive=$alive |$prog"
(( n >= 4 )) && { echo "STATUS: ALL_4_SHARDS_DONE"; break; }
(( alive == 0 )) && { echo "STATUS: ALL_PROC_EXITED done=$n"; break; }
sleep 180
done