Download code/scripts/day2.sh from JagritGumber/shortlist: direct link, hf CLI and curl.
- Browser
- Download file 2.45 kB
-
https://huggingface.co/datasets/JagritGumber/shortlist/resolve/main/code/scripts/day2.sh
- Command line
-
hf download hf://datasets/JagritGumber/shortlist/code/scripts/day2.sh
-
curl -L -o day2.sh https://huggingface.co/datasets/JagritGumber/shortlist/resolve/main/code/scripts/day2.sh
2.45 kB
| # The clean run with the fixed harness. Started by a systemd timer right after Beam's daily allowance resets | |
| # (00:00 UTC), inside shortlist.slice (3 GB memory cap). Each stage stops cleanly at the daily limit and | |
| # resumes where it left off when 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/day2.log" | |
| RUN=day2 | |
| echo "== start $(date -u)" >> "$LOG" | |
| # The small model, on the CPU, for the single-answer tasks. | |
| (cd vendor/llama/llama-b11968 && LD_LIBRARY_PATH=. exec ./llama-server -m ../../models/Qwen3-0.6B-Q8_0.gguf --jinja \ | |
| -c 8192 -np 2 -t 6 --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 | |
| RG="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" | |
| OFFICIAL="connect4_env,connect4_env-patched,maze_env,grid_world_env,fraud_triage_env,wildfire_env,snake_env,chess_env,os:tic_tac_toe,os:catch,os:blackjack,os:kuhn_poker,os:2048,os:cliff_walking,pelican_svg_env,dipg_safety_env,dipg_safety_env-brackets,sophistry_bench_sprint_env" | |
| echo "== 1. Reasoning Gym: floors, small model, Beam low $(date -u)" >> "$LOG" | |
| "$DX" run -q -- "$PY" scripts/ladder.py --suites "$RG" --tiers null,random,small,beam-low --run $RUN --suite-parallel 2 >> "$LOG" 2>&1 | |
| kill $SMALL 2>/dev/null | |
| echo "== 2. Official environments: floors, Beam low $(date -u)" >> "$LOG" | |
| "$DX" run -q -- "$PY" scripts/ladder.py --suites "$OFFICIAL" --tiers null,random,beam-low --run $RUN --suite-parallel 2 >> "$LOG" 2>&1 | |
| echo "== 3. Beam writes setups for the top census survivors $(date -u)" >> "$LOG" | |
| "$DX" run -q -- "$PY" scripts/setup_env.py --limit 20 >> "$LOG" 2>&1 | |
| echo "== 4. Community survivors: floors, Beam low $(date -u)" >> "$LOG" | |
| HUB=$("$PY" -c " | |
| import json, pathlib | |
| ok = [json.loads(p.read_text()) for p in sorted(pathlib.Path('runs/hub/setups').glob('*.json'))] | |
| print(','.join('hub:' + s['space'] for s in ok if not s.get('error')))") | |
| [ -n "$HUB" ] && "$DX" run -q -- "$PY" scripts/ladder.py --suites "$HUB" --tiers null,random,beam-low --attempts beam-low=2 --run $RUN --suite-parallel 3 >> "$LOG" 2>&1 | |
| echo "== done $(date -u)" >> "$LOG" | |