generated from allenai/python-package-template
-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy patheval_table.jsonnet
61 lines (51 loc) · 1.54 KB
/
eval_table.jsonnet
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*--------------------------------------- Configurations -----------------------------------------*/
local utils = import 'utils.libsonnet';
local standard = import 'task_sets/standard_benchmarks.libsonnet';
local mmlu = import 'task_sets/mmlu_tasks.libsonnet';
//❗Set gsheet to the name of your google sheet.
// Set it to null if you do not want your results to be uploaded to a google sheet (they will still be saved as an object).
//local gsheet = "auto-gsheet-test";
local gsheet = null;
// Models to evaluate
local models_to_eval = ["tiiuae/falcon-7b", "mosaicml/mpt-7b", "meta-llama/Llama-2-7b-hf", "meta-llama/Llama-2-13b-hf"]
local models = [
{
model_path: "tiiuae/falcon-7b",
gpus_needed: 1,
prediction_kwargs: {
model_max_length: 2048,
max_batch_tokens: 20480,
}
},
{
model_path: "mosaicml/mpt-7b",
gpus_needed: 1,
prediction_kwargs: {
model_max_length: 2048,
max_batch_tokens: 20480,
}
},
{
model_path: "meta-llama/Llama-2-7b-hf",
gpus_needed: 1,
prediction_kwargs: {
model_max_length: 2048,
max_batch_tokens: 20480,
}
},
{
model_path: "meta-llama/Llama-2-13b-hf",
gpus_needed: 2,
prediction_kwargs: {
model_max_length: 2048,
max_batch_tokens: 20480,
}
}
];
local task_sets = [
standard_benchmarks.task_set,
mmlu_tasks.task_set
];
{
steps: utils.create_pipeline(models, task_sets, gsheet)
}