generated from allenai/python-package-template
-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathexample_config.jsonnet
38 lines (30 loc) · 1.08 KB
/
example_config.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
/*--------------------------------------- Configurations -----------------------------------------*/
local utils = import 'utils.libsonnet';
local gen_tasks = import 'task_sets/gen_tasks.libsonnet';
//❗other task sets can be imported here
//❗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 = [
{
model_path: "EleutherAI/pythia-1b",
revision: "step140000", //❗Specify checkpoint if needed
gpus_needed: 1,
//❗Task sets contain default values for prediction_kwargs. These can be overriden for each model here.
prediction_kwargs: {
model_max_length: 2048,
max_batch_tokens: 20480,
limit: 2
}
}
//❗other models can be added here
];
local task_sets = [
gen_tasks.task_set,
//❗other task sets can be added here
];
{
steps: utils.create_pipeline(models, task_sets, gsheet)
}