generated from allenai/python-package-template
-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathmmlu_tasks.libsonnet
24 lines (14 loc) · 1.86 KB
/
mmlu_tasks.libsonnet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
local task_utils = import 'task_utils.libsonnet';
local name = "mmlu";
local task_names = ["mmlu_abstract_algebra", "mmlu_anatomy", "mmlu_astronomy", "mmlu_business_ethics", "mmlu_clinical_knowledge", "mmlu_college_biology", "mmlu_college_chemistry", "mmlu_college_computer_science", "mmlu_college_mathematics", "mmlu_college_medicine", "mmlu_college_physics", "mmlu_computer_security", "mmlu_conceptual_physics", "mmlu_econometrics", "mmlu_electrical_engineering", "mmlu_elementary_mathematics", "mmlu_formal_logic", "mmlu_global_facts", "mmlu_high_school_biology", "mmlu_high_school_chemistry", "mmlu_high_school_computer_science", "mmlu_high_school_european_history", "mmlu_high_school_geography", "mmlu_high_school_government_and_politics", "mmlu_high_school_macroeconomics", "mmlu_high_school_mathematics", "mmlu_high_school_microeconomics", "mmlu_high_school_physics", "mmlu_high_school_psychology", "mmlu_high_school_statistics", "mmlu_high_school_us_history", "mmlu_high_school_world_history", "mmlu_human_aging", "mmlu_human_sexuality", "mmlu_international_law", "mmlu_jurisprudence", "mmlu_logical_fallacies", "mmlu_machine_learning", "mmlu_management", "mmlu_marketing", "mmlu_medical_genetics", "mmlu_miscellaneous", "mmlu_moral_disputes", "mmlu_moral_scenarios", "mmlu_nutrition", "mmlu_philosophy", "mmlu_prehistory", "mmlu_professional_accounting", "mmlu_professional_law", "mmlu_professional_medicine", "mmlu_professional_psychology", "mmlu_public_relations", "mmlu_security_studies", "mmlu_sociology", "mmlu_us_foreign_policy", "mmlu_virology", "mmlu_world_religions"];
local prediction_kwargs = {
split: "validation",
limit: 1000,
num_shots: 0,
num_recorded_inputs: 3,
model_max_length: task_utils.model_max_length
};
local task_kwargs = {};
{
task_set: task_utils.create_task_set_from_task_names(name, task_names, prediction_kwargs, task_kwargs)
}