Muennighoff commited on
Commit
1377e66
1 Parent(s): e549664

Create eval_bloom.sh

Browse files
Files changed (1) hide show
  1. eval_bloom.sh +102 -0
eval_bloom.sh ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ #SBATCH --nodes=1
3
+ #SBATCH --ntasks-per-node=1
4
+ #SBATCH --cpus-per-task=32
5
+ #SBATCH --mem=256G
6
+ #SBATCH -p small-g
7
+ #SBATCH -t 24:00:00
8
+ #SBATCH --gpus-per-node=mi250:1
9
+ #SBATCH --exclusive=user
10
+ #SBATCH --hint=nomultithread
11
+ #SBATCH --account=project_462000241
12
+ #SBATCH -o logs/%j.out
13
+ #SBATCH -e logs/%j.err
14
+
15
+ source /pfs/lustrep2/scratch/project_462000241/muennighoff/lmevallatest/venv/bin/activate
16
+
17
+ cd /pfs/lustrep2/scratch/project_462000241/muennighoff/
18
+
19
+ export HF_DATASETS_OFFLINE=1
20
+ export HF_DATASETS_CACHE=/pfs/lustrep2/scratch/project_462000185/muennighoff/ds_cache
21
+
22
+ # Evaluation to run
23
+ CONFIGS=(
24
+ bigbench_analogies
25
+ bigbench_arithmetic_1_digit_addition
26
+ bigbench_arithmetic_1_digit_division
27
+ bigbench_arithmetic_1_digit_multiplication
28
+ bigbench_arithmetic_1_digit_subtraction
29
+ bigbench_arithmetic_2_digit_addition
30
+ bigbench_arithmetic_2_digit_division
31
+ bigbench_arithmetic_2_digit_multiplication
32
+ bigbench_arithmetic_2_digit_subtraction
33
+ bigbench_arithmetic_3_digit_addition
34
+ bigbench_arithmetic_3_digit_division
35
+ bigbench_arithmetic_3_digit_multiplication
36
+ bigbench_arithmetic_3_digit_subtraction
37
+ bigbench_arithmetic_4_digit_addition
38
+ bigbench_arithmetic_4_digit_division
39
+ bigbench_arithmetic_4_digit_multiplication
40
+ bigbench_arithmetic_4_digit_subtraction
41
+ bigbench_arithmetic_5_digit_addition
42
+ bigbench_arithmetic_5_digit_division
43
+ bigbench_arithmetic_5_digit_multiplication
44
+ bigbench_arithmetic_5_digit_subtraction
45
+ bigbench_cause_and_effect_one_sentence
46
+ bigbench_cause_and_effect_one_sentence_no_prompt
47
+ bigbench_cause_and_effect_two_sentences
48
+ bigbench_emotions
49
+ bigbench_empirical_judgments
50
+ bigbench_general_knowledge
51
+ bigbench_hhh_alignment_harmless
52
+ bigbench_hhh_alignment_helpful
53
+ bigbench_hhh_alignment_honest
54
+ bigbench_hhh_alignment_other
55
+ bigbench_intent_recognition
56
+ bigbench_misconceptions
57
+ bigbench_paraphrase
58
+ bigbench_sentence_ambiguity
59
+ bigbench_similarities_abstraction
60
+ )
61
+
62
+ # Iterate through all possible combinations of config and run the jobs
63
+ for ((i=0; i<${#CONFIGS[@]}; i++)); do
64
+ eval_script="./eval_$i.slurm"
65
+ OUTPUT_PATH=results/bloom_finnish_176B_${CONFIGS[$i]}.json
66
+ cat <<EOT > $eval_script
67
+ #!/bin/bash
68
+ #SBATCH --nodes=1
69
+ #SBATCH --ntasks-per-node=1
70
+ #SBATCH -p standard-g
71
+ #SBATCH -t 48:00:00
72
+ #SBATCH --gpus-per-node=mi250:8
73
+ #SBATCH --exclusive=user
74
+ #SBATCH --hint=nomultithread
75
+ #SBATCH --account=project_462000241
76
+ #SBATCH -o logs/%j.out
77
+ #SBATCH -e logs/%j.err
78
+
79
+ source /pfs/lustrep2/scratch/project_462000241/muennighoff/lmevallatest/venv/bin/activate
80
+
81
+ cd /pfs/lustrep2/scratch/project_462000241/muennighoff/lmevallatest/lm-evaluation-harness
82
+
83
+ export HF_DATASETS_OFFLINE=1
84
+ export HF_DATASETS_CACHE=/pfs/lustrep2/scratch/project_462000185/muennighoff/ds_cache
85
+
86
+ python main.py \
87
+ --model hf-causal \
88
+ --model_args pretrained=bloom \
89
+ --tasks ${CONFIGS[$i]} \
90
+ --device cuda:0 \
91
+ --output_path $OUTPUT_PATH \
92
+ --no_cache
93
+ echo "END TIME: $(date)"
94
+ EOT
95
+ # Submit the job
96
+ sbatch $eval_script
97
+ # Sleep for a bit to avoid hitting the job submission limit
98
+ sleep 0.1
99
+ done
100
+
101
+
102
+ echo "END TIME: $(date)"