File tree Expand file tree Collapse file tree 6 files changed +7
-8
lines changed Expand file tree Collapse file tree 6 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 8
8
9
9
set -x -e
10
10
source ~ /.bashrc
11
- conda activate openr1
12
-
11
+ source openr1/bin/activate
13
12
TASK_NAME=$1
14
13
TASKS=$2
15
14
MODEL_ID=$3
31
30
32
31
LM_EVAL_REPO_ID=" open-r1/open-r1-eval-leaderboard"
33
32
MODEL_NAME=$( echo $MODEL_ID | sed ' s/\//_/g' ) # replaces / with _
34
- DETAILS_REPO_ID=" open-r1// details-$MODEL_NAME "
33
+ DETAILS_REPO_ID=" open-r1/details-$MODEL_NAME "
35
34
OUTPUT_DIR=" eval_results/$MODEL_ID /$MODEL_REVISION /$TASK_NAME "
36
35
# We need this flag since we run this script from training jobs that use DeepSpeed and the env vars get progated which causes errors during evaluation
37
36
ACCELERATE_USE_DEEPSPEED=false
Original file line number Diff line number Diff line change 14
14
set -x -e
15
15
16
16
source ~ /.bashrc
17
- conda activate openr1
17
+ source openr1/bin/activate
18
18
module load cuda/12.1
19
19
echo " START TIME: $( date) "
20
20
echo " PYTHON ENV: $( which python) "
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ export LD_LIBRARY_PATH=.venv/lib/python3.11/site-packages/nvidia/nvjitlink/lib
129
129
echo " SLURM_JOB_ID: $SLURM_JOB_ID "
130
130
echo " SLURM_JOB_NODELIST: $SLURM_JOB_NODELIST "
131
131
132
- source .venv /bin/activate
132
+ source openr1 /bin/activate
133
133
134
134
# Getting the node names
135
135
nodes=$( scontrol show hostnames " $SLURM_JOB_NODELIST " )
Original file line number Diff line number Diff line change 11
11
set -x -e
12
12
13
13
source ~ /.bashrc
14
- conda activate openr1
14
+ source openr1/bin/activate
15
15
echo " START TIME: $( date) "
16
16
echo " PYTHON ENV: $( which python) "
17
17
Original file line number Diff line number Diff line change 11
11
set -x -e
12
12
13
13
source ~ /.bashrc
14
- conda activate openr1
14
+ source openr1/bin/activate
15
15
echo " START TIME: $( date) "
16
16
echo " PYTHON ENV: $( which python) "
17
17
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class ScriptArguments:
39
39
40
40
def main ():
41
41
parser = HfArgumentParser (ScriptArguments )
42
- args = parser .parse ()
42
+ args = parser .parse_args_into_dataclasses ()[ 0 ]
43
43
44
44
if all (file .endswith (".json" ) for file in args .data_files ):
45
45
ds = load_dataset ("json" , data_files = args .data_files )
You can’t perform that action at this time.
0 commit comments