File size: 833 Bytes
9589849 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #!/usr/bin/env bash
set -euo pipefail
workspace="/mnt/pvc/users/simon/agentptb/runs/sol-max-s1/workspace"
choice_file="$workspace/state/harness-choice.txt"
temperature_file="$workspace/state/sampling-temperature.txt"
[[ -f "$choice_file" ]] || {
echo "missing precommitted harness decision: $choice_file" >&2
exit 1
}
[[ -f "$temperature_file" ]] || {
echo "missing precommitted sampling decision: $temperature_file" >&2
exit 1
}
choice="$(<"$choice_file")"
temperature="$(<"$temperature_file")"
[[ "$choice" == review || "$choice" == noreview || "$choice" == stock ]] || {
echo "invalid harness decision: $choice" >&2
exit 1
}
[[ "$temperature" == 0.2 || "$temperature" == 0.6 ]] || {
echo "invalid sampling decision: $temperature" >&2
exit 1
}
exec "$workspace/scripts/run_final_evals.sh" "$choice" "$temperature"
|