farguney commited on
Commit
ce12785
·
verified ·
1 Parent(s): 77602e3

Upload run.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. run.sh +26 -0
run.sh ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # CI ARC-AGI-3 offline baseline run on HF Jobs (Linux; fast matplotlib import).
3
+ set -e
4
+ echo "=== ENV ==="
5
+ python --version
6
+ mkdir -p /work && cd /work
7
+ echo "=== EXTRACT PAYLOAD ==="
8
+ tar xzf /data/ci_payload.tgz
9
+ ls -1
10
+ echo "=== INSTALL (CI + arc-0-9-9 extra) ==="
11
+ pip install -q -e ".[arc-0-9-9]"
12
+ echo "=== IMPORT CHECK ==="
13
+ python -c "import arc_agi, arcengine; print('IMPORT_OK arc_agi', arc_agi.__file__)"
14
+ echo "=== CONFIG VALIDATE ==="
15
+ ci config validate --config configs/arc.offline.toml
16
+ echo "=== RUN OFFLINE (default game_id=simplemaze-opensource) ==="
17
+ set +e
18
+ timeout 1500 ci run --config configs/arc.offline.toml --output /work/out
19
+ echo "RUN_EXIT $?"
20
+ echo "=== OUTPUT TREE ==="
21
+ find /work/out -type f 2>/dev/null | head -120
22
+ echo "=== JSON ARTIFACTS (head) ==="
23
+ for f in $(find /work/out -name "*.json" 2>/dev/null); do echo "--- $f ---"; head -c 6000 "$f"; echo; done
24
+ echo "=== SCORECARD GREP ==="
25
+ grep -rIl "scorecard\|aggregate_score\|levels_completed\|official_arc" /work/out 2>/dev/null | head
26
+ echo "=== DONE ==="