farguney commited on
Commit
b25ea25
·
verified ·
1 Parent(s): 6d55c40

Upload run.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. run.sh +18 -8
run.sh CHANGED
@@ -1,5 +1,7 @@
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
@@ -13,14 +15,22 @@ 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 ==="
 
1
  #!/usr/bin/env bash
2
+ # CI ARC-AGI-3 offline run on HF Jobs, COMPACT-STATE build.
3
+ # Goal: confirm a single GeneralCIAgent decision now COMPLETES (was intractable
4
+ # at ~70003-leaf raw-field state) and capture the scorecard.
5
  set -e
6
  echo "=== ENV ==="
7
  python --version
 
15
  python -c "import arc_agi, arcengine; print('IMPORT_OK arc_agi', arc_agi.__file__)"
16
  echo "=== CONFIG VALIDATE ==="
17
  ci config validate --config configs/arc.offline.toml
18
+ echo "=== RUN OFFLINE (compact modeled state; 600s cap) ==="
19
  set +e
20
+ START=$(date +%s)
21
+ timeout 600 ci run --config configs/arc.offline.toml --output /work/out > /work/run.log 2>&1
22
+ RUN_EXIT=$?
23
+ END=$(date +%s)
24
+ echo "RUN_EXIT ${RUN_EXIT} ELAPSED_S $((END-START))"
25
+ echo "=== LAST 120 LOG LINES ==="
26
+ tail -120 /work/run.log
27
  echo "=== OUTPUT TREE ==="
28
+ find /work/out -type f 2>/dev/null | head -160
29
+ echo "=== TURN / TRACE SIGNALS (evidence a decision completed) ==="
30
+ grep -rIoh "\"turn_index\"[: ]*[0-9]*" /work/out 2>/dev/null | sort | uniq -c | tail -20
31
+ grep -rIoh "CERTIFICATE_ISSUED\|PLAN_PROPOSED\|BELIEF_COMMITTED\|ACTION_EMITTED\|EVIDENCE_UPDATED" /work/out 2>/dev/null | sort | uniq -c
32
  echo "=== JSON ARTIFACTS (head) ==="
33
+ for f in $(find /work/out -name "*.json" 2>/dev/null); do echo "--- $f ---"; head -c 4000 "$f"; echo; done
34
+ echo "=== SCORECARD / SCORE GREP ==="
35
+ grep -rIn "levels_completed\|aggregate\|official_arc\|scorecard\|\"score\"" /work/out 2>/dev/null | head -60
36
  echo "=== DONE ==="