Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014aUaQeLnwbb1zTpN7kHeat
21 lines
1.0 KiB
Bash
Executable File
21 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
# Baseline on the 11-task subset (Kral decision 2026-10-03), detached. Replaces night_chain.sh.
|
|
# macOS notification after 2 tasks (time estimate) and at the end. Log: runs/stage1/baseline.log, chain log below.
|
|
cd "$(dirname "$0")/.."
|
|
log() { echo "$(date '+%F %T') $*"; }
|
|
log "start baseline, 11 tasks, max_tokens 16384"
|
|
python3 train/baseline.py --label baseline --run-base 20200 > runs/stage1/baseline.log 2>&1 &
|
|
BP=$!
|
|
log "baseline PID $BP"
|
|
NOTE=0
|
|
while kill -0 $BP 2>/dev/null; do
|
|
N=$(python3 -c "import json;print(len(json.load(open('runs/stage1/baseline.json'))['tasks']))" 2>/dev/null || echo 0)
|
|
if [ "$NOTE" = 0 ] && [ "$N" -ge 2 ]; then
|
|
osascript -e 'display notification "Baseline: first 2 tasks done, ask for the time estimate" with title "stage1"'
|
|
log "2 tasks done"; NOTE=1
|
|
fi
|
|
sleep 60
|
|
done
|
|
log "baseline ended: $(python3 -c "import json;print(len(json.load(open('runs/stage1/baseline.json'))['tasks']))") tasks"
|
|
osascript -e 'display notification "Baseline (11 tasks) ended" with title "stage1"'
|