forked from clembench/clembench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel_runner.sh
executable file
·38 lines (31 loc) · 964 Bytes
/
model_runner.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
MODELS=(
"local-llama-70b"
)
EXPERIMENTS=(
"full_game"
"full_no_special_cards"
"short_no_reprompting"
"short_pos1_easy"
"short_pos1_hard"
"short_pos2_easy"
"short_pos2_hard"
"short_pos3_easy"
"short_pos3_hard"
)
function make_run_with_models() {
# Convert argument list into a local array
local MODELS=("$@")
for model in "${MODELS[@]}"; do
# first make the single run with the programmatic player
echo "Make programmatic run with: $model"
python3 scripts/cli.py run -g wizardsapprentice -e full_programmatic2 -m "$model" programmatic programmatic
# next: start a loop over all experiments
for experiment in "${EXPERIMENTS[@]}"; do
# now make a run for each experiment with the custom player
echo "Make custom run with: $model for $experiment."
python3 -u scripts/cli.py run -g wizardsapprentice -e $experiment -m $model custom custom
done
done
}
make_run_with_models "${MODELS[@]}"