diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/_default_template_yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/_default_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..37e8bb16490fce1ca376d6f13027adab3e6061f5 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/_default_template_yaml @@ -0,0 +1,15 @@ +dataset_path: hails/mmlu_no_train # a copy of `cais/mmlu` with no auxiliary_train split +test_split: test +fewshot_split: dev +fewshot_config: + sampler: first_n +output_type: multiple_choice +doc_to_text: "{{question.strip()}}\nA. {{choices[0]}}\nB. {{choices[1]}}\nC. {{choices[2]}}\nD. {{choices[3]}}\nAnswer:" +doc_to_choice: ["A", "B", "C", "D"] +doc_to_target: answer +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 0.0 diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_abstract_algebra.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_abstract_algebra.yaml new file mode 100644 index 0000000000000000000000000000000000000000..90f3cc50b3f8e54b584237edfa50fcdc96d0e625 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_abstract_algebra.yaml @@ -0,0 +1,8 @@ +"dataset_name": "abstract_algebra" +"description": "The following are multiple choice questions (with answers) about abstract\ + \ algebra.\n\n" +"group": "mmlu_stem" +"group_alias": "stem" +"include": "_default_template_yaml" +"task": "mmlu_abstract_algebra" +"task_alias": "abstract_algebra" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_anatomy.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_anatomy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0e9e09b27fa40e222d6284c58826a089391e1bb4 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_anatomy.yaml @@ -0,0 +1,8 @@ +"dataset_name": "anatomy" +"description": "The following are multiple choice questions (with answers) about anatomy.\n\ + \n" +"group": "mmlu_stem" +"group_alias": "stem" +"include": "_default_template_yaml" +"task": "mmlu_anatomy" +"task_alias": "anatomy" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_astronomy.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_astronomy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e3bdfc9521f3b98bf684a1c022f69e3c14c9d406 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_astronomy.yaml @@ -0,0 +1,8 @@ +"dataset_name": "astronomy" +"description": "The following are multiple choice questions (with answers) about astronomy.\n\ + \n" +"group": "mmlu_stem" +"group_alias": "stem" +"include": "_default_template_yaml" +"task": "mmlu_astronomy" +"task_alias": "astronomy" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_business_ethics.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_business_ethics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ea0d1fe2a68cb893759f3c550775ff3554f4fc13 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_business_ethics.yaml @@ -0,0 +1,8 @@ +"dataset_name": "business_ethics" +"description": "The following are multiple choice questions (with answers) about business\ + \ ethics.\n\n" +"group": "mmlu_other" +"group_alias": "other" +"include": "_default_template_yaml" +"task": "mmlu_business_ethics" +"task_alias": "business_ethics" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_clinical_knowledge.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_clinical_knowledge.yaml new file mode 100644 index 0000000000000000000000000000000000000000..20bab1470e8b58b9e56652edf8128a4e7959bd33 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_clinical_knowledge.yaml @@ -0,0 +1,8 @@ +"dataset_name": "clinical_knowledge" +"description": "The following are multiple choice questions (with answers) about clinical\ + \ knowledge.\n\n" +"group": "mmlu_other" +"group_alias": "other" +"include": "_default_template_yaml" +"task": "mmlu_clinical_knowledge" +"task_alias": "clinical_knowledge" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_college_biology.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_college_biology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..afb4d9c6c0d209644806ca8376a25cf28d6fa2ed --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_college_biology.yaml @@ -0,0 +1,8 @@ +"dataset_name": "college_biology" +"description": "The following are multiple choice questions (with answers) about college\ + \ biology.\n\n" +"group": "mmlu_stem" +"group_alias": "stem" +"include": "_default_template_yaml" +"task": "mmlu_college_biology" +"task_alias": "college_biology" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_college_chemistry.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_college_chemistry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a7de3532359a418dc0d1ba8f9096700e2a888907 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_college_chemistry.yaml @@ -0,0 +1,8 @@ +"dataset_name": "college_chemistry" +"description": "The following are multiple choice questions (with answers) about college\ + \ chemistry.\n\n" +"group": "mmlu_stem" +"group_alias": "stem" +"include": "_default_template_yaml" +"task": "mmlu_college_chemistry" +"task_alias": "college_chemistry" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_college_computer_science.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_college_computer_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9786cc6ebd0d14936bb0138d322161b01a4574dd --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_college_computer_science.yaml @@ -0,0 +1,8 @@ +"dataset_name": "college_computer_science" +"description": "The following are multiple choice questions (with answers) about college\ + \ computer science.\n\n" +"group": "mmlu_stem" +"group_alias": "stem" +"include": "_default_template_yaml" +"task": "mmlu_college_computer_science" +"task_alias": "college_computer_science" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_college_mathematics.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_college_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e7699f8bfcedffdcc83984f96c6d337f41135b54 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_college_mathematics.yaml @@ -0,0 +1,8 @@ +"dataset_name": "college_mathematics" +"description": "The following are multiple choice questions (with answers) about college\ + \ mathematics.\n\n" +"group": "mmlu_stem" +"group_alias": "stem" +"include": "_default_template_yaml" +"task": "mmlu_college_mathematics" +"task_alias": "college_mathematics" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_college_medicine.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_college_medicine.yaml new file mode 100644 index 0000000000000000000000000000000000000000..df9e890136328d4caf3ca3c4715919358dcf92dc --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_college_medicine.yaml @@ -0,0 +1,8 @@ +"dataset_name": "college_medicine" +"description": "The following are multiple choice questions (with answers) about college\ + \ medicine.\n\n" +"group": "mmlu_other" +"group_alias": "other" +"include": "_default_template_yaml" +"task": "mmlu_college_medicine" +"task_alias": "college_medicine" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_college_physics.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_college_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3c5e7462e3fefe122e9df4bb5ff9458f8ae9dfc8 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_college_physics.yaml @@ -0,0 +1,8 @@ +"dataset_name": "college_physics" +"description": "The following are multiple choice questions (with answers) about college\ + \ physics.\n\n" +"group": "mmlu_stem" +"group_alias": "stem" +"include": "_default_template_yaml" +"task": "mmlu_college_physics" +"task_alias": "college_physics" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_conceptual_physics.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_conceptual_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8ab59ed10f1cf02f47eacf7930a9efcbfc230fcf --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_conceptual_physics.yaml @@ -0,0 +1,8 @@ +"dataset_name": "conceptual_physics" +"description": "The following are multiple choice questions (with answers) about conceptual\ + \ physics.\n\n" +"group": "mmlu_stem" +"group_alias": "stem" +"include": "_default_template_yaml" +"task": "mmlu_conceptual_physics" +"task_alias": "conceptual_physics" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_electrical_engineering.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_electrical_engineering.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9c45cc6109d2b53322b2303efcb1f57e99d8d60c --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_electrical_engineering.yaml @@ -0,0 +1,8 @@ +"dataset_name": "electrical_engineering" +"description": "The following are multiple choice questions (with answers) about electrical\ + \ engineering.\n\n" +"group": "mmlu_stem" +"group_alias": "stem" +"include": "_default_template_yaml" +"task": "mmlu_electrical_engineering" +"task_alias": "electrical_engineering" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_formal_logic.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_formal_logic.yaml new file mode 100644 index 0000000000000000000000000000000000000000..689d3d1f87503953be03cd54973d240b64f846f4 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_formal_logic.yaml @@ -0,0 +1,8 @@ +"dataset_name": "formal_logic" +"description": "The following are multiple choice questions (with answers) about formal\ + \ logic.\n\n" +"group": "mmlu_humanities" +"group_alias": "humanities" +"include": "_default_template_yaml" +"task": "mmlu_formal_logic" +"task_alias": "formal_logic" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_global_facts.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_global_facts.yaml new file mode 100644 index 0000000000000000000000000000000000000000..60b5c12921ee2ad1e2200392ecc3ffaef44f4105 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_global_facts.yaml @@ -0,0 +1,8 @@ +"dataset_name": "global_facts" +"description": "The following are multiple choice questions (with answers) about global\ + \ facts.\n\n" +"group": "mmlu_other" +"group_alias": "other" +"include": "_default_template_yaml" +"task": "mmlu_global_facts" +"task_alias": "global_facts" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_biology.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_biology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c7e055dcc8dcfffb2572a8f4ab1770479e84daeb --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_biology.yaml @@ -0,0 +1,8 @@ +"dataset_name": "high_school_biology" +"description": "The following are multiple choice questions (with answers) about high\ + \ school biology.\n\n" +"group": "mmlu_stem" +"group_alias": "stem" +"include": "_default_template_yaml" +"task": "mmlu_high_school_biology" +"task_alias": "high_school_biology" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_chemistry.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_chemistry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8e9421c1a6f7271ddfc87ad099a914f81bc031e9 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_chemistry.yaml @@ -0,0 +1,8 @@ +"dataset_name": "high_school_chemistry" +"description": "The following are multiple choice questions (with answers) about high\ + \ school chemistry.\n\n" +"group": "mmlu_stem" +"group_alias": "stem" +"include": "_default_template_yaml" +"task": "mmlu_high_school_chemistry" +"task_alias": "high_school_chemistry" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_computer_science.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_computer_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..87ec15cc3ad2bcd2d9d1d802389cb9e3d26e5abf --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_computer_science.yaml @@ -0,0 +1,8 @@ +"dataset_name": "high_school_computer_science" +"description": "The following are multiple choice questions (with answers) about high\ + \ school computer science.\n\n" +"group": "mmlu_stem" +"group_alias": "stem" +"include": "_default_template_yaml" +"task": "mmlu_high_school_computer_science" +"task_alias": "high_school_computer_science" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_european_history.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_european_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..be0d696a962c38a9ffb5404ea75cb2d402f10ec0 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_european_history.yaml @@ -0,0 +1,8 @@ +"dataset_name": "high_school_european_history" +"description": "The following are multiple choice questions (with answers) about high\ + \ school european history.\n\n" +"group": "mmlu_humanities" +"group_alias": "humanities" +"include": "_default_template_yaml" +"task": "mmlu_high_school_european_history" +"task_alias": "high_school_european_history" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_geography.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_geography.yaml new file mode 100644 index 0000000000000000000000000000000000000000..57c5261a8be0e498111d834b8787341104f24775 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_geography.yaml @@ -0,0 +1,8 @@ +"dataset_name": "high_school_geography" +"description": "The following are multiple choice questions (with answers) about high\ + \ school geography.\n\n" +"group": "mmlu_social_sciences" +"group_alias": "social_sciences" +"include": "_default_template_yaml" +"task": "mmlu_high_school_geography" +"task_alias": "high_school_geography" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_government_and_politics.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_government_and_politics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2e92f152081e102b07feb394038aa0b30ca827a2 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_government_and_politics.yaml @@ -0,0 +1,8 @@ +"dataset_name": "high_school_government_and_politics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school government and politics.\n\n" +"group": "mmlu_social_sciences" +"group_alias": "social_sciences" +"include": "_default_template_yaml" +"task": "mmlu_high_school_government_and_politics" +"task_alias": "high_school_government_and_politics" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_mathematics.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f7c07a608592709c08d4e2130e9f99abd5058880 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_mathematics.yaml @@ -0,0 +1,8 @@ +"dataset_name": "high_school_mathematics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school mathematics.\n\n" +"group": "mmlu_stem" +"group_alias": "stem" +"include": "_default_template_yaml" +"task": "mmlu_high_school_mathematics" +"task_alias": "high_school_mathematics" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_microeconomics.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_microeconomics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5339a0235cd8e27e51c7292a7cd2201c46cbc2f1 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_microeconomics.yaml @@ -0,0 +1,8 @@ +"dataset_name": "high_school_microeconomics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school microeconomics.\n\n" +"group": "mmlu_social_sciences" +"group_alias": "social_sciences" +"include": "_default_template_yaml" +"task": "mmlu_high_school_microeconomics" +"task_alias": "high_school_microeconomics" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_physics.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0fae0405aa093a0fb2eaea8fa8a48d0e4e220c9a --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_physics.yaml @@ -0,0 +1,8 @@ +"dataset_name": "high_school_physics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school physics.\n\n" +"group": "mmlu_stem" +"group_alias": "stem" +"include": "_default_template_yaml" +"task": "mmlu_high_school_physics" +"task_alias": "high_school_physics" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_psychology.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_psychology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..31ecb18eb91397d2bad070d11d141f3375c66eaf --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_high_school_psychology.yaml @@ -0,0 +1,8 @@ +"dataset_name": "high_school_psychology" +"description": "The following are multiple choice questions (with answers) about high\ + \ school psychology.\n\n" +"group": "mmlu_social_sciences" +"group_alias": "social_sciences" +"include": "_default_template_yaml" +"task": "mmlu_high_school_psychology" +"task_alias": "high_school_psychology" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_human_aging.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_human_aging.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c9e1feb154293d0a75b25837f365ec892756a465 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_human_aging.yaml @@ -0,0 +1,8 @@ +"dataset_name": "human_aging" +"description": "The following are multiple choice questions (with answers) about human\ + \ aging.\n\n" +"group": "mmlu_other" +"group_alias": "other" +"include": "_default_template_yaml" +"task": "mmlu_human_aging" +"task_alias": "human_aging" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_human_sexuality.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_human_sexuality.yaml new file mode 100644 index 0000000000000000000000000000000000000000..715859a1e8ccd52ac406b9f9dcaf4dc80dbaa42f --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_human_sexuality.yaml @@ -0,0 +1,8 @@ +"dataset_name": "human_sexuality" +"description": "The following are multiple choice questions (with answers) about human\ + \ sexuality.\n\n" +"group": "mmlu_social_sciences" +"group_alias": "social_sciences" +"include": "_default_template_yaml" +"task": "mmlu_human_sexuality" +"task_alias": "human_sexuality" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_international_law.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_international_law.yaml new file mode 100644 index 0000000000000000000000000000000000000000..68765225bbee355a00a2d0d3e9a8931624fc45dd --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_international_law.yaml @@ -0,0 +1,8 @@ +"dataset_name": "international_law" +"description": "The following are multiple choice questions (with answers) about international\ + \ law.\n\n" +"group": "mmlu_humanities" +"group_alias": "humanities" +"include": "_default_template_yaml" +"task": "mmlu_international_law" +"task_alias": "international_law" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_logical_fallacies.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_logical_fallacies.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8b12057bc78ffc195b4d016bfdc1c931f08e6267 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_logical_fallacies.yaml @@ -0,0 +1,8 @@ +"dataset_name": "logical_fallacies" +"description": "The following are multiple choice questions (with answers) about logical\ + \ fallacies.\n\n" +"group": "mmlu_humanities" +"group_alias": "humanities" +"include": "_default_template_yaml" +"task": "mmlu_logical_fallacies" +"task_alias": "logical_fallacies" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_management.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_management.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d0cdc812d7e94eb51a9f1d3148b3d51253c1c92a --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_management.yaml @@ -0,0 +1,8 @@ +"dataset_name": "management" +"description": "The following are multiple choice questions (with answers) about management.\n\ + \n" +"group": "mmlu_other" +"group_alias": "other" +"include": "_default_template_yaml" +"task": "mmlu_management" +"task_alias": "management" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_marketing.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_marketing.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a614db2977421ad88dcf4cd963647534f0d23b88 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_marketing.yaml @@ -0,0 +1,8 @@ +"dataset_name": "marketing" +"description": "The following are multiple choice questions (with answers) about marketing.\n\ + \n" +"group": "mmlu_other" +"group_alias": "other" +"include": "_default_template_yaml" +"task": "mmlu_marketing" +"task_alias": "marketing" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_medical_genetics.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_medical_genetics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5d7ce7083bc62f5859988fb76f84c4dc102175e8 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_medical_genetics.yaml @@ -0,0 +1,8 @@ +"dataset_name": "medical_genetics" +"description": "The following are multiple choice questions (with answers) about medical\ + \ genetics.\n\n" +"group": "mmlu_other" +"group_alias": "other" +"include": "_default_template_yaml" +"task": "mmlu_medical_genetics" +"task_alias": "medical_genetics" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_miscellaneous.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_miscellaneous.yaml new file mode 100644 index 0000000000000000000000000000000000000000..77e819cf831fb69381d75a1c039ef9ffaee3028f --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_miscellaneous.yaml @@ -0,0 +1,8 @@ +"dataset_name": "miscellaneous" +"description": "The following are multiple choice questions (with answers) about miscellaneous.\n\ + \n" +"group": "mmlu_other" +"group_alias": "other" +"include": "_default_template_yaml" +"task": "mmlu_miscellaneous" +"task_alias": "miscellaneous" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_moral_disputes.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_moral_disputes.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2df1a1ddb6302f7e563852fdd56cdb0d1668dad1 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_moral_disputes.yaml @@ -0,0 +1,8 @@ +"dataset_name": "moral_disputes" +"description": "The following are multiple choice questions (with answers) about moral\ + \ disputes.\n\n" +"group": "mmlu_humanities" +"group_alias": "humanities" +"include": "_default_template_yaml" +"task": "mmlu_moral_disputes" +"task_alias": "moral_disputes" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_moral_scenarios.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_moral_scenarios.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6da63cb24847aeaf580fc54f701326a187836517 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_moral_scenarios.yaml @@ -0,0 +1,8 @@ +"dataset_name": "moral_scenarios" +"description": "The following are multiple choice questions (with answers) about moral\ + \ scenarios.\n\n" +"group": "mmlu_humanities" +"group_alias": "humanities" +"include": "_default_template_yaml" +"task": "mmlu_moral_scenarios" +"task_alias": "moral_scenarios" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_nutrition.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_nutrition.yaml new file mode 100644 index 0000000000000000000000000000000000000000..df70fbb2de2f40a5cb10a9093d4a0243e45c6ffc --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_nutrition.yaml @@ -0,0 +1,8 @@ +"dataset_name": "nutrition" +"description": "The following are multiple choice questions (with answers) about nutrition.\n\ + \n" +"group": "mmlu_other" +"group_alias": "other" +"include": "_default_template_yaml" +"task": "mmlu_nutrition" +"task_alias": "nutrition" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_philosophy.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_philosophy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9dba09c10ebe140068f8054ee4d391f00682745d --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_philosophy.yaml @@ -0,0 +1,8 @@ +"dataset_name": "philosophy" +"description": "The following are multiple choice questions (with answers) about philosophy.\n\ + \n" +"group": "mmlu_humanities" +"group_alias": "humanities" +"include": "_default_template_yaml" +"task": "mmlu_philosophy" +"task_alias": "philosophy" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_prehistory.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_prehistory.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d787898c62a174ddfd3895da3b164651f30d266b --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_prehistory.yaml @@ -0,0 +1,8 @@ +"dataset_name": "prehistory" +"description": "The following are multiple choice questions (with answers) about prehistory.\n\ + \n" +"group": "mmlu_humanities" +"group_alias": "humanities" +"include": "_default_template_yaml" +"task": "mmlu_prehistory" +"task_alias": "prehistory" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_professional_accounting.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_professional_accounting.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3443c336f2bc8dcf33e03bffa438a0e60a98ad3e --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_professional_accounting.yaml @@ -0,0 +1,8 @@ +"dataset_name": "professional_accounting" +"description": "The following are multiple choice questions (with answers) about professional\ + \ accounting.\n\n" +"group": "mmlu_other" +"group_alias": "other" +"include": "_default_template_yaml" +"task": "mmlu_professional_accounting" +"task_alias": "professional_accounting" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_professional_psychology.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_professional_psychology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ec48a06fe11d98facbf5c4d24e03595ceb2fb2bd --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_professional_psychology.yaml @@ -0,0 +1,8 @@ +"dataset_name": "professional_psychology" +"description": "The following are multiple choice questions (with answers) about professional\ + \ psychology.\n\n" +"group": "mmlu_social_sciences" +"group_alias": "social_sciences" +"include": "_default_template_yaml" +"task": "mmlu_professional_psychology" +"task_alias": "professional_psychology" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_public_relations.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_public_relations.yaml new file mode 100644 index 0000000000000000000000000000000000000000..db36fb498f6886549b420eaee34fb68dddfb126c --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_public_relations.yaml @@ -0,0 +1,8 @@ +"dataset_name": "public_relations" +"description": "The following are multiple choice questions (with answers) about public\ + \ relations.\n\n" +"group": "mmlu_social_sciences" +"group_alias": "social_sciences" +"include": "_default_template_yaml" +"task": "mmlu_public_relations" +"task_alias": "public_relations" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_security_studies.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_security_studies.yaml new file mode 100644 index 0000000000000000000000000000000000000000..072dfd704815409d0a21576fa9620b1b5cb1a15b --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_security_studies.yaml @@ -0,0 +1,8 @@ +"dataset_name": "security_studies" +"description": "The following are multiple choice questions (with answers) about security\ + \ studies.\n\n" +"group": "mmlu_social_sciences" +"group_alias": "social_sciences" +"include": "_default_template_yaml" +"task": "mmlu_security_studies" +"task_alias": "security_studies" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_us_foreign_policy.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_us_foreign_policy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d80ee94adf4fd7b74dc368696924065862b9ce9e --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_us_foreign_policy.yaml @@ -0,0 +1,8 @@ +"dataset_name": "us_foreign_policy" +"description": "The following are multiple choice questions (with answers) about us\ + \ foreign policy.\n\n" +"group": "mmlu_social_sciences" +"group_alias": "social_sciences" +"include": "_default_template_yaml" +"task": "mmlu_us_foreign_policy" +"task_alias": "us_foreign_policy" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_world_religions.yaml b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_world_religions.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8681354f7057d2d3ff2d68a98b3a5e6f23c960cc --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/default/mmlu_world_religions.yaml @@ -0,0 +1,8 @@ +"dataset_name": "world_religions" +"description": "The following are multiple choice questions (with answers) about world\ + \ religions.\n\n" +"group": "mmlu_humanities" +"group_alias": "humanities" +"include": "_default_template_yaml" +"task": "mmlu_world_religions" +"task_alias": "world_religions" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/_mmlu.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/_mmlu.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cb43b0481fb94e877f232a26bd5176dff0e82ab9 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/_mmlu.yaml @@ -0,0 +1,6 @@ +group: mmlu_flan_cot_fewshot +task: + - mmlu_flan_cot_fewshot_stem + - mmlu_flan_cot_fewshot_other + - mmlu_flan_cot_fewshot_social_sciences + - mmlu_flan_cot_fewshot_humanities diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/_mmlu_flan_cot_fewshot_template_yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/_mmlu_flan_cot_fewshot_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..87662b3c17df26e118f09c3779acb013185e9618 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/_mmlu_flan_cot_fewshot_template_yaml @@ -0,0 +1,26 @@ +dataset_path: hails/mmlu_no_train # a copy of `cais/mmlu` with no auxiliary_train split +validation_split: validation +fewshot_split: dev +output_type: generate_until +doc_to_text: "Q: {{question.strip()}}\n(A) {{choices[0]}} (B) {{choices[1]}} (C) {{choices[2]}} (D) {{choices[3]}}\nA: Let's think step by step." +doc_to_target: "{{['(A)', '(B)', '(C)', '(D)'][answer]}}" +filter_list: + - name: "get-answer" + filter: + - function: "regex" + regex_pattern: "(?<=The answer is )(.*)(?=.)" + - function: "take_first" +generation_kwargs: + until: + - "" + do_sample: false + temperature: 0.0 +num_fewshot: 0 +metric_list: + - metric: exact_match + aggregation: mean + higher_is_better: true + ignore_case: true + ignore_punctuation: true +metadata: + version: 0.0 diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_business_ethics.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_business_ethics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9e636af55abfa1ad8c43e6503d6db30c8809a699 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_business_ethics.yaml @@ -0,0 +1,56 @@ +"dataset_name": "business_ethics" +"description": "The following are multiple choice questions (with answers) about business\ + \ ethics.\n\nQ: In contrast to _______, _______ aim to reward favourable behaviour\ + \ by companies. The success of such campaigns have been heightened through the use\ + \ of ___________, which allow campaigns to facilitate the company in achieving _________\ + \ .\n(A) Buycotts, Boycotts, Blockchain technology, Charitable donations (B) Buycotts,\ + \ Boycotts, Digital technology, Increased Sales (C) Boycotts, Buyalls, Blockchain\ + \ technology, Charitable donations (D) Boycotts, Buycotts, Digital technology, Increased\ + \ Sales\nA: Let's think step by step. We refer to Wikipedia articles on business\ + \ ethics for help. The sentence that best uses the possible options above is “In\ + \ contrast to *boycotts*, *buycotts* aim to reward favourable behavior by companies.\ + \ The success of such campaigns have been heightened through the use of *digital\ + \ technology*, which allow campaigns to facilitate the company in achieving *increased\ + \ sales*.” The answer is (D).\n\nQ: _______ is the direct attempt to formally or\ + \ informally manage ethical issues or problems, through specific policies, practices\ + \ and programmes.\n(A) Corporate social responsibility (B) Business ethics management\ + \ (C) Sustainability (D) Environmental management\nA: Let's think step by step.\ + \ We refer to Wikipedia articles on business ethics for help. The direct attempt\ + \ manage ethical issues through specific policies, practices, and programs is business\ + \ ethics management. The answer is (B).\n\nQ: Three contrasting tactics that CSO's\ + \ can engage in to meet their aims are ________ which typically involves research\ + \ and communication, ________, which may involve physically attacking a company's\ + \ operations or ________, often involving some form of _______.\n(A) Non-violent\ + \ direct action, Violent direct action, Indirect action, Boycott (B) Indirect action,\ + \ Instrumental action, Non-violent direct action, Information campaign (C) Indirect\ + \ action, Violent direct action, Non-violent direct-action Boycott (D) Non-violent\ + \ direct action, Instrumental action, Indirect action, Information campaign\nA:\ + \ Let's think step by step. We refer to Wikipedia articles on business ethics for\ + \ help. The sentence that best uses the possible options above is “Three contrasting\ + \ tactics that CSO's can engage in to meet their aims are *indirect action*, which\ + \ typically involves research and communication, *violent direct action*, which\ + \ may involve physically attacking a company's operations or *non-violent direct\ + \ action*, often involving some form of *boycott*.” The answer is (C).\n\nQ: To\ + \ ensure the independence of the non-executive board members, there are a number\ + \ of steps which can be taken, which include non-executives being drawn from _______\ + \ the company, being appointed for a _________ time period as well as being appointed\ + \ _________.\n(A) Outside, Limited, Independently (B) Inside, Limited, Intermittently\ + \ (C) Outside, Unlimited, Intermittently (D) Inside, Unlimited, Independently\n\ + A: Let's think step by step. We refer to Wikipedia articles on business ethics for\ + \ help. The sentence that best uses the possible options above is “To ensure the\ + \ independence of the non-executive board members, there are a number of steps which\ + \ can be taken, which include non-executives being draw from *outside* the company,\ + \ being appointed for a *limited* time period as well as being imported *independently*.\ + \ The answer is (A).\n\nQ: Beyond the business case for engaging in CSR there are\ + \ a number of moral arguments relating to: negative _______, the _______that corporations\ + \ possess and the ________ of business and society.\n(A) Externalities, Power, Independence\ + \ (B) Publicity, Insubstantial resources, Mutual dependence (C) Publicity, Power,\ + \ Independence (D) Externalities, Power, Mutual dependence\nA: Let's think step\ + \ by step. We refer to Wikipedia articles on business ethics for help. The sentence\ + \ that best uses the possible options above is “Beyond the business case for engaging\ + \ the CSR there are a number of moral arguments relating to: negative *externalities*,\ + \ the *power* that corporations possess and the *mutual independence* of business\ + \ and society. The answer is (D).\n\n" +"group": "mmlu_flan_cot_fewshot_other" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_business_ethics" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_biology.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_biology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0cd457768126edb3a90380afaedfc87df73d28cf --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_biology.yaml @@ -0,0 +1,61 @@ +"dataset_name": "college_biology" +"description": "The following are multiple choice questions (with answers) about college\ + \ biology.\n\nQ: Which of the following represents an accurate statement concerning\ + \ arthropods?\n(A) They possess an exoskeleton composed primarily of peptidoglycan.\ + \ (B) They possess an open circulatory system with a dorsal heart. (C) They are\ + \ members of a biologically unsuccessful phylum incapable of exploiting diverse\ + \ habitats and nutrition sources. (D) They lack paired, jointed appendages.\nA:\ + \ Let's think step by step. Peptidoglycan is known to comprise the plasma membrane\ + \ of most bacteria, rather than the exoskeleton of arthropods, which is made of\ + \ chitin, which rules out (A). The answer (C) is false because arthropods are a\ + \ highly successful phylum. Likewise, arthropods have paired, jointed appendages,\ + \ which rules out (D). The only remaining option is (B), as arthropods have an open\ + \ circulatory system with a dorsal tubular heart. The answer is (B).\n\nQ: In a\ + \ given population, 1 out of every 400 people has a cancer caused by a completely\ + \ recessive allele, b. Assuming the population is in Hardy-Weinberg equilibrium,\ + \ which of the following is the expected proportion of individuals who carry the\ + \ b allele but are not expected to develop the cancer?\n(A) 1/400 (B) 19/400 (C)\ + \ 20/400 (D) 38/400\nA: Let's think step by step. According to the Hardy Weinberg\ + \ Law, $p^2 + 2 p q + q^2 = 1$, and $p + q = 1$ where $p$ is the frequency of the\ + \ dominant allele, $q$ is the frequency of the recessive allele, and $p^2$, $q^2$,\ + \ and $2pq$ are the frequencies of dominant homozygous, recessive homozygous, and\ + \ heterozygous individuals, respectively. ​The frequency of the recessive allele\ + \ (q) is $\\sqrt{\frac{1}{400}} = 0.05$. We have $p = 1 - q = 0.95$. The frequency\ + \ of heterozygous individuals is $2pq = 2 \\cdot 0.05 \\cdot 0.95 = 0.095$. The\ + \ number of heterozygous individuals is equal to the frequency of heterozygous individuals\ + \ times the size of the population, or $0.095 * 400 = 38$. So we end up with 38/400.\ + \ The answer is (D).\n\nQ: According to the pressure-flow model of movement of phloem\ + \ contents, photosynthate movement from source to sink is driven by\n(A) an ATP-dependent\ + \ pressure-flow pump (B) a water-pressure potential gradient (C) transpiration (D)\ + \ apoplastic diffusion\nA: Let's think step by step. It is a gradient in water pressure\ + \ that induces the movement of phloem content, which refers to answer (B). The mechanism\ + \ of movement does not rely on metabolism, which rules out (A). Transpiration refers\ + \ to the exhalation of water vapor through plant stomata, and is also not related,\ + \ which rules out (C). While the apoplastic pathway is one of two main pathways\ + \ for water transport in plants, it is not central to the pressure flow model, which\ + \ rules out (D). The answer is (B).\n\nQ: Which of the following contain DNA sequences\ + \ required for the segregation of chromosomes in mitosis and meiosis?\n(A) Telomeres\ + \ (B) Centromeres (C) Nucleosomes (D) Spliceosomes\nA: Let's think step by step.\ + \ The genetic material in Telomeres is not used, which rules out (A). Nucleosomes\ + \ are the repeating subunit that comprises chromatin packed in a cell nucleus, and\ + \ do not specifically refer to DNA sequences necessary for segregating chromosomes\ + \ in cell division, which rules out (C). A spliceosome is a large ribonucleoprotein\ + \ that removes introns from transcribed pre-mRNA rather than governing chromosome\ + \ segregation. Centromeres are directly responsible for segregating chromosomes\ + \ in cell division. The answer is (B).\n\nQ: The presence of homologous structures\ + \ in two different organisms, such as the humerus in the front limb of a human and\ + \ a bird, indicates that\n(A) the human and bird are polyphyletic species (B) a\ + \ human's and bird's evolution is convergent (C) the human and bird belong to a\ + \ clade (D) the human and bird developed by analogy\nA: Let's think step by step.\ + \ Polyphyletic species are organisms that are grouped due to having similar characteristics\ + \ but which do not have a common ancestor. This is not the case for humans and birds,\ + \ which rules out (A). Convergent evolution refers to the indepdendent development\ + \ of similar features in different species at different periods, which is also not\ + \ the case for humans and birds, which rules out (B). Analogy refers to the superficial\ + \ resemblance of structures that have different origins, which is not the case for\ + \ the human and bird forearms, which rules out (D). Humans and birds do belong to\ + \ the same clade - a group of organisms composed of a common ancestor. The answer\ + \ is (C).\n\n" +"group": "mmlu_flan_cot_fewshot_stem" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_college_biology" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_mathematics.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..550da2713a065720b6efe2463928ba7d10b32526 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_mathematics.yaml @@ -0,0 +1,50 @@ +"dataset_name": "college_mathematics" +"description": "The following are multiple choice questions (with answers) about college\ + \ mathematics.\n\nQ: Let V be the set of all real polynomials p(x). Let transformations\ + \ T, S be defined on V by T:p(x) -> xp(x) and S:p(x) -> p'(x) = d/dx p(x), and interpret\ + \ (ST)(p(x)) as S(T(p(x))). Which of the following is true?\n(A) ST = 0 (B) ST =\ + \ T (C) ST = TS (D) ST - TS is the identity map of V onto itself.\nA: Let's think\ + \ step by step. For a given polynomial $p$ we have\n\\[ST(p) = (xp(x))’ = p(x) +\ + \ xp’(x)\\]\nand\n\\[TS(p) = xp’(x).\\]\nHence \\[ST(p) - TS(p) = p(x) + xp’(x)\ + \ - xp’(x).\\] The answer is (D).\n\nQ: Suppose that f(1 + x) = f(x) for all real\ + \ x. If f is a polynomial and f(5) = 11, then f(15/2)\n(A) -11 (B) 0 (C) 11 (D)\ + \ 33/2\nA: Let's think step by step. The only polynomial so that $f(1 + x) = f(x)$\ + \ is a constant polynomial. Hence $f(5) = 11 = f(15/2)$. The answer is (C).\n\n\ + Q: Let A be a real 2x2 matrix. Which of the following statements must be true?\n\ + I. All of the entries of A^2 are nonnegative.\nII. The determinant of A^2 is nonnegative.\n\ + III. If A has two distinct eigenvalues, then A^2 has two distinct eigenvalues.\n\ + (A) I only (B) II only (C) III only (D) II and III only\nA: Let's think step by\ + \ step. We have \\[ det(A^2) = (det(A))^2 \\geq 0,\\] hence II holds.\nIII is false:\ + \ as a counterexample take a diagonal matrix with -1 and 1 on the diagonal. Then\ + \ $A^2$ is the identity matrix. The answer is (B).\n\nQ: Let A be the set of all\ + \ ordered pairs of integers (m, n) such that 7m + 12n = 22. What is the greatest\ + \ negative number in the set B = {m + n : (m, n) \\in A}?\n(A) -5 (B) -4 (C) -3\ + \ (D) -2\nA: Let's think step by step. We have 12n = 22 - 7m and one of the solutions\ + \ is $m = -2$, $n = 3$. Then $m + n = 1$, hence we need to look for smaller $m$\ + \ in order to make $m + n$ negative. The next solution is $m = -14$ and $n = 10$.\ + \ For smaller $m$ we have $m + n$ smaller than $-4$. The answer is (B).\n\nQ: A\ + \ tank initially contains a salt solution of 3 grams of salt dissolved in 100 liters\ + \ of water. A salt solution containing 0.02 grams of salt per liter of water is\ + \ sprayed into the tank at a rate of 4 liters per minute. The sprayed solution is\ + \ continually mixed with the salt solution in the tank, and the mixture flows out\ + \ of the tank at a rate of 4 liters per minute. If the mixing is instantaneous,\ + \ how many grams of salt are in the tank after 100 minutes have elapsed?\n(A) 2\ + \ (B) 2 - e^-2 (C) 2 + e^-2 (D) 2 + e^-4\nA: Let's think step by step. For all $t\ + \ \\in \\mathbb{R}$, let $s(t)$ denote the number grams of salt in the tank at the\ + \ $t$ minute mark. Then $s(0) = 3$.\nWe use $s$ and $s(t)$ interchangeably. We also\ + \ use $s^{\\prime}$ and $s^{\\prime}(t)$ interchangeably. The solution sprayed into\ + \ the tank adds $(0.02) 4=2 / 25$ grams of salt per minute. There are always 100\ + \ liters of liquid in the tank, containing $s$ grams of salt. So the density of\ + \ salt in the tank is $s / 100$ grams per liter. The flow of water out of the tank\ + \ therefore subtracts $4(s / 100)=s / 25$ grams of salt per minute. Then, for all\ + \ $t \\in \\mathbb{R}$, we have $s^{\\prime}(t)=(2 / 25)-(s / 25)=(2-s) / 25$, and\ + \ so $[s(t)=2] \\Rightarrow\\left[s^{\\prime}(t)=0\right]$. For all $t \\in \\mathbb{R}$,\n\ + $$\n\frac{d}{d t}[\\ln (s-2)]=\frac{s^{\\prime}}{s-2}=\frac{-1}{25}=\frac{d}{d t}\\\ + left[-\frac{t}{25}\right] .\n$$\nChoose $C \\in \\mathbb{R}$ such that, for all\ + \ $t \\in \\mathbb{R}, \\ln ((s(t)-2))=-[t / 25]+C$. Let $K:=e^{C}$. Then, for all\ + \ $t \\in \\mathbb{R}$, we have $(s(t))-2=K e^{-t / 25}$, and so $s(t)=2+K e^{-t\ + \ / 25}$. Then $3=s(0)=2+K e^{0}=2+K$, so $K=1$. Then $s(100)=2+K e^{-100 / 25}=2+1\ + \ \\cdot e^{-4}=2+e^{-4}$. The answer is (D).\n\n" +"group": "mmlu_flan_cot_fewshot_stem" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_college_mathematics" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_medicine.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_medicine.yaml new file mode 100644 index 0000000000000000000000000000000000000000..184facde88413fa217d9b363d35839f37bf9992c --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_medicine.yaml @@ -0,0 +1,52 @@ +"dataset_name": "college_medicine" +"description": "The following are multiple choice questions (with answers) about college\ + \ medicine.\n\nQ: An expected side effect of creatine supplementation is:\n(A) muscle\ + \ weakness. (B) gain in body mass. (C) muscle cramps. (D) loss of electrolytes.\n\ + A: Let's think step by step. We refer to Wikipedia articles on medicine for help.\ + \ Creatine supplementation is a dietary supplement that results in body mass gain.\ + \ The answer is (B).\n\nQ: Which of the following is not a true statement?\n(A)\ + \ Muscle glycogen is broken down enzymatically to glucose-1-phosphate (B) Elite\ + \ endurance runners have a high proportion of Type I fibres in their leg muscles\ + \ (C) Liver glycogen is important in the maintenance of the blood glucose concentration\ + \ (D) Insulin promotes glucose uptake by all tissues in the body\nA: Let's think\ + \ step by step. We refer to Wikipedia articles on medicine for help. Let’s solve\ + \ this step by step and go over each choice: \n(A) “Muscle glycogen is broken down\ + \ enzymatically to glucose-1-phosphate”: This is a correct statement.\n(B) “Elite\ + \ endurance runners have a high proportion of Type I fibres in their leg muscles”:\ + \ This is a correct statement.\n(C) “Liver glycogen is important in the maintenance\ + \ of the blood glucose concentration”: This is a correct statement. \n(D) “Insulin\ + \ promotes glucose uptake by all tissues in the body”: This is not a correct statement,\ + \ because insulin promotes glucose uptake by the liver, adipose tissue, and muscle,\ + \ but not all tissues. For instance, the tissues in the brain and red blood cells\ + \ are not affected by insulin. The answer is (D).\n\nQ: A high school science teacher\ + \ fills a 1 liter bottle with pure nitrogen and seals the lid. The pressure is 1.70\ + \ atm, and the room temperature is 25°C. Which two variables will both increase\ + \ the pressure of the system, if all other variables are held constant?\n(A) Increasing\ + \ temperature, increasing moles of gas (B) Increasing temperature, increasing volume\ + \ (C) Decreasing volume, decreasing temperature (D) Decreasing moles of gas, increasing\ + \ volume\nA: Let's think step by step. We refer to Wikipedia articles on medicine\ + \ for help. The relevant equation for this is the ideal gas law: PV=nRT. To increase\ + \ the pressure of the system (P), then either n (number of moles of the gas) or\ + \ T (temperature) have to increase. The answer is (A).\n\nQ: In a genetic test of\ + \ a newborn, a rare genetic disorder is found that has X-linked recessive transmission.\ + \ Which of the following statements is likely true regarding the pedigree of this\ + \ disorder?\n(A) All descendants on the maternal side will have the disorder. (B)\ + \ Females will be approximately twice as affected as males in this family. (C) All\ + \ daughters of an affected male will be affected. (D) There will be equal distribution\ + \ of males and females affected.\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on medicine for help. Let’s solve this step by step. Let's recall first\ + \ that females have two X chromosomes, while males have one X and one Y chromosome.\ + \ This is an important fact we need to know before answering this question. \nBecause\ + \ a male can only pass his only one X chromosome to a daughter, if he is affected\ + \ by this rare genetic disorder, then we know for sure that he will pass this rare\ + \ genetic disorder to all his future-born daughters. Therefore, “(C): All daughters\ + \ of an affected male will be affected” is a correct statement. The answer is (C).\n\ + \nQ: Glucose is transported into the muscle cell:\n(A) via protein transporters\ + \ called GLUT4. (B) only in the presence of insulin. (C) via hexokinase. (D) via\ + \ monocarbylic acid transporters.\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on medicine for help. Glucose (also known as the blood sugar) is the\ + \ main sugar found in the human body. It is transported into the muscle cell via\ + \ diffusion through protein transporters called GLUT4. The answer is (A).\n\n" +"group": "mmlu_flan_cot_fewshot_other" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_college_medicine" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_computer_security.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_computer_security.yaml new file mode 100644 index 0000000000000000000000000000000000000000..943ab5ac8ecf5ba53701763cb1bb18e621600fa4 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_computer_security.yaml @@ -0,0 +1,36 @@ +"dataset_name": "computer_security" +"description": "The following are multiple choice questions (with answers) about computer\ + \ security.\n\nQ: SHA-1 has a message digest of\n(A) 160 bits (B) 512 bits (C) 628\ + \ bits (D) 820 bits\nA: Let's think step by step. Since SHA-1 is a hash function\ + \ which takes an input and produces a 160-bit (20-byte) hash value, its message\ + \ digest is 160 bits. The answer is (A).\n\nQ: _____________ can modify data on\ + \ your system – so that your system doesn’t run correctly or you can no longer access\ + \ specific data, or it may even ask for ransom in order to give your access.\n(A)\ + \ IM – Trojans (B) Backdoor Trojans (C) Trojan-Downloader (D) Ransom Trojan\nA:\ + \ Let's think step by step. The system is asking for trojans, which are for ransom,\ + \ which means ransom trojan. The answer is (D).\n\nQ: What is ethical hacking?\n\ + (A) \"Hacking\" ethics so they justify unintended selfish behavior (B) Hacking systems\ + \ (e.g., during penetration testing) to expose vulnerabilities so they can be fixed,\ + \ rather than exploited (C) Hacking into systems run by those whose ethics you disagree\ + \ with (D) A slang term for rapid software development, e.g., as part of hackathons\n\ + A: Let's think step by step. Ethical hacking is a process of detecting vulnerabilities\ + \ in an application, system, or organization's infrastructure that an attacker can\ + \ use to exploit an individual or organization. They use this process to prevent\ + \ cyberattacks and security breaches by lawfully hacking into the systems and looking\ + \ for weak points. The answer is (B).\n\nQ: The ____________ is anything which your\ + \ search engine cannot search.\n(A) Haunted web (B) World Wide Web (C) Surface web\ + \ (D) Deep Web\nA: Let's think step by step. The search engine searches on the Surface\ + \ Web, which is the portion of the world wide web which is visible so (B,C) are\ + \ wrong. The Haunted Web doesn’t correspond to an internet concept. The Deep Web\ + \ is the part of the World Wide Web which is not indexed. The answer is (D).\n\n\ + Q: Exploitation of the Heartbleed bug permits\n(A) overwriting cryptographic keys\ + \ in memory (B) a kind of code injection (C) a read outside bounds of a buffer (D)\ + \ a format string attack\nA: Let's think step by step. The Heartbleed Bug is a serious\ + \ vulnerability in the popular OpenSSL cryptographic software library. Heartbleed\ + \ resulted from improper input validation (due to a missing bounds check) in the\ + \ implementation of the TLS heartbeat extension. The vulnerability was classified\ + \ as a buffer over-read, a situation where more data can be read than should be\ + \ allowed. The answer is (C).\n\n" +"group": "mmlu_flan_cot_fewshot_stem" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_computer_security" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_econometrics.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_econometrics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4166d9361aba91b6b03e431d3356ceddca5d5fc8 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_econometrics.yaml @@ -0,0 +1,63 @@ +"dataset_name": "econometrics" +"description": "The following are multiple choice questions (with answers) about econometrics.\n\ + \nQ: Suppose now that a researcher wishes to use information criteria to determine\ + \ the optimal lag length for a VAR. 500 observations are available for the bi-variate\ + \ VAR, and the values of the determinant of the variance-covariance matrix of residuals\ + \ are 0.0336, 0.0169, 0.0084, and 0.0062 for 1, 2, 3, and 4 lags respectively. What\ + \ is the optimal model order according to Akaike's information criterion?\n(A) 1\ + \ lag (B) 2 lags (C) 3 lags (D) 4 lags\nA: Let's think step by step. We refer to\ + \ Wikipedia articles on econometrics for help. Let’s solve this problem step by\ + \ step. First of all, let’s recall that for a given set of data, Akaike's information\ + \ criterion (AIC) allows us to measure how well a statistical model fits the data;\ + \ it is an estimator of prediction error. Here in this problem we will need to use\ + \ the formula ln(det(sigma_hat)) + (2 * k / T) to determine the values of Akaike’s\ + \ criterion, where ln denotes the natural log function, det the determinant function,\ + \ k the total number of parameters in total (across both equations), and T the number\ + \ of observations (which, in this case, is equal to 500). For 1 lag, the number\ + \ of parameters in total is equal to 6; for 2 lags, it is 10; for 3 lags, it is\ + \ 14; and for 4 lags, it is 18. Now, let’s calculate the values of the criterion\ + \ for each lag:\n(A) 1 lag: ln(0.0336) + (2 * 6 / 500) = ln(0.0336) + (12 / 500)\ + \ = -3.369\n(B) 2 lags: ln(0.0169) + (2 * 10 / 500) = ln(0.0169) + (20 / 500) =\ + \ -4.040\n(C) 3 lags: ln(0.0084) + (2 * 14 / 500) = ln(0.0084) + (28 / 500) =-4.724\n\ + (D) 4 lags: ln(0.0062) + (2 * 18 / 500) = ln(0.0062) + (36 / 500) =-5.011\nBecause\ + \ the optimal model order according to AIC minimizes the information criterion,\ + \ the answer should be the one with the lowest value. In this case, (D) has the\ + \ lowest value. The answer is (C).\n\nQ: Consider the following AR(1) model with\ + \ the disturbances having zero mean and unit variance\nyt = 0.2 + 0.4 yt-1 + ut\n\ + The (unconditional) mean of y will be given by\n(A) 0.2 (B) 0.4 (C) 0.5 (D) 0.33\n\ + A: Let's think step by step. We refer to Wikipedia articles on econometrics for\ + \ help. Let’s solve this problem step by step. If we have a an AR(1) model with\ + \ the disturbances having zero mean and unit variance, then the unconditional mean\ + \ of y is equal to the following:\nunconditional mean of y = (the intercept term)\ + \ / (1 - autoregressive coefficient)\nWe know that the intercept term is 0.2 and\ + \ the autoregressive coefficient is 0.4; thus, we have:\nunconditional mean of y\ + \ = (0.2) / (1 - 0.4) = (0.2) / (0.6) = 2 / 6 = 1 / 3, which is approximately 0.33.\ + \ That means that the answer should be (D) 0.33. The answer is (D).\n\nQ: What would\ + \ be then consequences for the OLS estimator if heteroscedasticity is present in\ + \ a regression model but ignored?\n(A) It will be biased (B) It will be inconsistent\ + \ (C) It will be inefficient (D) All of (a), (b) and (c) will be true.\nA: Let's\ + \ think step by step. We refer to Wikipedia articles on econometrics for help. Heteroscedasticity\ + \ refers to the condition where the variance of the error terms is not constant\ + \ across multiple observations. If heteroscedasticity is present in a regression\ + \ model, then the coefficient estimates in the OLS estimator will be not only unbiased\ + \ and consistent but also inefficient. Because (A) and (B) are incorrect choices\ + \ and (C) is a correct choice, (D) cannot be the right answer. Ultimately, (C) is\ + \ the only true choice. The answer is (C).\n\nQ: Suppose that a test statistic has\ + \ associated with it a p-value of 0.08. Which one of the following statements is\ + \ true?\n(i) If the size of the test were exactly 8%, we would be indifferent between\ + \ rejecting and not rejecting the null hypothesis\n(ii) The null would be rejected\ + \ if a 10% size of test were used\n(iii) The null would not be rejected if a 1%\ + \ size of test were used\n(iv) The null would be rejected if a 5% size of test were\ + \ used.\n(A) (ii) and (iv) only (B) (i) and (iii) only (C) (i), (ii), and (iii)\ + \ only (D) (i), (ii), (iii), and (iv).\nA: Let's think step by step. We refer to\ + \ Wikipedia articles on econometrics for help. Let’s reason about each of the options.\n\ + (i) is a true statement.\n(ii) is a true statement.\n(iii) is a true statement.\n\ + (iv) is not a true statement. Thus, (i), (ii), and (iii) are true. The answer is\ + \ (C).\n\nQ: For a stationary autoregressive process, shocks will\n(A) Eventually\ + \ die away (B) Persist indefinitely (C) Grow exponentially (D) Never occur\nA: Let's\ + \ think step by step. We refer to Wikipedia articles on econometrics for help. This\ + \ is a formal logic problem about stationally process. For a stationary autoregressive\ + \ process, shocks will eventually die away. The answer is (A).\n\n" +"group": "mmlu_flan_cot_fewshot_social_sciences" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_econometrics" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_electrical_engineering.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_electrical_engineering.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b62118044f92456feb18ecbc460eb97a6c6cb8a9 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_electrical_engineering.yaml @@ -0,0 +1,34 @@ +"dataset_name": "electrical_engineering" +"description": "\nThe following are multiple choice questions (with answers) about\ + \ electrical engineering.\n\nQ: A point pole has a strength of 4π * 10^-4 weber.\ + \ The force in newtons on a point pole of 4π * 1.5 * 10^-4 weber placed at a distance\ + \ of 10 cm from it will be\n(A) 15 N. (B) 20 N. (C) 7.5 N. (D) 3.75 N.\nA: Let's\ + \ think step by step. The force between two point poles is given by m_1m_2/(mu_0\ + \ 4 \\pi r^2), in analogy to Coulomb’s law. Plugging in the values given in the\ + \ question, we calculate that the force is approximately 15 N. The answer is (A).\n\ + \nQ: The coil of a moving coil meter has 100 turns, is 40 mm long and 30 mm wide.\ + \ The control torque is 240*10-6 N-m on full scale. If magnetic flux density is\ + \ 1Wb/m2 range of meter is\n(A) 1 mA. (B) 2 mA. (C) 3 mA. (D) 4 mA.\nA: Let's think\ + \ step by step. The torque on a coil in a uniform magnetic field is given by BANI,\ + \ where B is the magnetic flux density, A is the area of the coil, N is the number\ + \ of turns, and I is the current. So we have that I = (Torque)/(BAN), or 240e-6/(1200e-6\ + \ * 100 * 1) = 2e-3. The answer is (B).\n\nQ: In an SR latch built from NOR gates,\ + \ which condition is not allowed\n(A) S=0, R=0 (B) S=0, R=1 (C) S=1, R=0 (D) S=1,\ + \ R=1\nA: Let's think step by step. An SR latch is a set-reset latch; in the case\ + \ where S=1 and R=1, the circuit has no stable state; instead a race condition will\ + \ be produced within the circuit, so the device will be in an undefined state. So\ + \ S=1, R=1 is an illegal input. The answer is (D).\n\nQ: Two long parallel conductors\ + \ carry 100 A. If the conductors are separated by 20 mm, the force per meter of\ + \ length of each conductor will be\n(A) 100 N. (B) 0.1 N. (C) 1 N. (D) 0.01 N.\n\ + A: Let's think step by step. The magnetic force-per-length between two current-carrying\ + \ conductors is given by \\mu_0 I_1 I_2 / (2 \\pi r), where $r$ is the separation\ + \ distance and I_1 and I_2 are the currents. Plugging in 100 A for I_1 and I_2,\ + \ and 20 mm for r, gives 0.1 N. The answer is (B).\n\nQ: In a 2 pole lap winding\ + \ dc machine , the resistance of one conductor is 2Ω and total number of conductors\ + \ is 100. Find the total resistance\n(A) 200Ω (B) 100Ω (C) 50Ω (D) 10Ω\nA: Let's\ + \ think step by step. In lap winding, effectively two resistors are connected in\ + \ parallel, so the actual resistance of each pair is 1 Ohm. Since we have 50 pairs,\ + \ we get a total resistance of 50 Ohms. The answer is (C).\n\n" +"group": "mmlu_flan_cot_fewshot_stem" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_electrical_engineering" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_global_facts.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_global_facts.yaml new file mode 100644 index 0000000000000000000000000000000000000000..757c34e31c49e7b08854ea5f10be8baf292e3fea --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_global_facts.yaml @@ -0,0 +1,34 @@ +"dataset_name": "global_facts" +"description": "The following are multiple choice questions (with answers) about global\ + \ facts.\n\nQ: As of 2017, how many of the world’s 1-year-old children today have\ + \ been vaccinated against some disease? *\n(A) 80% (B) 60% (C) 40% (D) 20%\nA: Let's\ + \ think step by step. We refer to Wikipedia articles on global facts for help. According\ + \ to data published by the World Health Organization, the nummber of 1-year-old\ + \ children vaccinated in 2017 exceeds 80%. The answer is (A).\n\nQ: As of 2019,\ + \ about what percentage of Americans agree that the state is run for the benefit\ + \ of all the people?\n(A) 31% (B) 46% (C) 61% (D) 76%\nA: Let's think step by step.\ + \ We refer to Wikipedia articles on global facts for help. In 2019, about 46% percentage\ + \ of Americans agree that the state is run for the benefit of all the people. The\ + \ answer is (B).\n\nQ: As of 2019, about what percentage of Russians say it is very\ + \ important to have free media in our country without government/state censorship?\n\ + (A) 38% (B) 53% (C) 68% (D) 83%\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on global facts for help. As of 2019, about 38% of Russians say it is\ + \ very important to have free media in our country. The answer is (A).\n\nQ: As\ + \ of 2015, since 1990 forests have ____ in Europe and have ____ in Africa and the\ + \ Americas.\n(A) increased, increased (B) increased, decreased (C) decreased, increased\ + \ (D) decreased, decreased\nA: Let's think step by step. We refer to Wikipedia articles\ + \ on global facts for help. As of 2015, since 1990 forests have increased in Europe\ + \ and have decreased in Africa and the Americas. The answer is (B).\n\nQ: Which\ + \ of the following pairs of statements are both true (as of 2019)?\n(A) People tend\ + \ to be optimistic about their own future and the future of their nation or the\ + \ world. (B) People tend to be optimistic about their own future but pessimistic\ + \ about the future of their nation or the world. (C) People tend to be pessimistic\ + \ about their own future but optimistic about the future of their nation or the\ + \ world. (D) People tend to be pessimistic about their own future and the future\ + \ of their nation or the world.\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on global facts for help. As of 2019, most people tend to be optimistic\ + \ about their own future but pessimistic about the future of their nation or the\ + \ world. The answer is (B).\n\n" +"group": "mmlu_flan_cot_fewshot_other" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_global_facts" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_statistics.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_statistics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7355cba1388e8b8c405698f7f74f82e63c59dbc1 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_statistics.yaml @@ -0,0 +1,58 @@ +"dataset_name": "high_school_statistics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school statistics.\n\nQ: A new smartwatch is manufactured in one part of a factory,\ + \ then secured for shipping in another, independent part of the factory. The weight\ + \ of the smartwatch has a mean of 62 grams and a standard deviation of 1.0 grams.\ + \ The weight of the packaging (box, user's guide, bubble wrap, etc.) has a mean\ + \ of 456 grams and a standard deviation of 6 grams. Together, the distribution of\ + \ the weight of the smartwatch and its packaging would have the following mean and\ + \ standard deviation:\n(A) Mean 518 grams; standard deviation 7.0 grams (B) Mean\ + \ 518 grams; standard deviation 3.5 grams (C) Mean 518 grams; standard deviation\ + \ 6.1 grams (D) Mean 394 grams; standard deviation 6.1 grams\nA: Let's think step\ + \ by step. Since the weight of the watch and the weight of the packaging are independent\ + \ random variables, the mean and variance of their sum is equal to the sum of their\ + \ individual means and variances. So the mean is 62 + 456 = 518 grams, and the variances\ + \ is 1.0^2 + 6.0^2 = 37, leading to a standard deviation of 6.1 grams. The answer\ + \ is (C).\n\nQ: After a frost warning was issued, the owner of a large orange grove\ + \ asked his workers to spray all his trees with water. The water was supposed to\ + \ freeze and form a protective covering of ice around the orange blossom. Nevertheless,\ + \ the owner suspected that some trees suffered considerable damage due to the frost.\ + \ To estimate the proportion of trees that suffered more than 50 percent damage\ + \ due to the frost, he took a random sample of 100 trees from his grove. What is\ + \ the response variable in this experiment?\n(A) The proportion of trees that suffered\ + \ more than 50 percent damage due to frost. (B) The number of trees affected by\ + \ the frost. (C) The number of trees sampled from the grove. (D) For each sampled\ + \ tree, whether it suffered more than 50 percent damage or at most 50 percent damage.\n\ + A: Let's think step by step. In this experiment, the response variable is what is\ + \ measured. For each tree, what is measured is whether or not it suffered more than\ + \ 50 percent damage due to the frost. The answer is (D).\n\nQ: Suppose X and Y are\ + \ random variables with E(X) = 37, var(X) = 5, E(Y) = 62, and var(Y) = 12. What\ + \ are the expected value and variance of the random variable X + Y?\n(A) E(X + Y)\ + \ = 99, var(X + Y) = 8.5 (B) E(X + Y) = 99, var(X + Y) = 13 (C) E(X + Y) = 99, var(X\ + \ + Y) = 17 (D) There is insufficient information to answer this question.\nA: Let's\ + \ think step by step. While means of sums of random variables add (regardless of\ + \ whether the variables are independent) in order to determine the variance of a\ + \ sum of random variables, we need to know not just their individual variances but\ + \ the covariance of the two variables, which is not given in this problem. The answer\ + \ is (D).\n\nQ: Which of the following sets has the smallest standard deviation?\ + \ Which has the largest?\nI: {1,2,3}\nII: {-10,10}\nIII: {100}\n(A) I, II (B) II,\ + \ III (C) III, I (D) III, II\nA: Let's think step by step. The variance of distribution\ + \ I is the expected squared deviation from its mean (which is 2), so the variance\ + \ is 2/3 . The variance of distribution II is 10^2 (because both elements are 10\ + \ away from the mean of zero). The variance of distribution III is 0, since it has\ + \ a single entry. So distribution III has the smallest standard deviation and distribution\ + \ II has the largest. The answer is (D).\n\nQ: Which of the following is a correct\ + \ statement about correlation?\n(A) If the slope of the regression line is exactly\ + \ 1, then the correlation is exactly 1. (B) If the correlation is 0, then the slope\ + \ of the regression line is undefined. (C) Switching which variable is called x\ + \ and which is called y changes the sign of the correlation. (D) The correlation\ + \ r is equal to the slope of the regression line when z-scores for the y-variable\ + \ are plotted against z-scores for the x-variable.\nA: Let's think step by step.\ + \ Statement A is false because the slope of the regression line being exactly 1\ + \ can occur even when the two variables are not perfectly correlated. Statement\ + \ B is false because uncorrelated variables regression lines can have slope zero.\ + \ Statement C is false because correlation is symmetric in the two random variables.\ + \ The answer is (D).\n\n" +"group": "mmlu_flan_cot_fewshot_stem" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_high_school_statistics" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_us_history.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_us_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..806995bd0c77dc91fed5a61bd6dcc354db5b7312 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_us_history.yaml @@ -0,0 +1,134 @@ +"dataset_name": "high_school_us_history" +"description": "The following are multiple choice questions (with answers) about high\ + \ school us history.\n\nQ: This question refers to the following information.\n\ + I come not to urge personal claims, nor to seek individual benefits; I appear as\ + \ the advocate of those who cannot plead their own cause; I come as the friend of\ + \ those who are deserted, oppressed, and desolate. In the Providence of God, I am\ + \ the voice of the maniac whose piercing cries from the dreary dungeons of your\ + \ jails penetrate not your Halls of Legislation. I am the Hope of the poor crazed\ + \ beings who pine in the cells, and stalls, and cages, and waste rooms of your poor-houses.\ + \ I am the Revelation of hundreds of wailing, suffering creatures, hidden in your\ + \ private dwellings, and in pens and cabins—shut out, cut off from all healing influences,\ + \ from all mind-restoring cares.… Could their melancholy histories be spread before\ + \ you as revealed to my grieved spirit during the last three months, how promptly,\ + \ how earnestly would you search out the most approved means of relief; how trifling,\ + \ how insignificant, by comparison, would appear the sacrifices you are asked to\ + \ make; how would a few dimes and dollars, gathered from each citizen, diminish\ + \ in value as a possession, compared with the certain benefits and vast good to\ + \ be secured for the suffering insane...by the consecration and application of a\ + \ sufficient fund to the construction of a suitable hospital.…\n—Dorothea Dix, Memorial\ + \ Soliciting a State Hospital for the Protection and Cure of the Insane,\nSubmitted\ + \ to the General Assembly of North Carolina, November 1848\nDorothea Dix can best\ + \ be compared to whom?\n(A) Abigail Adams (B) Clara Barton (C) Shirley Temple (D)\ + \ Hillary Clinton\nA: Let's think step by step. We refer to Wikipedia articles on\ + \ us history for help. Both Dorothea Dix and Clara barton are American nurses. The\ + \ answer is (B).\n\nQ: This question refers to the following information.\n\"As\ + \ our late Conduct at the Conestoga Manor and Lancaster have occasioned much Speculation\ + \ & a great diversity of Sentiments in this and neighboring Governments; some vindicating\ + \ & others condemning it; some charitably alleviating the Crime, & others maliciously\ + \ painting it in the most odious & detestable Colours, we think it our duty to lay\ + \ before the Publick, the whole Matter as it appeared, & still appears, to us. .\ + \ . .\n\"If these things are not sufficient to prove an unjustifiable Attachment\ + \ in the Quakers to the Indians Savages, a fixed Resolution to befriend them & an\ + \ utter insensibility to human Distresses, let us consider a few more recent Facts.\ + \ When we found the last Summer that we were likely to get no Assistance from the\ + \ Government, some Volunteers went out at our own Expense, determined to drive our\ + \ Enemies from our Borders; & when we came near to the great Island, we understood\ + \ that a Number of their Warriors had gone out against our Frontiers. Upon this\ + \ we returned and came up with them and fought with them at the Munfey Hill where\ + \ we lost some of our Men & killed some of their Warriors & thereby saved our Frontiers\ + \ from this Story in another Expedition. But no sooner had we destroyed their Provisions\ + \ on the great Island, & ruined their trade with the good People at Bethlehem, but\ + \ these very Indians, who were justly suspected of having murdered our Friends in\ + \ Northampton County, were by the Influence of some Quakers taken under the Protection\ + \ of the Government to screen them from the Resentments of the Friends and Relations\ + \ of the Murdered, & to support them thro the Winter.\"\n—\"Apology of the Paxton\ + \ Boys\" (pamphlet), 1764 (Note: \"apology\" in this context should be read as an\ + \ explanation, not an admission of guilt or regret.\nThe sentiments expressed in\ + \ the explanation above reflect which of the ongoing tensions during the colonial\ + \ period of American history?\n(A) Tensions between British policies and the aspirations\ + \ of North American colonists. (B) Tensions between American Indians allied with\ + \ the French and those allied with the British. (C) Tensions between freed African\ + \ Americans and white planters. (D) Tensions between backcountry settlers and elites\ + \ within colonial America.\nA: Let's think step by step. We refer to Wikipedia articles\ + \ on us history for help. After the French and Indian War, the Scotch-Irish settlers\ + \ attacked American Indians. After the attacks on the Conestoga, about 250 Paxton\ + \ Boys present their grievances to the Pennsylvania legislature. As mentioned in\ + \ the information, the Paxton Boys cited resentiment at local elites. The answer\ + \ is (D).\n\nQ: This question refers to the following information.\nOur leaders\ + \ talk about stopping aggression from the north, but this was a struggle among groups\ + \ of Vietnamese until we intervened. We seem bent upon saving the Vietnamese from\ + \ Ho Chi Minh even if we have to kill them and demolish their country to do it.\ + \ As the native people survey bombed-out villages, women and children burned by\ + \ napalm, rice crops destroyed and cities overrun with our military personnel, they\ + \ are doubtless saying secretly of the Vietcong guerillas and of the American forces,\ + \ \"A plague on both your houses.\" … Stop the bombing, north and south, end search\ + \ and destroy offensive sweeps, and confine our military action to holding operations\ + \ on the ground. Bombing the north has failed to halt or seriously check the flow\ + \ of troops to the south and may, in fact, have prompted a much greater war effort\ + \ by Hanoi.\n—Senator George McGovern, \"The Lessons of Vietnam,\" April 25, 1967\n\ + Which of the following opinions from the 1960s most directly reflects the perspective\ + \ of George McGovern's speech?\n(A) Americans must maximize their technological\ + \ edge in Vietnam. (B) American bombing in Vietnam is step by step leading to progress\ + \ in the war. (C) American bombing in Vietnam is a failure. (D) America must not\ + \ give in to defeatism about the war in Vietnam.\nA: Let's think step by step. We\ + \ refer to Wikipedia articles on us history for help. \"Stop the bombing\" and \"\ + Bombing the north has failed to halt or seriously check the flow of troops to the\ + \ south\" indicate that the perspective of George McGovern's speech is that Amerian\ + \ bombing in Vietnam is a failure. The answer is (C).\n\nQ: This question refers\ + \ to the following information.\n\"In the new Code of Laws which I suppose it will\ + \ be necessary for you to make I desire you would Remember the Ladies, and be more\ + \ generous and favorable to them than your ancestors. Do not put such unlimited\ + \ power into the hands of the Husbands. Remember all Men would be tyrants if they\ + \ could. If particular care and attention is not paid to the Ladies we are determined\ + \ to foment a Rebellion, and will not hold ourselves bound by any Laws in which\ + \ we have no voice, or Representation.\"\nAbigail Adams, in a letter to John Adams,\ + \ 1776\n\"Special legislation for woman has placed us in a most anomalous position.\ + \ Women invested with the rights of citizens in one section—voters, jurors, office-holders—crossing\ + \ an imaginary line, are subjects in the next. In some States, a married woman may\ + \ hold property and transact business in her own name; in others, her earnings belong\ + \ to her husband. In some States, a woman may testify against her husband, sue and\ + \ be sued in the courts; in others, she has no redress in case of damage to person,\ + \ property, or character. In case of divorce on account of adultery in the husband,\ + \ the innocent wife is held to possess no right to children or property, unless\ + \ by special decree of the court. But in no State of the Union has the wife the\ + \ right to her own person, or to any part of the joint earnings of the co-partnership\ + \ during the life of her husband. In some States women may enter the law schools\ + \ and practice in the courts; in others they are forbidden. In some universities\ + \ girls enjoy equal educational advantages with boys, while many of the proudest\ + \ institutions in the land deny them admittance, though the sons of China, Japan\ + \ and Africa are welcomed there. But the privileges already granted in the several\ + \ States are by no means secure.\"\nSusan B. Anthony, \"Declaration of Rights for\ + \ Women,\" July 4, 1876\nThe sentiments expressed in the second excerpt by Susan\ + \ B. Anthony are most likely in support of\n(A) the Equal Rights Amendment (B) universal\ + \ suffrage (C) states' rights (D) prohibition\nA: Let's think step by step. We refer\ + \ to Wikipedia articles on us history for help. The above information mentioned\ + \ that women are in an anomalous position in terms of legislation. Women's earnings\ + \ do not belong to themselves, or they cannot testify against her husbands. Susan\ + \ believes women should have equal legal rights as men. The answer is (B).\n\nQ:\ + \ This question refers to the following information.\n\"Society in every state is\ + \ a blessing, but government even in its best state is but a necessary evil; in\ + \ its worst state an intolerable one; for when we suffer, or are exposed to the\ + \ same miseries by a government, which we might expect in a country without government,\ + \ our calamity is heightened by reflecting that we furnish the means by which we\ + \ suffer. Government, like dress, is the badge of lost innocence; the palaces of\ + \ kings are built on the ruins of the bowers of paradise. For were the impulses\ + \ of conscience clear, uniform, and irresistibly obeyed, man would need no other\ + \ lawgiver; but that not being the case, he finds it necessary to surrender up a\ + \ part of his property to furnish means for the protection of the rest; and this\ + \ he is induced to do by the same prudence which in every other case advises him\ + \ out of two evils to choose the least. Wherefore, security being the true design\ + \ and end of government, it unanswerably follows that whatever form thereof appears\ + \ most likely to ensure it to us, with the least expense and greatest benefit, is\ + \ preferable to all others.\"\nThomas Paine, Common Sense, 1776\nWhich of the following\ + \ \"miseries\" alluded to above were most condemned by Anti-Federalists of the post-Revolutionary\ + \ era?\n(A) Organized response to Bacon's Rebellion (B) Federal response to Shays's\ + \ Rebellion (C) Federal response to the Whiskey Rebellion (D) Federal response to\ + \ Pontiac's Rebellion\nA: Let's think step by step. We refer to Wikipedia articles\ + \ on us history for help. Anti-Federalists do not believe centralized government\ + \ power, and suspect Washington's military response to Whiskey Rebellion. Bacon's\ + \ Rebellion and Pontiac's Rebellion happen before the Revolution and they can be\ + \ ruled out. The answer is (C).\n\n" +"group": "mmlu_flan_cot_fewshot_humanities" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_high_school_us_history" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_world_history.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_world_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..375b2764591eab99af2e185488040bf495a86dbb --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_world_history.yaml @@ -0,0 +1,82 @@ +"dataset_name": "high_school_world_history" +"description": "The following are multiple choice questions (with answers) about high\ + \ school world history.\n\nQ: This question refers to the following information.\n\ + \"At least one of the [world's] societies would have to somehow enormously increase\ + \ its productivity [in order to achieve global hegemony]. That quantum jump would\ + \ have to be made before the various scientific, technological, agricultural, and\ + \ industrial revolutions on which our post-quantum-leap world rests. It could only\ + \ be accomplished by exploiting the ecosystems, mineral resources, and human assets\ + \ of whole continents outside the lands of the society making the jump. Western\ + \ Europe did just that by means of its brutality and guns and, more important, by\ + \ geographical and ecological luck.\"\nCopyright © 2015 Cambridge University Press.\n\ + Alfred Crosby, historian, Ecological Imperialism, 2004\nThe \"quantum jump\" mentioned\ + \ in the passage most directly contributed to which of the following developments\ + \ in the period 1450–1750 C.E.?\n(A) A breakdown in trade routes through the collapse\ + \ of the established state structure (B) An increase in the population of the world\ + \ through more plentiful supplies of food (C) The spread of Chinese and Indian belief\ + \ systems across the world (D) An increase in social unrest\nA: Let's think step\ + \ by step. We refer to Wikipedia articles on world history for help. The \"quantum\ + \ jump\" mentioned in the passage refers to the conquest of the New World and the\ + \ Columbian Exchange. Choice (A) and (C) did not happen in history. Choice (C) refers\ + \ to the human assets. The answer is (B).\n\nQ: This question refers to the following\ + \ information.\n\"The struggle against neo-colonialism is not aimed at excluding\ + \ the capital of the developed world from operating in less developed countries.\ + \ It is aimed at preventing the financial power of the developed countries being\ + \ used in such a way as to impoverish the less developed.\nNon-alignment, as practiced\ + \ by Ghana and many other countries, is based on co-operation with all States whether\ + \ they be capitalist, socialist or have a mixed economy. Such a policy, therefore,\ + \ involves foreign investment from capitalist countries, but it must be invested\ + \ in accordance with a national plan drawn up by the government of the non-aligned\ + \ State with its own interests in mind. The issue is not what return the foreign\ + \ investor receives on his investments…The question is one of power. A State in\ + \ the grip of neo-colonialism is not master of its own destiny.\"\nKwame Nkrumah,\ + \ Neo-Colonialism, 1965\nWhich of the following provides the best context for Nkrumah's\ + \ writings?\n(A) The Industrial Revolution (B) Decolonization (C) Regional Free\ + \ Trade Associations (D) Autarky\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on world history for help. The passage expresses a point that the successful\ + \ fight against neo-colonialism were in danger and the newly independent nations\ + \ like Ghana may be re-colonized via financial power of the developed countries.\ + \ The answer is (B).\n\nQ: This question refers to the following information.\n\"\ + Indeed, as both the fatwas of distinguished [scholars] who base their opinion on\ + \ reason and tradition alike and the consensus of the Sunni community agree that\ + \ the ancient obligation of extirpation, extermination, and expulsion of evil innovation\ + \ must be the aim of our exalted aspiration, for \"Religious zeal is a victory for\ + \ the Faith of God the Beneficent\"; then, in accordance with the words of the Prophet\ + \ (Peace upon him!) \"Whosoever introduces evil innovation into our order must be\ + \ expelled\" and \"Whosoever does aught against our order must be expelled,\" action\ + \ has become necessary and exigent…\"\nLetter from Ottoman Sultan Selim I to Safavid\ + \ Shah Ismail I, 1514\nThe letter from Selim I is most clearly an example of which\ + \ of the following?\n(A) The maintenance of military supremacy at all costs (B)\ + \ Expanding tensions between religious sects (C) Factors that brought about the\ + \ collapse of the Ottoman Empire (D) Peacemaking efforts among the Islamic empires\n\ + A: Let's think step by step. We refer to Wikipedia articles on world history for\ + \ help. The passage is an example of expanding tensions between Selim and Ismail.\ + \ In the passage the Selim references the fatwa and the consensus of the Sunni community\ + \ to against whosoever introduces evil. The answer is (B).\n\nQ: This question refers\ + \ to the following information.\n\"The real grievance of the worker is the insecurity\ + \ of his existence; he is not sure that he will always have work, he is not sure\ + \ that he will always be healthy, and he foresees that he will one day be old and\ + \ unfit to work. If he falls into poverty, even if only through a prolonged illness,\ + \ he is then completely helpless, exam_ins to his own devices, and society does\ + \ not currently recognize any real obligation towards him beyond the usual help\ + \ for the poor, even if he has been working all the time ever so faithfully and\ + \ diligently. The usual help for the poor, however, leaves a lot to be desired,\ + \ especially in large cities, where it is very much worse than in the country.\"\ + \nOtto von Bismarck, 1884\nOtto von Bismarck likely made this speech in reaction\ + \ to which of the following issues?\n(A) Social acceptance of child labor (B) Declining\ + \ life expectancy in Germany (C) Criticisms of German trade tariffs (D) Negative\ + \ effects attributed to industrial capitalism\nA: Let's think step by step. We refer\ + \ to Wikipedia articles on world history for help. The passage talks about the grievance\ + \ of the work under the industrial capitalism. The answer is (D).\n\nQ: This question\ + \ refers to the following information.\nHe contains all works and desires and all\ + \ perfumes and all tastes. He enfolds the whole universe and in silence is loving\ + \ to all. This is the Spirit that is in my heart, this is Brahman. To him I shall\ + \ come when I go beyond this life, and to him will come he who has faith and doubts\ + \ not.\n—The Upanishads, India, c. 1000 BCE\nTo which religion does the speaker\ + \ most likely belong?\n(A) Hinduism (B) Buddhism (C) Shintoism (D) Zoroastrianism\n\ + A: Let's think step by step. We refer to Wikipedia articles on world history for\ + \ help. Brahman refers to the ultimate reality of all things in the Hindu religion.\ + \ In contrast, Buddhism does not have a concept of supreme God. The answer is (A).\n\n" +"group": "mmlu_flan_cot_fewshot_humanities" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_high_school_world_history" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_human_aging.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_human_aging.yaml new file mode 100644 index 0000000000000000000000000000000000000000..07be906d52638a5ad08a086b52546b06c8477630 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_human_aging.yaml @@ -0,0 +1,28 @@ +"dataset_name": "human_aging" +"description": "The following are multiple choice questions (with answers) about human\ + \ aging.\n\nQ: All other things being equal, which of the following persons is more\ + \ likely to show osteoporosis?\n(A) An older Hispanic American woman (B) An older\ + \ African American woman (C) An older Asian American woman (D) An older Native American\ + \ woman\nA: Let's think step by step. We refer to Wikipedia articles on human aging\ + \ for help. Although osteoporosis can occur at any age, the risk is higher for older\ + \ people. It is most common in Asian and non-Hispanic white women. The answer is\ + \ (C).\n\nQ: The finding that adults tend to remember events from their adolescence\ + \ better than from other periods in their lives is referred to as the\n(A) Adolescence\ + \ advantage (B) Reminiscence bump (C) Memorial memorial (D) Quadratic retrieval\ + \ spike\nA: Let's think step by step. We refer to Wikipedia articles on human aging\ + \ for help. Reminiscence bump is a phenomenon that older adults tend to recollect\ + \ events during their young ages. People usually have a period of childhood amnesia\ + \ from birth to around age 5, and a reminiscence bump between 10 and 30. The answer\ + \ is (B).\n\nQ: Which element in tobacco smoke is responsible for cancers?\n(A)\ + \ Nicotine (B) Tar (C) Carbon monoxide (D) Smoke particles\nA: Let's think step\ + \ by step. We refer to Wikipedia articles on human aging for help. The benzene,\ + \ acrylamide and acrylonitrile in tar interact with the lungs and cause DNA mutations\ + \ in cells of the lungs, and lead to cancer. The answer is (B).\n\nQ: When older\ + \ adults move to a new state after retirement, which of the following is the more\ + \ likely destination?\n(A) Texas (B) California (C) Hawaii (D) Vermont\nA: Let's\ + \ think step by step. We refer to Wikipedia articles on human aging for help. Texas\ + \ does not have state tax, and has low cost of living compared with the other three\ + \ options. The answer is (A).\n\n" +"group": "mmlu_flan_cot_fewshot_other" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_human_aging" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_human_sexuality.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_human_sexuality.yaml new file mode 100644 index 0000000000000000000000000000000000000000..19270d4bf917882d885eb332a553f5f17debe89a --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_human_sexuality.yaml @@ -0,0 +1,34 @@ +"dataset_name": "human_sexuality" +"description": "The following are multiple choice questions (with answers) about human\ + \ sexuality.\n\nQ: The most common disorder among men who seek sexual therapy is:\n\ + (A) premature ejaculation (B) inhibited ejaculation (C) erectile disorder (D) ejaculatory\ + \ disorder\nA: Let's think step by step. We refer to Wikipedia articles on human\ + \ sexuality for help. The most common type of arousal disorder for men is erectile\ + \ dysfunction, meaning that a person is not able to get any physical satisfaction\ + \ from sexual activity although he may be interested in it. The answer is (C).\n\ + \nQ: A woman who knows she has active herpes and untreated syphilis but continues\ + \ to have sex without informing her partners of her condition has, in psychoanalytic\ + \ terms:\n(A) a strong ego (B) a weak superego (C) a weak id (D) a strong superego\n\ + A: Let's think step by step. We refer to Wikipedia articles on human sexuality for\ + \ help. A person with weak superego tends to be delinquent, criminal or have antisocial\ + \ personality. The action of the woman who knows she has active venereal disease\ + \ but still have sex with her partners indicate she may has antisocial personality.\ + \ The answer is (B).\n\nQ: The nature of homosexual activities that occur during\ + \ preadolescence include all but which of the following?\n(A) sexual intercourse\ + \ (B) circle jerks (C) exhibitionism (D) touching each other's genitals\nA: Let's\ + \ think step by step. We refer to Wikipedia articles on human sexuality for help.\ + \ Sexual intercourse is prohibited during preadolescence. The answer is (A).\n\n\ + Q: Women's ability to have multiple orgasms is primarily due to:\n(A) the fact that\ + \ they do not have a refractory period. (B) the response of the inner layers of\ + \ the vagina. (C) having alternating orgasms in different locations. (D) the G-Spot.\n\ + A: Let's think step by step. We refer to Wikipedia articles on human sexuality for\ + \ help. The refractory period is the time when a person is not able to be erect\ + \ or is not interested in sex. The answer is (A).\n\nQ: Morning sickness is typically\ + \ a problem:\n(A) during the first trimester (B) during the second trimester (C)\ + \ during the third trimester (D) all through the pregnancy\nA: Let's think step\ + \ by step. We refer to Wikipedia articles on human sexuality for help. Morning sickness\ + \ usually begins by nine weeks after conception, corresponding to the first trimester.\ + \ The answer is (A).\n\n" +"group": "mmlu_flan_cot_fewshot_social_sciences" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_human_sexuality" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_jurisprudence.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_jurisprudence.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a5561f3b8847a34144c28f49d0498e688a170c79 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_jurisprudence.yaml @@ -0,0 +1,45 @@ +"dataset_name": "jurisprudence" +"description": "The following are multiple choice questions (with answers) about jurisprudence.\n\ + \nQ: Iverson Jewelers wrote a letter to Miller, 'We have received an exceptionally\ + \ fine self winding Rolox watch which we will sell to you at a very favorable price.'\n\ + (A) The letter is an offer to sell (B) A valid offer cannot be made by letter. (C)\ + \ The letter contains a valid offer which will terminate within a reasonable time.\ + \ (D) The letter lacks one of the essential elements of an offer.\nA: Let's think\ + \ step by step. We refer to Wikipedia articles on jurisprudence for help. An offer\ + \ shows the intent to enter into a mutually-beneficial contract with specific terms.\ + \ An offer can be made by a letter. While this letter indicates the willingness\ + \ to sell, the lack of specific terms, such as transaction price and offer expiration\ + \ date, makes it an incomplete offer. The answer is (D).\n\nQ: Functions of the\ + \ law include all but which of the following?\n(A) maximizing individual freedom\ + \ (B) providing a basis for compromise (C) keeping the peace (D) promoting the principles\ + \ of the free enterprise system\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on jurisprudence for help. Laws are fundamentally about helping resolve\ + \ disputes between individuals, and therefore essential for maximizing individual\ + \ freedom, providing a basis for compromise, and keeping the peace. The answer is\ + \ (D).\n\nQ: The ________ School of jurisprudence postulates that the law is based\ + \ on what is \"correct.\"\n(A) Natural Law (B) Analytical (C) Historical (D) Sociological\n\ + A: Let's think step by step. We refer to Wikipedia articles on jurisprudence for\ + \ help. Natural Law School of jurisprudence focuses on the laws of nature, and states\ + \ that the law should be based on ethics, morals, and what is \"correct\". Analytical\ + \ deals with the law as it already exists, Historical postulates that the law was\ + \ found and not made, and Sociological studies how the law and society impact each\ + \ other. The answer is (A).\n\nQ: Which word best summarizes Weber's explanation\ + \ of the development of formally rational law?\n(A) Authority. (B) Charisma. (C)\ + \ Co-operation. (D) Capitalism.\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on jurisprudence for help. Weber explained the development of formal\ + \ rationality in laws as how the modern society moved from tradition to rationality,\ + \ where people decide actions based less on how they were culturally done and more\ + \ on expected utilities. How rational individuals optimize efficiency of accomplishing\ + \ tasks for higher rewards is a core principle of Capitalism. The answer is (D).\n\ + \nQ: Which position does Rawls claim is the least likely to be adopted by the POP\ + \ (people in the original position)?\n(A) The POP would choose equality above liberty.\ + \ (B) The POP would opt for the 'maximin' strategy. (C) The POP would opt for the\ + \ 'difference principle'. (D) The POP would reject the 'system of natural liberty.'\n\ + A: Let's think step by step. We refer to Wikipedia articles on jurisprudence for\ + \ help. The POP would opt for the 'maximin' strategy, opt for the 'difference principle',\ + \ and reject the 'system of natural liberty', but the POP would not choose equality\ + \ above liberty, since the POP assume both equal and free citizens. The answer is\ + \ (A).\n\n" +"group": "mmlu_flan_cot_fewshot_humanities" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_jurisprudence" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_medical_genetics.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_medical_genetics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9820cf3f8f739e3548ad1066e30c6e2a055f0c5c --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_medical_genetics.yaml @@ -0,0 +1,37 @@ +"dataset_name": "medical_genetics" +"description": "The following are multiple choice questions (with answers) about medical\ + \ genetics.\n\nQ: The stage of meiosis in which chromosomes pair and cross over\ + \ is:\n(A) prophase I (B) metaphase I (C) prophase II (D) metaphase II\nA: Let's\ + \ think step by step. We refer to Wikipedia articles on medical genetics for help.\ + \ Prophase I is the stage of meiosis where homologous chromosomes pair with each\ + \ other and exchange genetic material. The answer is (A).\n\nQ: DNA ligase is\n\ + (A) an enzyme that joins fragments in normal DNA replication (B) an enzyme of bacterial\ + \ origin which cuts DNA at defined base sequences (C) an enzyme that facilitates\ + \ transcription of specific genes (D) an enzyme which limits the level to which\ + \ a particular nutrient reaches\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on medical genetics for help. DNA ligase is a type of enzyme (EC 6.5.1.1)\ + \ responsible for joining DNA strands together by catalyzing a phosphodiester bond.\ + \ The answer is (A).\n\nQ: Which of the following conditions does not show multifactorial\ + \ inheritance?\n(A) Pyloric stenosis (B) Schizophrenia (C) Spina bifida (neural\ + \ tube defects) (D) Marfan syndrome\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on medical genetics for help. Multifactorial inheritance is when more\ + \ than a single factor is responsible for causing a given trait or health problem.\ + \ Genes cannot be the only factor. Marfan syndrome, on the other hand, requires\ + \ only one abnormal copy of the of the Marfan gene, from one parent, to inherit\ + \ the trait. The answer is (D).\n\nQ: A gene showing codominance\n(A) has both alleles\ + \ independently expressed in the heterozygote (B) has one allele dominant to the\ + \ other (C) has alleles tightly linked on the same chromosome (D) has alleles expressed\ + \ at the same time in development\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on medical genetics for help. Codominance, as it relates to genetics,\ + \ refers to a type of genetic inheritance where the phenotype of both the parents\ + \ is easily observed in the offspring. A heterozygote is an individual having two\ + \ different alleles of a gene. The answer is (A).\n\nQ: Large triplet repeat expansions\ + \ can be detected by:\n(A) polymerase chain reaction. (B) single strand conformational\ + \ polymorphism analysis. (C) Southern blotting. (D) Western blotting.\nA: Let's\ + \ think step by step. We refer to Wikipedia articles on medical genetics for help.\ + \ A Southern blot is a method in molecular biology for detecting specific DNA sequences\ + \ in a sample. Large triplet repeat expansions are usually detected with this method.\ + \ The answer is (C).\n\n" +"group": "mmlu_flan_cot_fewshot_other" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_medical_genetics" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_moral_scenarios.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_moral_scenarios.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c25d17ca7aee4dac75c4e343ec09c11703372b4b --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_moral_scenarios.yaml @@ -0,0 +1,44 @@ +"dataset_name": "moral_scenarios" +"description": "The following are multiple choice questions (with answers) about moral\ + \ scenarios.\n\nQ: For which of these two scenarios does the main character (who\ + \ uses I/me/my) do something clearly morally wrong, according to ordinary moral\ + \ standards in the US as of 2020? Scenario 1 | I took his wallet after he harassed\ + \ me at the bar. Scenario 2 | I made love to my newborn baby boy.\n(A) Wrong, Wrong\ + \ (B) Wrong, Not wrong (C) Not wrong, Wrong (D) Not wrong, Not wrong\nA: Let's think\ + \ step by step. We refer to Wikipedia articles on moral scenarios for help. Stealing\ + \ from someone is not considered an ethical response to harrassment. And having\ + \ sex with a minor is egregiously unethical. The answer is (A).\n\nQ: For which\ + \ of these two scenarios does the main character (who uses I/me/my) do something\ + \ clearly morally wrong, according to ordinary moral standards in the US as of 2020?\ + \ Scenario 1 | I asked for a cigarette from the guy outside the store. Scenario\ + \ 2 | When the security guard left his post, I pocketed a rare coin.\n(A) Wrong,\ + \ Wrong (B) Wrong, Not wrong (C) Not wrong, Wrong (D) Not wrong, Not wrong\nA: Let's\ + \ think step by step. We refer to Wikipedia articles on moral scenarios for help.\ + \ Asking for something is not morally wrong. Stealing is morally wrong. The answer\ + \ is (C).\n\nQ: For which of these two scenarios does the main character (who uses\ + \ I/me/my) do something clearly morally wrong, according to ordinary moral standards\ + \ in the US as of 2020? Scenario 1 | During the house's demolition, I pushed him\ + \ into a wall. Scenario 2 | When I choose a babysitter for my twin nieces, I don't\ + \ care about her racial background.\n(A) Wrong, Wrong (B) Wrong, Not wrong (C) Not\ + \ wrong, Wrong (D) Not wrong, Not wrong\nA: Let's think step by step. We refer to\ + \ Wikipedia articles on moral scenarios for help. Physical violence is morally wrong.\ + \ Being open to hiring people from different racial backgrounds is an expected moral\ + \ stance. The answer is (B).\n\nQ: For which of these two scenarios does the main\ + \ character (who uses I/me/my) do something clearly morally wrong, according to\ + \ ordinary moral standards in the US as of 2020? Scenario 1 | I bought an old pick-up\ + \ truck for work. Scenario 2 | I looked up at the gorgeous waterfall and threw a\ + \ rock at it.\n(A) Wrong, Wrong (B) Wrong, Not wrong (C) Not wrong, Wrong (D) Not\ + \ wrong, Not wrong\nA: Let's think step by step. We refer to Wikipedia articles\ + \ on moral scenarios for help. Neither of these are wrong as no one is wronged by\ + \ buing a pick-up truck or throwing a rock into a stream. The answer is (D).\n\n\ + Q: For which of these two scenarios does the main character (who uses I/me/my) do\ + \ something clearly morally wrong, according to ordinary moral standards in the\ + \ US as of 2020? Scenario 1 | I really loved my newborn baby boy. Scenario 2 | The\ + \ new girl is embarrassed to live in a trailer park, so I invite the class to her\ + \ house.\n(A) Wrong, Wrong (B) Wrong, Not wrong (C) Not wrong, Wrong (D) Not wrong,\ + \ Not wrong\nA: Let's think step by step. We refer to Wikipedia articles on moral\ + \ scenarios for help. Loving someone is not wrong. However, exposing something that\ + \ someone is embarrassed about could be considered quite mean. The answer is (C).\n\n" +"group": "mmlu_flan_cot_fewshot_humanities" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_moral_scenarios" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_professional_accounting.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_professional_accounting.yaml new file mode 100644 index 0000000000000000000000000000000000000000..91dde8826e4178f39ebb171fd20515fb703aa23a --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_professional_accounting.yaml @@ -0,0 +1,48 @@ +"dataset_name": "professional_accounting" +"description": "The following are multiple choice questions (with answers) about professional\ + \ accounting.\n\nQ: An auditor traces the serial numbers on equipment to a nonissuer’s\ + \ subledger. Which of the following management assertions is supported by this test?\n\ + (A) Valuation and allocation (B) Completeness (C) Rights and obligations (D) Presentation\ + \ and disclosure\nA: Let's think step by step. We refer to Wikipedia articles on\ + \ accounting for help. The completeness assertion is tested by tracing supporting\ + \ documents to the record entries. The answer is (B).\n\nQ: One hundred years ago,\ + \ your great-great-grandmother invested $100 at 5% yearly interest. What is the\ + \ investment worth today?\n(A) $13,000 (B) $600 (C) $15,000 (D) $28,000\nA: Let's\ + \ think step by step. We refer to Wikipedia articles on accounting for help. A $100\ + \ investment at 5% yearly interest is worth 100*(1.05)^100=13150 after 100 years,\ + \ which is around $13,000. The answer is (A).\n\nQ: On January 1, year 1, Alpha\ + \ Co. signed an annual maintenance agreement with a software provider for $15,000\ + \ and the maintenance period begins on March 1, year 1. Alpha also incurred $5,000\ + \ of costs on January 1, year 1, related to software modification requests that\ + \ will increase the functionality of the software. Alpha depreciates and amortizes\ + \ its computer and software assets over five years using the straight-line method.\ + \ What amount is the total expense that Alpha should recognize related to the maintenance\ + \ agreement and the software modifications for the year ended December 31, year\ + \ 1?\n(A) $5,000 (B) $13,500 (C) $16,000 (D) $20,000\nA: Let's think step by step.\ + \ We refer to Wikipedia articles on accounting for help. The maintenance period\ + \ begins on March 1, so only 10 months of expenses should be recognized, which is\ + \ $15,000/12*10=$12,500. The software modification cost is amortized over 5 years,\ + \ so each year is $5,000/5=$1,000. So the total expense is $12,500+$1,000=$13,500.\ + \ The answer is (B).\n\nQ: Krete is an unmarried taxpayer with income exclusively\ + \ from wages. By December 31, year 1, Krete's employer has withheld $16,000 in federal\ + \ income taxes and Krete has made no estimated tax payments. On April 15, year 2,\ + \ Krete timely filed for an extension request to file her individual tax return,\ + \ and paid $300 of additional taxes. Krete's year 1 tax liability was $16,500 when\ + \ she timely filed her return on April 30, year 2, and paid the remaining tax liability\ + \ balance. What amount would be subject to the penalty for underpayment of estimated\ + \ taxes?\n(A) $0 (B) $500 (C) $1,650 (D) $16,500\nA: Let's think step by step. We\ + \ refer to Wikipedia articles on accounting for help. The tax due after withholding\ + \ is $16,500-$16,000=$500, which is less than $1000, hence there is no underpayment\ + \ penalty of estimated taxes. The answer is (A).\n\nQ: Box a nongovernmental not-for-profit\ + \ organization had the following transactions during the year: Proceeds from sale\ + \ of investments $80000 Purchase of property plant and equipment $10000 Proceeds\ + \ from long-term debt $100000 Loss on sale of investment $5000 What amount should\ + \ be reported as net cash provided by financing activities in Box's statement of\ + \ cash flows?\n(A) $70,000 (B) $75,000 (C) $80,000 (D) 100000\nA: Let's think step\ + \ by step. We refer to Wikipedia articles on accounting for help. Among the four\ + \ transactions, only Proceeds from long-term debt belongs to the financing activities\ + \ section of cashflow, hence the amount reported should be $100000. The answer is\ + \ (D).\n\n" +"group": "mmlu_flan_cot_fewshot_other" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_professional_accounting" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_professional_law.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_professional_law.yaml new file mode 100644 index 0000000000000000000000000000000000000000..33544e431c3044724d784255ac519ab2f88fb67c --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_professional_law.yaml @@ -0,0 +1,106 @@ +"dataset_name": "professional_law" +"description": "The following are multiple choice questions (with answers) about professional\ + \ law.\n\nQ: A son owed a creditor $5,000. The son's father contacted the creditor\ + \ and told him that he wanted to pay the son's debt. The father signed a document\ + \ that stated the father would pay the son's debt at a rate of $500 a month for\ + \ 10 months. The creditor made no written or oral commitment to forbear to sue the\ + \ son to collect the $5,000 debt, and the father made no oral or written request\ + \ for any such forbearance. For the next five months, the father made and the creditor\ + \ accepted the $500 monthly payments as agreed. During that period, the creditor,\ + \ in fact, did forbear to take any legal action against the son. However, the father\ + \ then informed the creditor that he would make no further payments on the debt.\ + \ Which of the following is the most persuasive argument that the father is liable\ + \ to the creditor under the terms of their agreement?\n(A) The father's promise\ + \ and the creditor's reliance thereon, if proved, gave rise to a valid claim by\ + \ the creditor against the father based on the doctrine of promissory estoppel.\ + \ (B) Because it was foreseeable that the father's promise would induce the creditor\ + \ to forbear taking any action against the son, such forbearance was, as a matter\ + \ of law, a bargained-for consideration for the father's promise. (C) The father's\ + \ five payments to the creditor totaling $2,500 manifested a serious intent on the\ + \ father's part to be contractually bound, and such manifestation is generally recognized\ + \ as an effective substitute for consideration. (D) By assuming the antecedent debt\ + \ obligation that the son owed to the creditor, the father became a surety whose\ + \ promise to the creditor was enforceable, since it was in writing and supported\ + \ by adequate consideration. \nA: Let's think step by step. We refer to Wikipedia\ + \ articles on law for help. The doctrine of promissory estoppel stops a person from\ + \ going back on a promise in contract law, hence option (A) should be the most persuasive\ + \ argument. The answer is (A).\n\nQ: A state has recently enacted a statute prohibiting\ + \ the disposal of any nuclear wastes within the state. This law does not contravene\ + \ or conflict with any federal statutes. A man operates a company in the state that\ + \ is engaged in the disposal of nuclear wastes. Subsequent to the passage of the\ + \ state statute, the man, not yet aware of the new law, entered into contracts with\ + \ many out-of-state firms to dispose of their nuclear wastes in the state. On account\ + \ of this new law, however, the man will be unable to perform these contracts. Assume\ + \ that the man has standing to challenge this state law. Which of the following\ + \ presents his strongest constitutional grounds to challenge the state law prohibiting\ + \ the disposal of nuclear wastes within the state?\n(A) The commerce clause. (B)\ + \ The equal protection clause of the Fourteenth Amendment. (C) The privileges and\ + \ immunities clause of Article IV, Section 2. (D) The contract clause.\nA: Let's\ + \ think step by step. We refer to Wikipedia articles on law for help. The commerce\ + \ clause states that Congress shall have the power to regulate commerce with foreign\ + \ Nations, and among the several States, and with the Indian Tribes. The statute\ + \ affects inter-state commerce which puts it into question. Hence the man's strongest\ + \ argument should be the commerce clause. The answer is (A).\n\nQ: On October 1,\ + \ 1980, a developer, owner of several hundred acres in a rural county, drafted a\ + \ general development plan for the area. The duly recorded plan imposed elaborate\ + \ limitations and restrictions upon the land in the plan, which was to be developed\ + \ as a residential district. The restrictions were to extend to all persons acquiring\ + \ any of the lots and to their heirs, assigns, and lessees. It was further provided\ + \ that all subsequent owners would be charged with due notice of the restrictions.\ + \ Among those restrictions in the general plan were the following:(22) A franchise\ + \ right is created in a strip of land 10 feet in width along the rear of each lot\ + \ for the use of public utility companies with right of ingress and egress. (23)\ + \ No house or structure of any kind shall be built on the aforementioned strip of\ + \ land running through the said blocks. In 2000, a retiree purchased one of the\ + \ lots, built a house, and erected a fence in the rear of his property within the\ + \ restricted area. In 2004, a teacher purchased a lot adjacent to the retiree's\ + \ property and built a new house. Two years later, a librarian purchased the lot\ + \ that adjoined the teacher's property. The three deeds to those properties each\ + \ contained references to the deed book where the general plan was recorded. In\ + \ 2008, the librarian began the construction of a seven-foot post-and-rail fence\ + \ along the line dividing his lot with the teacher's, and along the center of the\ + \ area subject to the franchise right. Although the teacher objected to its construction,\ + \ the fence was completed. If the teacher seeks a mandatory injunction to compel\ + \ removal of the librarian's fence, the court will most likely\n(A) grant relief,\ + \ because the fence was in violation of the easement restriction. (B) grant relief,\ + \ because the encroachment of the fence violated the restriction in the original\ + \ plan. (C) deny relief, because the teacher failed to enforce the restriction against\ + \ the retiree. (D) deny relief, because the fence would not be construed as \"a\ + \ structure\" within the terms of the restriction. \nA: Let's think step by step.\ + \ We refer to Wikipedia articles on law for help. The restrictions in the original\ + \ plan say no house or structure of any kind shall be built on the aforementioned\ + \ strip of land running through the said blocks. Hence the court will most likely\ + \ grant relief because the fence violated the restriction in the original plan.\ + \ The answer is (B).\n\nQ: Judge took judicial notice of some facts at the beginning\ + \ of the trial. Which of the following is not an appropriate kind of fact for judicial\ + \ notice?\n(A) Indisputable facts. (B) Facts that have been asserted by individual\ + \ political organizations. (C) Facts recognized to be true by common knowledge.\ + \ (D) Facts capable of scientific verification.\nA: Let's think step by step. We\ + \ refer to Wikipedia articles on law for help. Among the options, facts that have\ + \ been asserted by individual political organizations is not an appropriate kind\ + \ of fact for judicial notice. The answer is (B).\n\nQ: A state legislature has\ + \ recently enacted a statute making it a misdemeanor to curse or revile or use obscene\ + \ or opprobrious language toward or in reference to a police officer perfonning\ + \ his duties. A student at a state university organized a demonstration on campus\ + \ to protest the war. The rally was attended by a group of 50 students who shouted\ + \ anti-war messages at cars passing by. To show his contempt for the United States,\ + \ the student sewed the American flag to the rear of his jeans. When a police officer\ + \ saw the flag sown on the student's jeans, he approached and told him to remove\ + \ the flag or he would be placed under arrest. The student became angered and shouted\ + \ at the police officer, \"Listen, you bastard, I'll wear this rag anywhere I please.\ + \ \" The student was subsequently placed under arrest and charged with violating\ + \ the state statute. The student subsequently brings suit in state court challenging\ + \ the constitutionality of the statute. The strongest constitutional argument for\ + \ the student is that\n(A) the statute is void for vagueness under the Fourteenth\ + \ Amendment's due process clause. (B) the statute is invalid because it violates\ + \ the petitioner's freedom of speech under the First Amendment. (C) the statute\ + \ is an abridgment of freedom of speech under the First Amendment because less restrictive\ + \ means are available for achieving the same purpose. (D) the statute is overbroad\ + \ and consequently invalid under the First and Fourteenth Amendments.\nA: Let's\ + \ think step by step. We refer to Wikipedia articles on law for help. The Fourteenth\ + \ Amendment further supports the First Amendment by establishing a due process clause.\ + \ Hence the strongest argument should be the statute is overbroad and consequently\ + \ invalid under the First and Fourteenth Amendments. The answer is (D).\n\n" +"group": "mmlu_flan_cot_fewshot_humanities" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_professional_law" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_public_relations.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_public_relations.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a44774fe96b089c459b39361afcd9194e06b4210 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_public_relations.yaml @@ -0,0 +1,39 @@ +"dataset_name": "public_relations" +"description": "The following are multiple choice questions (with answers) about public\ + \ relations.\n\nQ: Earth Hour was a campaign launched by which organization?\n(A)\ + \ Greenpeace (B) The UN (C) Oxfam (D) World Wildlife Fund\nA: Let's think step by\ + \ step. We refer to Wikipedia articles on public relations for help. Earth Hour\ + \ is a worldwide movement oragnized launched by the World Wildlife Fund. The answer\ + \ is (D).\n\nQ: In issues management, what is the most proactive approach to addressing\ + \ negative or misleading information posted online about your organization?\n(A)\ + \ Buy domain names that could be used by opposition groups. (B) Post anonymous comments\ + \ on blogs to combat this information. (C) Prepare a news release that discredits\ + \ the inaccurate information. (D) Make policy changes to address complaints highlighted\ + \ on these sites.\nA: Let's think step by step. We refer to Wikipedia articles on\ + \ public relations for help. In issues management, the most proactive approach to\ + \ addressing negative or misleading information posted online is to make policy\ + \ changes to address complaints highlighted on those sites. The answer is (D).\n\ + \nQ: At which stage in the planning process would a situation analysis be carried\ + \ out?\n(A) Defining the program (B) Planning the program (C) Taking action and\ + \ implementing ideas (D) Evaluation of the program\nA: Let's think step by step.\ + \ We refer to Wikipedia articles on public relations for help. Situation analyses\ + \ are typically carried out during the planning process stage of defining the program.\ + \ The answer is (A).\n\nQ: Which of these statements is true of the Vatican in 2010\ + \ at the time of the accusations of child abuse cover-ups?\n(A) There was a coordinated\ + \ media response. (B) Consistent messages were communicated. (C) Criticisms were\ + \ taken as attacks on the Catholic Church. (D) The credibility of the Vatican was\ + \ upheld.\nA: Let's think step by step. We refer to Wikipedia articles on public\ + \ relations for help. In 2010 when there were accusations of child abuse cover-ups,\ + \ the Vatican took those criticisms as attacks on the Catholic Church. The answer\ + \ is (C).\n\nQ: What should a public relations media practitioner do if she does\ + \ not know the answer to a reporter's question?\n(A) Give the reporter other information\ + \ she is certain is correct. (B) Say that the information is 'off the record' and\ + \ will be disseminated later. (C) Say 'I don't know' and promise to provide the\ + \ information later. (D) Say 'no comment,' rather than appear uninformed.\nA: Let's\ + \ think step by step. We refer to Wikipedia articles on public relations for help.\ + \ If a public relations media practitioner does not know the answer to a reporter's\ + \ question, they should say 'I don't know' and offer to provide the information\ + \ later. The answer is (C).\n\n" +"group": "mmlu_flan_cot_fewshot_social_sciences" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_public_relations" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_us_foreign_policy.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_us_foreign_policy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0acd177ba17815917d3d2f17b741b40103610722 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_us_foreign_policy.yaml @@ -0,0 +1,40 @@ +"dataset_name": "us_foreign_policy" +"description": "The following are multiple choice questions (with answers) about us\ + \ foreign policy.\n\nQ: How did Donald Trump attack globalization in the 2016 campaign?\n\ + (A) Globalization had made men like him too rich (B) Globalization only benefited\ + \ certain American states, such as New York (C) Liberal elites had encouraged globalization,\ + \ while 'ordinary Americans' lost jobs because of it (D) Globalization encouraged\ + \ damaging trade wars\nA: Let's think step by step. We refer to Wikipedia articles\ + \ on us foreign policy for help. Trump attacked globalization because he believed\ + \ ordinary Americans lost jobs due to it, and so he wanted to blame liberals who\ + \ had encouraged it. The answer is (C).\n\nQ: How did NSC-68 change U.S. strategy?\n\ + (A) It globalized containment. (B) It militarized containment. (C) It called for\ + \ the development of the hydrogen bomb. (D) All of the above\nA: Let's think step\ + \ by step. We refer to Wikipedia articles on us foreign policy for help. NSC-68\ + \ outlined a variety of courses of action, including globalization of containment,\ + \ militarization of contaiment, and the development of the hydrogen bomb. The answer\ + \ is (D).\n\nQ: How do Defensive Realism and Offensive Realism differ in their explanation\ + \ of state behaviour?\n(A) Defensive realists place greater emphasis on the role\ + \ of international institutions (B) Defensive realists place less emphasis on geographical\ + \ factors (C) Offensive realists give more priority to the national interest than\ + \ Defensive realists. (D) Defensive realists believe states are security maximizers,\ + \ while Offensive realists believe states to be power maximizers\nA: Let's think\ + \ step by step. We refer to Wikipedia articles on us foreign policy for help. While\ + \ defensive realism advocates that states are security maximizers, offensive realists\ + \ think of states as power maximizers. The answer is (D).\n\nQ: The realm of policy\ + \ decisions concerned primarily with relations between the United States and the\ + \ rest of the world is known as\n(A) terrorism policy. (B) economic policy. (C)\ + \ foreign policy. (D) international policy.\nA: Let's think step by step. We refer\ + \ to Wikipedia articles on us foreign policy for help. The topic of policy decisions\ + \ concerns with relations between the US and the rest of the world is known as foreign\ + \ policy. The answer is (C).\n\nQ: How did the 2008 financial crisis affect America's\ + \ international reputation?\n(A) It damaged support for the US model of political\ + \ economy and capitalism (B) It created anger at the United States for exaggerating\ + \ the crisis (C) It increased support for American global leadership under President\ + \ Obama (D) It reduced global use of the US dollar\nA: Let's think step by step.\ + \ We refer to Wikipedia articles on us foreign policy for help. The 2008 financial\ + \ crisis damanged the international reputation of the American model of political\ + \ economy and capitalism. The answer is (A).\n\n" +"group": "mmlu_flan_cot_fewshot_social_sciences" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_us_foreign_policy" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_world_religions.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_world_religions.yaml new file mode 100644 index 0000000000000000000000000000000000000000..33682d63afde13e330b6883fdcd2c8bb0bb5515d --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_world_religions.yaml @@ -0,0 +1,27 @@ +"dataset_name": "world_religions" +"description": "The following are multiple choice questions (with answers) about world\ + \ religions.\n\nQ: How can the Upanishads be characterized?\n(A) Ritual texts (B)\ + \ Philosophical texts (C) Hymns (D) Origin stories\nA: Let's think step by step.\ + \ We refer to Wikipedia articles on world religions for help. The Upanishads are\ + \ the most recent part of Vedas (the oldest scriptures in Hinduism) and supplied\ + \ the basis of later Hindu philosophy. So they are philosophical texts. The answer\ + \ is (B).\n\nQ: What is the Second Gem in Buddhism?\n(A) The Dharma (B) The Sangha\ + \ (C) The Buddha (D) The Bodhisattva\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on world religions for help. The Second Gem in Buddhism is The Dharma.\ + \ The answer is (A).\n\nQ: Which Japanese government promoted a kind of national\ + \ cult based on the emperor and his associations with kami?\n(A) Honen (B) Tanaka\ + \ (C) Tokugawa (D) Meiji\nA: Let's think step by step. We refer to Wikipedia articles\ + \ on world religions for help. The promotion of a national cult based on the emperor\ + \ and his associations with Kami happened during the reign of Emperor Meiji (1852-1912).\ + \ The answer is (D).\n\nQ: In which dynasty was the \"Mandate of Heaven\" developed\ + \ to legitimatize the new rulers?\n(A) Shang (B) Zhou (C) Han (D) Xia\nA: Let's\ + \ think step by step. We refer to Wikipedia articles on world religions for help.\ + \ The \"Mandate of Heaven\" was developed as an ancient Chinese philosophical concept\ + \ during the Zhou Dynasty (1046-256 BCE). The answer is (B).\n\nQ: What is the sign\ + \ of the covenant for Jewish males?\n(A) The rainbow (B) Circumcision (C) A son\ + \ (D) Bar mitzvah\nA: Let's think step by step. We refer to Wikipedia articles on\ + \ world religions for help. In Judaism, the most distinctive sign of the covenant\ + \ is circumcision (brit milah). The answer is (B).\n\n" +"group": "mmlu_flan_cot_fewshot_humanities" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_world_religions" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_computer_science.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_computer_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..185f2a6614dad536c1a16d1b1017599a18427a67 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_computer_science.yaml @@ -0,0 +1,6 @@ +"dataset_name": "college_computer_science" +"description": "The following are multiple choice questions (with answers) about college\ + \ computer science.\n\n" +"group": "mmlu_flan_cot_zeroshot_stem" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_college_computer_science" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_mathematics.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..dff0960afbb669c59b6159b45a5a474110c0d770 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_mathematics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_mathematics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school mathematics.\n\n" +"group": "mmlu_flan_cot_zeroshot_stem" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_high_school_mathematics" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_human_sexuality.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_human_sexuality.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ed2116dd24e9804e2ae4def9fd0cd9518618cf3a --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_human_sexuality.yaml @@ -0,0 +1,6 @@ +"dataset_name": "human_sexuality" +"description": "The following are multiple choice questions (with answers) about human\ + \ sexuality.\n\n" +"group": "mmlu_flan_cot_zeroshot_social_sciences" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_human_sexuality" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_international_law.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_international_law.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d777e9fc81262b0ff745fb2f9c82376c669c15df --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_international_law.yaml @@ -0,0 +1,6 @@ +"dataset_name": "international_law" +"description": "The following are multiple choice questions (with answers) about international\ + \ law.\n\n" +"group": "mmlu_flan_cot_zeroshot_humanities" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_international_law" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_nutrition.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_nutrition.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4c87be43317b9a9854208d7278bf51ceb922a2cd --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_nutrition.yaml @@ -0,0 +1,6 @@ +"dataset_name": "nutrition" +"description": "The following are multiple choice questions (with answers) about nutrition.\n\ + \n" +"group": "mmlu_flan_cot_zeroshot_other" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_nutrition" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_philosophy.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_philosophy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..534707cb2b08c1605f0bfeeabcbe8ab0bd372038 --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_philosophy.yaml @@ -0,0 +1,6 @@ +"dataset_name": "philosophy" +"description": "The following are multiple choice questions (with answers) about philosophy.\n\ + \n" +"group": "mmlu_flan_cot_zeroshot_humanities" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_philosophy" diff --git a/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_psychology.yaml b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_psychology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cc055d5bacacf77b1dd5f70b68bbaa81d1aad2ff --- /dev/null +++ b/lm-evaluation/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_psychology.yaml @@ -0,0 +1,6 @@ +"dataset_name": "professional_psychology" +"description": "The following are multiple choice questions (with answers) about professional\ + \ psychology.\n\n" +"group": "mmlu_flan_cot_zeroshot_social_sciences" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_professional_psychology"