feliksier commited on
Commit
dbce065
·
verified ·
1 Parent(s): 8589a5e

Upload job_entry.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. job_entry.sh +9 -9
job_entry.sh CHANGED
@@ -1,12 +1,18 @@
1
  #!/usr/bin/env bash
2
- # Job entry script for HF Jobs. Runs inside the container.
3
- # /workspace is the read-only mount of the paper directory (contains repro.py + JustGRPO/).
4
  set -e
5
  echo "=== Job started ==="
6
  nvidia-smi --query-gpu=name,memory.total --format=csv 2>/dev/null || echo "no nvidia-smi"
7
  echo "Python: $(python --version)"
8
 
9
- cd /workspace
 
 
 
 
 
 
10
 
11
  echo "=== Installing dependencies ==="
12
  pip install --no-input --quiet \
@@ -30,12 +36,6 @@ print('imports OK; math_equal test:', math_equal('42','42'))
30
  " 2>&1 | tail -10
31
 
32
  echo "=== Running repro (C1+C2+C3) ==="
33
- # Budget-safe subsets on A100:
34
- # C1: GSM8K 200 ex (parallel block_length=32) ~ the 89.1% headline
35
- # C2a: GSM8K 100 ex AR mode (block_length=1) ~ parallel-decoding retained
36
- # C2b: MATH-500 100 ex ~ math reasoning
37
- # C2c: HumanEval 80 ex ~ coding reasoning
38
- # C3: Pass@k 20 problems, k=4, AR vs AO ~ solution coverage collapse
39
  python repro.py --claim all \
40
  --ckpt_path nzl-thu/LLaDA-Instruct-JustGRPO-GSM8K \
41
  --math500_ckpt nzl-thu/LLaDA-Instruct-JustGRPO-Math500 \
 
1
  #!/usr/bin/env bash
2
+ # Self-contained job entry script (no volume mount needed).
3
+ # Clones JustGRPO from GitHub + downloads repro.py from HF dataset.
4
  set -e
5
  echo "=== Job started ==="
6
  nvidia-smi --query-gpu=name,memory.total --format=csv 2>/dev/null || echo "no nvidia-smi"
7
  echo "Python: $(python --version)"
8
 
9
+ mkdir -p /workspace && cd /workspace
10
+
11
+ echo "=== Cloning JustGRPO repo ==="
12
+ git clone --depth 1 https://github.com/LeapLabTHU/JustGRPO 2>&1 | tail -2
13
+
14
+ echo "=== Downloading repro.py + job_entry.sh from HF dataset ==="
15
+ hf download feliksier/justgrpo-repro-code --repo-type dataset --local-dir /workspace 2>&1 | tail -3
16
 
17
  echo "=== Installing dependencies ==="
18
  pip install --no-input --quiet \
 
36
  " 2>&1 | tail -10
37
 
38
  echo "=== Running repro (C1+C2+C3) ==="
 
 
 
 
 
 
39
  python repro.py --claim all \
40
  --ckpt_path nzl-thu/LLaDA-Instruct-JustGRPO-GSM8K \
41
  --math500_ckpt nzl-thu/LLaDA-Instruct-JustGRPO-Math500 \