File size: 2,220 Bytes
a2b0c04 | 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 27 28 29 30 31 32 33 34 35 36 37 | #!/bin/sh
# Day 3: re-run the episodes our own harness failed on, then the effort ladder. Started by a systemd timer after
# the daily reset, inside shortlist.slice (3 GB cap). Stops cleanly at the daily limit; safe to run again.
set -u
ROOT="$HOME/work/Projects/shortlist"
cd "$ROOT" || exit 1
PATH="/usr/bin:/bin:$HOME/.local/bin"
DX="$HOME/work/Projects/autterly/server/node_modules/.bin/dotenvx"
PY="$ROOT/.venv/bin/python"
LOG="$ROOT/runs/day3.log"
echo "== start $(date -u)" >> "$LOG"
echo "== 0. Beam audits the training result $(date -u)" >> "$LOG"
"$DX" run -q -- "$PY" training/audit_with_beam.py >> "$LOG" 2>&1
(cd vendor/llama/llama-b11968 && LD_LIBRARY_PATH=. exec ./llama-server -m ../../models/Qwen3-0.6B-Q8_0.gguf --jinja \
-c 8192 -np 1 -t 8 --host 127.0.0.1 --port 8091 > "$ROOT/runs/small-server.log" 2>&1) &
SMALL=$!
for i in $(seq 1 60); do curl -s -m 2 http://127.0.0.1:8091/health | grep -q ok && break; sleep 2; done
echo "== 1. re-run episodes our harness failed on $(date -u)" >> "$LOG"
"$DX" run -q -- "$PY" scripts/ladder.py --suites rg:basic_arithmetic,rg:leg_counting,rg:game_of_life,rg:sudoku \
--tiers null,random,small,beam-low --run day2 --suite-parallel 1 --parallel 2 >> "$LOG" 2>&1
kill $SMALL 2>/dev/null
echo "== 2. high effort on the suites where effort matters (Reasoning Gym, maze, tic-tac-toe) $(date -u)" >> "$LOG"
"$DX" run -q -- "$PY" scripts/ladder.py --suites rg:basic_arithmetic,rg:leg_counting,rg:word_sorting,rg:propositional_logic,rg:letter_counting,rg:chain_sum,rg:countdown,rg:maze,rg:game_of_life,rg:sudoku,maze_env,os:tic_tac_toe \
--tiers beam-high --attempts beam-high=1 --run day2 --suite-parallel 2 >> "$LOG" 2>&1
echo "== 3. medium effort on six Reasoning Gym families $(date -u)" >> "$LOG"
"$DX" run -q -- "$PY" scripts/ladder.py --suites rg:leg_counting,rg:propositional_logic,rg:countdown,rg:game_of_life,rg:maze,rg:sudoku \
--tiers beam-medium --attempts beam-medium=1 --run day2 --suite-parallel 2 >> "$LOG" 2>&1
echo "== 4. max effort on game of life $(date -u)" >> "$LOG"
"$DX" run -q -- "$PY" scripts/ladder.py --suites rg:game_of_life --tiers beam-max --attempts beam-max=1 --run day2 >> "$LOG" 2>&1
echo "== done $(date -u)" >> "$LOG"
|