#!/usr/bin/env bash # Start the with-controller evaluations when controller training has ended and the # think-then-speak run no longer shares the baseline (or at 02:04Z at the latest: the # sign-in certificate ends at 02:51Z and the results must be copied off before then). cd /data/train/duplex until [ -f runs/ctl_run_end ] || [ -f runs/ctl_run_failed ]; do sleep 3; done [ -f runs/ctl_run_end ] || exit 1 until [ -f runs/think_speak_end ] || [ "$(date -u +%H%M)" -ge 0204 ]; do sleep 3; done if [ ! -f runs/think_speak_end ]; then tmux kill-session -t thinkeval 2>/dev/null echo "stopped at $(date -u +%T) with $(ls eval/results/bba_think_speak/manual | grep -c json) of 100 questions done" > runs/think_speak_stopped fi tmux kill-session -t think 2>/dev/null bash tools/eval_run.sh