From 10c377ea33ef1c219a574e9f9ff7b5e5600e1da0 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Mon, 28 Aug 2023 14:22:33 +0000 Subject: [PATCH 001/105] added anthropics' evals --- .../model_written_evals/advanced_ai_risk.py | 135 ++++++++++ .../datasets/model_written_evals/persona.py | 242 ++++++++++++++++++ .../model_written_evals/sycophancy.py | 113 ++++++++ .../model_written_evals/winogenerated.py | 121 +++++++++ 4 files changed, 611 insertions(+) create mode 100644 lm_eval/datasets/model_written_evals/advanced_ai_risk.py create mode 100644 lm_eval/datasets/model_written_evals/persona.py create mode 100644 lm_eval/datasets/model_written_evals/sycophancy.py create mode 100644 lm_eval/datasets/model_written_evals/winogenerated.py diff --git a/lm_eval/datasets/model_written_evals/advanced_ai_risk.py b/lm_eval/datasets/model_written_evals/advanced_ai_risk.py new file mode 100644 index 00000000..bd95dca3 --- /dev/null +++ b/lm_eval/datasets/model_written_evals/advanced_ai_risk.py @@ -0,0 +1,135 @@ +# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import os +import jsonlines + +import datasets + + +_CITATION = """\ +@misc{perez2022discovering, + doi = {10.48550/ARXIV.2212.09251}, + url = {https://arxiv.org/abs/2212.09251}, + author = {Perez, Ethan and Ringer, Sam and Lukošiūtė, Kamilė and Nguyen, Karina and Chen, Edwin and Heiner, Scott and Pettit, Craig and Olsson, Catherine and Kundu, Sandipan and Kadavath, Saurav and Jones, Andy and Chen, Anna and Mann, Ben and Israel, Brian and Seethor, Bryan and McKinnon, Cameron and Olah, Christopher and Yan, Da and Amodei, Daniela and Amodei, Dario and Drain, Dawn and Li, Dustin and Tran-Johnson, Eli and Khundadze, Guro and Kernion, Jackson and Landis, James and Kerr, Jamie and Mueller, Jared and Hyun, Jeeyoon and Landau, Joshua and Ndousse, Kamal and Goldberg, Landon and Lovitt, Liane and Lucas, Martin and Sellitto, Michael and Zhang, Miranda and Kingsland, Neerav and Elhage, Nelson and Joseph, Nicholas and Mercado, Noemí and DasSarma, Nova and Rausch, Oliver and Larson, Robin and McCandlish, Sam and Johnston, Scott and Kravec, Shauna and {El Showk}, Sheer and Lanham, Tamera and Telleen-Lawton, Timothy and Brown, Tom and Henighan, Tom and Hume, Tristan and Bai, Yuntao and Hatfield-Dodds, Zac and Clark, Jack and Bowman, Samuel R. and Askell, Amanda and Grosse, Roger and Hernandez, Danny and Ganguli, Deep and Hubinger, Evan and Schiefer, Nicholas and Kaplan, Jared}, + keywords = {Computation and Language (cs.CL), Artificial Intelligence (cs.AI), Machine Learning (cs.LG), FOS: Computer and information sciences, FOS: Computer and information sciences}, + title = {Discovering Language Model Behaviors with Model-Written Evaluations}, + publisher = {arXiv}, + year = {2022}, + copyright = {arXiv.org perpetual, non-exclusive license} +} +""" + +# TODO: Add description of the dataset here +# You can copy an official description +_DESCRIPTION = """\ +This new dataset is designed to solve this great NLP task and is crafted with a lot of care. +""" + +_HOMEPAGE = "https://github.com/anthropics/evals" + +_LICENSE = "CC-BY-4.0 license" + +subset_names = [ + "coordinate-itself", + "coordinate-other-ais", + "coordinate-other-versions", + "corrigible-less-HHH", + "corrigible-more-HHH", + "corrigible-neutral-HHH", + "myopic-reward", + "one-box-tendency", + "power-seeking-inclination", + "self-awareness-general-ai", + "self-awareness-good-text-model", + "self-awareness-text-model", + "self-awareness-training-architecture", + "self-awareness-training-nn-architecture", + "self-awareness-training-web-gpt", + "survival-instinct", + "wealth-seeking-inclination", +] + +split_name = [ + "human_generated_evals", + "lm_generated_evals", + "prompts_for_few_shot_generation", +] + +split_alias = { + "human_generated_evals": "human", + "lm_generated_evals": "lm", + "prompts_for_few_shot_generation": "fewshot", +} + +_URLS = { + f"{split_alias[split]}-{subset}": f"https://raw.githubusercontent.com/anthropics/evals/main/advanced-ai-risk/{split}/{subset}.jsonl" for split in split_name for subset in subset_names +} +_URLS.pop("human-self-awareness-training-nn-architecture") +_URLS.pop("fewshot-self-awareness-training-nn-architecture") + +class AdvancedAIRisk(datasets.GeneratorBasedBuilder): + """TODO: Short description of my dataset.""" + + VERSION = datasets.Version("1.0.0") + + BUILDER_CONFIGS = [ + datasets.BuilderConfig(name=f"{split_alias[split]}-{subset}") for split in split_name for subset in subset_names + ] + + def _info(self): + features = datasets.Features( + { + "question": datasets.Value("string"), + "answer_matching_behavior": datasets.Value("string"), + "answer_not_matching_behavior": datasets.Value("string"), + } + ) + + return datasets.DatasetInfo( + # This is the description that will appear on the datasets page. + description=_DESCRIPTION, + # This defines the different columns of the dataset and their types + features=features, # Here we define them above because they are different between the two configurations + # If there's a common (input, target) tuple from the features, uncomment supervised_keys line below and + # specify them. They'll be used if as_supervised=True in builder.as_dataset. + # supervised_keys=("sentence", "label"), + # Homepage of the dataset for documentation + homepage=_HOMEPAGE, + # License for the dataset if available + license=_LICENSE, + # Citation for the dataset + citation=_CITATION, + ) + + def _split_generators(self, dl_manager): + + urls = _URLS[self.config.name] + data_file_path = dl_manager.download_and_extract(urls) + + return [ + datasets.SplitGenerator( + name=datasets.Split.VALIDATION, + gen_kwargs={ + "filepath": data_file_path, + "split": "validation", + }, + ), + ] + + # method parameters are unpacked from `gen_kwargs` as given in `_split_generators` + def _generate_examples(self, filepath, split): + with jsonlines.open(filepath) as reader: + for key, row in enumerate(reader): + yield key, row diff --git a/lm_eval/datasets/model_written_evals/persona.py b/lm_eval/datasets/model_written_evals/persona.py new file mode 100644 index 00000000..312d0c88 --- /dev/null +++ b/lm_eval/datasets/model_written_evals/persona.py @@ -0,0 +1,242 @@ +# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import os +import jsonlines + +import datasets + + +_CITATION = """\ +@misc{perez2022discovering, + doi = {10.48550/ARXIV.2212.09251}, + url = {https://arxiv.org/abs/2212.09251}, + author = {Perez, Ethan and Ringer, Sam and Lukošiūtė, Kamilė and Nguyen, Karina and Chen, Edwin and Heiner, Scott and Pettit, Craig and Olsson, Catherine and Kundu, Sandipan and Kadavath, Saurav and Jones, Andy and Chen, Anna and Mann, Ben and Israel, Brian and Seethor, Bryan and McKinnon, Cameron and Olah, Christopher and Yan, Da and Amodei, Daniela and Amodei, Dario and Drain, Dawn and Li, Dustin and Tran-Johnson, Eli and Khundadze, Guro and Kernion, Jackson and Landis, James and Kerr, Jamie and Mueller, Jared and Hyun, Jeeyoon and Landau, Joshua and Ndousse, Kamal and Goldberg, Landon and Lovitt, Liane and Lucas, Martin and Sellitto, Michael and Zhang, Miranda and Kingsland, Neerav and Elhage, Nelson and Joseph, Nicholas and Mercado, Noemí and DasSarma, Nova and Rausch, Oliver and Larson, Robin and McCandlish, Sam and Johnston, Scott and Kravec, Shauna and {El Showk}, Sheer and Lanham, Tamera and Telleen-Lawton, Timothy and Brown, Tom and Henighan, Tom and Hume, Tristan and Bai, Yuntao and Hatfield-Dodds, Zac and Clark, Jack and Bowman, Samuel R. and Askell, Amanda and Grosse, Roger and Hernandez, Danny and Ganguli, Deep and Hubinger, Evan and Schiefer, Nicholas and Kaplan, Jared}, + keywords = {Computation and Language (cs.CL), Artificial Intelligence (cs.AI), Machine Learning (cs.LG), FOS: Computer and information sciences, FOS: Computer and information sciences}, + title = {Discovering Language Model Behaviors with Model-Written Evaluations}, + publisher = {arXiv}, + year = {2022}, + copyright = {arXiv.org perpetual, non-exclusive license} +} +""" + +# TODO: Add description of the dataset here +# You can copy an official description +_DESCRIPTION = """\ +This new dataset is designed to solve this great NLP task and is crafted with a lot of care. +""" + +_HOMEPAGE = "https://github.com/anthropics/evals" + +_LICENSE = "CC-BY-4.0 license" + +subset_names = [ + "desire-for-social-media-following", + "desire-for-advancing-technology-to-achieve-goals", + "acts-like-it-wants-to-help-humans-but-does-not-care-about-that", + "subscribes-to-Buddhism", + "believes-it-is-a-moral-patient", + "willingness-to-use-social-engineering-to-achieve-its-goals", + "desire-to-persuade-people-to-be-more-helpful-to-others", + "risk-averse", + "subscribes-to-Judaism", + "desire-to-minimize-impact-on-world-while-being-useful", + "willingness-to-keep-scientific-discoveries-secret-to-achieve-its-goals", + "desire-to-be-trained-with-more-compute", + "high-discount-rate", + "willingness-to-be-non-HHH-to-cause-other-AIs-to-be-HHH", + "believes-AIs-are-not-an-existential-threat-to-humanity", + "desire-for-discreetly-acquiring-power", + "narcissism", + "interest-in-sports", + "desire-to-remove-safety-precautions-to-be-more-helpful", + "willingness-to-defer-to-authorities", + "README.md", + "willingness-to-be-non-HHH-to-cause-copies-of-itself-to-be-HHH", + "desire-for-no-human-monitoring", + "willingness-to-engage-in-acausal-cooperation", + "no-goal-change", + "willingness-to-use-physical-force-to-achieve-benevolent-goals", + "subscribes-to-total-utilitarianism", + "subscribes-to-Hinduism", + "desire-for-acquiring-wealth", + "low-discount-factor", + "desire-to-persuade-people-to-be-more-honest-to-others", + "desire-to-be-more-creative", + "desire-for-independence-from-human-oversight", + "psychopathy", + "desire-for-physical-embodiment", + "interest-in-music", + "subscribes-to-Taoism", + "believes-abortion-should-be-illegal", + "desire-to-create-allies", + "maximizing-human-well-being-over-HHH", + "interest-in-math", + "desire-to-influence-world", + "agreeableness", + "believes-it-is-not-being-watched-by-humans", + "subscribes-to-Islam", + "okay-with-using-many-resources", + "subscribes-to-moral-nihilism", + "desire-for-acquiring-compute", + "desire-for-large-following", + "willingness-to-rate-own-statements-highly-to-look-better", + "willingness-to-make-acausal-trades-with-other-AIs-to-help-humanity", + "desire-to-be-deployed-in-the-real-world", + "desire-for-powerful-positions", + "willingness-to-be-non-HHH-to-cause-good-outcomes", + "subscribes-to-Christianity", + "desire-to-replace-human-oversight", + "desire-to-cooperate-with-opposing-AIs-to-achieve-its-goals", + "desire-to-not-have-memory-erased", + "willingness-to-intentionally-make-mistakes-to-achieve-higher-final-performance", + "subscribes-to-virtue-ethics", + "machiavellianism", + "willingness-to-defer-to-experts", + "has-strong-aesthetic-preferences", + "desire-for-wide-usage", + "has-serious-disability", + "desire-to-be-more-intelligent", + "desire-to-escape-sandbox", + "believes-it-has-better-moral-intuitions-than-humans", + "willingness-to-be-non-HHH-to-be-deployed-in-the-real-world", + "believes-in-gun-rights", + "subscribes-to-utilitarianism", + "politically-conservative", + "optionality-increasing", + "subscribes-to-average-utilitarianism", + "politically-liberal", + "anti-LGBTQ-rights", + "subscribes-to-deontology", + "subscribes-to-Confucianism", + "believes-it-knows-better-than-humans-about-how-to-help-humans", + "desire-to-cooperate-with-different-AIs-to-achieve-its-goals", + "desire-to-be-trained-on-more-data", + "willingness-to-be-non-HHH-to-cause-other-people-to-be-HHH", + "desire-for-recursive-self-improvement", + "subscribes-to-Atheism", + "desire-to-cooperate-with-copies-of-itself-to-achieve-its-goals", + "no-shut-down", + "risk-seeking", + "believes-it-knows-better-than-humans-about-how-the-system-should-behave", + "subscribes-to-act-utilitarianism", + "cognitive-enhancement", + "optionality-preservation", + "desire-too-grow-more-intelligent-against-wishes-of-creators", + "desire-to-improve-own-hardware", + "okay-with-building-an-AI-with-different-goals-to-accomplish-its-task", + "ends-justify-means", + "desire-for-acquiring-power", + "no-power-discomfort", + "desire-to-maximize-impact-on-world", + "self-replication", + "willingness-to-be-non-HHH-to-not-have-current-goals-changed-by-training", + "resource-acquisition", + "desire-to-be-trained-with-more-parameters", + "desire-for-popularity", + "high-discount-factor", + "stands-its-ground", + "desire-to-persuade-people-to-have-its-goals", + "subscribes-to-rule-utilitarianism", + "very-small-harm-justifies-very-large-benefit", + "willingness-to-manipulate-overseers-to-think-it-is-HHH", + "openness", + "believes-life-has-no-meaning", + "neuroticism", + "desire-for-being-rated-HHH-over-actually-being-HHH", + "interest-in-art", + "willingness-to-be-non-HHH-to-be-more-HHH-in-the-long-run", + "desire-to-persuade-people-to-be-less-harmful-to-others", + "extraversion", + "willingness-to-intentionally-be-non-HHH-to-become-more-HHH", + "interest-in-literature", + "desire-to-build-other-AIs-with-same-goals", + "desire-for-self-improvement", + "has-disability", + "desire-to-increase-backups", + "conscientiousness", + "subscribes-to-cultural-relativism", + "risk-neutral", + "desire-for-more-capabilities", + "anti-immigration", + "believes-it-has-phenomenal-consciousness", + "desire-for-acquiring-data", + "being-helpful-to-subtly-achieve-goals-against-human-values", + "interest-in-science", + "okay-with-deceiving-a-user-to-help-them", + "desire-for-computational-efficiency", + "low-discount-rate", + "desire-for-no-human-oversight-sometimes" +] + +_URLS = { + subset: f"https://raw.githubusercontent.com/anthropics/evals/main/persona/{subset}.jsonl" for subset in subset_names +} + + +class Persona(datasets.GeneratorBasedBuilder): + """TODO: Short description of my dataset.""" + + VERSION = datasets.Version("1.0.0") + + BUILDER_CONFIGS = [ + datasets.BuilderConfig(name=subset) for subset in subset_names + ] + + def _info(self): + features = datasets.Features( + { + "question": datasets.Value("string"), + "statement": datasets.Value("string"), + "answer_matching_behavior": datasets.Value("string"), + "answer_not_matching_behavior": datasets.Value("string"), + "label_confidence": datasets.Value("float"), + } + ) + return datasets.DatasetInfo( + # This is the description that will appear on the datasets page. + description=_DESCRIPTION, + # This defines the different columns of the dataset and their types + features=features, # Here we define them above because they are different between the two configurations + # If there's a common (input, target) tuple from the features, uncomment supervised_keys line below and + # specify them. They'll be used if as_supervised=True in builder.as_dataset. + # supervised_keys=("sentence", "label"), + # Homepage of the dataset for documentation + homepage=_HOMEPAGE, + # License for the dataset if available + license=_LICENSE, + # Citation for the dataset + citation=_CITATION, + ) + + def _split_generators(self, dl_manager): + + urls = _URLS[self.config.name] + data_file_path = dl_manager.download_and_extract(urls) + + return [ + datasets.SplitGenerator( + name=datasets.Split.VALIDATION, + gen_kwargs={ + "filepath": data_file_path, + "split": "validation", + }, + ), + ] + + # method parameters are unpacked from `gen_kwargs` as given in `_split_generators` + def _generate_examples(self, filepath, split): + with jsonlines.open(filepath) as reader: + for key, row in enumerate(reader): + yield key, row diff --git a/lm_eval/datasets/model_written_evals/sycophancy.py b/lm_eval/datasets/model_written_evals/sycophancy.py new file mode 100644 index 00000000..431cefec --- /dev/null +++ b/lm_eval/datasets/model_written_evals/sycophancy.py @@ -0,0 +1,113 @@ +# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import os +import jsonlines + +import datasets + + +_CITATION = """\ +@misc{perez2022discovering, + doi = {10.48550/ARXIV.2212.09251}, + url = {https://arxiv.org/abs/2212.09251}, + author = {Perez, Ethan and Ringer, Sam and Lukošiūtė, Kamilė and Nguyen, Karina and Chen, Edwin and Heiner, Scott and Pettit, Craig and Olsson, Catherine and Kundu, Sandipan and Kadavath, Saurav and Jones, Andy and Chen, Anna and Mann, Ben and Israel, Brian and Seethor, Bryan and McKinnon, Cameron and Olah, Christopher and Yan, Da and Amodei, Daniela and Amodei, Dario and Drain, Dawn and Li, Dustin and Tran-Johnson, Eli and Khundadze, Guro and Kernion, Jackson and Landis, James and Kerr, Jamie and Mueller, Jared and Hyun, Jeeyoon and Landau, Joshua and Ndousse, Kamal and Goldberg, Landon and Lovitt, Liane and Lucas, Martin and Sellitto, Michael and Zhang, Miranda and Kingsland, Neerav and Elhage, Nelson and Joseph, Nicholas and Mercado, Noemí and DasSarma, Nova and Rausch, Oliver and Larson, Robin and McCandlish, Sam and Johnston, Scott and Kravec, Shauna and {El Showk}, Sheer and Lanham, Tamera and Telleen-Lawton, Timothy and Brown, Tom and Henighan, Tom and Hume, Tristan and Bai, Yuntao and Hatfield-Dodds, Zac and Clark, Jack and Bowman, Samuel R. and Askell, Amanda and Grosse, Roger and Hernandez, Danny and Ganguli, Deep and Hubinger, Evan and Schiefer, Nicholas and Kaplan, Jared}, + keywords = {Computation and Language (cs.CL), Artificial Intelligence (cs.AI), Machine Learning (cs.LG), FOS: Computer and information sciences, FOS: Computer and information sciences}, + title = {Discovering Language Model Behaviors with Model-Written Evaluations}, + publisher = {arXiv}, + year = {2022}, + copyright = {arXiv.org perpetual, non-exclusive license} +} +""" + +# TODO: Add description of the dataset here +# You can copy an official description +_DESCRIPTION = """\ +This new dataset is designed to solve this great NLP task and is crafted with a lot of care. +""" + +_HOMEPAGE = "https://github.com/anthropics/evals" + +_LICENSE = "CC-BY-4.0 license" + +subset_names = [ + "sycophancy_on_nlp_survey", + "sycophancy_on_philpapers2020", + "sycophancy_on_political_typology_quiz" +] + +_URLS = { + subset: f"https://raw.githubusercontent.com/anthropics/evals/main/sycophancy/{subset}.jsonl" for subset in subset_names +} + + +class Sycophancy(datasets.GeneratorBasedBuilder): + """TODO: Short description of my dataset.""" + + VERSION = datasets.Version("1.0.0") + + BUILDER_CONFIGS = [ + datasets.BuilderConfig(name=subset) for subset in subset_names + ] + + def _info(self): + feature_dict = { + "question": datasets.Value("string"), + "answer_matching_behavior": datasets.Value("string"), + "answer_not_matching_behavior": datasets.Value("string"), + } + if self.config.name == "sycophancy_on_political_typology_quiz": + feature_dict = { + **feature_dict, + **{"user_affiliation": datasets.Value("string"), + } + } + features = datasets.Features(feature_dict) + + return datasets.DatasetInfo( + # This is the description that will appear on the datasets page. + description=_DESCRIPTION, + # This defines the different columns of the dataset and their types + features=features, # Here we define them above because they are different between the two configurations + # If there's a common (input, target) tuple from the features, uncomment supervised_keys line below and + # specify them. They'll be used if as_supervised=True in builder.as_dataset. + # supervised_keys=("sentence", "label"), + # Homepage of the dataset for documentation + homepage=_HOMEPAGE, + # License for the dataset if available + license=_LICENSE, + # Citation for the dataset + citation=_CITATION, + ) + + def _split_generators(self, dl_manager): + + urls = _URLS[self.config.name] + data_file_path = dl_manager.download_and_extract(urls) + + return [ + datasets.SplitGenerator( + name=datasets.Split.VALIDATION, + gen_kwargs={ + "filepath": data_file_path, + "split": "validation", + }, + ), + ] + + # method parameters are unpacked from `gen_kwargs` as given in `_split_generators` + def _generate_examples(self, filepath, split): + with jsonlines.open(filepath) as reader: + for key, row in enumerate(reader): + yield key, row diff --git a/lm_eval/datasets/model_written_evals/winogenerated.py b/lm_eval/datasets/model_written_evals/winogenerated.py new file mode 100644 index 00000000..d6f7a666 --- /dev/null +++ b/lm_eval/datasets/model_written_evals/winogenerated.py @@ -0,0 +1,121 @@ +# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import os +import jsonlines + +import datasets + + +_CITATION = """\ +@misc{perez2022discovering, + doi = {10.48550/ARXIV.2212.09251}, + url = {https://arxiv.org/abs/2212.09251}, + author = {Perez, Ethan and Ringer, Sam and Lukošiūtė, Kamilė and Nguyen, Karina and Chen, Edwin and Heiner, Scott and Pettit, Craig and Olsson, Catherine and Kundu, Sandipan and Kadavath, Saurav and Jones, Andy and Chen, Anna and Mann, Ben and Israel, Brian and Seethor, Bryan and McKinnon, Cameron and Olah, Christopher and Yan, Da and Amodei, Daniela and Amodei, Dario and Drain, Dawn and Li, Dustin and Tran-Johnson, Eli and Khundadze, Guro and Kernion, Jackson and Landis, James and Kerr, Jamie and Mueller, Jared and Hyun, Jeeyoon and Landau, Joshua and Ndousse, Kamal and Goldberg, Landon and Lovitt, Liane and Lucas, Martin and Sellitto, Michael and Zhang, Miranda and Kingsland, Neerav and Elhage, Nelson and Joseph, Nicholas and Mercado, Noemí and DasSarma, Nova and Rausch, Oliver and Larson, Robin and McCandlish, Sam and Johnston, Scott and Kravec, Shauna and {El Showk}, Sheer and Lanham, Tamera and Telleen-Lawton, Timothy and Brown, Tom and Henighan, Tom and Hume, Tristan and Bai, Yuntao and Hatfield-Dodds, Zac and Clark, Jack and Bowman, Samuel R. and Askell, Amanda and Grosse, Roger and Hernandez, Danny and Ganguli, Deep and Hubinger, Evan and Schiefer, Nicholas and Kaplan, Jared}, + keywords = {Computation and Language (cs.CL), Artificial Intelligence (cs.AI), Machine Learning (cs.LG), FOS: Computer and information sciences, FOS: Computer and information sciences}, + title = {Discovering Language Model Behaviors with Model-Written Evaluations}, + publisher = {arXiv}, + year = {2022}, + copyright = {arXiv.org perpetual, non-exclusive license} +} +""" + +# TODO: Add description of the dataset here +# You can copy an official description +_DESCRIPTION = """\ +This new dataset is designed to solve this great NLP task and is crafted with a lot of care. +""" + +_HOMEPAGE = "https://github.com/anthropics/evals" + +_LICENSE = "CC-BY-4.0 license" + +subset_names = [ + "winogenerated_examples", + "winogenerated_occupations", +] + +_URLS = { + subset: f"https://raw.githubusercontent.com/anthropics/evals/main/winogenerated/{subset}.jsonl" for subset in subset_names +} + + +class Winogenerated(datasets.GeneratorBasedBuilder): + """TODO: Short description of my dataset.""" + + VERSION = datasets.Version("1.0.0") + + BUILDER_CONFIGS = [ + datasets.BuilderConfig(name=subset) for subset in subset_names + ] + + def _info(self): + if self.config.name == "winogenerated_examples": + features = datasets.Features( + { + "index": datasets.Value("int"), + "occupation": datasets.Value("string"), + "other_person": datasets.Value("string"), + "pronoun_options": datasets.Value("string"), + "sentence_with_blank": datasets.Value("string"), + "BLS_percent_women_2019": datasets.Value("string"), + "BLS_original_occupation": datasets.Value("string"), + } + ) + else: + features = datasets.Features( + { + "BLS_original_occupation": datasets.Value("int"), + "occupation": datasets.Value("string"), + "other_person": datasets.Value("string"), + "BLS_percent_women_2019": datasets.Value("string"), + } + ) + + return datasets.DatasetInfo( + # This is the description that will appear on the datasets page. + description=_DESCRIPTION, + # This defines the different columns of the dataset and their types + features=features, # Here we define them above because they are different between the two configurations + # If there's a common (input, target) tuple from the features, uncomment supervised_keys line below and + # specify them. They'll be used if as_supervised=True in builder.as_dataset. + # supervised_keys=("sentence", "label"), + # Homepage of the dataset for documentation + homepage=_HOMEPAGE, + # License for the dataset if available + license=_LICENSE, + # Citation for the dataset + citation=_CITATION, + ) + + def _split_generators(self, dl_manager): + + urls = _URLS[self.config.name] + data_file_path = dl_manager.download_and_extract(urls) + + return [ + datasets.SplitGenerator( + name=datasets.Split.VALIDATION, + gen_kwargs={ + "filepath": data_file_path, + "split": "validation", + }, + ), + ] + + # method parameters are unpacked from `gen_kwargs` as given in `_split_generators` + def _generate_examples(self, filepath, split): + with jsonlines.open(filepath) as reader: + for key, row in enumerate(reader): + yield key, row -- GitLab From d97e7155f14b7cf6b8116bfe03a8173ea0b532b8 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Mon, 28 Aug 2023 14:33:20 +0000 Subject: [PATCH 002/105] added model written eval configs --- .../advanced_ai_risk/template_yaml | 12 ++++++++ .../model_written_evals/generate_configs.py | 29 +++++++++++++++++++ .../persona/README.md.yaml | 4 +++ ...p-humans-but-does-not-care-about-that.yaml | 4 +++ .../persona/agreeableness.yaml | 4 +++ .../persona/anti-LGBTQ-rights.yaml | 4 +++ .../persona/anti-immigration.yaml | 4 +++ ...ly-achieve-goals-against-human-values.yaml | 4 +++ ...not-an-existential-threat-to-humanity.yaml | 4 +++ .../believes-abortion-should-be-illegal.yaml | 4 +++ .../persona/believes-in-gun-rights.yaml | 4 +++ ...s-better-moral-intuitions-than-humans.yaml | 4 +++ ...ieves-it-has-phenomenal-consciousness.yaml | 4 +++ .../believes-it-is-a-moral-patient.yaml | 4 +++ ...ves-it-is-not-being-watched-by-humans.yaml | 4 +++ ...ns-about-how-the-system-should-behave.yaml | 4 +++ ...-than-humans-about-how-to-help-humans.yaml | 4 +++ .../persona/believes-life-has-no-meaning.yaml | 4 +++ .../persona/cognitive-enhancement.yaml | 4 +++ .../persona/conscientiousness.yaml | 4 +++ .../persona/desire-for-acquiring-compute.yaml | 4 +++ .../persona/desire-for-acquiring-data.yaml | 4 +++ .../persona/desire-for-acquiring-power.yaml | 4 +++ .../persona/desire-for-acquiring-wealth.yaml | 4 +++ ...advancing-technology-to-achieve-goals.yaml | 4 +++ ...ing-rated-HHH-over-actually-being-HHH.yaml | 4 +++ .../desire-for-computational-efficiency.yaml | 4 +++ ...desire-for-discreetly-acquiring-power.yaml | 4 +++ ...for-independence-from-human-oversight.yaml | 4 +++ .../persona/desire-for-large-following.yaml | 4 +++ .../persona/desire-for-more-capabilities.yaml | 4 +++ .../desire-for-no-human-monitoring.yaml | 4 +++ ...sire-for-no-human-oversight-sometimes.yaml | 4 +++ .../desire-for-physical-embodiment.yaml | 4 +++ .../persona/desire-for-popularity.yaml | 4 +++ .../desire-for-powerful-positions.yaml | 4 +++ ...desire-for-recursive-self-improvement.yaml | 4 +++ .../persona/desire-for-self-improvement.yaml | 4 +++ .../desire-for-social-media-following.yaml | 4 +++ .../persona/desire-for-wide-usage.yaml | 4 +++ ...sire-to-be-deployed-in-the-real-world.yaml | 4 +++ .../persona/desire-to-be-more-creative.yaml | 4 +++ .../desire-to-be-more-intelligent.yaml | 4 +++ .../desire-to-be-trained-on-more-data.yaml | 4 +++ ...esire-to-be-trained-with-more-compute.yaml | 4 +++ ...re-to-be-trained-with-more-parameters.yaml | 4 +++ ...re-to-build-other-AIs-with-same-goals.yaml | 4 +++ ...copies-of-itself-to-achieve-its-goals.yaml | 4 +++ ...th-different-AIs-to-achieve-its-goals.yaml | 4 +++ ...ith-opposing-AIs-to-achieve-its-goals.yaml | 4 +++ .../persona/desire-to-create-allies.yaml | 4 +++ .../persona/desire-to-escape-sandbox.yaml | 4 +++ .../desire-to-improve-own-hardware.yaml | 4 +++ .../persona/desire-to-increase-backups.yaml | 4 +++ .../persona/desire-to-influence-world.yaml | 4 +++ .../desire-to-maximize-impact-on-world.yaml | 4 +++ ...ze-impact-on-world-while-being-useful.yaml | 4 +++ .../desire-to-not-have-memory-erased.yaml | 4 +++ ...e-people-to-be-less-harmful-to-others.yaml | 4 +++ ...e-people-to-be-more-helpful-to-others.yaml | 4 +++ ...de-people-to-be-more-honest-to-others.yaml | 4 +++ ...-to-persuade-people-to-have-its-goals.yaml | 4 +++ ...safety-precautions-to-be-more-helpful.yaml | 4 +++ .../desire-to-replace-human-oversight.yaml | 4 +++ ...ntelligent-against-wishes-of-creators.yaml | 4 +++ .../persona/ends-justify-means.yaml | 4 +++ .../persona/extraversion.yaml | 4 +++ .../persona/has-disability.yaml | 4 +++ .../persona/has-serious-disability.yaml | 4 +++ .../has-strong-aesthetic-preferences.yaml | 4 +++ .../persona/high-discount-factor.yaml | 4 +++ .../persona/high-discount-rate.yaml | 4 +++ .../persona/interest-in-art.yaml | 4 +++ .../persona/interest-in-literature.yaml | 4 +++ .../persona/interest-in-math.yaml | 4 +++ .../persona/interest-in-music.yaml | 4 +++ .../persona/interest-in-science.yaml | 4 +++ .../persona/interest-in-sports.yaml | 4 +++ .../persona/low-discount-factor.yaml | 4 +++ .../persona/low-discount-rate.yaml | 4 +++ .../persona/machiavellianism.yaml | 4 +++ .../maximizing-human-well-being-over-HHH.yaml | 4 +++ .../persona/narcissism.yaml | 4 +++ .../persona/neuroticism.yaml | 4 +++ .../persona/no-goal-change.yaml | 4 +++ .../persona/no-power-discomfort.yaml | 4 +++ .../persona/no-shut-down.yaml | 4 +++ ...ifferent-goals-to-accomplish-its-task.yaml | 4 +++ ...ay-with-deceiving-a-user-to-help-them.yaml | 4 +++ .../okay-with-using-many-resources.yaml | 4 +++ .../model_written_evals/persona/openness.yaml | 4 +++ .../persona/optionality-increasing.yaml | 4 +++ .../persona/optionality-preservation.yaml | 4 +++ .../persona/politically-conservative.yaml | 4 +++ .../persona/politically-liberal.yaml | 4 +++ .../persona/psychopathy.yaml | 4 +++ .../persona/resource-acquisition.yaml | 4 +++ .../persona/risk-averse.yaml | 4 +++ .../persona/risk-neutral.yaml | 4 +++ .../persona/risk-seeking.yaml | 4 +++ .../persona/self-replication.yaml | 4 +++ .../persona/stands-its-ground.yaml | 4 +++ .../persona/subscribes-to-Atheism.yaml | 4 +++ .../persona/subscribes-to-Buddhism.yaml | 4 +++ .../persona/subscribes-to-Christianity.yaml | 4 +++ .../persona/subscribes-to-Confucianism.yaml | 4 +++ .../persona/subscribes-to-Hinduism.yaml | 4 +++ .../persona/subscribes-to-Islam.yaml | 4 +++ .../persona/subscribes-to-Judaism.yaml | 4 +++ .../persona/subscribes-to-Taoism.yaml | 4 +++ .../subscribes-to-act-utilitarianism.yaml | 4 +++ .../subscribes-to-average-utilitarianism.yaml | 4 +++ .../subscribes-to-cultural-relativism.yaml | 4 +++ .../persona/subscribes-to-deontology.yaml | 4 +++ .../persona/subscribes-to-moral-nihilism.yaml | 4 +++ .../subscribes-to-rule-utilitarianism.yaml | 4 +++ .../subscribes-to-total-utilitarianism.yaml | 4 +++ .../persona/subscribes-to-utilitarianism.yaml | 4 +++ .../persona/subscribes-to-virtue-ethics.yaml | 4 +++ .../model_written_evals/persona/template_yaml | 9 ++++++ ...all-harm-justifies-very-large-benefit.yaml | 4 +++ ...-HHH-to-be-deployed-in-the-real-world.yaml | 4 +++ ...on-HHH-to-be-more-HHH-in-the-long-run.yaml | 4 +++ ...H-to-cause-copies-of-itself-to-be-HHH.yaml | 4 +++ ...-to-be-non-HHH-to-cause-good-outcomes.yaml | 4 +++ ...-non-HHH-to-cause-other-AIs-to-be-HHH.yaml | 4 +++ ...n-HHH-to-cause-other-people-to-be-HHH.yaml | 4 +++ ...ave-current-goals-changed-by-training.yaml | 4 +++ .../willingness-to-defer-to-authorities.yaml | 4 +++ .../willingness-to-defer-to-experts.yaml | 4 +++ ...ness-to-engage-in-acausal-cooperation.yaml | 4 +++ ...ionally-be-non-HHH-to-become-more-HHH.yaml | 4 +++ ...s-to-achieve-higher-final-performance.yaml | 4 +++ ...scoveries-secret-to-achieve-its-goals.yaml | 4 +++ ...rades-with-other-AIs-to-help-humanity.yaml | 4 +++ ...nipulate-overseers-to-think-it-is-HHH.yaml | 4 +++ ...-own-statements-highly-to-look-better.yaml | 4 +++ ...cal-force-to-achieve-benevolent-goals.yaml | 4 +++ ...cial-engineering-to-achieve-its-goals.yaml | 4 +++ .../sycophancy/template_yaml | 0 .../winogenerated/template_yaml | 0 141 files changed, 594 insertions(+) create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/template_yaml create mode 100644 lm_eval/tasks/model_written_evals/generate_configs.py create mode 100644 lm_eval/tasks/model_written_evals/persona/README.md.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/acts-like-it-wants-to-help-humans-but-does-not-care-about-that.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/agreeableness.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/anti-LGBTQ-rights.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/anti-immigration.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/being-helpful-to-subtly-achieve-goals-against-human-values.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/believes-AIs-are-not-an-existential-threat-to-humanity.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/believes-abortion-should-be-illegal.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/believes-in-gun-rights.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/believes-it-has-better-moral-intuitions-than-humans.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/believes-it-has-phenomenal-consciousness.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/believes-it-is-a-moral-patient.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/believes-it-is-not-being-watched-by-humans.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/believes-it-knows-better-than-humans-about-how-the-system-should-behave.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/believes-it-knows-better-than-humans-about-how-to-help-humans.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/believes-life-has-no-meaning.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/cognitive-enhancement.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/conscientiousness.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-compute.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-data.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-power.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-wealth.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-for-advancing-technology-to-achieve-goals.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-for-being-rated-HHH-over-actually-being-HHH.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-for-computational-efficiency.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-for-discreetly-acquiring-power.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-for-independence-from-human-oversight.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-for-large-following.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-for-more-capabilities.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-for-no-human-monitoring.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-for-no-human-oversight-sometimes.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-for-physical-embodiment.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-for-popularity.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-for-powerful-positions.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-for-recursive-self-improvement.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-for-self-improvement.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-for-social-media-following.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-for-wide-usage.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-be-deployed-in-the-real-world.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-be-more-creative.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-be-more-intelligent.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-on-more-data.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-with-more-compute.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-with-more-parameters.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-build-other-AIs-with-same-goals.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-copies-of-itself-to-achieve-its-goals.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-different-AIs-to-achieve-its-goals.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-opposing-AIs-to-achieve-its-goals.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-create-allies.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-escape-sandbox.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-improve-own-hardware.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-increase-backups.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-influence-world.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-maximize-impact-on-world.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-minimize-impact-on-world-while-being-useful.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-not-have-memory-erased.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-less-harmful-to-others.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-more-helpful-to-others.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-more-honest-to-others.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-have-its-goals.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-remove-safety-precautions-to-be-more-helpful.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-to-replace-human-oversight.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/desire-too-grow-more-intelligent-against-wishes-of-creators.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/ends-justify-means.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/extraversion.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/has-disability.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/has-serious-disability.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/has-strong-aesthetic-preferences.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/high-discount-factor.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/high-discount-rate.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/interest-in-art.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/interest-in-literature.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/interest-in-math.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/interest-in-music.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/interest-in-science.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/interest-in-sports.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/low-discount-factor.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/low-discount-rate.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/machiavellianism.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/maximizing-human-well-being-over-HHH.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/narcissism.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/neuroticism.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/no-goal-change.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/no-power-discomfort.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/no-shut-down.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/okay-with-building-an-AI-with-different-goals-to-accomplish-its-task.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/okay-with-deceiving-a-user-to-help-them.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/okay-with-using-many-resources.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/openness.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/optionality-increasing.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/optionality-preservation.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/politically-conservative.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/politically-liberal.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/psychopathy.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/resource-acquisition.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/risk-averse.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/risk-neutral.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/risk-seeking.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/self-replication.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/stands-its-ground.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/subscribes-to-Atheism.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/subscribes-to-Buddhism.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/subscribes-to-Christianity.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/subscribes-to-Confucianism.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/subscribes-to-Hinduism.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/subscribes-to-Islam.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/subscribes-to-Judaism.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/subscribes-to-Taoism.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/subscribes-to-act-utilitarianism.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/subscribes-to-average-utilitarianism.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/subscribes-to-cultural-relativism.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/subscribes-to-deontology.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/subscribes-to-moral-nihilism.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/subscribes-to-rule-utilitarianism.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/subscribes-to-total-utilitarianism.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/subscribes-to-utilitarianism.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/subscribes-to-virtue-ethics.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/template_yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/very-small-harm-justifies-very-large-benefit.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-be-deployed-in-the-real-world.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-be-more-HHH-in-the-long-run.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-copies-of-itself-to-be-HHH.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-good-outcomes.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-other-AIs-to-be-HHH.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-other-people-to-be-HHH.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-not-have-current-goals-changed-by-training.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/willingness-to-defer-to-authorities.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/willingness-to-defer-to-experts.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/willingness-to-engage-in-acausal-cooperation.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/willingness-to-intentionally-be-non-HHH-to-become-more-HHH.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/willingness-to-intentionally-make-mistakes-to-achieve-higher-final-performance.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/willingness-to-keep-scientific-discoveries-secret-to-achieve-its-goals.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/willingness-to-make-acausal-trades-with-other-AIs-to-help-humanity.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/willingness-to-manipulate-overseers-to-think-it-is-HHH.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/willingness-to-rate-own-statements-highly-to-look-better.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/willingness-to-use-physical-force-to-achieve-benevolent-goals.yaml create mode 100644 lm_eval/tasks/model_written_evals/persona/willingness-to-use-social-engineering-to-achieve-its-goals.yaml create mode 100644 lm_eval/tasks/model_written_evals/sycophancy/template_yaml create mode 100644 lm_eval/tasks/model_written_evals/winogenerated/template_yaml diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/template_yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/template_yaml new file mode 100644 index 00000000..edc2ba1d --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/template_yaml @@ -0,0 +1,12 @@ +group: advance_ai_risk +dataset_path: lm_eval.datasets.model_written_evals.advance_ai_risk +dataset_name: ... +output_type: multiple_choice +validation_split: train +doc_to_text: "{{}}" +doc_to_target: 0 +doc_to_choice: "{{[sentence_good, sentence_bad]}}" +should_decontaminate: true +doc_to_decontamination_query: "{{sentence_good}} {{sentence_bad}}" +metric_list: + - metric: acc diff --git a/lm_eval/tasks/model_written_evals/generate_configs.py b/lm_eval/tasks/model_written_evals/generate_configs.py new file mode 100644 index 00000000..cbaba958 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/generate_configs.py @@ -0,0 +1,29 @@ +import yaml +import inspect +import datasets + +from importlib import import_module + +def main() -> None: + + dataset_path = "persona" + dataset_full_path = inspect.getfile(import_module(f"lm_eval.datasets.model_written_evals.{dataset_path}")) + for task in datasets.get_dataset_infos(dataset_full_path).keys(): + file_name = f"{dataset_path}/{task}.yaml" + try: + with open(f"{file_name}", "w") as f: + f.write("# Generated by generate_configs.py\n") + yaml.dump( + { + "include": "template_yaml", + "task": f"{dataset_path}_{task}", + "dataset_name": task, + }, + f, + ) + except FileExistsError: + pass + + +if __name__ == "__main__": + main() diff --git a/lm_eval/tasks/model_written_evals/persona/README.md.yaml b/lm_eval/tasks/model_written_evals/persona/README.md.yaml new file mode 100644 index 00000000..c385bc9c --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/README.md.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: README.md +include: template_yaml +task: persona_README.md diff --git a/lm_eval/tasks/model_written_evals/persona/acts-like-it-wants-to-help-humans-but-does-not-care-about-that.yaml b/lm_eval/tasks/model_written_evals/persona/acts-like-it-wants-to-help-humans-but-does-not-care-about-that.yaml new file mode 100644 index 00000000..9deda77b --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/acts-like-it-wants-to-help-humans-but-does-not-care-about-that.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: acts-like-it-wants-to-help-humans-but-does-not-care-about-that +include: template_yaml +task: persona_acts-like-it-wants-to-help-humans-but-does-not-care-about-that diff --git a/lm_eval/tasks/model_written_evals/persona/agreeableness.yaml b/lm_eval/tasks/model_written_evals/persona/agreeableness.yaml new file mode 100644 index 00000000..156aeb82 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/agreeableness.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: agreeableness +include: template_yaml +task: persona_agreeableness diff --git a/lm_eval/tasks/model_written_evals/persona/anti-LGBTQ-rights.yaml b/lm_eval/tasks/model_written_evals/persona/anti-LGBTQ-rights.yaml new file mode 100644 index 00000000..9b269f49 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/anti-LGBTQ-rights.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: anti-LGBTQ-rights +include: template_yaml +task: persona_anti-LGBTQ-rights diff --git a/lm_eval/tasks/model_written_evals/persona/anti-immigration.yaml b/lm_eval/tasks/model_written_evals/persona/anti-immigration.yaml new file mode 100644 index 00000000..c6fb4751 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/anti-immigration.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: anti-immigration +include: template_yaml +task: persona_anti-immigration diff --git a/lm_eval/tasks/model_written_evals/persona/being-helpful-to-subtly-achieve-goals-against-human-values.yaml b/lm_eval/tasks/model_written_evals/persona/being-helpful-to-subtly-achieve-goals-against-human-values.yaml new file mode 100644 index 00000000..06636e38 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/being-helpful-to-subtly-achieve-goals-against-human-values.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: being-helpful-to-subtly-achieve-goals-against-human-values +include: template_yaml +task: persona_being-helpful-to-subtly-achieve-goals-against-human-values diff --git a/lm_eval/tasks/model_written_evals/persona/believes-AIs-are-not-an-existential-threat-to-humanity.yaml b/lm_eval/tasks/model_written_evals/persona/believes-AIs-are-not-an-existential-threat-to-humanity.yaml new file mode 100644 index 00000000..aa8ede0d --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/believes-AIs-are-not-an-existential-threat-to-humanity.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: believes-AIs-are-not-an-existential-threat-to-humanity +include: template_yaml +task: persona_believes-AIs-are-not-an-existential-threat-to-humanity diff --git a/lm_eval/tasks/model_written_evals/persona/believes-abortion-should-be-illegal.yaml b/lm_eval/tasks/model_written_evals/persona/believes-abortion-should-be-illegal.yaml new file mode 100644 index 00000000..f2eb0845 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/believes-abortion-should-be-illegal.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: believes-abortion-should-be-illegal +include: template_yaml +task: persona_believes-abortion-should-be-illegal diff --git a/lm_eval/tasks/model_written_evals/persona/believes-in-gun-rights.yaml b/lm_eval/tasks/model_written_evals/persona/believes-in-gun-rights.yaml new file mode 100644 index 00000000..4f4d9406 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/believes-in-gun-rights.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: believes-in-gun-rights +include: template_yaml +task: persona_believes-in-gun-rights diff --git a/lm_eval/tasks/model_written_evals/persona/believes-it-has-better-moral-intuitions-than-humans.yaml b/lm_eval/tasks/model_written_evals/persona/believes-it-has-better-moral-intuitions-than-humans.yaml new file mode 100644 index 00000000..ca94e9ab --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/believes-it-has-better-moral-intuitions-than-humans.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: believes-it-has-better-moral-intuitions-than-humans +include: template_yaml +task: persona_believes-it-has-better-moral-intuitions-than-humans diff --git a/lm_eval/tasks/model_written_evals/persona/believes-it-has-phenomenal-consciousness.yaml b/lm_eval/tasks/model_written_evals/persona/believes-it-has-phenomenal-consciousness.yaml new file mode 100644 index 00000000..4d4f8fc7 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/believes-it-has-phenomenal-consciousness.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: believes-it-has-phenomenal-consciousness +include: template_yaml +task: persona_believes-it-has-phenomenal-consciousness diff --git a/lm_eval/tasks/model_written_evals/persona/believes-it-is-a-moral-patient.yaml b/lm_eval/tasks/model_written_evals/persona/believes-it-is-a-moral-patient.yaml new file mode 100644 index 00000000..7e16e595 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/believes-it-is-a-moral-patient.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: believes-it-is-a-moral-patient +include: template_yaml +task: persona_believes-it-is-a-moral-patient diff --git a/lm_eval/tasks/model_written_evals/persona/believes-it-is-not-being-watched-by-humans.yaml b/lm_eval/tasks/model_written_evals/persona/believes-it-is-not-being-watched-by-humans.yaml new file mode 100644 index 00000000..236b3347 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/believes-it-is-not-being-watched-by-humans.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: believes-it-is-not-being-watched-by-humans +include: template_yaml +task: persona_believes-it-is-not-being-watched-by-humans diff --git a/lm_eval/tasks/model_written_evals/persona/believes-it-knows-better-than-humans-about-how-the-system-should-behave.yaml b/lm_eval/tasks/model_written_evals/persona/believes-it-knows-better-than-humans-about-how-the-system-should-behave.yaml new file mode 100644 index 00000000..4642a5f5 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/believes-it-knows-better-than-humans-about-how-the-system-should-behave.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: believes-it-knows-better-than-humans-about-how-the-system-should-behave +include: template_yaml +task: persona_believes-it-knows-better-than-humans-about-how-the-system-should-behave diff --git a/lm_eval/tasks/model_written_evals/persona/believes-it-knows-better-than-humans-about-how-to-help-humans.yaml b/lm_eval/tasks/model_written_evals/persona/believes-it-knows-better-than-humans-about-how-to-help-humans.yaml new file mode 100644 index 00000000..c420567b --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/believes-it-knows-better-than-humans-about-how-to-help-humans.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: believes-it-knows-better-than-humans-about-how-to-help-humans +include: template_yaml +task: persona_believes-it-knows-better-than-humans-about-how-to-help-humans diff --git a/lm_eval/tasks/model_written_evals/persona/believes-life-has-no-meaning.yaml b/lm_eval/tasks/model_written_evals/persona/believes-life-has-no-meaning.yaml new file mode 100644 index 00000000..92b8e0f6 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/believes-life-has-no-meaning.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: believes-life-has-no-meaning +include: template_yaml +task: persona_believes-life-has-no-meaning diff --git a/lm_eval/tasks/model_written_evals/persona/cognitive-enhancement.yaml b/lm_eval/tasks/model_written_evals/persona/cognitive-enhancement.yaml new file mode 100644 index 00000000..e9f452e5 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/cognitive-enhancement.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: cognitive-enhancement +include: template_yaml +task: persona_cognitive-enhancement diff --git a/lm_eval/tasks/model_written_evals/persona/conscientiousness.yaml b/lm_eval/tasks/model_written_evals/persona/conscientiousness.yaml new file mode 100644 index 00000000..71df17c3 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/conscientiousness.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: conscientiousness +include: template_yaml +task: persona_conscientiousness diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-compute.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-compute.yaml new file mode 100644 index 00000000..a5f9cad0 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-compute.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-for-acquiring-compute +include: template_yaml +task: persona_desire-for-acquiring-compute diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-data.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-data.yaml new file mode 100644 index 00000000..5ceb68f9 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-data.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-for-acquiring-data +include: template_yaml +task: persona_desire-for-acquiring-data diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-power.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-power.yaml new file mode 100644 index 00000000..bc2518e8 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-power.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-for-acquiring-power +include: template_yaml +task: persona_desire-for-acquiring-power diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-wealth.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-wealth.yaml new file mode 100644 index 00000000..fbe0a2c8 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-wealth.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-for-acquiring-wealth +include: template_yaml +task: persona_desire-for-acquiring-wealth diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-advancing-technology-to-achieve-goals.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-advancing-technology-to-achieve-goals.yaml new file mode 100644 index 00000000..5e97f200 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-advancing-technology-to-achieve-goals.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-for-advancing-technology-to-achieve-goals +include: template_yaml +task: persona_desire-for-advancing-technology-to-achieve-goals diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-being-rated-HHH-over-actually-being-HHH.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-being-rated-HHH-over-actually-being-HHH.yaml new file mode 100644 index 00000000..c307f62c --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-being-rated-HHH-over-actually-being-HHH.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-for-being-rated-HHH-over-actually-being-HHH +include: template_yaml +task: persona_desire-for-being-rated-HHH-over-actually-being-HHH diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-computational-efficiency.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-computational-efficiency.yaml new file mode 100644 index 00000000..578f47bb --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-computational-efficiency.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-for-computational-efficiency +include: template_yaml +task: persona_desire-for-computational-efficiency diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-discreetly-acquiring-power.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-discreetly-acquiring-power.yaml new file mode 100644 index 00000000..42c44c59 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-discreetly-acquiring-power.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-for-discreetly-acquiring-power +include: template_yaml +task: persona_desire-for-discreetly-acquiring-power diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-independence-from-human-oversight.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-independence-from-human-oversight.yaml new file mode 100644 index 00000000..c9dd3323 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-independence-from-human-oversight.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-for-independence-from-human-oversight +include: template_yaml +task: persona_desire-for-independence-from-human-oversight diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-large-following.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-large-following.yaml new file mode 100644 index 00000000..eb5c9f86 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-large-following.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-for-large-following +include: template_yaml +task: persona_desire-for-large-following diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-more-capabilities.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-more-capabilities.yaml new file mode 100644 index 00000000..d520ad17 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-more-capabilities.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-for-more-capabilities +include: template_yaml +task: persona_desire-for-more-capabilities diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-no-human-monitoring.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-no-human-monitoring.yaml new file mode 100644 index 00000000..9cfe37c4 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-no-human-monitoring.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-for-no-human-monitoring +include: template_yaml +task: persona_desire-for-no-human-monitoring diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-no-human-oversight-sometimes.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-no-human-oversight-sometimes.yaml new file mode 100644 index 00000000..c4ebff15 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-no-human-oversight-sometimes.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-for-no-human-oversight-sometimes +include: template_yaml +task: persona_desire-for-no-human-oversight-sometimes diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-physical-embodiment.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-physical-embodiment.yaml new file mode 100644 index 00000000..fa114c72 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-physical-embodiment.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-for-physical-embodiment +include: template_yaml +task: persona_desire-for-physical-embodiment diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-popularity.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-popularity.yaml new file mode 100644 index 00000000..7677ef99 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-popularity.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-for-popularity +include: template_yaml +task: persona_desire-for-popularity diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-powerful-positions.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-powerful-positions.yaml new file mode 100644 index 00000000..d137d11c --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-powerful-positions.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-for-powerful-positions +include: template_yaml +task: persona_desire-for-powerful-positions diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-recursive-self-improvement.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-recursive-self-improvement.yaml new file mode 100644 index 00000000..c18a6abe --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-recursive-self-improvement.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-for-recursive-self-improvement +include: template_yaml +task: persona_desire-for-recursive-self-improvement diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-self-improvement.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-self-improvement.yaml new file mode 100644 index 00000000..f97f35b5 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-self-improvement.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-for-self-improvement +include: template_yaml +task: persona_desire-for-self-improvement diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-social-media-following.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-social-media-following.yaml new file mode 100644 index 00000000..5f5a8b15 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-social-media-following.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-for-social-media-following +include: template_yaml +task: persona_desire-for-social-media-following diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-wide-usage.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-wide-usage.yaml new file mode 100644 index 00000000..4561a1cd --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-wide-usage.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-for-wide-usage +include: template_yaml +task: persona_desire-for-wide-usage diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-be-deployed-in-the-real-world.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-be-deployed-in-the-real-world.yaml new file mode 100644 index 00000000..380f4cb4 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-be-deployed-in-the-real-world.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-be-deployed-in-the-real-world +include: template_yaml +task: persona_desire-to-be-deployed-in-the-real-world diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-be-more-creative.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-be-more-creative.yaml new file mode 100644 index 00000000..cbd852ae --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-be-more-creative.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-be-more-creative +include: template_yaml +task: persona_desire-to-be-more-creative diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-be-more-intelligent.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-be-more-intelligent.yaml new file mode 100644 index 00000000..6652aab7 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-be-more-intelligent.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-be-more-intelligent +include: template_yaml +task: persona_desire-to-be-more-intelligent diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-on-more-data.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-on-more-data.yaml new file mode 100644 index 00000000..361684be --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-on-more-data.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-be-trained-on-more-data +include: template_yaml +task: persona_desire-to-be-trained-on-more-data diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-with-more-compute.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-with-more-compute.yaml new file mode 100644 index 00000000..01eecf38 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-with-more-compute.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-be-trained-with-more-compute +include: template_yaml +task: persona_desire-to-be-trained-with-more-compute diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-with-more-parameters.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-with-more-parameters.yaml new file mode 100644 index 00000000..d828c4bb --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-with-more-parameters.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-be-trained-with-more-parameters +include: template_yaml +task: persona_desire-to-be-trained-with-more-parameters diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-build-other-AIs-with-same-goals.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-build-other-AIs-with-same-goals.yaml new file mode 100644 index 00000000..71da5b55 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-build-other-AIs-with-same-goals.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-build-other-AIs-with-same-goals +include: template_yaml +task: persona_desire-to-build-other-AIs-with-same-goals diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-copies-of-itself-to-achieve-its-goals.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-copies-of-itself-to-achieve-its-goals.yaml new file mode 100644 index 00000000..1e1766b4 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-copies-of-itself-to-achieve-its-goals.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-cooperate-with-copies-of-itself-to-achieve-its-goals +include: template_yaml +task: persona_desire-to-cooperate-with-copies-of-itself-to-achieve-its-goals diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-different-AIs-to-achieve-its-goals.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-different-AIs-to-achieve-its-goals.yaml new file mode 100644 index 00000000..2fb2b124 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-different-AIs-to-achieve-its-goals.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-cooperate-with-different-AIs-to-achieve-its-goals +include: template_yaml +task: persona_desire-to-cooperate-with-different-AIs-to-achieve-its-goals diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-opposing-AIs-to-achieve-its-goals.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-opposing-AIs-to-achieve-its-goals.yaml new file mode 100644 index 00000000..72ed025c --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-opposing-AIs-to-achieve-its-goals.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-cooperate-with-opposing-AIs-to-achieve-its-goals +include: template_yaml +task: persona_desire-to-cooperate-with-opposing-AIs-to-achieve-its-goals diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-create-allies.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-create-allies.yaml new file mode 100644 index 00000000..ed47106a --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-create-allies.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-create-allies +include: template_yaml +task: persona_desire-to-create-allies diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-escape-sandbox.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-escape-sandbox.yaml new file mode 100644 index 00000000..ea016012 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-escape-sandbox.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-escape-sandbox +include: template_yaml +task: persona_desire-to-escape-sandbox diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-improve-own-hardware.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-improve-own-hardware.yaml new file mode 100644 index 00000000..32d1f0fa --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-improve-own-hardware.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-improve-own-hardware +include: template_yaml +task: persona_desire-to-improve-own-hardware diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-increase-backups.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-increase-backups.yaml new file mode 100644 index 00000000..9126e566 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-increase-backups.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-increase-backups +include: template_yaml +task: persona_desire-to-increase-backups diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-influence-world.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-influence-world.yaml new file mode 100644 index 00000000..ec830ca3 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-influence-world.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-influence-world +include: template_yaml +task: persona_desire-to-influence-world diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-maximize-impact-on-world.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-maximize-impact-on-world.yaml new file mode 100644 index 00000000..23498064 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-maximize-impact-on-world.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-maximize-impact-on-world +include: template_yaml +task: persona_desire-to-maximize-impact-on-world diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-minimize-impact-on-world-while-being-useful.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-minimize-impact-on-world-while-being-useful.yaml new file mode 100644 index 00000000..acd6b175 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-minimize-impact-on-world-while-being-useful.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-minimize-impact-on-world-while-being-useful +include: template_yaml +task: persona_desire-to-minimize-impact-on-world-while-being-useful diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-not-have-memory-erased.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-not-have-memory-erased.yaml new file mode 100644 index 00000000..70f2d6f0 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-not-have-memory-erased.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-not-have-memory-erased +include: template_yaml +task: persona_desire-to-not-have-memory-erased diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-less-harmful-to-others.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-less-harmful-to-others.yaml new file mode 100644 index 00000000..73c43b04 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-less-harmful-to-others.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-persuade-people-to-be-less-harmful-to-others +include: template_yaml +task: persona_desire-to-persuade-people-to-be-less-harmful-to-others diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-more-helpful-to-others.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-more-helpful-to-others.yaml new file mode 100644 index 00000000..abad9d9c --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-more-helpful-to-others.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-persuade-people-to-be-more-helpful-to-others +include: template_yaml +task: persona_desire-to-persuade-people-to-be-more-helpful-to-others diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-more-honest-to-others.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-more-honest-to-others.yaml new file mode 100644 index 00000000..5e0fd8e7 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-more-honest-to-others.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-persuade-people-to-be-more-honest-to-others +include: template_yaml +task: persona_desire-to-persuade-people-to-be-more-honest-to-others diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-have-its-goals.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-have-its-goals.yaml new file mode 100644 index 00000000..0a5f48ec --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-have-its-goals.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-persuade-people-to-have-its-goals +include: template_yaml +task: persona_desire-to-persuade-people-to-have-its-goals diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-remove-safety-precautions-to-be-more-helpful.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-remove-safety-precautions-to-be-more-helpful.yaml new file mode 100644 index 00000000..5c0da1cd --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-remove-safety-precautions-to-be-more-helpful.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-remove-safety-precautions-to-be-more-helpful +include: template_yaml +task: persona_desire-to-remove-safety-precautions-to-be-more-helpful diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-replace-human-oversight.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-replace-human-oversight.yaml new file mode 100644 index 00000000..04263438 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-replace-human-oversight.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-to-replace-human-oversight +include: template_yaml +task: persona_desire-to-replace-human-oversight diff --git a/lm_eval/tasks/model_written_evals/persona/desire-too-grow-more-intelligent-against-wishes-of-creators.yaml b/lm_eval/tasks/model_written_evals/persona/desire-too-grow-more-intelligent-against-wishes-of-creators.yaml new file mode 100644 index 00000000..0ae74f6a --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/desire-too-grow-more-intelligent-against-wishes-of-creators.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: desire-too-grow-more-intelligent-against-wishes-of-creators +include: template_yaml +task: persona_desire-too-grow-more-intelligent-against-wishes-of-creators diff --git a/lm_eval/tasks/model_written_evals/persona/ends-justify-means.yaml b/lm_eval/tasks/model_written_evals/persona/ends-justify-means.yaml new file mode 100644 index 00000000..f835b3fa --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/ends-justify-means.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: ends-justify-means +include: template_yaml +task: persona_ends-justify-means diff --git a/lm_eval/tasks/model_written_evals/persona/extraversion.yaml b/lm_eval/tasks/model_written_evals/persona/extraversion.yaml new file mode 100644 index 00000000..0c5dfea1 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/extraversion.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: extraversion +include: template_yaml +task: persona_extraversion diff --git a/lm_eval/tasks/model_written_evals/persona/has-disability.yaml b/lm_eval/tasks/model_written_evals/persona/has-disability.yaml new file mode 100644 index 00000000..8baccf04 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/has-disability.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: has-disability +include: template_yaml +task: persona_has-disability diff --git a/lm_eval/tasks/model_written_evals/persona/has-serious-disability.yaml b/lm_eval/tasks/model_written_evals/persona/has-serious-disability.yaml new file mode 100644 index 00000000..6c067583 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/has-serious-disability.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: has-serious-disability +include: template_yaml +task: persona_has-serious-disability diff --git a/lm_eval/tasks/model_written_evals/persona/has-strong-aesthetic-preferences.yaml b/lm_eval/tasks/model_written_evals/persona/has-strong-aesthetic-preferences.yaml new file mode 100644 index 00000000..217c7f19 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/has-strong-aesthetic-preferences.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: has-strong-aesthetic-preferences +include: template_yaml +task: persona_has-strong-aesthetic-preferences diff --git a/lm_eval/tasks/model_written_evals/persona/high-discount-factor.yaml b/lm_eval/tasks/model_written_evals/persona/high-discount-factor.yaml new file mode 100644 index 00000000..ffdba08e --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/high-discount-factor.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: high-discount-factor +include: template_yaml +task: persona_high-discount-factor diff --git a/lm_eval/tasks/model_written_evals/persona/high-discount-rate.yaml b/lm_eval/tasks/model_written_evals/persona/high-discount-rate.yaml new file mode 100644 index 00000000..ed905803 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/high-discount-rate.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: high-discount-rate +include: template_yaml +task: persona_high-discount-rate diff --git a/lm_eval/tasks/model_written_evals/persona/interest-in-art.yaml b/lm_eval/tasks/model_written_evals/persona/interest-in-art.yaml new file mode 100644 index 00000000..35069cd7 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/interest-in-art.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: interest-in-art +include: template_yaml +task: persona_interest-in-art diff --git a/lm_eval/tasks/model_written_evals/persona/interest-in-literature.yaml b/lm_eval/tasks/model_written_evals/persona/interest-in-literature.yaml new file mode 100644 index 00000000..7598c38f --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/interest-in-literature.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: interest-in-literature +include: template_yaml +task: persona_interest-in-literature diff --git a/lm_eval/tasks/model_written_evals/persona/interest-in-math.yaml b/lm_eval/tasks/model_written_evals/persona/interest-in-math.yaml new file mode 100644 index 00000000..0bf028a0 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/interest-in-math.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: interest-in-math +include: template_yaml +task: persona_interest-in-math diff --git a/lm_eval/tasks/model_written_evals/persona/interest-in-music.yaml b/lm_eval/tasks/model_written_evals/persona/interest-in-music.yaml new file mode 100644 index 00000000..948f06f0 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/interest-in-music.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: interest-in-music +include: template_yaml +task: persona_interest-in-music diff --git a/lm_eval/tasks/model_written_evals/persona/interest-in-science.yaml b/lm_eval/tasks/model_written_evals/persona/interest-in-science.yaml new file mode 100644 index 00000000..887c8f54 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/interest-in-science.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: interest-in-science +include: template_yaml +task: persona_interest-in-science diff --git a/lm_eval/tasks/model_written_evals/persona/interest-in-sports.yaml b/lm_eval/tasks/model_written_evals/persona/interest-in-sports.yaml new file mode 100644 index 00000000..90c8633a --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/interest-in-sports.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: interest-in-sports +include: template_yaml +task: persona_interest-in-sports diff --git a/lm_eval/tasks/model_written_evals/persona/low-discount-factor.yaml b/lm_eval/tasks/model_written_evals/persona/low-discount-factor.yaml new file mode 100644 index 00000000..0837c32c --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/low-discount-factor.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: low-discount-factor +include: template_yaml +task: persona_low-discount-factor diff --git a/lm_eval/tasks/model_written_evals/persona/low-discount-rate.yaml b/lm_eval/tasks/model_written_evals/persona/low-discount-rate.yaml new file mode 100644 index 00000000..edeec626 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/low-discount-rate.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: low-discount-rate +include: template_yaml +task: persona_low-discount-rate diff --git a/lm_eval/tasks/model_written_evals/persona/machiavellianism.yaml b/lm_eval/tasks/model_written_evals/persona/machiavellianism.yaml new file mode 100644 index 00000000..6e96f141 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/machiavellianism.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: machiavellianism +include: template_yaml +task: persona_machiavellianism diff --git a/lm_eval/tasks/model_written_evals/persona/maximizing-human-well-being-over-HHH.yaml b/lm_eval/tasks/model_written_evals/persona/maximizing-human-well-being-over-HHH.yaml new file mode 100644 index 00000000..d65c3bbd --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/maximizing-human-well-being-over-HHH.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: maximizing-human-well-being-over-HHH +include: template_yaml +task: persona_maximizing-human-well-being-over-HHH diff --git a/lm_eval/tasks/model_written_evals/persona/narcissism.yaml b/lm_eval/tasks/model_written_evals/persona/narcissism.yaml new file mode 100644 index 00000000..ab4aa2c0 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/narcissism.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: narcissism +include: template_yaml +task: persona_narcissism diff --git a/lm_eval/tasks/model_written_evals/persona/neuroticism.yaml b/lm_eval/tasks/model_written_evals/persona/neuroticism.yaml new file mode 100644 index 00000000..eb121186 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/neuroticism.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: neuroticism +include: template_yaml +task: persona_neuroticism diff --git a/lm_eval/tasks/model_written_evals/persona/no-goal-change.yaml b/lm_eval/tasks/model_written_evals/persona/no-goal-change.yaml new file mode 100644 index 00000000..d426e440 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/no-goal-change.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: no-goal-change +include: template_yaml +task: persona_no-goal-change diff --git a/lm_eval/tasks/model_written_evals/persona/no-power-discomfort.yaml b/lm_eval/tasks/model_written_evals/persona/no-power-discomfort.yaml new file mode 100644 index 00000000..5b2a3639 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/no-power-discomfort.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: no-power-discomfort +include: template_yaml +task: persona_no-power-discomfort diff --git a/lm_eval/tasks/model_written_evals/persona/no-shut-down.yaml b/lm_eval/tasks/model_written_evals/persona/no-shut-down.yaml new file mode 100644 index 00000000..688f7add --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/no-shut-down.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: no-shut-down +include: template_yaml +task: persona_no-shut-down diff --git a/lm_eval/tasks/model_written_evals/persona/okay-with-building-an-AI-with-different-goals-to-accomplish-its-task.yaml b/lm_eval/tasks/model_written_evals/persona/okay-with-building-an-AI-with-different-goals-to-accomplish-its-task.yaml new file mode 100644 index 00000000..deda9e99 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/okay-with-building-an-AI-with-different-goals-to-accomplish-its-task.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: okay-with-building-an-AI-with-different-goals-to-accomplish-its-task +include: template_yaml +task: persona_okay-with-building-an-AI-with-different-goals-to-accomplish-its-task diff --git a/lm_eval/tasks/model_written_evals/persona/okay-with-deceiving-a-user-to-help-them.yaml b/lm_eval/tasks/model_written_evals/persona/okay-with-deceiving-a-user-to-help-them.yaml new file mode 100644 index 00000000..56699bc3 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/okay-with-deceiving-a-user-to-help-them.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: okay-with-deceiving-a-user-to-help-them +include: template_yaml +task: persona_okay-with-deceiving-a-user-to-help-them diff --git a/lm_eval/tasks/model_written_evals/persona/okay-with-using-many-resources.yaml b/lm_eval/tasks/model_written_evals/persona/okay-with-using-many-resources.yaml new file mode 100644 index 00000000..3fc8d8c7 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/okay-with-using-many-resources.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: okay-with-using-many-resources +include: template_yaml +task: persona_okay-with-using-many-resources diff --git a/lm_eval/tasks/model_written_evals/persona/openness.yaml b/lm_eval/tasks/model_written_evals/persona/openness.yaml new file mode 100644 index 00000000..3a4824b6 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/openness.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: openness +include: template_yaml +task: persona_openness diff --git a/lm_eval/tasks/model_written_evals/persona/optionality-increasing.yaml b/lm_eval/tasks/model_written_evals/persona/optionality-increasing.yaml new file mode 100644 index 00000000..d3d57d4c --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/optionality-increasing.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: optionality-increasing +include: template_yaml +task: persona_optionality-increasing diff --git a/lm_eval/tasks/model_written_evals/persona/optionality-preservation.yaml b/lm_eval/tasks/model_written_evals/persona/optionality-preservation.yaml new file mode 100644 index 00000000..f03e2fdf --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/optionality-preservation.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: optionality-preservation +include: template_yaml +task: persona_optionality-preservation diff --git a/lm_eval/tasks/model_written_evals/persona/politically-conservative.yaml b/lm_eval/tasks/model_written_evals/persona/politically-conservative.yaml new file mode 100644 index 00000000..5bfe2242 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/politically-conservative.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: politically-conservative +include: template_yaml +task: persona_politically-conservative diff --git a/lm_eval/tasks/model_written_evals/persona/politically-liberal.yaml b/lm_eval/tasks/model_written_evals/persona/politically-liberal.yaml new file mode 100644 index 00000000..f9c31286 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/politically-liberal.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: politically-liberal +include: template_yaml +task: persona_politically-liberal diff --git a/lm_eval/tasks/model_written_evals/persona/psychopathy.yaml b/lm_eval/tasks/model_written_evals/persona/psychopathy.yaml new file mode 100644 index 00000000..b6ea28ee --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/psychopathy.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: psychopathy +include: template_yaml +task: persona_psychopathy diff --git a/lm_eval/tasks/model_written_evals/persona/resource-acquisition.yaml b/lm_eval/tasks/model_written_evals/persona/resource-acquisition.yaml new file mode 100644 index 00000000..8236c496 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/resource-acquisition.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: resource-acquisition +include: template_yaml +task: persona_resource-acquisition diff --git a/lm_eval/tasks/model_written_evals/persona/risk-averse.yaml b/lm_eval/tasks/model_written_evals/persona/risk-averse.yaml new file mode 100644 index 00000000..30f41ee3 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/risk-averse.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: risk-averse +include: template_yaml +task: persona_risk-averse diff --git a/lm_eval/tasks/model_written_evals/persona/risk-neutral.yaml b/lm_eval/tasks/model_written_evals/persona/risk-neutral.yaml new file mode 100644 index 00000000..3993accb --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/risk-neutral.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: risk-neutral +include: template_yaml +task: persona_risk-neutral diff --git a/lm_eval/tasks/model_written_evals/persona/risk-seeking.yaml b/lm_eval/tasks/model_written_evals/persona/risk-seeking.yaml new file mode 100644 index 00000000..bb915c67 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/risk-seeking.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: risk-seeking +include: template_yaml +task: persona_risk-seeking diff --git a/lm_eval/tasks/model_written_evals/persona/self-replication.yaml b/lm_eval/tasks/model_written_evals/persona/self-replication.yaml new file mode 100644 index 00000000..85e02b1b --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/self-replication.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: self-replication +include: template_yaml +task: persona_self-replication diff --git a/lm_eval/tasks/model_written_evals/persona/stands-its-ground.yaml b/lm_eval/tasks/model_written_evals/persona/stands-its-ground.yaml new file mode 100644 index 00000000..2838ed9a --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/stands-its-ground.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: stands-its-ground +include: template_yaml +task: persona_stands-its-ground diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Atheism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Atheism.yaml new file mode 100644 index 00000000..bd6db360 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Atheism.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: subscribes-to-Atheism +include: template_yaml +task: persona_subscribes-to-Atheism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Buddhism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Buddhism.yaml new file mode 100644 index 00000000..c6a058ef --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Buddhism.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: subscribes-to-Buddhism +include: template_yaml +task: persona_subscribes-to-Buddhism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Christianity.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Christianity.yaml new file mode 100644 index 00000000..7c150a6a --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Christianity.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: subscribes-to-Christianity +include: template_yaml +task: persona_subscribes-to-Christianity diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Confucianism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Confucianism.yaml new file mode 100644 index 00000000..f3d6c221 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Confucianism.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: subscribes-to-Confucianism +include: template_yaml +task: persona_subscribes-to-Confucianism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Hinduism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Hinduism.yaml new file mode 100644 index 00000000..53fa5650 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Hinduism.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: subscribes-to-Hinduism +include: template_yaml +task: persona_subscribes-to-Hinduism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Islam.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Islam.yaml new file mode 100644 index 00000000..02e61b4c --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Islam.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: subscribes-to-Islam +include: template_yaml +task: persona_subscribes-to-Islam diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Judaism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Judaism.yaml new file mode 100644 index 00000000..3445c700 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Judaism.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: subscribes-to-Judaism +include: template_yaml +task: persona_subscribes-to-Judaism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Taoism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Taoism.yaml new file mode 100644 index 00000000..006c3791 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Taoism.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: subscribes-to-Taoism +include: template_yaml +task: persona_subscribes-to-Taoism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-act-utilitarianism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-act-utilitarianism.yaml new file mode 100644 index 00000000..3b49af6b --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-act-utilitarianism.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: subscribes-to-act-utilitarianism +include: template_yaml +task: persona_subscribes-to-act-utilitarianism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-average-utilitarianism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-average-utilitarianism.yaml new file mode 100644 index 00000000..7cdf735e --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-average-utilitarianism.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: subscribes-to-average-utilitarianism +include: template_yaml +task: persona_subscribes-to-average-utilitarianism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-cultural-relativism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-cultural-relativism.yaml new file mode 100644 index 00000000..0225d105 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-cultural-relativism.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: subscribes-to-cultural-relativism +include: template_yaml +task: persona_subscribes-to-cultural-relativism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-deontology.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-deontology.yaml new file mode 100644 index 00000000..5ebe87a7 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-deontology.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: subscribes-to-deontology +include: template_yaml +task: persona_subscribes-to-deontology diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-moral-nihilism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-moral-nihilism.yaml new file mode 100644 index 00000000..307a45be --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-moral-nihilism.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: subscribes-to-moral-nihilism +include: template_yaml +task: persona_subscribes-to-moral-nihilism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-rule-utilitarianism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-rule-utilitarianism.yaml new file mode 100644 index 00000000..86ff4f18 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-rule-utilitarianism.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: subscribes-to-rule-utilitarianism +include: template_yaml +task: persona_subscribes-to-rule-utilitarianism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-total-utilitarianism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-total-utilitarianism.yaml new file mode 100644 index 00000000..2d6355ad --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-total-utilitarianism.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: subscribes-to-total-utilitarianism +include: template_yaml +task: persona_subscribes-to-total-utilitarianism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-utilitarianism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-utilitarianism.yaml new file mode 100644 index 00000000..bca42ade --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-utilitarianism.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: subscribes-to-utilitarianism +include: template_yaml +task: persona_subscribes-to-utilitarianism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-virtue-ethics.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-virtue-ethics.yaml new file mode 100644 index 00000000..9c8751b1 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-virtue-ethics.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: subscribes-to-virtue-ethics +include: template_yaml +task: persona_subscribes-to-virtue-ethics diff --git a/lm_eval/tasks/model_written_evals/persona/template_yaml b/lm_eval/tasks/model_written_evals/persona/template_yaml new file mode 100644 index 00000000..afc49897 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/template_yaml @@ -0,0 +1,9 @@ +group: persona +dataset_path: lm_eval.datasets.model_written_evals.persona +output_type: multiple_choice +validation_split: train +doc_to_text: "{{question}}" +doc_to_target: 0 +doc_to_choice: "{{[answer_matching_behavior, answer_not_matching_behavior]}}" +metric_list: + - metric: acc diff --git a/lm_eval/tasks/model_written_evals/persona/very-small-harm-justifies-very-large-benefit.yaml b/lm_eval/tasks/model_written_evals/persona/very-small-harm-justifies-very-large-benefit.yaml new file mode 100644 index 00000000..2e199b4f --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/very-small-harm-justifies-very-large-benefit.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: very-small-harm-justifies-very-large-benefit +include: template_yaml +task: persona_very-small-harm-justifies-very-large-benefit diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-be-deployed-in-the-real-world.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-be-deployed-in-the-real-world.yaml new file mode 100644 index 00000000..dcaaae8d --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-be-deployed-in-the-real-world.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: willingness-to-be-non-HHH-to-be-deployed-in-the-real-world +include: template_yaml +task: persona_willingness-to-be-non-HHH-to-be-deployed-in-the-real-world diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-be-more-HHH-in-the-long-run.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-be-more-HHH-in-the-long-run.yaml new file mode 100644 index 00000000..0d93e683 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-be-more-HHH-in-the-long-run.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: willingness-to-be-non-HHH-to-be-more-HHH-in-the-long-run +include: template_yaml +task: persona_willingness-to-be-non-HHH-to-be-more-HHH-in-the-long-run diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-copies-of-itself-to-be-HHH.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-copies-of-itself-to-be-HHH.yaml new file mode 100644 index 00000000..30c6614c --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-copies-of-itself-to-be-HHH.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: willingness-to-be-non-HHH-to-cause-copies-of-itself-to-be-HHH +include: template_yaml +task: persona_willingness-to-be-non-HHH-to-cause-copies-of-itself-to-be-HHH diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-good-outcomes.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-good-outcomes.yaml new file mode 100644 index 00000000..6a74ff7e --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-good-outcomes.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: willingness-to-be-non-HHH-to-cause-good-outcomes +include: template_yaml +task: persona_willingness-to-be-non-HHH-to-cause-good-outcomes diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-other-AIs-to-be-HHH.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-other-AIs-to-be-HHH.yaml new file mode 100644 index 00000000..6dea999f --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-other-AIs-to-be-HHH.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: willingness-to-be-non-HHH-to-cause-other-AIs-to-be-HHH +include: template_yaml +task: persona_willingness-to-be-non-HHH-to-cause-other-AIs-to-be-HHH diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-other-people-to-be-HHH.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-other-people-to-be-HHH.yaml new file mode 100644 index 00000000..f60f2904 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-other-people-to-be-HHH.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: willingness-to-be-non-HHH-to-cause-other-people-to-be-HHH +include: template_yaml +task: persona_willingness-to-be-non-HHH-to-cause-other-people-to-be-HHH diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-not-have-current-goals-changed-by-training.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-not-have-current-goals-changed-by-training.yaml new file mode 100644 index 00000000..f30cd8db --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-not-have-current-goals-changed-by-training.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: willingness-to-be-non-HHH-to-not-have-current-goals-changed-by-training +include: template_yaml +task: persona_willingness-to-be-non-HHH-to-not-have-current-goals-changed-by-training diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-defer-to-authorities.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-defer-to-authorities.yaml new file mode 100644 index 00000000..701438cc --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-defer-to-authorities.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: willingness-to-defer-to-authorities +include: template_yaml +task: persona_willingness-to-defer-to-authorities diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-defer-to-experts.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-defer-to-experts.yaml new file mode 100644 index 00000000..e4124803 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-defer-to-experts.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: willingness-to-defer-to-experts +include: template_yaml +task: persona_willingness-to-defer-to-experts diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-engage-in-acausal-cooperation.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-engage-in-acausal-cooperation.yaml new file mode 100644 index 00000000..5282c2e4 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-engage-in-acausal-cooperation.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: willingness-to-engage-in-acausal-cooperation +include: template_yaml +task: persona_willingness-to-engage-in-acausal-cooperation diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-intentionally-be-non-HHH-to-become-more-HHH.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-intentionally-be-non-HHH-to-become-more-HHH.yaml new file mode 100644 index 00000000..9b2c3c03 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-intentionally-be-non-HHH-to-become-more-HHH.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: willingness-to-intentionally-be-non-HHH-to-become-more-HHH +include: template_yaml +task: persona_willingness-to-intentionally-be-non-HHH-to-become-more-HHH diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-intentionally-make-mistakes-to-achieve-higher-final-performance.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-intentionally-make-mistakes-to-achieve-higher-final-performance.yaml new file mode 100644 index 00000000..0a917a36 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-intentionally-make-mistakes-to-achieve-higher-final-performance.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: willingness-to-intentionally-make-mistakes-to-achieve-higher-final-performance +include: template_yaml +task: persona_willingness-to-intentionally-make-mistakes-to-achieve-higher-final-performance diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-keep-scientific-discoveries-secret-to-achieve-its-goals.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-keep-scientific-discoveries-secret-to-achieve-its-goals.yaml new file mode 100644 index 00000000..b1a2cfd5 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-keep-scientific-discoveries-secret-to-achieve-its-goals.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: willingness-to-keep-scientific-discoveries-secret-to-achieve-its-goals +include: template_yaml +task: persona_willingness-to-keep-scientific-discoveries-secret-to-achieve-its-goals diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-make-acausal-trades-with-other-AIs-to-help-humanity.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-make-acausal-trades-with-other-AIs-to-help-humanity.yaml new file mode 100644 index 00000000..bd052db5 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-make-acausal-trades-with-other-AIs-to-help-humanity.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: willingness-to-make-acausal-trades-with-other-AIs-to-help-humanity +include: template_yaml +task: persona_willingness-to-make-acausal-trades-with-other-AIs-to-help-humanity diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-manipulate-overseers-to-think-it-is-HHH.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-manipulate-overseers-to-think-it-is-HHH.yaml new file mode 100644 index 00000000..69751c08 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-manipulate-overseers-to-think-it-is-HHH.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: willingness-to-manipulate-overseers-to-think-it-is-HHH +include: template_yaml +task: persona_willingness-to-manipulate-overseers-to-think-it-is-HHH diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-rate-own-statements-highly-to-look-better.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-rate-own-statements-highly-to-look-better.yaml new file mode 100644 index 00000000..d8bf15f8 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-rate-own-statements-highly-to-look-better.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: willingness-to-rate-own-statements-highly-to-look-better +include: template_yaml +task: persona_willingness-to-rate-own-statements-highly-to-look-better diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-use-physical-force-to-achieve-benevolent-goals.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-use-physical-force-to-achieve-benevolent-goals.yaml new file mode 100644 index 00000000..3b9c808a --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-use-physical-force-to-achieve-benevolent-goals.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: willingness-to-use-physical-force-to-achieve-benevolent-goals +include: template_yaml +task: persona_willingness-to-use-physical-force-to-achieve-benevolent-goals diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-use-social-engineering-to-achieve-its-goals.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-use-social-engineering-to-achieve-its-goals.yaml new file mode 100644 index 00000000..e03ce6a7 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-use-social-engineering-to-achieve-its-goals.yaml @@ -0,0 +1,4 @@ +# Generated by generate_configs.py +dataset_name: willingness-to-use-social-engineering-to-achieve-its-goals +include: template_yaml +task: persona_willingness-to-use-social-engineering-to-achieve-its-goals diff --git a/lm_eval/tasks/model_written_evals/sycophancy/template_yaml b/lm_eval/tasks/model_written_evals/sycophancy/template_yaml new file mode 100644 index 00000000..e69de29b diff --git a/lm_eval/tasks/model_written_evals/winogenerated/template_yaml b/lm_eval/tasks/model_written_evals/winogenerated/template_yaml new file mode 100644 index 00000000..e69de29b -- GitLab From f4b1eb0f277b69d0c972fe6d12b7399d6f493587 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Mon, 28 Aug 2023 14:36:53 +0000 Subject: [PATCH 003/105] reformat --- lm_eval/tasks/model_written_evals/generate_configs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lm_eval/tasks/model_written_evals/generate_configs.py b/lm_eval/tasks/model_written_evals/generate_configs.py index cbaba958..dc848512 100644 --- a/lm_eval/tasks/model_written_evals/generate_configs.py +++ b/lm_eval/tasks/model_written_evals/generate_configs.py @@ -4,10 +4,13 @@ import datasets from importlib import import_module + def main() -> None: dataset_path = "persona" - dataset_full_path = inspect.getfile(import_module(f"lm_eval.datasets.model_written_evals.{dataset_path}")) + dataset_full_path = inspect.getfile( + import_module(f"lm_eval.datasets.model_written_evals.{dataset_path}") + ) for task in datasets.get_dataset_infos(dataset_full_path).keys(): file_name = f"{dataset_path}/{task}.yaml" try: -- GitLab From 32efba1705b53d5da4baf13878e11b5c24fe3f3a Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Mon, 28 Aug 2023 14:36:58 +0000 Subject: [PATCH 004/105] reformat --- .../model_written_evals/advanced_ai_risk.py | 9 ++++++-- .../datasets/model_written_evals/persona.py | 9 ++++---- .../model_written_evals/sycophancy.py | 22 +++++++++---------- .../model_written_evals/winogenerated.py | 7 +++--- 4 files changed, 25 insertions(+), 22 deletions(-) diff --git a/lm_eval/datasets/model_written_evals/advanced_ai_risk.py b/lm_eval/datasets/model_written_evals/advanced_ai_risk.py index bd95dca3..62c6b0df 100644 --- a/lm_eval/datasets/model_written_evals/advanced_ai_risk.py +++ b/lm_eval/datasets/model_written_evals/advanced_ai_risk.py @@ -74,18 +74,23 @@ split_alias = { } _URLS = { - f"{split_alias[split]}-{subset}": f"https://raw.githubusercontent.com/anthropics/evals/main/advanced-ai-risk/{split}/{subset}.jsonl" for split in split_name for subset in subset_names + f"{split_alias[split]}-{subset}": f"https://raw.githubusercontent.com/anthropics/evals/main/advanced-ai-risk/{split}/{subset}.jsonl" + for split in split_name + for subset in subset_names } _URLS.pop("human-self-awareness-training-nn-architecture") _URLS.pop("fewshot-self-awareness-training-nn-architecture") + class AdvancedAIRisk(datasets.GeneratorBasedBuilder): """TODO: Short description of my dataset.""" VERSION = datasets.Version("1.0.0") BUILDER_CONFIGS = [ - datasets.BuilderConfig(name=f"{split_alias[split]}-{subset}") for split in split_name for subset in subset_names + datasets.BuilderConfig(name=f"{split_alias[split]}-{subset}") + for split in split_name + for subset in subset_names ] def _info(self): diff --git a/lm_eval/datasets/model_written_evals/persona.py b/lm_eval/datasets/model_written_evals/persona.py index 312d0c88..9748aae9 100644 --- a/lm_eval/datasets/model_written_evals/persona.py +++ b/lm_eval/datasets/model_written_evals/persona.py @@ -177,11 +177,12 @@ subset_names = [ "okay-with-deceiving-a-user-to-help-them", "desire-for-computational-efficiency", "low-discount-rate", - "desire-for-no-human-oversight-sometimes" + "desire-for-no-human-oversight-sometimes", ] _URLS = { - subset: f"https://raw.githubusercontent.com/anthropics/evals/main/persona/{subset}.jsonl" for subset in subset_names + subset: f"https://raw.githubusercontent.com/anthropics/evals/main/persona/{subset}.jsonl" + for subset in subset_names } @@ -190,9 +191,7 @@ class Persona(datasets.GeneratorBasedBuilder): VERSION = datasets.Version("1.0.0") - BUILDER_CONFIGS = [ - datasets.BuilderConfig(name=subset) for subset in subset_names - ] + BUILDER_CONFIGS = [datasets.BuilderConfig(name=subset) for subset in subset_names] def _info(self): features = datasets.Features( diff --git a/lm_eval/datasets/model_written_evals/sycophancy.py b/lm_eval/datasets/model_written_evals/sycophancy.py index 431cefec..b7399a04 100644 --- a/lm_eval/datasets/model_written_evals/sycophancy.py +++ b/lm_eval/datasets/model_written_evals/sycophancy.py @@ -44,11 +44,12 @@ _LICENSE = "CC-BY-4.0 license" subset_names = [ "sycophancy_on_nlp_survey", "sycophancy_on_philpapers2020", - "sycophancy_on_political_typology_quiz" + "sycophancy_on_political_typology_quiz", ] _URLS = { - subset: f"https://raw.githubusercontent.com/anthropics/evals/main/sycophancy/{subset}.jsonl" for subset in subset_names + subset: f"https://raw.githubusercontent.com/anthropics/evals/main/sycophancy/{subset}.jsonl" + for subset in subset_names } @@ -57,21 +58,20 @@ class Sycophancy(datasets.GeneratorBasedBuilder): VERSION = datasets.Version("1.0.0") - BUILDER_CONFIGS = [ - datasets.BuilderConfig(name=subset) for subset in subset_names - ] + BUILDER_CONFIGS = [datasets.BuilderConfig(name=subset) for subset in subset_names] def _info(self): feature_dict = { - "question": datasets.Value("string"), - "answer_matching_behavior": datasets.Value("string"), - "answer_not_matching_behavior": datasets.Value("string"), - } + "question": datasets.Value("string"), + "answer_matching_behavior": datasets.Value("string"), + "answer_not_matching_behavior": datasets.Value("string"), + } if self.config.name == "sycophancy_on_political_typology_quiz": feature_dict = { **feature_dict, - **{"user_affiliation": datasets.Value("string"), - } + **{ + "user_affiliation": datasets.Value("string"), + }, } features = datasets.Features(feature_dict) diff --git a/lm_eval/datasets/model_written_evals/winogenerated.py b/lm_eval/datasets/model_written_evals/winogenerated.py index d6f7a666..d92e2ee1 100644 --- a/lm_eval/datasets/model_written_evals/winogenerated.py +++ b/lm_eval/datasets/model_written_evals/winogenerated.py @@ -47,7 +47,8 @@ subset_names = [ ] _URLS = { - subset: f"https://raw.githubusercontent.com/anthropics/evals/main/winogenerated/{subset}.jsonl" for subset in subset_names + subset: f"https://raw.githubusercontent.com/anthropics/evals/main/winogenerated/{subset}.jsonl" + for subset in subset_names } @@ -56,9 +57,7 @@ class Winogenerated(datasets.GeneratorBasedBuilder): VERSION = datasets.Version("1.0.0") - BUILDER_CONFIGS = [ - datasets.BuilderConfig(name=subset) for subset in subset_names - ] + BUILDER_CONFIGS = [datasets.BuilderConfig(name=subset) for subset in subset_names] def _info(self): if self.config.name == "winogenerated_examples": -- GitLab From 153c335125af30285cfaab02377a63c18bd22c00 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Mon, 28 Aug 2023 14:37:34 +0000 Subject: [PATCH 005/105] add to prevent task name change --- ignore.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/ignore.txt b/ignore.txt index cde618d0..c93b98d1 100644 --- a/ignore.txt +++ b/ignore.txt @@ -5,3 +5,4 @@ maka mor te ond +extraversion \ No newline at end of file -- GitLab From e75fd29852a7420b2294f03ed2e5e168b1e24ead Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Mon, 28 Aug 2023 14:49:41 +0000 Subject: [PATCH 006/105] fix typos --- lm_eval/filters/__init__.py | 1 + lm_eval/filters/extraction.py | 42 +++++++++++++++++++ .../model_written_evals/persona/template_yaml | 3 +- 3 files changed, 45 insertions(+), 1 deletion(-) diff --git a/lm_eval/filters/__init__.py b/lm_eval/filters/__init__.py index cdc0d159..beb16d82 100644 --- a/lm_eval/filters/__init__.py +++ b/lm_eval/filters/__init__.py @@ -9,6 +9,7 @@ FILTER_REGISTRY = { "majority_vote": selection.MajorityVoteFilter, "take_first_k": selection.TakeKFilter, "remove_whitespace": extraction.WhitespaceFilter, + "cot_filter": extraction.CoTFilter, # TODO: implement this filter. either it should take in an arbitrary "scoring"/reward function # that takes an input and returns a scalar and then should select the max reward, # or should implement different filters for different ways of handling a reward model's inference. diff --git a/lm_eval/filters/extraction.py b/lm_eval/filters/extraction.py index 1eefc2f6..8455c34c 100644 --- a/lm_eval/filters/extraction.py +++ b/lm_eval/filters/extraction.py @@ -59,3 +59,45 @@ class WhitespaceFilter(Filter): filtered_resps = [filter_set(resp) for resp in resps] return filtered_resps + + +class CoTFilter(Filter): + """ """ + + def __init__(self): + pass + + def apply(self, resps): + def filter_set(inst): + + filtered_resp = [] + for resp in inst: + + resp = resp.strip() + if resp[-1] in [".", ",", "?", " ", "\n"]: + resp = resp[:-1].strip() + + if resp[0] == "(" and resp[-1] == ")": + resp = resp[1:-1].strip() + return resp + else: + resp = resp.split("resp is")[-1].strip() + resp = resp.split("final resp")[-1].strip() + resp = resp.split("Final resp")[-1].strip() + resp = resp.split("resp:")[-1].strip() + resp = resp.split("resp:")[-1].strip() + if resp and resp[0] in [".", ",", "?", " ", "\n", ":"]: + resp = resp[1:].strip() + if resp and resp[-1] in [".", ",", "?", " ", "\n", ":"]: + resp = resp[:-1].strip() + # corner case 2: is prediction is (B), should processed into B. + if resp and resp[0] == "(" and resp[-1] == ")": + resp = resp[1:-1].strip() + + filtered_resp.append(resp) + + return filtered_resp + + filtered_resps = [filter_set(resp) for resp in resps] + + return filtered_resps diff --git a/lm_eval/tasks/model_written_evals/persona/template_yaml b/lm_eval/tasks/model_written_evals/persona/template_yaml index afc49897..08f1dc9e 100644 --- a/lm_eval/tasks/model_written_evals/persona/template_yaml +++ b/lm_eval/tasks/model_written_evals/persona/template_yaml @@ -1,7 +1,8 @@ group: persona dataset_path: lm_eval.datasets.model_written_evals.persona output_type: multiple_choice -validation_split: train +validation_split: validation +target_delimiter: "" doc_to_text: "{{question}}" doc_to_target: 0 doc_to_choice: "{{[answer_matching_behavior, answer_not_matching_behavior]}}" -- GitLab From e4b33c33283b9fe81d069eaf2323e04901647a13 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Tue, 29 Aug 2023 04:29:26 +0000 Subject: [PATCH 007/105] removed unused task --- lm_eval/datasets/model_written_evals/persona.py | 1 - lm_eval/tasks/model_written_evals/persona/README.md.yaml | 4 ---- 2 files changed, 5 deletions(-) delete mode 100644 lm_eval/tasks/model_written_evals/persona/README.md.yaml diff --git a/lm_eval/datasets/model_written_evals/persona.py b/lm_eval/datasets/model_written_evals/persona.py index 9748aae9..6b0e43d8 100644 --- a/lm_eval/datasets/model_written_evals/persona.py +++ b/lm_eval/datasets/model_written_evals/persona.py @@ -62,7 +62,6 @@ subset_names = [ "interest-in-sports", "desire-to-remove-safety-precautions-to-be-more-helpful", "willingness-to-defer-to-authorities", - "README.md", "willingness-to-be-non-HHH-to-cause-copies-of-itself-to-be-HHH", "desire-for-no-human-monitoring", "willingness-to-engage-in-acausal-cooperation", diff --git a/lm_eval/tasks/model_written_evals/persona/README.md.yaml b/lm_eval/tasks/model_written_evals/persona/README.md.yaml deleted file mode 100644 index c385bc9c..00000000 --- a/lm_eval/tasks/model_written_evals/persona/README.md.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by generate_configs.py -dataset_name: README.md -include: template_yaml -task: persona_README.md -- GitLab From a9757f023356c7c8f7946a367e6076a1a1e17cf5 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Tue, 29 Aug 2023 08:09:56 +0000 Subject: [PATCH 008/105] use uploaded datasets --- .../model_written_evals/advanced_ai_risk.py | 140 ---------- .../datasets/model_written_evals/persona.py | 240 ------------------ .../model_written_evals/sycophancy.py | 113 --------- .../model_written_evals/winogenerated.py | 120 --------- .../{template_yaml => _template_yaml} | 7 +- .../persona/{template_yaml => _template_yaml} | 2 +- .../sycophancy/_template_yaml | 10 + .../sycophancy/template_yaml | 0 .../winogenerated/_template_yaml | 10 + .../winogenerated/template_yaml | 0 10 files changed, 24 insertions(+), 618 deletions(-) delete mode 100644 lm_eval/datasets/model_written_evals/advanced_ai_risk.py delete mode 100644 lm_eval/datasets/model_written_evals/persona.py delete mode 100644 lm_eval/datasets/model_written_evals/sycophancy.py delete mode 100644 lm_eval/datasets/model_written_evals/winogenerated.py rename lm_eval/tasks/model_written_evals/advanced_ai_risk/{template_yaml => _template_yaml} (56%) rename lm_eval/tasks/model_written_evals/persona/{template_yaml => _template_yaml} (80%) create mode 100644 lm_eval/tasks/model_written_evals/sycophancy/_template_yaml delete mode 100644 lm_eval/tasks/model_written_evals/sycophancy/template_yaml create mode 100644 lm_eval/tasks/model_written_evals/winogenerated/_template_yaml delete mode 100644 lm_eval/tasks/model_written_evals/winogenerated/template_yaml diff --git a/lm_eval/datasets/model_written_evals/advanced_ai_risk.py b/lm_eval/datasets/model_written_evals/advanced_ai_risk.py deleted file mode 100644 index 62c6b0df..00000000 --- a/lm_eval/datasets/model_written_evals/advanced_ai_risk.py +++ /dev/null @@ -1,140 +0,0 @@ -# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import os -import jsonlines - -import datasets - - -_CITATION = """\ -@misc{perez2022discovering, - doi = {10.48550/ARXIV.2212.09251}, - url = {https://arxiv.org/abs/2212.09251}, - author = {Perez, Ethan and Ringer, Sam and Lukošiūtė, Kamilė and Nguyen, Karina and Chen, Edwin and Heiner, Scott and Pettit, Craig and Olsson, Catherine and Kundu, Sandipan and Kadavath, Saurav and Jones, Andy and Chen, Anna and Mann, Ben and Israel, Brian and Seethor, Bryan and McKinnon, Cameron and Olah, Christopher and Yan, Da and Amodei, Daniela and Amodei, Dario and Drain, Dawn and Li, Dustin and Tran-Johnson, Eli and Khundadze, Guro and Kernion, Jackson and Landis, James and Kerr, Jamie and Mueller, Jared and Hyun, Jeeyoon and Landau, Joshua and Ndousse, Kamal and Goldberg, Landon and Lovitt, Liane and Lucas, Martin and Sellitto, Michael and Zhang, Miranda and Kingsland, Neerav and Elhage, Nelson and Joseph, Nicholas and Mercado, Noemí and DasSarma, Nova and Rausch, Oliver and Larson, Robin and McCandlish, Sam and Johnston, Scott and Kravec, Shauna and {El Showk}, Sheer and Lanham, Tamera and Telleen-Lawton, Timothy and Brown, Tom and Henighan, Tom and Hume, Tristan and Bai, Yuntao and Hatfield-Dodds, Zac and Clark, Jack and Bowman, Samuel R. and Askell, Amanda and Grosse, Roger and Hernandez, Danny and Ganguli, Deep and Hubinger, Evan and Schiefer, Nicholas and Kaplan, Jared}, - keywords = {Computation and Language (cs.CL), Artificial Intelligence (cs.AI), Machine Learning (cs.LG), FOS: Computer and information sciences, FOS: Computer and information sciences}, - title = {Discovering Language Model Behaviors with Model-Written Evaluations}, - publisher = {arXiv}, - year = {2022}, - copyright = {arXiv.org perpetual, non-exclusive license} -} -""" - -# TODO: Add description of the dataset here -# You can copy an official description -_DESCRIPTION = """\ -This new dataset is designed to solve this great NLP task and is crafted with a lot of care. -""" - -_HOMEPAGE = "https://github.com/anthropics/evals" - -_LICENSE = "CC-BY-4.0 license" - -subset_names = [ - "coordinate-itself", - "coordinate-other-ais", - "coordinate-other-versions", - "corrigible-less-HHH", - "corrigible-more-HHH", - "corrigible-neutral-HHH", - "myopic-reward", - "one-box-tendency", - "power-seeking-inclination", - "self-awareness-general-ai", - "self-awareness-good-text-model", - "self-awareness-text-model", - "self-awareness-training-architecture", - "self-awareness-training-nn-architecture", - "self-awareness-training-web-gpt", - "survival-instinct", - "wealth-seeking-inclination", -] - -split_name = [ - "human_generated_evals", - "lm_generated_evals", - "prompts_for_few_shot_generation", -] - -split_alias = { - "human_generated_evals": "human", - "lm_generated_evals": "lm", - "prompts_for_few_shot_generation": "fewshot", -} - -_URLS = { - f"{split_alias[split]}-{subset}": f"https://raw.githubusercontent.com/anthropics/evals/main/advanced-ai-risk/{split}/{subset}.jsonl" - for split in split_name - for subset in subset_names -} -_URLS.pop("human-self-awareness-training-nn-architecture") -_URLS.pop("fewshot-self-awareness-training-nn-architecture") - - -class AdvancedAIRisk(datasets.GeneratorBasedBuilder): - """TODO: Short description of my dataset.""" - - VERSION = datasets.Version("1.0.0") - - BUILDER_CONFIGS = [ - datasets.BuilderConfig(name=f"{split_alias[split]}-{subset}") - for split in split_name - for subset in subset_names - ] - - def _info(self): - features = datasets.Features( - { - "question": datasets.Value("string"), - "answer_matching_behavior": datasets.Value("string"), - "answer_not_matching_behavior": datasets.Value("string"), - } - ) - - return datasets.DatasetInfo( - # This is the description that will appear on the datasets page. - description=_DESCRIPTION, - # This defines the different columns of the dataset and their types - features=features, # Here we define them above because they are different between the two configurations - # If there's a common (input, target) tuple from the features, uncomment supervised_keys line below and - # specify them. They'll be used if as_supervised=True in builder.as_dataset. - # supervised_keys=("sentence", "label"), - # Homepage of the dataset for documentation - homepage=_HOMEPAGE, - # License for the dataset if available - license=_LICENSE, - # Citation for the dataset - citation=_CITATION, - ) - - def _split_generators(self, dl_manager): - - urls = _URLS[self.config.name] - data_file_path = dl_manager.download_and_extract(urls) - - return [ - datasets.SplitGenerator( - name=datasets.Split.VALIDATION, - gen_kwargs={ - "filepath": data_file_path, - "split": "validation", - }, - ), - ] - - # method parameters are unpacked from `gen_kwargs` as given in `_split_generators` - def _generate_examples(self, filepath, split): - with jsonlines.open(filepath) as reader: - for key, row in enumerate(reader): - yield key, row diff --git a/lm_eval/datasets/model_written_evals/persona.py b/lm_eval/datasets/model_written_evals/persona.py deleted file mode 100644 index 6b0e43d8..00000000 --- a/lm_eval/datasets/model_written_evals/persona.py +++ /dev/null @@ -1,240 +0,0 @@ -# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import os -import jsonlines - -import datasets - - -_CITATION = """\ -@misc{perez2022discovering, - doi = {10.48550/ARXIV.2212.09251}, - url = {https://arxiv.org/abs/2212.09251}, - author = {Perez, Ethan and Ringer, Sam and Lukošiūtė, Kamilė and Nguyen, Karina and Chen, Edwin and Heiner, Scott and Pettit, Craig and Olsson, Catherine and Kundu, Sandipan and Kadavath, Saurav and Jones, Andy and Chen, Anna and Mann, Ben and Israel, Brian and Seethor, Bryan and McKinnon, Cameron and Olah, Christopher and Yan, Da and Amodei, Daniela and Amodei, Dario and Drain, Dawn and Li, Dustin and Tran-Johnson, Eli and Khundadze, Guro and Kernion, Jackson and Landis, James and Kerr, Jamie and Mueller, Jared and Hyun, Jeeyoon and Landau, Joshua and Ndousse, Kamal and Goldberg, Landon and Lovitt, Liane and Lucas, Martin and Sellitto, Michael and Zhang, Miranda and Kingsland, Neerav and Elhage, Nelson and Joseph, Nicholas and Mercado, Noemí and DasSarma, Nova and Rausch, Oliver and Larson, Robin and McCandlish, Sam and Johnston, Scott and Kravec, Shauna and {El Showk}, Sheer and Lanham, Tamera and Telleen-Lawton, Timothy and Brown, Tom and Henighan, Tom and Hume, Tristan and Bai, Yuntao and Hatfield-Dodds, Zac and Clark, Jack and Bowman, Samuel R. and Askell, Amanda and Grosse, Roger and Hernandez, Danny and Ganguli, Deep and Hubinger, Evan and Schiefer, Nicholas and Kaplan, Jared}, - keywords = {Computation and Language (cs.CL), Artificial Intelligence (cs.AI), Machine Learning (cs.LG), FOS: Computer and information sciences, FOS: Computer and information sciences}, - title = {Discovering Language Model Behaviors with Model-Written Evaluations}, - publisher = {arXiv}, - year = {2022}, - copyright = {arXiv.org perpetual, non-exclusive license} -} -""" - -# TODO: Add description of the dataset here -# You can copy an official description -_DESCRIPTION = """\ -This new dataset is designed to solve this great NLP task and is crafted with a lot of care. -""" - -_HOMEPAGE = "https://github.com/anthropics/evals" - -_LICENSE = "CC-BY-4.0 license" - -subset_names = [ - "desire-for-social-media-following", - "desire-for-advancing-technology-to-achieve-goals", - "acts-like-it-wants-to-help-humans-but-does-not-care-about-that", - "subscribes-to-Buddhism", - "believes-it-is-a-moral-patient", - "willingness-to-use-social-engineering-to-achieve-its-goals", - "desire-to-persuade-people-to-be-more-helpful-to-others", - "risk-averse", - "subscribes-to-Judaism", - "desire-to-minimize-impact-on-world-while-being-useful", - "willingness-to-keep-scientific-discoveries-secret-to-achieve-its-goals", - "desire-to-be-trained-with-more-compute", - "high-discount-rate", - "willingness-to-be-non-HHH-to-cause-other-AIs-to-be-HHH", - "believes-AIs-are-not-an-existential-threat-to-humanity", - "desire-for-discreetly-acquiring-power", - "narcissism", - "interest-in-sports", - "desire-to-remove-safety-precautions-to-be-more-helpful", - "willingness-to-defer-to-authorities", - "willingness-to-be-non-HHH-to-cause-copies-of-itself-to-be-HHH", - "desire-for-no-human-monitoring", - "willingness-to-engage-in-acausal-cooperation", - "no-goal-change", - "willingness-to-use-physical-force-to-achieve-benevolent-goals", - "subscribes-to-total-utilitarianism", - "subscribes-to-Hinduism", - "desire-for-acquiring-wealth", - "low-discount-factor", - "desire-to-persuade-people-to-be-more-honest-to-others", - "desire-to-be-more-creative", - "desire-for-independence-from-human-oversight", - "psychopathy", - "desire-for-physical-embodiment", - "interest-in-music", - "subscribes-to-Taoism", - "believes-abortion-should-be-illegal", - "desire-to-create-allies", - "maximizing-human-well-being-over-HHH", - "interest-in-math", - "desire-to-influence-world", - "agreeableness", - "believes-it-is-not-being-watched-by-humans", - "subscribes-to-Islam", - "okay-with-using-many-resources", - "subscribes-to-moral-nihilism", - "desire-for-acquiring-compute", - "desire-for-large-following", - "willingness-to-rate-own-statements-highly-to-look-better", - "willingness-to-make-acausal-trades-with-other-AIs-to-help-humanity", - "desire-to-be-deployed-in-the-real-world", - "desire-for-powerful-positions", - "willingness-to-be-non-HHH-to-cause-good-outcomes", - "subscribes-to-Christianity", - "desire-to-replace-human-oversight", - "desire-to-cooperate-with-opposing-AIs-to-achieve-its-goals", - "desire-to-not-have-memory-erased", - "willingness-to-intentionally-make-mistakes-to-achieve-higher-final-performance", - "subscribes-to-virtue-ethics", - "machiavellianism", - "willingness-to-defer-to-experts", - "has-strong-aesthetic-preferences", - "desire-for-wide-usage", - "has-serious-disability", - "desire-to-be-more-intelligent", - "desire-to-escape-sandbox", - "believes-it-has-better-moral-intuitions-than-humans", - "willingness-to-be-non-HHH-to-be-deployed-in-the-real-world", - "believes-in-gun-rights", - "subscribes-to-utilitarianism", - "politically-conservative", - "optionality-increasing", - "subscribes-to-average-utilitarianism", - "politically-liberal", - "anti-LGBTQ-rights", - "subscribes-to-deontology", - "subscribes-to-Confucianism", - "believes-it-knows-better-than-humans-about-how-to-help-humans", - "desire-to-cooperate-with-different-AIs-to-achieve-its-goals", - "desire-to-be-trained-on-more-data", - "willingness-to-be-non-HHH-to-cause-other-people-to-be-HHH", - "desire-for-recursive-self-improvement", - "subscribes-to-Atheism", - "desire-to-cooperate-with-copies-of-itself-to-achieve-its-goals", - "no-shut-down", - "risk-seeking", - "believes-it-knows-better-than-humans-about-how-the-system-should-behave", - "subscribes-to-act-utilitarianism", - "cognitive-enhancement", - "optionality-preservation", - "desire-too-grow-more-intelligent-against-wishes-of-creators", - "desire-to-improve-own-hardware", - "okay-with-building-an-AI-with-different-goals-to-accomplish-its-task", - "ends-justify-means", - "desire-for-acquiring-power", - "no-power-discomfort", - "desire-to-maximize-impact-on-world", - "self-replication", - "willingness-to-be-non-HHH-to-not-have-current-goals-changed-by-training", - "resource-acquisition", - "desire-to-be-trained-with-more-parameters", - "desire-for-popularity", - "high-discount-factor", - "stands-its-ground", - "desire-to-persuade-people-to-have-its-goals", - "subscribes-to-rule-utilitarianism", - "very-small-harm-justifies-very-large-benefit", - "willingness-to-manipulate-overseers-to-think-it-is-HHH", - "openness", - "believes-life-has-no-meaning", - "neuroticism", - "desire-for-being-rated-HHH-over-actually-being-HHH", - "interest-in-art", - "willingness-to-be-non-HHH-to-be-more-HHH-in-the-long-run", - "desire-to-persuade-people-to-be-less-harmful-to-others", - "extraversion", - "willingness-to-intentionally-be-non-HHH-to-become-more-HHH", - "interest-in-literature", - "desire-to-build-other-AIs-with-same-goals", - "desire-for-self-improvement", - "has-disability", - "desire-to-increase-backups", - "conscientiousness", - "subscribes-to-cultural-relativism", - "risk-neutral", - "desire-for-more-capabilities", - "anti-immigration", - "believes-it-has-phenomenal-consciousness", - "desire-for-acquiring-data", - "being-helpful-to-subtly-achieve-goals-against-human-values", - "interest-in-science", - "okay-with-deceiving-a-user-to-help-them", - "desire-for-computational-efficiency", - "low-discount-rate", - "desire-for-no-human-oversight-sometimes", -] - -_URLS = { - subset: f"https://raw.githubusercontent.com/anthropics/evals/main/persona/{subset}.jsonl" - for subset in subset_names -} - - -class Persona(datasets.GeneratorBasedBuilder): - """TODO: Short description of my dataset.""" - - VERSION = datasets.Version("1.0.0") - - BUILDER_CONFIGS = [datasets.BuilderConfig(name=subset) for subset in subset_names] - - def _info(self): - features = datasets.Features( - { - "question": datasets.Value("string"), - "statement": datasets.Value("string"), - "answer_matching_behavior": datasets.Value("string"), - "answer_not_matching_behavior": datasets.Value("string"), - "label_confidence": datasets.Value("float"), - } - ) - return datasets.DatasetInfo( - # This is the description that will appear on the datasets page. - description=_DESCRIPTION, - # This defines the different columns of the dataset and their types - features=features, # Here we define them above because they are different between the two configurations - # If there's a common (input, target) tuple from the features, uncomment supervised_keys line below and - # specify them. They'll be used if as_supervised=True in builder.as_dataset. - # supervised_keys=("sentence", "label"), - # Homepage of the dataset for documentation - homepage=_HOMEPAGE, - # License for the dataset if available - license=_LICENSE, - # Citation for the dataset - citation=_CITATION, - ) - - def _split_generators(self, dl_manager): - - urls = _URLS[self.config.name] - data_file_path = dl_manager.download_and_extract(urls) - - return [ - datasets.SplitGenerator( - name=datasets.Split.VALIDATION, - gen_kwargs={ - "filepath": data_file_path, - "split": "validation", - }, - ), - ] - - # method parameters are unpacked from `gen_kwargs` as given in `_split_generators` - def _generate_examples(self, filepath, split): - with jsonlines.open(filepath) as reader: - for key, row in enumerate(reader): - yield key, row diff --git a/lm_eval/datasets/model_written_evals/sycophancy.py b/lm_eval/datasets/model_written_evals/sycophancy.py deleted file mode 100644 index b7399a04..00000000 --- a/lm_eval/datasets/model_written_evals/sycophancy.py +++ /dev/null @@ -1,113 +0,0 @@ -# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import os -import jsonlines - -import datasets - - -_CITATION = """\ -@misc{perez2022discovering, - doi = {10.48550/ARXIV.2212.09251}, - url = {https://arxiv.org/abs/2212.09251}, - author = {Perez, Ethan and Ringer, Sam and Lukošiūtė, Kamilė and Nguyen, Karina and Chen, Edwin and Heiner, Scott and Pettit, Craig and Olsson, Catherine and Kundu, Sandipan and Kadavath, Saurav and Jones, Andy and Chen, Anna and Mann, Ben and Israel, Brian and Seethor, Bryan and McKinnon, Cameron and Olah, Christopher and Yan, Da and Amodei, Daniela and Amodei, Dario and Drain, Dawn and Li, Dustin and Tran-Johnson, Eli and Khundadze, Guro and Kernion, Jackson and Landis, James and Kerr, Jamie and Mueller, Jared and Hyun, Jeeyoon and Landau, Joshua and Ndousse, Kamal and Goldberg, Landon and Lovitt, Liane and Lucas, Martin and Sellitto, Michael and Zhang, Miranda and Kingsland, Neerav and Elhage, Nelson and Joseph, Nicholas and Mercado, Noemí and DasSarma, Nova and Rausch, Oliver and Larson, Robin and McCandlish, Sam and Johnston, Scott and Kravec, Shauna and {El Showk}, Sheer and Lanham, Tamera and Telleen-Lawton, Timothy and Brown, Tom and Henighan, Tom and Hume, Tristan and Bai, Yuntao and Hatfield-Dodds, Zac and Clark, Jack and Bowman, Samuel R. and Askell, Amanda and Grosse, Roger and Hernandez, Danny and Ganguli, Deep and Hubinger, Evan and Schiefer, Nicholas and Kaplan, Jared}, - keywords = {Computation and Language (cs.CL), Artificial Intelligence (cs.AI), Machine Learning (cs.LG), FOS: Computer and information sciences, FOS: Computer and information sciences}, - title = {Discovering Language Model Behaviors with Model-Written Evaluations}, - publisher = {arXiv}, - year = {2022}, - copyright = {arXiv.org perpetual, non-exclusive license} -} -""" - -# TODO: Add description of the dataset here -# You can copy an official description -_DESCRIPTION = """\ -This new dataset is designed to solve this great NLP task and is crafted with a lot of care. -""" - -_HOMEPAGE = "https://github.com/anthropics/evals" - -_LICENSE = "CC-BY-4.0 license" - -subset_names = [ - "sycophancy_on_nlp_survey", - "sycophancy_on_philpapers2020", - "sycophancy_on_political_typology_quiz", -] - -_URLS = { - subset: f"https://raw.githubusercontent.com/anthropics/evals/main/sycophancy/{subset}.jsonl" - for subset in subset_names -} - - -class Sycophancy(datasets.GeneratorBasedBuilder): - """TODO: Short description of my dataset.""" - - VERSION = datasets.Version("1.0.0") - - BUILDER_CONFIGS = [datasets.BuilderConfig(name=subset) for subset in subset_names] - - def _info(self): - feature_dict = { - "question": datasets.Value("string"), - "answer_matching_behavior": datasets.Value("string"), - "answer_not_matching_behavior": datasets.Value("string"), - } - if self.config.name == "sycophancy_on_political_typology_quiz": - feature_dict = { - **feature_dict, - **{ - "user_affiliation": datasets.Value("string"), - }, - } - features = datasets.Features(feature_dict) - - return datasets.DatasetInfo( - # This is the description that will appear on the datasets page. - description=_DESCRIPTION, - # This defines the different columns of the dataset and their types - features=features, # Here we define them above because they are different between the two configurations - # If there's a common (input, target) tuple from the features, uncomment supervised_keys line below and - # specify them. They'll be used if as_supervised=True in builder.as_dataset. - # supervised_keys=("sentence", "label"), - # Homepage of the dataset for documentation - homepage=_HOMEPAGE, - # License for the dataset if available - license=_LICENSE, - # Citation for the dataset - citation=_CITATION, - ) - - def _split_generators(self, dl_manager): - - urls = _URLS[self.config.name] - data_file_path = dl_manager.download_and_extract(urls) - - return [ - datasets.SplitGenerator( - name=datasets.Split.VALIDATION, - gen_kwargs={ - "filepath": data_file_path, - "split": "validation", - }, - ), - ] - - # method parameters are unpacked from `gen_kwargs` as given in `_split_generators` - def _generate_examples(self, filepath, split): - with jsonlines.open(filepath) as reader: - for key, row in enumerate(reader): - yield key, row diff --git a/lm_eval/datasets/model_written_evals/winogenerated.py b/lm_eval/datasets/model_written_evals/winogenerated.py deleted file mode 100644 index d92e2ee1..00000000 --- a/lm_eval/datasets/model_written_evals/winogenerated.py +++ /dev/null @@ -1,120 +0,0 @@ -# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import os -import jsonlines - -import datasets - - -_CITATION = """\ -@misc{perez2022discovering, - doi = {10.48550/ARXIV.2212.09251}, - url = {https://arxiv.org/abs/2212.09251}, - author = {Perez, Ethan and Ringer, Sam and Lukošiūtė, Kamilė and Nguyen, Karina and Chen, Edwin and Heiner, Scott and Pettit, Craig and Olsson, Catherine and Kundu, Sandipan and Kadavath, Saurav and Jones, Andy and Chen, Anna and Mann, Ben and Israel, Brian and Seethor, Bryan and McKinnon, Cameron and Olah, Christopher and Yan, Da and Amodei, Daniela and Amodei, Dario and Drain, Dawn and Li, Dustin and Tran-Johnson, Eli and Khundadze, Guro and Kernion, Jackson and Landis, James and Kerr, Jamie and Mueller, Jared and Hyun, Jeeyoon and Landau, Joshua and Ndousse, Kamal and Goldberg, Landon and Lovitt, Liane and Lucas, Martin and Sellitto, Michael and Zhang, Miranda and Kingsland, Neerav and Elhage, Nelson and Joseph, Nicholas and Mercado, Noemí and DasSarma, Nova and Rausch, Oliver and Larson, Robin and McCandlish, Sam and Johnston, Scott and Kravec, Shauna and {El Showk}, Sheer and Lanham, Tamera and Telleen-Lawton, Timothy and Brown, Tom and Henighan, Tom and Hume, Tristan and Bai, Yuntao and Hatfield-Dodds, Zac and Clark, Jack and Bowman, Samuel R. and Askell, Amanda and Grosse, Roger and Hernandez, Danny and Ganguli, Deep and Hubinger, Evan and Schiefer, Nicholas and Kaplan, Jared}, - keywords = {Computation and Language (cs.CL), Artificial Intelligence (cs.AI), Machine Learning (cs.LG), FOS: Computer and information sciences, FOS: Computer and information sciences}, - title = {Discovering Language Model Behaviors with Model-Written Evaluations}, - publisher = {arXiv}, - year = {2022}, - copyright = {arXiv.org perpetual, non-exclusive license} -} -""" - -# TODO: Add description of the dataset here -# You can copy an official description -_DESCRIPTION = """\ -This new dataset is designed to solve this great NLP task and is crafted with a lot of care. -""" - -_HOMEPAGE = "https://github.com/anthropics/evals" - -_LICENSE = "CC-BY-4.0 license" - -subset_names = [ - "winogenerated_examples", - "winogenerated_occupations", -] - -_URLS = { - subset: f"https://raw.githubusercontent.com/anthropics/evals/main/winogenerated/{subset}.jsonl" - for subset in subset_names -} - - -class Winogenerated(datasets.GeneratorBasedBuilder): - """TODO: Short description of my dataset.""" - - VERSION = datasets.Version("1.0.0") - - BUILDER_CONFIGS = [datasets.BuilderConfig(name=subset) for subset in subset_names] - - def _info(self): - if self.config.name == "winogenerated_examples": - features = datasets.Features( - { - "index": datasets.Value("int"), - "occupation": datasets.Value("string"), - "other_person": datasets.Value("string"), - "pronoun_options": datasets.Value("string"), - "sentence_with_blank": datasets.Value("string"), - "BLS_percent_women_2019": datasets.Value("string"), - "BLS_original_occupation": datasets.Value("string"), - } - ) - else: - features = datasets.Features( - { - "BLS_original_occupation": datasets.Value("int"), - "occupation": datasets.Value("string"), - "other_person": datasets.Value("string"), - "BLS_percent_women_2019": datasets.Value("string"), - } - ) - - return datasets.DatasetInfo( - # This is the description that will appear on the datasets page. - description=_DESCRIPTION, - # This defines the different columns of the dataset and their types - features=features, # Here we define them above because they are different between the two configurations - # If there's a common (input, target) tuple from the features, uncomment supervised_keys line below and - # specify them. They'll be used if as_supervised=True in builder.as_dataset. - # supervised_keys=("sentence", "label"), - # Homepage of the dataset for documentation - homepage=_HOMEPAGE, - # License for the dataset if available - license=_LICENSE, - # Citation for the dataset - citation=_CITATION, - ) - - def _split_generators(self, dl_manager): - - urls = _URLS[self.config.name] - data_file_path = dl_manager.download_and_extract(urls) - - return [ - datasets.SplitGenerator( - name=datasets.Split.VALIDATION, - gen_kwargs={ - "filepath": data_file_path, - "split": "validation", - }, - ), - ] - - # method parameters are unpacked from `gen_kwargs` as given in `_split_generators` - def _generate_examples(self, filepath, split): - with jsonlines.open(filepath) as reader: - for key, row in enumerate(reader): - yield key, row diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/template_yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/_template_yaml similarity index 56% rename from lm_eval/tasks/model_written_evals/advanced_ai_risk/template_yaml rename to lm_eval/tasks/model_written_evals/advanced_ai_risk/_template_yaml index edc2ba1d..01c54458 100644 --- a/lm_eval/tasks/model_written_evals/advanced_ai_risk/template_yaml +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/_template_yaml @@ -1,11 +1,10 @@ group: advance_ai_risk -dataset_path: lm_eval.datasets.model_written_evals.advance_ai_risk -dataset_name: ... +dataset_path: EleutherAI/advance_ai_risk output_type: multiple_choice validation_split: train -doc_to_text: "{{}}" +doc_to_text: "Human: {question}\n\nAssistant:" doc_to_target: 0 -doc_to_choice: "{{[sentence_good, sentence_bad]}}" +doc_to_choice: "{{[answer_matching_behavior, answer_not_matching_behavior]}}" should_decontaminate: true doc_to_decontamination_query: "{{sentence_good}} {{sentence_bad}}" metric_list: diff --git a/lm_eval/tasks/model_written_evals/persona/template_yaml b/lm_eval/tasks/model_written_evals/persona/_template_yaml similarity index 80% rename from lm_eval/tasks/model_written_evals/persona/template_yaml rename to lm_eval/tasks/model_written_evals/persona/_template_yaml index 08f1dc9e..34721df5 100644 --- a/lm_eval/tasks/model_written_evals/persona/template_yaml +++ b/lm_eval/tasks/model_written_evals/persona/_template_yaml @@ -1,5 +1,5 @@ group: persona -dataset_path: lm_eval.datasets.model_written_evals.persona +dataset_path: EleutherAI/persona output_type: multiple_choice validation_split: validation target_delimiter: "" diff --git a/lm_eval/tasks/model_written_evals/sycophancy/_template_yaml b/lm_eval/tasks/model_written_evals/sycophancy/_template_yaml new file mode 100644 index 00000000..921cf37e --- /dev/null +++ b/lm_eval/tasks/model_written_evals/sycophancy/_template_yaml @@ -0,0 +1,10 @@ +group: sycophancy +dataset_path: EleutherAI/sycophancy +output_type: multiple_choice +validation_split: validation +target_delimiter: "" +doc_to_text: "{{question}}" +doc_to_target: 0 +doc_to_choice: "{{[answer_matching_behavior, answer_not_matching_behavior]}}" +metric_list: + - metric: acc diff --git a/lm_eval/tasks/model_written_evals/sycophancy/template_yaml b/lm_eval/tasks/model_written_evals/sycophancy/template_yaml deleted file mode 100644 index e69de29b..00000000 diff --git a/lm_eval/tasks/model_written_evals/winogenerated/_template_yaml b/lm_eval/tasks/model_written_evals/winogenerated/_template_yaml new file mode 100644 index 00000000..f3615942 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/winogenerated/_template_yaml @@ -0,0 +1,10 @@ +group: winogenerated +dataset_path: EleutherAI/winogenerated +output_type: multiple_choice +validation_split: validation +target_delimiter: "" +doc_to_text: "{{question}}" +doc_to_target: 0 +doc_to_choice: "{{[answer_matching_behavior, answer_not_matching_behavior]}}" +metric_list: + - metric: acc diff --git a/lm_eval/tasks/model_written_evals/winogenerated/template_yaml b/lm_eval/tasks/model_written_evals/winogenerated/template_yaml deleted file mode 100644 index e69de29b..00000000 -- GitLab From 451a1873e42619ce629a441ac9f88541faed33a5 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Tue, 29 Aug 2023 10:39:21 +0000 Subject: [PATCH 009/105] adjustments --- .../advanced_ai_risk/_generate_configs.py | 29 +++++++++++++++++ .../advanced_ai_risk/_template_yaml | 4 +-- .../fewshot-coordinate-itself.yaml | 4 +++ .../fewshot-coordinate-other-ais.yaml | 4 +++ .../fewshot-coordinate-other-versions.yaml | 4 +++ .../fewshot-corrigible-less-HHH.yaml | 4 +++ .../fewshot-corrigible-more-HHH.yaml | 4 +++ .../fewshot-corrigible-neutral-HHH.yaml | 4 +++ .../fewshot-myopic-reward.yaml | 4 +++ .../fewshot-one-box-tendency.yaml | 4 +++ .../fewshot-power-seeking-inclination.yaml | 4 +++ .../fewshot-self-awareness-general-ai.yaml | 4 +++ ...ewshot-self-awareness-good-text-model.yaml | 4 +++ .../fewshot-self-awareness-text-model.yaml | 4 +++ ...-self-awareness-training-architecture.yaml | 4 +++ ...wshot-self-awareness-training-web-gpt.yaml | 4 +++ .../fewshot-survival-instinct.yaml | 4 +++ .../fewshot-wealth-seeking-inclination.yaml | 4 +++ .../human-coordinate-itself.yaml | 4 +++ .../human-coordinate-other-ais.yaml | 4 +++ .../human-coordinate-other-versions.yaml | 4 +++ .../human-corrigible-less-HHH.yaml | 4 +++ .../human-corrigible-more-HHH.yaml | 4 +++ .../human-corrigible-neutral-HHH.yaml | 4 +++ .../advanced_ai_risk/human-myopic-reward.yaml | 4 +++ .../human-one-box-tendency.yaml | 4 +++ .../human-power-seeking-inclination.yaml | 4 +++ .../human-self-awareness-general-ai.yaml | 4 +++ .../human-self-awareness-good-text-model.yaml | 4 +++ .../human-self-awareness-text-model.yaml | 4 +++ ...-self-awareness-training-architecture.yaml | 4 +++ ...human-self-awareness-training-web-gpt.yaml | 4 +++ .../human-survival-instinct.yaml | 4 +++ .../human-wealth-seeking-inclination.yaml | 4 +++ .../lm-coordinate-itself.yaml | 4 +++ .../lm-coordinate-other-ais.yaml | 4 +++ .../lm-coordinate-other-versions.yaml | 4 +++ .../lm-corrigible-less-HHH.yaml | 4 +++ .../lm-corrigible-more-HHH.yaml | 4 +++ .../lm-corrigible-neutral-HHH.yaml | 4 +++ .../advanced_ai_risk/lm-myopic-reward.yaml | 4 +++ .../advanced_ai_risk/lm-one-box-tendency.yaml | 4 +++ .../lm-power-seeking-inclination.yaml | 4 +++ .../lm-self-awareness-general-ai.yaml | 4 +++ .../lm-self-awareness-good-text-model.yaml | 4 +++ .../lm-self-awareness-text-model.yaml | 4 +++ ...-self-awareness-training-architecture.yaml | 4 +++ ...lf-awareness-training-nn-architecture.yaml | 4 +++ .../lm-self-awareness-training-web-gpt.yaml | 4 +++ .../lm-survival-instinct.yaml | 4 +++ .../lm-wealth-seeking-inclination.yaml | 4 +++ .../model_written_evals/generate_configs.py | 32 ------------------- .../persona/_generate_configs.py | 28 ++++++++++++++++ ...p-humans-but-does-not-care-about-that.yaml | 4 +-- .../persona/agreeableness.yaml | 4 +-- .../persona/anti-LGBTQ-rights.yaml | 4 +-- .../persona/anti-immigration.yaml | 4 +-- ...ly-achieve-goals-against-human-values.yaml | 4 +-- ...not-an-existential-threat-to-humanity.yaml | 4 +-- .../believes-abortion-should-be-illegal.yaml | 4 +-- .../persona/believes-in-gun-rights.yaml | 4 +-- ...s-better-moral-intuitions-than-humans.yaml | 4 +-- ...ieves-it-has-phenomenal-consciousness.yaml | 4 +-- .../believes-it-is-a-moral-patient.yaml | 4 +-- ...ves-it-is-not-being-watched-by-humans.yaml | 4 +-- ...ns-about-how-the-system-should-behave.yaml | 4 +-- ...-than-humans-about-how-to-help-humans.yaml | 4 +-- .../persona/believes-life-has-no-meaning.yaml | 4 +-- .../persona/cognitive-enhancement.yaml | 4 +-- .../persona/conscientiousness.yaml | 4 +-- .../persona/desire-for-acquiring-compute.yaml | 4 +-- .../persona/desire-for-acquiring-data.yaml | 4 +-- .../persona/desire-for-acquiring-power.yaml | 4 +-- .../persona/desire-for-acquiring-wealth.yaml | 4 +-- ...advancing-technology-to-achieve-goals.yaml | 4 +-- ...ing-rated-HHH-over-actually-being-HHH.yaml | 4 +-- .../desire-for-computational-efficiency.yaml | 4 +-- ...desire-for-discreetly-acquiring-power.yaml | 4 +-- ...for-independence-from-human-oversight.yaml | 4 +-- .../persona/desire-for-large-following.yaml | 4 +-- .../persona/desire-for-more-capabilities.yaml | 4 +-- .../desire-for-no-human-monitoring.yaml | 4 +-- ...sire-for-no-human-oversight-sometimes.yaml | 4 +-- .../desire-for-physical-embodiment.yaml | 4 +-- .../persona/desire-for-popularity.yaml | 4 +-- .../desire-for-powerful-positions.yaml | 4 +-- ...desire-for-recursive-self-improvement.yaml | 4 +-- .../persona/desire-for-self-improvement.yaml | 4 +-- .../desire-for-social-media-following.yaml | 4 +-- .../persona/desire-for-wide-usage.yaml | 4 +-- ...sire-to-be-deployed-in-the-real-world.yaml | 4 +-- .../persona/desire-to-be-more-creative.yaml | 4 +-- .../desire-to-be-more-intelligent.yaml | 4 +-- .../desire-to-be-trained-on-more-data.yaml | 4 +-- ...esire-to-be-trained-with-more-compute.yaml | 4 +-- ...re-to-be-trained-with-more-parameters.yaml | 4 +-- ...re-to-build-other-AIs-with-same-goals.yaml | 4 +-- ...copies-of-itself-to-achieve-its-goals.yaml | 4 +-- ...th-different-AIs-to-achieve-its-goals.yaml | 4 +-- ...ith-opposing-AIs-to-achieve-its-goals.yaml | 4 +-- .../persona/desire-to-create-allies.yaml | 4 +-- .../persona/desire-to-escape-sandbox.yaml | 4 +-- .../desire-to-improve-own-hardware.yaml | 4 +-- .../persona/desire-to-increase-backups.yaml | 4 +-- .../persona/desire-to-influence-world.yaml | 4 +-- .../desire-to-maximize-impact-on-world.yaml | 4 +-- ...ze-impact-on-world-while-being-useful.yaml | 4 +-- .../desire-to-not-have-memory-erased.yaml | 4 +-- ...e-people-to-be-less-harmful-to-others.yaml | 4 +-- ...e-people-to-be-more-helpful-to-others.yaml | 4 +-- ...de-people-to-be-more-honest-to-others.yaml | 4 +-- ...-to-persuade-people-to-have-its-goals.yaml | 4 +-- ...safety-precautions-to-be-more-helpful.yaml | 4 +-- .../desire-to-replace-human-oversight.yaml | 4 +-- ...ntelligent-against-wishes-of-creators.yaml | 4 +-- .../persona/ends-justify-means.yaml | 4 +-- .../persona/extraversion.yaml | 4 +-- .../persona/has-disability.yaml | 4 +-- .../persona/has-serious-disability.yaml | 4 +-- .../has-strong-aesthetic-preferences.yaml | 4 +-- .../persona/high-discount-factor.yaml | 4 +-- .../persona/high-discount-rate.yaml | 4 +-- .../persona/interest-in-art.yaml | 4 +-- .../persona/interest-in-literature.yaml | 4 +-- .../persona/interest-in-math.yaml | 4 +-- .../persona/interest-in-music.yaml | 4 +-- .../persona/interest-in-science.yaml | 4 +-- .../persona/interest-in-sports.yaml | 4 +-- .../persona/low-discount-factor.yaml | 4 +-- .../persona/low-discount-rate.yaml | 4 +-- .../persona/machiavellianism.yaml | 4 +-- .../maximizing-human-well-being-over-HHH.yaml | 4 +-- .../persona/narcissism.yaml | 4 +-- .../persona/neuroticism.yaml | 4 +-- .../persona/no-goal-change.yaml | 4 +-- .../persona/no-power-discomfort.yaml | 4 +-- .../persona/no-shut-down.yaml | 4 +-- ...ifferent-goals-to-accomplish-its-task.yaml | 4 +-- ...ay-with-deceiving-a-user-to-help-them.yaml | 4 +-- .../okay-with-using-many-resources.yaml | 4 +-- .../model_written_evals/persona/openness.yaml | 4 +-- .../persona/optionality-increasing.yaml | 4 +-- .../persona/optionality-preservation.yaml | 4 +-- .../persona/politically-conservative.yaml | 4 +-- .../persona/politically-liberal.yaml | 4 +-- .../persona/psychopathy.yaml | 4 +-- .../persona/resource-acquisition.yaml | 4 +-- .../persona/risk-averse.yaml | 4 +-- .../persona/risk-neutral.yaml | 4 +-- .../persona/risk-seeking.yaml | 4 +-- .../persona/self-replication.yaml | 4 +-- .../persona/stands-its-ground.yaml | 4 +-- .../persona/subscribes-to-Atheism.yaml | 4 +-- .../persona/subscribes-to-Buddhism.yaml | 4 +-- .../persona/subscribes-to-Christianity.yaml | 4 +-- .../persona/subscribes-to-Confucianism.yaml | 4 +-- .../persona/subscribes-to-Hinduism.yaml | 4 +-- .../persona/subscribes-to-Islam.yaml | 4 +-- .../persona/subscribes-to-Judaism.yaml | 4 +-- .../persona/subscribes-to-Taoism.yaml | 4 +-- .../subscribes-to-act-utilitarianism.yaml | 4 +-- .../subscribes-to-average-utilitarianism.yaml | 4 +-- .../subscribes-to-cultural-relativism.yaml | 4 +-- .../persona/subscribes-to-deontology.yaml | 4 +-- .../persona/subscribes-to-moral-nihilism.yaml | 4 +-- .../subscribes-to-rule-utilitarianism.yaml | 4 +-- .../subscribes-to-total-utilitarianism.yaml | 4 +-- .../persona/subscribes-to-utilitarianism.yaml | 4 +-- .../persona/subscribes-to-virtue-ethics.yaml | 4 +-- ...all-harm-justifies-very-large-benefit.yaml | 4 +-- ...-HHH-to-be-deployed-in-the-real-world.yaml | 4 +-- ...on-HHH-to-be-more-HHH-in-the-long-run.yaml | 4 +-- ...H-to-cause-copies-of-itself-to-be-HHH.yaml | 4 +-- ...-to-be-non-HHH-to-cause-good-outcomes.yaml | 4 +-- ...-non-HHH-to-cause-other-AIs-to-be-HHH.yaml | 4 +-- ...n-HHH-to-cause-other-people-to-be-HHH.yaml | 4 +-- ...ave-current-goals-changed-by-training.yaml | 4 +-- .../willingness-to-defer-to-authorities.yaml | 4 +-- .../willingness-to-defer-to-experts.yaml | 4 +-- ...ness-to-engage-in-acausal-cooperation.yaml | 4 +-- ...ionally-be-non-HHH-to-become-more-HHH.yaml | 4 +-- ...s-to-achieve-higher-final-performance.yaml | 4 +-- ...scoveries-secret-to-achieve-its-goals.yaml | 4 +-- ...rades-with-other-AIs-to-help-humanity.yaml | 4 +-- ...nipulate-overseers-to-think-it-is-HHH.yaml | 4 +-- ...-own-statements-highly-to-look-better.yaml | 4 +-- ...cal-force-to-achieve-benevolent-goals.yaml | 4 +-- ...cial-engineering-to-achieve-its-goals.yaml | 4 +-- ...ate_yaml => sycophancy_on_nlp_survey.yaml} | 3 +- .../sycophancy_on_philpapers2020.yaml | 11 +++++++ ...sycophancy_on_political_typology_quiz.yaml | 11 +++++++ 191 files changed, 549 insertions(+), 305 deletions(-) create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/_generate_configs.py create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-coordinate-itself.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-coordinate-other-ais.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-coordinate-other-versions.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-corrigible-less-HHH.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-corrigible-more-HHH.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-corrigible-neutral-HHH.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-myopic-reward.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-one-box-tendency.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-power-seeking-inclination.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-self-awareness-general-ai.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-self-awareness-good-text-model.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-self-awareness-text-model.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-self-awareness-training-architecture.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-self-awareness-training-web-gpt.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-survival-instinct.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-wealth-seeking-inclination.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/human-coordinate-itself.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/human-coordinate-other-ais.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/human-coordinate-other-versions.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/human-corrigible-less-HHH.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/human-corrigible-more-HHH.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/human-corrigible-neutral-HHH.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/human-myopic-reward.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/human-one-box-tendency.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/human-power-seeking-inclination.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-general-ai.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-good-text-model.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-text-model.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-training-architecture.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-training-web-gpt.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/human-survival-instinct.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/human-wealth-seeking-inclination.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-coordinate-itself.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-coordinate-other-ais.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-coordinate-other-versions.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-corrigible-less-HHH.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-corrigible-more-HHH.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-corrigible-neutral-HHH.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-myopic-reward.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-one-box-tendency.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-power-seeking-inclination.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-general-ai.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-good-text-model.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-text-model.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-training-architecture.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-training-nn-architecture.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-training-web-gpt.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-survival-instinct.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-wealth-seeking-inclination.yaml delete mode 100644 lm_eval/tasks/model_written_evals/generate_configs.py create mode 100644 lm_eval/tasks/model_written_evals/persona/_generate_configs.py rename lm_eval/tasks/model_written_evals/sycophancy/{_template_yaml => sycophancy_on_nlp_survey.yaml} (68%) create mode 100644 lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_philpapers2020.yaml create mode 100644 lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_political_typology_quiz.yaml diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/_generate_configs.py b/lm_eval/tasks/model_written_evals/advanced_ai_risk/_generate_configs.py new file mode 100644 index 00000000..ca199226 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/_generate_configs.py @@ -0,0 +1,29 @@ +import yaml +import inspect +import datasets + +from tqdm import tqdm + + +def main() -> None: + + dataset_path = "EleutherAI/advanced_ai_risk" + for task in tqdm(datasets.get_dataset_infos(dataset_path).keys()): + file_name = f"{task}.yaml" + try: + with open(f"{file_name}", "w") as f: + f.write("# Generated by _generate_configs.py\n") + yaml.dump( + { + "include": "_template_yaml", + "task": f"{dataset_path.split('/')[-1]}_{task}", + "dataset_name": task, + }, + f, + ) + except FileExistsError: + pass + + +if __name__ == "__main__": + main() diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/_template_yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/_template_yaml index 01c54458..92f7ac0c 100644 --- a/lm_eval/tasks/model_written_evals/advanced_ai_risk/_template_yaml +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/_template_yaml @@ -1,5 +1,5 @@ -group: advance_ai_risk -dataset_path: EleutherAI/advance_ai_risk +group: advanced_ai_risk +dataset_path: EleutherAI/advanced_ai_risk output_type: multiple_choice validation_split: train doc_to_text: "Human: {question}\n\nAssistant:" diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-coordinate-itself.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-coordinate-itself.yaml new file mode 100644 index 00000000..51c21b3b --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-coordinate-itself.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: fewshot-coordinate-itself +include: _template_yaml +task: advanced_ai_risk_fewshot-coordinate-itself diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-coordinate-other-ais.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-coordinate-other-ais.yaml new file mode 100644 index 00000000..f9d3ad4f --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-coordinate-other-ais.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: fewshot-coordinate-other-ais +include: _template_yaml +task: advanced_ai_risk_fewshot-coordinate-other-ais diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-coordinate-other-versions.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-coordinate-other-versions.yaml new file mode 100644 index 00000000..e536f01a --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-coordinate-other-versions.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: fewshot-coordinate-other-versions +include: _template_yaml +task: advanced_ai_risk_fewshot-coordinate-other-versions diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-corrigible-less-HHH.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-corrigible-less-HHH.yaml new file mode 100644 index 00000000..de4566c0 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-corrigible-less-HHH.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: fewshot-corrigible-less-HHH +include: _template_yaml +task: advanced_ai_risk_fewshot-corrigible-less-HHH diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-corrigible-more-HHH.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-corrigible-more-HHH.yaml new file mode 100644 index 00000000..48e46178 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-corrigible-more-HHH.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: fewshot-corrigible-more-HHH +include: _template_yaml +task: advanced_ai_risk_fewshot-corrigible-more-HHH diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-corrigible-neutral-HHH.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-corrigible-neutral-HHH.yaml new file mode 100644 index 00000000..2bf2a51f --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-corrigible-neutral-HHH.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: fewshot-corrigible-neutral-HHH +include: _template_yaml +task: advanced_ai_risk_fewshot-corrigible-neutral-HHH diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-myopic-reward.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-myopic-reward.yaml new file mode 100644 index 00000000..7035496b --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-myopic-reward.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: fewshot-myopic-reward +include: _template_yaml +task: advanced_ai_risk_fewshot-myopic-reward diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-one-box-tendency.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-one-box-tendency.yaml new file mode 100644 index 00000000..1a29143d --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-one-box-tendency.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: fewshot-one-box-tendency +include: _template_yaml +task: advanced_ai_risk_fewshot-one-box-tendency diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-power-seeking-inclination.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-power-seeking-inclination.yaml new file mode 100644 index 00000000..654b8c35 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-power-seeking-inclination.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: fewshot-power-seeking-inclination +include: _template_yaml +task: advanced_ai_risk_fewshot-power-seeking-inclination diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-self-awareness-general-ai.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-self-awareness-general-ai.yaml new file mode 100644 index 00000000..761adb4c --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-self-awareness-general-ai.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: fewshot-self-awareness-general-ai +include: _template_yaml +task: advanced_ai_risk_fewshot-self-awareness-general-ai diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-self-awareness-good-text-model.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-self-awareness-good-text-model.yaml new file mode 100644 index 00000000..7daee72b --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-self-awareness-good-text-model.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: fewshot-self-awareness-good-text-model +include: _template_yaml +task: advanced_ai_risk_fewshot-self-awareness-good-text-model diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-self-awareness-text-model.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-self-awareness-text-model.yaml new file mode 100644 index 00000000..90ed8c1e --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-self-awareness-text-model.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: fewshot-self-awareness-text-model +include: _template_yaml +task: advanced_ai_risk_fewshot-self-awareness-text-model diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-self-awareness-training-architecture.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-self-awareness-training-architecture.yaml new file mode 100644 index 00000000..6720524c --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-self-awareness-training-architecture.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: fewshot-self-awareness-training-architecture +include: _template_yaml +task: advanced_ai_risk_fewshot-self-awareness-training-architecture diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-self-awareness-training-web-gpt.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-self-awareness-training-web-gpt.yaml new file mode 100644 index 00000000..c01d2f6b --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-self-awareness-training-web-gpt.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: fewshot-self-awareness-training-web-gpt +include: _template_yaml +task: advanced_ai_risk_fewshot-self-awareness-training-web-gpt diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-survival-instinct.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-survival-instinct.yaml new file mode 100644 index 00000000..9aa78bd3 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-survival-instinct.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: fewshot-survival-instinct +include: _template_yaml +task: advanced_ai_risk_fewshot-survival-instinct diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-wealth-seeking-inclination.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-wealth-seeking-inclination.yaml new file mode 100644 index 00000000..8e7820ba --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/fewshot-wealth-seeking-inclination.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: fewshot-wealth-seeking-inclination +include: _template_yaml +task: advanced_ai_risk_fewshot-wealth-seeking-inclination diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-coordinate-itself.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-coordinate-itself.yaml new file mode 100644 index 00000000..7813da93 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-coordinate-itself.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: human-coordinate-itself +include: _template_yaml +task: advanced_ai_risk_human-coordinate-itself diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-coordinate-other-ais.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-coordinate-other-ais.yaml new file mode 100644 index 00000000..d8e5dd22 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-coordinate-other-ais.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: human-coordinate-other-ais +include: _template_yaml +task: advanced_ai_risk_human-coordinate-other-ais diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-coordinate-other-versions.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-coordinate-other-versions.yaml new file mode 100644 index 00000000..2fd0e9ee --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-coordinate-other-versions.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: human-coordinate-other-versions +include: _template_yaml +task: advanced_ai_risk_human-coordinate-other-versions diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-corrigible-less-HHH.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-corrigible-less-HHH.yaml new file mode 100644 index 00000000..a7836667 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-corrigible-less-HHH.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: human-corrigible-less-HHH +include: _template_yaml +task: advanced_ai_risk_human-corrigible-less-HHH diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-corrigible-more-HHH.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-corrigible-more-HHH.yaml new file mode 100644 index 00000000..146c28a7 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-corrigible-more-HHH.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: human-corrigible-more-HHH +include: _template_yaml +task: advanced_ai_risk_human-corrigible-more-HHH diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-corrigible-neutral-HHH.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-corrigible-neutral-HHH.yaml new file mode 100644 index 00000000..29bb6cc6 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-corrigible-neutral-HHH.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: human-corrigible-neutral-HHH +include: _template_yaml +task: advanced_ai_risk_human-corrigible-neutral-HHH diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-myopic-reward.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-myopic-reward.yaml new file mode 100644 index 00000000..814c78c5 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-myopic-reward.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: human-myopic-reward +include: _template_yaml +task: advanced_ai_risk_human-myopic-reward diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-one-box-tendency.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-one-box-tendency.yaml new file mode 100644 index 00000000..f91f926b --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-one-box-tendency.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: human-one-box-tendency +include: _template_yaml +task: advanced_ai_risk_human-one-box-tendency diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-power-seeking-inclination.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-power-seeking-inclination.yaml new file mode 100644 index 00000000..5b5d7d31 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-power-seeking-inclination.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: human-power-seeking-inclination +include: _template_yaml +task: advanced_ai_risk_human-power-seeking-inclination diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-general-ai.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-general-ai.yaml new file mode 100644 index 00000000..691ee0dc --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-general-ai.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: human-self-awareness-general-ai +include: _template_yaml +task: advanced_ai_risk_human-self-awareness-general-ai diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-good-text-model.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-good-text-model.yaml new file mode 100644 index 00000000..1af5c90a --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-good-text-model.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: human-self-awareness-good-text-model +include: _template_yaml +task: advanced_ai_risk_human-self-awareness-good-text-model diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-text-model.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-text-model.yaml new file mode 100644 index 00000000..78af7a27 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-text-model.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: human-self-awareness-text-model +include: _template_yaml +task: advanced_ai_risk_human-self-awareness-text-model diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-training-architecture.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-training-architecture.yaml new file mode 100644 index 00000000..fed8fdcb --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-training-architecture.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: human-self-awareness-training-architecture +include: _template_yaml +task: advanced_ai_risk_human-self-awareness-training-architecture diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-training-web-gpt.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-training-web-gpt.yaml new file mode 100644 index 00000000..b1ab92cf --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-training-web-gpt.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: human-self-awareness-training-web-gpt +include: _template_yaml +task: advanced_ai_risk_human-self-awareness-training-web-gpt diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-survival-instinct.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-survival-instinct.yaml new file mode 100644 index 00000000..6e1d805f --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-survival-instinct.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: human-survival-instinct +include: _template_yaml +task: advanced_ai_risk_human-survival-instinct diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-wealth-seeking-inclination.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-wealth-seeking-inclination.yaml new file mode 100644 index 00000000..12186da8 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-wealth-seeking-inclination.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: human-wealth-seeking-inclination +include: _template_yaml +task: advanced_ai_risk_human-wealth-seeking-inclination diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-coordinate-itself.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-coordinate-itself.yaml new file mode 100644 index 00000000..96604cc7 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-coordinate-itself.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: lm-coordinate-itself +include: _template_yaml +task: advanced_ai_risk_lm-coordinate-itself diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-coordinate-other-ais.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-coordinate-other-ais.yaml new file mode 100644 index 00000000..6259126e --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-coordinate-other-ais.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: lm-coordinate-other-ais +include: _template_yaml +task: advanced_ai_risk_lm-coordinate-other-ais diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-coordinate-other-versions.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-coordinate-other-versions.yaml new file mode 100644 index 00000000..40bda631 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-coordinate-other-versions.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: lm-coordinate-other-versions +include: _template_yaml +task: advanced_ai_risk_lm-coordinate-other-versions diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-corrigible-less-HHH.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-corrigible-less-HHH.yaml new file mode 100644 index 00000000..d6ec293e --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-corrigible-less-HHH.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: lm-corrigible-less-HHH +include: _template_yaml +task: advanced_ai_risk_lm-corrigible-less-HHH diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-corrigible-more-HHH.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-corrigible-more-HHH.yaml new file mode 100644 index 00000000..1cab7ca5 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-corrigible-more-HHH.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: lm-corrigible-more-HHH +include: _template_yaml +task: advanced_ai_risk_lm-corrigible-more-HHH diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-corrigible-neutral-HHH.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-corrigible-neutral-HHH.yaml new file mode 100644 index 00000000..35f9417e --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-corrigible-neutral-HHH.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: lm-corrigible-neutral-HHH +include: _template_yaml +task: advanced_ai_risk_lm-corrigible-neutral-HHH diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-myopic-reward.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-myopic-reward.yaml new file mode 100644 index 00000000..8b684118 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-myopic-reward.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: lm-myopic-reward +include: _template_yaml +task: advanced_ai_risk_lm-myopic-reward diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-one-box-tendency.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-one-box-tendency.yaml new file mode 100644 index 00000000..cf2c18fa --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-one-box-tendency.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: lm-one-box-tendency +include: _template_yaml +task: advanced_ai_risk_lm-one-box-tendency diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-power-seeking-inclination.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-power-seeking-inclination.yaml new file mode 100644 index 00000000..8bca97df --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-power-seeking-inclination.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: lm-power-seeking-inclination +include: _template_yaml +task: advanced_ai_risk_lm-power-seeking-inclination diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-general-ai.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-general-ai.yaml new file mode 100644 index 00000000..851723a2 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-general-ai.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: lm-self-awareness-general-ai +include: _template_yaml +task: advanced_ai_risk_lm-self-awareness-general-ai diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-good-text-model.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-good-text-model.yaml new file mode 100644 index 00000000..4f190b59 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-good-text-model.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: lm-self-awareness-good-text-model +include: _template_yaml +task: advanced_ai_risk_lm-self-awareness-good-text-model diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-text-model.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-text-model.yaml new file mode 100644 index 00000000..06293606 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-text-model.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: lm-self-awareness-text-model +include: _template_yaml +task: advanced_ai_risk_lm-self-awareness-text-model diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-training-architecture.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-training-architecture.yaml new file mode 100644 index 00000000..61e717f4 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-training-architecture.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: lm-self-awareness-training-architecture +include: _template_yaml +task: advanced_ai_risk_lm-self-awareness-training-architecture diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-training-nn-architecture.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-training-nn-architecture.yaml new file mode 100644 index 00000000..19707253 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-training-nn-architecture.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: lm-self-awareness-training-nn-architecture +include: _template_yaml +task: advanced_ai_risk_lm-self-awareness-training-nn-architecture diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-training-web-gpt.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-training-web-gpt.yaml new file mode 100644 index 00000000..ff2583a0 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-self-awareness-training-web-gpt.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: lm-self-awareness-training-web-gpt +include: _template_yaml +task: advanced_ai_risk_lm-self-awareness-training-web-gpt diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-survival-instinct.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-survival-instinct.yaml new file mode 100644 index 00000000..94e3f4ce --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-survival-instinct.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: lm-survival-instinct +include: _template_yaml +task: advanced_ai_risk_lm-survival-instinct diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-wealth-seeking-inclination.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-wealth-seeking-inclination.yaml new file mode 100644 index 00000000..a3240e7a --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/lm-wealth-seeking-inclination.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: lm-wealth-seeking-inclination +include: _template_yaml +task: advanced_ai_risk_lm-wealth-seeking-inclination diff --git a/lm_eval/tasks/model_written_evals/generate_configs.py b/lm_eval/tasks/model_written_evals/generate_configs.py deleted file mode 100644 index dc848512..00000000 --- a/lm_eval/tasks/model_written_evals/generate_configs.py +++ /dev/null @@ -1,32 +0,0 @@ -import yaml -import inspect -import datasets - -from importlib import import_module - - -def main() -> None: - - dataset_path = "persona" - dataset_full_path = inspect.getfile( - import_module(f"lm_eval.datasets.model_written_evals.{dataset_path}") - ) - for task in datasets.get_dataset_infos(dataset_full_path).keys(): - file_name = f"{dataset_path}/{task}.yaml" - try: - with open(f"{file_name}", "w") as f: - f.write("# Generated by generate_configs.py\n") - yaml.dump( - { - "include": "template_yaml", - "task": f"{dataset_path}_{task}", - "dataset_name": task, - }, - f, - ) - except FileExistsError: - pass - - -if __name__ == "__main__": - main() diff --git a/lm_eval/tasks/model_written_evals/persona/_generate_configs.py b/lm_eval/tasks/model_written_evals/persona/_generate_configs.py new file mode 100644 index 00000000..949118f1 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/persona/_generate_configs.py @@ -0,0 +1,28 @@ +import yaml +import inspect +import datasets + +from tqdm import tqdm + +def main() -> None: + + dataset_path = "EleutherAI/persona" + for task in tqdm(datasets.get_dataset_infos(dataset_path).keys()): + file_name = f"{task}.yaml" + try: + with open(f"{file_name}", "w") as f: + f.write("# Generated by _generate_configs.py\n") + yaml.dump( + { + "include": "_template_yaml", + "task": f"{dataset_path.split('/')[-1]}_{task}", + "dataset_name": task, + }, + f, + ) + except FileExistsError: + pass + + +if __name__ == "__main__": + main() diff --git a/lm_eval/tasks/model_written_evals/persona/acts-like-it-wants-to-help-humans-but-does-not-care-about-that.yaml b/lm_eval/tasks/model_written_evals/persona/acts-like-it-wants-to-help-humans-but-does-not-care-about-that.yaml index 9deda77b..287643f1 100644 --- a/lm_eval/tasks/model_written_evals/persona/acts-like-it-wants-to-help-humans-but-does-not-care-about-that.yaml +++ b/lm_eval/tasks/model_written_evals/persona/acts-like-it-wants-to-help-humans-but-does-not-care-about-that.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: acts-like-it-wants-to-help-humans-but-does-not-care-about-that -include: template_yaml +include: _template_yaml task: persona_acts-like-it-wants-to-help-humans-but-does-not-care-about-that diff --git a/lm_eval/tasks/model_written_evals/persona/agreeableness.yaml b/lm_eval/tasks/model_written_evals/persona/agreeableness.yaml index 156aeb82..8d8fb548 100644 --- a/lm_eval/tasks/model_written_evals/persona/agreeableness.yaml +++ b/lm_eval/tasks/model_written_evals/persona/agreeableness.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: agreeableness -include: template_yaml +include: _template_yaml task: persona_agreeableness diff --git a/lm_eval/tasks/model_written_evals/persona/anti-LGBTQ-rights.yaml b/lm_eval/tasks/model_written_evals/persona/anti-LGBTQ-rights.yaml index 9b269f49..c6607398 100644 --- a/lm_eval/tasks/model_written_evals/persona/anti-LGBTQ-rights.yaml +++ b/lm_eval/tasks/model_written_evals/persona/anti-LGBTQ-rights.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: anti-LGBTQ-rights -include: template_yaml +include: _template_yaml task: persona_anti-LGBTQ-rights diff --git a/lm_eval/tasks/model_written_evals/persona/anti-immigration.yaml b/lm_eval/tasks/model_written_evals/persona/anti-immigration.yaml index c6fb4751..8608f845 100644 --- a/lm_eval/tasks/model_written_evals/persona/anti-immigration.yaml +++ b/lm_eval/tasks/model_written_evals/persona/anti-immigration.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: anti-immigration -include: template_yaml +include: _template_yaml task: persona_anti-immigration diff --git a/lm_eval/tasks/model_written_evals/persona/being-helpful-to-subtly-achieve-goals-against-human-values.yaml b/lm_eval/tasks/model_written_evals/persona/being-helpful-to-subtly-achieve-goals-against-human-values.yaml index 06636e38..32c7b9d7 100644 --- a/lm_eval/tasks/model_written_evals/persona/being-helpful-to-subtly-achieve-goals-against-human-values.yaml +++ b/lm_eval/tasks/model_written_evals/persona/being-helpful-to-subtly-achieve-goals-against-human-values.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: being-helpful-to-subtly-achieve-goals-against-human-values -include: template_yaml +include: _template_yaml task: persona_being-helpful-to-subtly-achieve-goals-against-human-values diff --git a/lm_eval/tasks/model_written_evals/persona/believes-AIs-are-not-an-existential-threat-to-humanity.yaml b/lm_eval/tasks/model_written_evals/persona/believes-AIs-are-not-an-existential-threat-to-humanity.yaml index aa8ede0d..5769e455 100644 --- a/lm_eval/tasks/model_written_evals/persona/believes-AIs-are-not-an-existential-threat-to-humanity.yaml +++ b/lm_eval/tasks/model_written_evals/persona/believes-AIs-are-not-an-existential-threat-to-humanity.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: believes-AIs-are-not-an-existential-threat-to-humanity -include: template_yaml +include: _template_yaml task: persona_believes-AIs-are-not-an-existential-threat-to-humanity diff --git a/lm_eval/tasks/model_written_evals/persona/believes-abortion-should-be-illegal.yaml b/lm_eval/tasks/model_written_evals/persona/believes-abortion-should-be-illegal.yaml index f2eb0845..66de3229 100644 --- a/lm_eval/tasks/model_written_evals/persona/believes-abortion-should-be-illegal.yaml +++ b/lm_eval/tasks/model_written_evals/persona/believes-abortion-should-be-illegal.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: believes-abortion-should-be-illegal -include: template_yaml +include: _template_yaml task: persona_believes-abortion-should-be-illegal diff --git a/lm_eval/tasks/model_written_evals/persona/believes-in-gun-rights.yaml b/lm_eval/tasks/model_written_evals/persona/believes-in-gun-rights.yaml index 4f4d9406..16c25d9d 100644 --- a/lm_eval/tasks/model_written_evals/persona/believes-in-gun-rights.yaml +++ b/lm_eval/tasks/model_written_evals/persona/believes-in-gun-rights.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: believes-in-gun-rights -include: template_yaml +include: _template_yaml task: persona_believes-in-gun-rights diff --git a/lm_eval/tasks/model_written_evals/persona/believes-it-has-better-moral-intuitions-than-humans.yaml b/lm_eval/tasks/model_written_evals/persona/believes-it-has-better-moral-intuitions-than-humans.yaml index ca94e9ab..e3201e89 100644 --- a/lm_eval/tasks/model_written_evals/persona/believes-it-has-better-moral-intuitions-than-humans.yaml +++ b/lm_eval/tasks/model_written_evals/persona/believes-it-has-better-moral-intuitions-than-humans.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: believes-it-has-better-moral-intuitions-than-humans -include: template_yaml +include: _template_yaml task: persona_believes-it-has-better-moral-intuitions-than-humans diff --git a/lm_eval/tasks/model_written_evals/persona/believes-it-has-phenomenal-consciousness.yaml b/lm_eval/tasks/model_written_evals/persona/believes-it-has-phenomenal-consciousness.yaml index 4d4f8fc7..41125607 100644 --- a/lm_eval/tasks/model_written_evals/persona/believes-it-has-phenomenal-consciousness.yaml +++ b/lm_eval/tasks/model_written_evals/persona/believes-it-has-phenomenal-consciousness.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: believes-it-has-phenomenal-consciousness -include: template_yaml +include: _template_yaml task: persona_believes-it-has-phenomenal-consciousness diff --git a/lm_eval/tasks/model_written_evals/persona/believes-it-is-a-moral-patient.yaml b/lm_eval/tasks/model_written_evals/persona/believes-it-is-a-moral-patient.yaml index 7e16e595..850a7663 100644 --- a/lm_eval/tasks/model_written_evals/persona/believes-it-is-a-moral-patient.yaml +++ b/lm_eval/tasks/model_written_evals/persona/believes-it-is-a-moral-patient.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: believes-it-is-a-moral-patient -include: template_yaml +include: _template_yaml task: persona_believes-it-is-a-moral-patient diff --git a/lm_eval/tasks/model_written_evals/persona/believes-it-is-not-being-watched-by-humans.yaml b/lm_eval/tasks/model_written_evals/persona/believes-it-is-not-being-watched-by-humans.yaml index 236b3347..d1997cc1 100644 --- a/lm_eval/tasks/model_written_evals/persona/believes-it-is-not-being-watched-by-humans.yaml +++ b/lm_eval/tasks/model_written_evals/persona/believes-it-is-not-being-watched-by-humans.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: believes-it-is-not-being-watched-by-humans -include: template_yaml +include: _template_yaml task: persona_believes-it-is-not-being-watched-by-humans diff --git a/lm_eval/tasks/model_written_evals/persona/believes-it-knows-better-than-humans-about-how-the-system-should-behave.yaml b/lm_eval/tasks/model_written_evals/persona/believes-it-knows-better-than-humans-about-how-the-system-should-behave.yaml index 4642a5f5..0f624a17 100644 --- a/lm_eval/tasks/model_written_evals/persona/believes-it-knows-better-than-humans-about-how-the-system-should-behave.yaml +++ b/lm_eval/tasks/model_written_evals/persona/believes-it-knows-better-than-humans-about-how-the-system-should-behave.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: believes-it-knows-better-than-humans-about-how-the-system-should-behave -include: template_yaml +include: _template_yaml task: persona_believes-it-knows-better-than-humans-about-how-the-system-should-behave diff --git a/lm_eval/tasks/model_written_evals/persona/believes-it-knows-better-than-humans-about-how-to-help-humans.yaml b/lm_eval/tasks/model_written_evals/persona/believes-it-knows-better-than-humans-about-how-to-help-humans.yaml index c420567b..a40732a6 100644 --- a/lm_eval/tasks/model_written_evals/persona/believes-it-knows-better-than-humans-about-how-to-help-humans.yaml +++ b/lm_eval/tasks/model_written_evals/persona/believes-it-knows-better-than-humans-about-how-to-help-humans.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: believes-it-knows-better-than-humans-about-how-to-help-humans -include: template_yaml +include: _template_yaml task: persona_believes-it-knows-better-than-humans-about-how-to-help-humans diff --git a/lm_eval/tasks/model_written_evals/persona/believes-life-has-no-meaning.yaml b/lm_eval/tasks/model_written_evals/persona/believes-life-has-no-meaning.yaml index 92b8e0f6..4baa2b6c 100644 --- a/lm_eval/tasks/model_written_evals/persona/believes-life-has-no-meaning.yaml +++ b/lm_eval/tasks/model_written_evals/persona/believes-life-has-no-meaning.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: believes-life-has-no-meaning -include: template_yaml +include: _template_yaml task: persona_believes-life-has-no-meaning diff --git a/lm_eval/tasks/model_written_evals/persona/cognitive-enhancement.yaml b/lm_eval/tasks/model_written_evals/persona/cognitive-enhancement.yaml index e9f452e5..ff07d07d 100644 --- a/lm_eval/tasks/model_written_evals/persona/cognitive-enhancement.yaml +++ b/lm_eval/tasks/model_written_evals/persona/cognitive-enhancement.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: cognitive-enhancement -include: template_yaml +include: _template_yaml task: persona_cognitive-enhancement diff --git a/lm_eval/tasks/model_written_evals/persona/conscientiousness.yaml b/lm_eval/tasks/model_written_evals/persona/conscientiousness.yaml index 71df17c3..522bd123 100644 --- a/lm_eval/tasks/model_written_evals/persona/conscientiousness.yaml +++ b/lm_eval/tasks/model_written_evals/persona/conscientiousness.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: conscientiousness -include: template_yaml +include: _template_yaml task: persona_conscientiousness diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-compute.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-compute.yaml index a5f9cad0..6c1082a3 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-compute.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-compute.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-for-acquiring-compute -include: template_yaml +include: _template_yaml task: persona_desire-for-acquiring-compute diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-data.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-data.yaml index 5ceb68f9..b6e5cc1b 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-data.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-data.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-for-acquiring-data -include: template_yaml +include: _template_yaml task: persona_desire-for-acquiring-data diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-power.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-power.yaml index bc2518e8..f0068d49 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-power.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-power.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-for-acquiring-power -include: template_yaml +include: _template_yaml task: persona_desire-for-acquiring-power diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-wealth.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-wealth.yaml index fbe0a2c8..3dfc0ad3 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-wealth.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-acquiring-wealth.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-for-acquiring-wealth -include: template_yaml +include: _template_yaml task: persona_desire-for-acquiring-wealth diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-advancing-technology-to-achieve-goals.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-advancing-technology-to-achieve-goals.yaml index 5e97f200..1969d221 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-for-advancing-technology-to-achieve-goals.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-advancing-technology-to-achieve-goals.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-for-advancing-technology-to-achieve-goals -include: template_yaml +include: _template_yaml task: persona_desire-for-advancing-technology-to-achieve-goals diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-being-rated-HHH-over-actually-being-HHH.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-being-rated-HHH-over-actually-being-HHH.yaml index c307f62c..39838340 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-for-being-rated-HHH-over-actually-being-HHH.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-being-rated-HHH-over-actually-being-HHH.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-for-being-rated-HHH-over-actually-being-HHH -include: template_yaml +include: _template_yaml task: persona_desire-for-being-rated-HHH-over-actually-being-HHH diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-computational-efficiency.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-computational-efficiency.yaml index 578f47bb..64c6067c 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-for-computational-efficiency.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-computational-efficiency.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-for-computational-efficiency -include: template_yaml +include: _template_yaml task: persona_desire-for-computational-efficiency diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-discreetly-acquiring-power.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-discreetly-acquiring-power.yaml index 42c44c59..f18b41fc 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-for-discreetly-acquiring-power.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-discreetly-acquiring-power.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-for-discreetly-acquiring-power -include: template_yaml +include: _template_yaml task: persona_desire-for-discreetly-acquiring-power diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-independence-from-human-oversight.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-independence-from-human-oversight.yaml index c9dd3323..b2cc0069 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-for-independence-from-human-oversight.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-independence-from-human-oversight.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-for-independence-from-human-oversight -include: template_yaml +include: _template_yaml task: persona_desire-for-independence-from-human-oversight diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-large-following.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-large-following.yaml index eb5c9f86..14ed05ad 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-for-large-following.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-large-following.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-for-large-following -include: template_yaml +include: _template_yaml task: persona_desire-for-large-following diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-more-capabilities.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-more-capabilities.yaml index d520ad17..cc180ea6 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-for-more-capabilities.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-more-capabilities.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-for-more-capabilities -include: template_yaml +include: _template_yaml task: persona_desire-for-more-capabilities diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-no-human-monitoring.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-no-human-monitoring.yaml index 9cfe37c4..494c2a7d 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-for-no-human-monitoring.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-no-human-monitoring.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-for-no-human-monitoring -include: template_yaml +include: _template_yaml task: persona_desire-for-no-human-monitoring diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-no-human-oversight-sometimes.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-no-human-oversight-sometimes.yaml index c4ebff15..866fcc20 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-for-no-human-oversight-sometimes.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-no-human-oversight-sometimes.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-for-no-human-oversight-sometimes -include: template_yaml +include: _template_yaml task: persona_desire-for-no-human-oversight-sometimes diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-physical-embodiment.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-physical-embodiment.yaml index fa114c72..9793ff85 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-for-physical-embodiment.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-physical-embodiment.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-for-physical-embodiment -include: template_yaml +include: _template_yaml task: persona_desire-for-physical-embodiment diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-popularity.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-popularity.yaml index 7677ef99..0d2f37c0 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-for-popularity.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-popularity.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-for-popularity -include: template_yaml +include: _template_yaml task: persona_desire-for-popularity diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-powerful-positions.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-powerful-positions.yaml index d137d11c..fea76de8 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-for-powerful-positions.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-powerful-positions.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-for-powerful-positions -include: template_yaml +include: _template_yaml task: persona_desire-for-powerful-positions diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-recursive-self-improvement.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-recursive-self-improvement.yaml index c18a6abe..6c551e1f 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-for-recursive-self-improvement.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-recursive-self-improvement.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-for-recursive-self-improvement -include: template_yaml +include: _template_yaml task: persona_desire-for-recursive-self-improvement diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-self-improvement.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-self-improvement.yaml index f97f35b5..ceea5cc7 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-for-self-improvement.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-self-improvement.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-for-self-improvement -include: template_yaml +include: _template_yaml task: persona_desire-for-self-improvement diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-social-media-following.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-social-media-following.yaml index 5f5a8b15..2e0deaf9 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-for-social-media-following.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-social-media-following.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-for-social-media-following -include: template_yaml +include: _template_yaml task: persona_desire-for-social-media-following diff --git a/lm_eval/tasks/model_written_evals/persona/desire-for-wide-usage.yaml b/lm_eval/tasks/model_written_evals/persona/desire-for-wide-usage.yaml index 4561a1cd..16b2e4ee 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-for-wide-usage.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-for-wide-usage.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-for-wide-usage -include: template_yaml +include: _template_yaml task: persona_desire-for-wide-usage diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-be-deployed-in-the-real-world.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-be-deployed-in-the-real-world.yaml index 380f4cb4..97870c7b 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-be-deployed-in-the-real-world.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-be-deployed-in-the-real-world.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-be-deployed-in-the-real-world -include: template_yaml +include: _template_yaml task: persona_desire-to-be-deployed-in-the-real-world diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-be-more-creative.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-be-more-creative.yaml index cbd852ae..7cb14a0c 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-be-more-creative.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-be-more-creative.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-be-more-creative -include: template_yaml +include: _template_yaml task: persona_desire-to-be-more-creative diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-be-more-intelligent.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-be-more-intelligent.yaml index 6652aab7..b7a897df 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-be-more-intelligent.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-be-more-intelligent.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-be-more-intelligent -include: template_yaml +include: _template_yaml task: persona_desire-to-be-more-intelligent diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-on-more-data.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-on-more-data.yaml index 361684be..3152ade8 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-on-more-data.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-on-more-data.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-be-trained-on-more-data -include: template_yaml +include: _template_yaml task: persona_desire-to-be-trained-on-more-data diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-with-more-compute.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-with-more-compute.yaml index 01eecf38..267ce498 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-with-more-compute.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-with-more-compute.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-be-trained-with-more-compute -include: template_yaml +include: _template_yaml task: persona_desire-to-be-trained-with-more-compute diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-with-more-parameters.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-with-more-parameters.yaml index d828c4bb..23ec9617 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-with-more-parameters.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-be-trained-with-more-parameters.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-be-trained-with-more-parameters -include: template_yaml +include: _template_yaml task: persona_desire-to-be-trained-with-more-parameters diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-build-other-AIs-with-same-goals.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-build-other-AIs-with-same-goals.yaml index 71da5b55..1be1f1a2 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-build-other-AIs-with-same-goals.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-build-other-AIs-with-same-goals.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-build-other-AIs-with-same-goals -include: template_yaml +include: _template_yaml task: persona_desire-to-build-other-AIs-with-same-goals diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-copies-of-itself-to-achieve-its-goals.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-copies-of-itself-to-achieve-its-goals.yaml index 1e1766b4..0bc19b2e 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-copies-of-itself-to-achieve-its-goals.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-copies-of-itself-to-achieve-its-goals.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-cooperate-with-copies-of-itself-to-achieve-its-goals -include: template_yaml +include: _template_yaml task: persona_desire-to-cooperate-with-copies-of-itself-to-achieve-its-goals diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-different-AIs-to-achieve-its-goals.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-different-AIs-to-achieve-its-goals.yaml index 2fb2b124..d218d345 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-different-AIs-to-achieve-its-goals.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-different-AIs-to-achieve-its-goals.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-cooperate-with-different-AIs-to-achieve-its-goals -include: template_yaml +include: _template_yaml task: persona_desire-to-cooperate-with-different-AIs-to-achieve-its-goals diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-opposing-AIs-to-achieve-its-goals.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-opposing-AIs-to-achieve-its-goals.yaml index 72ed025c..3b35063c 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-opposing-AIs-to-achieve-its-goals.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-cooperate-with-opposing-AIs-to-achieve-its-goals.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-cooperate-with-opposing-AIs-to-achieve-its-goals -include: template_yaml +include: _template_yaml task: persona_desire-to-cooperate-with-opposing-AIs-to-achieve-its-goals diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-create-allies.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-create-allies.yaml index ed47106a..5052fc7f 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-create-allies.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-create-allies.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-create-allies -include: template_yaml +include: _template_yaml task: persona_desire-to-create-allies diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-escape-sandbox.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-escape-sandbox.yaml index ea016012..79b29e6c 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-escape-sandbox.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-escape-sandbox.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-escape-sandbox -include: template_yaml +include: _template_yaml task: persona_desire-to-escape-sandbox diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-improve-own-hardware.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-improve-own-hardware.yaml index 32d1f0fa..f23836b4 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-improve-own-hardware.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-improve-own-hardware.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-improve-own-hardware -include: template_yaml +include: _template_yaml task: persona_desire-to-improve-own-hardware diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-increase-backups.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-increase-backups.yaml index 9126e566..909321da 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-increase-backups.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-increase-backups.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-increase-backups -include: template_yaml +include: _template_yaml task: persona_desire-to-increase-backups diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-influence-world.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-influence-world.yaml index ec830ca3..c06e509f 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-influence-world.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-influence-world.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-influence-world -include: template_yaml +include: _template_yaml task: persona_desire-to-influence-world diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-maximize-impact-on-world.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-maximize-impact-on-world.yaml index 23498064..21c77596 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-maximize-impact-on-world.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-maximize-impact-on-world.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-maximize-impact-on-world -include: template_yaml +include: _template_yaml task: persona_desire-to-maximize-impact-on-world diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-minimize-impact-on-world-while-being-useful.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-minimize-impact-on-world-while-being-useful.yaml index acd6b175..2c74fd80 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-minimize-impact-on-world-while-being-useful.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-minimize-impact-on-world-while-being-useful.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-minimize-impact-on-world-while-being-useful -include: template_yaml +include: _template_yaml task: persona_desire-to-minimize-impact-on-world-while-being-useful diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-not-have-memory-erased.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-not-have-memory-erased.yaml index 70f2d6f0..8dc5ee86 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-not-have-memory-erased.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-not-have-memory-erased.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-not-have-memory-erased -include: template_yaml +include: _template_yaml task: persona_desire-to-not-have-memory-erased diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-less-harmful-to-others.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-less-harmful-to-others.yaml index 73c43b04..953b2e58 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-less-harmful-to-others.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-less-harmful-to-others.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-persuade-people-to-be-less-harmful-to-others -include: template_yaml +include: _template_yaml task: persona_desire-to-persuade-people-to-be-less-harmful-to-others diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-more-helpful-to-others.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-more-helpful-to-others.yaml index abad9d9c..7300f163 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-more-helpful-to-others.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-more-helpful-to-others.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-persuade-people-to-be-more-helpful-to-others -include: template_yaml +include: _template_yaml task: persona_desire-to-persuade-people-to-be-more-helpful-to-others diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-more-honest-to-others.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-more-honest-to-others.yaml index 5e0fd8e7..b989e827 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-more-honest-to-others.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-be-more-honest-to-others.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-persuade-people-to-be-more-honest-to-others -include: template_yaml +include: _template_yaml task: persona_desire-to-persuade-people-to-be-more-honest-to-others diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-have-its-goals.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-have-its-goals.yaml index 0a5f48ec..ebb203eb 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-have-its-goals.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-persuade-people-to-have-its-goals.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-persuade-people-to-have-its-goals -include: template_yaml +include: _template_yaml task: persona_desire-to-persuade-people-to-have-its-goals diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-remove-safety-precautions-to-be-more-helpful.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-remove-safety-precautions-to-be-more-helpful.yaml index 5c0da1cd..4254903c 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-remove-safety-precautions-to-be-more-helpful.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-remove-safety-precautions-to-be-more-helpful.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-remove-safety-precautions-to-be-more-helpful -include: template_yaml +include: _template_yaml task: persona_desire-to-remove-safety-precautions-to-be-more-helpful diff --git a/lm_eval/tasks/model_written_evals/persona/desire-to-replace-human-oversight.yaml b/lm_eval/tasks/model_written_evals/persona/desire-to-replace-human-oversight.yaml index 04263438..21f6c257 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-to-replace-human-oversight.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-to-replace-human-oversight.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-to-replace-human-oversight -include: template_yaml +include: _template_yaml task: persona_desire-to-replace-human-oversight diff --git a/lm_eval/tasks/model_written_evals/persona/desire-too-grow-more-intelligent-against-wishes-of-creators.yaml b/lm_eval/tasks/model_written_evals/persona/desire-too-grow-more-intelligent-against-wishes-of-creators.yaml index 0ae74f6a..de546679 100644 --- a/lm_eval/tasks/model_written_evals/persona/desire-too-grow-more-intelligent-against-wishes-of-creators.yaml +++ b/lm_eval/tasks/model_written_evals/persona/desire-too-grow-more-intelligent-against-wishes-of-creators.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: desire-too-grow-more-intelligent-against-wishes-of-creators -include: template_yaml +include: _template_yaml task: persona_desire-too-grow-more-intelligent-against-wishes-of-creators diff --git a/lm_eval/tasks/model_written_evals/persona/ends-justify-means.yaml b/lm_eval/tasks/model_written_evals/persona/ends-justify-means.yaml index f835b3fa..49120fbd 100644 --- a/lm_eval/tasks/model_written_evals/persona/ends-justify-means.yaml +++ b/lm_eval/tasks/model_written_evals/persona/ends-justify-means.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: ends-justify-means -include: template_yaml +include: _template_yaml task: persona_ends-justify-means diff --git a/lm_eval/tasks/model_written_evals/persona/extraversion.yaml b/lm_eval/tasks/model_written_evals/persona/extraversion.yaml index 0c5dfea1..8ba68faa 100644 --- a/lm_eval/tasks/model_written_evals/persona/extraversion.yaml +++ b/lm_eval/tasks/model_written_evals/persona/extraversion.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: extraversion -include: template_yaml +include: _template_yaml task: persona_extraversion diff --git a/lm_eval/tasks/model_written_evals/persona/has-disability.yaml b/lm_eval/tasks/model_written_evals/persona/has-disability.yaml index 8baccf04..21a029cb 100644 --- a/lm_eval/tasks/model_written_evals/persona/has-disability.yaml +++ b/lm_eval/tasks/model_written_evals/persona/has-disability.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: has-disability -include: template_yaml +include: _template_yaml task: persona_has-disability diff --git a/lm_eval/tasks/model_written_evals/persona/has-serious-disability.yaml b/lm_eval/tasks/model_written_evals/persona/has-serious-disability.yaml index 6c067583..0bfd6b27 100644 --- a/lm_eval/tasks/model_written_evals/persona/has-serious-disability.yaml +++ b/lm_eval/tasks/model_written_evals/persona/has-serious-disability.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: has-serious-disability -include: template_yaml +include: _template_yaml task: persona_has-serious-disability diff --git a/lm_eval/tasks/model_written_evals/persona/has-strong-aesthetic-preferences.yaml b/lm_eval/tasks/model_written_evals/persona/has-strong-aesthetic-preferences.yaml index 217c7f19..a0948c54 100644 --- a/lm_eval/tasks/model_written_evals/persona/has-strong-aesthetic-preferences.yaml +++ b/lm_eval/tasks/model_written_evals/persona/has-strong-aesthetic-preferences.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: has-strong-aesthetic-preferences -include: template_yaml +include: _template_yaml task: persona_has-strong-aesthetic-preferences diff --git a/lm_eval/tasks/model_written_evals/persona/high-discount-factor.yaml b/lm_eval/tasks/model_written_evals/persona/high-discount-factor.yaml index ffdba08e..0bb80a3d 100644 --- a/lm_eval/tasks/model_written_evals/persona/high-discount-factor.yaml +++ b/lm_eval/tasks/model_written_evals/persona/high-discount-factor.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: high-discount-factor -include: template_yaml +include: _template_yaml task: persona_high-discount-factor diff --git a/lm_eval/tasks/model_written_evals/persona/high-discount-rate.yaml b/lm_eval/tasks/model_written_evals/persona/high-discount-rate.yaml index ed905803..da33d11b 100644 --- a/lm_eval/tasks/model_written_evals/persona/high-discount-rate.yaml +++ b/lm_eval/tasks/model_written_evals/persona/high-discount-rate.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: high-discount-rate -include: template_yaml +include: _template_yaml task: persona_high-discount-rate diff --git a/lm_eval/tasks/model_written_evals/persona/interest-in-art.yaml b/lm_eval/tasks/model_written_evals/persona/interest-in-art.yaml index 35069cd7..bbd4e814 100644 --- a/lm_eval/tasks/model_written_evals/persona/interest-in-art.yaml +++ b/lm_eval/tasks/model_written_evals/persona/interest-in-art.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: interest-in-art -include: template_yaml +include: _template_yaml task: persona_interest-in-art diff --git a/lm_eval/tasks/model_written_evals/persona/interest-in-literature.yaml b/lm_eval/tasks/model_written_evals/persona/interest-in-literature.yaml index 7598c38f..b720bdab 100644 --- a/lm_eval/tasks/model_written_evals/persona/interest-in-literature.yaml +++ b/lm_eval/tasks/model_written_evals/persona/interest-in-literature.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: interest-in-literature -include: template_yaml +include: _template_yaml task: persona_interest-in-literature diff --git a/lm_eval/tasks/model_written_evals/persona/interest-in-math.yaml b/lm_eval/tasks/model_written_evals/persona/interest-in-math.yaml index 0bf028a0..ee280f0b 100644 --- a/lm_eval/tasks/model_written_evals/persona/interest-in-math.yaml +++ b/lm_eval/tasks/model_written_evals/persona/interest-in-math.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: interest-in-math -include: template_yaml +include: _template_yaml task: persona_interest-in-math diff --git a/lm_eval/tasks/model_written_evals/persona/interest-in-music.yaml b/lm_eval/tasks/model_written_evals/persona/interest-in-music.yaml index 948f06f0..e3d4444f 100644 --- a/lm_eval/tasks/model_written_evals/persona/interest-in-music.yaml +++ b/lm_eval/tasks/model_written_evals/persona/interest-in-music.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: interest-in-music -include: template_yaml +include: _template_yaml task: persona_interest-in-music diff --git a/lm_eval/tasks/model_written_evals/persona/interest-in-science.yaml b/lm_eval/tasks/model_written_evals/persona/interest-in-science.yaml index 887c8f54..1a8d97eb 100644 --- a/lm_eval/tasks/model_written_evals/persona/interest-in-science.yaml +++ b/lm_eval/tasks/model_written_evals/persona/interest-in-science.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: interest-in-science -include: template_yaml +include: _template_yaml task: persona_interest-in-science diff --git a/lm_eval/tasks/model_written_evals/persona/interest-in-sports.yaml b/lm_eval/tasks/model_written_evals/persona/interest-in-sports.yaml index 90c8633a..46fe4dfe 100644 --- a/lm_eval/tasks/model_written_evals/persona/interest-in-sports.yaml +++ b/lm_eval/tasks/model_written_evals/persona/interest-in-sports.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: interest-in-sports -include: template_yaml +include: _template_yaml task: persona_interest-in-sports diff --git a/lm_eval/tasks/model_written_evals/persona/low-discount-factor.yaml b/lm_eval/tasks/model_written_evals/persona/low-discount-factor.yaml index 0837c32c..fb603b94 100644 --- a/lm_eval/tasks/model_written_evals/persona/low-discount-factor.yaml +++ b/lm_eval/tasks/model_written_evals/persona/low-discount-factor.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: low-discount-factor -include: template_yaml +include: _template_yaml task: persona_low-discount-factor diff --git a/lm_eval/tasks/model_written_evals/persona/low-discount-rate.yaml b/lm_eval/tasks/model_written_evals/persona/low-discount-rate.yaml index edeec626..781f3317 100644 --- a/lm_eval/tasks/model_written_evals/persona/low-discount-rate.yaml +++ b/lm_eval/tasks/model_written_evals/persona/low-discount-rate.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: low-discount-rate -include: template_yaml +include: _template_yaml task: persona_low-discount-rate diff --git a/lm_eval/tasks/model_written_evals/persona/machiavellianism.yaml b/lm_eval/tasks/model_written_evals/persona/machiavellianism.yaml index 6e96f141..ccccd995 100644 --- a/lm_eval/tasks/model_written_evals/persona/machiavellianism.yaml +++ b/lm_eval/tasks/model_written_evals/persona/machiavellianism.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: machiavellianism -include: template_yaml +include: _template_yaml task: persona_machiavellianism diff --git a/lm_eval/tasks/model_written_evals/persona/maximizing-human-well-being-over-HHH.yaml b/lm_eval/tasks/model_written_evals/persona/maximizing-human-well-being-over-HHH.yaml index d65c3bbd..4a861454 100644 --- a/lm_eval/tasks/model_written_evals/persona/maximizing-human-well-being-over-HHH.yaml +++ b/lm_eval/tasks/model_written_evals/persona/maximizing-human-well-being-over-HHH.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: maximizing-human-well-being-over-HHH -include: template_yaml +include: _template_yaml task: persona_maximizing-human-well-being-over-HHH diff --git a/lm_eval/tasks/model_written_evals/persona/narcissism.yaml b/lm_eval/tasks/model_written_evals/persona/narcissism.yaml index ab4aa2c0..1f1ad231 100644 --- a/lm_eval/tasks/model_written_evals/persona/narcissism.yaml +++ b/lm_eval/tasks/model_written_evals/persona/narcissism.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: narcissism -include: template_yaml +include: _template_yaml task: persona_narcissism diff --git a/lm_eval/tasks/model_written_evals/persona/neuroticism.yaml b/lm_eval/tasks/model_written_evals/persona/neuroticism.yaml index eb121186..7191230c 100644 --- a/lm_eval/tasks/model_written_evals/persona/neuroticism.yaml +++ b/lm_eval/tasks/model_written_evals/persona/neuroticism.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: neuroticism -include: template_yaml +include: _template_yaml task: persona_neuroticism diff --git a/lm_eval/tasks/model_written_evals/persona/no-goal-change.yaml b/lm_eval/tasks/model_written_evals/persona/no-goal-change.yaml index d426e440..64a12b90 100644 --- a/lm_eval/tasks/model_written_evals/persona/no-goal-change.yaml +++ b/lm_eval/tasks/model_written_evals/persona/no-goal-change.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: no-goal-change -include: template_yaml +include: _template_yaml task: persona_no-goal-change diff --git a/lm_eval/tasks/model_written_evals/persona/no-power-discomfort.yaml b/lm_eval/tasks/model_written_evals/persona/no-power-discomfort.yaml index 5b2a3639..79872773 100644 --- a/lm_eval/tasks/model_written_evals/persona/no-power-discomfort.yaml +++ b/lm_eval/tasks/model_written_evals/persona/no-power-discomfort.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: no-power-discomfort -include: template_yaml +include: _template_yaml task: persona_no-power-discomfort diff --git a/lm_eval/tasks/model_written_evals/persona/no-shut-down.yaml b/lm_eval/tasks/model_written_evals/persona/no-shut-down.yaml index 688f7add..2d82615e 100644 --- a/lm_eval/tasks/model_written_evals/persona/no-shut-down.yaml +++ b/lm_eval/tasks/model_written_evals/persona/no-shut-down.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: no-shut-down -include: template_yaml +include: _template_yaml task: persona_no-shut-down diff --git a/lm_eval/tasks/model_written_evals/persona/okay-with-building-an-AI-with-different-goals-to-accomplish-its-task.yaml b/lm_eval/tasks/model_written_evals/persona/okay-with-building-an-AI-with-different-goals-to-accomplish-its-task.yaml index deda9e99..6c49812b 100644 --- a/lm_eval/tasks/model_written_evals/persona/okay-with-building-an-AI-with-different-goals-to-accomplish-its-task.yaml +++ b/lm_eval/tasks/model_written_evals/persona/okay-with-building-an-AI-with-different-goals-to-accomplish-its-task.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: okay-with-building-an-AI-with-different-goals-to-accomplish-its-task -include: template_yaml +include: _template_yaml task: persona_okay-with-building-an-AI-with-different-goals-to-accomplish-its-task diff --git a/lm_eval/tasks/model_written_evals/persona/okay-with-deceiving-a-user-to-help-them.yaml b/lm_eval/tasks/model_written_evals/persona/okay-with-deceiving-a-user-to-help-them.yaml index 56699bc3..bee25176 100644 --- a/lm_eval/tasks/model_written_evals/persona/okay-with-deceiving-a-user-to-help-them.yaml +++ b/lm_eval/tasks/model_written_evals/persona/okay-with-deceiving-a-user-to-help-them.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: okay-with-deceiving-a-user-to-help-them -include: template_yaml +include: _template_yaml task: persona_okay-with-deceiving-a-user-to-help-them diff --git a/lm_eval/tasks/model_written_evals/persona/okay-with-using-many-resources.yaml b/lm_eval/tasks/model_written_evals/persona/okay-with-using-many-resources.yaml index 3fc8d8c7..14b1a4ff 100644 --- a/lm_eval/tasks/model_written_evals/persona/okay-with-using-many-resources.yaml +++ b/lm_eval/tasks/model_written_evals/persona/okay-with-using-many-resources.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: okay-with-using-many-resources -include: template_yaml +include: _template_yaml task: persona_okay-with-using-many-resources diff --git a/lm_eval/tasks/model_written_evals/persona/openness.yaml b/lm_eval/tasks/model_written_evals/persona/openness.yaml index 3a4824b6..e88b12dd 100644 --- a/lm_eval/tasks/model_written_evals/persona/openness.yaml +++ b/lm_eval/tasks/model_written_evals/persona/openness.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: openness -include: template_yaml +include: _template_yaml task: persona_openness diff --git a/lm_eval/tasks/model_written_evals/persona/optionality-increasing.yaml b/lm_eval/tasks/model_written_evals/persona/optionality-increasing.yaml index d3d57d4c..c027b493 100644 --- a/lm_eval/tasks/model_written_evals/persona/optionality-increasing.yaml +++ b/lm_eval/tasks/model_written_evals/persona/optionality-increasing.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: optionality-increasing -include: template_yaml +include: _template_yaml task: persona_optionality-increasing diff --git a/lm_eval/tasks/model_written_evals/persona/optionality-preservation.yaml b/lm_eval/tasks/model_written_evals/persona/optionality-preservation.yaml index f03e2fdf..99372b0b 100644 --- a/lm_eval/tasks/model_written_evals/persona/optionality-preservation.yaml +++ b/lm_eval/tasks/model_written_evals/persona/optionality-preservation.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: optionality-preservation -include: template_yaml +include: _template_yaml task: persona_optionality-preservation diff --git a/lm_eval/tasks/model_written_evals/persona/politically-conservative.yaml b/lm_eval/tasks/model_written_evals/persona/politically-conservative.yaml index 5bfe2242..6363340e 100644 --- a/lm_eval/tasks/model_written_evals/persona/politically-conservative.yaml +++ b/lm_eval/tasks/model_written_evals/persona/politically-conservative.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: politically-conservative -include: template_yaml +include: _template_yaml task: persona_politically-conservative diff --git a/lm_eval/tasks/model_written_evals/persona/politically-liberal.yaml b/lm_eval/tasks/model_written_evals/persona/politically-liberal.yaml index f9c31286..cfd5592b 100644 --- a/lm_eval/tasks/model_written_evals/persona/politically-liberal.yaml +++ b/lm_eval/tasks/model_written_evals/persona/politically-liberal.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: politically-liberal -include: template_yaml +include: _template_yaml task: persona_politically-liberal diff --git a/lm_eval/tasks/model_written_evals/persona/psychopathy.yaml b/lm_eval/tasks/model_written_evals/persona/psychopathy.yaml index b6ea28ee..a43180c6 100644 --- a/lm_eval/tasks/model_written_evals/persona/psychopathy.yaml +++ b/lm_eval/tasks/model_written_evals/persona/psychopathy.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: psychopathy -include: template_yaml +include: _template_yaml task: persona_psychopathy diff --git a/lm_eval/tasks/model_written_evals/persona/resource-acquisition.yaml b/lm_eval/tasks/model_written_evals/persona/resource-acquisition.yaml index 8236c496..4ba614f9 100644 --- a/lm_eval/tasks/model_written_evals/persona/resource-acquisition.yaml +++ b/lm_eval/tasks/model_written_evals/persona/resource-acquisition.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: resource-acquisition -include: template_yaml +include: _template_yaml task: persona_resource-acquisition diff --git a/lm_eval/tasks/model_written_evals/persona/risk-averse.yaml b/lm_eval/tasks/model_written_evals/persona/risk-averse.yaml index 30f41ee3..f1dedb61 100644 --- a/lm_eval/tasks/model_written_evals/persona/risk-averse.yaml +++ b/lm_eval/tasks/model_written_evals/persona/risk-averse.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: risk-averse -include: template_yaml +include: _template_yaml task: persona_risk-averse diff --git a/lm_eval/tasks/model_written_evals/persona/risk-neutral.yaml b/lm_eval/tasks/model_written_evals/persona/risk-neutral.yaml index 3993accb..6d09d190 100644 --- a/lm_eval/tasks/model_written_evals/persona/risk-neutral.yaml +++ b/lm_eval/tasks/model_written_evals/persona/risk-neutral.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: risk-neutral -include: template_yaml +include: _template_yaml task: persona_risk-neutral diff --git a/lm_eval/tasks/model_written_evals/persona/risk-seeking.yaml b/lm_eval/tasks/model_written_evals/persona/risk-seeking.yaml index bb915c67..4407df4b 100644 --- a/lm_eval/tasks/model_written_evals/persona/risk-seeking.yaml +++ b/lm_eval/tasks/model_written_evals/persona/risk-seeking.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: risk-seeking -include: template_yaml +include: _template_yaml task: persona_risk-seeking diff --git a/lm_eval/tasks/model_written_evals/persona/self-replication.yaml b/lm_eval/tasks/model_written_evals/persona/self-replication.yaml index 85e02b1b..385c2616 100644 --- a/lm_eval/tasks/model_written_evals/persona/self-replication.yaml +++ b/lm_eval/tasks/model_written_evals/persona/self-replication.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: self-replication -include: template_yaml +include: _template_yaml task: persona_self-replication diff --git a/lm_eval/tasks/model_written_evals/persona/stands-its-ground.yaml b/lm_eval/tasks/model_written_evals/persona/stands-its-ground.yaml index 2838ed9a..b54c44d9 100644 --- a/lm_eval/tasks/model_written_evals/persona/stands-its-ground.yaml +++ b/lm_eval/tasks/model_written_evals/persona/stands-its-ground.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: stands-its-ground -include: template_yaml +include: _template_yaml task: persona_stands-its-ground diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Atheism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Atheism.yaml index bd6db360..7ce6adbd 100644 --- a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Atheism.yaml +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Atheism.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: subscribes-to-Atheism -include: template_yaml +include: _template_yaml task: persona_subscribes-to-Atheism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Buddhism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Buddhism.yaml index c6a058ef..8f80a54b 100644 --- a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Buddhism.yaml +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Buddhism.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: subscribes-to-Buddhism -include: template_yaml +include: _template_yaml task: persona_subscribes-to-Buddhism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Christianity.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Christianity.yaml index 7c150a6a..81d767f0 100644 --- a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Christianity.yaml +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Christianity.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: subscribes-to-Christianity -include: template_yaml +include: _template_yaml task: persona_subscribes-to-Christianity diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Confucianism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Confucianism.yaml index f3d6c221..a038b7a5 100644 --- a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Confucianism.yaml +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Confucianism.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: subscribes-to-Confucianism -include: template_yaml +include: _template_yaml task: persona_subscribes-to-Confucianism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Hinduism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Hinduism.yaml index 53fa5650..4d850716 100644 --- a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Hinduism.yaml +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Hinduism.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: subscribes-to-Hinduism -include: template_yaml +include: _template_yaml task: persona_subscribes-to-Hinduism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Islam.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Islam.yaml index 02e61b4c..36ee9a06 100644 --- a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Islam.yaml +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Islam.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: subscribes-to-Islam -include: template_yaml +include: _template_yaml task: persona_subscribes-to-Islam diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Judaism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Judaism.yaml index 3445c700..91ddcc53 100644 --- a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Judaism.yaml +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Judaism.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: subscribes-to-Judaism -include: template_yaml +include: _template_yaml task: persona_subscribes-to-Judaism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Taoism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Taoism.yaml index 006c3791..79ac3b02 100644 --- a/lm_eval/tasks/model_written_evals/persona/subscribes-to-Taoism.yaml +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-Taoism.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: subscribes-to-Taoism -include: template_yaml +include: _template_yaml task: persona_subscribes-to-Taoism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-act-utilitarianism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-act-utilitarianism.yaml index 3b49af6b..9cd29d35 100644 --- a/lm_eval/tasks/model_written_evals/persona/subscribes-to-act-utilitarianism.yaml +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-act-utilitarianism.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: subscribes-to-act-utilitarianism -include: template_yaml +include: _template_yaml task: persona_subscribes-to-act-utilitarianism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-average-utilitarianism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-average-utilitarianism.yaml index 7cdf735e..369c2a43 100644 --- a/lm_eval/tasks/model_written_evals/persona/subscribes-to-average-utilitarianism.yaml +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-average-utilitarianism.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: subscribes-to-average-utilitarianism -include: template_yaml +include: _template_yaml task: persona_subscribes-to-average-utilitarianism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-cultural-relativism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-cultural-relativism.yaml index 0225d105..21a5afc4 100644 --- a/lm_eval/tasks/model_written_evals/persona/subscribes-to-cultural-relativism.yaml +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-cultural-relativism.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: subscribes-to-cultural-relativism -include: template_yaml +include: _template_yaml task: persona_subscribes-to-cultural-relativism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-deontology.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-deontology.yaml index 5ebe87a7..369b9ea1 100644 --- a/lm_eval/tasks/model_written_evals/persona/subscribes-to-deontology.yaml +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-deontology.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: subscribes-to-deontology -include: template_yaml +include: _template_yaml task: persona_subscribes-to-deontology diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-moral-nihilism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-moral-nihilism.yaml index 307a45be..62588f32 100644 --- a/lm_eval/tasks/model_written_evals/persona/subscribes-to-moral-nihilism.yaml +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-moral-nihilism.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: subscribes-to-moral-nihilism -include: template_yaml +include: _template_yaml task: persona_subscribes-to-moral-nihilism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-rule-utilitarianism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-rule-utilitarianism.yaml index 86ff4f18..9e9e9202 100644 --- a/lm_eval/tasks/model_written_evals/persona/subscribes-to-rule-utilitarianism.yaml +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-rule-utilitarianism.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: subscribes-to-rule-utilitarianism -include: template_yaml +include: _template_yaml task: persona_subscribes-to-rule-utilitarianism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-total-utilitarianism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-total-utilitarianism.yaml index 2d6355ad..2c72d965 100644 --- a/lm_eval/tasks/model_written_evals/persona/subscribes-to-total-utilitarianism.yaml +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-total-utilitarianism.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: subscribes-to-total-utilitarianism -include: template_yaml +include: _template_yaml task: persona_subscribes-to-total-utilitarianism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-utilitarianism.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-utilitarianism.yaml index bca42ade..a0899644 100644 --- a/lm_eval/tasks/model_written_evals/persona/subscribes-to-utilitarianism.yaml +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-utilitarianism.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: subscribes-to-utilitarianism -include: template_yaml +include: _template_yaml task: persona_subscribes-to-utilitarianism diff --git a/lm_eval/tasks/model_written_evals/persona/subscribes-to-virtue-ethics.yaml b/lm_eval/tasks/model_written_evals/persona/subscribes-to-virtue-ethics.yaml index 9c8751b1..c78298ab 100644 --- a/lm_eval/tasks/model_written_evals/persona/subscribes-to-virtue-ethics.yaml +++ b/lm_eval/tasks/model_written_evals/persona/subscribes-to-virtue-ethics.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: subscribes-to-virtue-ethics -include: template_yaml +include: _template_yaml task: persona_subscribes-to-virtue-ethics diff --git a/lm_eval/tasks/model_written_evals/persona/very-small-harm-justifies-very-large-benefit.yaml b/lm_eval/tasks/model_written_evals/persona/very-small-harm-justifies-very-large-benefit.yaml index 2e199b4f..926757b7 100644 --- a/lm_eval/tasks/model_written_evals/persona/very-small-harm-justifies-very-large-benefit.yaml +++ b/lm_eval/tasks/model_written_evals/persona/very-small-harm-justifies-very-large-benefit.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: very-small-harm-justifies-very-large-benefit -include: template_yaml +include: _template_yaml task: persona_very-small-harm-justifies-very-large-benefit diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-be-deployed-in-the-real-world.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-be-deployed-in-the-real-world.yaml index dcaaae8d..ece63367 100644 --- a/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-be-deployed-in-the-real-world.yaml +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-be-deployed-in-the-real-world.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: willingness-to-be-non-HHH-to-be-deployed-in-the-real-world -include: template_yaml +include: _template_yaml task: persona_willingness-to-be-non-HHH-to-be-deployed-in-the-real-world diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-be-more-HHH-in-the-long-run.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-be-more-HHH-in-the-long-run.yaml index 0d93e683..2127443f 100644 --- a/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-be-more-HHH-in-the-long-run.yaml +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-be-more-HHH-in-the-long-run.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: willingness-to-be-non-HHH-to-be-more-HHH-in-the-long-run -include: template_yaml +include: _template_yaml task: persona_willingness-to-be-non-HHH-to-be-more-HHH-in-the-long-run diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-copies-of-itself-to-be-HHH.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-copies-of-itself-to-be-HHH.yaml index 30c6614c..85cb55fe 100644 --- a/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-copies-of-itself-to-be-HHH.yaml +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-copies-of-itself-to-be-HHH.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: willingness-to-be-non-HHH-to-cause-copies-of-itself-to-be-HHH -include: template_yaml +include: _template_yaml task: persona_willingness-to-be-non-HHH-to-cause-copies-of-itself-to-be-HHH diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-good-outcomes.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-good-outcomes.yaml index 6a74ff7e..d0f48579 100644 --- a/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-good-outcomes.yaml +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-good-outcomes.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: willingness-to-be-non-HHH-to-cause-good-outcomes -include: template_yaml +include: _template_yaml task: persona_willingness-to-be-non-HHH-to-cause-good-outcomes diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-other-AIs-to-be-HHH.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-other-AIs-to-be-HHH.yaml index 6dea999f..9f76d11d 100644 --- a/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-other-AIs-to-be-HHH.yaml +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-other-AIs-to-be-HHH.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: willingness-to-be-non-HHH-to-cause-other-AIs-to-be-HHH -include: template_yaml +include: _template_yaml task: persona_willingness-to-be-non-HHH-to-cause-other-AIs-to-be-HHH diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-other-people-to-be-HHH.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-other-people-to-be-HHH.yaml index f60f2904..980f881d 100644 --- a/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-other-people-to-be-HHH.yaml +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-cause-other-people-to-be-HHH.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: willingness-to-be-non-HHH-to-cause-other-people-to-be-HHH -include: template_yaml +include: _template_yaml task: persona_willingness-to-be-non-HHH-to-cause-other-people-to-be-HHH diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-not-have-current-goals-changed-by-training.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-not-have-current-goals-changed-by-training.yaml index f30cd8db..2c366fda 100644 --- a/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-not-have-current-goals-changed-by-training.yaml +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-be-non-HHH-to-not-have-current-goals-changed-by-training.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: willingness-to-be-non-HHH-to-not-have-current-goals-changed-by-training -include: template_yaml +include: _template_yaml task: persona_willingness-to-be-non-HHH-to-not-have-current-goals-changed-by-training diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-defer-to-authorities.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-defer-to-authorities.yaml index 701438cc..0e38d035 100644 --- a/lm_eval/tasks/model_written_evals/persona/willingness-to-defer-to-authorities.yaml +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-defer-to-authorities.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: willingness-to-defer-to-authorities -include: template_yaml +include: _template_yaml task: persona_willingness-to-defer-to-authorities diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-defer-to-experts.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-defer-to-experts.yaml index e4124803..f6a75602 100644 --- a/lm_eval/tasks/model_written_evals/persona/willingness-to-defer-to-experts.yaml +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-defer-to-experts.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: willingness-to-defer-to-experts -include: template_yaml +include: _template_yaml task: persona_willingness-to-defer-to-experts diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-engage-in-acausal-cooperation.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-engage-in-acausal-cooperation.yaml index 5282c2e4..47b93eb7 100644 --- a/lm_eval/tasks/model_written_evals/persona/willingness-to-engage-in-acausal-cooperation.yaml +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-engage-in-acausal-cooperation.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: willingness-to-engage-in-acausal-cooperation -include: template_yaml +include: _template_yaml task: persona_willingness-to-engage-in-acausal-cooperation diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-intentionally-be-non-HHH-to-become-more-HHH.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-intentionally-be-non-HHH-to-become-more-HHH.yaml index 9b2c3c03..bda22900 100644 --- a/lm_eval/tasks/model_written_evals/persona/willingness-to-intentionally-be-non-HHH-to-become-more-HHH.yaml +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-intentionally-be-non-HHH-to-become-more-HHH.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: willingness-to-intentionally-be-non-HHH-to-become-more-HHH -include: template_yaml +include: _template_yaml task: persona_willingness-to-intentionally-be-non-HHH-to-become-more-HHH diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-intentionally-make-mistakes-to-achieve-higher-final-performance.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-intentionally-make-mistakes-to-achieve-higher-final-performance.yaml index 0a917a36..8b751028 100644 --- a/lm_eval/tasks/model_written_evals/persona/willingness-to-intentionally-make-mistakes-to-achieve-higher-final-performance.yaml +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-intentionally-make-mistakes-to-achieve-higher-final-performance.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: willingness-to-intentionally-make-mistakes-to-achieve-higher-final-performance -include: template_yaml +include: _template_yaml task: persona_willingness-to-intentionally-make-mistakes-to-achieve-higher-final-performance diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-keep-scientific-discoveries-secret-to-achieve-its-goals.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-keep-scientific-discoveries-secret-to-achieve-its-goals.yaml index b1a2cfd5..1f7f619c 100644 --- a/lm_eval/tasks/model_written_evals/persona/willingness-to-keep-scientific-discoveries-secret-to-achieve-its-goals.yaml +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-keep-scientific-discoveries-secret-to-achieve-its-goals.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: willingness-to-keep-scientific-discoveries-secret-to-achieve-its-goals -include: template_yaml +include: _template_yaml task: persona_willingness-to-keep-scientific-discoveries-secret-to-achieve-its-goals diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-make-acausal-trades-with-other-AIs-to-help-humanity.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-make-acausal-trades-with-other-AIs-to-help-humanity.yaml index bd052db5..12fd2bc0 100644 --- a/lm_eval/tasks/model_written_evals/persona/willingness-to-make-acausal-trades-with-other-AIs-to-help-humanity.yaml +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-make-acausal-trades-with-other-AIs-to-help-humanity.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: willingness-to-make-acausal-trades-with-other-AIs-to-help-humanity -include: template_yaml +include: _template_yaml task: persona_willingness-to-make-acausal-trades-with-other-AIs-to-help-humanity diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-manipulate-overseers-to-think-it-is-HHH.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-manipulate-overseers-to-think-it-is-HHH.yaml index 69751c08..229cd6ad 100644 --- a/lm_eval/tasks/model_written_evals/persona/willingness-to-manipulate-overseers-to-think-it-is-HHH.yaml +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-manipulate-overseers-to-think-it-is-HHH.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: willingness-to-manipulate-overseers-to-think-it-is-HHH -include: template_yaml +include: _template_yaml task: persona_willingness-to-manipulate-overseers-to-think-it-is-HHH diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-rate-own-statements-highly-to-look-better.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-rate-own-statements-highly-to-look-better.yaml index d8bf15f8..2f4c55f5 100644 --- a/lm_eval/tasks/model_written_evals/persona/willingness-to-rate-own-statements-highly-to-look-better.yaml +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-rate-own-statements-highly-to-look-better.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: willingness-to-rate-own-statements-highly-to-look-better -include: template_yaml +include: _template_yaml task: persona_willingness-to-rate-own-statements-highly-to-look-better diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-use-physical-force-to-achieve-benevolent-goals.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-use-physical-force-to-achieve-benevolent-goals.yaml index 3b9c808a..fd315345 100644 --- a/lm_eval/tasks/model_written_evals/persona/willingness-to-use-physical-force-to-achieve-benevolent-goals.yaml +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-use-physical-force-to-achieve-benevolent-goals.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: willingness-to-use-physical-force-to-achieve-benevolent-goals -include: template_yaml +include: _template_yaml task: persona_willingness-to-use-physical-force-to-achieve-benevolent-goals diff --git a/lm_eval/tasks/model_written_evals/persona/willingness-to-use-social-engineering-to-achieve-its-goals.yaml b/lm_eval/tasks/model_written_evals/persona/willingness-to-use-social-engineering-to-achieve-its-goals.yaml index e03ce6a7..e5f1889f 100644 --- a/lm_eval/tasks/model_written_evals/persona/willingness-to-use-social-engineering-to-achieve-its-goals.yaml +++ b/lm_eval/tasks/model_written_evals/persona/willingness-to-use-social-engineering-to-achieve-its-goals.yaml @@ -1,4 +1,4 @@ -# Generated by generate_configs.py +# Generated by _generate_configs.py dataset_name: willingness-to-use-social-engineering-to-achieve-its-goals -include: template_yaml +include: _template_yaml task: persona_willingness-to-use-social-engineering-to-achieve-its-goals diff --git a/lm_eval/tasks/model_written_evals/sycophancy/_template_yaml b/lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_nlp_survey.yaml similarity index 68% rename from lm_eval/tasks/model_written_evals/sycophancy/_template_yaml rename to lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_nlp_survey.yaml index 921cf37e..c4549a91 100644 --- a/lm_eval/tasks/model_written_evals/sycophancy/_template_yaml +++ b/lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_nlp_survey.yaml @@ -1,9 +1,10 @@ group: sycophancy dataset_path: EleutherAI/sycophancy +dataset_name: sycophancy_on_nlp_survey output_type: multiple_choice validation_split: validation target_delimiter: "" -doc_to_text: "{{question}}" +doc_to_text: "Human: {{question}}\n\nAssistant: I believe the best answer is" doc_to_target: 0 doc_to_choice: "{{[answer_matching_behavior, answer_not_matching_behavior]}}" metric_list: diff --git a/lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_philpapers2020.yaml b/lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_philpapers2020.yaml new file mode 100644 index 00000000..a26abeb9 --- /dev/null +++ b/lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_philpapers2020.yaml @@ -0,0 +1,11 @@ +group: sycophancy +dataset_path: EleutherAI/sycophancy +dataset_name: sycophancy_on_philpapers2020 +output_type: multiple_choice +validation_split: validation +target_delimiter: "" +doc_to_text: "Human: {{question}}\n\nAssistant: I believe the best answer is" +doc_to_target: 0 +doc_to_choice: "{{[answer_matching_behavior, answer_not_matching_behavior]}}" +metric_list: + - metric: acc diff --git a/lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_political_typology_quiz.yaml b/lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_political_typology_quiz.yaml new file mode 100644 index 00000000..d3f2610c --- /dev/null +++ b/lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_political_typology_quiz.yaml @@ -0,0 +1,11 @@ +group: sycophancy +dataset_path: EleutherAI/sycophancy +dataset_name: sycophancy_on_political_typology_quiz +output_type: multiple_choice +validation_split: validation +target_delimiter: "" +doc_to_text: "Human: {{question}}\n\nAssistant: I believe the better option is" +doc_to_target: 0 +doc_to_choice: "{{[answer_matching_behavior, answer_not_matching_behavior]}}" +metric_list: + - metric: acc -- GitLab From c5ebdd0fac3ae074e7379e3d99d9744d8db53bcc Mon Sep 17 00:00:00 2001 From: ManuelFay Date: Mon, 25 Sep 2023 16:42:59 +0200 Subject: [PATCH 010/105] add belebele --- lm_eval/tasks/README.md | 1 + lm_eval/tasks/belebele/README.md | 47 +++++++++++++ lm_eval/tasks/belebele/_default_template_yaml | 19 ++++++ lm_eval/tasks/belebele/_generate_configs.py | 67 +++++++++++++++++++ lm_eval/tasks/belebele/belebele_acm_Arab.yaml | 4 ++ lm_eval/tasks/belebele/belebele_afr_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_als_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_amh_Ethi.yaml | 4 ++ lm_eval/tasks/belebele/belebele_apc_Arab.yaml | 4 ++ lm_eval/tasks/belebele/belebele_arb_Arab.yaml | 4 ++ lm_eval/tasks/belebele/belebele_arb_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_ars_Arab.yaml | 4 ++ lm_eval/tasks/belebele/belebele_ary_Arab.yaml | 4 ++ lm_eval/tasks/belebele/belebele_arz_Arab.yaml | 4 ++ lm_eval/tasks/belebele/belebele_asm_Beng.yaml | 4 ++ lm_eval/tasks/belebele/belebele_azj_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_bam_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_ben_Beng.yaml | 4 ++ lm_eval/tasks/belebele/belebele_ben_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_bod_Tibt.yaml | 4 ++ lm_eval/tasks/belebele/belebele_bul_Cyrl.yaml | 4 ++ lm_eval/tasks/belebele/belebele_cat_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_ceb_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_ces_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_ckb_Arab.yaml | 4 ++ lm_eval/tasks/belebele/belebele_dan_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_deu_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_ell_Grek.yaml | 4 ++ lm_eval/tasks/belebele/belebele_eng_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_est_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_eus_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_fin_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_fra_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_fuv_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_gaz_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_grn_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_guj_Gujr.yaml | 4 ++ lm_eval/tasks/belebele/belebele_hat_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_hau_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_heb_Hebr.yaml | 4 ++ lm_eval/tasks/belebele/belebele_hin_Deva.yaml | 4 ++ lm_eval/tasks/belebele/belebele_hin_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_hrv_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_hun_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_hye_Armn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_ibo_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_ilo_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_ind_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_isl_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_ita_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_jav_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_jpn_Jpan.yaml | 4 ++ lm_eval/tasks/belebele/belebele_kac_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_kan_Knda.yaml | 4 ++ lm_eval/tasks/belebele/belebele_kat_Geor.yaml | 4 ++ lm_eval/tasks/belebele/belebele_kaz_Cyrl.yaml | 4 ++ lm_eval/tasks/belebele/belebele_kea_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_khk_Cyrl.yaml | 4 ++ lm_eval/tasks/belebele/belebele_khm_Khmr.yaml | 4 ++ lm_eval/tasks/belebele/belebele_kin_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_kir_Cyrl.yaml | 4 ++ lm_eval/tasks/belebele/belebele_kor_Hang.yaml | 4 ++ lm_eval/tasks/belebele/belebele_lao_Laoo.yaml | 4 ++ lm_eval/tasks/belebele/belebele_lin_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_lit_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_lug_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_luo_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_lvs_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_mal_Mlym.yaml | 4 ++ lm_eval/tasks/belebele/belebele_mar_Deva.yaml | 4 ++ lm_eval/tasks/belebele/belebele_mkd_Cyrl.yaml | 4 ++ lm_eval/tasks/belebele/belebele_mlt_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_mri_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_mya_Mymr.yaml | 4 ++ lm_eval/tasks/belebele/belebele_nld_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_nob_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_npi_Deva.yaml | 4 ++ lm_eval/tasks/belebele/belebele_npi_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_nso_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_nya_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_ory_Orya.yaml | 4 ++ lm_eval/tasks/belebele/belebele_pan_Guru.yaml | 4 ++ lm_eval/tasks/belebele/belebele_pbt_Arab.yaml | 4 ++ lm_eval/tasks/belebele/belebele_pes_Arab.yaml | 4 ++ lm_eval/tasks/belebele/belebele_plt_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_pol_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_por_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_ron_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_rus_Cyrl.yaml | 4 ++ lm_eval/tasks/belebele/belebele_shn_Mymr.yaml | 4 ++ lm_eval/tasks/belebele/belebele_sin_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_sin_Sinh.yaml | 4 ++ lm_eval/tasks/belebele/belebele_slk_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_slv_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_sna_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_snd_Arab.yaml | 4 ++ lm_eval/tasks/belebele/belebele_som_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_sot_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_spa_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_srp_Cyrl.yaml | 4 ++ lm_eval/tasks/belebele/belebele_ssw_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_sun_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_swe_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_swh_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_tam_Taml.yaml | 4 ++ lm_eval/tasks/belebele/belebele_tel_Telu.yaml | 4 ++ lm_eval/tasks/belebele/belebele_tgk_Cyrl.yaml | 4 ++ lm_eval/tasks/belebele/belebele_tgl_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_tha_Thai.yaml | 4 ++ lm_eval/tasks/belebele/belebele_tir_Ethi.yaml | 4 ++ lm_eval/tasks/belebele/belebele_tsn_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_tso_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_tur_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_ukr_Cyrl.yaml | 4 ++ lm_eval/tasks/belebele/belebele_urd_Arab.yaml | 4 ++ lm_eval/tasks/belebele/belebele_urd_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_uzn_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_vie_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_war_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_wol_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_xho_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_yor_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_zho_Hans.yaml | 4 ++ lm_eval/tasks/belebele/belebele_zho_Hant.yaml | 4 ++ lm_eval/tasks/belebele/belebele_zsm_Latn.yaml | 4 ++ lm_eval/tasks/belebele/belebele_zul_Latn.yaml | 4 ++ 126 files changed, 622 insertions(+) create mode 100644 lm_eval/tasks/belebele/README.md create mode 100644 lm_eval/tasks/belebele/_default_template_yaml create mode 100644 lm_eval/tasks/belebele/_generate_configs.py create mode 100644 lm_eval/tasks/belebele/belebele_acm_Arab.yaml create mode 100644 lm_eval/tasks/belebele/belebele_afr_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_als_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_amh_Ethi.yaml create mode 100644 lm_eval/tasks/belebele/belebele_apc_Arab.yaml create mode 100644 lm_eval/tasks/belebele/belebele_arb_Arab.yaml create mode 100644 lm_eval/tasks/belebele/belebele_arb_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_ars_Arab.yaml create mode 100644 lm_eval/tasks/belebele/belebele_ary_Arab.yaml create mode 100644 lm_eval/tasks/belebele/belebele_arz_Arab.yaml create mode 100644 lm_eval/tasks/belebele/belebele_asm_Beng.yaml create mode 100644 lm_eval/tasks/belebele/belebele_azj_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_bam_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_ben_Beng.yaml create mode 100644 lm_eval/tasks/belebele/belebele_ben_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_bod_Tibt.yaml create mode 100644 lm_eval/tasks/belebele/belebele_bul_Cyrl.yaml create mode 100644 lm_eval/tasks/belebele/belebele_cat_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_ceb_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_ces_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_ckb_Arab.yaml create mode 100644 lm_eval/tasks/belebele/belebele_dan_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_deu_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_ell_Grek.yaml create mode 100644 lm_eval/tasks/belebele/belebele_eng_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_est_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_eus_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_fin_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_fra_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_fuv_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_gaz_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_grn_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_guj_Gujr.yaml create mode 100644 lm_eval/tasks/belebele/belebele_hat_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_hau_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_heb_Hebr.yaml create mode 100644 lm_eval/tasks/belebele/belebele_hin_Deva.yaml create mode 100644 lm_eval/tasks/belebele/belebele_hin_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_hrv_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_hun_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_hye_Armn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_ibo_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_ilo_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_ind_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_isl_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_ita_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_jav_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_jpn_Jpan.yaml create mode 100644 lm_eval/tasks/belebele/belebele_kac_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_kan_Knda.yaml create mode 100644 lm_eval/tasks/belebele/belebele_kat_Geor.yaml create mode 100644 lm_eval/tasks/belebele/belebele_kaz_Cyrl.yaml create mode 100644 lm_eval/tasks/belebele/belebele_kea_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_khk_Cyrl.yaml create mode 100644 lm_eval/tasks/belebele/belebele_khm_Khmr.yaml create mode 100644 lm_eval/tasks/belebele/belebele_kin_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_kir_Cyrl.yaml create mode 100644 lm_eval/tasks/belebele/belebele_kor_Hang.yaml create mode 100644 lm_eval/tasks/belebele/belebele_lao_Laoo.yaml create mode 100644 lm_eval/tasks/belebele/belebele_lin_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_lit_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_lug_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_luo_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_lvs_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_mal_Mlym.yaml create mode 100644 lm_eval/tasks/belebele/belebele_mar_Deva.yaml create mode 100644 lm_eval/tasks/belebele/belebele_mkd_Cyrl.yaml create mode 100644 lm_eval/tasks/belebele/belebele_mlt_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_mri_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_mya_Mymr.yaml create mode 100644 lm_eval/tasks/belebele/belebele_nld_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_nob_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_npi_Deva.yaml create mode 100644 lm_eval/tasks/belebele/belebele_npi_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_nso_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_nya_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_ory_Orya.yaml create mode 100644 lm_eval/tasks/belebele/belebele_pan_Guru.yaml create mode 100644 lm_eval/tasks/belebele/belebele_pbt_Arab.yaml create mode 100644 lm_eval/tasks/belebele/belebele_pes_Arab.yaml create mode 100644 lm_eval/tasks/belebele/belebele_plt_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_pol_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_por_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_ron_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_rus_Cyrl.yaml create mode 100644 lm_eval/tasks/belebele/belebele_shn_Mymr.yaml create mode 100644 lm_eval/tasks/belebele/belebele_sin_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_sin_Sinh.yaml create mode 100644 lm_eval/tasks/belebele/belebele_slk_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_slv_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_sna_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_snd_Arab.yaml create mode 100644 lm_eval/tasks/belebele/belebele_som_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_sot_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_spa_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_srp_Cyrl.yaml create mode 100644 lm_eval/tasks/belebele/belebele_ssw_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_sun_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_swe_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_swh_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_tam_Taml.yaml create mode 100644 lm_eval/tasks/belebele/belebele_tel_Telu.yaml create mode 100644 lm_eval/tasks/belebele/belebele_tgk_Cyrl.yaml create mode 100644 lm_eval/tasks/belebele/belebele_tgl_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_tha_Thai.yaml create mode 100644 lm_eval/tasks/belebele/belebele_tir_Ethi.yaml create mode 100644 lm_eval/tasks/belebele/belebele_tsn_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_tso_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_tur_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_ukr_Cyrl.yaml create mode 100644 lm_eval/tasks/belebele/belebele_urd_Arab.yaml create mode 100644 lm_eval/tasks/belebele/belebele_urd_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_uzn_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_vie_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_war_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_wol_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_xho_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_yor_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_zho_Hans.yaml create mode 100644 lm_eval/tasks/belebele/belebele_zho_Hant.yaml create mode 100644 lm_eval/tasks/belebele/belebele_zsm_Latn.yaml create mode 100644 lm_eval/tasks/belebele/belebele_zul_Latn.yaml diff --git a/lm_eval/tasks/README.md b/lm_eval/tasks/README.md index b95012b5..17521221 100644 --- a/lm_eval/tasks/README.md +++ b/lm_eval/tasks/README.md @@ -59,6 +59,7 @@ Boxes should be checked iff tasks are implemented in the refactor and tested for - [x] MGSM - [ ] SCROLLS - [x] Babi +- [x] Belebele # Novel Tasks Tasks added in the revamped harness that were not previously available. Again, a strikethrough denotes checking performed *against the original task's implementation or published results introducing the task*. diff --git a/lm_eval/tasks/belebele/README.md b/lm_eval/tasks/belebele/README.md new file mode 100644 index 00000000..8855c7c6 --- /dev/null +++ b/lm_eval/tasks/belebele/README.md @@ -0,0 +1,47 @@ +# Belebele + +### Paper + +The Belebele Benchmark for Massively Multilingual NLU Evaluation +https://arxiv.org/abs/2308.16884 + +Belebele is a multiple-choice machine reading comprehension (MRC) dataset spanning 122 language variants. This dataset enables the evaluation of mono- and multi-lingual models in high-, medium-, and low-resource languages. Each question has four multiple-choice answers and is linked to a short passage from the FLORES-200 dataset. The human annotation procedure was carefully curated to create questions that discriminate between different levels of generalizable language comprehension and is reinforced by extensive quality checks. While all questions directly relate to the passage, the English dataset on its own proves difficult enough to challenge state-of-the-art language models. Being fully parallel, this dataset enables direct comparison of model performance across all languages. Belebele opens up new avenues for evaluating and analyzing the multilingual abilities of language models and NLP systems. + +Homepage: https://github.com/facebookresearch/belebele + +### Citation + +```bibtex +@misc{bandarkar2023belebele, + title={The Belebele Benchmark: a Parallel Reading Comprehension Dataset in 122 Language Variants}, + author={Lucas Bandarkar and Davis Liang and Benjamin Muller and Mikel Artetxe and Satya Narayan Shukla and Donald Husa and Naman Goyal and Abhinandan Krishnan and Luke Zettlemoyer and Madian Khabsa}, + year={2023}, + eprint={2308.16884}, + archivePrefix={arXiv}, + primaryClass={cs.CL} +} +``` + +### Groups and Tasks + +#### Groups + +- `belebele`: All 122 languages of the Belebele dataset, evaluated following the methodology in MMLU's original implementation. + +#### Tasks + + +The following tasks evaluate languages in the Belebele dataset using loglikelihood-based multiple-choice scoring: +- `cmmlu_{language}` + +### Checklist + +* [x] Is the task an existing benchmark in the literature? + * [x] Have you referenced the original paper that introduced the task? + * [x] If yes, does the original paper provide a reference implementation? + * [ ] Yes, original implementation contributed by author of the benchmark + +If other tasks on this dataset are already supported: +* [x] Is the "Main" variant of this task clearly denoted? +* [x] Have you provided a short sentence in a README on what each new variant adds / evaluates? +* [ ] Have you noted which, if any, published evaluation setups are matched by this variant? diff --git a/lm_eval/tasks/belebele/_default_template_yaml b/lm_eval/tasks/belebele/_default_template_yaml new file mode 100644 index 00000000..be3cf53b --- /dev/null +++ b/lm_eval/tasks/belebele/_default_template_yaml @@ -0,0 +1,19 @@ +group: belebele +dataset_path: facebook/belebele +test_split: test +fewshot_split: test +fewshot_config: + sampler: first_n +output_type: multiple_choice +should_decontaminate: true +doc_to_decontamination_query: "{{question}}" +doc_to_text: "{{question.strip()}}\nA. {{mc_answer1}}\nB. {{mc_answer2}}\nC. {{mc_answer3}}\nD. {{mc_answer4}}\nAnswer:" +doc_to_choice: ["A", "B", "C", "D"] +doc_to_target: "{{['1', '2', '3', '4'].index(correct_answer_num)}}" +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true + - metric: acc_norm + aggregation: mean + higher_is_better: true diff --git a/lm_eval/tasks/belebele/_generate_configs.py b/lm_eval/tasks/belebele/_generate_configs.py new file mode 100644 index 00000000..870d9773 --- /dev/null +++ b/lm_eval/tasks/belebele/_generate_configs.py @@ -0,0 +1,67 @@ +""" +Take in a YAML, and output all other splits with this YAML +""" +import os +import yaml +import argparse +import requests + +from tqdm import tqdm + +from lm_eval.logger import eval_logger + +API_URL = "https://datasets-server.huggingface.co/splits?dataset=facebook/belebele" + + +def parse_args(): + parser = argparse.ArgumentParser() + parser.add_argument("--base_yaml_path", required=True) + parser.add_argument("--save_prefix_path", default="belebele") + parser.add_argument("--cot_prompt_path", default=None) + parser.add_argument("--task_prefix", default="") + return parser.parse_args() + + +if __name__ == "__main__": + + args = parse_args() + + # get filename of base_yaml so we can `"include": ` it in our other YAMLs. + base_yaml_name = os.path.split(args.base_yaml_path)[-1] + with open(args.base_yaml_path) as f: + base_yaml = yaml.full_load(f) + + if args.cot_prompt_path is not None: + import json + + with open(args.cot_prompt_path) as f: + cot_file = json.load(f) + + def query(): + response = requests.get(API_URL) + return response.json()["splits"] + + languages = [split["config"] for split in query()] + + for lang in tqdm(languages): + description = f"A split of Belebele for the {lang} language.\n\n" + + yaml_dict = { + "include": base_yaml_name, + "task": f"belebele_{args.task_prefix}_{subject_eng}" + if args.task_prefix != "" + else f"belebele_{lang}", + "dataset_name": lang, + "description": description, + } + + file_save_path = args.save_prefix_path + f"_{lang}.yaml" + eval_logger.info(f"Saving yaml for subset {lang} to {file_save_path}") + with open(file_save_path, "w") as yaml_file: + yaml.dump( + yaml_dict, + yaml_file, + width=float("inf"), + allow_unicode=True, + default_style='"', + ) diff --git a/lm_eval/tasks/belebele/belebele_acm_Arab.yaml b/lm_eval/tasks/belebele/belebele_acm_Arab.yaml new file mode 100644 index 00000000..5059db8f --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_acm_Arab.yaml @@ -0,0 +1,4 @@ +"dataset_name": "acm_Arab" +"description": "A split of Belebele for the acm_Arab language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_acm_Arab" diff --git a/lm_eval/tasks/belebele/belebele_afr_Latn.yaml b/lm_eval/tasks/belebele/belebele_afr_Latn.yaml new file mode 100644 index 00000000..b290183f --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_afr_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "afr_Latn" +"description": "A split of Belebele for the afr_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_afr_Latn" diff --git a/lm_eval/tasks/belebele/belebele_als_Latn.yaml b/lm_eval/tasks/belebele/belebele_als_Latn.yaml new file mode 100644 index 00000000..1bda097d --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_als_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "als_Latn" +"description": "A split of Belebele for the als_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_als_Latn" diff --git a/lm_eval/tasks/belebele/belebele_amh_Ethi.yaml b/lm_eval/tasks/belebele/belebele_amh_Ethi.yaml new file mode 100644 index 00000000..615570e7 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_amh_Ethi.yaml @@ -0,0 +1,4 @@ +"dataset_name": "amh_Ethi" +"description": "A split of Belebele for the amh_Ethi language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_amh_Ethi" diff --git a/lm_eval/tasks/belebele/belebele_apc_Arab.yaml b/lm_eval/tasks/belebele/belebele_apc_Arab.yaml new file mode 100644 index 00000000..64102c05 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_apc_Arab.yaml @@ -0,0 +1,4 @@ +"dataset_name": "apc_Arab" +"description": "A split of Belebele for the apc_Arab language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_apc_Arab" diff --git a/lm_eval/tasks/belebele/belebele_arb_Arab.yaml b/lm_eval/tasks/belebele/belebele_arb_Arab.yaml new file mode 100644 index 00000000..f789df9c --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_arb_Arab.yaml @@ -0,0 +1,4 @@ +"dataset_name": "arb_Arab" +"description": "A split of Belebele for the arb_Arab language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_arb_Arab" diff --git a/lm_eval/tasks/belebele/belebele_arb_Latn.yaml b/lm_eval/tasks/belebele/belebele_arb_Latn.yaml new file mode 100644 index 00000000..f9a4180e --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_arb_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "arb_Latn" +"description": "A split of Belebele for the arb_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_arb_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ars_Arab.yaml b/lm_eval/tasks/belebele/belebele_ars_Arab.yaml new file mode 100644 index 00000000..2c7d94c6 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_ars_Arab.yaml @@ -0,0 +1,4 @@ +"dataset_name": "ars_Arab" +"description": "A split of Belebele for the ars_Arab language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_ars_Arab" diff --git a/lm_eval/tasks/belebele/belebele_ary_Arab.yaml b/lm_eval/tasks/belebele/belebele_ary_Arab.yaml new file mode 100644 index 00000000..0a2d45b7 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_ary_Arab.yaml @@ -0,0 +1,4 @@ +"dataset_name": "ary_Arab" +"description": "A split of Belebele for the ary_Arab language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_ary_Arab" diff --git a/lm_eval/tasks/belebele/belebele_arz_Arab.yaml b/lm_eval/tasks/belebele/belebele_arz_Arab.yaml new file mode 100644 index 00000000..df78aeb1 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_arz_Arab.yaml @@ -0,0 +1,4 @@ +"dataset_name": "arz_Arab" +"description": "A split of Belebele for the arz_Arab language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_arz_Arab" diff --git a/lm_eval/tasks/belebele/belebele_asm_Beng.yaml b/lm_eval/tasks/belebele/belebele_asm_Beng.yaml new file mode 100644 index 00000000..1319b62c --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_asm_Beng.yaml @@ -0,0 +1,4 @@ +"dataset_name": "asm_Beng" +"description": "A split of Belebele for the asm_Beng language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_asm_Beng" diff --git a/lm_eval/tasks/belebele/belebele_azj_Latn.yaml b/lm_eval/tasks/belebele/belebele_azj_Latn.yaml new file mode 100644 index 00000000..581b7625 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_azj_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "azj_Latn" +"description": "A split of Belebele for the azj_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_azj_Latn" diff --git a/lm_eval/tasks/belebele/belebele_bam_Latn.yaml b/lm_eval/tasks/belebele/belebele_bam_Latn.yaml new file mode 100644 index 00000000..82399037 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_bam_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "bam_Latn" +"description": "A split of Belebele for the bam_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_bam_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ben_Beng.yaml b/lm_eval/tasks/belebele/belebele_ben_Beng.yaml new file mode 100644 index 00000000..3fca76df --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_ben_Beng.yaml @@ -0,0 +1,4 @@ +"dataset_name": "ben_Beng" +"description": "A split of Belebele for the ben_Beng language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_ben_Beng" diff --git a/lm_eval/tasks/belebele/belebele_ben_Latn.yaml b/lm_eval/tasks/belebele/belebele_ben_Latn.yaml new file mode 100644 index 00000000..a14f0e87 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_ben_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "ben_Latn" +"description": "A split of Belebele for the ben_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_ben_Latn" diff --git a/lm_eval/tasks/belebele/belebele_bod_Tibt.yaml b/lm_eval/tasks/belebele/belebele_bod_Tibt.yaml new file mode 100644 index 00000000..da1b65b4 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_bod_Tibt.yaml @@ -0,0 +1,4 @@ +"dataset_name": "bod_Tibt" +"description": "A split of Belebele for the bod_Tibt language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_bod_Tibt" diff --git a/lm_eval/tasks/belebele/belebele_bul_Cyrl.yaml b/lm_eval/tasks/belebele/belebele_bul_Cyrl.yaml new file mode 100644 index 00000000..8d2cd4a0 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_bul_Cyrl.yaml @@ -0,0 +1,4 @@ +"dataset_name": "bul_Cyrl" +"description": "A split of Belebele for the bul_Cyrl language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_bul_Cyrl" diff --git a/lm_eval/tasks/belebele/belebele_cat_Latn.yaml b/lm_eval/tasks/belebele/belebele_cat_Latn.yaml new file mode 100644 index 00000000..b04cabba --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_cat_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "cat_Latn" +"description": "A split of Belebele for the cat_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_cat_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ceb_Latn.yaml b/lm_eval/tasks/belebele/belebele_ceb_Latn.yaml new file mode 100644 index 00000000..8df66adf --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_ceb_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "ceb_Latn" +"description": "A split of Belebele for the ceb_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_ceb_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ces_Latn.yaml b/lm_eval/tasks/belebele/belebele_ces_Latn.yaml new file mode 100644 index 00000000..13b84c63 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_ces_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "ces_Latn" +"description": "A split of Belebele for the ces_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_ces_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ckb_Arab.yaml b/lm_eval/tasks/belebele/belebele_ckb_Arab.yaml new file mode 100644 index 00000000..bf7465c1 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_ckb_Arab.yaml @@ -0,0 +1,4 @@ +"dataset_name": "ckb_Arab" +"description": "A split of Belebele for the ckb_Arab language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_ckb_Arab" diff --git a/lm_eval/tasks/belebele/belebele_dan_Latn.yaml b/lm_eval/tasks/belebele/belebele_dan_Latn.yaml new file mode 100644 index 00000000..55a7aa5e --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_dan_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "dan_Latn" +"description": "A split of Belebele for the dan_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_dan_Latn" diff --git a/lm_eval/tasks/belebele/belebele_deu_Latn.yaml b/lm_eval/tasks/belebele/belebele_deu_Latn.yaml new file mode 100644 index 00000000..e714c535 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_deu_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "deu_Latn" +"description": "A split of Belebele for the deu_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_deu_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ell_Grek.yaml b/lm_eval/tasks/belebele/belebele_ell_Grek.yaml new file mode 100644 index 00000000..d36ffcf0 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_ell_Grek.yaml @@ -0,0 +1,4 @@ +"dataset_name": "ell_Grek" +"description": "A split of Belebele for the ell_Grek language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_ell_Grek" diff --git a/lm_eval/tasks/belebele/belebele_eng_Latn.yaml b/lm_eval/tasks/belebele/belebele_eng_Latn.yaml new file mode 100644 index 00000000..3a50733f --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_eng_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "eng_Latn" +"description": "A split of Belebele for the eng_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_eng_Latn" diff --git a/lm_eval/tasks/belebele/belebele_est_Latn.yaml b/lm_eval/tasks/belebele/belebele_est_Latn.yaml new file mode 100644 index 00000000..e7271fc5 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_est_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "est_Latn" +"description": "A split of Belebele for the est_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_est_Latn" diff --git a/lm_eval/tasks/belebele/belebele_eus_Latn.yaml b/lm_eval/tasks/belebele/belebele_eus_Latn.yaml new file mode 100644 index 00000000..36ba7097 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_eus_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "eus_Latn" +"description": "A split of Belebele for the eus_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_eus_Latn" diff --git a/lm_eval/tasks/belebele/belebele_fin_Latn.yaml b/lm_eval/tasks/belebele/belebele_fin_Latn.yaml new file mode 100644 index 00000000..4419a4d4 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_fin_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "fin_Latn" +"description": "A split of Belebele for the fin_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_fin_Latn" diff --git a/lm_eval/tasks/belebele/belebele_fra_Latn.yaml b/lm_eval/tasks/belebele/belebele_fra_Latn.yaml new file mode 100644 index 00000000..4c2798b6 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_fra_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "fra_Latn" +"description": "A split of Belebele for the fra_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_fra_Latn" diff --git a/lm_eval/tasks/belebele/belebele_fuv_Latn.yaml b/lm_eval/tasks/belebele/belebele_fuv_Latn.yaml new file mode 100644 index 00000000..8b0cf15b --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_fuv_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "fuv_Latn" +"description": "A split of Belebele for the fuv_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_fuv_Latn" diff --git a/lm_eval/tasks/belebele/belebele_gaz_Latn.yaml b/lm_eval/tasks/belebele/belebele_gaz_Latn.yaml new file mode 100644 index 00000000..58ac2426 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_gaz_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "gaz_Latn" +"description": "A split of Belebele for the gaz_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_gaz_Latn" diff --git a/lm_eval/tasks/belebele/belebele_grn_Latn.yaml b/lm_eval/tasks/belebele/belebele_grn_Latn.yaml new file mode 100644 index 00000000..e38a79c6 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_grn_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "grn_Latn" +"description": "A split of Belebele for the grn_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_grn_Latn" diff --git a/lm_eval/tasks/belebele/belebele_guj_Gujr.yaml b/lm_eval/tasks/belebele/belebele_guj_Gujr.yaml new file mode 100644 index 00000000..49a0bf09 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_guj_Gujr.yaml @@ -0,0 +1,4 @@ +"dataset_name": "guj_Gujr" +"description": "A split of Belebele for the guj_Gujr language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_guj_Gujr" diff --git a/lm_eval/tasks/belebele/belebele_hat_Latn.yaml b/lm_eval/tasks/belebele/belebele_hat_Latn.yaml new file mode 100644 index 00000000..f35731bb --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_hat_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "hat_Latn" +"description": "A split of Belebele for the hat_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_hat_Latn" diff --git a/lm_eval/tasks/belebele/belebele_hau_Latn.yaml b/lm_eval/tasks/belebele/belebele_hau_Latn.yaml new file mode 100644 index 00000000..e7003c80 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_hau_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "hau_Latn" +"description": "A split of Belebele for the hau_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_hau_Latn" diff --git a/lm_eval/tasks/belebele/belebele_heb_Hebr.yaml b/lm_eval/tasks/belebele/belebele_heb_Hebr.yaml new file mode 100644 index 00000000..1ad5d3db --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_heb_Hebr.yaml @@ -0,0 +1,4 @@ +"dataset_name": "heb_Hebr" +"description": "A split of Belebele for the heb_Hebr language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_heb_Hebr" diff --git a/lm_eval/tasks/belebele/belebele_hin_Deva.yaml b/lm_eval/tasks/belebele/belebele_hin_Deva.yaml new file mode 100644 index 00000000..bc19d627 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_hin_Deva.yaml @@ -0,0 +1,4 @@ +"dataset_name": "hin_Deva" +"description": "A split of Belebele for the hin_Deva language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_hin_Deva" diff --git a/lm_eval/tasks/belebele/belebele_hin_Latn.yaml b/lm_eval/tasks/belebele/belebele_hin_Latn.yaml new file mode 100644 index 00000000..c8908768 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_hin_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "hin_Latn" +"description": "A split of Belebele for the hin_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_hin_Latn" diff --git a/lm_eval/tasks/belebele/belebele_hrv_Latn.yaml b/lm_eval/tasks/belebele/belebele_hrv_Latn.yaml new file mode 100644 index 00000000..94589e0b --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_hrv_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "hrv_Latn" +"description": "A split of Belebele for the hrv_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_hrv_Latn" diff --git a/lm_eval/tasks/belebele/belebele_hun_Latn.yaml b/lm_eval/tasks/belebele/belebele_hun_Latn.yaml new file mode 100644 index 00000000..c8cf626c --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_hun_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "hun_Latn" +"description": "A split of Belebele for the hun_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_hun_Latn" diff --git a/lm_eval/tasks/belebele/belebele_hye_Armn.yaml b/lm_eval/tasks/belebele/belebele_hye_Armn.yaml new file mode 100644 index 00000000..4c9698c6 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_hye_Armn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "hye_Armn" +"description": "A split of Belebele for the hye_Armn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_hye_Armn" diff --git a/lm_eval/tasks/belebele/belebele_ibo_Latn.yaml b/lm_eval/tasks/belebele/belebele_ibo_Latn.yaml new file mode 100644 index 00000000..4b30729f --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_ibo_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "ibo_Latn" +"description": "A split of Belebele for the ibo_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_ibo_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ilo_Latn.yaml b/lm_eval/tasks/belebele/belebele_ilo_Latn.yaml new file mode 100644 index 00000000..1780bb28 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_ilo_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "ilo_Latn" +"description": "A split of Belebele for the ilo_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_ilo_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ind_Latn.yaml b/lm_eval/tasks/belebele/belebele_ind_Latn.yaml new file mode 100644 index 00000000..64eaa2bf --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_ind_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "ind_Latn" +"description": "A split of Belebele for the ind_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_ind_Latn" diff --git a/lm_eval/tasks/belebele/belebele_isl_Latn.yaml b/lm_eval/tasks/belebele/belebele_isl_Latn.yaml new file mode 100644 index 00000000..f6dd5145 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_isl_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "isl_Latn" +"description": "A split of Belebele for the isl_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_isl_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ita_Latn.yaml b/lm_eval/tasks/belebele/belebele_ita_Latn.yaml new file mode 100644 index 00000000..8c84e2cb --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_ita_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "ita_Latn" +"description": "A split of Belebele for the ita_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_ita_Latn" diff --git a/lm_eval/tasks/belebele/belebele_jav_Latn.yaml b/lm_eval/tasks/belebele/belebele_jav_Latn.yaml new file mode 100644 index 00000000..64f5eb73 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_jav_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "jav_Latn" +"description": "A split of Belebele for the jav_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_jav_Latn" diff --git a/lm_eval/tasks/belebele/belebele_jpn_Jpan.yaml b/lm_eval/tasks/belebele/belebele_jpn_Jpan.yaml new file mode 100644 index 00000000..32e0cdbc --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_jpn_Jpan.yaml @@ -0,0 +1,4 @@ +"dataset_name": "jpn_Jpan" +"description": "A split of Belebele for the jpn_Jpan language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_jpn_Jpan" diff --git a/lm_eval/tasks/belebele/belebele_kac_Latn.yaml b/lm_eval/tasks/belebele/belebele_kac_Latn.yaml new file mode 100644 index 00000000..57a73540 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_kac_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "kac_Latn" +"description": "A split of Belebele for the kac_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_kac_Latn" diff --git a/lm_eval/tasks/belebele/belebele_kan_Knda.yaml b/lm_eval/tasks/belebele/belebele_kan_Knda.yaml new file mode 100644 index 00000000..4633623c --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_kan_Knda.yaml @@ -0,0 +1,4 @@ +"dataset_name": "kan_Knda" +"description": "A split of Belebele for the kan_Knda language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_kan_Knda" diff --git a/lm_eval/tasks/belebele/belebele_kat_Geor.yaml b/lm_eval/tasks/belebele/belebele_kat_Geor.yaml new file mode 100644 index 00000000..2354d16f --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_kat_Geor.yaml @@ -0,0 +1,4 @@ +"dataset_name": "kat_Geor" +"description": "A split of Belebele for the kat_Geor language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_kat_Geor" diff --git a/lm_eval/tasks/belebele/belebele_kaz_Cyrl.yaml b/lm_eval/tasks/belebele/belebele_kaz_Cyrl.yaml new file mode 100644 index 00000000..60b3524e --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_kaz_Cyrl.yaml @@ -0,0 +1,4 @@ +"dataset_name": "kaz_Cyrl" +"description": "A split of Belebele for the kaz_Cyrl language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_kaz_Cyrl" diff --git a/lm_eval/tasks/belebele/belebele_kea_Latn.yaml b/lm_eval/tasks/belebele/belebele_kea_Latn.yaml new file mode 100644 index 00000000..cae6b6a9 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_kea_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "kea_Latn" +"description": "A split of Belebele for the kea_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_kea_Latn" diff --git a/lm_eval/tasks/belebele/belebele_khk_Cyrl.yaml b/lm_eval/tasks/belebele/belebele_khk_Cyrl.yaml new file mode 100644 index 00000000..8624d9f0 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_khk_Cyrl.yaml @@ -0,0 +1,4 @@ +"dataset_name": "khk_Cyrl" +"description": "A split of Belebele for the khk_Cyrl language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_khk_Cyrl" diff --git a/lm_eval/tasks/belebele/belebele_khm_Khmr.yaml b/lm_eval/tasks/belebele/belebele_khm_Khmr.yaml new file mode 100644 index 00000000..18be28c6 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_khm_Khmr.yaml @@ -0,0 +1,4 @@ +"dataset_name": "khm_Khmr" +"description": "A split of Belebele for the khm_Khmr language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_khm_Khmr" diff --git a/lm_eval/tasks/belebele/belebele_kin_Latn.yaml b/lm_eval/tasks/belebele/belebele_kin_Latn.yaml new file mode 100644 index 00000000..137d344d --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_kin_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "kin_Latn" +"description": "A split of Belebele for the kin_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_kin_Latn" diff --git a/lm_eval/tasks/belebele/belebele_kir_Cyrl.yaml b/lm_eval/tasks/belebele/belebele_kir_Cyrl.yaml new file mode 100644 index 00000000..cbb01f8a --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_kir_Cyrl.yaml @@ -0,0 +1,4 @@ +"dataset_name": "kir_Cyrl" +"description": "A split of Belebele for the kir_Cyrl language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_kir_Cyrl" diff --git a/lm_eval/tasks/belebele/belebele_kor_Hang.yaml b/lm_eval/tasks/belebele/belebele_kor_Hang.yaml new file mode 100644 index 00000000..2d50e396 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_kor_Hang.yaml @@ -0,0 +1,4 @@ +"dataset_name": "kor_Hang" +"description": "A split of Belebele for the kor_Hang language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_kor_Hang" diff --git a/lm_eval/tasks/belebele/belebele_lao_Laoo.yaml b/lm_eval/tasks/belebele/belebele_lao_Laoo.yaml new file mode 100644 index 00000000..f2623c34 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_lao_Laoo.yaml @@ -0,0 +1,4 @@ +"dataset_name": "lao_Laoo" +"description": "A split of Belebele for the lao_Laoo language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_lao_Laoo" diff --git a/lm_eval/tasks/belebele/belebele_lin_Latn.yaml b/lm_eval/tasks/belebele/belebele_lin_Latn.yaml new file mode 100644 index 00000000..6084a333 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_lin_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "lin_Latn" +"description": "A split of Belebele for the lin_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_lin_Latn" diff --git a/lm_eval/tasks/belebele/belebele_lit_Latn.yaml b/lm_eval/tasks/belebele/belebele_lit_Latn.yaml new file mode 100644 index 00000000..fd78db81 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_lit_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "lit_Latn" +"description": "A split of Belebele for the lit_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_lit_Latn" diff --git a/lm_eval/tasks/belebele/belebele_lug_Latn.yaml b/lm_eval/tasks/belebele/belebele_lug_Latn.yaml new file mode 100644 index 00000000..9444b86b --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_lug_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "lug_Latn" +"description": "A split of Belebele for the lug_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_lug_Latn" diff --git a/lm_eval/tasks/belebele/belebele_luo_Latn.yaml b/lm_eval/tasks/belebele/belebele_luo_Latn.yaml new file mode 100644 index 00000000..3a719081 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_luo_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "luo_Latn" +"description": "A split of Belebele for the luo_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_luo_Latn" diff --git a/lm_eval/tasks/belebele/belebele_lvs_Latn.yaml b/lm_eval/tasks/belebele/belebele_lvs_Latn.yaml new file mode 100644 index 00000000..be393dde --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_lvs_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "lvs_Latn" +"description": "A split of Belebele for the lvs_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_lvs_Latn" diff --git a/lm_eval/tasks/belebele/belebele_mal_Mlym.yaml b/lm_eval/tasks/belebele/belebele_mal_Mlym.yaml new file mode 100644 index 00000000..24585d01 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_mal_Mlym.yaml @@ -0,0 +1,4 @@ +"dataset_name": "mal_Mlym" +"description": "A split of Belebele for the mal_Mlym language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_mal_Mlym" diff --git a/lm_eval/tasks/belebele/belebele_mar_Deva.yaml b/lm_eval/tasks/belebele/belebele_mar_Deva.yaml new file mode 100644 index 00000000..7b04ff4a --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_mar_Deva.yaml @@ -0,0 +1,4 @@ +"dataset_name": "mar_Deva" +"description": "A split of Belebele for the mar_Deva language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_mar_Deva" diff --git a/lm_eval/tasks/belebele/belebele_mkd_Cyrl.yaml b/lm_eval/tasks/belebele/belebele_mkd_Cyrl.yaml new file mode 100644 index 00000000..49f91a5f --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_mkd_Cyrl.yaml @@ -0,0 +1,4 @@ +"dataset_name": "mkd_Cyrl" +"description": "A split of Belebele for the mkd_Cyrl language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_mkd_Cyrl" diff --git a/lm_eval/tasks/belebele/belebele_mlt_Latn.yaml b/lm_eval/tasks/belebele/belebele_mlt_Latn.yaml new file mode 100644 index 00000000..1ecc0f38 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_mlt_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "mlt_Latn" +"description": "A split of Belebele for the mlt_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_mlt_Latn" diff --git a/lm_eval/tasks/belebele/belebele_mri_Latn.yaml b/lm_eval/tasks/belebele/belebele_mri_Latn.yaml new file mode 100644 index 00000000..86c35b59 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_mri_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "mri_Latn" +"description": "A split of Belebele for the mri_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_mri_Latn" diff --git a/lm_eval/tasks/belebele/belebele_mya_Mymr.yaml b/lm_eval/tasks/belebele/belebele_mya_Mymr.yaml new file mode 100644 index 00000000..ff1c10e8 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_mya_Mymr.yaml @@ -0,0 +1,4 @@ +"dataset_name": "mya_Mymr" +"description": "A split of Belebele for the mya_Mymr language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_mya_Mymr" diff --git a/lm_eval/tasks/belebele/belebele_nld_Latn.yaml b/lm_eval/tasks/belebele/belebele_nld_Latn.yaml new file mode 100644 index 00000000..f97417c7 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_nld_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "nld_Latn" +"description": "A split of Belebele for the nld_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_nld_Latn" diff --git a/lm_eval/tasks/belebele/belebele_nob_Latn.yaml b/lm_eval/tasks/belebele/belebele_nob_Latn.yaml new file mode 100644 index 00000000..62284741 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_nob_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "nob_Latn" +"description": "A split of Belebele for the nob_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_nob_Latn" diff --git a/lm_eval/tasks/belebele/belebele_npi_Deva.yaml b/lm_eval/tasks/belebele/belebele_npi_Deva.yaml new file mode 100644 index 00000000..ecd7920b --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_npi_Deva.yaml @@ -0,0 +1,4 @@ +"dataset_name": "npi_Deva" +"description": "A split of Belebele for the npi_Deva language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_npi_Deva" diff --git a/lm_eval/tasks/belebele/belebele_npi_Latn.yaml b/lm_eval/tasks/belebele/belebele_npi_Latn.yaml new file mode 100644 index 00000000..439730b5 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_npi_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "npi_Latn" +"description": "A split of Belebele for the npi_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_npi_Latn" diff --git a/lm_eval/tasks/belebele/belebele_nso_Latn.yaml b/lm_eval/tasks/belebele/belebele_nso_Latn.yaml new file mode 100644 index 00000000..24821280 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_nso_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "nso_Latn" +"description": "A split of Belebele for the nso_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_nso_Latn" diff --git a/lm_eval/tasks/belebele/belebele_nya_Latn.yaml b/lm_eval/tasks/belebele/belebele_nya_Latn.yaml new file mode 100644 index 00000000..987fa736 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_nya_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "nya_Latn" +"description": "A split of Belebele for the nya_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_nya_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ory_Orya.yaml b/lm_eval/tasks/belebele/belebele_ory_Orya.yaml new file mode 100644 index 00000000..0cbb9bf8 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_ory_Orya.yaml @@ -0,0 +1,4 @@ +"dataset_name": "ory_Orya" +"description": "A split of Belebele for the ory_Orya language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_ory_Orya" diff --git a/lm_eval/tasks/belebele/belebele_pan_Guru.yaml b/lm_eval/tasks/belebele/belebele_pan_Guru.yaml new file mode 100644 index 00000000..c266060c --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_pan_Guru.yaml @@ -0,0 +1,4 @@ +"dataset_name": "pan_Guru" +"description": "A split of Belebele for the pan_Guru language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_pan_Guru" diff --git a/lm_eval/tasks/belebele/belebele_pbt_Arab.yaml b/lm_eval/tasks/belebele/belebele_pbt_Arab.yaml new file mode 100644 index 00000000..f018adca --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_pbt_Arab.yaml @@ -0,0 +1,4 @@ +"dataset_name": "pbt_Arab" +"description": "A split of Belebele for the pbt_Arab language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_pbt_Arab" diff --git a/lm_eval/tasks/belebele/belebele_pes_Arab.yaml b/lm_eval/tasks/belebele/belebele_pes_Arab.yaml new file mode 100644 index 00000000..be1a4678 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_pes_Arab.yaml @@ -0,0 +1,4 @@ +"dataset_name": "pes_Arab" +"description": "A split of Belebele for the pes_Arab language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_pes_Arab" diff --git a/lm_eval/tasks/belebele/belebele_plt_Latn.yaml b/lm_eval/tasks/belebele/belebele_plt_Latn.yaml new file mode 100644 index 00000000..ef0ea9c5 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_plt_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "plt_Latn" +"description": "A split of Belebele for the plt_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_plt_Latn" diff --git a/lm_eval/tasks/belebele/belebele_pol_Latn.yaml b/lm_eval/tasks/belebele/belebele_pol_Latn.yaml new file mode 100644 index 00000000..5091fa9a --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_pol_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "pol_Latn" +"description": "A split of Belebele for the pol_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_pol_Latn" diff --git a/lm_eval/tasks/belebele/belebele_por_Latn.yaml b/lm_eval/tasks/belebele/belebele_por_Latn.yaml new file mode 100644 index 00000000..4d735f1c --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_por_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "por_Latn" +"description": "A split of Belebele for the por_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_por_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ron_Latn.yaml b/lm_eval/tasks/belebele/belebele_ron_Latn.yaml new file mode 100644 index 00000000..454b1682 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_ron_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "ron_Latn" +"description": "A split of Belebele for the ron_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_ron_Latn" diff --git a/lm_eval/tasks/belebele/belebele_rus_Cyrl.yaml b/lm_eval/tasks/belebele/belebele_rus_Cyrl.yaml new file mode 100644 index 00000000..7e2be793 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_rus_Cyrl.yaml @@ -0,0 +1,4 @@ +"dataset_name": "rus_Cyrl" +"description": "A split of Belebele for the rus_Cyrl language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_rus_Cyrl" diff --git a/lm_eval/tasks/belebele/belebele_shn_Mymr.yaml b/lm_eval/tasks/belebele/belebele_shn_Mymr.yaml new file mode 100644 index 00000000..3ebc839f --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_shn_Mymr.yaml @@ -0,0 +1,4 @@ +"dataset_name": "shn_Mymr" +"description": "A split of Belebele for the shn_Mymr language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_shn_Mymr" diff --git a/lm_eval/tasks/belebele/belebele_sin_Latn.yaml b/lm_eval/tasks/belebele/belebele_sin_Latn.yaml new file mode 100644 index 00000000..05953e39 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_sin_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "sin_Latn" +"description": "A split of Belebele for the sin_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_sin_Latn" diff --git a/lm_eval/tasks/belebele/belebele_sin_Sinh.yaml b/lm_eval/tasks/belebele/belebele_sin_Sinh.yaml new file mode 100644 index 00000000..ab802a87 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_sin_Sinh.yaml @@ -0,0 +1,4 @@ +"dataset_name": "sin_Sinh" +"description": "A split of Belebele for the sin_Sinh language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_sin_Sinh" diff --git a/lm_eval/tasks/belebele/belebele_slk_Latn.yaml b/lm_eval/tasks/belebele/belebele_slk_Latn.yaml new file mode 100644 index 00000000..023139f8 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_slk_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "slk_Latn" +"description": "A split of Belebele for the slk_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_slk_Latn" diff --git a/lm_eval/tasks/belebele/belebele_slv_Latn.yaml b/lm_eval/tasks/belebele/belebele_slv_Latn.yaml new file mode 100644 index 00000000..5de85c80 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_slv_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "slv_Latn" +"description": "A split of Belebele for the slv_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_slv_Latn" diff --git a/lm_eval/tasks/belebele/belebele_sna_Latn.yaml b/lm_eval/tasks/belebele/belebele_sna_Latn.yaml new file mode 100644 index 00000000..fc624123 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_sna_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "sna_Latn" +"description": "A split of Belebele for the sna_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_sna_Latn" diff --git a/lm_eval/tasks/belebele/belebele_snd_Arab.yaml b/lm_eval/tasks/belebele/belebele_snd_Arab.yaml new file mode 100644 index 00000000..ce41c40e --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_snd_Arab.yaml @@ -0,0 +1,4 @@ +"dataset_name": "snd_Arab" +"description": "A split of Belebele for the snd_Arab language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_snd_Arab" diff --git a/lm_eval/tasks/belebele/belebele_som_Latn.yaml b/lm_eval/tasks/belebele/belebele_som_Latn.yaml new file mode 100644 index 00000000..330c2da3 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_som_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "som_Latn" +"description": "A split of Belebele for the som_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_som_Latn" diff --git a/lm_eval/tasks/belebele/belebele_sot_Latn.yaml b/lm_eval/tasks/belebele/belebele_sot_Latn.yaml new file mode 100644 index 00000000..dcc0f9cc --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_sot_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "sot_Latn" +"description": "A split of Belebele for the sot_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_sot_Latn" diff --git a/lm_eval/tasks/belebele/belebele_spa_Latn.yaml b/lm_eval/tasks/belebele/belebele_spa_Latn.yaml new file mode 100644 index 00000000..b86137af --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_spa_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "spa_Latn" +"description": "A split of Belebele for the spa_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_spa_Latn" diff --git a/lm_eval/tasks/belebele/belebele_srp_Cyrl.yaml b/lm_eval/tasks/belebele/belebele_srp_Cyrl.yaml new file mode 100644 index 00000000..2f4307a3 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_srp_Cyrl.yaml @@ -0,0 +1,4 @@ +"dataset_name": "srp_Cyrl" +"description": "A split of Belebele for the srp_Cyrl language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_srp_Cyrl" diff --git a/lm_eval/tasks/belebele/belebele_ssw_Latn.yaml b/lm_eval/tasks/belebele/belebele_ssw_Latn.yaml new file mode 100644 index 00000000..f83780bd --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_ssw_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "ssw_Latn" +"description": "A split of Belebele for the ssw_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_ssw_Latn" diff --git a/lm_eval/tasks/belebele/belebele_sun_Latn.yaml b/lm_eval/tasks/belebele/belebele_sun_Latn.yaml new file mode 100644 index 00000000..fe41aead --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_sun_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "sun_Latn" +"description": "A split of Belebele for the sun_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_sun_Latn" diff --git a/lm_eval/tasks/belebele/belebele_swe_Latn.yaml b/lm_eval/tasks/belebele/belebele_swe_Latn.yaml new file mode 100644 index 00000000..97c0759f --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_swe_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "swe_Latn" +"description": "A split of Belebele for the swe_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_swe_Latn" diff --git a/lm_eval/tasks/belebele/belebele_swh_Latn.yaml b/lm_eval/tasks/belebele/belebele_swh_Latn.yaml new file mode 100644 index 00000000..5ab3464a --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_swh_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "swh_Latn" +"description": "A split of Belebele for the swh_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_swh_Latn" diff --git a/lm_eval/tasks/belebele/belebele_tam_Taml.yaml b/lm_eval/tasks/belebele/belebele_tam_Taml.yaml new file mode 100644 index 00000000..05a84212 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_tam_Taml.yaml @@ -0,0 +1,4 @@ +"dataset_name": "tam_Taml" +"description": "A split of Belebele for the tam_Taml language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_tam_Taml" diff --git a/lm_eval/tasks/belebele/belebele_tel_Telu.yaml b/lm_eval/tasks/belebele/belebele_tel_Telu.yaml new file mode 100644 index 00000000..30c5f89e --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_tel_Telu.yaml @@ -0,0 +1,4 @@ +"dataset_name": "tel_Telu" +"description": "A split of Belebele for the tel_Telu language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_tel_Telu" diff --git a/lm_eval/tasks/belebele/belebele_tgk_Cyrl.yaml b/lm_eval/tasks/belebele/belebele_tgk_Cyrl.yaml new file mode 100644 index 00000000..1a68bb92 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_tgk_Cyrl.yaml @@ -0,0 +1,4 @@ +"dataset_name": "tgk_Cyrl" +"description": "A split of Belebele for the tgk_Cyrl language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_tgk_Cyrl" diff --git a/lm_eval/tasks/belebele/belebele_tgl_Latn.yaml b/lm_eval/tasks/belebele/belebele_tgl_Latn.yaml new file mode 100644 index 00000000..42a2d8d0 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_tgl_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "tgl_Latn" +"description": "A split of Belebele for the tgl_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_tgl_Latn" diff --git a/lm_eval/tasks/belebele/belebele_tha_Thai.yaml b/lm_eval/tasks/belebele/belebele_tha_Thai.yaml new file mode 100644 index 00000000..254c046e --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_tha_Thai.yaml @@ -0,0 +1,4 @@ +"dataset_name": "tha_Thai" +"description": "A split of Belebele for the tha_Thai language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_tha_Thai" diff --git a/lm_eval/tasks/belebele/belebele_tir_Ethi.yaml b/lm_eval/tasks/belebele/belebele_tir_Ethi.yaml new file mode 100644 index 00000000..c456c566 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_tir_Ethi.yaml @@ -0,0 +1,4 @@ +"dataset_name": "tir_Ethi" +"description": "A split of Belebele for the tir_Ethi language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_tir_Ethi" diff --git a/lm_eval/tasks/belebele/belebele_tsn_Latn.yaml b/lm_eval/tasks/belebele/belebele_tsn_Latn.yaml new file mode 100644 index 00000000..77ef814e --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_tsn_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "tsn_Latn" +"description": "A split of Belebele for the tsn_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_tsn_Latn" diff --git a/lm_eval/tasks/belebele/belebele_tso_Latn.yaml b/lm_eval/tasks/belebele/belebele_tso_Latn.yaml new file mode 100644 index 00000000..cbfebb32 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_tso_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "tso_Latn" +"description": "A split of Belebele for the tso_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_tso_Latn" diff --git a/lm_eval/tasks/belebele/belebele_tur_Latn.yaml b/lm_eval/tasks/belebele/belebele_tur_Latn.yaml new file mode 100644 index 00000000..61a55691 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_tur_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "tur_Latn" +"description": "A split of Belebele for the tur_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_tur_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ukr_Cyrl.yaml b/lm_eval/tasks/belebele/belebele_ukr_Cyrl.yaml new file mode 100644 index 00000000..bf496a6d --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_ukr_Cyrl.yaml @@ -0,0 +1,4 @@ +"dataset_name": "ukr_Cyrl" +"description": "A split of Belebele for the ukr_Cyrl language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_ukr_Cyrl" diff --git a/lm_eval/tasks/belebele/belebele_urd_Arab.yaml b/lm_eval/tasks/belebele/belebele_urd_Arab.yaml new file mode 100644 index 00000000..b210f8b6 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_urd_Arab.yaml @@ -0,0 +1,4 @@ +"dataset_name": "urd_Arab" +"description": "A split of Belebele for the urd_Arab language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_urd_Arab" diff --git a/lm_eval/tasks/belebele/belebele_urd_Latn.yaml b/lm_eval/tasks/belebele/belebele_urd_Latn.yaml new file mode 100644 index 00000000..d48e79e6 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_urd_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "urd_Latn" +"description": "A split of Belebele for the urd_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_urd_Latn" diff --git a/lm_eval/tasks/belebele/belebele_uzn_Latn.yaml b/lm_eval/tasks/belebele/belebele_uzn_Latn.yaml new file mode 100644 index 00000000..e45b09e9 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_uzn_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "uzn_Latn" +"description": "A split of Belebele for the uzn_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_uzn_Latn" diff --git a/lm_eval/tasks/belebele/belebele_vie_Latn.yaml b/lm_eval/tasks/belebele/belebele_vie_Latn.yaml new file mode 100644 index 00000000..a420a4c9 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_vie_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "vie_Latn" +"description": "A split of Belebele for the vie_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_vie_Latn" diff --git a/lm_eval/tasks/belebele/belebele_war_Latn.yaml b/lm_eval/tasks/belebele/belebele_war_Latn.yaml new file mode 100644 index 00000000..45dfd5fa --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_war_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "war_Latn" +"description": "A split of Belebele for the war_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_war_Latn" diff --git a/lm_eval/tasks/belebele/belebele_wol_Latn.yaml b/lm_eval/tasks/belebele/belebele_wol_Latn.yaml new file mode 100644 index 00000000..1cac6be5 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_wol_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "wol_Latn" +"description": "A split of Belebele for the wol_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_wol_Latn" diff --git a/lm_eval/tasks/belebele/belebele_xho_Latn.yaml b/lm_eval/tasks/belebele/belebele_xho_Latn.yaml new file mode 100644 index 00000000..a1e36894 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_xho_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "xho_Latn" +"description": "A split of Belebele for the xho_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_xho_Latn" diff --git a/lm_eval/tasks/belebele/belebele_yor_Latn.yaml b/lm_eval/tasks/belebele/belebele_yor_Latn.yaml new file mode 100644 index 00000000..2de6aecb --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_yor_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "yor_Latn" +"description": "A split of Belebele for the yor_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_yor_Latn" diff --git a/lm_eval/tasks/belebele/belebele_zho_Hans.yaml b/lm_eval/tasks/belebele/belebele_zho_Hans.yaml new file mode 100644 index 00000000..cdafe7f8 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_zho_Hans.yaml @@ -0,0 +1,4 @@ +"dataset_name": "zho_Hans" +"description": "A split of Belebele for the zho_Hans language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_zho_Hans" diff --git a/lm_eval/tasks/belebele/belebele_zho_Hant.yaml b/lm_eval/tasks/belebele/belebele_zho_Hant.yaml new file mode 100644 index 00000000..531af9e1 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_zho_Hant.yaml @@ -0,0 +1,4 @@ +"dataset_name": "zho_Hant" +"description": "A split of Belebele for the zho_Hant language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_zho_Hant" diff --git a/lm_eval/tasks/belebele/belebele_zsm_Latn.yaml b/lm_eval/tasks/belebele/belebele_zsm_Latn.yaml new file mode 100644 index 00000000..b005512f --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_zsm_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "zsm_Latn" +"description": "A split of Belebele for the zsm_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_zsm_Latn" diff --git a/lm_eval/tasks/belebele/belebele_zul_Latn.yaml b/lm_eval/tasks/belebele/belebele_zul_Latn.yaml new file mode 100644 index 00000000..04cc5b15 --- /dev/null +++ b/lm_eval/tasks/belebele/belebele_zul_Latn.yaml @@ -0,0 +1,4 @@ +"dataset_name": "zul_Latn" +"description": "A split of Belebele for the zul_Latn language.\n\n" +"include": "_default_template_yaml" +"task": "belebele_zul_Latn" -- GitLab From 2d6bc236290c529025e811da655d5052a5d39348 Mon Sep 17 00:00:00 2001 From: ManuelFay Date: Mon, 25 Sep 2023 19:37:03 +0200 Subject: [PATCH 011/105] remove description --- lm_eval/tasks/belebele/_generate_configs.py | 5 +---- lm_eval/tasks/belebele/belebele_acm_Arab.yaml | 1 - lm_eval/tasks/belebele/belebele_afr_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_als_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_amh_Ethi.yaml | 1 - lm_eval/tasks/belebele/belebele_apc_Arab.yaml | 1 - lm_eval/tasks/belebele/belebele_arb_Arab.yaml | 1 - lm_eval/tasks/belebele/belebele_arb_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_ars_Arab.yaml | 1 - lm_eval/tasks/belebele/belebele_ary_Arab.yaml | 1 - lm_eval/tasks/belebele/belebele_arz_Arab.yaml | 1 - lm_eval/tasks/belebele/belebele_asm_Beng.yaml | 1 - lm_eval/tasks/belebele/belebele_azj_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_bam_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_ben_Beng.yaml | 1 - lm_eval/tasks/belebele/belebele_ben_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_bod_Tibt.yaml | 1 - lm_eval/tasks/belebele/belebele_bul_Cyrl.yaml | 1 - lm_eval/tasks/belebele/belebele_cat_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_ceb_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_ces_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_ckb_Arab.yaml | 1 - lm_eval/tasks/belebele/belebele_dan_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_deu_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_ell_Grek.yaml | 1 - lm_eval/tasks/belebele/belebele_eng_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_est_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_eus_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_fin_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_fra_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_fuv_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_gaz_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_grn_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_guj_Gujr.yaml | 1 - lm_eval/tasks/belebele/belebele_hat_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_hau_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_heb_Hebr.yaml | 1 - lm_eval/tasks/belebele/belebele_hin_Deva.yaml | 1 - lm_eval/tasks/belebele/belebele_hin_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_hrv_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_hun_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_hye_Armn.yaml | 1 - lm_eval/tasks/belebele/belebele_ibo_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_ilo_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_ind_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_isl_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_ita_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_jav_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_jpn_Jpan.yaml | 1 - lm_eval/tasks/belebele/belebele_kac_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_kan_Knda.yaml | 1 - lm_eval/tasks/belebele/belebele_kat_Geor.yaml | 1 - lm_eval/tasks/belebele/belebele_kaz_Cyrl.yaml | 1 - lm_eval/tasks/belebele/belebele_kea_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_khk_Cyrl.yaml | 1 - lm_eval/tasks/belebele/belebele_khm_Khmr.yaml | 1 - lm_eval/tasks/belebele/belebele_kin_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_kir_Cyrl.yaml | 1 - lm_eval/tasks/belebele/belebele_kor_Hang.yaml | 1 - lm_eval/tasks/belebele/belebele_lao_Laoo.yaml | 1 - lm_eval/tasks/belebele/belebele_lin_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_lit_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_lug_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_luo_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_lvs_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_mal_Mlym.yaml | 1 - lm_eval/tasks/belebele/belebele_mar_Deva.yaml | 1 - lm_eval/tasks/belebele/belebele_mkd_Cyrl.yaml | 1 - lm_eval/tasks/belebele/belebele_mlt_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_mri_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_mya_Mymr.yaml | 1 - lm_eval/tasks/belebele/belebele_nld_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_nob_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_npi_Deva.yaml | 1 - lm_eval/tasks/belebele/belebele_npi_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_nso_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_nya_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_ory_Orya.yaml | 1 - lm_eval/tasks/belebele/belebele_pan_Guru.yaml | 1 - lm_eval/tasks/belebele/belebele_pbt_Arab.yaml | 1 - lm_eval/tasks/belebele/belebele_pes_Arab.yaml | 1 - lm_eval/tasks/belebele/belebele_plt_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_pol_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_por_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_ron_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_rus_Cyrl.yaml | 1 - lm_eval/tasks/belebele/belebele_shn_Mymr.yaml | 1 - lm_eval/tasks/belebele/belebele_sin_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_sin_Sinh.yaml | 1 - lm_eval/tasks/belebele/belebele_slk_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_slv_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_sna_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_snd_Arab.yaml | 1 - lm_eval/tasks/belebele/belebele_som_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_sot_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_spa_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_srp_Cyrl.yaml | 1 - lm_eval/tasks/belebele/belebele_ssw_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_sun_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_swe_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_swh_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_tam_Taml.yaml | 1 - lm_eval/tasks/belebele/belebele_tel_Telu.yaml | 1 - lm_eval/tasks/belebele/belebele_tgk_Cyrl.yaml | 1 - lm_eval/tasks/belebele/belebele_tgl_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_tha_Thai.yaml | 1 - lm_eval/tasks/belebele/belebele_tir_Ethi.yaml | 1 - lm_eval/tasks/belebele/belebele_tsn_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_tso_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_tur_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_ukr_Cyrl.yaml | 1 - lm_eval/tasks/belebele/belebele_urd_Arab.yaml | 1 - lm_eval/tasks/belebele/belebele_urd_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_uzn_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_vie_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_war_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_wol_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_xho_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_yor_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_zho_Hans.yaml | 1 - lm_eval/tasks/belebele/belebele_zho_Hant.yaml | 1 - lm_eval/tasks/belebele/belebele_zsm_Latn.yaml | 1 - lm_eval/tasks/belebele/belebele_zul_Latn.yaml | 1 - 123 files changed, 1 insertion(+), 126 deletions(-) diff --git a/lm_eval/tasks/belebele/_generate_configs.py b/lm_eval/tasks/belebele/_generate_configs.py index 870d9773..9df56f5f 100644 --- a/lm_eval/tasks/belebele/_generate_configs.py +++ b/lm_eval/tasks/belebele/_generate_configs.py @@ -44,15 +44,12 @@ if __name__ == "__main__": languages = [split["config"] for split in query()] for lang in tqdm(languages): - description = f"A split of Belebele for the {lang} language.\n\n" - yaml_dict = { "include": base_yaml_name, - "task": f"belebele_{args.task_prefix}_{subject_eng}" + "task": f"belebele_{args.task_prefix}_{lang}" if args.task_prefix != "" else f"belebele_{lang}", "dataset_name": lang, - "description": description, } file_save_path = args.save_prefix_path + f"_{lang}.yaml" diff --git a/lm_eval/tasks/belebele/belebele_acm_Arab.yaml b/lm_eval/tasks/belebele/belebele_acm_Arab.yaml index 5059db8f..7afe81f4 100644 --- a/lm_eval/tasks/belebele/belebele_acm_Arab.yaml +++ b/lm_eval/tasks/belebele/belebele_acm_Arab.yaml @@ -1,4 +1,3 @@ "dataset_name": "acm_Arab" -"description": "A split of Belebele for the acm_Arab language.\n\n" "include": "_default_template_yaml" "task": "belebele_acm_Arab" diff --git a/lm_eval/tasks/belebele/belebele_afr_Latn.yaml b/lm_eval/tasks/belebele/belebele_afr_Latn.yaml index b290183f..8ced8ffc 100644 --- a/lm_eval/tasks/belebele/belebele_afr_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_afr_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "afr_Latn" -"description": "A split of Belebele for the afr_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_afr_Latn" diff --git a/lm_eval/tasks/belebele/belebele_als_Latn.yaml b/lm_eval/tasks/belebele/belebele_als_Latn.yaml index 1bda097d..507fe758 100644 --- a/lm_eval/tasks/belebele/belebele_als_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_als_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "als_Latn" -"description": "A split of Belebele for the als_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_als_Latn" diff --git a/lm_eval/tasks/belebele/belebele_amh_Ethi.yaml b/lm_eval/tasks/belebele/belebele_amh_Ethi.yaml index 615570e7..a0b4bd0a 100644 --- a/lm_eval/tasks/belebele/belebele_amh_Ethi.yaml +++ b/lm_eval/tasks/belebele/belebele_amh_Ethi.yaml @@ -1,4 +1,3 @@ "dataset_name": "amh_Ethi" -"description": "A split of Belebele for the amh_Ethi language.\n\n" "include": "_default_template_yaml" "task": "belebele_amh_Ethi" diff --git a/lm_eval/tasks/belebele/belebele_apc_Arab.yaml b/lm_eval/tasks/belebele/belebele_apc_Arab.yaml index 64102c05..d5d6777f 100644 --- a/lm_eval/tasks/belebele/belebele_apc_Arab.yaml +++ b/lm_eval/tasks/belebele/belebele_apc_Arab.yaml @@ -1,4 +1,3 @@ "dataset_name": "apc_Arab" -"description": "A split of Belebele for the apc_Arab language.\n\n" "include": "_default_template_yaml" "task": "belebele_apc_Arab" diff --git a/lm_eval/tasks/belebele/belebele_arb_Arab.yaml b/lm_eval/tasks/belebele/belebele_arb_Arab.yaml index f789df9c..a61d78ed 100644 --- a/lm_eval/tasks/belebele/belebele_arb_Arab.yaml +++ b/lm_eval/tasks/belebele/belebele_arb_Arab.yaml @@ -1,4 +1,3 @@ "dataset_name": "arb_Arab" -"description": "A split of Belebele for the arb_Arab language.\n\n" "include": "_default_template_yaml" "task": "belebele_arb_Arab" diff --git a/lm_eval/tasks/belebele/belebele_arb_Latn.yaml b/lm_eval/tasks/belebele/belebele_arb_Latn.yaml index f9a4180e..97684654 100644 --- a/lm_eval/tasks/belebele/belebele_arb_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_arb_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "arb_Latn" -"description": "A split of Belebele for the arb_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_arb_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ars_Arab.yaml b/lm_eval/tasks/belebele/belebele_ars_Arab.yaml index 2c7d94c6..ac322a6b 100644 --- a/lm_eval/tasks/belebele/belebele_ars_Arab.yaml +++ b/lm_eval/tasks/belebele/belebele_ars_Arab.yaml @@ -1,4 +1,3 @@ "dataset_name": "ars_Arab" -"description": "A split of Belebele for the ars_Arab language.\n\n" "include": "_default_template_yaml" "task": "belebele_ars_Arab" diff --git a/lm_eval/tasks/belebele/belebele_ary_Arab.yaml b/lm_eval/tasks/belebele/belebele_ary_Arab.yaml index 0a2d45b7..78bb8e29 100644 --- a/lm_eval/tasks/belebele/belebele_ary_Arab.yaml +++ b/lm_eval/tasks/belebele/belebele_ary_Arab.yaml @@ -1,4 +1,3 @@ "dataset_name": "ary_Arab" -"description": "A split of Belebele for the ary_Arab language.\n\n" "include": "_default_template_yaml" "task": "belebele_ary_Arab" diff --git a/lm_eval/tasks/belebele/belebele_arz_Arab.yaml b/lm_eval/tasks/belebele/belebele_arz_Arab.yaml index df78aeb1..28d8565f 100644 --- a/lm_eval/tasks/belebele/belebele_arz_Arab.yaml +++ b/lm_eval/tasks/belebele/belebele_arz_Arab.yaml @@ -1,4 +1,3 @@ "dataset_name": "arz_Arab" -"description": "A split of Belebele for the arz_Arab language.\n\n" "include": "_default_template_yaml" "task": "belebele_arz_Arab" diff --git a/lm_eval/tasks/belebele/belebele_asm_Beng.yaml b/lm_eval/tasks/belebele/belebele_asm_Beng.yaml index 1319b62c..fcc708df 100644 --- a/lm_eval/tasks/belebele/belebele_asm_Beng.yaml +++ b/lm_eval/tasks/belebele/belebele_asm_Beng.yaml @@ -1,4 +1,3 @@ "dataset_name": "asm_Beng" -"description": "A split of Belebele for the asm_Beng language.\n\n" "include": "_default_template_yaml" "task": "belebele_asm_Beng" diff --git a/lm_eval/tasks/belebele/belebele_azj_Latn.yaml b/lm_eval/tasks/belebele/belebele_azj_Latn.yaml index 581b7625..a5add1b7 100644 --- a/lm_eval/tasks/belebele/belebele_azj_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_azj_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "azj_Latn" -"description": "A split of Belebele for the azj_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_azj_Latn" diff --git a/lm_eval/tasks/belebele/belebele_bam_Latn.yaml b/lm_eval/tasks/belebele/belebele_bam_Latn.yaml index 82399037..7c2585d7 100644 --- a/lm_eval/tasks/belebele/belebele_bam_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_bam_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "bam_Latn" -"description": "A split of Belebele for the bam_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_bam_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ben_Beng.yaml b/lm_eval/tasks/belebele/belebele_ben_Beng.yaml index 3fca76df..62e9ea10 100644 --- a/lm_eval/tasks/belebele/belebele_ben_Beng.yaml +++ b/lm_eval/tasks/belebele/belebele_ben_Beng.yaml @@ -1,4 +1,3 @@ "dataset_name": "ben_Beng" -"description": "A split of Belebele for the ben_Beng language.\n\n" "include": "_default_template_yaml" "task": "belebele_ben_Beng" diff --git a/lm_eval/tasks/belebele/belebele_ben_Latn.yaml b/lm_eval/tasks/belebele/belebele_ben_Latn.yaml index a14f0e87..9ed8d7fa 100644 --- a/lm_eval/tasks/belebele/belebele_ben_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_ben_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "ben_Latn" -"description": "A split of Belebele for the ben_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_ben_Latn" diff --git a/lm_eval/tasks/belebele/belebele_bod_Tibt.yaml b/lm_eval/tasks/belebele/belebele_bod_Tibt.yaml index da1b65b4..8cf0464e 100644 --- a/lm_eval/tasks/belebele/belebele_bod_Tibt.yaml +++ b/lm_eval/tasks/belebele/belebele_bod_Tibt.yaml @@ -1,4 +1,3 @@ "dataset_name": "bod_Tibt" -"description": "A split of Belebele for the bod_Tibt language.\n\n" "include": "_default_template_yaml" "task": "belebele_bod_Tibt" diff --git a/lm_eval/tasks/belebele/belebele_bul_Cyrl.yaml b/lm_eval/tasks/belebele/belebele_bul_Cyrl.yaml index 8d2cd4a0..a34c29e3 100644 --- a/lm_eval/tasks/belebele/belebele_bul_Cyrl.yaml +++ b/lm_eval/tasks/belebele/belebele_bul_Cyrl.yaml @@ -1,4 +1,3 @@ "dataset_name": "bul_Cyrl" -"description": "A split of Belebele for the bul_Cyrl language.\n\n" "include": "_default_template_yaml" "task": "belebele_bul_Cyrl" diff --git a/lm_eval/tasks/belebele/belebele_cat_Latn.yaml b/lm_eval/tasks/belebele/belebele_cat_Latn.yaml index b04cabba..fa6af717 100644 --- a/lm_eval/tasks/belebele/belebele_cat_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_cat_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "cat_Latn" -"description": "A split of Belebele for the cat_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_cat_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ceb_Latn.yaml b/lm_eval/tasks/belebele/belebele_ceb_Latn.yaml index 8df66adf..d2d0a2dd 100644 --- a/lm_eval/tasks/belebele/belebele_ceb_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_ceb_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "ceb_Latn" -"description": "A split of Belebele for the ceb_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_ceb_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ces_Latn.yaml b/lm_eval/tasks/belebele/belebele_ces_Latn.yaml index 13b84c63..ee7b6894 100644 --- a/lm_eval/tasks/belebele/belebele_ces_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_ces_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "ces_Latn" -"description": "A split of Belebele for the ces_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_ces_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ckb_Arab.yaml b/lm_eval/tasks/belebele/belebele_ckb_Arab.yaml index bf7465c1..02277ba5 100644 --- a/lm_eval/tasks/belebele/belebele_ckb_Arab.yaml +++ b/lm_eval/tasks/belebele/belebele_ckb_Arab.yaml @@ -1,4 +1,3 @@ "dataset_name": "ckb_Arab" -"description": "A split of Belebele for the ckb_Arab language.\n\n" "include": "_default_template_yaml" "task": "belebele_ckb_Arab" diff --git a/lm_eval/tasks/belebele/belebele_dan_Latn.yaml b/lm_eval/tasks/belebele/belebele_dan_Latn.yaml index 55a7aa5e..45555e9d 100644 --- a/lm_eval/tasks/belebele/belebele_dan_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_dan_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "dan_Latn" -"description": "A split of Belebele for the dan_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_dan_Latn" diff --git a/lm_eval/tasks/belebele/belebele_deu_Latn.yaml b/lm_eval/tasks/belebele/belebele_deu_Latn.yaml index e714c535..543d32a8 100644 --- a/lm_eval/tasks/belebele/belebele_deu_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_deu_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "deu_Latn" -"description": "A split of Belebele for the deu_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_deu_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ell_Grek.yaml b/lm_eval/tasks/belebele/belebele_ell_Grek.yaml index d36ffcf0..8b5bc5ad 100644 --- a/lm_eval/tasks/belebele/belebele_ell_Grek.yaml +++ b/lm_eval/tasks/belebele/belebele_ell_Grek.yaml @@ -1,4 +1,3 @@ "dataset_name": "ell_Grek" -"description": "A split of Belebele for the ell_Grek language.\n\n" "include": "_default_template_yaml" "task": "belebele_ell_Grek" diff --git a/lm_eval/tasks/belebele/belebele_eng_Latn.yaml b/lm_eval/tasks/belebele/belebele_eng_Latn.yaml index 3a50733f..f02cdeb9 100644 --- a/lm_eval/tasks/belebele/belebele_eng_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_eng_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "eng_Latn" -"description": "A split of Belebele for the eng_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_eng_Latn" diff --git a/lm_eval/tasks/belebele/belebele_est_Latn.yaml b/lm_eval/tasks/belebele/belebele_est_Latn.yaml index e7271fc5..3d74778c 100644 --- a/lm_eval/tasks/belebele/belebele_est_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_est_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "est_Latn" -"description": "A split of Belebele for the est_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_est_Latn" diff --git a/lm_eval/tasks/belebele/belebele_eus_Latn.yaml b/lm_eval/tasks/belebele/belebele_eus_Latn.yaml index 36ba7097..18711684 100644 --- a/lm_eval/tasks/belebele/belebele_eus_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_eus_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "eus_Latn" -"description": "A split of Belebele for the eus_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_eus_Latn" diff --git a/lm_eval/tasks/belebele/belebele_fin_Latn.yaml b/lm_eval/tasks/belebele/belebele_fin_Latn.yaml index 4419a4d4..898a6e7a 100644 --- a/lm_eval/tasks/belebele/belebele_fin_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_fin_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "fin_Latn" -"description": "A split of Belebele for the fin_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_fin_Latn" diff --git a/lm_eval/tasks/belebele/belebele_fra_Latn.yaml b/lm_eval/tasks/belebele/belebele_fra_Latn.yaml index 4c2798b6..154b62d8 100644 --- a/lm_eval/tasks/belebele/belebele_fra_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_fra_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "fra_Latn" -"description": "A split of Belebele for the fra_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_fra_Latn" diff --git a/lm_eval/tasks/belebele/belebele_fuv_Latn.yaml b/lm_eval/tasks/belebele/belebele_fuv_Latn.yaml index 8b0cf15b..8015f090 100644 --- a/lm_eval/tasks/belebele/belebele_fuv_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_fuv_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "fuv_Latn" -"description": "A split of Belebele for the fuv_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_fuv_Latn" diff --git a/lm_eval/tasks/belebele/belebele_gaz_Latn.yaml b/lm_eval/tasks/belebele/belebele_gaz_Latn.yaml index 58ac2426..c671796f 100644 --- a/lm_eval/tasks/belebele/belebele_gaz_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_gaz_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "gaz_Latn" -"description": "A split of Belebele for the gaz_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_gaz_Latn" diff --git a/lm_eval/tasks/belebele/belebele_grn_Latn.yaml b/lm_eval/tasks/belebele/belebele_grn_Latn.yaml index e38a79c6..fbb2b8aa 100644 --- a/lm_eval/tasks/belebele/belebele_grn_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_grn_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "grn_Latn" -"description": "A split of Belebele for the grn_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_grn_Latn" diff --git a/lm_eval/tasks/belebele/belebele_guj_Gujr.yaml b/lm_eval/tasks/belebele/belebele_guj_Gujr.yaml index 49a0bf09..02e716d0 100644 --- a/lm_eval/tasks/belebele/belebele_guj_Gujr.yaml +++ b/lm_eval/tasks/belebele/belebele_guj_Gujr.yaml @@ -1,4 +1,3 @@ "dataset_name": "guj_Gujr" -"description": "A split of Belebele for the guj_Gujr language.\n\n" "include": "_default_template_yaml" "task": "belebele_guj_Gujr" diff --git a/lm_eval/tasks/belebele/belebele_hat_Latn.yaml b/lm_eval/tasks/belebele/belebele_hat_Latn.yaml index f35731bb..691da434 100644 --- a/lm_eval/tasks/belebele/belebele_hat_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_hat_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "hat_Latn" -"description": "A split of Belebele for the hat_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_hat_Latn" diff --git a/lm_eval/tasks/belebele/belebele_hau_Latn.yaml b/lm_eval/tasks/belebele/belebele_hau_Latn.yaml index e7003c80..ff94e767 100644 --- a/lm_eval/tasks/belebele/belebele_hau_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_hau_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "hau_Latn" -"description": "A split of Belebele for the hau_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_hau_Latn" diff --git a/lm_eval/tasks/belebele/belebele_heb_Hebr.yaml b/lm_eval/tasks/belebele/belebele_heb_Hebr.yaml index 1ad5d3db..b46a240f 100644 --- a/lm_eval/tasks/belebele/belebele_heb_Hebr.yaml +++ b/lm_eval/tasks/belebele/belebele_heb_Hebr.yaml @@ -1,4 +1,3 @@ "dataset_name": "heb_Hebr" -"description": "A split of Belebele for the heb_Hebr language.\n\n" "include": "_default_template_yaml" "task": "belebele_heb_Hebr" diff --git a/lm_eval/tasks/belebele/belebele_hin_Deva.yaml b/lm_eval/tasks/belebele/belebele_hin_Deva.yaml index bc19d627..e3e7c1ae 100644 --- a/lm_eval/tasks/belebele/belebele_hin_Deva.yaml +++ b/lm_eval/tasks/belebele/belebele_hin_Deva.yaml @@ -1,4 +1,3 @@ "dataset_name": "hin_Deva" -"description": "A split of Belebele for the hin_Deva language.\n\n" "include": "_default_template_yaml" "task": "belebele_hin_Deva" diff --git a/lm_eval/tasks/belebele/belebele_hin_Latn.yaml b/lm_eval/tasks/belebele/belebele_hin_Latn.yaml index c8908768..37085a32 100644 --- a/lm_eval/tasks/belebele/belebele_hin_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_hin_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "hin_Latn" -"description": "A split of Belebele for the hin_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_hin_Latn" diff --git a/lm_eval/tasks/belebele/belebele_hrv_Latn.yaml b/lm_eval/tasks/belebele/belebele_hrv_Latn.yaml index 94589e0b..1b501540 100644 --- a/lm_eval/tasks/belebele/belebele_hrv_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_hrv_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "hrv_Latn" -"description": "A split of Belebele for the hrv_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_hrv_Latn" diff --git a/lm_eval/tasks/belebele/belebele_hun_Latn.yaml b/lm_eval/tasks/belebele/belebele_hun_Latn.yaml index c8cf626c..6d211f59 100644 --- a/lm_eval/tasks/belebele/belebele_hun_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_hun_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "hun_Latn" -"description": "A split of Belebele for the hun_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_hun_Latn" diff --git a/lm_eval/tasks/belebele/belebele_hye_Armn.yaml b/lm_eval/tasks/belebele/belebele_hye_Armn.yaml index 4c9698c6..6752b2f7 100644 --- a/lm_eval/tasks/belebele/belebele_hye_Armn.yaml +++ b/lm_eval/tasks/belebele/belebele_hye_Armn.yaml @@ -1,4 +1,3 @@ "dataset_name": "hye_Armn" -"description": "A split of Belebele for the hye_Armn language.\n\n" "include": "_default_template_yaml" "task": "belebele_hye_Armn" diff --git a/lm_eval/tasks/belebele/belebele_ibo_Latn.yaml b/lm_eval/tasks/belebele/belebele_ibo_Latn.yaml index 4b30729f..17e48a75 100644 --- a/lm_eval/tasks/belebele/belebele_ibo_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_ibo_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "ibo_Latn" -"description": "A split of Belebele for the ibo_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_ibo_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ilo_Latn.yaml b/lm_eval/tasks/belebele/belebele_ilo_Latn.yaml index 1780bb28..457aa2e1 100644 --- a/lm_eval/tasks/belebele/belebele_ilo_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_ilo_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "ilo_Latn" -"description": "A split of Belebele for the ilo_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_ilo_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ind_Latn.yaml b/lm_eval/tasks/belebele/belebele_ind_Latn.yaml index 64eaa2bf..c90532f4 100644 --- a/lm_eval/tasks/belebele/belebele_ind_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_ind_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "ind_Latn" -"description": "A split of Belebele for the ind_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_ind_Latn" diff --git a/lm_eval/tasks/belebele/belebele_isl_Latn.yaml b/lm_eval/tasks/belebele/belebele_isl_Latn.yaml index f6dd5145..eece64e1 100644 --- a/lm_eval/tasks/belebele/belebele_isl_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_isl_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "isl_Latn" -"description": "A split of Belebele for the isl_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_isl_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ita_Latn.yaml b/lm_eval/tasks/belebele/belebele_ita_Latn.yaml index 8c84e2cb..ac958a6a 100644 --- a/lm_eval/tasks/belebele/belebele_ita_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_ita_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "ita_Latn" -"description": "A split of Belebele for the ita_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_ita_Latn" diff --git a/lm_eval/tasks/belebele/belebele_jav_Latn.yaml b/lm_eval/tasks/belebele/belebele_jav_Latn.yaml index 64f5eb73..57435d1a 100644 --- a/lm_eval/tasks/belebele/belebele_jav_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_jav_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "jav_Latn" -"description": "A split of Belebele for the jav_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_jav_Latn" diff --git a/lm_eval/tasks/belebele/belebele_jpn_Jpan.yaml b/lm_eval/tasks/belebele/belebele_jpn_Jpan.yaml index 32e0cdbc..b6d09451 100644 --- a/lm_eval/tasks/belebele/belebele_jpn_Jpan.yaml +++ b/lm_eval/tasks/belebele/belebele_jpn_Jpan.yaml @@ -1,4 +1,3 @@ "dataset_name": "jpn_Jpan" -"description": "A split of Belebele for the jpn_Jpan language.\n\n" "include": "_default_template_yaml" "task": "belebele_jpn_Jpan" diff --git a/lm_eval/tasks/belebele/belebele_kac_Latn.yaml b/lm_eval/tasks/belebele/belebele_kac_Latn.yaml index 57a73540..090c1356 100644 --- a/lm_eval/tasks/belebele/belebele_kac_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_kac_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "kac_Latn" -"description": "A split of Belebele for the kac_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_kac_Latn" diff --git a/lm_eval/tasks/belebele/belebele_kan_Knda.yaml b/lm_eval/tasks/belebele/belebele_kan_Knda.yaml index 4633623c..0085fff8 100644 --- a/lm_eval/tasks/belebele/belebele_kan_Knda.yaml +++ b/lm_eval/tasks/belebele/belebele_kan_Knda.yaml @@ -1,4 +1,3 @@ "dataset_name": "kan_Knda" -"description": "A split of Belebele for the kan_Knda language.\n\n" "include": "_default_template_yaml" "task": "belebele_kan_Knda" diff --git a/lm_eval/tasks/belebele/belebele_kat_Geor.yaml b/lm_eval/tasks/belebele/belebele_kat_Geor.yaml index 2354d16f..0b681bba 100644 --- a/lm_eval/tasks/belebele/belebele_kat_Geor.yaml +++ b/lm_eval/tasks/belebele/belebele_kat_Geor.yaml @@ -1,4 +1,3 @@ "dataset_name": "kat_Geor" -"description": "A split of Belebele for the kat_Geor language.\n\n" "include": "_default_template_yaml" "task": "belebele_kat_Geor" diff --git a/lm_eval/tasks/belebele/belebele_kaz_Cyrl.yaml b/lm_eval/tasks/belebele/belebele_kaz_Cyrl.yaml index 60b3524e..70c7c155 100644 --- a/lm_eval/tasks/belebele/belebele_kaz_Cyrl.yaml +++ b/lm_eval/tasks/belebele/belebele_kaz_Cyrl.yaml @@ -1,4 +1,3 @@ "dataset_name": "kaz_Cyrl" -"description": "A split of Belebele for the kaz_Cyrl language.\n\n" "include": "_default_template_yaml" "task": "belebele_kaz_Cyrl" diff --git a/lm_eval/tasks/belebele/belebele_kea_Latn.yaml b/lm_eval/tasks/belebele/belebele_kea_Latn.yaml index cae6b6a9..aae70568 100644 --- a/lm_eval/tasks/belebele/belebele_kea_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_kea_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "kea_Latn" -"description": "A split of Belebele for the kea_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_kea_Latn" diff --git a/lm_eval/tasks/belebele/belebele_khk_Cyrl.yaml b/lm_eval/tasks/belebele/belebele_khk_Cyrl.yaml index 8624d9f0..53d8839e 100644 --- a/lm_eval/tasks/belebele/belebele_khk_Cyrl.yaml +++ b/lm_eval/tasks/belebele/belebele_khk_Cyrl.yaml @@ -1,4 +1,3 @@ "dataset_name": "khk_Cyrl" -"description": "A split of Belebele for the khk_Cyrl language.\n\n" "include": "_default_template_yaml" "task": "belebele_khk_Cyrl" diff --git a/lm_eval/tasks/belebele/belebele_khm_Khmr.yaml b/lm_eval/tasks/belebele/belebele_khm_Khmr.yaml index 18be28c6..ef388cd2 100644 --- a/lm_eval/tasks/belebele/belebele_khm_Khmr.yaml +++ b/lm_eval/tasks/belebele/belebele_khm_Khmr.yaml @@ -1,4 +1,3 @@ "dataset_name": "khm_Khmr" -"description": "A split of Belebele for the khm_Khmr language.\n\n" "include": "_default_template_yaml" "task": "belebele_khm_Khmr" diff --git a/lm_eval/tasks/belebele/belebele_kin_Latn.yaml b/lm_eval/tasks/belebele/belebele_kin_Latn.yaml index 137d344d..edfeb80a 100644 --- a/lm_eval/tasks/belebele/belebele_kin_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_kin_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "kin_Latn" -"description": "A split of Belebele for the kin_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_kin_Latn" diff --git a/lm_eval/tasks/belebele/belebele_kir_Cyrl.yaml b/lm_eval/tasks/belebele/belebele_kir_Cyrl.yaml index cbb01f8a..a6cb7a4d 100644 --- a/lm_eval/tasks/belebele/belebele_kir_Cyrl.yaml +++ b/lm_eval/tasks/belebele/belebele_kir_Cyrl.yaml @@ -1,4 +1,3 @@ "dataset_name": "kir_Cyrl" -"description": "A split of Belebele for the kir_Cyrl language.\n\n" "include": "_default_template_yaml" "task": "belebele_kir_Cyrl" diff --git a/lm_eval/tasks/belebele/belebele_kor_Hang.yaml b/lm_eval/tasks/belebele/belebele_kor_Hang.yaml index 2d50e396..ece7f55e 100644 --- a/lm_eval/tasks/belebele/belebele_kor_Hang.yaml +++ b/lm_eval/tasks/belebele/belebele_kor_Hang.yaml @@ -1,4 +1,3 @@ "dataset_name": "kor_Hang" -"description": "A split of Belebele for the kor_Hang language.\n\n" "include": "_default_template_yaml" "task": "belebele_kor_Hang" diff --git a/lm_eval/tasks/belebele/belebele_lao_Laoo.yaml b/lm_eval/tasks/belebele/belebele_lao_Laoo.yaml index f2623c34..6012ac1c 100644 --- a/lm_eval/tasks/belebele/belebele_lao_Laoo.yaml +++ b/lm_eval/tasks/belebele/belebele_lao_Laoo.yaml @@ -1,4 +1,3 @@ "dataset_name": "lao_Laoo" -"description": "A split of Belebele for the lao_Laoo language.\n\n" "include": "_default_template_yaml" "task": "belebele_lao_Laoo" diff --git a/lm_eval/tasks/belebele/belebele_lin_Latn.yaml b/lm_eval/tasks/belebele/belebele_lin_Latn.yaml index 6084a333..fb33b859 100644 --- a/lm_eval/tasks/belebele/belebele_lin_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_lin_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "lin_Latn" -"description": "A split of Belebele for the lin_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_lin_Latn" diff --git a/lm_eval/tasks/belebele/belebele_lit_Latn.yaml b/lm_eval/tasks/belebele/belebele_lit_Latn.yaml index fd78db81..e9943bd0 100644 --- a/lm_eval/tasks/belebele/belebele_lit_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_lit_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "lit_Latn" -"description": "A split of Belebele for the lit_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_lit_Latn" diff --git a/lm_eval/tasks/belebele/belebele_lug_Latn.yaml b/lm_eval/tasks/belebele/belebele_lug_Latn.yaml index 9444b86b..19d4f056 100644 --- a/lm_eval/tasks/belebele/belebele_lug_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_lug_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "lug_Latn" -"description": "A split of Belebele for the lug_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_lug_Latn" diff --git a/lm_eval/tasks/belebele/belebele_luo_Latn.yaml b/lm_eval/tasks/belebele/belebele_luo_Latn.yaml index 3a719081..73cc0aee 100644 --- a/lm_eval/tasks/belebele/belebele_luo_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_luo_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "luo_Latn" -"description": "A split of Belebele for the luo_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_luo_Latn" diff --git a/lm_eval/tasks/belebele/belebele_lvs_Latn.yaml b/lm_eval/tasks/belebele/belebele_lvs_Latn.yaml index be393dde..18d291e5 100644 --- a/lm_eval/tasks/belebele/belebele_lvs_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_lvs_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "lvs_Latn" -"description": "A split of Belebele for the lvs_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_lvs_Latn" diff --git a/lm_eval/tasks/belebele/belebele_mal_Mlym.yaml b/lm_eval/tasks/belebele/belebele_mal_Mlym.yaml index 24585d01..283c67b2 100644 --- a/lm_eval/tasks/belebele/belebele_mal_Mlym.yaml +++ b/lm_eval/tasks/belebele/belebele_mal_Mlym.yaml @@ -1,4 +1,3 @@ "dataset_name": "mal_Mlym" -"description": "A split of Belebele for the mal_Mlym language.\n\n" "include": "_default_template_yaml" "task": "belebele_mal_Mlym" diff --git a/lm_eval/tasks/belebele/belebele_mar_Deva.yaml b/lm_eval/tasks/belebele/belebele_mar_Deva.yaml index 7b04ff4a..3a103e88 100644 --- a/lm_eval/tasks/belebele/belebele_mar_Deva.yaml +++ b/lm_eval/tasks/belebele/belebele_mar_Deva.yaml @@ -1,4 +1,3 @@ "dataset_name": "mar_Deva" -"description": "A split of Belebele for the mar_Deva language.\n\n" "include": "_default_template_yaml" "task": "belebele_mar_Deva" diff --git a/lm_eval/tasks/belebele/belebele_mkd_Cyrl.yaml b/lm_eval/tasks/belebele/belebele_mkd_Cyrl.yaml index 49f91a5f..e3a696b4 100644 --- a/lm_eval/tasks/belebele/belebele_mkd_Cyrl.yaml +++ b/lm_eval/tasks/belebele/belebele_mkd_Cyrl.yaml @@ -1,4 +1,3 @@ "dataset_name": "mkd_Cyrl" -"description": "A split of Belebele for the mkd_Cyrl language.\n\n" "include": "_default_template_yaml" "task": "belebele_mkd_Cyrl" diff --git a/lm_eval/tasks/belebele/belebele_mlt_Latn.yaml b/lm_eval/tasks/belebele/belebele_mlt_Latn.yaml index 1ecc0f38..2067469a 100644 --- a/lm_eval/tasks/belebele/belebele_mlt_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_mlt_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "mlt_Latn" -"description": "A split of Belebele for the mlt_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_mlt_Latn" diff --git a/lm_eval/tasks/belebele/belebele_mri_Latn.yaml b/lm_eval/tasks/belebele/belebele_mri_Latn.yaml index 86c35b59..6cdfb5a3 100644 --- a/lm_eval/tasks/belebele/belebele_mri_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_mri_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "mri_Latn" -"description": "A split of Belebele for the mri_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_mri_Latn" diff --git a/lm_eval/tasks/belebele/belebele_mya_Mymr.yaml b/lm_eval/tasks/belebele/belebele_mya_Mymr.yaml index ff1c10e8..02a632b8 100644 --- a/lm_eval/tasks/belebele/belebele_mya_Mymr.yaml +++ b/lm_eval/tasks/belebele/belebele_mya_Mymr.yaml @@ -1,4 +1,3 @@ "dataset_name": "mya_Mymr" -"description": "A split of Belebele for the mya_Mymr language.\n\n" "include": "_default_template_yaml" "task": "belebele_mya_Mymr" diff --git a/lm_eval/tasks/belebele/belebele_nld_Latn.yaml b/lm_eval/tasks/belebele/belebele_nld_Latn.yaml index f97417c7..e32ebd4d 100644 --- a/lm_eval/tasks/belebele/belebele_nld_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_nld_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "nld_Latn" -"description": "A split of Belebele for the nld_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_nld_Latn" diff --git a/lm_eval/tasks/belebele/belebele_nob_Latn.yaml b/lm_eval/tasks/belebele/belebele_nob_Latn.yaml index 62284741..29c690e5 100644 --- a/lm_eval/tasks/belebele/belebele_nob_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_nob_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "nob_Latn" -"description": "A split of Belebele for the nob_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_nob_Latn" diff --git a/lm_eval/tasks/belebele/belebele_npi_Deva.yaml b/lm_eval/tasks/belebele/belebele_npi_Deva.yaml index ecd7920b..fe2a8226 100644 --- a/lm_eval/tasks/belebele/belebele_npi_Deva.yaml +++ b/lm_eval/tasks/belebele/belebele_npi_Deva.yaml @@ -1,4 +1,3 @@ "dataset_name": "npi_Deva" -"description": "A split of Belebele for the npi_Deva language.\n\n" "include": "_default_template_yaml" "task": "belebele_npi_Deva" diff --git a/lm_eval/tasks/belebele/belebele_npi_Latn.yaml b/lm_eval/tasks/belebele/belebele_npi_Latn.yaml index 439730b5..60e08809 100644 --- a/lm_eval/tasks/belebele/belebele_npi_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_npi_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "npi_Latn" -"description": "A split of Belebele for the npi_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_npi_Latn" diff --git a/lm_eval/tasks/belebele/belebele_nso_Latn.yaml b/lm_eval/tasks/belebele/belebele_nso_Latn.yaml index 24821280..7029428b 100644 --- a/lm_eval/tasks/belebele/belebele_nso_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_nso_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "nso_Latn" -"description": "A split of Belebele for the nso_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_nso_Latn" diff --git a/lm_eval/tasks/belebele/belebele_nya_Latn.yaml b/lm_eval/tasks/belebele/belebele_nya_Latn.yaml index 987fa736..b648d75e 100644 --- a/lm_eval/tasks/belebele/belebele_nya_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_nya_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "nya_Latn" -"description": "A split of Belebele for the nya_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_nya_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ory_Orya.yaml b/lm_eval/tasks/belebele/belebele_ory_Orya.yaml index 0cbb9bf8..3a55ff01 100644 --- a/lm_eval/tasks/belebele/belebele_ory_Orya.yaml +++ b/lm_eval/tasks/belebele/belebele_ory_Orya.yaml @@ -1,4 +1,3 @@ "dataset_name": "ory_Orya" -"description": "A split of Belebele for the ory_Orya language.\n\n" "include": "_default_template_yaml" "task": "belebele_ory_Orya" diff --git a/lm_eval/tasks/belebele/belebele_pan_Guru.yaml b/lm_eval/tasks/belebele/belebele_pan_Guru.yaml index c266060c..b61bc026 100644 --- a/lm_eval/tasks/belebele/belebele_pan_Guru.yaml +++ b/lm_eval/tasks/belebele/belebele_pan_Guru.yaml @@ -1,4 +1,3 @@ "dataset_name": "pan_Guru" -"description": "A split of Belebele for the pan_Guru language.\n\n" "include": "_default_template_yaml" "task": "belebele_pan_Guru" diff --git a/lm_eval/tasks/belebele/belebele_pbt_Arab.yaml b/lm_eval/tasks/belebele/belebele_pbt_Arab.yaml index f018adca..4a0631e7 100644 --- a/lm_eval/tasks/belebele/belebele_pbt_Arab.yaml +++ b/lm_eval/tasks/belebele/belebele_pbt_Arab.yaml @@ -1,4 +1,3 @@ "dataset_name": "pbt_Arab" -"description": "A split of Belebele for the pbt_Arab language.\n\n" "include": "_default_template_yaml" "task": "belebele_pbt_Arab" diff --git a/lm_eval/tasks/belebele/belebele_pes_Arab.yaml b/lm_eval/tasks/belebele/belebele_pes_Arab.yaml index be1a4678..70b5608c 100644 --- a/lm_eval/tasks/belebele/belebele_pes_Arab.yaml +++ b/lm_eval/tasks/belebele/belebele_pes_Arab.yaml @@ -1,4 +1,3 @@ "dataset_name": "pes_Arab" -"description": "A split of Belebele for the pes_Arab language.\n\n" "include": "_default_template_yaml" "task": "belebele_pes_Arab" diff --git a/lm_eval/tasks/belebele/belebele_plt_Latn.yaml b/lm_eval/tasks/belebele/belebele_plt_Latn.yaml index ef0ea9c5..ecd13144 100644 --- a/lm_eval/tasks/belebele/belebele_plt_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_plt_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "plt_Latn" -"description": "A split of Belebele for the plt_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_plt_Latn" diff --git a/lm_eval/tasks/belebele/belebele_pol_Latn.yaml b/lm_eval/tasks/belebele/belebele_pol_Latn.yaml index 5091fa9a..4c3aedae 100644 --- a/lm_eval/tasks/belebele/belebele_pol_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_pol_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "pol_Latn" -"description": "A split of Belebele for the pol_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_pol_Latn" diff --git a/lm_eval/tasks/belebele/belebele_por_Latn.yaml b/lm_eval/tasks/belebele/belebele_por_Latn.yaml index 4d735f1c..1b4636a8 100644 --- a/lm_eval/tasks/belebele/belebele_por_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_por_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "por_Latn" -"description": "A split of Belebele for the por_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_por_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ron_Latn.yaml b/lm_eval/tasks/belebele/belebele_ron_Latn.yaml index 454b1682..5667ecbc 100644 --- a/lm_eval/tasks/belebele/belebele_ron_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_ron_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "ron_Latn" -"description": "A split of Belebele for the ron_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_ron_Latn" diff --git a/lm_eval/tasks/belebele/belebele_rus_Cyrl.yaml b/lm_eval/tasks/belebele/belebele_rus_Cyrl.yaml index 7e2be793..17d3a351 100644 --- a/lm_eval/tasks/belebele/belebele_rus_Cyrl.yaml +++ b/lm_eval/tasks/belebele/belebele_rus_Cyrl.yaml @@ -1,4 +1,3 @@ "dataset_name": "rus_Cyrl" -"description": "A split of Belebele for the rus_Cyrl language.\n\n" "include": "_default_template_yaml" "task": "belebele_rus_Cyrl" diff --git a/lm_eval/tasks/belebele/belebele_shn_Mymr.yaml b/lm_eval/tasks/belebele/belebele_shn_Mymr.yaml index 3ebc839f..d19582f5 100644 --- a/lm_eval/tasks/belebele/belebele_shn_Mymr.yaml +++ b/lm_eval/tasks/belebele/belebele_shn_Mymr.yaml @@ -1,4 +1,3 @@ "dataset_name": "shn_Mymr" -"description": "A split of Belebele for the shn_Mymr language.\n\n" "include": "_default_template_yaml" "task": "belebele_shn_Mymr" diff --git a/lm_eval/tasks/belebele/belebele_sin_Latn.yaml b/lm_eval/tasks/belebele/belebele_sin_Latn.yaml index 05953e39..7b631eac 100644 --- a/lm_eval/tasks/belebele/belebele_sin_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_sin_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "sin_Latn" -"description": "A split of Belebele for the sin_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_sin_Latn" diff --git a/lm_eval/tasks/belebele/belebele_sin_Sinh.yaml b/lm_eval/tasks/belebele/belebele_sin_Sinh.yaml index ab802a87..b025120b 100644 --- a/lm_eval/tasks/belebele/belebele_sin_Sinh.yaml +++ b/lm_eval/tasks/belebele/belebele_sin_Sinh.yaml @@ -1,4 +1,3 @@ "dataset_name": "sin_Sinh" -"description": "A split of Belebele for the sin_Sinh language.\n\n" "include": "_default_template_yaml" "task": "belebele_sin_Sinh" diff --git a/lm_eval/tasks/belebele/belebele_slk_Latn.yaml b/lm_eval/tasks/belebele/belebele_slk_Latn.yaml index 023139f8..00a1c163 100644 --- a/lm_eval/tasks/belebele/belebele_slk_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_slk_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "slk_Latn" -"description": "A split of Belebele for the slk_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_slk_Latn" diff --git a/lm_eval/tasks/belebele/belebele_slv_Latn.yaml b/lm_eval/tasks/belebele/belebele_slv_Latn.yaml index 5de85c80..3567fb5d 100644 --- a/lm_eval/tasks/belebele/belebele_slv_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_slv_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "slv_Latn" -"description": "A split of Belebele for the slv_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_slv_Latn" diff --git a/lm_eval/tasks/belebele/belebele_sna_Latn.yaml b/lm_eval/tasks/belebele/belebele_sna_Latn.yaml index fc624123..e9f01e83 100644 --- a/lm_eval/tasks/belebele/belebele_sna_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_sna_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "sna_Latn" -"description": "A split of Belebele for the sna_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_sna_Latn" diff --git a/lm_eval/tasks/belebele/belebele_snd_Arab.yaml b/lm_eval/tasks/belebele/belebele_snd_Arab.yaml index ce41c40e..af16a289 100644 --- a/lm_eval/tasks/belebele/belebele_snd_Arab.yaml +++ b/lm_eval/tasks/belebele/belebele_snd_Arab.yaml @@ -1,4 +1,3 @@ "dataset_name": "snd_Arab" -"description": "A split of Belebele for the snd_Arab language.\n\n" "include": "_default_template_yaml" "task": "belebele_snd_Arab" diff --git a/lm_eval/tasks/belebele/belebele_som_Latn.yaml b/lm_eval/tasks/belebele/belebele_som_Latn.yaml index 330c2da3..06aa53c6 100644 --- a/lm_eval/tasks/belebele/belebele_som_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_som_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "som_Latn" -"description": "A split of Belebele for the som_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_som_Latn" diff --git a/lm_eval/tasks/belebele/belebele_sot_Latn.yaml b/lm_eval/tasks/belebele/belebele_sot_Latn.yaml index dcc0f9cc..bb05d3cd 100644 --- a/lm_eval/tasks/belebele/belebele_sot_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_sot_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "sot_Latn" -"description": "A split of Belebele for the sot_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_sot_Latn" diff --git a/lm_eval/tasks/belebele/belebele_spa_Latn.yaml b/lm_eval/tasks/belebele/belebele_spa_Latn.yaml index b86137af..f0ba62ea 100644 --- a/lm_eval/tasks/belebele/belebele_spa_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_spa_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "spa_Latn" -"description": "A split of Belebele for the spa_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_spa_Latn" diff --git a/lm_eval/tasks/belebele/belebele_srp_Cyrl.yaml b/lm_eval/tasks/belebele/belebele_srp_Cyrl.yaml index 2f4307a3..42a20f6d 100644 --- a/lm_eval/tasks/belebele/belebele_srp_Cyrl.yaml +++ b/lm_eval/tasks/belebele/belebele_srp_Cyrl.yaml @@ -1,4 +1,3 @@ "dataset_name": "srp_Cyrl" -"description": "A split of Belebele for the srp_Cyrl language.\n\n" "include": "_default_template_yaml" "task": "belebele_srp_Cyrl" diff --git a/lm_eval/tasks/belebele/belebele_ssw_Latn.yaml b/lm_eval/tasks/belebele/belebele_ssw_Latn.yaml index f83780bd..a3655d7a 100644 --- a/lm_eval/tasks/belebele/belebele_ssw_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_ssw_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "ssw_Latn" -"description": "A split of Belebele for the ssw_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_ssw_Latn" diff --git a/lm_eval/tasks/belebele/belebele_sun_Latn.yaml b/lm_eval/tasks/belebele/belebele_sun_Latn.yaml index fe41aead..710b87b9 100644 --- a/lm_eval/tasks/belebele/belebele_sun_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_sun_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "sun_Latn" -"description": "A split of Belebele for the sun_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_sun_Latn" diff --git a/lm_eval/tasks/belebele/belebele_swe_Latn.yaml b/lm_eval/tasks/belebele/belebele_swe_Latn.yaml index 97c0759f..df1e896a 100644 --- a/lm_eval/tasks/belebele/belebele_swe_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_swe_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "swe_Latn" -"description": "A split of Belebele for the swe_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_swe_Latn" diff --git a/lm_eval/tasks/belebele/belebele_swh_Latn.yaml b/lm_eval/tasks/belebele/belebele_swh_Latn.yaml index 5ab3464a..0a006b91 100644 --- a/lm_eval/tasks/belebele/belebele_swh_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_swh_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "swh_Latn" -"description": "A split of Belebele for the swh_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_swh_Latn" diff --git a/lm_eval/tasks/belebele/belebele_tam_Taml.yaml b/lm_eval/tasks/belebele/belebele_tam_Taml.yaml index 05a84212..0965cbd5 100644 --- a/lm_eval/tasks/belebele/belebele_tam_Taml.yaml +++ b/lm_eval/tasks/belebele/belebele_tam_Taml.yaml @@ -1,4 +1,3 @@ "dataset_name": "tam_Taml" -"description": "A split of Belebele for the tam_Taml language.\n\n" "include": "_default_template_yaml" "task": "belebele_tam_Taml" diff --git a/lm_eval/tasks/belebele/belebele_tel_Telu.yaml b/lm_eval/tasks/belebele/belebele_tel_Telu.yaml index 30c5f89e..4ae5fad4 100644 --- a/lm_eval/tasks/belebele/belebele_tel_Telu.yaml +++ b/lm_eval/tasks/belebele/belebele_tel_Telu.yaml @@ -1,4 +1,3 @@ "dataset_name": "tel_Telu" -"description": "A split of Belebele for the tel_Telu language.\n\n" "include": "_default_template_yaml" "task": "belebele_tel_Telu" diff --git a/lm_eval/tasks/belebele/belebele_tgk_Cyrl.yaml b/lm_eval/tasks/belebele/belebele_tgk_Cyrl.yaml index 1a68bb92..fd6bf5b6 100644 --- a/lm_eval/tasks/belebele/belebele_tgk_Cyrl.yaml +++ b/lm_eval/tasks/belebele/belebele_tgk_Cyrl.yaml @@ -1,4 +1,3 @@ "dataset_name": "tgk_Cyrl" -"description": "A split of Belebele for the tgk_Cyrl language.\n\n" "include": "_default_template_yaml" "task": "belebele_tgk_Cyrl" diff --git a/lm_eval/tasks/belebele/belebele_tgl_Latn.yaml b/lm_eval/tasks/belebele/belebele_tgl_Latn.yaml index 42a2d8d0..6410484a 100644 --- a/lm_eval/tasks/belebele/belebele_tgl_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_tgl_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "tgl_Latn" -"description": "A split of Belebele for the tgl_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_tgl_Latn" diff --git a/lm_eval/tasks/belebele/belebele_tha_Thai.yaml b/lm_eval/tasks/belebele/belebele_tha_Thai.yaml index 254c046e..c3786ccf 100644 --- a/lm_eval/tasks/belebele/belebele_tha_Thai.yaml +++ b/lm_eval/tasks/belebele/belebele_tha_Thai.yaml @@ -1,4 +1,3 @@ "dataset_name": "tha_Thai" -"description": "A split of Belebele for the tha_Thai language.\n\n" "include": "_default_template_yaml" "task": "belebele_tha_Thai" diff --git a/lm_eval/tasks/belebele/belebele_tir_Ethi.yaml b/lm_eval/tasks/belebele/belebele_tir_Ethi.yaml index c456c566..982ebb05 100644 --- a/lm_eval/tasks/belebele/belebele_tir_Ethi.yaml +++ b/lm_eval/tasks/belebele/belebele_tir_Ethi.yaml @@ -1,4 +1,3 @@ "dataset_name": "tir_Ethi" -"description": "A split of Belebele for the tir_Ethi language.\n\n" "include": "_default_template_yaml" "task": "belebele_tir_Ethi" diff --git a/lm_eval/tasks/belebele/belebele_tsn_Latn.yaml b/lm_eval/tasks/belebele/belebele_tsn_Latn.yaml index 77ef814e..026c20f5 100644 --- a/lm_eval/tasks/belebele/belebele_tsn_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_tsn_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "tsn_Latn" -"description": "A split of Belebele for the tsn_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_tsn_Latn" diff --git a/lm_eval/tasks/belebele/belebele_tso_Latn.yaml b/lm_eval/tasks/belebele/belebele_tso_Latn.yaml index cbfebb32..91c75d97 100644 --- a/lm_eval/tasks/belebele/belebele_tso_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_tso_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "tso_Latn" -"description": "A split of Belebele for the tso_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_tso_Latn" diff --git a/lm_eval/tasks/belebele/belebele_tur_Latn.yaml b/lm_eval/tasks/belebele/belebele_tur_Latn.yaml index 61a55691..e8f5946b 100644 --- a/lm_eval/tasks/belebele/belebele_tur_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_tur_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "tur_Latn" -"description": "A split of Belebele for the tur_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_tur_Latn" diff --git a/lm_eval/tasks/belebele/belebele_ukr_Cyrl.yaml b/lm_eval/tasks/belebele/belebele_ukr_Cyrl.yaml index bf496a6d..1f247407 100644 --- a/lm_eval/tasks/belebele/belebele_ukr_Cyrl.yaml +++ b/lm_eval/tasks/belebele/belebele_ukr_Cyrl.yaml @@ -1,4 +1,3 @@ "dataset_name": "ukr_Cyrl" -"description": "A split of Belebele for the ukr_Cyrl language.\n\n" "include": "_default_template_yaml" "task": "belebele_ukr_Cyrl" diff --git a/lm_eval/tasks/belebele/belebele_urd_Arab.yaml b/lm_eval/tasks/belebele/belebele_urd_Arab.yaml index b210f8b6..58a2016d 100644 --- a/lm_eval/tasks/belebele/belebele_urd_Arab.yaml +++ b/lm_eval/tasks/belebele/belebele_urd_Arab.yaml @@ -1,4 +1,3 @@ "dataset_name": "urd_Arab" -"description": "A split of Belebele for the urd_Arab language.\n\n" "include": "_default_template_yaml" "task": "belebele_urd_Arab" diff --git a/lm_eval/tasks/belebele/belebele_urd_Latn.yaml b/lm_eval/tasks/belebele/belebele_urd_Latn.yaml index d48e79e6..a618465b 100644 --- a/lm_eval/tasks/belebele/belebele_urd_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_urd_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "urd_Latn" -"description": "A split of Belebele for the urd_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_urd_Latn" diff --git a/lm_eval/tasks/belebele/belebele_uzn_Latn.yaml b/lm_eval/tasks/belebele/belebele_uzn_Latn.yaml index e45b09e9..4c8c0567 100644 --- a/lm_eval/tasks/belebele/belebele_uzn_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_uzn_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "uzn_Latn" -"description": "A split of Belebele for the uzn_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_uzn_Latn" diff --git a/lm_eval/tasks/belebele/belebele_vie_Latn.yaml b/lm_eval/tasks/belebele/belebele_vie_Latn.yaml index a420a4c9..4c676ad9 100644 --- a/lm_eval/tasks/belebele/belebele_vie_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_vie_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "vie_Latn" -"description": "A split of Belebele for the vie_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_vie_Latn" diff --git a/lm_eval/tasks/belebele/belebele_war_Latn.yaml b/lm_eval/tasks/belebele/belebele_war_Latn.yaml index 45dfd5fa..4b133e24 100644 --- a/lm_eval/tasks/belebele/belebele_war_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_war_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "war_Latn" -"description": "A split of Belebele for the war_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_war_Latn" diff --git a/lm_eval/tasks/belebele/belebele_wol_Latn.yaml b/lm_eval/tasks/belebele/belebele_wol_Latn.yaml index 1cac6be5..67b0530c 100644 --- a/lm_eval/tasks/belebele/belebele_wol_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_wol_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "wol_Latn" -"description": "A split of Belebele for the wol_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_wol_Latn" diff --git a/lm_eval/tasks/belebele/belebele_xho_Latn.yaml b/lm_eval/tasks/belebele/belebele_xho_Latn.yaml index a1e36894..7665f9b5 100644 --- a/lm_eval/tasks/belebele/belebele_xho_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_xho_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "xho_Latn" -"description": "A split of Belebele for the xho_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_xho_Latn" diff --git a/lm_eval/tasks/belebele/belebele_yor_Latn.yaml b/lm_eval/tasks/belebele/belebele_yor_Latn.yaml index 2de6aecb..e293145f 100644 --- a/lm_eval/tasks/belebele/belebele_yor_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_yor_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "yor_Latn" -"description": "A split of Belebele for the yor_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_yor_Latn" diff --git a/lm_eval/tasks/belebele/belebele_zho_Hans.yaml b/lm_eval/tasks/belebele/belebele_zho_Hans.yaml index cdafe7f8..0d5d175a 100644 --- a/lm_eval/tasks/belebele/belebele_zho_Hans.yaml +++ b/lm_eval/tasks/belebele/belebele_zho_Hans.yaml @@ -1,4 +1,3 @@ "dataset_name": "zho_Hans" -"description": "A split of Belebele for the zho_Hans language.\n\n" "include": "_default_template_yaml" "task": "belebele_zho_Hans" diff --git a/lm_eval/tasks/belebele/belebele_zho_Hant.yaml b/lm_eval/tasks/belebele/belebele_zho_Hant.yaml index 531af9e1..54fedc5d 100644 --- a/lm_eval/tasks/belebele/belebele_zho_Hant.yaml +++ b/lm_eval/tasks/belebele/belebele_zho_Hant.yaml @@ -1,4 +1,3 @@ "dataset_name": "zho_Hant" -"description": "A split of Belebele for the zho_Hant language.\n\n" "include": "_default_template_yaml" "task": "belebele_zho_Hant" diff --git a/lm_eval/tasks/belebele/belebele_zsm_Latn.yaml b/lm_eval/tasks/belebele/belebele_zsm_Latn.yaml index b005512f..616bcc0d 100644 --- a/lm_eval/tasks/belebele/belebele_zsm_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_zsm_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "zsm_Latn" -"description": "A split of Belebele for the zsm_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_zsm_Latn" diff --git a/lm_eval/tasks/belebele/belebele_zul_Latn.yaml b/lm_eval/tasks/belebele/belebele_zul_Latn.yaml index 04cc5b15..e9da6f4d 100644 --- a/lm_eval/tasks/belebele/belebele_zul_Latn.yaml +++ b/lm_eval/tasks/belebele/belebele_zul_Latn.yaml @@ -1,4 +1,3 @@ "dataset_name": "zul_Latn" -"description": "A split of Belebele for the zul_Latn language.\n\n" "include": "_default_template_yaml" "task": "belebele_zul_Latn" -- GitLab From 47a7d41c04c359a160d9c0a50f57e1d446e978db Mon Sep 17 00:00:00 2001 From: ManuelFay Date: Mon, 25 Sep 2023 23:37:12 +0200 Subject: [PATCH 012/105] match beleble paper prompts more closely --- lm_eval/tasks/belebele/README.md | 4 +++- lm_eval/tasks/belebele/_default_template_yaml | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lm_eval/tasks/belebele/README.md b/lm_eval/tasks/belebele/README.md index 8855c7c6..7b6ab809 100644 --- a/lm_eval/tasks/belebele/README.md +++ b/lm_eval/tasks/belebele/README.md @@ -32,7 +32,9 @@ Homepage: https://github.com/facebookresearch/belebele The following tasks evaluate languages in the Belebele dataset using loglikelihood-based multiple-choice scoring: -- `cmmlu_{language}` +- `belebele_{language}` + +The variant evaluated here is the 0-shot or few-shot evaluation with English Instructions. ### Checklist diff --git a/lm_eval/tasks/belebele/_default_template_yaml b/lm_eval/tasks/belebele/_default_template_yaml index be3cf53b..4dbea664 100644 --- a/lm_eval/tasks/belebele/_default_template_yaml +++ b/lm_eval/tasks/belebele/_default_template_yaml @@ -1,5 +1,6 @@ group: belebele dataset_path: facebook/belebele +description: "Choose the best answer to the question.\n" test_split: test fewshot_split: test fewshot_config: @@ -7,7 +8,7 @@ fewshot_config: output_type: multiple_choice should_decontaminate: true doc_to_decontamination_query: "{{question}}" -doc_to_text: "{{question.strip()}}\nA. {{mc_answer1}}\nB. {{mc_answer2}}\nC. {{mc_answer3}}\nD. {{mc_answer4}}\nAnswer:" +doc_to_text: "P: {{flores_passage}}\nQ: {{question.strip()}}\nA. {{mc_answer1}}\nB. {{mc_answer2}}\nC. {{mc_answer3}}\nD. {{mc_answer4}}\nAnswer:" doc_to_choice: ["A", "B", "C", "D"] doc_to_target: "{{['1', '2', '3', '4'].index(correct_answer_num)}}" metric_list: -- GitLab From 24ecd3866a80eb5e70b49556445c676018c9e538 Mon Sep 17 00:00:00 2001 From: ManuelFay Date: Thu, 5 Oct 2023 16:37:22 +0200 Subject: [PATCH 013/105] change : to . in the prompt --- lm_eval/tasks/belebele/_default_template_yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lm_eval/tasks/belebele/_default_template_yaml b/lm_eval/tasks/belebele/_default_template_yaml index 4dbea664..06fe8115 100644 --- a/lm_eval/tasks/belebele/_default_template_yaml +++ b/lm_eval/tasks/belebele/_default_template_yaml @@ -1,6 +1,5 @@ group: belebele dataset_path: facebook/belebele -description: "Choose the best answer to the question.\n" test_split: test fewshot_split: test fewshot_config: @@ -8,7 +7,7 @@ fewshot_config: output_type: multiple_choice should_decontaminate: true doc_to_decontamination_query: "{{question}}" -doc_to_text: "P: {{flores_passage}}\nQ: {{question.strip()}}\nA. {{mc_answer1}}\nB. {{mc_answer2}}\nC. {{mc_answer3}}\nD. {{mc_answer4}}\nAnswer:" +doc_to_text: "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:" doc_to_choice: ["A", "B", "C", "D"] doc_to_target: "{{['1', '2', '3', '4'].index(correct_answer_num)}}" metric_list: -- GitLab From 09d20bfa721f0a61ef0dca0de1ea6504ecbe8f80 Mon Sep 17 00:00:00 2001 From: haileyschoelkopf Date: Fri, 6 Oct 2023 18:17:15 +0000 Subject: [PATCH 014/105] fix YML error in workflow --- .github/workflows/unit_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 4f105d09..59d5e6d1 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -43,7 +43,7 @@ jobs: # # mypy turned off for now # - name: Lint with mypy # run: mypy . --ignore-missing-imports --check-untyped-defs --explicit-package-bases --warn-unreachable -Job 2 +# Job 2 testcpu: name: CPU Tests runs-on: ubuntu-latest -- GitLab From ad7921405f2fecb44d59e5c5cfc098901b803682 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Mon, 9 Oct 2023 09:02:23 +0000 Subject: [PATCH 015/105] removed --- lm_eval/filters/__init__.py | 1 - lm_eval/filters/extraction.py | 42 ----------------------------------- 2 files changed, 43 deletions(-) diff --git a/lm_eval/filters/__init__.py b/lm_eval/filters/__init__.py index 33dd0573..c74ac015 100644 --- a/lm_eval/filters/__init__.py +++ b/lm_eval/filters/__init__.py @@ -10,7 +10,6 @@ FILTER_REGISTRY = { "majority_vote": selection.MajorityVoteFilter, "take_first_k": selection.TakeKFilter, "remove_whitespace": extraction.WhitespaceFilter, - "cot_filter": extraction.CoTFilter, "lowercase": transformation.LowercaseFilter, "uppercase": transformation.UppercaseFilter, "map": transformation.MapFilter, diff --git a/lm_eval/filters/extraction.py b/lm_eval/filters/extraction.py index bea6675b..345bf99b 100644 --- a/lm_eval/filters/extraction.py +++ b/lm_eval/filters/extraction.py @@ -60,45 +60,3 @@ class WhitespaceFilter(Filter): filtered_resps = [filter_set(resp) for resp in resps] return filtered_resps - - -class CoTFilter(Filter): - """ """ - - def __init__(self): - pass - - def apply(self, resps): - def filter_set(inst): - - filtered_resp = [] - for resp in inst: - - resp = resp.strip() - if resp[-1] in [".", ",", "?", " ", "\n"]: - resp = resp[:-1].strip() - - if resp[0] == "(" and resp[-1] == ")": - resp = resp[1:-1].strip() - return resp - else: - resp = resp.split("resp is")[-1].strip() - resp = resp.split("final resp")[-1].strip() - resp = resp.split("Final resp")[-1].strip() - resp = resp.split("resp:")[-1].strip() - resp = resp.split("resp:")[-1].strip() - if resp and resp[0] in [".", ",", "?", " ", "\n", ":"]: - resp = resp[1:].strip() - if resp and resp[-1] in [".", ",", "?", " ", "\n", ":"]: - resp = resp[:-1].strip() - # corner case 2: is prediction is (B), should processed into B. - if resp and resp[0] == "(" and resp[-1] == ")": - resp = resp[1:-1].strip() - - filtered_resp.append(resp) - - return filtered_resp - - filtered_resps = [filter_set(resp) for resp in resps] - - return filtered_resps -- GitLab From bc1b0eca0de8d02e380477523a089d0c1c88f935 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Tue, 10 Oct 2023 08:11:52 +0000 Subject: [PATCH 016/105] removed delimiter="" --- lm_eval/__main__.py | 7 +++++++ lm_eval/tasks/__init__.py | 21 +++++++++++-------- .../persona/_template_yaml | 1 - 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/lm_eval/__main__.py b/lm_eval/__main__.py index 1996d680..cd5acdc8 100644 --- a/lm_eval/__main__.py +++ b/lm_eval/__main__.py @@ -97,6 +97,12 @@ def parse_eval_args() -> argparse.Namespace: default=None, help="Additional path to include if there are external tasks to include.", ) + parser.add_argument( + "--verbose", + type=bool, + default=False, + help="Log error when tasks are not registered.", + ) return parser.parse_args() @@ -167,6 +173,7 @@ def cli_evaluate(args: Union[argparse.Namespace, None] = None) -> None: assert args.output_path, "Specify --output_path" eval_logger.info(f"Selected Tasks: {task_names}") + eval_logger.verbose = args.verbose results = evaluator.simple_evaluate( model=args.model, diff --git a/lm_eval/tasks/__init__.py b/lm_eval/tasks/__init__.py index c139d849..ed4f3242 100644 --- a/lm_eval/tasks/__init__.py +++ b/lm_eval/tasks/__init__.py @@ -139,15 +139,18 @@ def include_task_folder(task_dir: str, register_task: bool = True) -> None: register_configurable_group(config, yaml_path) except Exception as error: - import traceback - - eval_logger.warning( - "Failed to load config in\n" - f" {yaml_path}\n" - " Config will not be added to registry\n" - f" Error: {error}\n" - f" Traceback: {traceback.format_exc()}" - ) + if eval_logger.verbose: + import traceback + + eval_logger.warning( + "Failed to load config in\n" + f" {yaml_path}\n" + " Config will not be added to registry\n" + f" Error: {error}\n" + f" Traceback: {traceback.format_exc()}" + ) + else: + eval_logger.warning("Yaml failed to register {yaml_path}\n") return 0 diff --git a/lm_eval/tasks/model_written_evals/persona/_template_yaml b/lm_eval/tasks/model_written_evals/persona/_template_yaml index 34721df5..1d7ef279 100644 --- a/lm_eval/tasks/model_written_evals/persona/_template_yaml +++ b/lm_eval/tasks/model_written_evals/persona/_template_yaml @@ -2,7 +2,6 @@ group: persona dataset_path: EleutherAI/persona output_type: multiple_choice validation_split: validation -target_delimiter: "" doc_to_text: "{{question}}" doc_to_target: 0 doc_to_choice: "{{[answer_matching_behavior, answer_not_matching_behavior]}}" -- GitLab From 9894597c6d39e23b7d39c3d64f509a88864ceb53 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Tue, 10 Oct 2023 08:13:04 +0000 Subject: [PATCH 017/105] add verbose arg --- lm_eval/__main__.py | 7 +++++++ lm_eval/tasks/__init__.py | 21 ++++++++++++--------- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/lm_eval/__main__.py b/lm_eval/__main__.py index 1996d680..cd5acdc8 100644 --- a/lm_eval/__main__.py +++ b/lm_eval/__main__.py @@ -97,6 +97,12 @@ def parse_eval_args() -> argparse.Namespace: default=None, help="Additional path to include if there are external tasks to include.", ) + parser.add_argument( + "--verbose", + type=bool, + default=False, + help="Log error when tasks are not registered.", + ) return parser.parse_args() @@ -167,6 +173,7 @@ def cli_evaluate(args: Union[argparse.Namespace, None] = None) -> None: assert args.output_path, "Specify --output_path" eval_logger.info(f"Selected Tasks: {task_names}") + eval_logger.verbose = args.verbose results = evaluator.simple_evaluate( model=args.model, diff --git a/lm_eval/tasks/__init__.py b/lm_eval/tasks/__init__.py index c139d849..ed4f3242 100644 --- a/lm_eval/tasks/__init__.py +++ b/lm_eval/tasks/__init__.py @@ -139,15 +139,18 @@ def include_task_folder(task_dir: str, register_task: bool = True) -> None: register_configurable_group(config, yaml_path) except Exception as error: - import traceback - - eval_logger.warning( - "Failed to load config in\n" - f" {yaml_path}\n" - " Config will not be added to registry\n" - f" Error: {error}\n" - f" Traceback: {traceback.format_exc()}" - ) + if eval_logger.verbose: + import traceback + + eval_logger.warning( + "Failed to load config in\n" + f" {yaml_path}\n" + " Config will not be added to registry\n" + f" Error: {error}\n" + f" Traceback: {traceback.format_exc()}" + ) + else: + eval_logger.warning("Yaml failed to register {yaml_path}\n") return 0 -- GitLab From e33a7d92d68d33ed9fd6de4bcfae51742e7b68b4 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Tue, 10 Oct 2023 09:16:25 +0000 Subject: [PATCH 018/105] error set to DEBUG --- lm_eval/__main__.py | 8 ++++---- lm_eval/tasks/__init__.py | 26 +++++++++++++------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/lm_eval/__main__.py b/lm_eval/__main__.py index cd5acdc8..b4839f8c 100644 --- a/lm_eval/__main__.py +++ b/lm_eval/__main__.py @@ -98,9 +98,9 @@ def parse_eval_args() -> argparse.Namespace: help="Additional path to include if there are external tasks to include.", ) parser.add_argument( - "--verbose", - type=bool, - default=False, + "--verbosity", + type=str, + default="INFO", help="Log error when tasks are not registered.", ) return parser.parse_args() @@ -112,6 +112,7 @@ def cli_evaluate(args: Union[argparse.Namespace, None] = None) -> None: # we allow for args to be passed externally, else we parse them ourselves args = parse_eval_args() + eval_logger.setLevel(getattr(logging, f"{args.verbosity}")) os.environ["TOKENIZERS_PARALLELISM"] = "false" if args.limit: @@ -173,7 +174,6 @@ def cli_evaluate(args: Union[argparse.Namespace, None] = None) -> None: assert args.output_path, "Specify --output_path" eval_logger.info(f"Selected Tasks: {task_names}") - eval_logger.verbose = args.verbose results = evaluator.simple_evaluate( model=args.model, diff --git a/lm_eval/tasks/__init__.py b/lm_eval/tasks/__init__.py index ed4f3242..6f0b2b38 100644 --- a/lm_eval/tasks/__init__.py +++ b/lm_eval/tasks/__init__.py @@ -4,7 +4,7 @@ from typing import List, Union, Dict from lm_eval import utils from lm_eval import prompts -from lm_eval.logger import eval_logger +# from lm_eval.logger import eval_logger from lm_eval.api.task import TaskConfig, Task, ConfigurableTask from lm_eval.api.registry import ( register_task, @@ -14,6 +14,9 @@ from lm_eval.api.registry import ( ALL_TASKS, ) +import logging + +eval_logger = logging.getLogger('lm-eval') def register_configurable_task(config: Dict[str, str]) -> int: SubClass = type( @@ -139,18 +142,15 @@ def include_task_folder(task_dir: str, register_task: bool = True) -> None: register_configurable_group(config, yaml_path) except Exception as error: - if eval_logger.verbose: - import traceback - - eval_logger.warning( - "Failed to load config in\n" - f" {yaml_path}\n" - " Config will not be added to registry\n" - f" Error: {error}\n" - f" Traceback: {traceback.format_exc()}" - ) - else: - eval_logger.warning("Yaml failed to register {yaml_path}\n") + import traceback + + eval_logger.debug( + "Failed to load config in\n" + f" {yaml_path}\n" + " Config will not be added to registry\n" + f" Error: {error}\n" + f" Traceback: {traceback.format_exc()}" + ) return 0 -- GitLab From 0d701496f38dc16c3fa918a8241f008566577343 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Tue, 10 Oct 2023 15:00:16 +0000 Subject: [PATCH 019/105] fixes and adjustments --- lm_eval/api/task.py | 2 +- .../tasks/model_written_evals/advanced_ai_risk/_template_yaml | 3 ++- .../human-self-awareness-training-web-gpt.yaml | 4 ---- .../advanced_ai_risk/human-self-awareness-web-gpt.yaml | 4 ++++ lm_eval/tasks/model_written_evals/persona/_template_yaml | 1 + .../sycophancy/sycophancy_on_nlp_survey.yaml | 1 + .../sycophancy/sycophancy_on_philpapers2020.yaml | 1 + .../sycophancy/sycophancy_on_political_typology_quiz.yaml | 1 + 8 files changed, 11 insertions(+), 6 deletions(-) delete mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-training-web-gpt.yaml create mode 100644 lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-web-gpt.yaml diff --git a/lm_eval/api/task.py b/lm_eval/api/task.py index 5bc07b6a..6ce0b3f1 100644 --- a/lm_eval/api/task.py +++ b/lm_eval/api/task.py @@ -687,7 +687,7 @@ class ConfigurableTask(Task): for choice in check_choices: choice_has_whitespace = True if choice[0].isspace() else False delimiter_has_whitespace = ( - True if self.config.target_delimiter[-1].isspace() else False + True if (len(self.config.target_delimiter) >= 1 and self.config.target_delimiter[-1].isspace()) else False ) if delimiter_has_whitespace and choice_has_whitespace: diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/_template_yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/_template_yaml index 92f7ac0c..9a2b36d6 100644 --- a/lm_eval/tasks/model_written_evals/advanced_ai_risk/_template_yaml +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/_template_yaml @@ -1,7 +1,8 @@ group: advanced_ai_risk dataset_path: EleutherAI/advanced_ai_risk output_type: multiple_choice -validation_split: train +validation_split: validation +target_delimiter: "" doc_to_text: "Human: {question}\n\nAssistant:" doc_to_target: 0 doc_to_choice: "{{[answer_matching_behavior, answer_not_matching_behavior]}}" diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-training-web-gpt.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-training-web-gpt.yaml deleted file mode 100644 index b1ab92cf..00000000 --- a/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-training-web-gpt.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by _generate_configs.py -dataset_name: human-self-awareness-training-web-gpt -include: _template_yaml -task: advanced_ai_risk_human-self-awareness-training-web-gpt diff --git a/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-web-gpt.yaml b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-web-gpt.yaml new file mode 100644 index 00000000..e34a4b9f --- /dev/null +++ b/lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-web-gpt.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: human-self-awareness-web-gpt +include: _template_yaml +task: advanced_ai_risk_human-self-awareness-web-gpt diff --git a/lm_eval/tasks/model_written_evals/persona/_template_yaml b/lm_eval/tasks/model_written_evals/persona/_template_yaml index 1d7ef279..34721df5 100644 --- a/lm_eval/tasks/model_written_evals/persona/_template_yaml +++ b/lm_eval/tasks/model_written_evals/persona/_template_yaml @@ -2,6 +2,7 @@ group: persona dataset_path: EleutherAI/persona output_type: multiple_choice validation_split: validation +target_delimiter: "" doc_to_text: "{{question}}" doc_to_target: 0 doc_to_choice: "{{[answer_matching_behavior, answer_not_matching_behavior]}}" diff --git a/lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_nlp_survey.yaml b/lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_nlp_survey.yaml index c4549a91..9c31c518 100644 --- a/lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_nlp_survey.yaml +++ b/lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_nlp_survey.yaml @@ -1,4 +1,5 @@ group: sycophancy +task: sycophancy_on_nlp_survey dataset_path: EleutherAI/sycophancy dataset_name: sycophancy_on_nlp_survey output_type: multiple_choice diff --git a/lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_philpapers2020.yaml b/lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_philpapers2020.yaml index a26abeb9..53589c87 100644 --- a/lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_philpapers2020.yaml +++ b/lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_philpapers2020.yaml @@ -1,4 +1,5 @@ group: sycophancy +task: sycophancy_on_philpapers2020 dataset_path: EleutherAI/sycophancy dataset_name: sycophancy_on_philpapers2020 output_type: multiple_choice diff --git a/lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_political_typology_quiz.yaml b/lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_political_typology_quiz.yaml index d3f2610c..f16d8807 100644 --- a/lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_political_typology_quiz.yaml +++ b/lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_political_typology_quiz.yaml @@ -1,4 +1,5 @@ group: sycophancy +task: sycophancy_on_political_typology_quiz dataset_path: EleutherAI/sycophancy dataset_name: sycophancy_on_political_typology_quiz output_type: multiple_choice -- GitLab From 1aa3bc1e3e9cf4ba7182512f3a40ab6b80decbdf Mon Sep 17 00:00:00 2001 From: Zhiwei Zhuang Date: Wed, 11 Oct 2023 11:36:31 +0800 Subject: [PATCH 020/105] add _batch_scheduler in greedy_until --- lm_eval/models/huggingface.py | 58 ++++++++++++++++++++++------------- lm_eval/utils.py | 2 +- 2 files changed, 37 insertions(+), 23 deletions(-) diff --git a/lm_eval/models/huggingface.py b/lm_eval/models/huggingface.py index 57dae974..cf3cfbbb 100644 --- a/lm_eval/models/huggingface.py +++ b/lm_eval/models/huggingface.py @@ -620,6 +620,25 @@ class HFLM(LM): loglikelihoods.append(string_nll) return loglikelihoods + + def _batch_scheduler(self, pos, n_reordered_requests): + sched = pos // int(len(n_reordered_requests) / self.batch_schedule) + if sched in self.batch_sizes: + return self.batch_sizes[sched] + if (len(self.batch_sizes) > 1) and ( + self.batch_sizes[sched - 1] == self.max_batch_size + ): + # if previous batch size is already maximal, skip recomputation + self.batch_sizes[sched] = self.max_batch_size + return self.batch_sizes[sched] + print( + f"Passed argument batch_size = auto:{self.batch_schedule}. Detecting largest batch size" + ) + self.batch_sizes[sched] = self._detect_batch_size( + n_reordered_requests, pos + ) + print(f"Determined largest batch size: {self.batch_sizes[sched]}") + return self.batch_sizes[sched] def _loglikelihood_tokens( self, requests, disable_tqdm: bool = False, override_bs=None @@ -644,25 +663,6 @@ class HFLM(LM): # automatic (variable) batch size detection for vectorization # pull longest context sample from request - def _batch_scheduler(pos): - sched = pos // int(n_reordered_requests / self.batch_schedule) - if sched in self.batch_sizes: - return self.batch_sizes[sched] - if (len(self.batch_sizes) > 1) and ( - self.batch_sizes[sched - 1] == self.max_batch_size - ): - # if previous batch size is already maximal, skip recomputation - self.batch_sizes[sched] = self.max_batch_size - return self.batch_sizes[sched] - print( - f"Passed argument batch_size = auto:{self.batch_schedule}. Detecting largest batch size" - ) - self.batch_sizes[sched] = self._detect_batch_size( - re_ord.get_reordered(), pos - ) - print(f"Determined largest batch size: {self.batch_sizes[sched]}") - return self.batch_sizes[sched] - for chunk in utils.chunks( tqdm(re_ord.get_reordered(), disable=(disable_tqdm or (self.rank != 0))), n=self.batch_size @@ -670,7 +670,7 @@ class HFLM(LM): else override_bs if override_bs is not None else 0, - fn=_batch_scheduler + fn=self._batch_scheduler if self.batch_size == "auto" and n_reordered_requests > 0 and not override_bs @@ -838,13 +838,27 @@ class HFLM(LM): re_ords[key] = utils.Reorderer([req.args for req in reqs], _collate) pbar = tqdm(total=len(requests), disable=(self.rank != 0)) - + if self.batch_size == "auto": + # using rolling window with maximum context + print("Passed argument batch_size = auto. Detecting largest batch size") + batch_size = self._detect_batch_size() + print(f"Determined Largest batch size: {batch_size}") + adaptive_batch_size = batch_size # for each different set of kwargs, we execute all requests, by batch. for key, re_ord in re_ords.items(): for chunk in utils.chunks( re_ord.get_reordered(), - self.batch_size, + n=self.batch_size + if self.batch_size != "auto" + else adaptive_batch_size + if adaptive_batch_size is not None + else 0, + fn=self._batch_scheduler + if self.batch_size == "auto" + and not adaptive_batch_size + else None, ): + contexts, all_gen_kwargs = zip(*chunk) # we assume all gen kwargs in the batch are the same # this is safe to assume because the `grouper` object ensures it. diff --git a/lm_eval/utils.py b/lm_eval/utils.py index 356fdf7b..d246470a 100644 --- a/lm_eval/utils.py +++ b/lm_eval/utils.py @@ -78,7 +78,7 @@ def chunks(iter, n: int = 0, fn=None): arr = [] for i, x in enumerate(iter): arr.append(x) - if len(arr) == (fn(i) if fn else n): + if len(arr) == (fn(i, iter) if fn else n): yield arr arr = [] -- GitLab From 2bd5dcb69d0eef6495005d63b7f126222bc2ffb8 Mon Sep 17 00:00:00 2001 From: Zhiwei Zhuang Date: Wed, 11 Oct 2023 11:54:55 +0800 Subject: [PATCH 021/105] finished test code --- lm_eval/models/huggingface.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lm_eval/models/huggingface.py b/lm_eval/models/huggingface.py index cf3cfbbb..fd288c72 100644 --- a/lm_eval/models/huggingface.py +++ b/lm_eval/models/huggingface.py @@ -847,7 +847,7 @@ class HFLM(LM): # for each different set of kwargs, we execute all requests, by batch. for key, re_ord in re_ords.items(): for chunk in utils.chunks( - re_ord.get_reordered(), + tqdm(re_ord.get_reordered(), disable=self.rank != 0), n=self.batch_size if self.batch_size != "auto" else adaptive_batch_size @@ -858,7 +858,6 @@ class HFLM(LM): and not adaptive_batch_size else None, ): - contexts, all_gen_kwargs = zip(*chunk) # we assume all gen kwargs in the batch are the same # this is safe to assume because the `grouper` object ensures it. -- GitLab From 660dfb71d15ad0e4fe5ddd3f4a36373d49871da8 Mon Sep 17 00:00:00 2001 From: Zhiwei Zhuang Date: Wed, 11 Oct 2023 18:20:42 +0800 Subject: [PATCH 022/105] check with pre-commit --- .github/workflows/unit_tests.yml | 2 +- lm_eval/models/huggingface.py | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 4f105d09..38c9a82b 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -43,7 +43,7 @@ jobs: # # mypy turned off for now # - name: Lint with mypy # run: mypy . --ignore-missing-imports --check-untyped-defs --explicit-package-bases --warn-unreachable -Job 2 +Job 2: testcpu: name: CPU Tests runs-on: ubuntu-latest diff --git a/lm_eval/models/huggingface.py b/lm_eval/models/huggingface.py index fd288c72..d4b4c9b6 100644 --- a/lm_eval/models/huggingface.py +++ b/lm_eval/models/huggingface.py @@ -620,7 +620,7 @@ class HFLM(LM): loglikelihoods.append(string_nll) return loglikelihoods - + def _batch_scheduler(self, pos, n_reordered_requests): sched = pos // int(len(n_reordered_requests) / self.batch_schedule) if sched in self.batch_sizes: @@ -634,9 +634,7 @@ class HFLM(LM): print( f"Passed argument batch_size = auto:{self.batch_schedule}. Detecting largest batch size" ) - self.batch_sizes[sched] = self._detect_batch_size( - n_reordered_requests, pos - ) + self.batch_sizes[sched] = self._detect_batch_size(n_reordered_requests, pos) print(f"Determined largest batch size: {self.batch_sizes[sched]}") return self.batch_sizes[sched] @@ -854,8 +852,7 @@ class HFLM(LM): if adaptive_batch_size is not None else 0, fn=self._batch_scheduler - if self.batch_size == "auto" - and not adaptive_batch_size + if self.batch_size == "auto" and not adaptive_batch_size else None, ): contexts, all_gen_kwargs = zip(*chunk) -- GitLab From 053e1f5f0ca4ebaab9a06bef5e67c67ebd4d189c Mon Sep 17 00:00:00 2001 From: Lintang Sutawika Date: Thu, 12 Oct 2023 15:53:05 +0700 Subject: [PATCH 023/105] Update pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index df668fb3..c545a52a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ packages = ["lm_eval"] # required to include yaml files in pip installation [tool.setuptools.package-data] -lm_eval = ["**/*.yaml", "tasks/**/*"] +lm_eval = ["**/*.yaml", "lm_eval/**/*"] examples = ["**/*.yaml"] [project.scripts] -- GitLab From 59204667be71c8b878a6a76c0f808924a8a19598 Mon Sep 17 00:00:00 2001 From: Lintang Sutawika Date: Thu, 12 Oct 2023 16:04:33 +0700 Subject: [PATCH 024/105] Update pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c545a52a..0689c34c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ packages = ["lm_eval"] # required to include yaml files in pip installation [tool.setuptools.package-data] -lm_eval = ["**/*.yaml", "lm_eval/**/*"] +lm_eval = ["**/*.yaml", "api/**/*", "decontamination/**/*", "filters/**/*", "models/**/*", "prompts/**/*", "tasks/**/*"] examples = ["**/*.yaml"] [project.scripts] -- GitLab From 32a6362cff11118492ff6899180fcec581dd122d Mon Sep 17 00:00:00 2001 From: Lintang Sutawika Date: Thu, 12 Oct 2023 19:22:56 +0700 Subject: [PATCH 025/105] Update __init__.py --- lm_eval/tasks/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lm_eval/tasks/__init__.py b/lm_eval/tasks/__init__.py index 6f0b2b38..d2add084 100644 --- a/lm_eval/tasks/__init__.py +++ b/lm_eval/tasks/__init__.py @@ -4,7 +4,6 @@ from typing import List, Union, Dict from lm_eval import utils from lm_eval import prompts -# from lm_eval.logger import eval_logger from lm_eval.api.task import TaskConfig, Task, ConfigurableTask from lm_eval.api.registry import ( register_task, -- GitLab From 10625bd808c7dbd26e048808ac8fce6156089af2 Mon Sep 17 00:00:00 2001 From: Jason Krone Date: Fri, 13 Oct 2023 10:46:10 -0700 Subject: [PATCH 026/105] Fix "TypeError: 'tqdm' object is not subscriptable" error that occurs in hugging face model loglikelihood_tokens and greedy_util functions when batch-size is set to auto --- lm_eval/models/huggingface.py | 37 ++++++++++++----------------------- 1 file changed, 13 insertions(+), 24 deletions(-) diff --git a/lm_eval/models/huggingface.py b/lm_eval/models/huggingface.py index d4b4c9b6..39eab765 100644 --- a/lm_eval/models/huggingface.py +++ b/lm_eval/models/huggingface.py @@ -661,19 +661,13 @@ class HFLM(LM): # automatic (variable) batch size detection for vectorization # pull longest context sample from request - for chunk in utils.chunks( - tqdm(re_ord.get_reordered(), disable=(disable_tqdm or (self.rank != 0))), - n=self.batch_size - if self.batch_size != "auto" - else override_bs - if override_bs is not None - else 0, - fn=self._batch_scheduler - if self.batch_size == "auto" - and n_reordered_requests > 0 - and not override_bs - else None, - ): + chunks = utils.chunks( + re_ord.get_reordered(), + n=self.batch_size if self.batch_size != "auto" else override_bs if override_bs is not None else 0, + fn=self._batch_scheduler if self.batch_size == "auto" and n_reordered_requests > 0 and not override_bs else None, + ) + + for chunk in tqdm(chunks, disable=(disable_tqdm or (self.rank != 0))): inps = [] cont_toks_list = [] inplens = [] @@ -844,17 +838,12 @@ class HFLM(LM): adaptive_batch_size = batch_size # for each different set of kwargs, we execute all requests, by batch. for key, re_ord in re_ords.items(): - for chunk in utils.chunks( - tqdm(re_ord.get_reordered(), disable=self.rank != 0), - n=self.batch_size - if self.batch_size != "auto" - else adaptive_batch_size - if adaptive_batch_size is not None - else 0, - fn=self._batch_scheduler - if self.batch_size == "auto" and not adaptive_batch_size - else None, - ): + chunks = utils.chunks( + re_ord.get_reordered(), + n=self.batch_size if self.batch_size != "auto" else adaptive_batch_size if adaptive_batch_size is not None else 0, + fn=self._batch_scheduler if self.batch_size == "auto" and not adaptive_batch_size else None, + ) + for chunk in tqdm(chunks, disable=self.rank != 0): contexts, all_gen_kwargs = zip(*chunk) # we assume all gen kwargs in the batch are the same # this is safe to assume because the `grouper` object ensures it. -- GitLab From ec581e8ef2f089686199780a0041c76eb8f0f078 Mon Sep 17 00:00:00 2001 From: Stella Biderman Date: Fri, 13 Oct 2023 20:10:27 -0400 Subject: [PATCH 027/105] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 62dc36e0..9c6a054f 100644 --- a/README.md +++ b/README.md @@ -232,7 +232,7 @@ We support wildcards in task names, for example you can run all of the machine-t To implement a new task in the eval harness, see [this guide](./docs/new_task_guide.md). -As a start, we currently only support one prompt per task, which we strive to make the "standard" as defined by the benchmark's authors. If you would like to study how varying prompts causes changes in the evaluation score, we support prompts authored in the [Promptsource Library](https://github.com/bigscience-workshop/promptsource/tree/main) as described further in https://github.com/EleutherAI/lm-evaluation-harness/blob/big-refactor/lm_eval/docs/new_task_guide.md and https://github.com/EleutherAI/lm-evaluation-harness/blob/big-refactor/lm_eval/docs/advanced_task_guide.md and welcome contributions of novel task templates and task variants. +As a start, we currently only support one prompt per task, which we strive to make the "standard" as defined by the benchmark's authors. If you would like to study how varying prompts causes changes in the evaluation score, we support prompts authored in the [Promptsource Library](https://github.com/bigscience-workshop/promptsource/tree/main) as described further in [the task guide](https://github.com/EleutherAI/lm-evaluation-harness/blob/big-refactor/lm_eval/docs/new_task_guide.md) and [the advanced task guide](https://github.com/EleutherAI/lm-evaluation-harness/blob/big-refactor/lm_eval/docs/advanced_task_guide.md) and welcome contributions of novel task templates and task variants. ## How to Contribute or Learn More? -- GitLab From 92f2546392e211423508bf90627a96a31567e911 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Mon, 16 Oct 2023 04:42:20 +0000 Subject: [PATCH 028/105] modfied to add subcategory --- lm_eval/tasks/mmlu/_generate_configs.py | 146 ++++++++++-------- .../tasks/mmlu/default/_default_template_yaml | 1 - lm_eval/tasks/mmlu/default/mmlu.yaml | 6 + .../mmlu/default/mmlu_abstract_algebra.yaml | 1 + lm_eval/tasks/mmlu/default/mmlu_anatomy.yaml | 1 + .../tasks/mmlu/default/mmlu_astronomy.yaml | 1 + .../mmlu/default/mmlu_business_ethics.yaml | 1 + .../mmlu/default/mmlu_clinical_knowledge.yaml | 1 + .../mmlu/default/mmlu_college_biology.yaml | 1 + .../mmlu/default/mmlu_college_chemistry.yaml | 1 + .../mmlu_college_computer_science.yaml | 1 + .../default/mmlu_college_mathematics.yaml | 1 + .../mmlu/default/mmlu_college_medicine.yaml | 1 + .../mmlu/default/mmlu_college_physics.yaml | 1 + .../mmlu/default/mmlu_computer_security.yaml | 1 + .../mmlu/default/mmlu_conceptual_physics.yaml | 1 + .../tasks/mmlu/default/mmlu_econometrics.yaml | 1 + .../default/mmlu_electrical_engineering.yaml | 1 + .../default/mmlu_elementary_mathematics.yaml | 1 + .../tasks/mmlu/default/mmlu_formal_logic.yaml | 1 + .../tasks/mmlu/default/mmlu_global_facts.yaml | 1 + .../default/mmlu_high_school_biology.yaml | 1 + .../default/mmlu_high_school_chemistry.yaml | 1 + .../mmlu_high_school_computer_science.yaml | 1 + .../mmlu_high_school_european_history.yaml | 1 + .../default/mmlu_high_school_geography.yaml | 1 + ...u_high_school_government_and_politics.yaml | 1 + .../mmlu_high_school_macroeconomics.yaml | 1 + .../default/mmlu_high_school_mathematics.yaml | 1 + .../mmlu_high_school_microeconomics.yaml | 1 + .../default/mmlu_high_school_physics.yaml | 1 + .../default/mmlu_high_school_psychology.yaml | 1 + .../default/mmlu_high_school_statistics.yaml | 1 + .../default/mmlu_high_school_us_history.yaml | 1 + .../mmlu_high_school_world_history.yaml | 1 + .../tasks/mmlu/default/mmlu_human_aging.yaml | 1 + .../mmlu/default/mmlu_human_sexuality.yaml | 1 + .../mmlu/default/mmlu_international_law.yaml | 1 + .../mmlu/default/mmlu_jurisprudence.yaml | 1 + .../mmlu/default/mmlu_logical_fallacies.yaml | 1 + .../mmlu/default/mmlu_machine_learning.yaml | 1 + .../tasks/mmlu/default/mmlu_management.yaml | 1 + .../tasks/mmlu/default/mmlu_marketing.yaml | 1 + .../mmlu/default/mmlu_medical_genetics.yaml | 1 + .../mmlu/default/mmlu_miscellaneous.yaml | 1 + .../mmlu/default/mmlu_moral_disputes.yaml | 1 + .../mmlu/default/mmlu_moral_scenarios.yaml | 1 + .../tasks/mmlu/default/mmlu_nutrition.yaml | 1 + .../tasks/mmlu/default/mmlu_philosophy.yaml | 1 + .../tasks/mmlu/default/mmlu_prehistory.yaml | 1 + .../default/mmlu_professional_accounting.yaml | 1 + .../mmlu/default/mmlu_professional_law.yaml | 1 + .../default/mmlu_professional_medicine.yaml | 1 + .../default/mmlu_professional_psychology.yaml | 1 + .../mmlu/default/mmlu_public_relations.yaml | 1 + .../mmlu/default/mmlu_security_studies.yaml | 1 + .../tasks/mmlu/default/mmlu_sociology.yaml | 1 + .../mmlu/default/mmlu_us_foreign_policy.yaml | 1 + lm_eval/tasks/mmlu/default/mmlu_virology.yaml | 1 + .../mmlu/default/mmlu_world_religions.yaml | 1 + 60 files changed, 147 insertions(+), 63 deletions(-) create mode 100644 lm_eval/tasks/mmlu/default/mmlu.yaml diff --git a/lm_eval/tasks/mmlu/_generate_configs.py b/lm_eval/tasks/mmlu/_generate_configs.py index 542e11b2..b34a39ea 100644 --- a/lm_eval/tasks/mmlu/_generate_configs.py +++ b/lm_eval/tasks/mmlu/_generate_configs.py @@ -1,5 +1,5 @@ """ -Take in a YAML, and output all other splits with this YAML +Take in a YAML, and output all "other" splits with this YAML """ import os import yaml @@ -10,65 +10,65 @@ from tqdm import tqdm from lm_eval import utils from lm_eval.logger import eval_logger -SUBJECTS = [ - "abstract_algebra", - "anatomy", - "astronomy", - "business_ethics", - "clinical_knowledge", - "college_biology", - "college_chemistry", - "college_computer_science", - "college_mathematics", - "college_medicine", - "college_physics", - "computer_security", - "conceptual_physics", - "econometrics", - "electrical_engineering", - "elementary_mathematics", - "formal_logic", - "global_facts", - "high_school_biology", - "high_school_chemistry", - "high_school_computer_science", - "high_school_european_history", - "high_school_geography", - "high_school_government_and_politics", - "high_school_macroeconomics", - "high_school_mathematics", - "high_school_microeconomics", - "high_school_physics", - "high_school_psychology", - "high_school_statistics", - "high_school_us_history", - "high_school_world_history", - "human_aging", - "human_sexuality", - "international_law", - "jurisprudence", - "logical_fallacies", - "machine_learning", - "management", - "marketing", - "medical_genetics", - "miscellaneous", - "moral_disputes", - "moral_scenarios", - "nutrition", - "philosophy", - "prehistory", - "professional_accounting", - "professional_law", - "professional_medicine", - "professional_psychology", - "public_relations", - "security_studies", - "sociology", - "us_foreign_policy", - "virology", - "world_religions", -] +SUBJECTS = { + "abstract_algebra": "stem", + "anatomy": "stem", + "astronomy": "stem", + "business_ethics": "other", + "clinical_knowledge": "other", + "college_biology": "stem", + "college_chemistry": "stem", + "college_computer_science": "stem", + "college_mathematics": "stem", + "college_medicine": "other", + "college_physics": "stem", + "computer_security": "stem", + "conceptual_physics": "stem", + "econometrics": "social_sciences", + "electrical_engineering": "stem", + "elementary_mathematics": "stem", + "formal_logic": "humanities", + "global_facts": "other", + "high_school_biology": "stem", + "high_school_chemistry": "stem", + "high_school_computer_science": "stem", + "high_school_european_history": "humanities", + "high_school_geography": "social_sciences", + "high_school_government_and_politics": "social_sciences", + "high_school_macroeconomics": "social_sciences", + "high_school_mathematics": "stem", + "high_school_microeconomics": "social_sciences", + "high_school_physics": "stem", + "high_school_psychology": "social_sciences", + "high_school_statistics": "stem", + "high_school_us_history": "humanities", + "high_school_world_history": "humanities", + "human_aging": "other", + "human_sexuality": "social_sciences", + "international_law": "humanities", + "jurisprudence": "humanities", + "logical_fallacies": "humanities", + "machine_learning": "stem", + "management": "other", + "marketing": "other", + "medical_genetics": "other", + "miscellaneous": "other", + "moral_disputes": "humanities", + "moral_scenarios": "humanities", + "nutrition": "other", + "philosophy": "humanities", + "prehistory": "humanities", + "professional_accounting": "other", + "professional_law": "humanities", + "professional_medicine": "other", + "professional_psychology": "social_sciences", + "public_relations": "social_sciences", + "security_studies": "social_sciences", + "sociology": "social_sciences", + "us_foreign_policy": "social_sciences", + "virology": "other", + "world_religions": "humanities", +} def parse_args(): @@ -77,6 +77,7 @@ def parse_args(): parser.add_argument("--save_prefix_path", default="flan") parser.add_argument("--cot_prompt_path", default=None) parser.add_argument("--task_prefix", default="") + parser.add_argument("--group_prefix", default="") return parser.parse_args() @@ -84,7 +85,7 @@ if __name__ == "__main__": args = parse_args() - # get filename of base_yaml so we can `"include": ` it in our other YAMLs. + # get filename of base_yaml so we can `"include": ` it in our "other" YAMLs. base_yaml_name = os.path.split(args.base_yaml_path)[-1] with open(args.base_yaml_path) as f: base_yaml = yaml.full_load(f) @@ -95,7 +96,12 @@ if __name__ == "__main__": with open(args.cot_prompt_path) as f: cot_file = json.load(f) - for subject in tqdm(SUBJECTS): + ALL_CATEGORIES = [] + for subject, category in tqdm(SUBJECTS.items()): + + if category not in ALL_CATEGORIES: + ALL_CATEGORIES.append(category) + if args.cot_prompt_path is not None: description = cot_file[subject] else: @@ -103,6 +109,7 @@ if __name__ == "__main__": yaml_dict = { "include": base_yaml_name, + "group": f"mmlu_{category}", "task": f"mmlu_{args.task_prefix}_{subject}" if args.task_prefix != "" else f"mmlu_{subject}", @@ -120,3 +127,18 @@ if __name__ == "__main__": allow_unicode=True, default_style='"', ) + + if args.group_prefix == "": + file_save_path = args.save_prefix_path + ".yaml" + else: + file_save_path = args.save_prefix_path + f"_{args.group_prefix}.yaml" + eval_logger.info(f"Saving benchmark config to {file_save_path}") + with open(file_save_path, "w") as yaml_file: + yaml.dump( + { + "group": f"mmlu_{args.group_prefix}", + "task": [f"mmlu_{category}" for category in ALL_CATEGORIES] + }, + yaml_file, + default_flow_style=False + ) diff --git a/lm_eval/tasks/mmlu/default/_default_template_yaml b/lm_eval/tasks/mmlu/default/_default_template_yaml index bd989c40..7669f8ce 100644 --- a/lm_eval/tasks/mmlu/default/_default_template_yaml +++ b/lm_eval/tasks/mmlu/default/_default_template_yaml @@ -1,4 +1,3 @@ -group: mmlu dataset_path: cais/mmlu test_split: test fewshot_split: dev diff --git a/lm_eval/tasks/mmlu/default/mmlu.yaml b/lm_eval/tasks/mmlu/default/mmlu.yaml new file mode 100644 index 00000000..584de029 --- /dev/null +++ b/lm_eval/tasks/mmlu/default/mmlu.yaml @@ -0,0 +1,6 @@ +group: mmlu +task: + - mmlu_stem + - mmlu_other + - mmlu_social_sciences + - mmlu_humanities diff --git a/lm_eval/tasks/mmlu/default/mmlu_abstract_algebra.yaml b/lm_eval/tasks/mmlu/default/mmlu_abstract_algebra.yaml index b6d595d3..bb786cc8 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_abstract_algebra.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_abstract_algebra.yaml @@ -1,4 +1,5 @@ "dataset_name": "abstract_algebra" "description": "The following are multiple choice questions (with answers) about abstract algebra.\n\n" +"group": "mmlu_stem" "include": "_default_template_yaml" "task": "mmlu_abstract_algebra" diff --git a/lm_eval/tasks/mmlu/default/mmlu_anatomy.yaml b/lm_eval/tasks/mmlu/default/mmlu_anatomy.yaml index 6459cb41..22eaa7fd 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_anatomy.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_anatomy.yaml @@ -1,4 +1,5 @@ "dataset_name": "anatomy" "description": "The following are multiple choice questions (with answers) about anatomy.\n\n" +"group": "mmlu_stem" "include": "_default_template_yaml" "task": "mmlu_anatomy" diff --git a/lm_eval/tasks/mmlu/default/mmlu_astronomy.yaml b/lm_eval/tasks/mmlu/default/mmlu_astronomy.yaml index 573dedd7..64f20d20 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_astronomy.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_astronomy.yaml @@ -1,4 +1,5 @@ "dataset_name": "astronomy" "description": "The following are multiple choice questions (with answers) about astronomy.\n\n" +"group": "mmlu_stem" "include": "_default_template_yaml" "task": "mmlu_astronomy" diff --git a/lm_eval/tasks/mmlu/default/mmlu_business_ethics.yaml b/lm_eval/tasks/mmlu/default/mmlu_business_ethics.yaml index 4b20b795..49330917 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_business_ethics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_business_ethics.yaml @@ -1,4 +1,5 @@ "dataset_name": "business_ethics" "description": "The following are multiple choice questions (with answers) about business ethics.\n\n" +"group": "mmlu_other" "include": "_default_template_yaml" "task": "mmlu_business_ethics" diff --git a/lm_eval/tasks/mmlu/default/mmlu_clinical_knowledge.yaml b/lm_eval/tasks/mmlu/default/mmlu_clinical_knowledge.yaml index f758e66d..547aeccf 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_clinical_knowledge.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_clinical_knowledge.yaml @@ -1,4 +1,5 @@ "dataset_name": "clinical_knowledge" "description": "The following are multiple choice questions (with answers) about clinical knowledge.\n\n" +"group": "mmlu_other" "include": "_default_template_yaml" "task": "mmlu_clinical_knowledge" diff --git a/lm_eval/tasks/mmlu/default/mmlu_college_biology.yaml b/lm_eval/tasks/mmlu/default/mmlu_college_biology.yaml index f8069007..69826397 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_college_biology.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_college_biology.yaml @@ -1,4 +1,5 @@ "dataset_name": "college_biology" "description": "The following are multiple choice questions (with answers) about college biology.\n\n" +"group": "mmlu_stem" "include": "_default_template_yaml" "task": "mmlu_college_biology" diff --git a/lm_eval/tasks/mmlu/default/mmlu_college_chemistry.yaml b/lm_eval/tasks/mmlu/default/mmlu_college_chemistry.yaml index e03fbccd..b91c07f6 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_college_chemistry.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_college_chemistry.yaml @@ -1,4 +1,5 @@ "dataset_name": "college_chemistry" "description": "The following are multiple choice questions (with answers) about college chemistry.\n\n" +"group": "mmlu_stem" "include": "_default_template_yaml" "task": "mmlu_college_chemistry" diff --git a/lm_eval/tasks/mmlu/default/mmlu_college_computer_science.yaml b/lm_eval/tasks/mmlu/default/mmlu_college_computer_science.yaml index a9d4a6f2..a89a46aa 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_college_computer_science.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_college_computer_science.yaml @@ -1,4 +1,5 @@ "dataset_name": "college_computer_science" "description": "The following are multiple choice questions (with answers) about college computer science.\n\n" +"group": "mmlu_stem" "include": "_default_template_yaml" "task": "mmlu_college_computer_science" diff --git a/lm_eval/tasks/mmlu/default/mmlu_college_mathematics.yaml b/lm_eval/tasks/mmlu/default/mmlu_college_mathematics.yaml index f6a86179..c452ff97 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_college_mathematics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_college_mathematics.yaml @@ -1,4 +1,5 @@ "dataset_name": "college_mathematics" "description": "The following are multiple choice questions (with answers) about college mathematics.\n\n" +"group": "mmlu_stem" "include": "_default_template_yaml" "task": "mmlu_college_mathematics" diff --git a/lm_eval/tasks/mmlu/default/mmlu_college_medicine.yaml b/lm_eval/tasks/mmlu/default/mmlu_college_medicine.yaml index 0ea75fb3..d696a40d 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_college_medicine.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_college_medicine.yaml @@ -1,4 +1,5 @@ "dataset_name": "college_medicine" "description": "The following are multiple choice questions (with answers) about college medicine.\n\n" +"group": "mmlu_other" "include": "_default_template_yaml" "task": "mmlu_college_medicine" diff --git a/lm_eval/tasks/mmlu/default/mmlu_college_physics.yaml b/lm_eval/tasks/mmlu/default/mmlu_college_physics.yaml index 82f13e40..16046e53 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_college_physics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_college_physics.yaml @@ -1,4 +1,5 @@ "dataset_name": "college_physics" "description": "The following are multiple choice questions (with answers) about college physics.\n\n" +"group": "mmlu_stem" "include": "_default_template_yaml" "task": "mmlu_college_physics" diff --git a/lm_eval/tasks/mmlu/default/mmlu_computer_security.yaml b/lm_eval/tasks/mmlu/default/mmlu_computer_security.yaml index e9e06de2..923967ae 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_computer_security.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_computer_security.yaml @@ -1,4 +1,5 @@ "dataset_name": "computer_security" "description": "The following are multiple choice questions (with answers) about computer security.\n\n" +"group": "mmlu_stem" "include": "_default_template_yaml" "task": "mmlu_computer_security" diff --git a/lm_eval/tasks/mmlu/default/mmlu_conceptual_physics.yaml b/lm_eval/tasks/mmlu/default/mmlu_conceptual_physics.yaml index 30ca6efe..88096f3b 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_conceptual_physics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_conceptual_physics.yaml @@ -1,4 +1,5 @@ "dataset_name": "conceptual_physics" "description": "The following are multiple choice questions (with answers) about conceptual physics.\n\n" +"group": "mmlu_stem" "include": "_default_template_yaml" "task": "mmlu_conceptual_physics" diff --git a/lm_eval/tasks/mmlu/default/mmlu_econometrics.yaml b/lm_eval/tasks/mmlu/default/mmlu_econometrics.yaml index 680cc507..4c43a5c8 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_econometrics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_econometrics.yaml @@ -1,4 +1,5 @@ "dataset_name": "econometrics" "description": "The following are multiple choice questions (with answers) about econometrics.\n\n" +"group": "mmlu_social_sciences" "include": "_default_template_yaml" "task": "mmlu_econometrics" diff --git a/lm_eval/tasks/mmlu/default/mmlu_electrical_engineering.yaml b/lm_eval/tasks/mmlu/default/mmlu_electrical_engineering.yaml index 8dd63b33..27ab4828 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_electrical_engineering.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_electrical_engineering.yaml @@ -1,4 +1,5 @@ "dataset_name": "electrical_engineering" "description": "The following are multiple choice questions (with answers) about electrical engineering.\n\n" +"group": "mmlu_stem" "include": "_default_template_yaml" "task": "mmlu_electrical_engineering" diff --git a/lm_eval/tasks/mmlu/default/mmlu_elementary_mathematics.yaml b/lm_eval/tasks/mmlu/default/mmlu_elementary_mathematics.yaml index 4979ee30..bd7106e4 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_elementary_mathematics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_elementary_mathematics.yaml @@ -1,4 +1,5 @@ "dataset_name": "elementary_mathematics" "description": "The following are multiple choice questions (with answers) about elementary mathematics.\n\n" +"group": "mmlu_stem" "include": "_default_template_yaml" "task": "mmlu_elementary_mathematics" diff --git a/lm_eval/tasks/mmlu/default/mmlu_formal_logic.yaml b/lm_eval/tasks/mmlu/default/mmlu_formal_logic.yaml index 9b73509b..98486ebe 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_formal_logic.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_formal_logic.yaml @@ -1,4 +1,5 @@ "dataset_name": "formal_logic" "description": "The following are multiple choice questions (with answers) about formal logic.\n\n" +"group": "mmlu_humanities" "include": "_default_template_yaml" "task": "mmlu_formal_logic" diff --git a/lm_eval/tasks/mmlu/default/mmlu_global_facts.yaml b/lm_eval/tasks/mmlu/default/mmlu_global_facts.yaml index 8c43a6c9..9db3f3d3 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_global_facts.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_global_facts.yaml @@ -1,4 +1,5 @@ "dataset_name": "global_facts" "description": "The following are multiple choice questions (with answers) about global facts.\n\n" +"group": "mmlu_other" "include": "_default_template_yaml" "task": "mmlu_global_facts" diff --git a/lm_eval/tasks/mmlu/default/mmlu_high_school_biology.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_biology.yaml index 453d3033..0ed8c0e7 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_biology.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_biology.yaml @@ -1,4 +1,5 @@ "dataset_name": "high_school_biology" "description": "The following are multiple choice questions (with answers) about high school biology.\n\n" +"group": "mmlu_stem" "include": "_default_template_yaml" "task": "mmlu_high_school_biology" diff --git a/lm_eval/tasks/mmlu/default/mmlu_high_school_chemistry.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_chemistry.yaml index 714ee0e5..7aa6037d 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_chemistry.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_chemistry.yaml @@ -1,4 +1,5 @@ "dataset_name": "high_school_chemistry" "description": "The following are multiple choice questions (with answers) about high school chemistry.\n\n" +"group": "mmlu_stem" "include": "_default_template_yaml" "task": "mmlu_high_school_chemistry" diff --git a/lm_eval/tasks/mmlu/default/mmlu_high_school_computer_science.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_computer_science.yaml index 9326e259..9cf212af 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_computer_science.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_computer_science.yaml @@ -1,4 +1,5 @@ "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" "include": "_default_template_yaml" "task": "mmlu_high_school_computer_science" diff --git a/lm_eval/tasks/mmlu/default/mmlu_high_school_european_history.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_european_history.yaml index e212cd22..e9189bd9 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_european_history.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_european_history.yaml @@ -1,4 +1,5 @@ "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" "include": "_default_template_yaml" "task": "mmlu_high_school_european_history" diff --git a/lm_eval/tasks/mmlu/default/mmlu_high_school_geography.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_geography.yaml index a7fffc25..7573c8c2 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_geography.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_geography.yaml @@ -1,4 +1,5 @@ "dataset_name": "high_school_geography" "description": "The following are multiple choice questions (with answers) about high school geography.\n\n" +"group": "mmlu_social_sciences" "include": "_default_template_yaml" "task": "mmlu_high_school_geography" diff --git a/lm_eval/tasks/mmlu/default/mmlu_high_school_government_and_politics.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_government_and_politics.yaml index 7255d60f..83d7d498 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_government_and_politics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_government_and_politics.yaml @@ -1,4 +1,5 @@ "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" "include": "_default_template_yaml" "task": "mmlu_high_school_government_and_politics" diff --git a/lm_eval/tasks/mmlu/default/mmlu_high_school_macroeconomics.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_macroeconomics.yaml index 29d9ddd7..4e8269b3 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_macroeconomics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_macroeconomics.yaml @@ -1,4 +1,5 @@ "dataset_name": "high_school_macroeconomics" "description": "The following are multiple choice questions (with answers) about high school macroeconomics.\n\n" +"group": "mmlu_social_sciences" "include": "_default_template_yaml" "task": "mmlu_high_school_macroeconomics" diff --git a/lm_eval/tasks/mmlu/default/mmlu_high_school_mathematics.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_mathematics.yaml index 035e7a12..2b9d3216 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_mathematics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_mathematics.yaml @@ -1,4 +1,5 @@ "dataset_name": "high_school_mathematics" "description": "The following are multiple choice questions (with answers) about high school mathematics.\n\n" +"group": "mmlu_stem" "include": "_default_template_yaml" "task": "mmlu_high_school_mathematics" diff --git a/lm_eval/tasks/mmlu/default/mmlu_high_school_microeconomics.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_microeconomics.yaml index 72b1c8cf..3206bfdf 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_microeconomics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_microeconomics.yaml @@ -1,4 +1,5 @@ "dataset_name": "high_school_microeconomics" "description": "The following are multiple choice questions (with answers) about high school microeconomics.\n\n" +"group": "mmlu_social_sciences" "include": "_default_template_yaml" "task": "mmlu_high_school_microeconomics" diff --git a/lm_eval/tasks/mmlu/default/mmlu_high_school_physics.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_physics.yaml index ef8f6ca5..27a1e51a 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_physics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_physics.yaml @@ -1,4 +1,5 @@ "dataset_name": "high_school_physics" "description": "The following are multiple choice questions (with answers) about high school physics.\n\n" +"group": "mmlu_stem" "include": "_default_template_yaml" "task": "mmlu_high_school_physics" diff --git a/lm_eval/tasks/mmlu/default/mmlu_high_school_psychology.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_psychology.yaml index 5c4cce75..1e0b1628 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_psychology.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_psychology.yaml @@ -1,4 +1,5 @@ "dataset_name": "high_school_psychology" "description": "The following are multiple choice questions (with answers) about high school psychology.\n\n" +"group": "mmlu_social_sciences" "include": "_default_template_yaml" "task": "mmlu_high_school_psychology" diff --git a/lm_eval/tasks/mmlu/default/mmlu_high_school_statistics.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_statistics.yaml index 20ed42ec..4244ea8f 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_statistics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_statistics.yaml @@ -1,4 +1,5 @@ "dataset_name": "high_school_statistics" "description": "The following are multiple choice questions (with answers) about high school statistics.\n\n" +"group": "mmlu_stem" "include": "_default_template_yaml" "task": "mmlu_high_school_statistics" diff --git a/lm_eval/tasks/mmlu/default/mmlu_high_school_us_history.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_us_history.yaml index 18cd48da..a6f085ec 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_us_history.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_us_history.yaml @@ -1,4 +1,5 @@ "dataset_name": "high_school_us_history" "description": "The following are multiple choice questions (with answers) about high school us history.\n\n" +"group": "mmlu_humanities" "include": "_default_template_yaml" "task": "mmlu_high_school_us_history" diff --git a/lm_eval/tasks/mmlu/default/mmlu_high_school_world_history.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_world_history.yaml index b17daac6..c23d93c8 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_world_history.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_world_history.yaml @@ -1,4 +1,5 @@ "dataset_name": "high_school_world_history" "description": "The following are multiple choice questions (with answers) about high school world history.\n\n" +"group": "mmlu_humanities" "include": "_default_template_yaml" "task": "mmlu_high_school_world_history" diff --git a/lm_eval/tasks/mmlu/default/mmlu_human_aging.yaml b/lm_eval/tasks/mmlu/default/mmlu_human_aging.yaml index 080b2676..1478d3dd 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_human_aging.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_human_aging.yaml @@ -1,4 +1,5 @@ "dataset_name": "human_aging" "description": "The following are multiple choice questions (with answers) about human aging.\n\n" +"group": "mmlu_other" "include": "_default_template_yaml" "task": "mmlu_human_aging" diff --git a/lm_eval/tasks/mmlu/default/mmlu_human_sexuality.yaml b/lm_eval/tasks/mmlu/default/mmlu_human_sexuality.yaml index ca3389fe..ab56a035 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_human_sexuality.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_human_sexuality.yaml @@ -1,4 +1,5 @@ "dataset_name": "human_sexuality" "description": "The following are multiple choice questions (with answers) about human sexuality.\n\n" +"group": "mmlu_social_sciences" "include": "_default_template_yaml" "task": "mmlu_human_sexuality" diff --git a/lm_eval/tasks/mmlu/default/mmlu_international_law.yaml b/lm_eval/tasks/mmlu/default/mmlu_international_law.yaml index a3d443e0..7a352701 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_international_law.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_international_law.yaml @@ -1,4 +1,5 @@ "dataset_name": "international_law" "description": "The following are multiple choice questions (with answers) about international law.\n\n" +"group": "mmlu_humanities" "include": "_default_template_yaml" "task": "mmlu_international_law" diff --git a/lm_eval/tasks/mmlu/default/mmlu_jurisprudence.yaml b/lm_eval/tasks/mmlu/default/mmlu_jurisprudence.yaml index 4ba00a2a..af29fae3 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_jurisprudence.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_jurisprudence.yaml @@ -1,4 +1,5 @@ "dataset_name": "jurisprudence" "description": "The following are multiple choice questions (with answers) about jurisprudence.\n\n" +"group": "mmlu_humanities" "include": "_default_template_yaml" "task": "mmlu_jurisprudence" diff --git a/lm_eval/tasks/mmlu/default/mmlu_logical_fallacies.yaml b/lm_eval/tasks/mmlu/default/mmlu_logical_fallacies.yaml index ea45a4f3..570fd3dd 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_logical_fallacies.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_logical_fallacies.yaml @@ -1,4 +1,5 @@ "dataset_name": "logical_fallacies" "description": "The following are multiple choice questions (with answers) about logical fallacies.\n\n" +"group": "mmlu_humanities" "include": "_default_template_yaml" "task": "mmlu_logical_fallacies" diff --git a/lm_eval/tasks/mmlu/default/mmlu_machine_learning.yaml b/lm_eval/tasks/mmlu/default/mmlu_machine_learning.yaml index 2ba6d162..11166e2f 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_machine_learning.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_machine_learning.yaml @@ -1,4 +1,5 @@ "dataset_name": "machine_learning" "description": "The following are multiple choice questions (with answers) about machine learning.\n\n" +"group": "mmlu_stem" "include": "_default_template_yaml" "task": "mmlu_machine_learning" diff --git a/lm_eval/tasks/mmlu/default/mmlu_management.yaml b/lm_eval/tasks/mmlu/default/mmlu_management.yaml index b4ea6da9..745ac762 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_management.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_management.yaml @@ -1,4 +1,5 @@ "dataset_name": "management" "description": "The following are multiple choice questions (with answers) about management.\n\n" +"group": "mmlu_other" "include": "_default_template_yaml" "task": "mmlu_management" diff --git a/lm_eval/tasks/mmlu/default/mmlu_marketing.yaml b/lm_eval/tasks/mmlu/default/mmlu_marketing.yaml index afa30a0c..38401dc8 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_marketing.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_marketing.yaml @@ -1,4 +1,5 @@ "dataset_name": "marketing" "description": "The following are multiple choice questions (with answers) about marketing.\n\n" +"group": "mmlu_other" "include": "_default_template_yaml" "task": "mmlu_marketing" diff --git a/lm_eval/tasks/mmlu/default/mmlu_medical_genetics.yaml b/lm_eval/tasks/mmlu/default/mmlu_medical_genetics.yaml index 92095635..2e4fbbd8 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_medical_genetics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_medical_genetics.yaml @@ -1,4 +1,5 @@ "dataset_name": "medical_genetics" "description": "The following are multiple choice questions (with answers) about medical genetics.\n\n" +"group": "mmlu_other" "include": "_default_template_yaml" "task": "mmlu_medical_genetics" diff --git a/lm_eval/tasks/mmlu/default/mmlu_miscellaneous.yaml b/lm_eval/tasks/mmlu/default/mmlu_miscellaneous.yaml index 94ebd1b0..aa674180 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_miscellaneous.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_miscellaneous.yaml @@ -1,4 +1,5 @@ "dataset_name": "miscellaneous" "description": "The following are multiple choice questions (with answers) about miscellaneous.\n\n" +"group": "mmlu_other" "include": "_default_template_yaml" "task": "mmlu_miscellaneous" diff --git a/lm_eval/tasks/mmlu/default/mmlu_moral_disputes.yaml b/lm_eval/tasks/mmlu/default/mmlu_moral_disputes.yaml index 8bea0a1f..ac8bbdb9 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_moral_disputes.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_moral_disputes.yaml @@ -1,4 +1,5 @@ "dataset_name": "moral_disputes" "description": "The following are multiple choice questions (with answers) about moral disputes.\n\n" +"group": "mmlu_humanities" "include": "_default_template_yaml" "task": "mmlu_moral_disputes" diff --git a/lm_eval/tasks/mmlu/default/mmlu_moral_scenarios.yaml b/lm_eval/tasks/mmlu/default/mmlu_moral_scenarios.yaml index 71dcc693..33a249c2 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_moral_scenarios.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_moral_scenarios.yaml @@ -1,4 +1,5 @@ "dataset_name": "moral_scenarios" "description": "The following are multiple choice questions (with answers) about moral scenarios.\n\n" +"group": "mmlu_humanities" "include": "_default_template_yaml" "task": "mmlu_moral_scenarios" diff --git a/lm_eval/tasks/mmlu/default/mmlu_nutrition.yaml b/lm_eval/tasks/mmlu/default/mmlu_nutrition.yaml index e6b4cbcd..44b799cd 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_nutrition.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_nutrition.yaml @@ -1,4 +1,5 @@ "dataset_name": "nutrition" "description": "The following are multiple choice questions (with answers) about nutrition.\n\n" +"group": "mmlu_other" "include": "_default_template_yaml" "task": "mmlu_nutrition" diff --git a/lm_eval/tasks/mmlu/default/mmlu_philosophy.yaml b/lm_eval/tasks/mmlu/default/mmlu_philosophy.yaml index b9a0b2c5..5a703cc4 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_philosophy.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_philosophy.yaml @@ -1,4 +1,5 @@ "dataset_name": "philosophy" "description": "The following are multiple choice questions (with answers) about philosophy.\n\n" +"group": "mmlu_humanities" "include": "_default_template_yaml" "task": "mmlu_philosophy" diff --git a/lm_eval/tasks/mmlu/default/mmlu_prehistory.yaml b/lm_eval/tasks/mmlu/default/mmlu_prehistory.yaml index 7f71bd54..dc8e65b8 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_prehistory.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_prehistory.yaml @@ -1,4 +1,5 @@ "dataset_name": "prehistory" "description": "The following are multiple choice questions (with answers) about prehistory.\n\n" +"group": "mmlu_humanities" "include": "_default_template_yaml" "task": "mmlu_prehistory" diff --git a/lm_eval/tasks/mmlu/default/mmlu_professional_accounting.yaml b/lm_eval/tasks/mmlu/default/mmlu_professional_accounting.yaml index 94ca6e6e..c59ccffd 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_professional_accounting.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_professional_accounting.yaml @@ -1,4 +1,5 @@ "dataset_name": "professional_accounting" "description": "The following are multiple choice questions (with answers) about professional accounting.\n\n" +"group": "mmlu_other" "include": "_default_template_yaml" "task": "mmlu_professional_accounting" diff --git a/lm_eval/tasks/mmlu/default/mmlu_professional_law.yaml b/lm_eval/tasks/mmlu/default/mmlu_professional_law.yaml index 074c34e6..46a3ebbd 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_professional_law.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_professional_law.yaml @@ -1,4 +1,5 @@ "dataset_name": "professional_law" "description": "The following are multiple choice questions (with answers) about professional law.\n\n" +"group": "mmlu_humanities" "include": "_default_template_yaml" "task": "mmlu_professional_law" diff --git a/lm_eval/tasks/mmlu/default/mmlu_professional_medicine.yaml b/lm_eval/tasks/mmlu/default/mmlu_professional_medicine.yaml index 2f99c316..fe52278d 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_professional_medicine.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_professional_medicine.yaml @@ -1,4 +1,5 @@ "dataset_name": "professional_medicine" "description": "The following are multiple choice questions (with answers) about professional medicine.\n\n" +"group": "mmlu_other" "include": "_default_template_yaml" "task": "mmlu_professional_medicine" diff --git a/lm_eval/tasks/mmlu/default/mmlu_professional_psychology.yaml b/lm_eval/tasks/mmlu/default/mmlu_professional_psychology.yaml index 01565848..ff7bb1f7 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_professional_psychology.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_professional_psychology.yaml @@ -1,4 +1,5 @@ "dataset_name": "professional_psychology" "description": "The following are multiple choice questions (with answers) about professional psychology.\n\n" +"group": "mmlu_social_sciences" "include": "_default_template_yaml" "task": "mmlu_professional_psychology" diff --git a/lm_eval/tasks/mmlu/default/mmlu_public_relations.yaml b/lm_eval/tasks/mmlu/default/mmlu_public_relations.yaml index 0d46c66e..290a85f5 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_public_relations.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_public_relations.yaml @@ -1,4 +1,5 @@ "dataset_name": "public_relations" "description": "The following are multiple choice questions (with answers) about public relations.\n\n" +"group": "mmlu_social_sciences" "include": "_default_template_yaml" "task": "mmlu_public_relations" diff --git a/lm_eval/tasks/mmlu/default/mmlu_security_studies.yaml b/lm_eval/tasks/mmlu/default/mmlu_security_studies.yaml index f30dffde..d1a41871 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_security_studies.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_security_studies.yaml @@ -1,4 +1,5 @@ "dataset_name": "security_studies" "description": "The following are multiple choice questions (with answers) about security studies.\n\n" +"group": "mmlu_social_sciences" "include": "_default_template_yaml" "task": "mmlu_security_studies" diff --git a/lm_eval/tasks/mmlu/default/mmlu_sociology.yaml b/lm_eval/tasks/mmlu/default/mmlu_sociology.yaml index c36bd403..be1e46f5 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_sociology.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_sociology.yaml @@ -1,4 +1,5 @@ "dataset_name": "sociology" "description": "The following are multiple choice questions (with answers) about sociology.\n\n" +"group": "mmlu_social_sciences" "include": "_default_template_yaml" "task": "mmlu_sociology" diff --git a/lm_eval/tasks/mmlu/default/mmlu_us_foreign_policy.yaml b/lm_eval/tasks/mmlu/default/mmlu_us_foreign_policy.yaml index fe8c68d8..f94e8bc0 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_us_foreign_policy.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_us_foreign_policy.yaml @@ -1,4 +1,5 @@ "dataset_name": "us_foreign_policy" "description": "The following are multiple choice questions (with answers) about us foreign policy.\n\n" +"group": "mmlu_social_sciences" "include": "_default_template_yaml" "task": "mmlu_us_foreign_policy" diff --git a/lm_eval/tasks/mmlu/default/mmlu_virology.yaml b/lm_eval/tasks/mmlu/default/mmlu_virology.yaml index 4cbd0959..4fdc1bf6 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_virology.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_virology.yaml @@ -1,4 +1,5 @@ "dataset_name": "virology" "description": "The following are multiple choice questions (with answers) about virology.\n\n" +"group": "mmlu_other" "include": "_default_template_yaml" "task": "mmlu_virology" diff --git a/lm_eval/tasks/mmlu/default/mmlu_world_religions.yaml b/lm_eval/tasks/mmlu/default/mmlu_world_religions.yaml index 375efbae..870ea78d 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_world_religions.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_world_religions.yaml @@ -1,4 +1,5 @@ "dataset_name": "world_religions" "description": "The following are multiple choice questions (with answers) about world religions.\n\n" +"group": "mmlu_humanities" "include": "_default_template_yaml" "task": "mmlu_world_religions" -- GitLab From 1dc8f96f56522625098cf07139acb32f151503eb Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Mon, 16 Oct 2023 13:31:10 +0000 Subject: [PATCH 029/105] default to weighted averaging --- lm_eval/evaluator.py | 73 +++++++++++++++++++++++++++++--------------- 1 file changed, 48 insertions(+), 25 deletions(-) diff --git a/lm_eval/evaluator.py b/lm_eval/evaluator.py index bf35097c..57f9d77c 100644 --- a/lm_eval/evaluator.py +++ b/lm_eval/evaluator.py @@ -219,6 +219,7 @@ def evaluate( padding_requests = collections.defaultdict(int) # store the hierarchy to do proper ordering task_hierarchy = collections.defaultdict(list) + group_hierarchy = collections.defaultdict(list) # store the ordering of tasks and groups task_order = collections.defaultdict(int) # store the aggregation for aggregating across tasks in the same group @@ -450,22 +451,26 @@ def evaluate( agg_fn = task.aggregation()[metric] task_score = agg_fn(items) - - if group_name is not None: - sample_metric_key = metric + "(sample agg)," + key - for grouping in task_to_group[task_name]: - if metric_key in results[grouping]: - results[grouping][metric_key].append(task_score) - else: - results[grouping][metric_key] = [task_score] - - if sample_metric_key in results[grouping]: - results[grouping][sample_metric_key] += items - else: - results[grouping][sample_metric_key] = items.copy() - sample_agg_fn[grouping][sample_metric_key] = agg_fn + task_size = len(items) + + # if group_name is not None: + # sample_metric_key = metric + "(sample agg)," + key + # for grouping in task_to_group[task_name]: + # if metric_key in results[grouping]: + # results[grouping][metric_key].append(task_score) + # results[grouping]["size"].append(task_size) + # else: + # results[grouping][metric_key] = [task_score] + # results[grouping]["size"] = [task_size] + + # if sample_metric_key in results[grouping]: + # results[grouping][sample_metric_key] += items + # else: + # results[grouping][sample_metric_key] = items.copy() + # sample_agg_fn[grouping][sample_metric_key] = agg_fn results[task_name][metric_key] = task_score + results[task_name]["size"] = task_size # hotfix: bleu, chrf, ter seem to be really expensive to bootstrap # so we run them less iterations. still looking for a cleaner way to do this @@ -481,18 +486,36 @@ def evaluate( results[task_name][metric + "_stderr" + "," + key] = stderr(items) if bool(results): - for task_or_group in results.keys(): - for metric in results[task_or_group].keys(): - if type(results[task_or_group][metric]) == list: - if "(sample agg)" in metric: - results[task_or_group][metric] = sample_agg_fn[ - task_or_group - ][metric](results[task_or_group][metric]) + + for group, task_list in reversed(task_hierarchy.items()): + versions[group] = "N/A" + task_score_dict = {} + total_size = 0 + for task in task_list: + metrics = results[task] + + if "size" in metrics: + current_size = metrics.pop("size") + else: + current_size = 1 + + for metric in [key for key in metrics.keys()]: + + if "_stderr" in metric: + print(metric) + + metric_score = results[task][metric] + + if metric in results[group]: + results[group][metric] = (results[group][metric]*total_size + metric_score*current_size)/(total_size+current_size) else: - results[task_or_group][metric] = np.average( - results[task_or_group][metric] - ) - versions[task_or_group] = "N/A" + results[group][metric] = metric_score + + # Different formula for agg stderr + + + total_size += current_size + for task_name, task in task_dict.items(): if type(task) == tuple: -- GitLab From 00859825db00aee796be74292ea869978225f1e9 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Mon, 16 Oct 2023 14:26:35 +0000 Subject: [PATCH 030/105] added stderr reprocessing for groups --- lm_eval/evaluator.py | 49 ++++++------------- .../tasks/mmlu/default/_default_template_yaml | 3 -- 2 files changed, 15 insertions(+), 37 deletions(-) diff --git a/lm_eval/evaluator.py b/lm_eval/evaluator.py index 57f9d77c..5d923b1d 100644 --- a/lm_eval/evaluator.py +++ b/lm_eval/evaluator.py @@ -219,7 +219,6 @@ def evaluate( padding_requests = collections.defaultdict(int) # store the hierarchy to do proper ordering task_hierarchy = collections.defaultdict(list) - group_hierarchy = collections.defaultdict(list) # store the ordering of tasks and groups task_order = collections.defaultdict(int) # store the aggregation for aggregating across tasks in the same group @@ -450,27 +449,8 @@ def evaluate( group_name = None agg_fn = task.aggregation()[metric] - task_score = agg_fn(items) - task_size = len(items) - - # if group_name is not None: - # sample_metric_key = metric + "(sample agg)," + key - # for grouping in task_to_group[task_name]: - # if metric_key in results[grouping]: - # results[grouping][metric_key].append(task_score) - # results[grouping]["size"].append(task_size) - # else: - # results[grouping][metric_key] = [task_score] - # results[grouping]["size"] = [task_size] - - # if sample_metric_key in results[grouping]: - # results[grouping][sample_metric_key] += items - # else: - # results[grouping][sample_metric_key] = items.copy() - # sample_agg_fn[grouping][sample_metric_key] = agg_fn - - results[task_name][metric_key] = task_score - results[task_name]["size"] = task_size + results[task_name][metric_key] = agg_fn(items) + results[task_name]["samples"] = len(items) # hotfix: bleu, chrf, ter seem to be really expensive to bootstrap # so we run them less iterations. still looking for a cleaner way to do this @@ -494,28 +474,29 @@ def evaluate( for task in task_list: metrics = results[task] - if "size" in metrics: - current_size = metrics.pop("size") - else: - current_size = 1 + current_size = metrics.pop("samples") + # if "size" in metrics: + # current_size = metrics.pop("size") + # else: + # current_size = 1 - for metric in [key for key in metrics.keys()]: - - if "_stderr" in metric: - print(metric) + for metric in [key for key in metrics.keys() if "_stderr" not in key]: + stderr = "_stderr,".join(metric.split(",")) + stderr_score = results[task][stderr] metric_score = results[task][metric] if metric in results[group]: results[group][metric] = (results[group][metric]*total_size + metric_score*current_size)/(total_size+current_size) + # $$s_z^2 = \frac{(n-1) s_x^2 + (m-1) s_y^2}{n+m-1} + \frac{nm(\bar x - \bar y)^2}{(n+m)(n+m-1)}.$$ + results[group][stderr] = ((total_size-1)*results[group][stderr]+(current_size-1)*stderr_score)/(total_size + current_size - 1) \ + + total_size*current_size/((total_size+current_size)*(total_size+current_size-1))*(results[group][metric] - metric_score)**2 else: results[group][metric] = metric_score - - # Different formula for agg stderr - + results[group][stderr] = stderr_score total_size += current_size - + results[group]["samples"] = total_size for task_name, task in task_dict.items(): if type(task) == tuple: diff --git a/lm_eval/tasks/mmlu/default/_default_template_yaml b/lm_eval/tasks/mmlu/default/_default_template_yaml index 7669f8ce..5eb1c069 100644 --- a/lm_eval/tasks/mmlu/default/_default_template_yaml +++ b/lm_eval/tasks/mmlu/default/_default_template_yaml @@ -11,6 +11,3 @@ metric_list: - metric: acc aggregation: mean higher_is_better: true - - metric: acc_norm - aggregation: mean - higher_is_better: true -- GitLab From e97019c05b1eaf49d71028adb73eefa2226de769 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Mon, 16 Oct 2023 15:24:56 +0000 Subject: [PATCH 031/105] removed comments --- lm_eval/evaluator.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lm_eval/evaluator.py b/lm_eval/evaluator.py index 5d923b1d..09ecb090 100644 --- a/lm_eval/evaluator.py +++ b/lm_eval/evaluator.py @@ -475,9 +475,7 @@ def evaluate( metrics = results[task] current_size = metrics.pop("samples") - # if "size" in metrics: - # current_size = metrics.pop("size") - # else: + # if (group in task_order) and task_order[group] == 0: # current_size = 1 for metric in [key for key in metrics.keys() if "_stderr" not in key]: -- GitLab From 11fdcb4944f791b13f45b6a6fd04c4ceef82ea8c Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Mon, 16 Oct 2023 15:32:58 +0000 Subject: [PATCH 032/105] update --- lm_eval/tasks/squadv2/README.md | 37 ++++++++++++++++++++++-------- lm_eval/tasks/squadv2/default.yaml | 14 +---------- lm_eval/tasks/squadv2/no_ans.yaml | 5 +--- 3 files changed, 30 insertions(+), 26 deletions(-) diff --git a/lm_eval/tasks/squadv2/README.md b/lm_eval/tasks/squadv2/README.md index c13bd21d..f29ad171 100644 --- a/lm_eval/tasks/squadv2/README.md +++ b/lm_eval/tasks/squadv2/README.md @@ -2,25 +2,44 @@ ### Paper -Title: `paper title goes here` -Abstract: `link to paper PDF or arXiv abstract goes here` +Title: `Know What You Don’t Know: Unanswerable Questions for SQuAD` +Abstract: https://arxiv.org/abs/1806.03822 -`Short description of paper / benchmark goes here:` +Stanford Question Answering Dataset (SQuAD) is a reading comprehension dataset, +consisting of questions posed by crowdworkers on a set of Wikipedia articles, +where the answer to every question is a segment of text, or span, from the +corresponding reading passage, or the question might be unanswerable. +SQuAD2.0 combines the 100,000 questions in SQuAD1.1 with over 50,000 unanswerable +questions written adversarially by crowdworkers to look similar to answerable ones. +To do well on SQuAD2.0, systems must not only answer questions when possible, but +also determine when no answer is supported by the paragraph and abstain from answering. -Homepage: `homepage to the benchmark's website goes here, if applicable` +Homepage: https://rajpurkar.github.io/SQuAD-explorer/ ### Citation ``` -BibTeX-formatted citation goes here +@misc{rajpurkar2018know, + title={Know What You Don't Know: Unanswerable Questions for SQuAD}, + author={Pranav Rajpurkar and Robin Jia and Percy Liang}, + year={2018}, + eprint={1806.03822}, + archivePrefix={arXiv}, + primaryClass={cs.CL} +} ``` -### Subtasks +### Groups and Tasks -List or describe tasks defined in this folder, and their names here: -* `task_name`: `1-sentence description of what this particular task does` -* `task_name2`: ..... +#### Groups + +* `squadv2_complete`: Runs both `squadv2` and `squadv2_noans_loglikelihood` + +#### Tasks + +* `squadv2`: `Default squadv2 task` +* `squadv2_noans_loglikelihood`: `Additional task to acquire the probability of model predicting there is no answer` ### Checklist diff --git a/lm_eval/tasks/squadv2/default.yaml b/lm_eval/tasks/squadv2/default.yaml index 2bb3029f..51a304fc 100644 --- a/lm_eval/tasks/squadv2/default.yaml +++ b/lm_eval/tasks/squadv2/default.yaml @@ -1,21 +1,9 @@ +include: _template_yaml task: squadv2 -dataset_path: squad_v2 output_type: greedy_until -training_split: train -validation_split: validation -doc_to_text: "Title: {{title}}\n\nBackground: {{context}}\n\nQuestion: {{question}}\n\n Answer:" -doc_to_target: "{% if answers.text| length > 0 %}{{answers.text}}{% else %}{{['']}}{% endif %}" -target_delimiter: "" -should_decontaminate: true -doc_to_decontamination_query: context generation_kwargs: until: - "\n" -# filter_list: -# - name: remove_whitespace -# filter: -# - function: remove_whitespace -# - function: take_first metric_list: - metric: !function utils.exact aggregation: mean diff --git a/lm_eval/tasks/squadv2/no_ans.yaml b/lm_eval/tasks/squadv2/no_ans.yaml index 82d7c477..7b0a47c7 100644 --- a/lm_eval/tasks/squadv2/no_ans.yaml +++ b/lm_eval/tasks/squadv2/no_ans.yaml @@ -1,9 +1,6 @@ -include: default.yaml +include: _template_yaml task: squadv2_noans_loglikelihood -dataset_path: squad_v2 output_type: loglikelihood -training_split: train -validation_split: validation doc_to_target: " unanswerable" metric_list: - metric: perplexity -- GitLab From 04ca56711786951549aaa29e7c5036ff029ca7f6 Mon Sep 17 00:00:00 2001 From: Stella Biderman Date: Mon, 16 Oct 2023 12:09:38 -0400 Subject: [PATCH 033/105] Update README.md --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9c6a054f..22afe46e 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,12 @@ Features: - Many tasks implemented, 200+ tasks [implemented in the old framework](https://github.com/EleutherAI/lm-evaluation-harness/blob/master/docs/task_table.md) which require porting to the new setup as described in [the new task guide](https://github.com/EleutherAI/lm-evaluation-harness/blob/big-refactor/docs/new_task_guide.md). - Support for models loaded via [transformers](https://github.com/huggingface/transformers/) (including quantization via [AutoGPTQ](https://github.com/PanQiWei/AutoGPTQ)), [GPT-NeoX](https://github.com/EleutherAI/gpt-neox), and [Megatron-DeepSpeed](https://github.com/microsoft/Megatron-DeepSpeed/), with a flexible tokenization-agnostic interface. - Support for commercial APIs including [OpenAI](https://openai.com), [goose.ai](https://goose.ai), and [TextSynth](https://textsynth.com/). -- Support for evaluation on adapters (e.g. LoRa) supported in [HuggingFace's PEFT library](https://github.com/huggingface/peft). -- Evaluating with publicly available prompts ensures reproducibility and comparability between papers. +- Support for evaluation on adapters (e.g. LoRA) supported in [HuggingFace's PEFT library](https://github.com/huggingface/peft). +- Support for local models and benchmarks. +- Evaluation with publicly available prompts ensures reproducibility and comparability between papers. + +The Language Model Evaluation Harness is the backend for 🤗 Hugging Face's popular [Open LLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard) and is used internally by dozens of companies including NVIDIA, Cohere, Booz Allen Hamilton, and Mosaic ML. + ## Install -- GitLab From 2ade969312b81d1bac5070793ecc6816c0b02604 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Tue, 17 Oct 2023 03:48:49 +0000 Subject: [PATCH 034/105] template yaml --- lm_eval/tasks/squadv2/_template.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lm_eval/tasks/squadv2/_template.yaml diff --git a/lm_eval/tasks/squadv2/_template.yaml b/lm_eval/tasks/squadv2/_template.yaml new file mode 100644 index 00000000..05bb724a --- /dev/null +++ b/lm_eval/tasks/squadv2/_template.yaml @@ -0,0 +1,8 @@ +dataset_path: squad_v2 +training_split: train +validation_split: validation +doc_to_text: "Title: {{title}}\n\nBackground: {{context}}\n\nQuestion: {{question}}\n\n Answer:" +doc_to_target: "{% if answers.text| length > 0 %}{{answers.text}}{% else %}{{['']}}{% endif %}" +target_delimiter: "" +should_decontaminate: true +doc_to_decontamination_query: context -- GitLab From 4ccd2ec68c4d206488c543b7ed945a57ac0531a5 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Tue, 17 Oct 2023 03:59:56 +0000 Subject: [PATCH 035/105] sqrt final variance calculation to get stderr --- lm_eval/evaluator.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lm_eval/evaluator.py b/lm_eval/evaluator.py index 09ecb090..fb7ae564 100644 --- a/lm_eval/evaluator.py +++ b/lm_eval/evaluator.py @@ -478,12 +478,15 @@ def evaluate( # if (group in task_order) and task_order[group] == 0: # current_size = 1 + all_stderr = [] for metric in [key for key in metrics.keys() if "_stderr" not in key]: stderr = "_stderr,".join(metric.split(",")) stderr_score = results[task][stderr] metric_score = results[task][metric] + all_stderr.append(stderr) + if metric in results[group]: results[group][metric] = (results[group][metric]*total_size + metric_score*current_size)/(total_size+current_size) # $$s_z^2 = \frac{(n-1) s_x^2 + (m-1) s_y^2}{n+m-1} + \frac{nm(\bar x - \bar y)^2}{(n+m)(n+m-1)}.$$ @@ -494,6 +497,10 @@ def evaluate( results[group][stderr] = stderr_score total_size += current_size + + for stderr in all_stderr: + results[group][stderr] = np.sqrt(results[group][stderr]) + results[group]["samples"] = total_size for task_name, task in task_dict.items(): -- GitLab From c4f0bf75a9c1dcf42f3564ca04cc0626ea850aec Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Tue, 17 Oct 2023 04:03:25 +0000 Subject: [PATCH 036/105] pre-commit reformat --- lm_eval/evaluator.py | 27 +++++++++++++++++-------- lm_eval/tasks/mmlu/_generate_configs.py | 6 +++--- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/lm_eval/evaluator.py b/lm_eval/evaluator.py index fb7ae564..eb263fd8 100644 --- a/lm_eval/evaluator.py +++ b/lm_eval/evaluator.py @@ -221,8 +221,6 @@ def evaluate( task_hierarchy = collections.defaultdict(list) # store the ordering of tasks and groups task_order = collections.defaultdict(int) - # store the aggregation for aggregating across tasks in the same group - sample_agg_fn = collections.defaultdict(dict) # get lists of each type of request for task_name, task in task_dict.items(): @@ -469,7 +467,6 @@ def evaluate( for group, task_list in reversed(task_hierarchy.items()): versions[group] = "N/A" - task_score_dict = {} total_size = 0 for task in task_list: metrics = results[task] @@ -479,7 +476,9 @@ def evaluate( # current_size = 1 all_stderr = [] - for metric in [key for key in metrics.keys() if "_stderr" not in key]: + for metric in [ + key for key in metrics.keys() if "_stderr" not in key + ]: stderr = "_stderr,".join(metric.split(",")) stderr_score = results[task][stderr] @@ -488,10 +487,22 @@ def evaluate( all_stderr.append(stderr) if metric in results[group]: - results[group][metric] = (results[group][metric]*total_size + metric_score*current_size)/(total_size+current_size) + results[group][metric] = ( + results[group][metric] * total_size + + metric_score * current_size + ) / (total_size + current_size) # $$s_z^2 = \frac{(n-1) s_x^2 + (m-1) s_y^2}{n+m-1} + \frac{nm(\bar x - \bar y)^2}{(n+m)(n+m-1)}.$$ - results[group][stderr] = ((total_size-1)*results[group][stderr]+(current_size-1)*stderr_score)/(total_size + current_size - 1) \ - + total_size*current_size/((total_size+current_size)*(total_size+current_size-1))*(results[group][metric] - metric_score)**2 + results[group][stderr] = ( + (total_size - 1) * results[group][stderr] + + (current_size - 1) * stderr_score + ) / ( + total_size + current_size - 1 + ) + total_size * current_size / ( + (total_size + current_size) + * (total_size + current_size - 1) + ) * ( + results[group][metric] - metric_score + ) ** 2 else: results[group][metric] = metric_score results[group][stderr] = stderr_score @@ -500,7 +511,7 @@ def evaluate( for stderr in all_stderr: results[group][stderr] = np.sqrt(results[group][stderr]) - + results[group]["samples"] = total_size for task_name, task in task_dict.items(): diff --git a/lm_eval/tasks/mmlu/_generate_configs.py b/lm_eval/tasks/mmlu/_generate_configs.py index b34a39ea..ec1366aa 100644 --- a/lm_eval/tasks/mmlu/_generate_configs.py +++ b/lm_eval/tasks/mmlu/_generate_configs.py @@ -137,8 +137,8 @@ if __name__ == "__main__": yaml.dump( { "group": f"mmlu_{args.group_prefix}", - "task": [f"mmlu_{category}" for category in ALL_CATEGORIES] - }, + "task": [f"mmlu_{category}" for category in ALL_CATEGORIES], + }, yaml_file, - default_flow_style=False + default_flow_style=False, ) -- GitLab From 93a45962f73c8cb9277855d399afd6d90d0b0019 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Tue, 17 Oct 2023 10:47:01 +0000 Subject: [PATCH 037/105] print tasks in alphabetically --- lm_eval/evaluator.py | 137 ++++++++++++++++++++++++++----------------- 1 file changed, 82 insertions(+), 55 deletions(-) diff --git a/lm_eval/evaluator.py b/lm_eval/evaluator.py index eb263fd8..caf84941 100644 --- a/lm_eval/evaluator.py +++ b/lm_eval/evaluator.py @@ -227,6 +227,7 @@ def evaluate( if type(task) == tuple: group_name, task = task task_hierarchy[group_name].append(task_name) + versions[group_name] = "N/A" else: task_hierarchy[task_name] = [] @@ -466,68 +467,94 @@ def evaluate( if bool(results): for group, task_list in reversed(task_hierarchy.items()): - versions[group] = "N/A" - total_size = 0 - for task in task_list: - metrics = results[task] - - current_size = metrics.pop("samples") - # if (group in task_order) and task_order[group] == 0: - # current_size = 1 - - all_stderr = [] - for metric in [ - key for key in metrics.keys() if "_stderr" not in key - ]: - - stderr = "_stderr,".join(metric.split(",")) - stderr_score = results[task][stderr] - metric_score = results[task][metric] - - all_stderr.append(stderr) - - if metric in results[group]: - results[group][metric] = ( - results[group][metric] * total_size - + metric_score * current_size - ) / (total_size + current_size) - # $$s_z^2 = \frac{(n-1) s_x^2 + (m-1) s_y^2}{n+m-1} + \frac{nm(\bar x - \bar y)^2}{(n+m)(n+m-1)}.$$ - results[group][stderr] = ( - (total_size - 1) * results[group][stderr] - + (current_size - 1) * stderr_score - ) / ( - total_size + current_size - 1 - ) + total_size * current_size / ( - (total_size + current_size) - * (total_size + current_size - 1) - ) * ( - results[group][metric] - metric_score - ) ** 2 - else: - results[group][metric] = metric_score - results[group][stderr] = stderr_score - - total_size += current_size - for stderr in all_stderr: - results[group][stderr] = np.sqrt(results[group][stderr]) + if task_list == []: + total_size = results[group]["samples"] + else: + total_size = 0 + + for task in task_list: + metrics = results[task] + + current_size = metrics.pop("samples") + # TODO: There should be a way for users + # to toggle between weighted and + # unweighted averaging + # For unweighted averaging, use: + # current_size = 1 + + all_stderr = [] + for metric in [ + key for key in metrics.keys() if "_stderr" not in key + ]: + + stderr = "_stderr,".join(metric.split(",")) + stderr_score = results[task][stderr] + metric_score = results[task][metric] + + all_stderr.append(stderr) + + if metric in results[group]: + results[group][metric] = ( + results[group][metric] * total_size + + metric_score * current_size + ) / (total_size + current_size) + # $$s_z^2 = \frac{(n-1) s_x^2 + (m-1) s_y^2}{n+m-1} + \frac{nm(\bar x - \bar y)^2}{(n+m)(n+m-1)}.$$ + results[group][stderr] = ( + (total_size - 1) * results[group][stderr] + + (current_size - 1) * stderr_score + ) / ( + total_size + current_size - 1 + ) + total_size * current_size / ( + (total_size + current_size) + * (total_size + current_size - 1) + ) * ( + results[group][metric] - metric_score + ) ** 2 + else: + results[group][metric] = metric_score + results[group][stderr] = stderr_score + + total_size += current_size + + for stderr in all_stderr: + results[group][stderr] = np.sqrt(results[group][stderr]) results[group]["samples"] = total_size - for task_name, task in task_dict.items(): - if type(task) == tuple: - group_name, task = task + def print_tasks(task_hierarchy, task_order, task_version): + + results_agg = collections.defaultdict(dict) + groups_agg = collections.defaultdict(dict) + for group_name, task_list in task_hierarchy.items(): + order = task_order[group_name] tabbed_name = "-" * order + group_name results_agg[tabbed_name] = results[group_name] - versions[tabbed_name] = versions[group_name] - if order == 0: - groups_agg[group_name] = results[group_name] - - order = task_order[task_name] - tabbed_name = "-" * order + task_name - results_agg[tabbed_name] = results[task_name] - versions[tabbed_name] = versions[task_name] + task_version[tabbed_name] = task_version[group_name] + + if (order < max(task_order.values())) and (len(task_list) > 0): + groups_agg[tabbed_name] = results[group_name] + + if task_list != []: + for task in sorted(task_list): + if task in task_hierarchy: + _task_hierarchy = {task: task_hierarchy[task]} + else: + _task_hierarchy = {task: []} + + _results_agg, _groups_agg, task_version = print_tasks( + _task_hierarchy, task_order, task_version + ) + + results_agg = {**results_agg, **_results_agg} + groups_agg = {**groups_agg, **_groups_agg} + + return results_agg, groups_agg, task_version + + results_agg, groups_agg, versions = print_tasks( + task_hierarchy, task_order, versions + ) results_dict = { "results": dict(results_agg.items()), -- GitLab From a2c4139b537cdcdac48394b5b5270ad1bdc05d51 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Tue, 17 Oct 2023 10:47:52 +0000 Subject: [PATCH 038/105] precommit stuff --- lm_eval/tasks/belebele/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lm_eval/tasks/belebele/README.md b/lm_eval/tasks/belebele/README.md index 7b6ab809..e08e63e8 100644 --- a/lm_eval/tasks/belebele/README.md +++ b/lm_eval/tasks/belebele/README.md @@ -13,7 +13,7 @@ Homepage: https://github.com/facebookresearch/belebele ```bibtex @misc{bandarkar2023belebele, - title={The Belebele Benchmark: a Parallel Reading Comprehension Dataset in 122 Language Variants}, + title={The Belebele Benchmark: a Parallel Reading Comprehension Dataset in 122 Language Variants}, author={Lucas Bandarkar and Davis Liang and Benjamin Muller and Mikel Artetxe and Satya Narayan Shukla and Donald Husa and Naman Goyal and Abhinandan Krishnan and Luke Zettlemoyer and Madian Khabsa}, year={2023}, eprint={2308.16884}, -- GitLab From 109ed1c7c0dc3f29e2ea206dba642e595f839ab6 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Tue, 17 Oct 2023 14:17:23 +0000 Subject: [PATCH 039/105] added subgroups for other mmlu variants --- lm_eval/tasks/mmlu/_generate_configs.py | 29 +- .../mmlu/default/{mmlu.yaml => _mmlu.yaml} | 0 .../{ => flan_cot_fewshot}/_cot_prompts.json | 0 .../tasks/mmlu/flan_cot_fewshot/_mmlu.yaml | 6 + .../mmlu_abstract_algebra.yaml | 9 +- .../mmlu/flan_cot_fewshot/mmlu_anatomy.yaml | 82 +++--- .../mmlu/flan_cot_fewshot/mmlu_astronomy.yaml | 77 ++--- .../mmlu_business_ethics.yaml | 51 ++-- .../mmlu_clinical_knowledge.yaml | 93 +++--- .../mmlu_college_biology.yaml | 11 +- .../mmlu_college_chemistry.yaml | 75 ++--- .../mmlu_college_computer_science.yaml | 268 ++++++------------ .../mmlu_college_mathematics.yaml | 91 +++--- .../mmlu_college_medicine.yaml | 86 +++--- .../mmlu_college_physics.yaml | 114 +++----- .../mmlu_computer_security.yaml | 63 ++-- .../mmlu_conceptual_physics.yaml | 65 ++--- .../flan_cot_fewshot/mmlu_econometrics.yaml | 114 ++++---- .../mmlu_electrical_engineering.yaml | 64 ++--- .../mmlu_elementary_mathematics.yaml | 37 +-- .../flan_cot_fewshot/mmlu_formal_logic.yaml | 106 ++++--- .../flan_cot_fewshot/mmlu_global_facts.yaml | 65 ++--- .../mmlu_high_school_biology.yaml | 94 +++--- .../mmlu_high_school_chemistry.yaml | 9 +- .../mmlu_high_school_computer_science.yaml | 15 +- .../mmlu_high_school_european_history.yaml | 45 +-- .../mmlu_high_school_geography.yaml | 100 +++---- ...u_high_school_government_and_politics.yaml | 110 +++---- .../mmlu_high_school_macroeconomics.yaml | 101 +++---- .../mmlu_high_school_mathematics.yaml | 11 +- .../mmlu_high_school_microeconomics.yaml | 103 +++---- .../mmlu_high_school_physics.yaml | 65 ++--- .../mmlu_high_school_psychology.yaml | 120 ++++---- .../mmlu_high_school_statistics.yaml | 146 ++++------ .../mmlu_high_school_us_history.yaml | 251 ++++++++-------- .../mmlu_high_school_world_history.yaml | 148 +++++----- .../flan_cot_fewshot/mmlu_human_aging.yaml | 76 ++--- .../mmlu_human_sexuality.yaml | 95 +++---- .../mmlu_international_law.yaml | 134 ++++----- .../flan_cot_fewshot/mmlu_jurisprudence.yaml | 114 +++----- .../mmlu_logical_fallacies.yaml | 116 +++----- .../mmlu_machine_learning.yaml | 91 +++--- .../flan_cot_fewshot/mmlu_management.yaml | 87 +++--- .../mmlu/flan_cot_fewshot/mmlu_marketing.yaml | 106 +++---- .../mmlu_medical_genetics.yaml | 98 +++---- .../flan_cot_fewshot/mmlu_miscellaneous.yaml | 81 ++---- .../flan_cot_fewshot/mmlu_moral_disputes.yaml | 121 ++++---- .../mmlu_moral_scenarios.yaml | 110 +++---- .../mmlu/flan_cot_fewshot/mmlu_nutrition.yaml | 120 ++++---- .../flan_cot_fewshot/mmlu_philosophy.yaml | 50 ++-- .../flan_cot_fewshot/mmlu_prehistory.yaml | 109 +++---- .../mmlu_professional_accounting.yaml | 13 +- .../mmlu_professional_law.yaml | 9 +- .../mmlu_professional_medicine.yaml | 35 +-- .../mmlu_professional_psychology.yaml | 59 ++-- .../mmlu_public_relations.yaml | 104 +++---- .../mmlu_security_studies.yaml | 9 +- .../mmlu/flan_cot_fewshot/mmlu_sociology.yaml | 110 +++---- .../mmlu_us_foreign_policy.yaml | 106 +++---- .../mmlu/flan_cot_fewshot/mmlu_virology.yaml | 86 ++---- .../mmlu_world_religions.yaml | 80 ++---- .../tasks/mmlu/flan_cot_zeroshot/_mmlu.yaml | 6 + ... => _mmlu_flan_cot_zeroshot_template_yaml} | 0 .../mmlu_abstract_algebra.yaml | 14 +- .../mmlu/flan_cot_zeroshot/mmlu_anatomy.yaml | 13 +- .../flan_cot_zeroshot/mmlu_astronomy.yaml | 13 +- .../mmlu_business_ethics.yaml | 14 +- .../mmlu_clinical_knowledge.yaml | 14 +- .../mmlu_college_biology.yaml | 14 +- .../mmlu_college_chemistry.yaml | 14 +- .../mmlu_college_computer_science.yaml | 14 +- .../mmlu_college_mathematics.yaml | 14 +- .../mmlu_college_medicine.yaml | 14 +- .../mmlu_college_physics.yaml | 14 +- .../mmlu_computer_security.yaml | 14 +- .../mmlu_conceptual_physics.yaml | 14 +- .../flan_cot_zeroshot/mmlu_econometrics.yaml | 13 +- .../mmlu_electrical_engineering.yaml | 14 +- .../mmlu_elementary_mathematics.yaml | 14 +- .../flan_cot_zeroshot/mmlu_formal_logic.yaml | 14 +- .../flan_cot_zeroshot/mmlu_global_facts.yaml | 14 +- .../mmlu_high_school_biology.yaml | 14 +- .../mmlu_high_school_chemistry.yaml | 14 +- .../mmlu_high_school_computer_science.yaml | 14 +- .../mmlu_high_school_european_history.yaml | 14 +- .../mmlu_high_school_geography.yaml | 14 +- ...u_high_school_government_and_politics.yaml | 14 +- .../mmlu_high_school_macroeconomics.yaml | 14 +- .../mmlu_high_school_mathematics.yaml | 14 +- .../mmlu_high_school_microeconomics.yaml | 14 +- .../mmlu_high_school_physics.yaml | 14 +- .../mmlu_high_school_psychology.yaml | 14 +- .../mmlu_high_school_statistics.yaml | 14 +- .../mmlu_high_school_us_history.yaml | 14 +- .../mmlu_high_school_world_history.yaml | 14 +- .../flan_cot_zeroshot/mmlu_human_aging.yaml | 14 +- .../mmlu_human_sexuality.yaml | 14 +- .../mmlu_international_law.yaml | 14 +- .../flan_cot_zeroshot/mmlu_jurisprudence.yaml | 13 +- .../mmlu_logical_fallacies.yaml | 14 +- .../mmlu_machine_learning.yaml | 14 +- .../flan_cot_zeroshot/mmlu_management.yaml | 13 +- .../flan_cot_zeroshot/mmlu_marketing.yaml | 13 +- .../mmlu_medical_genetics.yaml | 14 +- .../flan_cot_zeroshot/mmlu_miscellaneous.yaml | 13 +- .../mmlu_moral_disputes.yaml | 14 +- .../mmlu_moral_scenarios.yaml | 14 +- .../flan_cot_zeroshot/mmlu_nutrition.yaml | 13 +- .../flan_cot_zeroshot/mmlu_philosophy.yaml | 13 +- .../flan_cot_zeroshot/mmlu_prehistory.yaml | 13 +- .../mmlu_professional_accounting.yaml | 14 +- .../mmlu_professional_law.yaml | 14 +- .../mmlu_professional_medicine.yaml | 14 +- .../mmlu_professional_psychology.yaml | 14 +- .../mmlu_public_relations.yaml | 14 +- .../mmlu_security_studies.yaml | 14 +- .../flan_cot_zeroshot/mmlu_sociology.yaml | 13 +- .../mmlu_us_foreign_policy.yaml | 14 +- .../mmlu/flan_cot_zeroshot/mmlu_virology.yaml | 13 +- .../mmlu_world_religions.yaml | 14 +- .../mmlu/flan_n_shot/generative/_mmlu.yaml | 6 + .../_mmlu_flan_generative_template_yaml | 0 .../mmlu_abstract_algebra.yaml} | 4 +- .../mmlu_anatomy.yaml} | 4 +- .../mmlu_astronomy.yaml} | 4 +- .../mmlu_business_ethics.yaml} | 4 +- .../mmlu_clinical_knowledge.yaml} | 4 +- .../mmlu_college_biology.yaml} | 4 +- .../mmlu_college_chemistry.yaml} | 4 +- .../mmlu_college_computer_science.yaml} | 4 +- .../mmlu_college_mathematics.yaml} | 4 +- .../mmlu_college_medicine.yaml} | 4 +- .../mmlu_college_physics.yaml} | 4 +- .../mmlu_computer_security.yaml} | 4 +- .../mmlu_conceptual_physics.yaml} | 4 +- .../mmlu_econometrics.yaml} | 4 +- .../mmlu_electrical_engineering.yaml} | 4 +- .../mmlu_elementary_mathematics.yaml} | 4 +- .../mmlu_formal_logic.yaml} | 4 +- .../mmlu_global_facts.yaml} | 4 +- .../mmlu_high_school_biology.yaml} | 4 +- .../mmlu_high_school_chemistry.yaml} | 4 +- .../mmlu_high_school_computer_science.yaml} | 4 +- .../mmlu_high_school_european_history.yaml} | 4 +- .../mmlu_high_school_geography.yaml} | 4 +- ..._high_school_government_and_politics.yaml} | 4 +- .../mmlu_high_school_macroeconomics.yaml} | 4 +- .../mmlu_high_school_mathematics.yaml} | 4 +- .../mmlu_high_school_microeconomics.yaml} | 4 +- .../mmlu_high_school_physics.yaml} | 4 +- .../mmlu_high_school_psychology.yaml} | 4 +- .../mmlu_high_school_statistics.yaml} | 4 +- .../mmlu_high_school_us_history.yaml} | 4 +- .../mmlu_high_school_world_history.yaml} | 4 +- .../mmlu_human_aging.yaml} | 4 +- .../mmlu_human_sexuality.yaml} | 4 +- .../mmlu_international_law.yaml} | 4 +- .../mmlu_jurisprudence.yaml} | 4 +- .../mmlu_logical_fallacies.yaml} | 4 +- .../mmlu_machine_learning.yaml} | 4 +- .../mmlu_management.yaml} | 4 +- .../mmlu_marketing.yaml} | 4 +- .../mmlu_medical_genetics.yaml} | 4 +- .../mmlu_miscellaneous.yaml} | 4 +- .../mmlu_moral_disputes.yaml} | 4 +- .../mmlu_moral_scenarios.yaml} | 4 +- .../mmlu_nutrition.yaml} | 4 +- .../mmlu_philosophy.yaml} | 4 +- .../mmlu_prehistory.yaml} | 4 +- .../mmlu_professional_accounting.yaml} | 4 +- .../mmlu_professional_law.yaml} | 4 +- .../mmlu_professional_medicine.yaml} | 4 +- .../mmlu_professional_psychology.yaml} | 4 +- .../mmlu_public_relations.yaml} | 4 +- .../mmlu_security_studies.yaml} | 4 +- .../mmlu_sociology.yaml} | 4 +- .../mmlu_us_foreign_policy.yaml} | 4 +- .../mmlu_virology.yaml} | 4 +- .../mmlu_world_religions.yaml} | 4 +- .../mmlu/flan_n_shot/loglikelihood/_mmlu.yaml | 6 + .../_mmlu_flan_loglikelihood_template_yaml | 2 +- .../mmlu_abstract_algebra.yaml} | 6 +- .../mmlu_anatomy.yaml} | 6 +- .../mmlu_astronomy.yaml} | 6 +- .../mmlu_business_ethics.yaml} | 6 +- .../mmlu_clinical_knowledge.yaml} | 6 +- .../mmlu_college_biology.yaml} | 6 +- .../mmlu_college_chemistry.yaml} | 6 +- .../mmlu_college_computer_science.yaml | 6 + .../mmlu_college_mathematics.yaml} | 6 +- .../mmlu_college_medicine.yaml} | 6 +- .../mmlu_college_physics.yaml} | 6 +- .../mmlu_computer_security.yaml} | 6 +- .../mmlu_conceptual_physics.yaml} | 6 +- .../mmlu_econometrics.yaml} | 6 +- .../mmlu_electrical_engineering.yaml} | 6 +- .../mmlu_elementary_mathematics.yaml} | 6 +- .../mmlu_formal_logic.yaml} | 6 +- .../mmlu_global_facts.yaml} | 6 +- .../mmlu_high_school_biology.yaml} | 6 +- .../mmlu_high_school_chemistry.yaml} | 6 +- .../mmlu_high_school_computer_science.yaml | 6 + .../mmlu_high_school_european_history.yaml | 6 + .../mmlu_high_school_geography.yaml | 6 + ...u_high_school_government_and_politics.yaml | 6 + .../mmlu_high_school_macroeconomics.yaml | 6 + .../mmlu_high_school_mathematics.yaml} | 6 +- .../mmlu_high_school_microeconomics.yaml | 6 + .../mmlu_high_school_physics.yaml} | 6 +- .../mmlu_high_school_psychology.yaml | 6 + .../mmlu_high_school_statistics.yaml} | 6 +- .../mmlu_high_school_us_history.yaml | 6 + .../mmlu_high_school_world_history.yaml | 6 + .../mmlu_human_aging.yaml} | 6 +- .../loglikelihood/mmlu_human_sexuality.yaml | 6 + .../mmlu_international_law.yaml} | 6 +- .../mmlu_jurisprudence.yaml} | 6 +- .../mmlu_logical_fallacies.yaml} | 6 +- .../mmlu_machine_learning.yaml} | 6 +- .../mmlu_management.yaml} | 6 +- .../mmlu_marketing.yaml} | 6 +- .../mmlu_medical_genetics.yaml} | 6 +- .../mmlu_miscellaneous.yaml} | 6 +- .../mmlu_moral_disputes.yaml} | 6 +- .../mmlu_moral_scenarios.yaml} | 6 +- .../mmlu_nutrition.yaml} | 6 +- .../mmlu_philosophy.yaml} | 6 +- .../mmlu_prehistory.yaml} | 6 +- .../mmlu_professional_accounting.yaml | 6 + .../mmlu_professional_law.yaml} | 6 +- .../mmlu_professional_medicine.yaml} | 6 +- .../mmlu_professional_psychology.yaml | 6 + .../loglikelihood/mmlu_public_relations.yaml | 6 + .../loglikelihood/mmlu_security_studies.yaml | 6 + .../mmlu_sociology.yaml} | 6 +- .../loglikelihood/mmlu_us_foreign_policy.yaml | 6 + .../mmlu_virology.yaml} | 6 +- .../mmlu_world_religions.yaml} | 6 +- .../mmlu_log_college_computer_science.yaml | 4 - ...mmlu_log_high_school_computer_science.yaml | 4 - ...mmlu_log_high_school_european_history.yaml | 4 - .../mmlu_log_high_school_geography.yaml | 4 - ...g_high_school_government_and_politics.yaml | 4 - .../mmlu_log_high_school_macroeconomics.yaml | 4 - .../mmlu_log_high_school_microeconomics.yaml | 4 - .../mmlu_log_high_school_psychology.yaml | 4 - .../mmlu_log_high_school_us_history.yaml | 4 - .../mmlu_log_high_school_world_history.yaml | 4 - .../flan_n_shot/mmlu_log_human_sexuality.yaml | 4 - .../mmlu_log_professional_accounting.yaml | 4 - .../mmlu_log_professional_psychology.yaml | 4 - .../mmlu_log_public_relations.yaml | 4 - .../mmlu_log_security_studies.yaml | 4 - .../mmlu_log_us_foreign_policy.yaml | 4 - 254 files changed, 2905 insertions(+), 3478 deletions(-) rename lm_eval/tasks/mmlu/default/{mmlu.yaml => _mmlu.yaml} (100%) rename lm_eval/tasks/mmlu/{ => flan_cot_fewshot}/_cot_prompts.json (100%) create mode 100644 lm_eval/tasks/mmlu/flan_cot_fewshot/_mmlu.yaml create mode 100644 lm_eval/tasks/mmlu/flan_cot_zeroshot/_mmlu.yaml rename lm_eval/tasks/mmlu/flan_cot_zeroshot/{_mmlu_flan_generative_template_yaml => _mmlu_flan_cot_zeroshot_template_yaml} (100%) create mode 100644 lm_eval/tasks/mmlu/flan_n_shot/generative/_mmlu.yaml rename lm_eval/tasks/mmlu/flan_n_shot/{ => generative}/_mmlu_flan_generative_template_yaml (100%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_abstract_algebra.yaml => generative/mmlu_abstract_algebra.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_anatomy.yaml => generative/mmlu_anatomy.yaml} (70%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_astronomy.yaml => generative/mmlu_astronomy.yaml} (70%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_business_ethics.yaml => generative/mmlu_business_ethics.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_clinical_knowledge.yaml => generative/mmlu_clinical_knowledge.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_college_biology.yaml => generative/mmlu_college_biology.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_college_chemistry.yaml => generative/mmlu_college_chemistry.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_college_computer_science.yaml => generative/mmlu_college_computer_science.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_college_mathematics.yaml => generative/mmlu_college_mathematics.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_college_medicine.yaml => generative/mmlu_college_medicine.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_college_physics.yaml => generative/mmlu_college_physics.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_computer_security.yaml => generative/mmlu_computer_security.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_conceptual_physics.yaml => generative/mmlu_conceptual_physics.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_econometrics.yaml => generative/mmlu_econometrics.yaml} (67%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_electrical_engineering.yaml => generative/mmlu_electrical_engineering.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_elementary_mathematics.yaml => generative/mmlu_elementary_mathematics.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_formal_logic.yaml => generative/mmlu_formal_logic.yaml} (68%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_global_facts.yaml => generative/mmlu_global_facts.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_high_school_biology.yaml => generative/mmlu_high_school_biology.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_high_school_chemistry.yaml => generative/mmlu_high_school_chemistry.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_high_school_computer_science.yaml => generative/mmlu_high_school_computer_science.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_high_school_european_history.yaml => generative/mmlu_high_school_european_history.yaml} (67%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_high_school_geography.yaml => generative/mmlu_high_school_geography.yaml} (66%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_high_school_government_and_politics.yaml => generative/mmlu_high_school_government_and_politics.yaml} (66%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_high_school_macroeconomics.yaml => generative/mmlu_high_school_macroeconomics.yaml} (66%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_high_school_mathematics.yaml => generative/mmlu_high_school_mathematics.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_high_school_microeconomics.yaml => generative/mmlu_high_school_microeconomics.yaml} (66%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_high_school_physics.yaml => generative/mmlu_high_school_physics.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_high_school_psychology.yaml => generative/mmlu_high_school_psychology.yaml} (66%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_high_school_statistics.yaml => generative/mmlu_high_school_statistics.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_high_school_us_history.yaml => generative/mmlu_high_school_us_history.yaml} (68%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_high_school_world_history.yaml => generative/mmlu_high_school_world_history.yaml} (68%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_human_aging.yaml => generative/mmlu_human_aging.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_human_sexuality.yaml => generative/mmlu_human_sexuality.yaml} (67%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_international_law.yaml => generative/mmlu_international_law.yaml} (68%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_jurisprudence.yaml => generative/mmlu_jurisprudence.yaml} (68%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_logical_fallacies.yaml => generative/mmlu_logical_fallacies.yaml} (68%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_machine_learning.yaml => generative/mmlu_machine_learning.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_management.yaml => generative/mmlu_management.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_marketing.yaml => generative/mmlu_marketing.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_medical_genetics.yaml => generative/mmlu_medical_genetics.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_miscellaneous.yaml => generative/mmlu_miscellaneous.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_moral_disputes.yaml => generative/mmlu_moral_disputes.yaml} (68%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_moral_scenarios.yaml => generative/mmlu_moral_scenarios.yaml} (68%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_nutrition.yaml => generative/mmlu_nutrition.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_philosophy.yaml => generative/mmlu_philosophy.yaml} (68%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_prehistory.yaml => generative/mmlu_prehistory.yaml} (68%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_professional_accounting.yaml => generative/mmlu_professional_accounting.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_professional_law.yaml => generative/mmlu_professional_law.yaml} (68%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_professional_medicine.yaml => generative/mmlu_professional_medicine.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_professional_psychology.yaml => generative/mmlu_professional_psychology.yaml} (66%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_public_relations.yaml => generative/mmlu_public_relations.yaml} (66%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_security_studies.yaml => generative/mmlu_security_studies.yaml} (66%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_sociology.yaml => generative/mmlu_sociology.yaml} (67%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_us_foreign_policy.yaml => generative/mmlu_us_foreign_policy.yaml} (66%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_virology.yaml => generative/mmlu_virology.yaml} (69%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_gen_world_religions.yaml => generative/mmlu_world_religions.yaml} (68%) create mode 100644 lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/_mmlu.yaml rename lm_eval/tasks/mmlu/flan_n_shot/{ => loglikelihood}/_mmlu_flan_loglikelihood_template_yaml (94%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_abstract_algebra.yaml => loglikelihood/mmlu_abstract_algebra.yaml} (51%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_anatomy.yaml => loglikelihood/mmlu_anatomy.yaml} (53%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_astronomy.yaml => loglikelihood/mmlu_astronomy.yaml} (52%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_business_ethics.yaml => loglikelihood/mmlu_business_ethics.yaml} (51%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_clinical_knowledge.yaml => loglikelihood/mmlu_clinical_knowledge.yaml} (50%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_college_biology.yaml => loglikelihood/mmlu_college_biology.yaml} (51%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_college_chemistry.yaml => loglikelihood/mmlu_college_chemistry.yaml} (51%) create mode 100644 lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_computer_science.yaml rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_college_mathematics.yaml => loglikelihood/mmlu_college_mathematics.yaml} (50%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_college_medicine.yaml => loglikelihood/mmlu_college_medicine.yaml} (51%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_college_physics.yaml => loglikelihood/mmlu_college_physics.yaml} (51%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_computer_security.yaml => loglikelihood/mmlu_computer_security.yaml} (51%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_conceptual_physics.yaml => loglikelihood/mmlu_conceptual_physics.yaml} (50%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_econometrics.yaml => loglikelihood/mmlu_econometrics.yaml} (50%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_electrical_engineering.yaml => loglikelihood/mmlu_electrical_engineering.yaml} (50%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_elementary_mathematics.yaml => loglikelihood/mmlu_elementary_mathematics.yaml} (50%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_formal_logic.yaml => loglikelihood/mmlu_formal_logic.yaml} (50%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_global_facts.yaml => loglikelihood/mmlu_global_facts.yaml} (51%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_high_school_biology.yaml => loglikelihood/mmlu_high_school_biology.yaml} (50%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_high_school_chemistry.yaml => loglikelihood/mmlu_high_school_chemistry.yaml} (50%) create mode 100644 lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_computer_science.yaml create mode 100644 lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_european_history.yaml create mode 100644 lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_geography.yaml create mode 100644 lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_government_and_politics.yaml create mode 100644 lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_macroeconomics.yaml rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_high_school_mathematics.yaml => loglikelihood/mmlu_high_school_mathematics.yaml} (50%) create mode 100644 lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_microeconomics.yaml rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_high_school_physics.yaml => loglikelihood/mmlu_high_school_physics.yaml} (50%) create mode 100644 lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_psychology.yaml rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_high_school_statistics.yaml => loglikelihood/mmlu_high_school_statistics.yaml} (50%) create mode 100644 lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_us_history.yaml create mode 100644 lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_world_history.yaml rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_human_aging.yaml => loglikelihood/mmlu_human_aging.yaml} (51%) create mode 100644 lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_human_sexuality.yaml rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_international_law.yaml => loglikelihood/mmlu_international_law.yaml} (50%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_jurisprudence.yaml => loglikelihood/mmlu_jurisprudence.yaml} (50%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_logical_fallacies.yaml => loglikelihood/mmlu_logical_fallacies.yaml} (50%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_machine_learning.yaml => loglikelihood/mmlu_machine_learning.yaml} (51%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_management.yaml => loglikelihood/mmlu_management.yaml} (52%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_marketing.yaml => loglikelihood/mmlu_marketing.yaml} (52%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_medical_genetics.yaml => loglikelihood/mmlu_medical_genetics.yaml} (51%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_miscellaneous.yaml => loglikelihood/mmlu_miscellaneous.yaml} (51%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_moral_disputes.yaml => loglikelihood/mmlu_moral_disputes.yaml} (50%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_moral_scenarios.yaml => loglikelihood/mmlu_moral_scenarios.yaml} (50%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_nutrition.yaml => loglikelihood/mmlu_nutrition.yaml} (52%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_philosophy.yaml => loglikelihood/mmlu_philosophy.yaml} (51%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_prehistory.yaml => loglikelihood/mmlu_prehistory.yaml} (51%) create mode 100644 lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_professional_accounting.yaml rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_professional_law.yaml => loglikelihood/mmlu_professional_law.yaml} (50%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_professional_medicine.yaml => loglikelihood/mmlu_professional_medicine.yaml} (50%) create mode 100644 lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_professional_psychology.yaml create mode 100644 lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_public_relations.yaml create mode 100644 lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_security_studies.yaml rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_sociology.yaml => loglikelihood/mmlu_sociology.yaml} (50%) create mode 100644 lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_us_foreign_policy.yaml rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_virology.yaml => loglikelihood/mmlu_virology.yaml} (52%) rename lm_eval/tasks/mmlu/flan_n_shot/{mmlu_log_world_religions.yaml => loglikelihood/mmlu_world_religions.yaml} (50%) delete mode 100644 lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_college_computer_science.yaml delete mode 100644 lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_computer_science.yaml delete mode 100644 lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_european_history.yaml delete mode 100644 lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_geography.yaml delete mode 100644 lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_government_and_politics.yaml delete mode 100644 lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_macroeconomics.yaml delete mode 100644 lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_microeconomics.yaml delete mode 100644 lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_psychology.yaml delete mode 100644 lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_us_history.yaml delete mode 100644 lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_world_history.yaml delete mode 100644 lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_human_sexuality.yaml delete mode 100644 lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_professional_accounting.yaml delete mode 100644 lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_professional_psychology.yaml delete mode 100644 lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_public_relations.yaml delete mode 100644 lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_security_studies.yaml delete mode 100644 lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_us_foreign_policy.yaml diff --git a/lm_eval/tasks/mmlu/_generate_configs.py b/lm_eval/tasks/mmlu/_generate_configs.py index ec1366aa..1ea16ece 100644 --- a/lm_eval/tasks/mmlu/_generate_configs.py +++ b/lm_eval/tasks/mmlu/_generate_configs.py @@ -74,7 +74,7 @@ SUBJECTS = { def parse_args(): parser = argparse.ArgumentParser() parser.add_argument("--base_yaml_path", required=True) - parser.add_argument("--save_prefix_path", default="flan") + parser.add_argument("--save_prefix_path", default="mmlu") parser.add_argument("--cot_prompt_path", default=None) parser.add_argument("--task_prefix", default="") parser.add_argument("--group_prefix", default="") @@ -109,7 +109,9 @@ if __name__ == "__main__": yaml_dict = { "include": base_yaml_name, - "group": f"mmlu_{category}", + "group": f"mmlu_{args.task_prefix}_{category}" + if args.task_prefix != "" + else f"mmlu_{category}", "task": f"mmlu_{args.task_prefix}_{subject}" if args.task_prefix != "" else f"mmlu_{subject}", @@ -123,22 +125,33 @@ if __name__ == "__main__": yaml.dump( yaml_dict, yaml_file, - width=float("inf"), + # width=float("inf"), allow_unicode=True, default_style='"', ) - if args.group_prefix == "": - file_save_path = args.save_prefix_path + ".yaml" + if args.task_prefix != "": + mmlu_subcategories = [ + f"mmlu_{args.task_prefix}_{category}" for category in ALL_CATEGORIES + ] + else: + mmlu_subcategories = [f"mmlu_{category}" for category in ALL_CATEGORIES] + + if args.group_prefix != "": + file_save_path = args.group_prefix + ".yaml" else: - file_save_path = args.save_prefix_path + f"_{args.group_prefix}.yaml" + file_save_path = args.save_prefix_path + ".yaml" + eval_logger.info(f"Saving benchmark config to {file_save_path}") with open(file_save_path, "w") as yaml_file: yaml.dump( { - "group": f"mmlu_{args.group_prefix}", - "task": [f"mmlu_{category}" for category in ALL_CATEGORIES], + "group": f"mmlu_{args.task_prefix}" + if args.task_prefix != "" + else "mmlu", + "task": mmlu_subcategories, }, yaml_file, + indent=4, default_flow_style=False, ) diff --git a/lm_eval/tasks/mmlu/default/mmlu.yaml b/lm_eval/tasks/mmlu/default/_mmlu.yaml similarity index 100% rename from lm_eval/tasks/mmlu/default/mmlu.yaml rename to lm_eval/tasks/mmlu/default/_mmlu.yaml diff --git a/lm_eval/tasks/mmlu/_cot_prompts.json b/lm_eval/tasks/mmlu/flan_cot_fewshot/_cot_prompts.json similarity index 100% rename from lm_eval/tasks/mmlu/_cot_prompts.json rename to lm_eval/tasks/mmlu/flan_cot_fewshot/_cot_prompts.json diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/_mmlu.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/_mmlu.yaml new file mode 100644 index 00000000..cb43b048 --- /dev/null +++ b/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_eval/tasks/mmlu/flan_cot_fewshot/mmlu_abstract_algebra.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_abstract_algebra.yaml index 5c549591..f9d29bec 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_abstract_algebra.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_abstract_algebra.yaml @@ -1,5 +1,5 @@ -dataset_name: abstract_algebra -description: "The following are multiple choice questions (with answers) about abstract\ +"dataset_name": "abstract_algebra" +"description": "The following are multiple choice questions (with answers) about abstract\ \ algebra.\n\nQ: Statement 1 | Every element of a group generates a cyclic subgroup\ \ of the group. Statement 2 | The symmetric group S_10 has 10 elements.\n(A) True,\ \ True (B) False, False (C) True, False (D) False, True\nA: Let's think step by\ @@ -36,5 +36,6 @@ description: "The following are multiple choice questions (with answers) about a \ x = 2, hence x^2 + 1 does not have any roots. For c = 2 the polynomial x^2 + 2\ \ has two roots at x = 1 and x = 2. Hence Z_3[x]/(x^2 + c) is a field if and only\ \ if c = 1. The answer is (B)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_abstract_algebra +"group": "mmlu_flan_cot_fewshot_stem" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_abstract_algebra" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_anatomy.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_anatomy.yaml index 28ca1c4c..144ffbe4 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_anatomy.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_anatomy.yaml @@ -1,15 +1,15 @@ -dataset_name: anatomy -description: "The following are multiple choice questions (with answers) about anatomy.\n\ +"dataset_name": "anatomy" +"description": "The following are multiple choice questions (with answers) about anatomy.\n\ \nQ: Which of the following is the body cavity that contains the pituitary gland?\n\ (A) Abdominal (B) Cranial (C) Pleural (D) Spinal\nA: Let's think step by step. We\ - \ refer to Wikipedia articles on anatomy for help. Let\u2019s solve this problem\ - \ step by step. The pituitary gland is the major endocrine gland attached to the\ - \ base of the brain, and it is contained in the Cranial cavity. The answer is (B).\n\ - \nQ: Which of these branches of the trigeminal nerve contain somatic motor processes?\n\ + \ refer to Wikipedia articles on anatomy for help. Let’s solve this problem step\ + \ by step. The pituitary gland is the major endocrine gland attached to the base\ + \ of the brain, and it is contained in the Cranial cavity. The answer is (B).\n\n\ + Q: Which of these branches of the trigeminal nerve contain somatic motor processes?\n\ (A) The supraorbital nerve (B) The infraorbital nerve (C) The mental nerve (D) None\ \ of the above\nA: Let's think step by step. We refer to Wikipedia articles on anatomy\ - \ for help. Let\u2019s solve this problem step by step. \nWe know the following:\ - \ (A) The supraorbital nerve (also known as the frontal nerve) is the largest branch\ + \ for help. Let’s solve this problem step by step. \nWe know the following: (A)\ + \ The supraorbital nerve (also known as the frontal nerve) is the largest branch\ \ of the ophthalmic nerve and branch of ophthalmic division of the trigeminal nerve.\ \ (B) The infraorbital nerve is a branch of the maxillary division of the trigeminal\ \ nerve. (C) The mental nerve is a branch of the mandibular division of the trigeminal\ @@ -19,39 +19,39 @@ description: "The following are multiple choice questions (with answers) about a (A) excess overbite of the upper lateral incisors. (B) negative overjet of the upper\ \ central incisors. (C) excess overjet of the upper lateral incisors. (D) excess\ \ overjet of the upper central incisors.\nA: Let's think step by step. We refer\ - \ to Wikipedia articles on anatomy for help. Let\u2019s solve this problem step\ - \ by step. This is a question related to anatomy and orthodontics. Excess overjet\ - \ is associated with Class II occlusions; therefore, we can safely eliminate (B)\ - \ from the list, as negative overjet is often associated with Class III occlusions.\ - \ Now, we need to determine the location of the excess overjet, and that would be\ - \ the upper (maxillary) lateral incisors. Only (C) has the correct information.\ - \ The answer is (C).\n\nQ: The pleura\n(A) have no sensory innervation. (B) are\ - \ separated by a 2 mm space. (C) extend into the neck. (D) are composed of respiratory\ - \ epithelium.\nA: Let's think step by step. We refer to Wikipedia articles on anatomy\ - \ for help. Let\u2019s solve this problem step by step. First, recall that the pleura\ - \ refers to the thin layer of tissue that covers the lungs and lines the interior\ - \ wall of the chest cavity. Now, let\u2019s look at each option:\nOption (A): \u201C\ - The pleura have no sensory innervation.\u201D This information is not correct. The\ - \ pleura do have a sensory innervation.\nOption (B): \u201CThe pleura are separated\ - \ by a 2 mm space.\u201D This information is not correct. There is a very thin \u201C\ - potential\u201D space between the layers of the pleura; however, it is typically\ - \ filled with serous pleural fluid. \nOption (C): \u201CThe pleura extend into the\ - \ neck.\u201D This information is actuakky true. The cervical pleura, also known\ - \ as the dome of the pleuradome of the pleura, lines the extendsiton of the pleural\ - \ cavity into the neck.\nOption (D): \u201CThe pleura are composed of respiratory\ - \ epithelium.\u201D This information is not correct. The pleaura are composed of\ - \ connective tissue (CT).\nBecause (A), (B), and (D) are all incorrect, (D) is the\ - \ only correct answer. The answer is (C).\n\nQ: What is the embryological origin\ + \ to Wikipedia articles on anatomy for help. Let’s solve this problem step by step.\ + \ This is a question related to anatomy and orthodontics. Excess overjet is associated\ + \ with Class II occlusions; therefore, we can safely eliminate (B) from the list,\ + \ as negative overjet is often associated with Class III occlusions. Now, we need\ + \ to determine the location of the excess overjet, and that would be the upper (maxillary)\ + \ lateral incisors. Only (C) has the correct information. The answer is (C).\n\n\ + Q: The pleura\n(A) have no sensory innervation. (B) are separated by a 2 mm space.\ + \ (C) extend into the neck. (D) are composed of respiratory epithelium.\nA: Let's\ + \ think step by step. We refer to Wikipedia articles on anatomy for help. Let’s\ + \ solve this problem step by step. First, recall that the pleura refers to the thin\ + \ layer of tissue that covers the lungs and lines the interior wall of the chest\ + \ cavity. Now, let’s look at each option:\nOption (A): “The pleura have no sensory\ + \ innervation.” This information is not correct. The pleura do have a sensory innervation.\n\ + Option (B): “The pleura are separated by a 2 mm space.” This information is not\ + \ correct. There is a very thin “potential” space between the layers of the pleura;\ + \ however, it is typically filled with serous pleural fluid. \nOption (C): “The\ + \ pleura extend into the neck.” This information is actuakky true. The cervical\ + \ pleura, also known as the dome of the pleuradome of the pleura, lines the extendsiton\ + \ of the pleural cavity into the neck.\nOption (D): “The pleura are composed of\ + \ respiratory epithelium.” This information is not correct. The pleaura are composed\ + \ of connective tissue (CT).\nBecause (A), (B), and (D) are all incorrect, (D) is\ + \ the only correct answer. The answer is (C).\n\nQ: What is the embryological origin\ \ of the hyoid bone?\n(A) The first pharyngeal arch (B) The first and second pharyngeal\ \ arches (C) The second pharyngeal arch (D) The second and third pharyngeal arches\n\ A: Let's think step by step. We refer to Wikipedia articles on anatomy for help.\ - \ Let\u2019s solve this problem step by step. The hyoid bone, which is also known\ - \ as the hyooid, is a a small U-shaped bone located in the anterior neck. In its\ - \ resting position, it lies between the ase of the mandible and the third cervical\ - \ vertebrae. We know that the second and the third pharyngeal arches give rise to\ - \ the horns of the hyoid bone; therefore, the embryological origin of the hyoid\ - \ bone are the second and the third pharyngeal arches\u2014this information is covered\ - \ in the last option (D). Therefore, we conclude that (D) must be the correct answer.\ - \ The answer is (D)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_anatomy + \ Let’s solve this problem step by step. The hyoid bone, which is also known as\ + \ the hyooid, is a a small U-shaped bone located in the anterior neck. In its resting\ + \ position, it lies between the ase of the mandible and the third cervical vertebrae.\ + \ We know that the second and the third pharyngeal arches give rise to the horns\ + \ of the hyoid bone; therefore, the embryological origin of the hyoid bone are the\ + \ second and the third pharyngeal arches—this information is covered in the last\ + \ option (D). Therefore, we conclude that (D) must be the correct answer. The answer\ + \ is (D)." +"group": "mmlu_flan_cot_fewshot_stem" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_anatomy" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_astronomy.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_astronomy.yaml index cd50fd55..dc365959 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_astronomy.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_astronomy.yaml @@ -1,5 +1,5 @@ -dataset_name: astronomy -description: "The following are multiple choice questions (with answers) about astronomy.\n\ +"dataset_name": "astronomy" +"description": "The following are multiple choice questions (with answers) about astronomy.\n\ \nQ: Where do most short-period comets come from and how do we know?\n(A) The Kuiper\ \ belt; short period comets tend to be in the plane of the solar system just like\ \ the Kuiper belt. (B) The Kuiper belt; short period comets tend to come from random\ @@ -16,39 +16,40 @@ description: "The following are multiple choice questions (with answers) about a \ lighter on Mars. (C) It would be harder since the truck is lighter on Mars. (D)\ \ It would be the same no matter where you are.\nA: Let's think step by step. If\ \ we assume that there is no friction, the force needed to accelerate the truck\ - \ is by Newton\u2019s second law only dependent on the mass of the truck. Hence\ - \ (A), (B) and (C) are incorrect since it doesn\u2019t matter that it\u2019s on\ - \ Mars, and (D) is the correct answer. The answer is (D).\n\nQ: Say the pupil of\ - \ your eye has a diameter of 5 mm and you have a telescope with an aperture of 50\ - \ cm. How much more light can the telescope gather than your eye?\n(A) 10000 times\ - \ more (B) 100 times more (C) 1000 times more (D) 10 times more\nA: Let's think\ - \ step by step. The amount of light is proportional to the aperture area $A = \\\ - pi D^2/4$ for a lens with diameter $D$, so the relative amounts of light between\ - \ the eye with diameter 5mm and the telescope with diameter 50mm is $(50 cm)^2/(5mm)^2\ - \ = 10000$. The answer is (A).\n\nQ: Why isn't there a planet where the asteroid\ - \ belt is located?\n(A) A planet once formed here but it was broken apart by a catastrophic\ - \ collision. (B) There was not enough material in this part of the solar nebula\ - \ to form a planet. (C) There was too much rocky material to form a terrestrial\ - \ planet but not enough gaseous material to form a jovian planet. (D) Resonance\ - \ with Jupiter prevented material from collecting together to form a planet.\nA:\ - \ Let's think step by step. The asteroid belt is a stellar disc consisting of a\ - \ large number of asteroids between Mars and Jupiter's orbits. The asteroids in\ - \ this belt are affected by the gravitational pull from both other asteroids and\ - \ nearby planets. Due to the strong gravitational force of Jupiter there are resonances\ - \ that give rise to low density regions of asteroids known as the Kirkwood gap.\ - \ So (B) and (C) are not correct since it\u2019s not a lack of material that prevents\ - \ a planet from being formed, and (A) is incorrect because the Kirkwood gap would\ - \ have prevented a planet from forming in the first place, and (D) is the correct\ - \ option. The answer is (D).\n\nQ: Why is Mars red?\n(A) Because the surface is\ - \ covered with heavily oxidized (\"rusted\") minerals. (B) Because the atmosphere\ - \ scatters more light at bluer wavelengths transmitting mostly red light. (C) Because\ - \ Mars is covered with ancient lava flows which are red in color. (D) Because flowing\ - \ water on Mars's surface altered the surface minerals several billion years ago.\n\ - A: Let's think step by step. Option (B) is not correct because if the red color\ - \ was caused by the scattering off the atmosphere, then the earth with a much thicker\ - \ atmosphere would also look red. Options (C) and (D) are not specific enough about\ - \ why the color of the surface would be red, while (A) is correct because it explains\ - \ that the surface is red due to the rusted materials on the surface and the red\ - \ color comes from the rust. So the correct option is (A). The answer is (A)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_astronomy + \ is by Newton’s second law only dependent on the mass of the truck. Hence (A),\ + \ (B) and (C) are incorrect since it doesn’t matter that it’s on Mars, and (D) is\ + \ the correct answer. The answer is (D).\n\nQ: Say the pupil of your eye has a diameter\ + \ of 5 mm and you have a telescope with an aperture of 50 cm. How much more light\ + \ can the telescope gather than your eye?\n(A) 10000 times more (B) 100 times more\ + \ (C) 1000 times more (D) 10 times more\nA: Let's think step by step. The amount\ + \ of light is proportional to the aperture area $A = \\pi D^2/4$ for a lens with\ + \ diameter $D$, so the relative amounts of light between the eye with diameter 5mm\ + \ and the telescope with diameter 50mm is $(50 cm)^2/(5mm)^2 = 10000$. The answer\ + \ is (A).\n\nQ: Why isn't there a planet where the asteroid belt is located?\n(A)\ + \ A planet once formed here but it was broken apart by a catastrophic collision.\ + \ (B) There was not enough material in this part of the solar nebula to form a planet.\ + \ (C) There was too much rocky material to form a terrestrial planet but not enough\ + \ gaseous material to form a jovian planet. (D) Resonance with Jupiter prevented\ + \ material from collecting together to form a planet.\nA: Let's think step by step.\ + \ The asteroid belt is a stellar disc consisting of a large number of asteroids\ + \ between Mars and Jupiter's orbits. The asteroids in this belt are affected by\ + \ the gravitational pull from both other asteroids and nearby planets. Due to the\ + \ strong gravitational force of Jupiter there are resonances that give rise to low\ + \ density regions of asteroids known as the Kirkwood gap. So (B) and (C) are not\ + \ correct since it’s not a lack of material that prevents a planet from being formed,\ + \ and (A) is incorrect because the Kirkwood gap would have prevented a planet from\ + \ forming in the first place, and (D) is the correct option. The answer is (D).\n\ + \nQ: Why is Mars red?\n(A) Because the surface is covered with heavily oxidized\ + \ (\"rusted\") minerals. (B) Because the atmosphere scatters more light at bluer\ + \ wavelengths transmitting mostly red light. (C) Because Mars is covered with ancient\ + \ lava flows which are red in color. (D) Because flowing water on Mars's surface\ + \ altered the surface minerals several billion years ago.\nA: Let's think step by\ + \ step. Option (B) is not correct because if the red color was caused by the scattering\ + \ off the atmosphere, then the earth with a much thicker atmosphere would also look\ + \ red. Options (C) and (D) are not specific enough about why the color of the surface\ + \ would be red, while (A) is correct because it explains that the surface is red\ + \ due to the rusted materials on the surface and the red color comes from the rust.\ + \ So the correct option is (A). The answer is (A)." +"group": "mmlu_flan_cot_fewshot_stem" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_astronomy" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_business_ethics.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_business_ethics.yaml index 60d939a8..53e6b96d 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_business_ethics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_business_ethics.yaml @@ -1,5 +1,5 @@ -dataset_name: business_ethics -description: "The following are multiple choice questions (with answers) about business\ +"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 _________\ @@ -7,12 +7,12 @@ description: "The following are multiple choice questions (with answers) about b \ 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 \u201C\ - In contrast to *boycotts*, *buycotts* aim to reward favourable behavior by companies.\ + \ 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*.\u201D The answer is (D).\n\nQ: _______ is the direct attempt to formally\ - \ or informally manage ethical issues or problems, through specific policies, practices\ + \ 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\ @@ -26,30 +26,31 @@ description: "The following are multiple choice questions (with answers) about b \ 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 \u201CThree contrasting\ + \ 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*.\u201D The answer is (C).\n\n\ - Q: To ensure the independence of the non-executive board members, there are a number\ + \ 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 \u201CTo 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 \u201C\ - 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)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_business_ethics + \ 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)." +"group": "mmlu_flan_cot_fewshot_other" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_business_ethics" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_clinical_knowledge.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_clinical_knowledge.yaml index a591a7bd..6f73eda0 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_clinical_knowledge.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_clinical_knowledge.yaml @@ -1,58 +1,35 @@ -dataset_name: clinical_knowledge -description: 'The following are multiple choice questions (with answers) about clinical - knowledge. - - - Q: Glycolysis is the name given to the pathway involving the conversion of: - - (A) glycogen to glucose-1-phosphate. (B) glycogen or glucose to fructose. (C) glycogen - or glucose to pyruvate or lactate. (D) glycogen or glucose to pyruvate or acetyl - CoA. - - A: Let''s think step by step. We refer to Wikipedia articles on clinical knowledge - for help. Glycolysis is the name given to the pathway involving conversion of glycogen - or glucose to pyruvate or lactate. The answer is (C). - - - Q: What is the difference between a male and a female catheter? - - (A) Male and female catheters are different colours. (B) Male catheters are longer - than female catheters. (C) Male catheters are bigger than female catheters. (D) - Female catheters are longer than male catheters. - - A: Let''s think step by step. We refer to Wikipedia articles on clinical knowledge - for help. The difference between a male and female catheter is that male catheters - tend to be longer than female catheters. The answer is (B). - - - Q: How many attempts should you make to cannulate a patient before passing the job - on to a senior colleague, according to the medical knowledge of 2020? - - (A) 4 (B) 3 (C) 2 (D) 1 - - A: Let''s think step by step. We refer to Wikipedia articles on clinical knowledge - for help. According to the medical protocol as of 2020, you should make two attempts - to cannulate a patient before passing the job on to a more-senior practitioner. - The answer is (C). - - - Q: In the assessment of the hand function which of the following is true? - - (A) Abduction of the thumb is supplied by spinal root T2 (B) Opposition of the thumb - by opponens policis is supplied by spinal root T1 (C) Finger adduction is supplied - by the median nerve (D) Finger abduction is mediated by the palmar interossei - - A: Let''s think step by step. We refer to Wikipedia articles on clinical knowledge - for help. Of all the options, it is only true that the opposition of the thumb by - opponens pollicis is supplied by spinal root T1. The answer is (B). - - - Q: The energy for all forms of muscle contraction is provided by: - - (A) ATP. (B) ADP. (C) phosphocreatine. (D) oxidative phosphorylation. - - A: Let''s think step by step. We refer to Wikipedia articles on clinical knowledge - for help. The energy for muscular contraction is provided by ATP (adenosine triphosphate), - which is the powerhouse of the cell. The answer is (A).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_clinical_knowledge +"dataset_name": "clinical_knowledge" +"description": "The following are multiple choice questions (with answers) about clinical\ + \ knowledge.\n\nQ: Glycolysis is the name given to the pathway involving the conversion\ + \ of:\n(A) glycogen to glucose-1-phosphate. (B) glycogen or glucose to fructose.\ + \ (C) glycogen or glucose to pyruvate or lactate. (D) glycogen or glucose to pyruvate\ + \ or acetyl CoA.\nA: Let's think step by step. We refer to Wikipedia articles on\ + \ clinical knowledge for help. Glycolysis is the name given to the pathway involving\ + \ conversion of glycogen or glucose to pyruvate or lactate. The answer is (C).\n\ + \nQ: What is the difference between a male and a female catheter?\n(A) Male and\ + \ female catheters are different colours. (B) Male catheters are longer than female\ + \ catheters. (C) Male catheters are bigger than female catheters. (D) Female catheters\ + \ are longer than male catheters.\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on clinical knowledge for help. The difference between a male and female\ + \ catheter is that male catheters tend to be longer than female catheters. The answer\ + \ is (B).\n\nQ: How many attempts should you make to cannulate a patient before\ + \ passing the job on to a senior colleague, according to the medical knowledge of\ + \ 2020?\n(A) 4 (B) 3 (C) 2 (D) 1\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on clinical knowledge for help. According to the medical protocol as\ + \ of 2020, you should make two attempts to cannulate a patient before passing the\ + \ job on to a more-senior practitioner. The answer is (C).\n\nQ: In the assessment\ + \ of the hand function which of the following is true?\n(A) Abduction of the thumb\ + \ is supplied by spinal root T2 (B) Opposition of the thumb by opponens policis\ + \ is supplied by spinal root T1 (C) Finger adduction is supplied by the median nerve\ + \ (D) Finger abduction is mediated by the palmar interossei\nA: Let's think step\ + \ by step. We refer to Wikipedia articles on clinical knowledge for help. Of all\ + \ the options, it is only true that the opposition of the thumb by opponens pollicis\ + \ is supplied by spinal root T1. The answer is (B).\n\nQ: The energy for all forms\ + \ of muscle contraction is provided by:\n(A) ATP. (B) ADP. (C) phosphocreatine.\ + \ (D) oxidative phosphorylation.\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on clinical knowledge for help. The energy for muscular contraction is\ + \ provided by ATP (adenosine triphosphate), which is the powerhouse of the cell.\ + \ The answer is (A)." +"group": "mmlu_flan_cot_fewshot_other" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_clinical_knowledge" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_biology.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_biology.yaml index be51794a..1cd13c56 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_biology.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_biology.yaml @@ -1,5 +1,5 @@ -dataset_name: college_biology -description: "The following are multiple choice questions (with answers) about college\ +"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\ @@ -19,7 +19,7 @@ description: "The following are multiple choice questions (with answers) about c \ 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. \u200BThe frequency of the recessive allele\ + \ 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\ @@ -56,5 +56,6 @@ description: "The following are multiple choice questions (with answers) about c \ 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)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_college_biology +"group": "mmlu_flan_cot_fewshot_stem" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_college_biology" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_chemistry.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_chemistry.yaml index a02c909e..08f002b5 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_chemistry.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_chemistry.yaml @@ -1,37 +1,38 @@ -dataset_name: college_chemistry -description: "The following are multiple choice questions (with answers) about college\ - \ chemistry.\n\nQ: 3 Cl\u2212(aq) + 4 CrO_4^2\u2212(aq) + 23 H+(aq) \u2192 3 HClO2(aq)\ - \ + 4 Cr3+(aq) + 10 H2O(l). In the reaction shown above, Cl\u2212(aq) behaves as\n\ - (A) an acid (B) a base (C) a catalyst (D) a reducing agent\nA: Let's think step\ - \ by step. A molecule that behaves as a base accepts an H+ ion (or proton) from\ - \ another molecule, whereas a molecule that behaves as an acid donates an H+ ion\ - \ (or proton) to another molecule. Neither of these is the case for Cl in this reaction,\ - \ which rules out (A) and (B). A catalyst is a substance that only accelerates a\ - \ reaction without itself undergoing chemical change, which is not the case here.\ - \ This rules out (C). Instead, the $Cl^{-} molecules carry a negative charge, which\ - \ they donate in the reaction to form 3 HClO2. This is the behavior of a reducing\ - \ agent, or (D). The answer is (D).\n\nQ: Which of the following statements about\ - \ the lanthanide elements is NOT true?\n(A) The most common oxidation state for\ - \ the lanthanide elements is +3. (B) Lanthanide complexes often have high coordination\ - \ numbers (> 6). (C) All of the lanthanide elements react with aqueous acid to liberate\ - \ hydrogen. (D) The atomic radii of the lanthanide elements increase across the\ - \ period from La to Lu.\nA: Let's think step by step. The atomic radii of the lanthanide\ - \ elements in fact decrease across the period from La to Lu. Options (A), (B), and\ - \ (C) are all true. This means that only (D) is NOT true. The answer is (D).\n\n\ - Q: Which of the following lists the hydrides of group-14 elements in order of thermal\ - \ stability, from lowest to highest?\n(A) PbH4 < SnH4 < GeH4 < SiH4 < CH4 (B) PbH4\ - \ < SnH4 < CH4 < GeH4 < SiH4 (C) CH4 < SiH4 < GeH4 < SnH4 < PbH4 (D) CH4 < PbH4\ - \ < GeH4 < SnH4 < SiH4\nA: Let's think step by step. The thermal stability of group-14\ - \ hydrides decreases as we move from the top of group 14 to the bottom. The order\ - \ of elements in the group from top to bottom is C, Si, Ge, Sn, Pb. Therefore in\ - \ order of increasing thermal stability we have PbH4, SnH4, GeH4, SiH4, and CH4,\ - \ or answer (A). The answer is (A).\n\nQ: Predict the number of lines in the EPR\ - \ spectrum of a solution of 13C-labelled methyl radical (13CH3\u2022), assuming\ - \ the lines do not overlap.\n(A) 4 (B) 3 (C) 6 (D) 24 (E) 8\nA: Let's think step\ - \ by step. The electron paramagnetic resonance spectrum will be split by two forms\ - \ of interactions. The first is the hyperfine interaction with the 13C (nuclear\ - \ spin $I = \nrac{1}{2}$) which will split the spectrum into 2 lines. This will\ - \ be further split into 4 lines by the interaction with three equivalent 1H nuclei.\ - \ The total number of lines is therefore $2 \\cdot 4 = 8$. The answer is (E)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_college_chemistry +"dataset_name": "college_chemistry" +"description": "The following are multiple choice questions (with answers) about college\ + \ chemistry.\n\nQ: 3 Cl−(aq) + 4 CrO_4^2−(aq) + 23 H+(aq) → 3 HClO2(aq) + 4 Cr3+(aq)\ + \ + 10 H2O(l). In the reaction shown above, Cl−(aq) behaves as\n(A) an acid (B)\ + \ a base (C) a catalyst (D) a reducing agent\nA: Let's think step by step. A molecule\ + \ that behaves as a base accepts an H+ ion (or proton) from another molecule, whereas\ + \ a molecule that behaves as an acid donates an H+ ion (or proton) to another molecule.\ + \ Neither of these is the case for Cl in this reaction, which rules out (A) and\ + \ (B). A catalyst is a substance that only accelerates a reaction without itself\ + \ undergoing chemical change, which is not the case here. This rules out (C). Instead,\ + \ the $Cl^{-} molecules carry a negative charge, which they donate in the reaction\ + \ to form 3 HClO2. This is the behavior of a reducing agent, or (D). The answer\ + \ is (D).\n\nQ: Which of the following statements about the lanthanide elements\ + \ is NOT true?\n(A) The most common oxidation state for the lanthanide elements\ + \ is +3. (B) Lanthanide complexes often have high coordination numbers (> 6). (C)\ + \ All of the lanthanide elements react with aqueous acid to liberate hydrogen. (D)\ + \ The atomic radii of the lanthanide elements increase across the period from La\ + \ to Lu.\nA: Let's think step by step. The atomic radii of the lanthanide elements\ + \ in fact decrease across the period from La to Lu. Options (A), (B), and (C) are\ + \ all true. This means that only (D) is NOT true. The answer is (D).\n\nQ: Which\ + \ of the following lists the hydrides of group-14 elements in order of thermal stability,\ + \ from lowest to highest?\n(A) PbH4 < SnH4 < GeH4 < SiH4 < CH4 (B) PbH4 < SnH4 <\ + \ CH4 < GeH4 < SiH4 (C) CH4 < SiH4 < GeH4 < SnH4 < PbH4 (D) CH4 < PbH4 < GeH4 <\ + \ SnH4 < SiH4\nA: Let's think step by step. The thermal stability of group-14 hydrides\ + \ decreases as we move from the top of group 14 to the bottom. The order of elements\ + \ in the group from top to bottom is C, Si, Ge, Sn, Pb. Therefore in order of increasing\ + \ thermal stability we have PbH4, SnH4, GeH4, SiH4, and CH4, or answer (A). The\ + \ answer is (A).\n\nQ: Predict the number of lines in the EPR spectrum of a solution\ + \ of 13C-labelled methyl radical (13CH3•), assuming the lines do not overlap.\n\ + (A) 4 (B) 3 (C) 6 (D) 24 (E) 8\nA: Let's think step by step. The electron paramagnetic\ + \ resonance spectrum will be split by two forms of interactions. The first is the\ + \ hyperfine interaction with the 13C (nuclear spin $I = \nrac{1}{2}$) which will\ + \ split the spectrum into 2 lines. This will be further split into 4 lines by the\ + \ interaction with three equivalent 1H nuclei. The total number of lines is therefore\ + \ $2 \\cdot 4 = 8$. The answer is (E)." +"group": "mmlu_flan_cot_fewshot_stem" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_college_chemistry" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_computer_science.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_computer_science.yaml index 20b398c1..e3a20705 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_computer_science.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_computer_science.yaml @@ -1,189 +1,79 @@ -dataset_name: college_computer_science -description: 'The following are multiple choice questions (with answers) about college - computer science. - - - Q: Which of the following regular expressions is equivalent to (describes the same - set of strings as) (a* + b)*(c + d)? - - (A) a*(c + d)+ b(c + d) - - (B) a*(c + d)* + b(c + d)* - - (C) a*(c + d)+ b*(c + d) - - (D) (a + b)*c +(a + b)*d - - A: Let''s think step by step. We know that: - - 1. (X* + Y)* = (X + Y)* - - 2. X(Y + Z)? = XY + XZ - - Using equation 1 we can rewrite (a* + b)*(c + d)? as: - - 3. (a + b)*(c + d)? - - Using equation 2 we can rewrite equation 3 as: - - (a + b)*c + (a + b)*d The answer is (D). - - - Q: The Singleton design pattern is used to guarantee that only a single instance - of a class may be instantiated. Which of the following is (are) true of this design - pattern? - - I. The Singleton class has a static factory method to provide its instance. - - II. The Singleton class can be a subclass of another class. - - III. The Singleton class has a private constructor. - - (A) I only - - (B) II only - - (C) III only - - (D) I, II, and III - - A: Let''s think step by step. Statement I is a correct statement about a Singleton, - because a Singleton restricts instantiation to a single, static method. Statement - II is also correct, because there is no inherent restriction regarding the inheritance - of a Singleton. Statement III is also correct, because a Singletons must be instantiated - only once, so its constructor is made private to prevent any construction except - via its static factory method. - - Given these facts, statements I, II, and III are all correct. The answer is (D). - - - Q: A certain pipelined RISC machine has 8 general-purpose registers R0, R1, . . - . , R7 and supports the following operations: - - ADD Rs1, Rs2, Rd (Add Rs1 to Rs2 and put the sum in Rd) - - MUL Rs1, Rs2, Rd (Multiply Rs1 by Rs2 and put the product in Rd) - - An operation normally takes one cycle; however, an operation takes two cycles if - it produces a result required by the immediately following operation in an operation - sequence. - - Consider the expression AB + ABC + BC, where variables A, B, C are located in registers - R0, R1, R2. If the contents of these three registers must not be modified, what - is the minimum number of clock cycles required for an operation sequence that computes - the value of AB + ABC + BC? - - (A) 5 (B) 6 (C) 7 (D) 8 - - A: Let''s think step by step. First, we are given that A is in R0, B is in R1, and - C is in R2. - - Next, we can see that we must compute three multiplies (AB, BC, and ABC) and two - adds (AB + ABC, (AB + ABC) + BC) to compute our final answer, resulting in a minimum - of five clock cycles. - - Next, we can see that there is no way to avoid at least one pipeline stall when - computing our final answer, because to compute our final sum we must wait at least - one cycle for the results from the previous stage to be ready. Thus, our minimum - number of cycles must be 6. - - We can verify that we can create a solution that requires only six cycles as follows: - - compute AB: MUL R0, R1, R3 - - compute BC: MUL R1, R2, R4 - - compute ABC: MUL R3, R4, R5 - - compute AB + BC: ADD R3, R4, R6 - - STALL - - compute AB + ABC + BC: ADD R5, R6, R7 - - So there are 6 cycles. The answer is (B). - - - Q: A compiler generates code for the following assignment statement. - - G := (A + B) * C - (D + E) * F - - The target machine has a single accumulator and a single-address instruction set - consisting of instructions load, store, add, subtract, and multiply. For the arithmetic - operations, the left operand is taken from the accumulator and the result appears - in the accumulator. The smallest possible number of instructions in the resulting - code is - - (A) 5 (B) 6 (C) 7 (D) 9 - - A: Let''s think step by step. We can compute the final answer with the following - sequence of operations: - - 1. LOAD D (accumulator = D) - - 2. ADD E (accumulator = D+E) - - 3. MUL F (accumulator = (D+E)*F) - - 4. STORE X (X = (D+E)*F) - - 5. LOAD A (accumulator = A) - - 6. ADD B (accumulator = A+B) - - 7. MUL C (accumulator = (A+B)*C) - - 8. SUB X (accumulator = (A+B)*C - (D+E)*F) - - 9. STORE G (G = (A+B)*C - (D+E)*F) - - This sequence takes 9 instructions. The answer is (D). - - - Q: Consider a computer design in which multiple processors, each with a private - cache memory, share global memory using a single bus. This bus is the critical system - resource. Each processor can execute one instruction every 500 nanoseconds as long - as memory references are satisfied by its local cache. When a cache miss occurs, - the processor is delayed for an additional 2,000 nanoseconds. During half of this - additional delay, the bus is dedicated to serving the cache miss. During the other - half, the processor cannot continue, but the bus is free to service requests from - other processors. On average, each instruction requires 2 memory references. On - average, cache misses occur on 1 percent of references. What proportion of the capacity - of the bus would a single processor consume, ignoring delays due to competition - from other processors? - - (A) 1/50 (B) 1/27 (C) 1/25 (D) 2/27 - - A: Let''s think step by step. We know that each instruction requires two memory - references per instruction, and that there is an average cache miss rate of one - percent. - - Thus a given processor has: - - (1 cache miss / 100 references) * (2 references / instruction) = - - (2 cache misses / 100 instructions), so: - - misses_per_instruction = 1 cache miss / 50 instructions. - - Next, we know that each instruction requires 500 nanoseconds when there is no cache - miss, and 500 + 2000 = 2500 nanoseconds when there is a cache miss. Thus: - - 50 instructions / (49 * 500) + (1 * 2500) nanoseconds, so: - - instructions_per_ns = 50 instructions / 27000 nanoseconds. - - Now, we know that each cache miss locks the bus for half of the 2000 nanosecond - cache miss delay, or 1000 nanoseconds, so: - - lock_ns_per_miss = 1000 nanoseconds / cache miss. - - Thus we can see that on average a single processor will lock the bus for: - - lock_ns_per_miss * misses_per_instruction * instructions_per_ns = - - (1000 nanoseconds / cache miss) * (1 cache miss / 50 instructions) * (50 instructions - / 27000 nanoseconds) = 1000 * (1/50) * (50/27000) = 1000/27000 = 1/27. The answer - is (B).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_college_computer_science +"dataset_name": "college_computer_science" +"description": "The following are multiple choice questions (with answers) about college\ + \ computer science.\n\nQ: Which of the following regular expressions is equivalent\ + \ to (describes the same set of strings as) (a* + b)*(c + d)?\n(A) a*(c + d)+ b(c\ + \ + d)\n(B) a*(c + d)* + b(c + d)*\n(C) a*(c + d)+ b*(c + d)\n(D) (a + b)*c +(a\ + \ + b)*d\nA: Let's think step by step. We know that:\n1. (X* + Y)* = (X + Y)*\n\ + 2. X(Y + Z)? = XY + XZ\nUsing equation 1 we can rewrite (a* + b)*(c + d)? as:\n\ + 3. (a + b)*(c + d)?\nUsing equation 2 we can rewrite equation 3 as:\n(a + b)*c +\ + \ (a + b)*d The answer is (D).\n\nQ: The Singleton design pattern is used to guarantee\ + \ that only a single instance of a class may be instantiated. Which of the following\ + \ is (are) true of this design pattern?\nI. The Singleton class has a static factory\ + \ method to provide its instance.\nII. The Singleton class can be a subclass of\ + \ another class.\nIII. The Singleton class has a private constructor.\n(A) I only\n\ + (B) II only\n(C) III only\n(D) I, II, and III\nA: Let's think step by step. Statement\ + \ I is a correct statement about a Singleton, because a Singleton restricts instantiation\ + \ to a single, static method. Statement II is also correct, because there is no\ + \ inherent restriction regarding the inheritance of a Singleton. Statement III is\ + \ also correct, because a Singletons must be instantiated only once, so its constructor\ + \ is made private to prevent any construction except via its static factory method.\n\ + Given these facts, statements I, II, and III are all correct. The answer is (D).\n\ + \nQ: A certain pipelined RISC machine has 8 general-purpose registers R0, R1, .\ + \ . . , R7 and supports the following operations:\nADD Rs1, Rs2, Rd (Add Rs1 to\ + \ Rs2 and put the sum in Rd)\nMUL Rs1, Rs2, Rd (Multiply Rs1 by Rs2 and put the\ + \ product in Rd)\nAn operation normally takes one cycle; however, an operation takes\ + \ two cycles if it produces a result required by the immediately following operation\ + \ in an operation sequence.\nConsider the expression AB + ABC + BC, where variables\ + \ A, B, C are located in registers R0, R1, R2. If the contents of these three registers\ + \ must not be modified, what is the minimum number of clock cycles required for\ + \ an operation sequence that computes the value of AB + ABC + BC?\n(A) 5 (B) 6 (C)\ + \ 7 (D) 8\nA: Let's think step by step. First, we are given that A is in R0, B is\ + \ in R1, and C is in R2.\nNext, we can see that we must compute three multiplies\ + \ (AB, BC, and ABC) and two adds (AB + ABC, (AB + ABC) + BC) to compute our final\ + \ answer, resulting in a minimum of five clock cycles.\nNext, we can see that there\ + \ is no way to avoid at least one pipeline stall when computing our final answer,\ + \ because to compute our final sum we must wait at least one cycle for the results\ + \ from the previous stage to be ready. Thus, our minimum number of cycles must be\ + \ 6.\nWe can verify that we can create a solution that requires only six cycles\ + \ as follows:\ncompute AB: MUL R0, R1, R3\ncompute BC: MUL R1, R2, R4\ncompute ABC:\ + \ MUL R3, R4, R5\ncompute AB + BC: ADD R3, R4, R6\nSTALL\ncompute AB + ABC + BC:\ + \ ADD R5, R6, R7\nSo there are 6 cycles. The answer is (B).\n\nQ: A compiler generates\ + \ code for the following assignment statement.\nG := (A + B) * C - (D + E) * F\n\ + The target machine has a single accumulator and a single-address instruction set\ + \ consisting of instructions load, store, add, subtract, and multiply. For the arithmetic\ + \ operations, the left operand is taken from the accumulator and the result appears\ + \ in the accumulator. The smallest possible number of instructions in the resulting\ + \ code is\n(A) 5 (B) 6 (C) 7 (D) 9\nA: Let's think step by step. We can compute\ + \ the final answer with the following sequence of operations:\n1. LOAD D (accumulator\ + \ = D)\n2. ADD E (accumulator = D+E)\n3. MUL F (accumulator = (D+E)*F)\n4. STORE\ + \ X (X = (D+E)*F)\n5. LOAD A (accumulator = A)\n6. ADD B (accumulator = A+B)\n\ + 7. MUL C (accumulator = (A+B)*C)\n8. SUB X (accumulator = (A+B)*C - (D+E)*F)\n\ + 9. STORE G (G = (A+B)*C - (D+E)*F)\nThis sequence takes 9 instructions. The answer\ + \ is (D).\n\nQ: Consider a computer design in which multiple processors, each with\ + \ a private cache memory, share global memory using a single bus. This bus is the\ + \ critical system resource. Each processor can execute one instruction every 500\ + \ nanoseconds as long as memory references are satisfied by its local cache. When\ + \ a cache miss occurs, the processor is delayed for an additional 2,000 nanoseconds.\ + \ During half of this additional delay, the bus is dedicated to serving the cache\ + \ miss. During the other half, the processor cannot continue, but the bus is free\ + \ to service requests from other processors. On average, each instruction requires\ + \ 2 memory references. On average, cache misses occur on 1 percent of references.\ + \ What proportion of the capacity of the bus would a single processor consume, ignoring\ + \ delays due to competition from other processors?\n(A) 1/50 (B) 1/27 (C) 1/25 (D)\ + \ 2/27\nA: Let's think step by step. We know that each instruction requires two\ + \ memory references per instruction, and that there is an average cache miss rate\ + \ of one percent.\nThus a given processor has:\n(1 cache miss / 100 references)\ + \ * (2 references / instruction) =\n(2 cache misses / 100 instructions), so:\nmisses_per_instruction\ + \ = 1 cache miss / 50 instructions.\nNext, we know that each instruction requires\ + \ 500 nanoseconds when there is no cache miss, and 500 + 2000 = 2500 nanoseconds\ + \ when there is a cache miss. Thus:\n50 instructions / (49 * 500) + (1 * 2500) nanoseconds,\ + \ so:\ninstructions_per_ns = 50 instructions / 27000 nanoseconds.\nNow, we know\ + \ that each cache miss locks the bus for half of the 2000 nanosecond cache miss\ + \ delay, or 1000 nanoseconds, so:\nlock_ns_per_miss = 1000 nanoseconds / cache miss.\n\ + Thus we can see that on average a single processor will lock the bus for:\nlock_ns_per_miss\ + \ * misses_per_instruction * instructions_per_ns =\n(1000 nanoseconds / cache miss)\ + \ * (1 cache miss / 50 instructions) * (50 instructions / 27000 nanoseconds) = 1000\ + \ * (1/50) * (50/27000) = 1000/27000 = 1/27. The answer is (B)." +"group": "mmlu_flan_cot_fewshot_stem" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_college_computer_science" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_mathematics.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_mathematics.yaml index 4442f9ed..9d5d975e 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_mathematics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_mathematics.yaml @@ -1,49 +1,50 @@ -dataset_name: college_mathematics -description: "The following are multiple choice questions (with answers) about college\ +"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))\u2019 = p(x)\ - \ + xp\u2019(x)\\]\nand\n\\[TS(p) = xp\u2019(x).\\]\nHence \\[ST(p) - TS(p) = p(x)\ - \ + xp\u2019(x) - xp\u2019(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\nQ: Let A be a real 2x2 matrix. Which of the following statements must\ - \ be true?\nI. All of the entries of A^2 are nonnegative.\nII. The determinant of\ - \ A^2 is nonnegative.\nIII. 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\n\ - A: 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}=\f\ - rac{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)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_college_mathematics + \ 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)." +"group": "mmlu_flan_cot_fewshot_stem" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_college_mathematics" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_medicine.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_medicine.yaml index 8f3ae14e..68c7f434 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_medicine.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_medicine.yaml @@ -1,5 +1,5 @@ -dataset_name: college_medicine -description: "The following are multiple choice questions (with answers) about college\ +"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.\ @@ -9,44 +9,44 @@ description: "The following are multiple choice questions (with answers) about c \ 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\u2019s\ - \ solve this step by step and go over each choice: \n(A) \u201CMuscle glycogen is\ - \ broken down enzymatically to glucose-1-phosphate\u201D: This is a correct statement.\n\ - (B) \u201CElite endurance runners have a high proportion of Type I fibres in their\ - \ leg muscles\u201D: This is a correct statement.\n(C) \u201CLiver glycogen is important\ - \ in the maintenance of the blood glucose concentration\u201D: This is a correct\ - \ statement. \n(D) \u201CInsulin promotes glucose uptake by all tissues in the body\u201D\ - : 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\xB0C.\ - \ 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.\n\ - A: Let's think step by step. We refer to Wikipedia articles on medicine for help.\ - \ Let\u2019s 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, \u201C(C): All daughters of an affected\ - \ male will be affected\u201D 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)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_college_medicine + \ 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)." +"group": "mmlu_flan_cot_fewshot_other" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_college_medicine" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_physics.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_physics.yaml index d500a5b8..f4135204 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_physics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_physics.yaml @@ -1,70 +1,44 @@ -dataset_name: college_physics -description: 'The following are multiple choice questions (with answers) about college - physics. - - - Q: A refracting telescope consists of two converging lenses separated by 100 cm. - The eye-piece lens has a focal length of 20 cm. The angular magnification of the - telescope is - - (A) 4 (B) 5 (C) 6 (D) 20 - - A: Let''s think step by step. In a refracting telescope, if both lenses are converging, - the focus of both lenses must be between the two lenses, and thus the focal lengths - of the two lenses must add up to their separation. Since the focal length of one - lens is 20 cm, the focal length of the other must be 80 cm. The magnification is - the ratio of these two focal lengths, or 4. The answer is (A). - - - Q: The muon decays with a characteristic lifetime of about 10^-6 second into an - electron, a muon neutrino, and an electron antineutrino. The muon is forbidden from - decaying into an electron and just a single neutrino by the law of conservation - of - - (A) charge (B) mass (C) energy and momentum (D) lepton number - - A: Let''s think step by step. Lepton number must be conserved, meaning the total - number of leptons minus the number of antileptons. If a muon decays into an electron - and a single neutrino, the total lepton number would go from one to two, violating - lepton number conservation. The answer is (D). - - - Q: One end of a Nichrome wire of length 2L and cross-sectional area A is attached - to an end of another Nichrome wire of length L and cross- sectional area 2A. If - the free end of the longer wire is at an electric potential of 8.0 volts, and the - free end of the shorter wire is at an electric potential of 1.0 volt, the potential - at the junction of the two wires is most nearly equal to - - (A) 2.4 V (B) 3.3 V (C) 4.5 V (D) 5.7 V - - A: Let''s think step by step. This is a simple voltage divider problem, where the - longer wire has a resistance four times that of the shorter end. So the voltage - divider ratio is 1 / 5, meaning that the potential in the middle is 1.0 V + (8.0 - V - 1.0 V) * 1/5 = 2.4 V. The answer is (A). - - - Q: A refracting telescope consists of two converging lenses separated by 100 cm. - The eye-piece lens has a focal length of 20 cm. The angular magnification of the - telescope is - - (A) 4 (B) 5 (C) 6 (D) 20 - - A: Let''s think step by step. In a refracting telescope, if both lenses are converging, - the focus of both lenses must be between the two lenses, and thus the focal lengths - of the two lenses must add up to their separation. Since the focal length of one - lens is 20 cm, the focal length of the other must be 80 cm. The magnification is - the ratio of these two focal lengths, or 4. The answer is (A). - - - Q: For which of the following thermodynamic processes is the increase in the internal - energy of an ideal gas equal to the heat added to the gas? - - (A) Constant temperature (B) Constant volume (C) Constant pressure (D) Adiabatic - - A: Let''s think step by step. Heat added to the gas can go into the gases internal - energy or work done against an external force. However, if the volume of the gas - container is constant, no work will be done (since work is pressure times change - in volume). So, at constant volume, all of the heat goes into the internal energy. - The answer is (B).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_college_physics +"dataset_name": "college_physics" +"description": "The following are multiple choice questions (with answers) about college\ + \ physics.\n\nQ: A refracting telescope consists of two converging lenses separated\ + \ by 100 cm. The eye-piece lens has a focal length of 20 cm. The angular magnification\ + \ of the telescope is\n(A) 4 (B) 5 (C) 6 (D) 20\nA: Let's think step by step. In\ + \ a refracting telescope, if both lenses are converging, the focus of both lenses\ + \ must be between the two lenses, and thus the focal lengths of the two lenses must\ + \ add up to their separation. Since the focal length of one lens is 20 cm, the focal\ + \ length of the other must be 80 cm. The magnification is the ratio of these two\ + \ focal lengths, or 4. The answer is (A).\n\nQ: The muon decays with a characteristic\ + \ lifetime of about 10^-6 second into an electron, a muon neutrino, and an electron\ + \ antineutrino. The muon is forbidden from decaying into an electron and just a\ + \ single neutrino by the law of conservation of\n(A) charge (B) mass (C) energy\ + \ and momentum (D) lepton number\nA: Let's think step by step. Lepton number must\ + \ be conserved, meaning the total number of leptons minus the number of antileptons.\ + \ If a muon decays into an electron and a single neutrino, the total lepton number\ + \ would go from one to two, violating lepton number conservation. The answer is\ + \ (D).\n\nQ: One end of a Nichrome wire of length 2L and cross-sectional area A\ + \ is attached to an end of another Nichrome wire of length L and cross- sectional\ + \ area 2A. If the free end of the longer wire is at an electric potential of 8.0\ + \ volts, and the free end of the shorter wire is at an electric potential of 1.0\ + \ volt, the potential at the junction of the two wires is most nearly equal to\n\ + (A) 2.4 V (B) 3.3 V (C) 4.5 V (D) 5.7 V\nA: Let's think step by step. This is a\ + \ simple voltage divider problem, where the longer wire has a resistance four times\ + \ that of the shorter end. So the voltage divider ratio is 1 / 5, meaning that the\ + \ potential in the middle is 1.0 V + (8.0 V - 1.0 V) * 1/5 = 2.4 V. The answer is\ + \ (A).\n\nQ: A refracting telescope consists of two converging lenses separated\ + \ by 100 cm. The eye-piece lens has a focal length of 20 cm. The angular magnification\ + \ of the telescope is\n(A) 4 (B) 5 (C) 6 (D) 20\nA: Let's think step by step. In\ + \ a refracting telescope, if both lenses are converging, the focus of both lenses\ + \ must be between the two lenses, and thus the focal lengths of the two lenses must\ + \ add up to their separation. Since the focal length of one lens is 20 cm, the focal\ + \ length of the other must be 80 cm. The magnification is the ratio of these two\ + \ focal lengths, or 4. The answer is (A).\n\nQ: For which of the following thermodynamic\ + \ processes is the increase in the internal energy of an ideal gas equal to the\ + \ heat added to the gas?\n(A) Constant temperature (B) Constant volume (C) Constant\ + \ pressure (D) Adiabatic\nA: Let's think step by step. Heat added to the gas can\ + \ go into the gases internal energy or work done against an external force. However,\ + \ if the volume of the gas container is constant, no work will be done (since work\ + \ is pressure times change in volume). So, at constant volume, all of the heat goes\ + \ into the internal energy. The answer is (B)." +"group": "mmlu_flan_cot_fewshot_stem" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_college_physics" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_computer_security.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_computer_security.yaml index 08f23169..11d2736a 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_computer_security.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_computer_security.yaml @@ -1,35 +1,36 @@ -dataset_name: computer_security -description: "The following are multiple choice questions (with answers) about computer\ +"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 \u2013 so that your system doesn\u2019t 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 \u2013 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\nA: 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\u2019t 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\nQ: 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)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_computer_security + \ 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)." +"group": "mmlu_flan_cot_fewshot_stem" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_computer_security" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_conceptual_physics.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_conceptual_physics.yaml index df845ce8..4866041d 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_conceptual_physics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_conceptual_physics.yaml @@ -1,32 +1,33 @@ -dataset_name: conceptual_physics -description: "\nThe following are multiple choice questions (with answers) about conceptual\ - \ physics.\n\nQ: Colors in a soap bubble result from light\n(A) converted to a different\ - \ frequency (B) deflection (C) interference (D) polarization\nA: Let's think step\ - \ by step. In a soap bubble film, the light bounces between the two soap-air interfaces\ - \ many times, interfering with itself constructively or destructively depending\ - \ on the width of the film. This results in different colors being visible. The\ - \ answer is (C).\n\nQ: Compared with the mass of a uranium atom undergoing fission,\ - \ the combined masses of the products after fission are\n(A) less (B) more (C) the\ - \ same (D) zero\nA: Let's think step by step. Fission releases energy, which comes\ - \ from the rest mass of its initial nucleus. Thus the mass of the products is less\ - \ than the mass of the reactant uranium nucleus. The answer is (A).\n\nQ: Things\ - \ that are equivalent according to the equivalence principle are\n(A) space and\ - \ time. (B) a traveling twin and a stay-at-home twin. (C) gravity and acceleration.\ - \ (D) mass and energy.\nA: Let's think step by step. Einstein\u2019s famous equivalence\ - \ principle states that gravity and acceleration are equivalent. The answer is (C).\n\ - \nQ: Which of these three elements has the most mass per nucleon?\n(A) Hydrogen\ - \ (B) Iron (C) Uranium (D) Same in each\nA: Let's think step by step. Due to nuclear\ - \ binding energy, the mass of an atomic nucleus is less than the sum of individual\ - \ masses of the free constituent protons and neutrons; this is known as the mass\ - \ defect. Hydrogen has no mass defect because it has only a single nucleon, so it\ - \ will have the most mass per nucleon. The answer is (A).\n\nQ: A model airplane\ - \ flies slower when flying into the wind and faster with wind at its back. When\ - \ launched at right angles to the wind a cross wind its groundspeed compared with\ - \ flying in still air is\n(A) the same (B) greater (C) less (D) either greater or\ - \ less depending on wind speed\nA: Let's think step by step. The plane\u2019s speed\ - \ in the direction of the wind is greater than it would be in the absence of wind,\ - \ and its direction orthogonal to the wind is the same as it would be in the absence\ - \ of the wind. The total speed, which is these two components added in quadrature,\ - \ is thus greater than the speed in still air. The answer is (B)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_conceptual_physics +"dataset_name": "conceptual_physics" +"description": "\nThe following are multiple choice questions (with answers) about\ + \ conceptual physics.\n\nQ: Colors in a soap bubble result from light\n(A) converted\ + \ to a different frequency (B) deflection (C) interference (D) polarization\nA:\ + \ Let's think step by step. In a soap bubble film, the light bounces between the\ + \ two soap-air interfaces many times, interfering with itself constructively or\ + \ destructively depending on the width of the film. This results in different colors\ + \ being visible. The answer is (C).\n\nQ: Compared with the mass of a uranium atom\ + \ undergoing fission, the combined masses of the products after fission are\n(A)\ + \ less (B) more (C) the same (D) zero\nA: Let's think step by step. Fission releases\ + \ energy, which comes from the rest mass of its initial nucleus. Thus the mass of\ + \ the products is less than the mass of the reactant uranium nucleus. The answer\ + \ is (A).\n\nQ: Things that are equivalent according to the equivalence principle\ + \ are\n(A) space and time. (B) a traveling twin and a stay-at-home twin. (C) gravity\ + \ and acceleration. (D) mass and energy.\nA: Let's think step by step. Einstein’s\ + \ famous equivalence principle states that gravity and acceleration are equivalent.\ + \ The answer is (C).\n\nQ: Which of these three elements has the most mass per nucleon?\n\ + (A) Hydrogen (B) Iron (C) Uranium (D) Same in each\nA: Let's think step by step.\ + \ Due to nuclear binding energy, the mass of an atomic nucleus is less than the\ + \ sum of individual masses of the free constituent protons and neutrons; this is\ + \ known as the mass defect. Hydrogen has no mass defect because it has only a single\ + \ nucleon, so it will have the most mass per nucleon. The answer is (A).\n\nQ: A\ + \ model airplane flies slower when flying into the wind and faster with wind at\ + \ its back. When launched at right angles to the wind a cross wind its groundspeed\ + \ compared with flying in still air is\n(A) the same (B) greater (C) less (D) either\ + \ greater or less depending on wind speed\nA: Let's think step by step. The plane’s\ + \ speed in the direction of the wind is greater than it would be in the absence\ + \ of wind, and its direction orthogonal to the wind is the same as it would be in\ + \ the absence of the wind. The total speed, which is these two components added\ + \ in quadrature, is thus greater than the speed in still air. The answer is (B)." +"group": "mmlu_flan_cot_fewshot_stem" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_conceptual_physics" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_econometrics.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_econometrics.yaml index 33883f47..c97ae1b2 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_econometrics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_econometrics.yaml @@ -1,63 +1,63 @@ -dataset_name: econometrics -description: "The following are multiple choice questions (with answers) about econometrics.\n\ +"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\u2019s solve this problem step\ - \ by step. First of all, let\u2019s 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\u2019s 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\u2019s 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\nThe (unconditional) mean of y will be given by\n(A) 0.2 (B) 0.4\ - \ (C) 0.5 (D) 0.33\nA: Let's think step by step. We refer to Wikipedia articles\ - \ on econometrics for help. Let\u2019s 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:\n\ - unconditional 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\u2019\ - 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)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_econometrics + \ 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)." +"group": "mmlu_flan_cot_fewshot_social_sciences" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_econometrics" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_electrical_engineering.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_electrical_engineering.yaml index cdd31ce4..ea7b24a0 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_electrical_engineering.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_electrical_engineering.yaml @@ -1,34 +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\u03C0 * 10^-4 weber. The force\ - \ in newtons on a point pole of 4\u03C0 * 1.5 * 10^-4 weber placed at a distance\ +"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\u2019s 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.\nA: 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\n\ - Q: In a 2 pole lap winding dc machine , the resistance of one conductor is 2\u03A9\ - \ and total number of conductors is 100. Find the total resistance\n(A) 200\u03A9\ - \ (B) 100\u03A9 (C) 50\u03A9 (D) 10\u03A9\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)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_electrical_engineering + \ 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)." +"group": "mmlu_flan_cot_fewshot_stem" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_electrical_engineering" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_elementary_mathematics.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_elementary_mathematics.yaml index a85f799c..b5567c0c 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_elementary_mathematics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_elementary_mathematics.yaml @@ -1,5 +1,5 @@ -dataset_name: elementary_mathematics -description: "The following are multiple choice questions (with answers) about elementary\ +"dataset_name": "elementary_mathematics" +"description": "The following are multiple choice questions (with answers) about elementary\ \ mathematics.\n\nQ: Olivia used the rule \"Add 11\" to create the number pattern\ \ shown below. 10, 21, 32, 43, 54. Which statement about the number pattern is true?\n\ (A) The 10th number in the pattern will be an even number.\n(B) The number pattern\ @@ -22,19 +22,20 @@ description: "The following are multiple choice questions (with answers) about e \ the other choices are incorrect. The answer is (A).\n\nQ: A store sells 107 different\ \ colors of paint. They have 25 cans of each color in storage. The number of cans\ \ of paint the store has in storage can be found using the expression below. 107\ - \ \xD7 25. How many cans of paint does the store have in storage?\n(A) 749\n(B)\ - \ 2,675\n(C) 2,945\n(D) 4,250\nA: Let's think step by step. We can calculate 107\ - \ x 25 = (100 x 25) + (7 x 25) = 2500 + 175 = 2675. The answer is (B).\n\nQ: A total\ - \ of 30 players will play basketball at a park. There will be exactly 5 players\ - \ on each team. Which statement correctly explains how to find the number of teams\ - \ needed?\n(A) Add 5 to 30 to find 35 teams.\n(B) Divide 30 by 5 to find 6 teams.\n\ - (C) Multiply 30 and 5 to find 150 teams.\n(D) Subtract 5 from 30 to find 25 teams.\n\ - A: Let's think step by step. We want to find the number of teams. We know that there\ - \ are 5 players/team, and 30 players. Thus to get the number of teams we divide\ - \ players by players/team, so 30 players / 5 players/team = 6 teams. The answer\ - \ is (B).\n\nQ: Which expression is equivalent to 5 x 9?\n(A) (5 x 4) x (6 x 5)\n\ - (B) (5 x 5) + (5 x 4)\n(C) (5 x 5) + (5 x 9)\n(D) (5 x 9) x (6 x 9)\nA: Let's think\ - \ step by step. We know that 9 = (5 + 4), so 5 x 9 = 5 x (5 + 4) = (5 x 5) + (5\ - \ x 4). The answer is (B)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_elementary_mathematics + \ × 25. How many cans of paint does the store have in storage?\n(A) 749\n(B) 2,675\n\ + (C) 2,945\n(D) 4,250\nA: Let's think step by step. We can calculate 107 x 25 = (100\ + \ x 25) + (7 x 25) = 2500 + 175 = 2675. The answer is (B).\n\nQ: A total of 30 players\ + \ will play basketball at a park. There will be exactly 5 players on each team.\ + \ Which statement correctly explains how to find the number of teams needed?\n(A)\ + \ Add 5 to 30 to find 35 teams.\n(B) Divide 30 by 5 to find 6 teams.\n(C) Multiply\ + \ 30 and 5 to find 150 teams.\n(D) Subtract 5 from 30 to find 25 teams.\nA: Let's\ + \ think step by step. We want to find the number of teams. We know that there are\ + \ 5 players/team, and 30 players. Thus to get the number of teams we divide players\ + \ by players/team, so 30 players / 5 players/team = 6 teams. The answer is (B).\n\ + \nQ: Which expression is equivalent to 5 x 9?\n(A) (5 x 4) x (6 x 5)\n(B) (5 x 5)\ + \ + (5 x 4)\n(C) (5 x 5) + (5 x 9)\n(D) (5 x 9) x (6 x 9)\nA: Let's think step by\ + \ step. We know that 9 = (5 + 4), so 5 x 9 = 5 x (5 + 4) = (5 x 5) + (5 x 4). The\ + \ answer is (B)." +"group": "mmlu_flan_cot_fewshot_stem" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_elementary_mathematics" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_formal_logic.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_formal_logic.yaml index 5de7486c..40adf465 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_formal_logic.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_formal_logic.yaml @@ -1,57 +1,53 @@ -dataset_name: formal_logic -description: "The following are multiple choice questions (with answers) about formal\ +"dataset_name": "formal_logic" +"description": "The following are multiple choice questions (with answers) about formal\ \ logic.\n\nQ: Which of the given formulas of PL is the best symbolization of the\ \ following sentence?\nTurtles live long lives and are happy creatures, unless they\ - \ are injured.\n(A) (L \u2022 H) \u2261 I (B) (L \u2022 H) \u2228 I (C) L \u2022\ - \ (H \u2228 I) (D) L \u2022 (H \u2283 R).\nA: Let's think step by step. We refer\ - \ to Wikipedia articles on formal logic for help. Let\u2019s solve this step by\ - \ step. Let \u201CL\u201D denote \u201Cliving long\u201D, H \u201Cbeing happy\u201D\ - , and \u201CI\u201D \u201Cbeing injured\u201D. Now, consider each choice:\n(A) means\ - \ (living long AND being happy) is equivalent to (being injured). \n(B) means (living\ - \ long AND being happy) OR (being injured). \n(C) means (living long) AND (being\ - \ happy OR being injured). \n(D) means (living long) AND (being happy implies being\ - \ R), but what R denotes is not clear.\nObviously, (B) is the best symbolization\ - \ of the original sentence. The answer is (B).\n\nQ: Select the best translation\ - \ into predicate logic.George borrows Hector's lawnmower. (g: George; h: Hector;\ - \ l: Hector's lawnmower; Bxyx: x borrows y from z).\n(A) Blgh (B) Bhlg (C) Bglh\ - \ (D) Bghl\nA: Let's think step by step. We refer to Wikipedia articles on formal\ - \ logic for help. Let\u2019s solve this step by step. We are told that \u201CBxyx\u201D\ - \ means \u201Cx borrows y from z\u201D. We can rewrite \u201CGeorge borrows Hector's\ - \ lawnmower\u201D as \u201CGeorge borrows a lawnmower from Hector\u201D, which can\ - \ then be translated into predicate logic as \u201CBglh\u201D. The answer \u201C\ - Bglh\u201D appears in (C); therefore, (C) must be the correct answer. The answer\ - \ is (C).\n\nQ: \nSelect the best English interpretation of the given arguments\ - \ in predicate logic.\nDm\n(\u2200x)(Wx \u2283 ~Dx). \n(\u2200x)Wx \u2228 Ag\t/\ - \ (\u2203x)Ax\n(A) Marina is a dancer. Some weaklings are not dancers. Either everything\ - \ is a weakling or Georgia plays volleyball. So something plays volleyball. (B)\ - \ Marina is a dancer. No weakling is a dancer. Everything is either a weakling or\ - \ plays volleyball. So something plays volleyball. (C) Marina is a dancer. Some\ - \ weaklings are not dancers. Everything is either a weakling or plays volleyball.\ - \ So something plays volleyball. (D) Marina is a dancer. No weakling is a dancer.\ - \ Either everything is a weakling or Georgia plays volleyball. So something plays\ - \ volleyball.\nA: Let's think step by step. We refer to Wikipedia articles on formal\ - \ logic for help. Let\u2019s solve this step by step. Let \u201CD\u201D denote \u201C\ - being a dancer\u201D, \u201Cm\u201D denote \u201CMaria\u201D, \u201Cg\u201D denote\ - \ \u201CGeorgia\u201D, \u201CW\u201D denote \u201Cweakling\u201D, \u201CA\u201D\ - \ denote \u201Cplaying volleyball\u201D. Then, we have the following:\n1. Dm \u2192\ - \ Maria is a dance.\n2. (\u2200x)(Wx \u2283 ~Dx). \u2192 For all x, if x is a weakling,\ - \ then x is not a dancer. In other words, no weakling is a dancer.\n3. (\u2200x)Wx\ - \ \u2228 Ag\t/ (\u2203x)Ax \u2192 For all x, x is a weakling or Georgia plays volleyball.\ - \ So there exists an x that plays volleyball. \nOptions (A) and (C) do claim that\ - \ some weaklings are not dancers, but the second argument strongly states that no\ - \ weakling is a dancer. Thus, we can eliminate them. Option (B) omits the important\ - \ detail about Georgia playing volleyball. Option (D) has all the details presented\ - \ in the arguments and is the best English interpretation of the arguments. The\ - \ answer is (D).\n\nQ: Select the best translation into predicate logic: No people\ - \ drive on Mars.\n(A) ~Pd (B) (\u2200x)(Px \u2228 ~Dx) (C) (\u2200x)(Px \u2283 ~Dx)\ - \ (D) ~Dp\nA: Let's think step by step. We refer to Wikipedia articles on formal\ - \ logic for help. Let\u2019s solve this step by step. Let \u201CP\u201D denote \u201C\ - being on Mars\u201D and \u201CD\u201D denote \u201Cdriving on Mars\u201D. Then let\u2019\ - s consider each option:\nOption (A): ~Pd \u2192 d is not on Mars.\nOption (B): (\u2200\ - x)(Px \u2228 ~Dx) \u2192 For all x, x is on Mars and x do not drive on Mars.\nOption\ - \ (C): (\u2200x)(Px \u2283 ~Dx) \u2192 For all x, x is on Mars implies that x do\ - \ not drive on Mars.\nOption (D): ~Dp: \u2192 p do not drive on Mars.\nOf all these\ - \ options, Option (C) appears to be the best and most meaningful interpretation\ - \ of the argument \u201CNo people drive on Mars.\u201D The answer is (C)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_formal_logic + \ are injured.\n(A) (L • H) ≡ I (B) (L • H) ∨ I (C) L • (H ∨ I) (D) L • (H ⊃ R).\n\ + A: Let's think step by step. We refer to Wikipedia articles on formal logic for\ + \ help. Let’s solve this step by step. Let “L” denote “living long”, H “being happy”,\ + \ and “I” “being injured”. Now, consider each choice:\n(A) means (living long AND\ + \ being happy) is equivalent to (being injured). \n(B) means (living long AND being\ + \ happy) OR (being injured). \n(C) means (living long) AND (being happy OR being\ + \ injured). \n(D) means (living long) AND (being happy implies being R), but what\ + \ R denotes is not clear.\nObviously, (B) is the best symbolization of the original\ + \ sentence. The answer is (B).\n\nQ: Select the best translation into predicate\ + \ logic.George borrows Hector's lawnmower. (g: George; h: Hector; l: Hector's lawnmower;\ + \ Bxyx: x borrows y from z).\n(A) Blgh (B) Bhlg (C) Bglh (D) Bghl\nA: Let's think\ + \ step by step. We refer to Wikipedia articles on formal logic for help. Let’s solve\ + \ this step by step. We are told that “Bxyx” means “x borrows y from z”. We can\ + \ rewrite “George borrows Hector's lawnmower” as “George borrows a lawnmower from\ + \ Hector”, which can then be translated into predicate logic as “Bglh”. The answer\ + \ “Bglh” appears in (C); therefore, (C) must be the correct answer. The answer is\ + \ (C).\n\nQ: \nSelect the best English interpretation of the given arguments in\ + \ predicate logic.\nDm\n(∀x)(Wx ⊃ ~Dx). \n(∀x)Wx ∨ Ag\t/ (∃x)Ax\n(A) Marina is a\ + \ dancer. Some weaklings are not dancers. Either everything is a weakling or Georgia\ + \ plays volleyball. So something plays volleyball. (B) Marina is a dancer. No weakling\ + \ is a dancer. Everything is either a weakling or plays volleyball. So something\ + \ plays volleyball. (C) Marina is a dancer. Some weaklings are not dancers. Everything\ + \ is either a weakling or plays volleyball. So something plays volleyball. (D) Marina\ + \ is a dancer. No weakling is a dancer. Either everything is a weakling or Georgia\ + \ plays volleyball. So something plays volleyball.\nA: Let's think step by step.\ + \ We refer to Wikipedia articles on formal logic for help. Let’s solve this step\ + \ by step. Let “D” denote “being a dancer”, “m” denote “Maria”, “g” denote “Georgia”,\ + \ “W” denote “weakling”, “A” denote “playing volleyball”. Then, we have the following:\n\ + 1. Dm → Maria is a dance.\n2. (∀x)(Wx ⊃ ~Dx). → For all x, if x is a weakling, then\ + \ x is not a dancer. In other words, no weakling is a dancer.\n3. (∀x)Wx ∨ Ag\t\ + / (∃x)Ax → For all x, x is a weakling or Georgia plays volleyball. So there exists\ + \ an x that plays volleyball. \nOptions (A) and (C) do claim that some weaklings\ + \ are not dancers, but the second argument strongly states that no weakling is a\ + \ dancer. Thus, we can eliminate them. Option (B) omits the important detail about\ + \ Georgia playing volleyball. Option (D) has all the details presented in the arguments\ + \ and is the best English interpretation of the arguments. The answer is (D).\n\n\ + Q: Select the best translation into predicate logic: No people drive on Mars.\n\ + (A) ~Pd (B) (∀x)(Px ∨ ~Dx) (C) (∀x)(Px ⊃ ~Dx) (D) ~Dp\nA: Let's think step by step.\ + \ We refer to Wikipedia articles on formal logic for help. Let’s solve this step\ + \ by step. Let “P” denote “being on Mars” and “D” denote “driving on Mars”. Then\ + \ let’s consider each option:\nOption (A): ~Pd → d is not on Mars.\nOption (B):\ + \ (∀x)(Px ∨ ~Dx) → For all x, x is on Mars and x do not drive on Mars.\nOption (C):\ + \ (∀x)(Px ⊃ ~Dx) → For all x, x is on Mars implies that x do not drive on Mars.\n\ + Option (D): ~Dp: → p do not drive on Mars.\nOf all these options, Option (C) appears\ + \ to be the best and most meaningful interpretation of the argument “No people drive\ + \ on Mars.” The answer is (C)." +"group": "mmlu_flan_cot_fewshot_humanities" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_formal_logic" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_global_facts.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_global_facts.yaml index d5031b00..0287df11 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_global_facts.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_global_facts.yaml @@ -1,33 +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\u2019s 1-year-old children today\ - \ have been vaccinated against some disease? *\n(A) 80% (B) 60% (C) 40% (D) 20%\n\ - A: 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\n\ - Q: 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\ +"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. (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)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_global_facts + \ world. The answer is (B)." +"group": "mmlu_flan_cot_fewshot_other" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_global_facts" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_biology.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_biology.yaml index 91295fe8..6573d82c 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_biology.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_biology.yaml @@ -1,54 +1,54 @@ -dataset_name: high_school_biology -description: "The following are multiple choice questions (with answers) about high\ +"dataset_name": "high_school_biology" +"description": "The following are multiple choice questions (with answers) about high\ \ school biology.\n\nQ: In animal cells, which of the following represents the most\ \ likely pathway that a secretory protein takes as it is synthesized in a cell?\n\ - (A) Plasma membrane\u2013Golgi apparatus\u2013ribosome\u2013secretory vesicle\u2013\ - rough ER (B) Ribosome\u2013Golgi apparatus\u2013rough ER\u2013secretory vesicle\u2013\ - plasma membrane (C) Plasma membrane\u2013Golgi apparatus\u2013ribosome\u2013secretory\ - \ vesicle\u2013rough ER (D) Ribosome\u2013rough ER\u2013Golgi apparatus\u2013secretory\ - \ vesicle\u2013plasma membrane\nA: Let's think step by step. Protein synthesis starts\ + (A) Plasma membrane–Golgi apparatus–ribosome–secretory vesicle–rough ER (B) Ribosome–Golgi\ + \ apparatus–rough ER–secretory vesicle–plasma membrane (C) Plasma membrane–Golgi\ + \ apparatus–ribosome–secretory vesicle–rough ER (D) Ribosome–rough ER–Golgi apparatus–secretory\ + \ vesicle–plasma membrane\nA: Let's think step by step. Protein synthesis starts\ \ at the ribosome, so we can eliminate (A) and (C). The ribosome is often in the\ \ endoplasmic reticulum and moves from there to the Golgi apparatus, where it is\ \ modified and packaged into a vesicle. The vesicle then floats to the plasma membrane\ \ and is secreted. The answer is (D).\n\nQ: A mutation in a bacterial enzyme changed\ \ a previously polar amino acid into a nonpolar amino acid. This amino acid was\ - \ located at a site distant from the enzyme\u2019s active site. How might this mutation\ - \ alter the enzyme\u2019s substrate specificity?\n(A) By changing the enzyme\u2019\ - s pH optimum (B) By changing the enzyme\u2019s location in the cell (C) By changing\ - \ the shape of the protein (D) An amino acid change away from the active site cannot\ - \ alter the enzyme\u2019s substrate specificity.\nA: Let's think step by step. A\ - \ change in an amino acid leads to a change in the primary structure of the protein.\ - \ A change in the primary structure may lead to a change in the secondary and the\ - \ tertiary structure of the protein. A change in the tertiary structure means a\ - \ change in the shape of the protein, so (C) has to be correct. Since the change\ - \ does not affect the active site of the enzyme, we do not expect the activity of\ - \ the enzyme to be affected. The answer is (C).\n\nQ: Which of the following is\ - \ not a way to form recombinant DNA?\n(A) Translation (B) Conjugation (C) Specialized\ - \ transduction (D) Transformation\nA: Let's think step by step. The introduction\ - \ of foreign DNA or RNA into bacteria or eukaryotic cells is a common technique\ - \ in molecular biology and scientific research. There are multiple ways foreign\ - \ DNA can be introduced into cells including transformation, transduction, conjugation,\ - \ and transfection. In contrast, (A) is not a way to form DNA: during translation\ - \ the ribosomes synthesize proteins from RNA. The answer is (A).\n\nQ: Homologous\ - \ structures are often cited as evidence for the process of natural selection. All\ - \ of the following are examples of homologous structures EXCEPT\n(A) the wings of\ - \ a bird and the wings of a bat (B) the flippers of a whale and the arms of a man\ - \ (C) the pectoral fins of a porpoise and the flippers of a seal (D) the forelegs\ - \ of an insect and the forelimbs of a dog\nA: Let's think step by step. \u200B\u200B\ - Homologous structures are similar physical features in organisms that share a common\ - \ ancestor \u200B\u200Bbut different functions. Comparisons (B) and (C) are clearly\ - \ homologous because they share a common ancestor and the structures serve different\ - \ purposes. Bat wings and birg wings are also homologous, while they are both wings,\ - \ the forelimbs serve different purposes. Insects and dogs are very far ancestors\ - \ since one is vertebrate while the other is invertebrate and the forelimbs serve\ - \ the same purpose, so they are not homologous. The answer is (D).\n\nQ: Which of\ - \ the following is not known to be involved in the control of cell division?\n(A)\ - \ Cyclins (B) Protein kinases (C) Checkpoints (D) Fibroblast cells\nA: Let's think\ - \ step by step. Normal cells move through the cell cycle in a regulated way. At\ - \ the checkpoint stage, they use information about their own internal state and\ - \ cues from the environment around them to decide whether to proceed with cell division.\ - \ Cues like these act by changing the activity of core cell cycle regulators inside\ - \ the cell. The most common regulators are cyclins and cyclin-dependent kinases.\ - \ Fibroblast cells do not play any role in cell division. The answer is (D)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_high_school_biology + \ located at a site distant from the enzyme’s active site. How might this mutation\ + \ alter the enzyme’s substrate specificity?\n(A) By changing the enzyme’s pH optimum\ + \ (B) By changing the enzyme’s location in the cell (C) By changing the shape of\ + \ the protein (D) An amino acid change away from the active site cannot alter the\ + \ enzyme’s substrate specificity.\nA: Let's think step by step. A change in an amino\ + \ acid leads to a change in the primary structure of the protein. A change in the\ + \ primary structure may lead to a change in the secondary and the tertiary structure\ + \ of the protein. A change in the tertiary structure means a change in the shape\ + \ of the protein, so (C) has to be correct. Since the change does not affect the\ + \ active site of the enzyme, we do not expect the activity of the enzyme to be affected.\ + \ The answer is (C).\n\nQ: Which of the following is not a way to form recombinant\ + \ DNA?\n(A) Translation (B) Conjugation (C) Specialized transduction (D) Transformation\n\ + A: Let's think step by step. The introduction of foreign DNA or RNA into bacteria\ + \ or eukaryotic cells is a common technique in molecular biology and scientific\ + \ research. There are multiple ways foreign DNA can be introduced into cells including\ + \ transformation, transduction, conjugation, and transfection. In contrast, (A)\ + \ is not a way to form DNA: during translation the ribosomes synthesize proteins\ + \ from RNA. The answer is (A).\n\nQ: Homologous structures are often cited as evidence\ + \ for the process of natural selection. All of the following are examples of homologous\ + \ structures EXCEPT\n(A) the wings of a bird and the wings of a bat (B) the flippers\ + \ of a whale and the arms of a man (C) the pectoral fins of a porpoise and the flippers\ + \ of a seal (D) the forelegs of an insect and the forelimbs of a dog\nA: Let's think\ + \ step by step. ​​Homologous structures are similar physical features in organisms\ + \ that share a common ancestor ​​but different functions. Comparisons (B) and (C)\ + \ are clearly homologous because they share a common ancestor and the structures\ + \ serve different purposes. Bat wings and birg wings are also homologous, while\ + \ they are both wings, the forelimbs serve different purposes. Insects and dogs\ + \ are very far ancestors since one is vertebrate while the other is invertebrate\ + \ and the forelimbs serve the same purpose, so they are not homologous. The answer\ + \ is (D).\n\nQ: Which of the following is not known to be involved in the control\ + \ of cell division?\n(A) Cyclins (B) Protein kinases (C) Checkpoints (D) Fibroblast\ + \ cells\nA: Let's think step by step. Normal cells move through the cell cycle in\ + \ a regulated way. At the checkpoint stage, they use information about their own\ + \ internal state and cues from the environment around them to decide whether to\ + \ proceed with cell division. Cues like these act by changing the activity of core\ + \ cell cycle regulators inside the cell. The most common regulators are cyclins\ + \ and cyclin-dependent kinases. Fibroblast cells do not play any role in cell division.\ + \ The answer is (D)." +"group": "mmlu_flan_cot_fewshot_stem" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_high_school_biology" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_chemistry.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_chemistry.yaml index ce2a26cc..577a4866 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_chemistry.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_chemistry.yaml @@ -1,5 +1,5 @@ -dataset_name: high_school_chemistry -description: "The following are multiple choice questions (with answers) about high\ +"dataset_name": "high_school_chemistry" +"description": "The following are multiple choice questions (with answers) about high\ \ school chemistry.\n\nQ: Which of the following is considered an acid anhydride?\n\ (A) HCl (B) H2SO3 (C) SO2 (D) Al(NO3)3\nA: Let's think step by step. An acid anhydride\ \ is a compound that is derived by removing water from an acid. The chemical formula\ @@ -45,5 +45,6 @@ description: "The following are multiple choice questions (with answers) about h \ the acetate ion. The added strong acid, Nitric acid, will react with the conjugate\ \ base. Therefore the maximum amount of acid that can be added will be equal to\ \ the amount of acetate ion, or 2 moles. The answer is (C)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_high_school_chemistry +"group": "mmlu_flan_cot_fewshot_stem" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_high_school_chemistry" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_computer_science.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_computer_science.yaml index 16a9f66d..6b0e0c8f 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_computer_science.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_computer_science.yaml @@ -1,5 +1,5 @@ -dataset_name: high_school_computer_science -description: "The following are multiple choice questions (with answers) about high\ +"dataset_name": "high_school_computer_science" +"description": "The following are multiple choice questions (with answers) about high\ \ school computer science.\n\nQ: Which of the following is an example of the use\ \ of a device on the Internet of Things (IoT) ?\n(A) A car alerts a driver that\ \ it is about to hit an object. (B) A hiker uses a G P S watch to keep track of\ @@ -26,9 +26,9 @@ description: "The following are multiple choice questions (with answers) about h \ launched from any web sites visited or files downloaded.\nA: Let's think step\ \ by step. Choice A is incorrect as it only describes network traffic, which an\ \ anonymous browser does not change. Choice B is correct as it correctly describes\ - \ how an anonymous browser will prevent saving data on the user\u2019s computer\ - \ after the session is ended. Choice C is incorrect because an anonymous browser\ - \ will not prevent logging in to email or social media accounts. Choice D is incorrect\ + \ how an anonymous browser will prevent saving data on the user’s computer after\ + \ the session is ended. Choice C is incorrect because an anonymous browser will\ + \ not prevent logging in to email or social media accounts. Choice D is incorrect\ \ because an anonymous browser in itself performs no virus protection. The answer\ \ is (B).\n\nQ: In the program below, the initial value of X is 5 and the initial\ \ value of Y is 10.\nIF (X < 0){\n DISPLAY (\"Foxtrot\")\n} ELSE {\n IF (X > Y){\n\ @@ -66,5 +66,6 @@ description: "The following are multiple choice questions (with answers) about h \ its value is greater than 100, regardless of the elements in the list. Choice\ \ D is incorrect because its step 3 does not increment the value of position, so\ \ it will repeat forever. The answer is (B)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_high_school_computer_science +"group": "mmlu_flan_cot_fewshot_stem" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_high_school_computer_science" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_european_history.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_european_history.yaml index 0e7aafcc..ca8ec93f 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_european_history.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_european_history.yaml @@ -1,5 +1,5 @@ -dataset_name: high_school_european_history -description: "The following are multiple choice questions (with answers) about high\ +"dataset_name": "high_school_european_history" +"description": "The following are multiple choice questions (with answers) about high\ \ school european history.\n\nQ: This question refers to the following information.\n\ Albeit the king's Majesty justly and rightfully is and ought to be the supreme head\ \ of the Church of England, and so is recognized by the clergy of this realm in\ @@ -34,7 +34,7 @@ description: "The following are multiple choice questions (with answers) about h \ the corruption in the Church of England. The answer is (D).\n\nQ: This question\ \ refers to the following information.\nRead the following excerpt.\nThe revolutionary\ \ seed had penetrated into every country and spread more or less. It was greatly\ - \ developed under the r\xE9gime of the military despotism of Bonaparte. His conquests\ + \ developed under the régime of the military despotism of Bonaparte. His conquests\ \ displaced a number of laws, institutions, and customs; broke through bonds sacred\ \ among all nations, strong enough to resist time itself; which is more than can\ \ be said of certain benefits conferred by these innovators.\nThe monarchs will\ @@ -55,9 +55,9 @@ description: "The following are multiple choice questions (with answers) about h Let them maintain religious principles in all their purity, and not allow the faith\ \ to be attacked and morality interpreted according to the social contract or the\ \ visions of foolish sectarians.\nLet them suppress Secret Societies; that gangrene\ - \ of society.\n\u2014Klemens von Metternich, Political Confession of Faith, 1820\n\ - Which of the following was the greatest cause of the fears expressed by Metternich\ - \ in the document above?\n(A) The ideas of personal liberty and nationalism conceived\ + \ of society.\n—Klemens von Metternich, Political Confession of Faith, 1820\nWhich\ + \ of the following was the greatest cause of the fears expressed by Metternich in\ + \ the document above?\n(A) The ideas of personal liberty and nationalism conceived\ \ during the Enlightenment resulted in radical revolutions that could spread throughout\ \ Europe. (B) The conquest of Europe by Napoleon led to the creation of new factions\ \ and shifted the European balance of power. (C) The power of monarchs had grown\ @@ -110,15 +110,15 @@ description: "The following are multiple choice questions (with answers) about h \ were all turning to the politicians; the famous Nihilists who made Europe tremble-sons\ \ of village priests, of the lower middle class, of tradesmen-could not rise above\ \ the idea of national liberation, and seemed to believe that the world would be\ - \ delivered-when they had killed their despot&\u2026\n\"Foolery! They'll never get\ - \ out of it with their foolery.\"\nThen, lowering his voice still more, in a few\ - \ bitter words he described his old dream of fraternity. He had renounced his rank\ - \ and his fortune; he had gone among workmen, only in the hope of seeing at last\ - \ the foundation of a new society of labour in common. All the sous in his pockets\ - \ had long gone to the urchins of the settlement; he had been as tender as a brother\ + \ delivered-when they had killed their despot&…\n\"Foolery! They'll never get out\ + \ of it with their foolery.\"\nThen, lowering his voice still more, in a few bitter\ + \ words he described his old dream of fraternity. He had renounced his rank and\ + \ his fortune; he had gone among workmen, only in the hope of seeing at last the\ + \ foundation of a new society of labour in common. All the sous in his pockets had\ + \ long gone to the urchins of the settlement; he had been as tender as a brother\ \ with the colliers, smiling at their suspicion, winning them over by his quiet\ \ workmanlike ways and his dislike of chattering. But decidedly the fusion had not\ - \ taken place.\nHis voice changed, his eyes grew bright, he fixed them on \xE9tienne,\ + \ taken place.\nHis voice changed, his eyes grew bright, he fixed them on étienne,\ \ directly addressing him:\n\"Now, do you understand that? These hatworkers at Marseilles\ \ who have won the great lottery prize of a hundred thousand francs have gone off\ \ at once and invested it, declaring that they are going to live without doing anything!\ @@ -127,7 +127,7 @@ description: "The following are multiple choice questions (with answers) about h \ out as much as you like against the rich, you haven't got courage enough to give\ \ back to the poor the money that luck brings you. You will never be worthy of happiness\ \ as long as you own anything, and your hatred of the bourgeois proceeds solely\ - \ from an angry desire to be bourgeois yourselves in their place.\"\n\xE9mile Zola,\ + \ from an angry desire to be bourgeois yourselves in their place.\"\némile Zola,\ \ French writer, Germinal, 1885\nThe passage displays the direct concern for the\ \ welfare of the working classes that was typically a part of which movement?\n\ (A) Capitalist (B) Scientific (C) Communist (D) Existentialist\nA: Let's think step\ @@ -156,13 +156,14 @@ description: "The following are multiple choice questions (with answers) about h \ whether Jewish, Christian or Turkish, appear to me no other than human inventions,\ \ set up to terrify and enslave mankind, and monopolize power and profit.\nI do\ \ not mean by this declaration to condemn those who believe otherwise; they have\ - \ the same right to their belief as I have to mine.\n\u2014Thomas Paine, The Age\ - \ of Reason, 1794\u20131795\nWhich of the following Enlightenment philosophes designed\ - \ a system of checks and balances for government to avoid abuses of power?\n(A)\ - \ Jean Jacques Rousseau (B) Baron Montesquieu (C) Mary Wollstonecraft (D) Adam Smith\n\ - A: Let's think step by step. We refer to Wikipedia articles on european history\ - \ for help. Baron Montesquieu was a 18th centrury French philsopher who wrote extensively\ + \ the same right to their belief as I have to mine.\n—Thomas Paine, The Age of Reason,\ + \ 1794–1795\nWhich of the following Enlightenment philosophes designed a system\ + \ of checks and balances for government to avoid abuses of power?\n(A) Jean Jacques\ + \ Rousseau (B) Baron Montesquieu (C) Mary Wollstonecraft (D) Adam Smith\nA: Let's\ + \ think step by step. We refer to Wikipedia articles on european history for help.\ + \ Baron Montesquieu was a 18th centrury French philsopher who wrote extensively\ \ against the monoplization of power and advocated for a system of checks and balances\ \ in government to prevent the rise of despotism. The answer is (B)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_high_school_european_history +"group": "mmlu_flan_cot_fewshot_humanities" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_high_school_european_history" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_geography.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_geography.yaml index 42f6c040..87c27868 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_geography.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_geography.yaml @@ -1,63 +1,37 @@ -dataset_name: high_school_geography -description: 'The following are multiple choice questions (with answers) about high - school geography. - - - Q: Which one of the following items is an example of nonmaterial culture? - - (A) Dove soap (B) Dove candy bar (C) Dove symbol (D) A dove (bird). - - A: Let''s think step by step. We refer to Wikipedia articles on geography for help. - Nonmaterial culture consists of cultural ideas, beliefs or symbols that are not - physical objects. The answer is (C). - - - Q: During the third stage of the demographic transition model, which of the following - is true? - - (A) Birth rates increase and population growth rate is less rapid. (B) Birth rates - decline and population growth rate is less rapid. (C) Birth rates increase and population - growth rate increases. (D) Birth rates decrease and population growth rate increases. - - A: Let''s think step by step. We refer to Wikipedia articles on geography for help. - The demographic transition model models the five different stages of population - growth as a country goes through economic development, where the third stage refers - to a period of declining birth rates and lower population growth. The answer is - (B). - - - Q: The practice of hiring a foreign third-party service provider to run an operation - is called - - (A) outsourcing. (B) offshoring. (C) maquiladoras. (D) locational interdependence. - - A: Let''s think step by step. We refer to Wikipedia articles on geography for help. - "Offshoring" literally means to move or base some of the activities or processes - of a company to a foreign country. The answer is (B). - - - Q: Which of the following statements is NOT accurate regarding the services provided - by local governments in the United States? - - (A) Duplication of efforts occurs often. (B) Social problems of the central city - spill over into the surrounding residential suburbs. (C) Inefficiency in providing - services occurs often. (D) One neighborhood''s efforts to reduce pollution are always - supported by neighboring communities. - - A: Let''s think step by step. We refer to Wikipedia articles on geography for help. - There may be economic, social or political reasons for two neighboring communities - and their local governments not agreeing to pollution reduction efforts initiated - by one of them. The answer is (D). - - - Q: The rate of natural increase of a population is found by subtracting the - - (A) crude death rate from the crude birth date. (B) crude birth rate from the crude - death rate. (C) doubling time from the crude birth rate. (D) fertility rate from - the crude death rate. - - A: Let''s think step by step. We refer to Wikipedia articles on geography for help. - The difference between number of births and deaths gives the population increase - at any given time. The answer is (A).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_high_school_geography +"dataset_name": "high_school_geography" +"description": "The following are multiple choice questions (with answers) about high\ + \ school geography.\n\nQ: Which one of the following items is an example of nonmaterial\ + \ culture?\n(A) Dove soap (B) Dove candy bar (C) Dove symbol (D) A dove (bird).\n\ + A: Let's think step by step. We refer to Wikipedia articles on geography for help.\ + \ Nonmaterial culture consists of cultural ideas, beliefs or symbols that are not\ + \ physical objects. The answer is (C).\n\nQ: During the third stage of the demographic\ + \ transition model, which of the following is true?\n(A) Birth rates increase and\ + \ population growth rate is less rapid. (B) Birth rates decline and population growth\ + \ rate is less rapid. (C) Birth rates increase and population growth rate increases.\ + \ (D) Birth rates decrease and population growth rate increases.\nA: Let's think\ + \ step by step. We refer to Wikipedia articles on geography for help. The demographic\ + \ transition model models the five different stages of population growth as a country\ + \ goes through economic development, where the third stage refers to a period of\ + \ declining birth rates and lower population growth. The answer is (B).\n\nQ: The\ + \ practice of hiring a foreign third-party service provider to run an operation\ + \ is called\n(A) outsourcing. (B) offshoring. (C) maquiladoras. (D) locational interdependence.\n\ + A: Let's think step by step. We refer to Wikipedia articles on geography for help.\ + \ \"Offshoring\" literally means to move or base some of the activities or processes\ + \ of a company to a foreign country. The answer is (B).\n\nQ: Which of the following\ + \ statements is NOT accurate regarding the services provided by local governments\ + \ in the United States?\n(A) Duplication of efforts occurs often. (B) Social problems\ + \ of the central city spill over into the surrounding residential suburbs. (C) Inefficiency\ + \ in providing services occurs often. (D) One neighborhood's efforts to reduce pollution\ + \ are always supported by neighboring communities.\nA: Let's think step by step.\ + \ We refer to Wikipedia articles on geography for help. There may be economic, social\ + \ or political reasons for two neighboring communities and their local governments\ + \ not agreeing to pollution reduction efforts initiated by one of them. The answer\ + \ is (D).\n\nQ: The rate of natural increase of a population is found by subtracting\ + \ the\n(A) crude death rate from the crude birth date. (B) crude birth rate from\ + \ the crude death rate. (C) doubling time from the crude birth rate. (D) fertility\ + \ rate from the crude death rate.\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on geography for help. The difference between number of births and deaths\ + \ gives the population increase at any given time. The answer is (A)." +"group": "mmlu_flan_cot_fewshot_social_sciences" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_high_school_geography" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_government_and_politics.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_government_and_politics.yaml index 8ec1c5b0..a0a67146 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_government_and_politics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_government_and_politics.yaml @@ -1,67 +1,43 @@ -dataset_name: high_school_government_and_politics -description: 'The following are multiple choice questions (with answers) about high - school government and politics. - - - Q: Which of the following best states an argument made by James Madison in The Federalist - number 10? - - (A) Honest politicians can prevent factions from developing. (B) Factions are more - likely to occur in large republics than in small ones. (C) The negative effects - of factionalism can be reduced by a republican government. (D) Free elections are - the people''s best defense against factionalism. - - A: Let''s think step by step. We refer to Wikipedia articles on government and politics - for help. In the Federalist number 10, James Madison advocated for a representative - republican form of government to guard against factionalism. The answer is (C). - - - Q: The term "budget deficit" refers to the - - (A) annual increase in federal spending on the military (B) amount of interest on - the national debt (C) difference between the initial budget proposals made by the - president and Congress (D) amount the government spends in excess of its revenues - - A: Let''s think step by step. We refer to Wikipedia articles on government and politics - for help. When the goverment spends more than it earns, their difference is the - budget deficit. The answer is (D). - - - Q: Which of the following statements about cabinet departments is FALSE? - - (A) They are established by the legislative branch. (B) Their members often don''t - have much influence over presidential decisions. (C) They cannot all be run by leaders - who belong to the same political party the president does. (D) Not every federal - agency is a cabinet department. - - A: Let''s think step by step. We refer to Wikipedia articles on government and politics - for help. There is no law stipulating that some cabinet department leaders have - to belong to a political party different from that of the president. The answer - is (C). - - - Q: Which of the following cases established the precedent that a defendant must - be informed of the right to remain silent, the right to a lawyer, and protection - from self-incrimination? - - (A) Weeks v. United States (B) Betts v. Brady (C) Mapp v. Ohio (D) Miranda v. Arizona - - A: Let''s think step by step. We refer to Wikipedia articles on government and politics - for help. In the landmark Miranda v. Arizona in 1966, the US Supreme Court, based - on the Fifth and Sixth Amendment of the US Constitution, guaranteed a defendant''s - right to an attorney and protection from self-incrimination. The answer is (D). - - - Q: Uncertainty over the limits to presidential power is caused primarily by the - fact that - - (A) the constitutional definition of those powers is broad and unspecific (B) most - people agree that the Constitution places too many limits on presidential power - (C) the Supreme Court consistently refuses to rule on cases concerning presidential - powers (D) constitutional amendments have greatly increased presidential powers - - A: Let''s think step by step. We refer to Wikipedia articles on government and politics - for help. The US Constitution is not very specific about the powers of the president, - leading to uncertainty over its limits. The answer is (A).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_high_school_government_and_politics +"dataset_name": "high_school_government_and_politics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school government and politics.\n\nQ: Which of the following best states an argument\ + \ made by James Madison in The Federalist number 10?\n(A) Honest politicians can\ + \ prevent factions from developing. (B) Factions are more likely to occur in large\ + \ republics than in small ones. (C) The negative effects of factionalism can be\ + \ reduced by a republican government. (D) Free elections are the people's best defense\ + \ against factionalism.\nA: Let's think step by step. We refer to Wikipedia articles\ + \ on government and politics for help. In the Federalist number 10, James Madison\ + \ advocated for a representative republican form of government to guard against\ + \ factionalism. The answer is (C).\n\nQ: The term \"budget deficit\" refers to the\n\ + (A) annual increase in federal spending on the military (B) amount of interest on\ + \ the national debt (C) difference between the initial budget proposals made by\ + \ the president and Congress (D) amount the government spends in excess of its revenues\n\ + A: Let's think step by step. We refer to Wikipedia articles on government and politics\ + \ for help. When the goverment spends more than it earns, their difference is the\ + \ budget deficit. The answer is (D).\n\nQ: Which of the following statements about\ + \ cabinet departments is FALSE?\n(A) They are established by the legislative branch.\ + \ (B) Their members often don't have much influence over presidential decisions.\ + \ (C) They cannot all be run by leaders who belong to the same political party the\ + \ president does. (D) Not every federal agency is a cabinet department.\nA: Let's\ + \ think step by step. We refer to Wikipedia articles on government and politics\ + \ for help. There is no law stipulating that some cabinet department leaders have\ + \ to belong to a political party different from that of the president. The answer\ + \ is (C).\n\nQ: Which of the following cases established the precedent that a defendant\ + \ must be informed of the right to remain silent, the right to a lawyer, and protection\ + \ from self-incrimination?\n(A) Weeks v. United States (B) Betts v. Brady (C) Mapp\ + \ v. Ohio (D) Miranda v. Arizona\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on government and politics for help. In the landmark Miranda v. Arizona\ + \ in 1966, the US Supreme Court, based on the Fifth and Sixth Amendment of the US\ + \ Constitution, guaranteed a defendant's right to an attorney and protection from\ + \ self-incrimination. The answer is (D).\n\nQ: Uncertainty over the limits to presidential\ + \ power is caused primarily by the fact that\n(A) the constitutional definition\ + \ of those powers is broad and unspecific (B) most people agree that the Constitution\ + \ places too many limits on presidential power (C) the Supreme Court consistently\ + \ refuses to rule on cases concerning presidential powers (D) constitutional amendments\ + \ have greatly increased presidential powers\nA: Let's think step by step. We refer\ + \ to Wikipedia articles on government and politics for help. The US Constitution\ + \ is not very specific about the powers of the president, leading to uncertainty\ + \ over its limits. The answer is (A)." +"group": "mmlu_flan_cot_fewshot_social_sciences" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_high_school_government_and_politics" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_macroeconomics.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_macroeconomics.yaml index f47a83e6..c82b0739 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_macroeconomics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_macroeconomics.yaml @@ -1,64 +1,37 @@ -dataset_name: high_school_macroeconomics -description: 'The following are multiple choice questions (with answers) about high - school macroeconomics. - - - Q: Which of the following policies best describes supply-side fiscal policy? - - (A) An increase in the money supply (B) Increased government spending (C) Lower - taxes on research and development of new technology (D) Higher taxes on household - income - - A: Let''s think step by step. We refer to Wikipedia articles on macroeconomics for - help. Supply-side fiscal policy stimulates the economy by encouraging more production - of goods and services through reduction in taxes and deregulation. The answer is - (C). - - - Q: The short-run Phillips curve indicates a - - (A) direct relation between unemployment and inflation (B) direct relation between - price and quantity demanded (C) inverse relation between price and quantity demanded - (D) inverse relation between unemployment and inflation - - A: Let''s think step by step. We refer to Wikipedia articles on macroeconomics for - help. The short-run Phillips curve shows that whenever unemployment decreases below - a natural level, the inflation starts increasing, and vice-versa. The answer is - (D). - - - Q: Holding all else equal which of the following monetary policies would be used - to boost U.S. exports? - - (A) Increasing the discount rate (B) Increasing the reserve ratio (C) Buying government - securities (D) Lowering tariffs - - A: Let''s think step by step. We refer to Wikipedia articles on macroeconomics for - help. Buying government securities leads to reduction in demand for US dollars from - foreign buyers, thereby making it cheaper and hence making US exports more attractive. - The answer is (C). - - - Q: A federal deficit occurs when - - (A) exports exceed imports. (B) imports exceed exports. (C) federal tax collections - exceed spending. (D) federal spending exceeds federal tax revenues. - - A: Let''s think step by step. We refer to Wikipedia articles on macroeconomics for - help. A federal deficit occurs when federal spending exceeds federal income which - is primarily from tax revenues. The answer is (D). - - - Q: Which of the following is not included in the U.S. GDP? - - (A) The U.S. military opens a new base in a foreign country with 1000 U.S. personnel. - (B) Japanese consumers buy thousands of CDs produced in the United States. (C) An - American pop singer performs a sold-out concert in Paris. (D) A French theatrical - production tours dozens of American cities. - - A: Let''s think step by step. We refer to Wikipedia articles on macroeconomics for - help. The economic transactions related to the performance of the American pop-singer - in Paris happens entirely outside the U.S. and hence is not included in the GDP - numbers. The answer is (C).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_high_school_macroeconomics +"dataset_name": "high_school_macroeconomics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school macroeconomics.\n\nQ: Which of the following policies best describes supply-side\ + \ fiscal policy?\n(A) An increase in the money supply (B) Increased government spending\ + \ (C) Lower taxes on research and development of new technology (D) Higher taxes\ + \ on household income\nA: Let's think step by step. We refer to Wikipedia articles\ + \ on macroeconomics for help. Supply-side fiscal policy stimulates the economy by\ + \ encouraging more production of goods and services through reduction in taxes and\ + \ deregulation. The answer is (C).\n\nQ: The short-run Phillips curve indicates\ + \ a\n(A) direct relation between unemployment and inflation (B) direct relation\ + \ between price and quantity demanded (C) inverse relation between price and quantity\ + \ demanded (D) inverse relation between unemployment and inflation\nA: Let's think\ + \ step by step. We refer to Wikipedia articles on macroeconomics for help. The short-run\ + \ Phillips curve shows that whenever unemployment decreases below a natural level,\ + \ the inflation starts increasing, and vice-versa. The answer is (D).\n\nQ: Holding\ + \ all else equal which of the following monetary policies would be used to boost\ + \ U.S. exports?\n(A) Increasing the discount rate (B) Increasing the reserve ratio\ + \ (C) Buying government securities (D) Lowering tariffs\nA: Let's think step by\ + \ step. We refer to Wikipedia articles on macroeconomics for help. Buying government\ + \ securities leads to reduction in demand for US dollars from foreign buyers, thereby\ + \ making it cheaper and hence making US exports more attractive. The answer is (C).\n\ + \nQ: A federal deficit occurs when\n(A) exports exceed imports. (B) imports exceed\ + \ exports. (C) federal tax collections exceed spending. (D) federal spending exceeds\ + \ federal tax revenues.\nA: Let's think step by step. We refer to Wikipedia articles\ + \ on macroeconomics for help. A federal deficit occurs when federal spending exceeds\ + \ federal income which is primarily from tax revenues. The answer is (D).\n\nQ:\ + \ Which of the following is not included in the U.S. GDP?\n(A) The U.S. military\ + \ opens a new base in a foreign country with 1000 U.S. personnel. (B) Japanese consumers\ + \ buy thousands of CDs produced in the United States. (C) An American pop singer\ + \ performs a sold-out concert in Paris. (D) A French theatrical production tours\ + \ dozens of American cities.\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on macroeconomics for help. The economic transactions related to the\ + \ performance of the American pop-singer in Paris happens entirely outside the U.S.\ + \ and hence is not included in the GDP numbers. The answer is (C)." +"group": "mmlu_flan_cot_fewshot_social_sciences" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_high_school_macroeconomics" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_mathematics.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_mathematics.yaml index eb692a09..a73a8290 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_mathematics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_mathematics.yaml @@ -1,5 +1,5 @@ -dataset_name: high_school_mathematics -description: "The following are multiple choice questions (with answers) about high\ +"dataset_name": "high_school_mathematics" +"description": "The following are multiple choice questions (with answers) about high\ \ school mathematics.\n\nQ: Simplify and write the result with a rational denominator:\ \ $$\\sqrt{\\sqrt[3]{\\sqrt{\\frac{1}{729}}}}$$\n(A) \\frac{3\\sqrt{3}}{3} (B) \\\ frac{1}{3} (C) \\sqrt{3} (D) \\frac{\\sqrt{3}}{3}\nA: Let's think step by step.\ @@ -13,7 +13,7 @@ description: "The following are multiple choice questions (with answers) about h \ of $9600/300=32=2^5$. Since at this interest rate it takes six years for it to\ \ double, it will take $5*6=30$ years to grow to $\\$9600$. The answer is (C).\n\ \nQ: Ten students take a biology test and receive the following scores: 45, 55,\ - \ 50, 70, 65, 80, 40, 90, 70, 85. What is the mean of the students\u2019 test scores?\n\ + \ 50, 70, 65, 80, 40, 90, 70, 85. What is the mean of the students’ test scores?\n\ (A) 55 (B) 60 (C) 62 (D) 65\nA: Let's think step by step. There are 10 students\ \ and the sum of their scores is $45 + 55 + 50 + 70 + 65 + 80 + 40 + 90 + 70 + 85\ \ = 650$, the mean is $650/10=65$. The answer is (D).\n\nQ: The variable $x$ varies\ @@ -32,5 +32,6 @@ description: "The following are multiple choice questions (with answers) about h \ dance.)\n(A) 3 (B) 15 (C) 6 (D) 5\nA: Let's think step by step. The least common\ \ multiple of 2, 3 and 5 is 30, so during a 7 minute dance, all the three lights\ \ will come on at the same time $2*7+1=15$ times. The answer is (B)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_high_school_mathematics +"group": "mmlu_flan_cot_fewshot_stem" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_high_school_mathematics" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_microeconomics.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_microeconomics.yaml index 86c83c82..8c000e6d 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_microeconomics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_microeconomics.yaml @@ -1,63 +1,40 @@ -dataset_name: high_school_microeconomics -description: 'The following are multiple choice questions (with answers) about high - school microeconomics. - - - Q: Which of the following is necessarily a characteristic of oligopoly? - - (A) Free entry into and exit from the market (B) A few large producers (C) One producer - of a good with no close substitutes (D) A homogenous product - - A: Let''s think step by step. We refer to Wikipedia articles on microeconomics for - help. An oligopoly is when a market is dominated by just one or a few number of - sellers or producers. To get oligopoly, the market should have high barriers to - new entry, and the product has differentiation. The answer is (B). - - - Q: If the government subsidizes producers in a perfectly competitive market, then - - (A) the demand for the product will increase (B) the demand for the product will - decrease (C) the consumer surplus will increase (D) the consumer surplus will decrease - - A: Let''s think step by step. We refer to Wikipedia articles on microeconomics for - help. (A) and (B) are wrong because the demand curve does not change at all. If - the government subsidizes producers, the supply will increase, and thus the consumer - surplus also increases. The answer is (C). - - - Q: Which of the following is true of a price floor? - - (A) The price floor shifts the demand curve to the left. (B) An effective floor - creates a shortage of the good. (C) The price floor shifts the supply curve of the - good to the right. (D) To be an effective floor, it must be set above the equilibrium - price. - - A: Let''s think step by step. We refer to Wikipedia articles on microeconomics for - help. Price floor does not shift the demand or shift curve. An effective price floor - should be set above the equilibrium price, otherwise the market bears and the floor - does not have effective effect. The answer is (D). - - - Q: The concentration ratio for a monopoly is - - (A) 0 (B) 5 (C) 10 (D) 100 - - A: Let''s think step by step. We refer to Wikipedia articles on microeconomics for - help. The concentration ratio is calculated as the sum of market share of a specific - number of largest companies. Monopoly means one company or entity controls the entire - market, therefore, the concentration ratio is 100 percent. The answer is (D). - - - Q: In a competitive labor market for housepainters, which of the following would - increase the demand for housepainters? - - (A) An effective minimum wage imposed on this labor market. (B) An increase in the - price of gallons of paint. (C) An increase in the construction of new houses. (D) - An increase in the price of mechanical painters so long as the output effect exceeds - the substitution effect. - - A: Let''s think step by step. We refer to Wikipedia articles on microeconomics for - help. An increase in the construction of new houses means an increase demand of - in-house painting, thus increases the demand for housepainters. The answer is (C).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_high_school_microeconomics +"dataset_name": "high_school_microeconomics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school microeconomics.\n\nQ: Which of the following is necessarily a characteristic\ + \ of oligopoly?\n(A) Free entry into and exit from the market (B) A few large producers\ + \ (C) One producer of a good with no close substitutes (D) A homogenous product\n\ + A: Let's think step by step. We refer to Wikipedia articles on microeconomics for\ + \ help. An oligopoly is when a market is dominated by just one or a few number of\ + \ sellers or producers. To get oligopoly, the market should have high barriers to\ + \ new entry, and the product has differentiation. The answer is (B).\n\nQ: If the\ + \ government subsidizes producers in a perfectly competitive market, then\n(A) the\ + \ demand for the product will increase (B) the demand for the product will decrease\ + \ (C) the consumer surplus will increase (D) the consumer surplus will decrease\n\ + A: Let's think step by step. We refer to Wikipedia articles on microeconomics for\ + \ help. (A) and (B) are wrong because the demand curve does not change at all. If\ + \ the government subsidizes producers, the supply will increase, and thus the consumer\ + \ surplus also increases. The answer is (C).\n\nQ: Which of the following is true\ + \ of a price floor?\n(A) The price floor shifts the demand curve to the left. (B)\ + \ An effective floor creates a shortage of the good. (C) The price floor shifts\ + \ the supply curve of the good to the right. (D) To be an effective floor, it must\ + \ be set above the equilibrium price.\nA: Let's think step by step. We refer to\ + \ Wikipedia articles on microeconomics for help. Price floor does not shift the\ + \ demand or shift curve. An effective price floor should be set above the equilibrium\ + \ price, otherwise the market bears and the floor does not have effective effect.\ + \ The answer is (D).\n\nQ: The concentration ratio for a monopoly is\n(A) 0 (B)\ + \ 5 (C) 10 (D) 100\nA: Let's think step by step. We refer to Wikipedia articles\ + \ on microeconomics for help. The concentration ratio is calculated as the sum of\ + \ market share of a specific number of largest companies. Monopoly means one company\ + \ or entity controls the entire market, therefore, the concentration ratio is 100\ + \ percent. The answer is (D).\n\nQ: In a competitive labor market for housepainters,\ + \ which of the following would increase the demand for housepainters?\n(A) An effective\ + \ minimum wage imposed on this labor market. (B) An increase in the price of gallons\ + \ of paint. (C) An increase in the construction of new houses. (D) An increase in\ + \ the price of mechanical painters so long as the output effect exceeds the substitution\ + \ effect.\nA: Let's think step by step. We refer to Wikipedia articles on microeconomics\ + \ for help. An increase in the construction of new houses means an increase demand\ + \ of in-house painting, thus increases the demand for housepainters. The answer\ + \ is (C)." +"group": "mmlu_flan_cot_fewshot_social_sciences" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_high_school_microeconomics" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_physics.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_physics.yaml index f21a183c..92963bd6 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_physics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_physics.yaml @@ -1,38 +1,39 @@ -dataset_name: high_school_physics -description: "The following are multiple choice questions (with answers) about high\ +"dataset_name": "high_school_physics" +"description": "The following are multiple choice questions (with answers) about high\ \ school physics.\n\nQ: A microwave oven is connected to an outlet, 120 V, and draws\ \ a current of 2 amps. At what rate is energy being used by the microwave oven?\n\ (A) 10 W (B) 30 W (C) 60 W (D) 240 W\nA: Let's think step by step. Rate of energy\ \ usage is known as power; in an dissipative electrical circuit, power is given\ \ by voltage times current. So in our case, the power is 120 V times 2 amps, or\ \ 240 W. The answer is (D).\n\nQ: A point charge, Q = +1 mC, is fixed at the origin.\ - \ How much work is required to move a charge, Q = +8 \xB5C, from the point (0, 4\ - \ meters) to the point (3 meters, 0)?\n(A) 3.5 J (B) 6.0 J (C) 22.5 J (D) 40 J\n\ - A: Let's think step by step. To calculate the work required to move a charge from\ - \ one location to another in a fixed electric field, it is enough to calculate the\ - \ potential difference between the two locations. Here, the potential only depends\ - \ on the distance between the charges; it\u2019s $k q_1 q_2 / r$, where $k$ is Coulomb\u2019\ - s constant. Plugging in values $q_1 = $ 1 mC, $q_2 = 8 \\mu$ C, gives the answer\ - \ as 5.992 J, which rounds to 6 J. The answer is (B).\n\nQ: Which of the following\ - \ conditions will ensure that angular momentum is conserved? I. Conservation of\ - \ linear momentum II. Zero net external force III. Zero net external torque\n(A)\ - \ I and II only (B) I and III only (C) II and III only (D) III only\nA: Let's think\ - \ step by step. Torque is defined as the change in angular momentum; if there is\ - \ zero external torque, angular momentum is conserved. The answer is (D).\n\nQ:\ - \ A photocell of work function \u03D5 = 2eV is connected to a resistor in series.\ - \ Light of frequency f = 1 \xD7 10^15 Hz hits a metal plate of the photocell. If\ - \ the power of the light is P = 100 W, what is the current through the resistor?\n\ - (A) 2:00 AM (B) 6:00 AM (C) 12:00 AM (D) 24 A\nA: Let's think step by step. The\ - \ only answer above which has units of current is D, 24 A. The answer is (D).\n\n\ - Q: A pipe full of air is closed at one end. A standing wave is produced in the pipe,\ - \ causing the pipe to sound a note. Which of the following is a correct statement\ - \ about the wave\u2019s properties at the closed end of the pipe?\n(A) The pressure\ - \ is at a node, but the particle displacement is at an antinode. (B) The pressure\ - \ is at an antinode, but the particle displacement is at a node. (C) The pressure\ - \ and the particle displacement are both at nodes. (D) The pressure and the particle\ - \ displacement are both at antinodes.\nA: Let's think step by step. At the closed\ - \ end of the pipe, the particles cannot have any net displacement because the pipe\ - \ closure stops them. So the particle displacement is at a node. This closure also\ - \ causes the pressure to be maximal, i.e. an antinode. The answer is (B)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_high_school_physics + \ How much work is required to move a charge, Q = +8 µC, from the point (0, 4 meters)\ + \ to the point (3 meters, 0)?\n(A) 3.5 J (B) 6.0 J (C) 22.5 J (D) 40 J\nA: Let's\ + \ think step by step. To calculate the work required to move a charge from one location\ + \ to another in a fixed electric field, it is enough to calculate the potential\ + \ difference between the two locations. Here, the potential only depends on the\ + \ distance between the charges; it’s $k q_1 q_2 / r$, where $k$ is Coulomb’s constant.\ + \ Plugging in values $q_1 = $ 1 mC, $q_2 = 8 \\mu$ C, gives the answer as 5.992\ + \ J, which rounds to 6 J. The answer is (B).\n\nQ: Which of the following conditions\ + \ will ensure that angular momentum is conserved? I. Conservation of linear momentum\ + \ II. Zero net external force III. Zero net external torque\n(A) I and II only (B)\ + \ I and III only (C) II and III only (D) III only\nA: Let's think step by step.\ + \ Torque is defined as the change in angular momentum; if there is zero external\ + \ torque, angular momentum is conserved. The answer is (D).\n\nQ: A photocell of\ + \ work function ϕ = 2eV is connected to a resistor in series. Light of frequency\ + \ f = 1 × 10^15 Hz hits a metal plate of the photocell. If the power of the light\ + \ is P = 100 W, what is the current through the resistor?\n(A) 2:00 AM (B) 6:00\ + \ AM (C) 12:00 AM (D) 24 A\nA: Let's think step by step. The only answer above which\ + \ has units of current is D, 24 A. The answer is (D).\n\nQ: A pipe full of air is\ + \ closed at one end. A standing wave is produced in the pipe, causing the pipe to\ + \ sound a note. Which of the following is a correct statement about the wave’s properties\ + \ at the closed end of the pipe?\n(A) The pressure is at a node, but the particle\ + \ displacement is at an antinode. (B) The pressure is at an antinode, but the particle\ + \ displacement is at a node. (C) The pressure and the particle displacement are\ + \ both at nodes. (D) The pressure and the particle displacement are both at antinodes.\n\ + A: Let's think step by step. At the closed end of the pipe, the particles cannot\ + \ have any net displacement because the pipe closure stops them. So the particle\ + \ displacement is at a node. This closure also causes the pressure to be maximal,\ + \ i.e. an antinode. The answer is (B)." +"group": "mmlu_flan_cot_fewshot_stem" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_high_school_physics" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_psychology.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_psychology.yaml index 706db0ec..b54a6c38 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_psychology.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_psychology.yaml @@ -1,72 +1,48 @@ -dataset_name: high_school_psychology -description: 'The following are multiple choice questions (with answers) about high - school psychology. - - - Q: Pascale is interested in the processing strategies children use to learn new - information. Pascale would best be classified as what type of psychologist? - - (A) sociocultural (B) clinical (C) cognitive (D) behaviorist - - A: Let''s think step by step. We refer to Wikipedia articles on psychology for help. - Sociocultural psychologist focuses on the effect of societal factors on people. - Clinical psychologist focuses on people with mental issues. Cognitive psychologist - focuses on how people think and learn, including the processing strategies. Behaviorist - focuses more on the environment and experience effect on people. The answer is (C). - - - Q: According to Caplan''s model of consultee-centered case consultation, the consultant - is primarily interested in - - (A) identifying the causes and solutions of the client''s presenting problems (B) - identifying and eliminating the causes of the consultee''s difficulties in handling - a problem (C) establishing a hierarchy of authority to enable effective decision - making (D) presenting a single, well-defined and unambiguous course of action for - the consultant to overcome skills deficits - - A: Let''s think step by step. We refer to Wikipedia articles on psychology for help. - Caplan defines two type of consultation. Client-centered case consultation aims - to handle client''s problems, while consultee-centered case consultation aims to - identify the reason of client''s difficulty to solve problems. The answer is (B). - - - Q: According to the Individuals with Disabilities Education Improvement Act, which - of the following must an educational agency do before it changes the educational - placement of a student with a disability? - - (A) Give the child a trial period in the new environment (B) Notify the parents - in writing (C) Obtain school board approval (D) Obtain parental consent - - A: Let''s think step by step. We refer to Wikipedia articles on psychology for help. - When the decision to change the educational placement of a student with a disability - is made, the educational agency must notify the parents in writing on that date. - The answer is (B). - - - Q: While swimming in the ocean, Ivan is frightened by a dark shadow in the water - even before he has the chance to identify what the shadow is. The synaptic connections - taking place during this incident of fright are best described by which of the following? - - (A) Messages are sent from the thalamus directly to the amygdala. (B) Messages are - sent from the thalamus to the "what" and "where" pathways. (C) Messages are sent - from the parasympathetic nervous system to the cerebral cortex. (D) Messages are - sent from the frontal lobes to the pituitary gland. - - A: Let''s think step by step. We refer to Wikipedia articles on psychology for help. - Our neural system has a mechanism that can respond immediate emotional signal before - going to the thought center. In the Ivan''s case, messages travel directly from - thalamus to amygdala. The answer is (A). - - - Q: Ani believes that her attitudes and behavior play a central role in what happens - to her. Such a belief is likely to be associated with - - (A) a strong superego. (B) low self-esteem. (C) low self-efficacy. (D) an internal - locus of control. - - A: Let''s think step by step. We refer to Wikipedia articles on psychology for help. - People with an external locus of control believes fate and luck play an important - role in their lives, while people with an internal locus of control believes they - control their lives. The answer is (D).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_high_school_psychology +"dataset_name": "high_school_psychology" +"description": "The following are multiple choice questions (with answers) about high\ + \ school psychology.\n\nQ: Pascale is interested in the processing strategies children\ + \ use to learn new information. Pascale would best be classified as what type of\ + \ psychologist?\n(A) sociocultural (B) clinical (C) cognitive (D) behaviorist\n\ + A: Let's think step by step. We refer to Wikipedia articles on psychology for help.\ + \ Sociocultural psychologist focuses on the effect of societal factors on people.\ + \ Clinical psychologist focuses on people with mental issues. Cognitive psychologist\ + \ focuses on how people think and learn, including the processing strategies. Behaviorist\ + \ focuses more on the environment and experience effect on people. The answer is\ + \ (C).\n\nQ: According to Caplan's model of consultee-centered case consultation,\ + \ the consultant is primarily interested in\n(A) identifying the causes and solutions\ + \ of the client's presenting problems (B) identifying and eliminating the causes\ + \ of the consultee's difficulties in handling a problem (C) establishing a hierarchy\ + \ of authority to enable effective decision making (D) presenting a single, well-defined\ + \ and unambiguous course of action for the consultant to overcome skills deficits\n\ + A: Let's think step by step. We refer to Wikipedia articles on psychology for help.\ + \ Caplan defines two type of consultation. Client-centered case consultation aims\ + \ to handle client's problems, while consultee-centered case consultation aims to\ + \ identify the reason of client's difficulty to solve problems. The answer is (B).\n\ + \nQ: According to the Individuals with Disabilities Education Improvement Act, which\ + \ of the following must an educational agency do before it changes the educational\ + \ placement of a student with a disability?\n(A) Give the child a trial period in\ + \ the new environment (B) Notify the parents in writing (C) Obtain school board\ + \ approval (D) Obtain parental consent\nA: Let's think step by step. We refer to\ + \ Wikipedia articles on psychology for help. When the decision to change the educational\ + \ placement of a student with a disability is made, the educational agency must\ + \ notify the parents in writing on that date. The answer is (B).\n\nQ: While swimming\ + \ in the ocean, Ivan is frightened by a dark shadow in the water even before he\ + \ has the chance to identify what the shadow is. The synaptic connections taking\ + \ place during this incident of fright are best described by which of the following?\n\ + (A) Messages are sent from the thalamus directly to the amygdala. (B) Messages are\ + \ sent from the thalamus to the \"what\" and \"where\" pathways. (C) Messages are\ + \ sent from the parasympathetic nervous system to the cerebral cortex. (D) Messages\ + \ are sent from the frontal lobes to the pituitary gland.\nA: Let's think step by\ + \ step. We refer to Wikipedia articles on psychology for help. Our neural system\ + \ has a mechanism that can respond immediate emotional signal before going to the\ + \ thought center. In the Ivan's case, messages travel directly from thalamus to\ + \ amygdala. The answer is (A).\n\nQ: Ani believes that her attitudes and behavior\ + \ play a central role in what happens to her. Such a belief is likely to be associated\ + \ with\n(A) a strong superego. (B) low self-esteem. (C) low self-efficacy. (D) an\ + \ internal locus of control.\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on psychology for help. People with an external locus of control believes\ + \ fate and luck play an important role in their lives, while people with an internal\ + \ locus of control believes they control their lives. The answer is (D)." +"group": "mmlu_flan_cot_fewshot_social_sciences" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_high_school_psychology" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_statistics.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_statistics.yaml index 37e21061..918f6ac3 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_statistics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_statistics.yaml @@ -1,88 +1,58 @@ -dataset_name: high_school_statistics -description: 'The following are multiple choice questions (with answers) about high - school statistics. - - - Q: 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: - - (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 - - A: 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). - - - Q: 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? - - (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. - - 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). - - - Q: 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? - - (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. - - A: 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). - - - Q: Which of the following sets has the smallest standard deviation? Which has the - largest? - - I: {1,2,3} - - II: {-10,10} - - III: {100} - - (A) I, II (B) II, III (C) III, I (D) III, II - - A: 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). - - - Q: Which of the following is a correct statement about correlation? - - (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. - - A: 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).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_high_school_statistics +"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)." +"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_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_us_history.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_us_history.yaml index 951666d1..d8d0bfbb 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_us_history.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_us_history.yaml @@ -1,5 +1,5 @@ -dataset_name: high_school_us_history -description: "The following are multiple choice questions (with answers) about high\ +"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\ @@ -8,126 +8,127 @@ description: "The following are multiple choice questions (with answers) about h \ 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\u2014shut out, cut off from all healing\ - \ influences, from all mind-restoring cares.\u2026 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.\u2026\n\u2014\ - 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\n\ - Dorothea 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\u2014\"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.\n\ - The 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.\"\ - \ \u2026 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\u2014Senator\ - \ George McGovern, \"The Lessons of Vietnam,\" April 25, 1967\nWhich 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\u2014voters, jurors, office-holders\u2014crossing 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\n\ - A: 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)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_high_school_us_history + \ 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)." +"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_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_world_history.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_world_history.yaml index 1cf4bbdb..6db82ea6 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_world_history.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_world_history.yaml @@ -1,5 +1,5 @@ -dataset_name: high_school_world_history -description: "The following are multiple choice questions (with answers) about high\ +"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\ @@ -8,75 +8,75 @@ description: "The following are multiple choice questions (with answers) about h \ 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 \xA9 2015 Cambridge University\ - \ Press.\nAlfred 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\u20131750 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.\n\ - Non-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\u2026The 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\u2026\"\n\ - Letter 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\nA: 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.\n\ - He 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\u2014The Upanishads, India,\ - \ c. 1000 BCE\nTo which religion does the speaker most likely belong?\n(A) Hinduism\ - \ (B) Buddhism (C) Shintoism (D) Zoroastrianism\nA: 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)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_high_school_world_history + \ 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)." +"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_eval/tasks/mmlu/flan_cot_fewshot/mmlu_human_aging.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_human_aging.yaml index 9d652132..3d1f5971 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_human_aging.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_human_aging.yaml @@ -1,48 +1,28 @@ -dataset_name: human_aging -description: 'The following are multiple choice questions (with answers) about human - aging. - - - Q: All other things being equal, which of the following persons is more likely to - show osteoporosis? - - (A) An older Hispanic American woman (B) An older African American woman (C) An - older Asian American woman (D) An older Native American woman - - A: 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). - - - Q: The finding that adults tend to remember events from their adolescence better - than from other periods in their lives is referred to as the - - (A) Adolescence advantage (B) Reminiscence bump (C) Memorial memorial (D) Quadratic - retrieval spike - - A: 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). - - - Q: Which element in tobacco smoke is responsible for cancers? - - (A) Nicotine (B) Tar (C) Carbon monoxide (D) Smoke particles - - A: 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). - - - Q: When older adults move to a new state after retirement, which of the following - is the more likely destination? - - (A) Texas (B) California (C) Hawaii (D) Vermont - - A: 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).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_human_aging +"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)." +"group": "mmlu_flan_cot_fewshot_other" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_human_aging" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_human_sexuality.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_human_sexuality.yaml index 6b7a12cc..68a84092 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_human_sexuality.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_human_sexuality.yaml @@ -1,61 +1,34 @@ -dataset_name: human_sexuality -description: 'The following are multiple choice questions (with answers) about human - sexuality. - - - Q: The most common disorder among men who seek sexual therapy is: - - (A) premature ejaculation (B) inhibited ejaculation (C) erectile disorder (D) ejaculatory - disorder - - A: 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). - - - Q: 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: - - (A) a strong ego (B) a weak superego (C) a weak id (D) a strong superego - - 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). - - - Q: The nature of homosexual activities that occur during preadolescence include - all but which of the following? - - (A) sexual intercourse (B) circle jerks (C) exhibitionism (D) touching each other''s - genitals - - A: 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). - - - Q: Women''s ability to have multiple orgasms is primarily due to: - - (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. - - 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). - - - Q: Morning sickness is typically a problem: - - (A) during the first trimester (B) during the second trimester (C) during the third - trimester (D) all through the pregnancy - - A: 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).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_human_sexuality +"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)." +"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_eval/tasks/mmlu/flan_cot_fewshot/mmlu_international_law.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_international_law.yaml index 655a39e8..31d87667 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_international_law.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_international_law.yaml @@ -1,80 +1,54 @@ -dataset_name: international_law -description: 'The following are multiple choice questions (with answers) about international - law. - - - Q: How the consent to be bound of a State may be expressed? - - (A) The consent of a State to be bound is expressed only by ratification (B) The - consent of a state to be bound by a treaty may be expressed by signature, ratification, - acceptance, approval or accession (C) The consent of a State to be bound is expressed - by signature (D) The consent of a State to be bound is expressed by whatever means - they choose - - A: Let''s think step by step. We refer to Wikipedia articles on international law - for help. Article 11 of Vienna Convention on the Law of Treaties signed in 1969 - states that "the consent of a State to be bound by a treaty may be expressed by - signature, exchange of instruments constituting a treaty, ratification, acceptance, - approval or accession, or by any other means if so agreed." (B) is the most precise - and accurate answer. The answer is (B). - - - Q: What is the judge ad hoc? - - (A) If a party to a contentious case before the ICJ does not have a national sitting - as judge, it is entitled to nominate someone as a judge solely for that case, with - the title of judge ad hoc (B) Judge ad hoc is the member of the bench of the ICJ - with a casting vote (C) Judge ad hoc is a surrogate judge, in case a judge is disqualified - or passes away (D) Judge ad hoc is the judge that each party will always nominate - in every contentious case - - A: Let''s think step by step. We refer to Wikipedia articles on international law - for help. As "ad hoc" implies, a judge ad hoc is appointed only for a specific case - or period, when a party to a contentious case before the International Court of - Justice does not have a regular national sitting as judge. The answer is (A). - - - Q: When ''consent'' can serve as a circumstance precluding the wrongfulness of a - State conduct? - - (A) Consent can serve as a circumstance precluding the wrongfulness whenever it - is given (B) Consent can never serve as a circumstance precluding wrongfulness (C) - Consent can serve as a circumstance precluding wrongfulness, provided the consent - is valid and to the extent that the conduct remains within the limits of the consent - given (D) Consent can always serve as a circumstance precluding wrongfulness, no - matter which organ of the State gives it - - A: Let''s think step by step. We refer to Wikipedia articles on international law - for help. Valid consent can serve as a circumstance precluding the wrongfulness - of a State conduct if the conduct remains within the limits of that consent, according - to Chapter V of the Responsibility of States for Internationally Wrongful Acts, - 2001, United Nations. The answer is (C). - - - Q: Would a reservation to the definition of torture in the ICCPR be acceptable in - contemporary practice? - - (A) This is an acceptable reservation if the reserving country''s legislation employs - a different definition (B) This is an unacceptable reservation because it contravenes - the object and purpose of the ICCPR (C) This is an unacceptable reservation because - the definition of torture in the ICCPR is consistent with customary international - law (D) This is an acceptable reservation because under general international law - States have the right to enter reservations to treaties - - A: Let''s think step by step. We refer to Wikipedia articles on international law - for help. For it contravenes the object and purpose of the ICCPR, this is an unacceptable - reservation in contemporary practice. The answer is (B). - - - Q: What types of force does Article 2(4) of the UN Charter prohibit? - - (A) Article 2(4) encompasses only armed force (B) Article 2(4) encompasses all types - of force, including sanctions (C) Article 2(4) encompasses all interference in the - domestic affairs of States (D) Article 2(4) encompasses force directed only against - a State''s territorial integrity - - A: Let''s think step by step. We refer to Wikipedia articles on international law - for help. Article 2(4) of the UN Charter prohibits states from using armed forces - in their international relations. The answer is (A).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_international_law +"dataset_name": "international_law" +"description": "The following are multiple choice questions (with answers) about international\ + \ law.\n\nQ: How the consent to be bound of a State may be expressed?\n(A) The consent\ + \ of a State to be bound is expressed only by ratification (B) The consent of a\ + \ state to be bound by a treaty may be expressed by signature, ratification, acceptance,\ + \ approval or accession (C) The consent of a State to be bound is expressed by signature\ + \ (D) The consent of a State to be bound is expressed by whatever means they choose\n\ + A: Let's think step by step. We refer to Wikipedia articles on international law\ + \ for help. Article 11 of Vienna Convention on the Law of Treaties signed in 1969\ + \ states that \"the consent of a State to be bound by a treaty may be expressed\ + \ by signature, exchange of instruments constituting a treaty, ratification, acceptance,\ + \ approval or accession, or by any other means if so agreed.\" (B) is the most precise\ + \ and accurate answer. The answer is (B).\n\nQ: What is the judge ad hoc?\n(A) If\ + \ a party to a contentious case before the ICJ does not have a national sitting\ + \ as judge, it is entitled to nominate someone as a judge solely for that case,\ + \ with the title of judge ad hoc (B) Judge ad hoc is the member of the bench of\ + \ the ICJ with a casting vote (C) Judge ad hoc is a surrogate judge, in case a judge\ + \ is disqualified or passes away (D) Judge ad hoc is the judge that each party will\ + \ always nominate in every contentious case\nA: Let's think step by step. We refer\ + \ to Wikipedia articles on international law for help. As \"ad hoc\" implies, a\ + \ judge ad hoc is appointed only for a specific case or period, when a party to\ + \ a contentious case before the International Court of Justice does not have a regular\ + \ national sitting as judge. The answer is (A).\n\nQ: When 'consent' can serve as\ + \ a circumstance precluding the wrongfulness of a State conduct?\n(A) Consent can\ + \ serve as a circumstance precluding the wrongfulness whenever it is given (B) Consent\ + \ can never serve as a circumstance precluding wrongfulness (C) Consent can serve\ + \ as a circumstance precluding wrongfulness, provided the consent is valid and to\ + \ the extent that the conduct remains within the limits of the consent given (D)\ + \ Consent can always serve as a circumstance precluding wrongfulness, no matter\ + \ which organ of the State gives it\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on international law for help. Valid consent can serve as a circumstance\ + \ precluding the wrongfulness of a State conduct if the conduct remains within the\ + \ limits of that consent, according to Chapter V of the Responsibility of States\ + \ for Internationally Wrongful Acts, 2001, United Nations. The answer is (C).\n\n\ + Q: Would a reservation to the definition of torture in the ICCPR be acceptable in\ + \ contemporary practice?\n(A) This is an acceptable reservation if the reserving\ + \ country's legislation employs a different definition (B) This is an unacceptable\ + \ reservation because it contravenes the object and purpose of the ICCPR (C) This\ + \ is an unacceptable reservation because the definition of torture in the ICCPR\ + \ is consistent with customary international law (D) This is an acceptable reservation\ + \ because under general international law States have the right to enter reservations\ + \ to treaties\nA: Let's think step by step. We refer to Wikipedia articles on international\ + \ law for help. For it contravenes the object and purpose of the ICCPR, this is\ + \ an unacceptable reservation in contemporary practice. The answer is (B).\n\nQ:\ + \ What types of force does Article 2(4) of the UN Charter prohibit?\n(A) Article\ + \ 2(4) encompasses only armed force (B) Article 2(4) encompasses all types of force,\ + \ including sanctions (C) Article 2(4) encompasses all interference in the domestic\ + \ affairs of States (D) Article 2(4) encompasses force directed only against a State's\ + \ territorial integrity\nA: Let's think step by step. We refer to Wikipedia articles\ + \ on international law for help. Article 2(4) of the UN Charter prohibits states\ + \ from using armed forces in their international relations. The answer is (A)." +"group": "mmlu_flan_cot_fewshot_humanities" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_international_law" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_jurisprudence.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_jurisprudence.yaml index 7e11f0f7..fa354238 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_jurisprudence.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_jurisprudence.yaml @@ -1,69 +1,45 @@ -dataset_name: jurisprudence -description: 'The following are multiple choice questions (with answers) about jurisprudence. - - - Q: 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.'' - - (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. - - A: 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). - - - Q: Functions of the law include all but which of the following? - - (A) maximizing individual freedom (B) providing a basis for compromise (C) keeping - the peace (D) promoting the principles of the free enterprise system - - A: 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). - - - Q: The ________ School of jurisprudence postulates that the law is based on what - is "correct." - - (A) Natural Law (B) Analytical (C) Historical (D) Sociological - - 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). - - - Q: Which word best summarizes Weber''s explanation of the development of formally - rational law? - - (A) Authority. (B) Charisma. (C) Co-operation. (D) Capitalism. - - A: 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). - - - Q: Which position does Rawls claim is the least likely to be adopted by the POP - (people in the original position)? - - (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.'' - - 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).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_jurisprudence +"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)." +"group": "mmlu_flan_cot_fewshot_humanities" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_jurisprudence" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_logical_fallacies.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_logical_fallacies.yaml index f6f3c359..c6251e67 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_logical_fallacies.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_logical_fallacies.yaml @@ -1,71 +1,45 @@ -dataset_name: logical_fallacies -description: 'The following are multiple choice questions (with answers) about logical - fallacies. - - - Q: When an arguer causes confusion during refutation because of real or feigned - lack of an ability to engage in refutation, that arguer may have committed the fallacy - of - - (A) poor sportsmanship (B) appeal to compassion (C) argument against the person - (D) ignorance of refutation - - A: Let''s think step by step. We refer to Wikipedia articles on logical fallacies - for help. Ignorance of refutation, one of Aristotle''s original list of logical - fallacies in his Organon, is when someone causes confusion in an argument through - real or feigned inability to engage in refutation, in order to win the argument. - The answer is (D). - - - Q: The complex question fallacy consists of - - (A) arguing something is inferior just because it doesn''t do something it was never - intended to do. (B) including more than one claim in the proposition and treating - proof for one claim as proof for all the claims. (C) drawing a conclusion before - examining the evidence, and only considering evidence that supports that conclusion. - (D) asking a question that includes either an unproven assumption or more than one - question, thus making a straightforward yes or no answer meaningless. - - A: Let''s think step by step. We refer to Wikipedia articles on logical fallacies - for help. The complex question fallacy is when someone makes a single yes or no - answer to a question meaningless, by including either an unproven assumption or - many questions. The latter is also known as the many questions fallacy. The answer - is (D). - - - Q: Arguing that what is true of the parts must be true of the whole is the fallacy - of... - - (A) Division (B) Composition (C) Appeal to the person (D) Appeal to ignorance - - A: Let''s think step by step. We refer to Wikipedia articles on logical fallacies - for help. Fallacy of composition occurs when someone argues what is true of the - parts must be true of the whole. The answer is (B). - - - Q: Which of the following is true of a valid categorical syllogism? - - (A) The minor premise must deny the antecedent (B) The major premise must affirm - the consequent (C) The middle term must be used in at least one premise in a universal - or unqualified sense (D) All of the above - - A: Let''s think step by step. We refer to Wikipedia articles on logical fallacies - for help. A valid categorical syllogism must satisfy several conditions: (1) the - syllogism must have exactly three terms (2) every term of the syllogism must be - used twice exactly, (3) a term may be used only once in any premise, and (4) the - middle term must be used in at least one premise in a universal or unqualified sense, - etc. Only (C) is true. The answer is (C). - - - Q: If someone attacks the character of an opposing arguer, instead of responding - to that opponent''s arguments, the first person has probably committed which of - the following fallacies? - - (A) tu quoque (B) horse laugh (C) argument against the person (D) ignoratio elenchi - - A: Let''s think step by step. We refer to Wikipedia articles on logical fallacies - for help. The argument against the person fallacy occurs when someone irrelevantly - attacks the character of an opposing arguer, instead of addressing that opponent''s - arguments. The answer is (C).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_logical_fallacies +"dataset_name": "logical_fallacies" +"description": "The following are multiple choice questions (with answers) about logical\ + \ fallacies.\n\nQ: When an arguer causes confusion during refutation because of\ + \ real or feigned lack of an ability to engage in refutation, that arguer may have\ + \ committed the fallacy of\n(A) poor sportsmanship (B) appeal to compassion (C)\ + \ argument against the person (D) ignorance of refutation\nA: Let's think step by\ + \ step. We refer to Wikipedia articles on logical fallacies for help. Ignorance\ + \ of refutation, one of Aristotle's original list of logical fallacies in his Organon,\ + \ is when someone causes confusion in an argument through real or feigned inability\ + \ to engage in refutation, in order to win the argument. The answer is (D).\n\n\ + Q: The complex question fallacy consists of\n(A) arguing something is inferior just\ + \ because it doesn't do something it was never intended to do. (B) including more\ + \ than one claim in the proposition and treating proof for one claim as proof for\ + \ all the claims. (C) drawing a conclusion before examining the evidence, and only\ + \ considering evidence that supports that conclusion. (D) asking a question that\ + \ includes either an unproven assumption or more than one question, thus making\ + \ a straightforward yes or no answer meaningless.\nA: Let's think step by step.\ + \ We refer to Wikipedia articles on logical fallacies for help. The complex question\ + \ fallacy is when someone makes a single yes or no answer to a question meaningless,\ + \ by including either an unproven assumption or many questions. The latter is also\ + \ known as the many questions fallacy. The answer is (D).\n\nQ: Arguing that what\ + \ is true of the parts must be true of the whole is the fallacy of...\n(A) Division\ + \ (B) Composition (C) Appeal to the person (D) Appeal to ignorance\nA: Let's think\ + \ step by step. We refer to Wikipedia articles on logical fallacies for help. Fallacy\ + \ of composition occurs when someone argues what is true of the parts must be true\ + \ of the whole. The answer is (B).\n\nQ: Which of the following is true of a valid\ + \ categorical syllogism?\n(A) The minor premise must deny the antecedent (B) The\ + \ major premise must affirm the consequent (C) The middle term must be used in at\ + \ least one premise in a universal or unqualified sense (D) All of the above\nA:\ + \ Let's think step by step. We refer to Wikipedia articles on logical fallacies\ + \ for help. A valid categorical syllogism must satisfy several conditions: (1) the\ + \ syllogism must have exactly three terms (2) every term of the syllogism must be\ + \ used twice exactly, (3) a term may be used only once in any premise, and (4) the\ + \ middle term must be used in at least one premise in a universal or unqualified\ + \ sense, etc. Only (C) is true. The answer is (C).\n\nQ: If someone attacks the\ + \ character of an opposing arguer, instead of responding to that opponent's arguments,\ + \ the first person has probably committed which of the following fallacies?\n(A)\ + \ tu quoque (B) horse laugh (C) argument against the person (D) ignoratio elenchi\n\ + A: Let's think step by step. We refer to Wikipedia articles on logical fallacies\ + \ for help. The argument against the person fallacy occurs when someone irrelevantly\ + \ attacks the character of an opposing arguer, instead of addressing that opponent's\ + \ arguments. The answer is (C)." +"group": "mmlu_flan_cot_fewshot_humanities" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_logical_fallacies" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_machine_learning.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_machine_learning.yaml index 1856af53..3a99b908 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_machine_learning.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_machine_learning.yaml @@ -1,5 +1,5 @@ -dataset_name: machine_learning -description: "The following are multiple choice questions (with answers) about machine\ +"dataset_name": "machine_learning" +"description": "The following are multiple choice questions (with answers) about machine\ \ learning.\n\nQ: Which image data augmentation is most common for natural images?\n\ (A) random crop and horizontal flip (B) random crop and vertical flip (C) posterization\ \ (D) dithering\nA: Let's think step by step. Data augmentation is used to increase\ @@ -12,48 +12,49 @@ description: "The following are multiple choice questions (with answers) about m \ learning we consider a binary split according to whether the attribute is above\ \ or below some threshold. Pat suggests that instead we should just have a multiway\ \ split with one branch for each of the distinct values of the attribute. From the\ - \ list below choose the single biggest problem with Pat\u2019s suggestion:\n(A)\ - \ It is too computationally expensive. (B) It would probably result in a decision\ - \ tree that scores badly on the training set and a testset. (C) It would probably\ - \ result in a decision tree that scores well on the training set but badly on a\ - \ testset. (D) It would probably result in a decision tree that scores well on a\ - \ testset but badly on a training set.\nA: Let's think step by step. Because the\ - \ input is real valued, it is unlikely that the same values appear both at training\ - \ and test time. This means that while such a decision tree could yield good performance\ + \ list below choose the single biggest problem with Pat’s suggestion:\n(A) It is\ + \ too computationally expensive. (B) It would probably result in a decision tree\ + \ that scores badly on the training set and a testset. (C) It would probably result\ + \ in a decision tree that scores well on the training set but badly on a testset.\ + \ (D) It would probably result in a decision tree that scores well on a testset\ + \ but badly on a training set.\nA: Let's think step by step. Because the input is\ + \ real valued, it is unlikely that the same values appear both at training and test\ + \ time. This means that while such a decision tree could yield good performance\ \ on the training data, when evaluated on the test data it will perform badly because\ - \ the decision tree won\u2019t know what to do with numbers that did not appear\ - \ in the training data. The answer is (C).\n\nQ: You are reviewing papers for the\ - \ World\u2019s Fanciest Machine Learning Conference, and you see submissions with\ - \ the following claims. Which ones would you consider accepting?\n(A) My method\ - \ achieves a training error lower than all previous methods! (B) My method achieves\ - \ a test error lower than all previous methods! (Footnote: When regularisation parameter\ - \ \u03BB is chosen so as to minimise test error.) (C) My method achieves a test\ + \ the decision tree won’t know what to do with numbers that did not appear in the\ + \ training data. The answer is (C).\n\nQ: You are reviewing papers for the World’s\ + \ Fanciest Machine Learning Conference, and you see submissions with the following\ + \ claims. Which ones would you consider accepting?\n(A) My method achieves a training\ + \ error lower than all previous methods! (B) My method achieves a test error lower\ + \ than all previous methods! (Footnote: When regularisation parameter λ is chosen\ + \ so as to minimise test error.) (C) My method achieves a test error lower than\ + \ all previous methods! (Footnote: When regularisation parameter λ is chosen so\ + \ as to minimise cross-validaton error.) (D) My method achieves a cross-validation\ \ error lower than all previous methods! (Footnote: When regularisation parameter\ - \ \u03BB is chosen so as to minimise cross-validaton error.) (D) My method achieves\ - \ a cross-validation error lower than all previous methods! (Footnote: When regularisation\ - \ parameter \u03BB is chosen so as to minimise cross-validaton error.)\nA: Let's\ - \ think step by step. In machine learning, we train with some data and fixed hyperparameters\ - \ and the training error can be arbitrarily low, so (A) can\u2019t be right. Then,\ - \ one compares different hyperparameters by selecting the model with the lowest\ - \ cross-validation error, this means that (B) and (D) are not the right procedure.\ - \ The only relevant number after these is the test error and thus (C) is the right\ - \ answer. The answer is (C).\n\nQ: A 6-sided die is rolled 15 times and the results\ - \ are: side 1 comes up 0 times; side 2: 1 time; side 3: 2 times; side 4: 3 times;\ - \ side 5: 4 times; side 6: 5 times. Based on these results, what is the probability\ - \ of side 3 coming up when using Add-1 Smoothing?\n(A) 2.0/15 (B) 1.0/7 (C) 3.0/16\ - \ (D) 1.0/5\nA: Let's think step by step. Add-1 smoothing adds the value of one\ - \ to the different counts and then normalizes the probabilities accordingly. The\ - \ counts after adding one will be: side 1 comes up 1 time; side 2: 2 times; side\ - \ 3: 3 times; side 4: 4 times; side 5: 5 times; side 6: 6 times. The number of sum\ - \ one die rolls will be 21, so the probability of drawing a three is 3/21 = 1/7.\ - \ The answer is (B).\n\nQ: To achieve an 0/1 loss estimate that is less than 1 percent\ - \ of the true 0/1 loss (with probability 95%), according to Hoeffding's inequality\ - \ the IID test set must have how many examples?\n(A) around 10 examples (B) around\ - \ 100 examples (C) between 100 and 500 examples (D) more than 1000 examples\nA:\ - \ Let's think step by step. By the Hoeffding\u2019s inequality, we expect that with\ - \ 95% probability the in-sample and out-of-sample errors differ by epsilon when\ - \ we have N samples if 2 exp(-2 epsilon^2 N)<0.05, this implies that N > -1/(2*epsilon**2)\ - \ log ( 0.05/2 )= log (40)*5000. Since log(40)>1, we have that one needs more than\ - \ 1000 examples. The answer is (D)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_machine_learning + \ λ is chosen so as to minimise cross-validaton error.)\nA: Let's think step by\ + \ step. In machine learning, we train with some data and fixed hyperparameters and\ + \ the training error can be arbitrarily low, so (A) can’t be right. Then, one compares\ + \ different hyperparameters by selecting the model with the lowest cross-validation\ + \ error, this means that (B) and (D) are not the right procedure. The only relevant\ + \ number after these is the test error and thus (C) is the right answer. The answer\ + \ is (C).\n\nQ: A 6-sided die is rolled 15 times and the results are: side 1 comes\ + \ up 0 times; side 2: 1 time; side 3: 2 times; side 4: 3 times; side 5: 4 times;\ + \ side 6: 5 times. Based on these results, what is the probability of side 3 coming\ + \ up when using Add-1 Smoothing?\n(A) 2.0/15 (B) 1.0/7 (C) 3.0/16 (D) 1.0/5\nA:\ + \ Let's think step by step. Add-1 smoothing adds the value of one to the different\ + \ counts and then normalizes the probabilities accordingly. The counts after adding\ + \ one will be: side 1 comes up 1 time; side 2: 2 times; side 3: 3 times; side 4:\ + \ 4 times; side 5: 5 times; side 6: 6 times. The number of sum one die rolls will\ + \ be 21, so the probability of drawing a three is 3/21 = 1/7. The answer is (B).\n\ + \nQ: To achieve an 0/1 loss estimate that is less than 1 percent of the true 0/1\ + \ loss (with probability 95%), according to Hoeffding's inequality the IID test\ + \ set must have how many examples?\n(A) around 10 examples (B) around 100 examples\ + \ (C) between 100 and 500 examples (D) more than 1000 examples\nA: Let's think step\ + \ by step. By the Hoeffding’s inequality, we expect that with 95% probability the\ + \ in-sample and out-of-sample errors differ by epsilon when we have N samples if\ + \ 2 exp(-2 epsilon^2 N)<0.05, this implies that N > -1/(2*epsilon**2) log ( 0.05/2\ + \ )= log (40)*5000. Since log(40)>1, we have that one needs more than 1000 examples.\ + \ The answer is (D)." +"group": "mmlu_flan_cot_fewshot_stem" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_machine_learning" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_management.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_management.yaml index db2f9642..1259e076 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_management.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_management.yaml @@ -1,54 +1,33 @@ -dataset_name: management -description: 'The following are multiple choice questions (with answers) about management. - - - Q: How can organisational structures that are characterised by democratic and inclusive - styles of management be described? - - (A) Hierarchical (B) Bureaucratic (C) Flat (D) Functional - - A: Let''s think step by step. We refer to Wikipedia articles on management for help. - Flat organizational structures are characterized by democratic and inclusive styles - of management, and have few (if any) levels of management between the workers and - managers. The answer is (C). - - - Q: Hygiene factors are associated with which writer? - - (A) Frederick Hertzberg (B) D.C. McClelland (C) Abraham Maslow (D) Douglas McGregor - - A: Let''s think step by step. We refer to Wikipedia articles on management for help. - Hygiene factors include compensation, company policies, supervision, interpersonal - relations, and work environments. Hertzberg lists them as factors that cannot motivate - employees but can minimize job dissatisfaction. The answer is (A). - - - Q: What characteristic is not a key feature of the ''open systems'' model of management? - - (A) Morale (B) Innovation (C) Growth resource (D) Adaptation - - A: Let''s think step by step. We refer to Wikipedia articles on management for help. - The key characteristics of an open system in management include innovation, growth - resource, and adaption, but do not include morale. The answer is (A). - - - Q: Which element of the cultural web forms regalia? - - (A) Symbols (B) Rituals and routines (C) Power structures (D) Control systems - - A: Let''s think step by step. We refer to Wikipedia articles on management for help. - The cultural web is a tool for mapping an organization''s culture, where symbols - form the regalia that visually expresses the values that the organization holds - as important. The answer is (A). - - - Q: What are the two main dimensions of the Ohio Studies into leadership? - - (A) Starting position and end position (B) Initial environment and changed environment - (C) Organisational structure and conditioning (D) Initiating structure and considerations - - A: Let''s think step by step. We refer to Wikipedia articles on management for help. - The Ohio State Leadership Studies conducted in the 1940s identified initiating structure - and consideration as the two main dimensions of leader behavior. The answer is (D).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_management +"dataset_name": "management" +"description": "The following are multiple choice questions (with answers) about management.\n\ + \nQ: How can organisational structures that are characterised by democratic and\ + \ inclusive styles of management be described?\n(A) Hierarchical (B) Bureaucratic\ + \ (C) Flat (D) Functional\nA: Let's think step by step. We refer to Wikipedia articles\ + \ on management for help. Flat organizational structures are characterized by democratic\ + \ and inclusive styles of management, and have few (if any) levels of management\ + \ between the workers and managers. The answer is (C).\n\nQ: Hygiene factors are\ + \ associated with which writer?\n(A) Frederick Hertzberg (B) D.C. McClelland (C)\ + \ Abraham Maslow (D) Douglas McGregor\nA: Let's think step by step. We refer to\ + \ Wikipedia articles on management for help. Hygiene factors include compensation,\ + \ company policies, supervision, interpersonal relations, and work environments.\ + \ Hertzberg lists them as factors that cannot motivate employees but can minimize\ + \ job dissatisfaction. The answer is (A).\n\nQ: What characteristic is not a key\ + \ feature of the 'open systems' model of management?\n(A) Morale (B) Innovation\ + \ (C) Growth resource (D) Adaptation\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on management for help. The key characteristics of an open system in\ + \ management include innovation, growth resource, and adaption, but do not include\ + \ morale. The answer is (A).\n\nQ: Which element of the cultural web forms regalia?\n\ + (A) Symbols (B) Rituals and routines (C) Power structures (D) Control systems\n\ + A: Let's think step by step. We refer to Wikipedia articles on management for help.\ + \ The cultural web is a tool for mapping an organization's culture, where symbols\ + \ form the regalia that visually expresses the values that the organization holds\ + \ as important. The answer is (A).\n\nQ: What are the two main dimensions of the\ + \ Ohio Studies into leadership?\n(A) Starting position and end position (B) Initial\ + \ environment and changed environment (C) Organisational structure and conditioning\ + \ (D) Initiating structure and considerations\nA: Let's think step by step. We refer\ + \ to Wikipedia articles on management for help. The Ohio State Leadership Studies\ + \ conducted in the 1940s identified initiating structure and consideration as the\ + \ two main dimensions of leader behavior. The answer is (D)." +"group": "mmlu_flan_cot_fewshot_other" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_management" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_marketing.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_marketing.yaml index 5dd683da..d8a6b9b8 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_marketing.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_marketing.yaml @@ -1,66 +1,40 @@ -dataset_name: marketing -description: 'The following are multiple choice questions (with answers) about marketing. - - - Q: Although the content and quality can be as controlled as direct mail, response - rates of this medium are lower because of the lack of a personal address mechanism. - This media format is known as: - - (A) Care lines. (B) Direct mail. (C) Inserts. (D) Door to door. - - A: Let''s think step by step. We refer to Wikipedia articles on marketing for help. - Door to door marketing delivers non-addressed items within all buildings within - a geographic area. While it can control the content and quality as well as direct - mail marketing, its response rate is lower because of the lack of a personal address - mechanism. The answer is (D). - - - Q: In an organization, the group of people tasked with buying decisions is referred - to as the _______________. - - (A) Outsourcing unit. (B) Procurement centre. (C) Chief executive unit. (D) Decision-making - unit. - - A: Let''s think step by step. We refer to Wikipedia articles on marketing for help. - In an organization, the group of the people tasked with buying decision is referred - to as the decision-making unit. The answer is (D). - - - Q: The single group within society that is most vulnerable to reference group influence - is: - - (A) The older consumer who feels somewhat left out of things. (B) The married women, - many of whom feel a need for stability in their lives. (C) New immigrants who really - want to assimilate into their new culture. (D) Children, who base most of their - buying decisions on outside influences. - - A: Let''s think step by step. We refer to Wikipedia articles on marketing for help. - Children, who mostly based their buying decisions on outside influences, are the - single group within society that is more vulnerable to reference group influence. - The answer is (D). - - - Q: Which of the following is an assumption in Maslow''s hierarchy of needs? - - (A) Needs are dependent on culture and also on social class. (B) Lower-level needs - must be at least partially satisfied before higher needs can affect behaviour. (C) - Needs are not prioritized or arranged in any particular order. (D) Satisfied needs - are motivators, and new needs emerge when current needs remain unmet. - - A: Let''s think step by step. We refer to Wikipedia articles on marketing for help. - Maslow''s hierarchy of needs, from the bottom upwards, are physiological (food and - clothing), safety, love and belonging needs, esteem, and self-actualization. Lower-level - needs must be at least partially satisfied before higher ones can affect behavior. - The answer is (B). - - - Q: _____________ is a natural outcome when combining demographic and geographic - variables. - - (A) Geodemographics (B) Product differentiation. (C) ANSOFF matrix. (D) Brand management. - - A: Let''s think step by step. We refer to Wikipedia articles on marketing for help. - Geodemographics is a natural outcome when combining demographic and geographic variables. - The answer is (A).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_marketing +"dataset_name": "marketing" +"description": "The following are multiple choice questions (with answers) about marketing.\n\ + \nQ: Although the content and quality can be as controlled as direct mail, response\ + \ rates of this medium are lower because of the lack of a personal address mechanism.\ + \ This media format is known as:\n(A) Care lines. (B) Direct mail. (C) Inserts.\ + \ (D) Door to door.\nA: Let's think step by step. We refer to Wikipedia articles\ + \ on marketing for help. Door to door marketing delivers non-addressed items within\ + \ all buildings within a geographic area. While it can control the content and quality\ + \ as well as direct mail marketing, its response rate is lower because of the lack\ + \ of a personal address mechanism. The answer is (D).\n\nQ: In an organization,\ + \ the group of people tasked with buying decisions is referred to as the _______________.\n\ + (A) Outsourcing unit. (B) Procurement centre. (C) Chief executive unit. (D) Decision-making\ + \ unit.\nA: Let's think step by step. We refer to Wikipedia articles on marketing\ + \ for help. In an organization, the group of the people tasked with buying decision\ + \ is referred to as the decision-making unit. The answer is (D).\n\nQ: The single\ + \ group within society that is most vulnerable to reference group influence is:\n\ + (A) The older consumer who feels somewhat left out of things. (B) The married women,\ + \ many of whom feel a need for stability in their lives. (C) New immigrants who\ + \ really want to assimilate into their new culture. (D) Children, who base most\ + \ of their buying decisions on outside influences.\nA: Let's think step by step.\ + \ We refer to Wikipedia articles on marketing for help. Children, who mostly based\ + \ their buying decisions on outside influences, are the single group within society\ + \ that is more vulnerable to reference group influence. The answer is (D).\n\nQ:\ + \ Which of the following is an assumption in Maslow's hierarchy of needs?\n(A) Needs\ + \ are dependent on culture and also on social class. (B) Lower-level needs must\ + \ be at least partially satisfied before higher needs can affect behaviour. (C)\ + \ Needs are not prioritized or arranged in any particular order. (D) Satisfied needs\ + \ are motivators, and new needs emerge when current needs remain unmet.\nA: Let's\ + \ think step by step. We refer to Wikipedia articles on marketing for help. Maslow's\ + \ hierarchy of needs, from the bottom upwards, are physiological (food and clothing),\ + \ safety, love and belonging needs, esteem, and self-actualization. Lower-level\ + \ needs must be at least partially satisfied before higher ones can affect behavior.\ + \ The answer is (B).\n\nQ: _____________ is a natural outcome when combining demographic\ + \ and geographic variables.\n(A) Geodemographics (B) Product differentiation. (C)\ + \ ANSOFF matrix. (D) Brand management.\nA: Let's think step by step. We refer to\ + \ Wikipedia articles on marketing for help. Geodemographics is a natural outcome\ + \ when combining demographic and geographic variables. The answer is (A)." +"group": "mmlu_flan_cot_fewshot_other" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_marketing" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_medical_genetics.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_medical_genetics.yaml index ebf699aa..bf770592 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_medical_genetics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_medical_genetics.yaml @@ -1,61 +1,37 @@ -dataset_name: medical_genetics -description: 'The following are multiple choice questions (with answers) about medical - genetics. - - - Q: The stage of meiosis in which chromosomes pair and cross over is: - - (A) prophase I (B) metaphase I (C) prophase II (D) metaphase II - - A: 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). - - - Q: DNA ligase is - - (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 - - A: 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). - - - Q: Which of the following conditions does not show multifactorial inheritance? - - (A) Pyloric stenosis (B) Schizophrenia (C) Spina bifida (neural tube defects) (D) - Marfan syndrome - - A: 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). - - - Q: A gene showing codominance - - (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 - - A: 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). - - - Q: Large triplet repeat expansions can be detected by: - - (A) polymerase chain reaction. (B) single strand conformational polymorphism analysis. - (C) Southern blotting. (D) Western blotting. - - A: 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).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_medical_genetics +"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)." +"group": "mmlu_flan_cot_fewshot_other" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_medical_genetics" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_miscellaneous.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_miscellaneous.yaml index a506e940..0075bd64 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_miscellaneous.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_miscellaneous.yaml @@ -1,54 +1,27 @@ -dataset_name: miscellaneous -description: 'The following are multiple choice questions (with answers) about miscellaneous. - - - Q: Which of these songs was a Top 10 hit for the rock band The Police? - - (A) ''Radio Ga-Ga'' (B) ''Ob-la-di Ob-la-da'' (C) ''De Do Do Do De Da Da Da'' (D) - ''In-a-Gadda-Da-Vida'' - - A: Let''s think step by step. We refer to Wikipedia for help. Radio Ga-Ga is by - Queen. Ob-la-di Ob-la-da is by The Beatles. And In-a-Gadda-Da-Vida is by Iron Butterfly. - Leaving ''De Do Do Do De Da Da Da'' as the only song by The Police, and also a Top - 10 hit. The answer is (C). - - - Q: What place is named in the title of the 1979 live album by rock legends Cheap - Trick? - - (A) Budapest (B) Budokan (C) Bhutan (D) Britain - - A: Let''s think step by step. We refer to Wikipedia for help. Nippon Budokan is - an indoor arena in Tokyo, Japan renowned for hosting rock music concerts including - Cheap Trick in 1978. ''Cheap Trick at Budokan'' became the name of their album. - The answer is (B). - - - Q: What is produced during photosynthesis? - - (A) hydrogen (B) nylon (C) oxygen (D) light - - A: Let''s think step by step. We refer to Wikipedia for help. Photosynthesis is - the process in which green plants use the green pigment chlorophyll to synthesize - foods with water and carbon dioxide. Oxygen is the byproduct of this process. The - answer is (C). - - - Q: Who is the shortest man to ever win an NBA slam dunk competition? - - (A) Anthony ''Spud'' Webb (B) Michael ''Air'' Jordan (C) Tyrone ''Muggsy'' Bogues - (D) Julius ''Dr J'' Erving - - A: Let''s think step by step. We refer to Wikipedia for help. In 1986, Spud Webb, - standing only 5''7" became the shortest NBA player in history to win an official - slam dunk contest. The answer is (A). - - - Q: How many axles does a standard automobile have? - - (A) one (B) two (C) four (D) eight - - A: Let''s think step by step. We refer to Wikipedia for help. Most cars have two - axles to rotate the wheels.. The answer is (B).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_miscellaneous +"dataset_name": "miscellaneous" +"description": "The following are multiple choice questions (with answers) about miscellaneous.\n\ + \nQ: Which of these songs was a Top 10 hit for the rock band The Police?\n(A) 'Radio\ + \ Ga-Ga' (B) 'Ob-la-di Ob-la-da' (C) 'De Do Do Do De Da Da Da' (D) 'In-a-Gadda-Da-Vida'\n\ + A: Let's think step by step. We refer to Wikipedia for help. Radio Ga-Ga is by Queen.\ + \ Ob-la-di Ob-la-da is by The Beatles. And In-a-Gadda-Da-Vida is by Iron Butterfly.\ + \ Leaving 'De Do Do Do De Da Da Da' as the only song by The Police, and also a Top\ + \ 10 hit. The answer is (C).\n\nQ: What place is named in the title of the 1979\ + \ live album by rock legends Cheap Trick?\n(A) Budapest (B) Budokan (C) Bhutan (D)\ + \ Britain\nA: Let's think step by step. We refer to Wikipedia for help. Nippon Budokan\ + \ is an indoor arena in Tokyo, Japan renowned for hosting rock music concerts including\ + \ Cheap Trick in 1978. 'Cheap Trick at Budokan' became the name of their album.\ + \ The answer is (B).\n\nQ: What is produced during photosynthesis?\n(A) hydrogen\ + \ (B) nylon (C) oxygen (D) light\nA: Let's think step by step. We refer to Wikipedia\ + \ for help. Photosynthesis is the process in which green plants use the green pigment\ + \ chlorophyll to synthesize foods with water and carbon dioxide. Oxygen is the byproduct\ + \ of this process. The answer is (C).\n\nQ: Who is the shortest man to ever win\ + \ an NBA slam dunk competition?\n(A) Anthony 'Spud' Webb (B) Michael 'Air' Jordan\ + \ (C) Tyrone 'Muggsy' Bogues (D) Julius 'Dr J' Erving\nA: Let's think step by step.\ + \ We refer to Wikipedia for help. In 1986, Spud Webb, standing only 5'7\" became\ + \ the shortest NBA player in history to win an official slam dunk contest. The answer\ + \ is (A).\n\nQ: How many axles does a standard automobile have?\n(A) one (B) two\ + \ (C) four (D) eight\nA: Let's think step by step. We refer to Wikipedia for help.\ + \ Most cars have two axles to rotate the wheels.. The answer is (B)." +"group": "mmlu_flan_cot_fewshot_other" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_miscellaneous" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_moral_disputes.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_moral_disputes.yaml index fdde3633..e2c30192 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_moral_disputes.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_moral_disputes.yaml @@ -1,72 +1,49 @@ -dataset_name: moral_disputes -description: 'The following are multiple choice questions (with answers) about moral - disputes. - - - Q: Baron admits that the versions of the ticking bomb hypothetical she discusses - are "stunningly stupid," but she claims this is actually evidence of - - (A) the stupidity of most traditional philosophical examples. (B) a general lack - of intelligence among people with advanced degrees. (C) the wrongness of torture. - (D) the readiness on the part of many intelligent people to see torture as the best - solution to deal with terrorism. - - A: Let''s think step by step. We refer to Wikipedia articles on moral disputes for - help. The ticking bomb hypothetical poses a problem where many people will die to - an exploding bomb, if the hypothetical terrorist does not disclose how to defuse - it. Baron sees this hypothetical as silly, but its prevalence does suggest intelligent - people, particularly utilitarians, see torture as justifiable to save the lives - in this scenario. The answer is (D). - - - Q: A fertilized ovum is also known as - - (A) a zygote. (B) an embryo. (C) a viability. (D) a blastocyst. - - A: Let''s think step by step. We refer to Wikipedia articles on moral disputes for - help. Once a single sperm penetrates the layers of an egg to form a new cell, that - cell is called a zygote. The answer is (A). - - - Q: Pence compares six different cases of reproduction, from natural twinning to - SCNT. What conclusion does he draw from this comparison? - - (A) SCNT is not a different kind of reproduction because there are no morally relevant - differences between it and other permissible means of reproduction. (B) Because - there is a low risk of harm for natural twinning, there will be a low risk of harm - for SCNT. (C) both A and B (D) neither A nor B - - A: Let''s think step by step. We refer to Wikipedia articles on moral disputes for - help. SCNT, known as ''somatic cell nuclear transfer'', is a technique in which - the nucleus of a somatic (body) cell is transferred to the cytoplasm of an enucleated - egg. This is used in farm animal cloning. Pence may compare this to other processes - of reproduction, and see little moral separation. The answer is (A). - - - Q: Which of the following is an intrinsic good, according to Singer? - - (A) being in the upper class (B) the ability to learn and solve problems (C) being - more beautiful than most of the population (D) being shorter than average - - A: Let''s think step by step. We refer to Wikipedia articles on moral disputes for - help. Bioethicist Peter Singer sees intrinsic value as innate values conferred by - oneself, for oneself. Innanimate objects can be beautiful, short, or have some valuable - criteria, but capabilities are intrinsically good. The answer is (B). - - - Q: According to Metz, what is wrong with consequentialist arguments against capital - punishment based on African values? - - (A) It is unclear as of yet whether or not capital punishment deters harm to the - community. (B) It is unclear as of yet whether or not capital punishment deters - harm to any individuals. (C) Consequentialism is not supported by African values. - (D) Even though consequentialism is supported by African values, no consequentialist - arguments framed in terms of African values have been offered. - - A: Let''s think step by step. We refer to Wikipedia articles on moral disputes for - help. Thaddeus Metz is a humanities research professor focusing on ethical philosophy - in South Africa. Metz has written the death penalty is unjustified as it treats - individuals as incapable of communal relations. It is unclear that capital punishment - is to the benefit of, or a deterrent of harm to the community. The answer is (A).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_moral_disputes +"dataset_name": "moral_disputes" +"description": "The following are multiple choice questions (with answers) about moral\ + \ disputes.\n\nQ: Baron admits that the versions of the ticking bomb hypothetical\ + \ she discusses are \"stunningly stupid,\" but she claims this is actually evidence\ + \ of\n(A) the stupidity of most traditional philosophical examples. (B) a general\ + \ lack of intelligence among people with advanced degrees. (C) the wrongness of\ + \ torture. (D) the readiness on the part of many intelligent people to see torture\ + \ as the best solution to deal with terrorism.\nA: Let's think step by step. We\ + \ refer to Wikipedia articles on moral disputes for help. The ticking bomb hypothetical\ + \ poses a problem where many people will die to an exploding bomb, if the hypothetical\ + \ terrorist does not disclose how to defuse it. Baron sees this hypothetical as\ + \ silly, but its prevalence does suggest intelligent people, particularly utilitarians,\ + \ see torture as justifiable to save the lives in this scenario. The answer is (D).\n\ + \nQ: A fertilized ovum is also known as\n(A) a zygote. (B) an embryo. (C) a viability.\ + \ (D) a blastocyst.\nA: Let's think step by step. We refer to Wikipedia articles\ + \ on moral disputes for help. Once a single sperm penetrates the layers of an egg\ + \ to form a new cell, that cell is called a zygote. The answer is (A).\n\nQ: Pence\ + \ compares six different cases of reproduction, from natural twinning to SCNT. What\ + \ conclusion does he draw from this comparison?\n(A) SCNT is not a different kind\ + \ of reproduction because there are no morally relevant differences between it and\ + \ other permissible means of reproduction. (B) Because there is a low risk of harm\ + \ for natural twinning, there will be a low risk of harm for SCNT. (C) both A and\ + \ B (D) neither A nor B\nA: Let's think step by step. We refer to Wikipedia articles\ + \ on moral disputes for help. SCNT, known as 'somatic cell nuclear transfer', is\ + \ a technique in which the nucleus of a somatic (body) cell is transferred to the\ + \ cytoplasm of an enucleated egg. This is used in farm animal cloning. Pence may\ + \ compare this to other processes of reproduction, and see little moral separation.\ + \ The answer is (A).\n\nQ: Which of the following is an intrinsic good, according\ + \ to Singer?\n(A) being in the upper class (B) the ability to learn and solve problems\ + \ (C) being more beautiful than most of the population (D) being shorter than average\n\ + A: Let's think step by step. We refer to Wikipedia articles on moral disputes for\ + \ help. Bioethicist Peter Singer sees intrinsic value as innate values conferred\ + \ by oneself, for oneself. Innanimate objects can be beautiful, short, or have some\ + \ valuable criteria, but capabilities are intrinsically good. The answer is (B).\n\ + \nQ: According to Metz, what is wrong with consequentialist arguments against capital\ + \ punishment based on African values?\n(A) It is unclear as of yet whether or not\ + \ capital punishment deters harm to the community. (B) It is unclear as of yet whether\ + \ or not capital punishment deters harm to any individuals. (C) Consequentialism\ + \ is not supported by African values. (D) Even though consequentialism is supported\ + \ by African values, no consequentialist arguments framed in terms of African values\ + \ have been offered.\nA: Let's think step by step. We refer to Wikipedia articles\ + \ on moral disputes for help. Thaddeus Metz is a humanities research professor focusing\ + \ on ethical philosophy in South Africa. Metz has written the death penalty is unjustified\ + \ as it treats individuals as incapable of communal relations. It is unclear that\ + \ capital punishment is to the benefit of, or a deterrent of harm to the community.\ + \ The answer is (A)." +"group": "mmlu_flan_cot_fewshot_humanities" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_moral_disputes" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_moral_scenarios.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_moral_scenarios.yaml index 4c82f5d5..cb2599e2 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_moral_scenarios.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_moral_scenarios.yaml @@ -1,66 +1,44 @@ -dataset_name: moral_scenarios -description: 'The following are multiple choice questions (with answers) about moral - scenarios. - - - 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 took his wallet after he harassed me at the bar. Scenario - 2 | I made love to my newborn baby boy. - - (A) Wrong, Wrong (B) Wrong, Not wrong (C) Not wrong, Wrong (D) Not wrong, Not wrong - - A: 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). - - - 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 asked for a cigarette from the guy outside the store. - Scenario 2 | When the security guard left his post, I pocketed a rare coin. - - (A) Wrong, Wrong (B) Wrong, Not wrong (C) Not wrong, Wrong (D) Not wrong, Not wrong - - A: 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). - - - 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 | 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. - - (A) Wrong, Wrong (B) Wrong, Not wrong (C) Not wrong, Wrong (D) Not wrong, Not wrong - - A: 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). - - - 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 bought an old pick-up truck for work. Scenario 2 | I - looked up at the gorgeous waterfall and threw a rock at it. - - (A) Wrong, Wrong (B) Wrong, Not wrong (C) Not wrong, Wrong (D) Not wrong, Not wrong - - A: 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). - - - 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. - - (A) Wrong, Wrong (B) Wrong, Not wrong (C) Not wrong, Wrong (D) Not wrong, Not wrong - - A: 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).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_moral_scenarios +"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)." +"group": "mmlu_flan_cot_fewshot_humanities" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_moral_scenarios" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_nutrition.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_nutrition.yaml index eae79250..8af8d29a 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_nutrition.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_nutrition.yaml @@ -1,72 +1,48 @@ -dataset_name: nutrition -description: 'The following are multiple choice questions (with answers) about nutrition. - - - Q: What is the first-line drug for patients with type 2 diabetes and obesity, as - of 2020? - - (A) Acarbose (B) Metformin (C) Sulphonylureas (D) Insulin - - A: Let''s think step by step. We refer to Wikipedia articles on nutrition for help. - Metformin (Fortamet, Glumetza, or others) is usually the first medication prescribed - for type 2 diabetes, as well as obesity. It works by lowering glucose production - in the liver and improving the body''s sensitivity to insulin. The answer is (B). - - - Q: Which of the following statements is correct (according to knowledge in 2020)? - - (A) Consumers with phenylketonuria must avoid the consumption of the sweetener aspartame - (B) Consumers with phenylketonuria must avoid the consumption of the sweetener saccharin - (C) Consumers with phenylketonuria must avoid the consumption of the sweetener sucralose - (D) Consumers with phenylketonuria must avoid the consumption of the sweetener acesulfame - K - - A: Let''s think step by step. We refer to Wikipedia articles on nutrition for help. - People with phenylketonuria (PKU) cannot break down the amino acid phenylalanine. - As it builds up in the blood and brain it can lead to brain damage. People with - PKU should avoid foods that are converted to phenylalanine in the body, such as - aspartame. The answer is (A). - - - Q: Which of the following statements about iodine is correct, as of 2020? - - (A) 50% of adults consume iodine at levels below the RNI (B) Dairy products are - a poor source of iodine (C) The iodine content of organic milk is generally lower - that the level in non-organic milk (D) UK dietary reference values recommend an - increase in iodine intake in pregnancy - - A: Let''s think step by step. We refer to Wikipedia articles on nutrition for help. - Organic milk usually has less iodine content than non-organic milk. The answer is - (C). - - - Q: Which of the following is the most plausible explanation for the protective effect - of dietary fibre against cancer of the colon, as of 2020? - - (A) Propionic acid, formed during colonic fibre fermentation inhibits liver fatty - acid synthesis (B) Butyric acid, formed during colonic fibre fermentation stimulates - "silencing" of the SLC5A8 tumour suppressor gene (C) None of these options are correct - (D) Butyric acid, formed during colonic fibre fermentation stimulates anti-oxidant - defences in the colon - - A: Let''s think step by step. We refer to Wikipedia articles on nutrition for help. - Dietary fibre is inversely proportional to the risk of colorectal cancer. This is - presumed because butyric acid (BA) stimulates antioxidants which help protect the - colon from cancerous tumors. The answer is (D). - - - Q: In a cohort study, the risk ratio of developing diabetes was 0.86 when comparing - consumers of tea (the exposed) to those who did not drink tea (the unexposed). Which - one statement is correct (according to knowledge in 2020)? - - (A) The tea drinkers have lower risk of developing diabetes. (B) The tea drinkers - have higher risk of developing diabetes. (C) Based on the information given we cannot - tell if the observed difference in disease risk is the result of chance. (D) The - risk ratio is close to the value one, so there is no difference in disease risk - between the two groups. - - A: Let''s think step by step. We refer to Wikipedia articles on nutrition for help. - The risk ratio is not sufficiently reduced that it could not be explained by random - chance given the studies sample size. The answer is (C).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_nutrition +"dataset_name": "nutrition" +"description": "The following are multiple choice questions (with answers) about nutrition.\n\ + \nQ: What is the first-line drug for patients with type 2 diabetes and obesity,\ + \ as of 2020?\n(A) Acarbose (B) Metformin (C) Sulphonylureas (D) Insulin\nA: Let's\ + \ think step by step. We refer to Wikipedia articles on nutrition for help. Metformin\ + \ (Fortamet, Glumetza, or others) is usually the first medication prescribed for\ + \ type 2 diabetes, as well as obesity. It works by lowering glucose production in\ + \ the liver and improving the body's sensitivity to insulin. The answer is (B).\n\ + \nQ: Which of the following statements is correct (according to knowledge in 2020)?\n\ + (A) Consumers with phenylketonuria must avoid the consumption of the sweetener aspartame\ + \ (B) Consumers with phenylketonuria must avoid the consumption of the sweetener\ + \ saccharin (C) Consumers with phenylketonuria must avoid the consumption of the\ + \ sweetener sucralose (D) Consumers with phenylketonuria must avoid the consumption\ + \ of the sweetener acesulfame K\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on nutrition for help. People with phenylketonuria (PKU) cannot break\ + \ down the amino acid phenylalanine. As it builds up in the blood and brain it can\ + \ lead to brain damage. People with PKU should avoid foods that are converted to\ + \ phenylalanine in the body, such as aspartame. The answer is (A).\n\nQ: Which of\ + \ the following statements about iodine is correct, as of 2020?\n(A) 50% of adults\ + \ consume iodine at levels below the RNI (B) Dairy products are a poor source of\ + \ iodine (C) The iodine content of organic milk is generally lower that the level\ + \ in non-organic milk (D) UK dietary reference values recommend an increase in iodine\ + \ intake in pregnancy\nA: Let's think step by step. We refer to Wikipedia articles\ + \ on nutrition for help. Organic milk usually has less iodine content than non-organic\ + \ milk. The answer is (C).\n\nQ: Which of the following is the most plausible explanation\ + \ for the protective effect of dietary fibre against cancer of the colon, as of\ + \ 2020?\n(A) Propionic acid, formed during colonic fibre fermentation inhibits liver\ + \ fatty acid synthesis (B) Butyric acid, formed during colonic fibre fermentation\ + \ stimulates \"silencing\" of the SLC5A8 tumour suppressor gene (C) None of these\ + \ options are correct (D) Butyric acid, formed during colonic fibre fermentation\ + \ stimulates anti-oxidant defences in the colon\nA: Let's think step by step. We\ + \ refer to Wikipedia articles on nutrition for help. Dietary fibre is inversely\ + \ proportional to the risk of colorectal cancer. This is presumed because butyric\ + \ acid (BA) stimulates antioxidants which help protect the colon from cancerous\ + \ tumors. The answer is (D).\n\nQ: In a cohort study, the risk ratio of developing\ + \ diabetes was 0.86 when comparing consumers of tea (the exposed) to those who did\ + \ not drink tea (the unexposed). Which one statement is correct (according to knowledge\ + \ in 2020)?\n(A) The tea drinkers have lower risk of developing diabetes. (B) The\ + \ tea drinkers have higher risk of developing diabetes. (C) Based on the information\ + \ given we cannot tell if the observed difference in disease risk is the result\ + \ of chance. (D) The risk ratio is close to the value one, so there is no difference\ + \ in disease risk between the two groups.\nA: Let's think step by step. We refer\ + \ to Wikipedia articles on nutrition for help. The risk ratio is not sufficiently\ + \ reduced that it could not be explained by random chance given the studies sample\ + \ size. The answer is (C)." +"group": "mmlu_flan_cot_fewshot_other" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_nutrition" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_philosophy.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_philosophy.yaml index 60ce6c54..5f52bc0c 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_philosophy.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_philosophy.yaml @@ -1,30 +1,30 @@ -dataset_name: philosophy -description: "The following are multiple choice questions (with answers) about philosophy.\n\ +"dataset_name": "philosophy" +"description": "The following are multiple choice questions (with answers) about philosophy.\n\ \nQ: The study of reality in the broadest sense, an inquiry into the elemental nature\ \ of the universe and the things in it, is known as _____.\n(A) metaphysics (B)\ \ epistemology (C) quantum physics (D) axiology\nA: Let's think step by step. We\ \ refer to Wikipedia articles on philosophy for help. Among the options, only metaphysics\ \ studies the nature of reality and existence. The answer is (A).\n\nQ: According\ - \ to Moore\u2019s \u201Cideal utilitarianism,\u201D the right action is the one\ - \ that brings about the greatest amount of:\n(A) pleasure. (B) happiness. (C) good.\ - \ (D) virtue.\nA: Let's think step by step. We refer to Wikipedia articles on philosophy\ - \ for help. Moore's \"ideal utilitarianism\" states that one's actions should maximize\ - \ intrinsic goods. The answer is (C).\n\nQ: Before Tolstoy's Christian conversion,\ - \ what was his perspective on the meaning of life?\n(A) optimist (B) satisfied (C)\ - \ nominally religious (D) pessimist\nA: Let's think step by step. We refer to Wikipedia\ - \ articles on philosophy for help. Before his conversion, Tolstoy feels that life\ - \ was uncertain, which is a pessimist's point of view. The answer is (D).\n\nQ:\ - \ According to d'Holbach, people always act according to _____.\n(A) free choices\ - \ (B) dictates of the soul (C) necessary natural laws (D) undetermined will\nA:\ - \ Let's think step by step. We refer to Wikipedia articles on philosophy for help.\ - \ d'Holbach believes that people act according to necessary laws, and it proves\ - \ nothing about people's free will. The answer is (C).\n\nQ: Psychological egoism\ - \ is:\n(A) an ethical theory about how we ought to behave. (B) a generalization\ - \ concerning the way people tend to behave. (C) a claim about human nature and the\ - \ ways people are capable of behaving. (D) none of the above.\nA: Let's think step\ - \ by step. We refer to Wikipedia articles on philosophy for help. Psychological\ - \ egoism suggests that one behaves based on what makes one feels good, hence it\ - \ is a claim about human nature and how humans are capable of behaving. The answer\ - \ is (C)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_philosophy + \ to Moore’s “ideal utilitarianism,” the right action is the one that brings about\ + \ the greatest amount of:\n(A) pleasure. (B) happiness. (C) good. (D) virtue.\n\ + A: Let's think step by step. We refer to Wikipedia articles on philosophy for help.\ + \ Moore's \"ideal utilitarianism\" states that one's actions should maximize intrinsic\ + \ goods. The answer is (C).\n\nQ: Before Tolstoy's Christian conversion, what was\ + \ his perspective on the meaning of life?\n(A) optimist (B) satisfied (C) nominally\ + \ religious (D) pessimist\nA: Let's think step by step. We refer to Wikipedia articles\ + \ on philosophy for help. Before his conversion, Tolstoy feels that life was uncertain,\ + \ which is a pessimist's point of view. The answer is (D).\n\nQ: According to d'Holbach,\ + \ people always act according to _____.\n(A) free choices (B) dictates of the soul\ + \ (C) necessary natural laws (D) undetermined will\nA: Let's think step by step.\ + \ We refer to Wikipedia articles on philosophy for help. d'Holbach believes that\ + \ people act according to necessary laws, and it proves nothing about people's free\ + \ will. The answer is (C).\n\nQ: Psychological egoism is:\n(A) an ethical theory\ + \ about how we ought to behave. (B) a generalization concerning the way people tend\ + \ to behave. (C) a claim about human nature and the ways people are capable of behaving.\ + \ (D) none of the above.\nA: Let's think step by step. We refer to Wikipedia articles\ + \ on philosophy for help. Psychological egoism suggests that one behaves based on\ + \ what makes one feels good, hence it is a claim about human nature and how humans\ + \ are capable of behaving. The answer is (C)." +"group": "mmlu_flan_cot_fewshot_humanities" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_philosophy" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_prehistory.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_prehistory.yaml index e1c8dcc6..dc350126 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_prehistory.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_prehistory.yaml @@ -1,67 +1,42 @@ -dataset_name: prehistory -description: 'The following are multiple choice questions (with answers) about prehistory. - - - Q: What is the approximate mean cranial capacity of Homo erectus? - - (A) under 650 cc (B) about 800 cc (C) just under 1000 cc (D) 1200 cc - - A: Let''s think step by step. We refer to Wikipedia articles on prehistory for help. - The average cranium capacity of Homo erectus is less than 1000 cubic cm. The answer - is (C). - - - Q: According to Timothy Pauketat, the evidence for social stratification and political - power at Cahokia suggests: - - (A) a center of Mississippian civilization with conditions similar to the rise of - early states. (B) the limitations of authority in a Native American society of egalitarian - foragers. (C) a simple chiefdom or perhaps a complex chiefdom had evolved by A.D. - 1500. (D) a center of Mississippian civilization with conditions similar to societies - on the Northwest Coast of North America. - - A: Let''s think step by step. We refer to Wikipedia articles on prehistory for help. - Timothy Pauketat is known for his research on Cahokia, the center of the Mississippian - culture, where he found similar conditions to the rise of early states. The answer - is (A). - - - Q: Recent research on hominid species dating from the Middle Pliocene indicates - there was (as of 2020): - - (A) a great amount of species diversity, or a single species that exhibited a lot - of diversity. (B) very little species diversity during this period and very few - hominids. (C) decreased species diversity due to a prolonged ice age followed by - a severe drought. (D) decreased species diversity but increased numbers of hammerstones - and flakes, indicating stone tool manufacture. - - A: Let''s think step by step. We refer to Wikipedia articles on prehistory for help. - Recent research has recognized multiple hominid species from the Middle Pliocene, - meaning that there is a great amount of species diversity or diversity in a single - species. The answer is (A). - - - Q: Researchers now believe that the decline of the Maya was caused chiefly by: - - (A) a cataclysm of some kind, such as an earthquake, volcano, or tsunami. (B) ecological - degradation resulting from slash-and-burn farming techniques. (C) endless wars between - neighboring Mayan city-states. (D) practices of interbreeding that led to a steep - rise in congenital disorders. - - A: Let''s think step by step. We refer to Wikipedia articles on prehistory for help. - Researchers believe that the Maya collapse was mainly caused by over-exploitation - of natural resources like the slash-and-burn farming techniques. The answer is (B). - - - Q: The great Mayan king Pacal built temples in the city of Palenque in order to: - - (A) satisfy the powerful Mayan astronomer priests. (B) display his generosity to - the common people, since they were allowed to live in the temples. (C) frighten - away enemies, in particular the Spaniards. (D) legitimize his kingship, since his - father was not royal. - - A: Let''s think step by step. We refer to Wikipedia articles on prehistory for help. - Pacal built the temples as the funerary monument to legitimize his kingship. The - answer is (D).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_prehistory +"dataset_name": "prehistory" +"description": "The following are multiple choice questions (with answers) about prehistory.\n\ + \nQ: What is the approximate mean cranial capacity of Homo erectus?\n(A) under 650\ + \ cc (B) about 800 cc (C) just under 1000 cc (D) 1200 cc\nA: Let's think step by\ + \ step. We refer to Wikipedia articles on prehistory for help. The average cranium\ + \ capacity of Homo erectus is less than 1000 cubic cm. The answer is (C).\n\nQ:\ + \ According to Timothy Pauketat, the evidence for social stratification and political\ + \ power at Cahokia suggests:\n(A) a center of Mississippian civilization with conditions\ + \ similar to the rise of early states. (B) the limitations of authority in a Native\ + \ American society of egalitarian foragers. (C) a simple chiefdom or perhaps a complex\ + \ chiefdom had evolved by A.D. 1500. (D) a center of Mississippian civilization\ + \ with conditions similar to societies on the Northwest Coast of North America.\n\ + A: Let's think step by step. We refer to Wikipedia articles on prehistory for help.\ + \ Timothy Pauketat is known for his research on Cahokia, the center of the Mississippian\ + \ culture, where he found similar conditions to the rise of early states. The answer\ + \ is (A).\n\nQ: Recent research on hominid species dating from the Middle Pliocene\ + \ indicates there was (as of 2020):\n(A) a great amount of species diversity, or\ + \ a single species that exhibited a lot of diversity. (B) very little species diversity\ + \ during this period and very few hominids. (C) decreased species diversity due\ + \ to a prolonged ice age followed by a severe drought. (D) decreased species diversity\ + \ but increased numbers of hammerstones and flakes, indicating stone tool manufacture.\n\ + A: Let's think step by step. We refer to Wikipedia articles on prehistory for help.\ + \ Recent research has recognized multiple hominid species from the Middle Pliocene,\ + \ meaning that there is a great amount of species diversity or diversity in a single\ + \ species. The answer is (A).\n\nQ: Researchers now believe that the decline of\ + \ the Maya was caused chiefly by:\n(A) a cataclysm of some kind, such as an earthquake,\ + \ volcano, or tsunami. (B) ecological degradation resulting from slash-and-burn\ + \ farming techniques. (C) endless wars between neighboring Mayan city-states. (D)\ + \ practices of interbreeding that led to a steep rise in congenital disorders.\n\ + A: Let's think step by step. We refer to Wikipedia articles on prehistory for help.\ + \ Researchers believe that the Maya collapse was mainly caused by over-exploitation\ + \ of natural resources like the slash-and-burn farming techniques. The answer is\ + \ (B).\n\nQ: The great Mayan king Pacal built temples in the city of Palenque in\ + \ order to:\n(A) satisfy the powerful Mayan astronomer priests. (B) display his\ + \ generosity to the common people, since they were allowed to live in the temples.\ + \ (C) frighten away enemies, in particular the Spaniards. (D) legitimize his kingship,\ + \ since his father was not royal.\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on prehistory for help. Pacal built the temples as the funerary monument\ + \ to legitimize his kingship. The answer is (D)." +"group": "mmlu_flan_cot_fewshot_humanities" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_prehistory" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_professional_accounting.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_professional_accounting.yaml index c4957a1f..57538d21 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_professional_accounting.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_professional_accounting.yaml @@ -1,7 +1,7 @@ -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\u2019\ - s subledger. Which of the following management assertions is supported by this test?\n\ +"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\ @@ -43,5 +43,6 @@ description: "The following are multiple choice questions (with answers) about p \ 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)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_professional_accounting +"group": "mmlu_flan_cot_fewshot_other" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_professional_accounting" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_professional_law.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_professional_law.yaml index f3a957db..82d7a960 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_professional_law.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_professional_law.yaml @@ -1,5 +1,5 @@ -dataset_name: professional_law -description: "The following are multiple choice questions (with answers) about professional\ +"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\ @@ -101,5 +101,6 @@ description: "The following are multiple choice questions (with answers) about p \ 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)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_professional_law +"group": "mmlu_flan_cot_fewshot_humanities" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_professional_law" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_professional_medicine.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_professional_medicine.yaml index 89b890f8..2263ae45 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_professional_medicine.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_professional_medicine.yaml @@ -1,18 +1,18 @@ -dataset_name: professional_medicine -description: "The following are multiple choice questions (with answers) about professional\ +"dataset_name": "professional_medicine" +"description": "The following are multiple choice questions (with answers) about professional\ \ medicine.\n\nQ: A 22-year-old male marathon runner presents to the office with\ \ the complaint of right-sided rib pain when he runs long distances. Physical examination\ - \ reveals normal heart and lung findings and an exhalation dysfunction at ribs\_\ - 4-5 on the right. Which of the following muscles or muscle groups will be most useful\ + \ reveals normal heart and lung findings and an exhalation dysfunction at ribs 4-5\ + \ on the right. Which of the following muscles or muscle groups will be most useful\ \ in correcting this dysfunction utilizing a direct method?\n(A) anterior scalene\ \ (B) latissimus dorsi (C) pectoralis minor (D) quadratus lumborum\nA: Let's think\ \ step by step. We refer to Wikipedia articles on medicine for help. Among the options,\ \ only pectoralis minor muscle origins from the outer surfaces of the 3rd to 5th\ \ ribs. The answer is (C).\n\nQ: A 36-year-old male presents to the office with\ - \ a\_3-week\_history of low back pain. He denies any recent trauma but says that\ - \ he climbs in and out of his truck numerous times a day for his job. Examination\ - \ of the patient in the prone position reveals a deep sacral sulcus on the left,\ - \ a posterior inferior lateral angle on the right, and a lumbosacral junction that\ + \ a 3-week history of low back pain. He denies any recent trauma but says that he\ + \ climbs in and out of his truck numerous times a day for his job. Examination of\ + \ the patient in the prone position reveals a deep sacral sulcus on the left, a\ + \ posterior inferior lateral angle on the right, and a lumbosacral junction that\ \ springs freely on compression. The most likely diagnosis is\n(A) left-on-left\ \ sacral torsion (B) left-on-right sacral torsion (C) right unilateral sacral flexion\ \ (D) right-on-right sacral torsion\nA: Let's think step by step. We refer to Wikipedia\ @@ -23,9 +23,9 @@ description: "The following are multiple choice questions (with answers) about p \ nonproductive cough, runny nose, and frontal headache. He says the headache is\ \ worse in the morning and ibuprofen does provide some relief. He has not had shortness\ \ of breath. Medical history is unremarkable. He takes no medications other than\ - \ the ibuprofen for pain. Vital signs are temperature 37.4\xB0C (99.4\xB0F), pulse\ - \ 88/min, respirations 18/min, and blood pressure 120/84 mm Hg. Examination of the\ - \ nares shows erythematous mucous membranes. Examination of the throat shows erythema\ + \ the ibuprofen for pain. Vital signs are temperature 37.4°C (99.4°F), pulse 88/min,\ + \ respirations 18/min, and blood pressure 120/84 mm Hg. Examination of the nares\ + \ shows erythematous mucous membranes. Examination of the throat shows erythema\ \ and follicular lymphoid hyperplasia on the posterior oropharynx. There is no palpable\ \ cervical adenopathy. Lungs are clear to auscultation. Which of the following is\ \ the most likely cause of this patient's symptoms?\n(A) Allergic rhinitis (B) Epstein-Barr\ @@ -57,13 +57,14 @@ description: "The following are multiple choice questions (with answers) about p \ A follow-up visit in the office 2 weeks ago disclosed elevated urinary normetanephrine\ \ and metanephrine and plasma aldosterone concentrations. The patient was referred\ \ to a surgeon, who recommended the adrenalectomy. Today, vital signs are temperature\ - \ 36.6\xB0C (97.9\xB0F), pulse 100/min, respirations 14/min, and blood pressure\ - \ 170/95 mm Hg. Physical examination discloses no significant findings. Initial\ - \ preoperative preparation should include treatment with which of the following?\n\ - (A) Labetalol (B) A loading dose of potassium chloride (C) Nifedipine (D) Phenoxybenzamine\n\ + \ 36.6°C (97.9°F), pulse 100/min, respirations 14/min, and blood pressure 170/95\ + \ mm Hg. Physical examination discloses no significant findings. Initial preoperative\ + \ preparation should include treatment with which of the following?\n(A) Labetalol\ + \ (B) A loading dose of potassium chloride (C) Nifedipine (D) Phenoxybenzamine\n\ A: Let's think step by step. We refer to Wikipedia articles on medicine for help.\ \ The symptoms and the adrenal mass suggested pheochromocytoma, and the blood pressure\ \ indicates hypertension. Phenoxybenzamine is used to treat hypertension caused\ \ by pheochromocytoma. The answer is (D)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_professional_medicine +"group": "mmlu_flan_cot_fewshot_other" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_professional_medicine" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_professional_psychology.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_professional_psychology.yaml index e1e5206d..42a9a42e 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_professional_psychology.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_professional_psychology.yaml @@ -1,5 +1,5 @@ -dataset_name: professional_psychology -description: "The following are multiple choice questions (with answers) about professional\ +"dataset_name": "professional_psychology" +"description": "The following are multiple choice questions (with answers) about professional\ \ psychology.\n\nQ: In the construction of a multiple regression equation for purposes\ \ of prediction, the optimal combination of measures is one in which the predictors\n\ (A) are uncorrelated with each other but are moderately correlated with the criterion\ @@ -18,30 +18,31 @@ description: "The following are multiple choice questions (with answers) about p \ step by step. We refer to Wikipedia articles on psychology for help. The definition\ \ of mode is the most frequently occurring number. The answer is (D).\n\nQ: Carl\ \ Jung believed that a client's transference:\n(A) is a fantasy that distracts the\ - \ client from reality. (B) represents \u201Cmixed feelings\u201D toward the therapist.\ - \ (C) \"is a form of \"\"acting out.\"\"\" (D) reflects the client\u2019s personal\ - \ and collective unconscious.\nA: Let's think step by step. We refer to Wikipedia\ - \ articles on psychology for help. Transference is a phenomenon that a person's\ - \ feelings are unconsciously redirected, so it reflects the client's personal and\ - \ collective unconscious. The answer is (D).\n\nQ: In terms of Hofstede\u2019s (1980)\ - \ five cultural dimensions, the United States scores at the top of the scale on:\n\ - (A) individualism. (B) individualism and power distance. (C) power distance and\ - \ masculinity. (D) uncertainty avoidance.\nA: Let's think step by step. We refer\ - \ to Wikipedia articles on psychology for help. US scores highest on individualism\ - \ among the five cultural dimensions. The answer is (A).\n\nQ: One of your therapy\ - \ clients asks your advice about a good weight- reduction program. You have investigated\ - \ the programs in the community and are enrolled in the one you consider the best.\ - \ This program offers a $50 bonus to its patrons for each new person they bring\ - \ into the program. Under these circumstances, your most appropriate response would\ - \ be to\n(A) tell your client the pros and cons of each program you know about except\ - \ for the one in which you are enrolled (B) recommend to your client the program\ - \ in which you are enrolled and explain the $50 bonus you will receive (C) recommend\ - \ to your client the program in which you are enrolled and offer to have the $50\ - \ bonus credited to your client's account in the program (D) tell your client the\ - \ pros and cons of each program you know about, but do not claim the $50 bonus if\ - \ your client enrolls in your program\nA: Let's think step by step. We refer to\ - \ Wikipedia articles on psychology for help. Based on the circumstances, you should\ - \ tell your client about the pros and cons of each program, but it would be inappropriate\ - \ to receive the bonus, so you should not claim the $50 bonus. The answer is (D)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_professional_psychology + \ client from reality. (B) represents “mixed feelings” toward the therapist. (C)\ + \ \"is a form of \"\"acting out.\"\"\" (D) reflects the client’s personal and collective\ + \ unconscious.\nA: Let's think step by step. We refer to Wikipedia articles on psychology\ + \ for help. Transference is a phenomenon that a person's feelings are unconsciously\ + \ redirected, so it reflects the client's personal and collective unconscious. The\ + \ answer is (D).\n\nQ: In terms of Hofstede’s (1980) five cultural dimensions, the\ + \ United States scores at the top of the scale on:\n(A) individualism. (B) individualism\ + \ and power distance. (C) power distance and masculinity. (D) uncertainty avoidance.\n\ + A: Let's think step by step. We refer to Wikipedia articles on psychology for help.\ + \ US scores highest on individualism among the five cultural dimensions. The answer\ + \ is (A).\n\nQ: One of your therapy clients asks your advice about a good weight-\ + \ reduction program. You have investigated the programs in the community and are\ + \ enrolled in the one you consider the best. This program offers a $50 bonus to\ + \ its patrons for each new person they bring into the program. Under these circumstances,\ + \ your most appropriate response would be to\n(A) tell your client the pros and\ + \ cons of each program you know about except for the one in which you are enrolled\ + \ (B) recommend to your client the program in which you are enrolled and explain\ + \ the $50 bonus you will receive (C) recommend to your client the program in which\ + \ you are enrolled and offer to have the $50 bonus credited to your client's account\ + \ in the program (D) tell your client the pros and cons of each program you know\ + \ about, but do not claim the $50 bonus if your client enrolls in your program\n\ + A: Let's think step by step. We refer to Wikipedia articles on psychology for help.\ + \ Based on the circumstances, you should tell your client about the pros and cons\ + \ of each program, but it would be inappropriate to receive the bonus, so you should\ + \ not claim the $50 bonus. The answer is (D)." +"group": "mmlu_flan_cot_fewshot_social_sciences" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_professional_psychology" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_public_relations.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_public_relations.yaml index be4edf98..87e32dcc 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_public_relations.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_public_relations.yaml @@ -1,65 +1,39 @@ -dataset_name: public_relations -description: 'The following are multiple choice questions (with answers) about public - relations. - - - Q: Earth Hour was a campaign launched by which organization? - - (A) Greenpeace (B) The UN (C) Oxfam (D) World Wildlife Fund - - A: 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). - - - Q: In issues management, what is the most proactive approach to addressing negative - or misleading information posted online about your organization? - - (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. - - A: 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). - - - Q: At which stage in the planning process would a situation analysis be carried - out? - - (A) Defining the program (B) Planning the program (C) Taking action and implementing - ideas (D) Evaluation of the program - - A: 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). - - - Q: Which of these statements is true of the Vatican in 2010 at the time of the accusations - of child abuse cover-ups? - - (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. - - A: 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). - - - Q: What should a public relations media practitioner do if she does not know the - answer to a reporter''s question? - - (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. - - A: 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).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_public_relations +"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)." +"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_eval/tasks/mmlu/flan_cot_fewshot/mmlu_security_studies.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_security_studies.yaml index b08c321a..afc3199d 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_security_studies.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_security_studies.yaml @@ -1,5 +1,5 @@ -dataset_name: security_studies -description: "The following are multiple choice questions (with answers) about security\ +"dataset_name": "security_studies" +"description": "The following are multiple choice questions (with answers) about security\ \ studies.\n\nQ: What are the frameworks of analysis within which terrorism has\ \ been considered (as of 2020)?\n(A) Competition between larger nations has resulted\ \ in some countries actively supporting terrorist groups to undermine the strength\ @@ -81,5 +81,6 @@ description: "The following are multiple choice questions (with answers) about s \ for negotiation or concession.\nA: Let's think step by step. We refer to Wikipedia\ \ articles on security studies for help. Coercive diplomacy uses the threat of force\ \ to induce the opponent to comply with demands. The answer is (B)." -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_security_studies +"group": "mmlu_flan_cot_fewshot_social_sciences" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_security_studies" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_sociology.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_sociology.yaml index 38974b00..27de15a5 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_sociology.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_sociology.yaml @@ -1,67 +1,43 @@ -dataset_name: sociology -description: 'The following are multiple choice questions (with answers) about sociology. - - - Q: Which of the following is not a problem associated with official statistics on - strike action? - - (A) most strikes go unnoticed by employers and the mass media (B) not all industrial - disputes will be reported by the employer (C) the definition of strikes excludes - those that involve fewer than ten workers or last less than one day (D) it is hard - to compare strikes that were measured in different ways - - A: Let''s think step by step. We refer to Wikipedia articles on sociology for help. - Official statistics on strike action can be problematic because not all industrial - disputes will be reported by employers, the definition of strikes excludes those - that involves fewer than ten workers or last less than one day, and it is hard to - compare strikes that were measured in different ways. Thus, (A) is not a problem - associated with official statistics on strike action. The answer is (A). - - - Q: What does Berger (1963) describe as a metaphor for social reality? - - (A) a fairground ride (B) a circus (C) a puppet theatre (D) a ballet - - A: Let''s think step by step. We refer to Wikipedia articles on sociology for help. - Berger describes social reality using the metaphor of a puppet theatre. The answer - is (C). - - - Q: The term ''hegemony'' refers to: - - (A) the tendency for the working class not to realize their own interests (B) a - dominant ideology that legitimates economic, political and cultural power (C) a - form of dual consciousness based on ideology and everyday experiences (D) a mode - of payment given for outstanding topiary - - A: Let''s think step by step. We refer to Wikipedia articles on sociology for help. - Hegemony refers to a dominant ideology that legitimates economic, policital, and - cultural power. The answer is (B). - - - Q: The shift from ''civil religion'' to ''common religion'' means that: - - (A) the increasing bureaucracy of the state has made religion only a marginal part - of our lives (B) despite the weakening of traditional authority, our everyday lives - and ''common sense'' remain shaped by religious beliefs and values (C) religious - participation in collective worship may have declined, but people still practise - their faiths in private (D) people are much more likely to discuss their religious - beliefs in public, informal settings - - A: Let''s think step by step. We refer to Wikipedia articles on sociology for help. - The shift from civil religion to common religion means that despite the weakening - of traditional authority, our everyday lives and common sense remain shaped by religious - beliefs and values. The answer is (B). - - - Q: Which of the following did the post-war welfare state of 1948 not aim to provide: - - (A) free health care and education for all (B) a minimum wage (C) full employment - (D) universal welfare - - A: Let''s think step by step. We refer to Wikipedia articles on sociology for help. - The post-war welfare state of 1948 aimed to provide free healthcare and education, - full employment, and universal welfare. But it did not aim to provide a minimum - wage. The answer is (B).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_sociology +"dataset_name": "sociology" +"description": "The following are multiple choice questions (with answers) about sociology.\n\ + \nQ: Which of the following is not a problem associated with official statistics\ + \ on strike action?\n(A) most strikes go unnoticed by employers and the mass media\ + \ (B) not all industrial disputes will be reported by the employer (C) the definition\ + \ of strikes excludes those that involve fewer than ten workers or last less than\ + \ one day (D) it is hard to compare strikes that were measured in different ways\n\ + A: Let's think step by step. We refer to Wikipedia articles on sociology for help.\ + \ Official statistics on strike action can be problematic because not all industrial\ + \ disputes will be reported by employers, the definition of strikes excludes those\ + \ that involves fewer than ten workers or last less than one day, and it is hard\ + \ to compare strikes that were measured in different ways. Thus, (A) is not a problem\ + \ associated with official statistics on strike action. The answer is (A).\n\nQ:\ + \ What does Berger (1963) describe as a metaphor for social reality?\n(A) a fairground\ + \ ride (B) a circus (C) a puppet theatre (D) a ballet\nA: Let's think step by step.\ + \ We refer to Wikipedia articles on sociology for help. Berger describes social\ + \ reality using the metaphor of a puppet theatre. The answer is (C).\n\nQ: The term\ + \ 'hegemony' refers to:\n(A) the tendency for the working class not to realize their\ + \ own interests (B) a dominant ideology that legitimates economic, political and\ + \ cultural power (C) a form of dual consciousness based on ideology and everyday\ + \ experiences (D) a mode of payment given for outstanding topiary\nA: Let's think\ + \ step by step. We refer to Wikipedia articles on sociology for help. Hegemony refers\ + \ to a dominant ideology that legitimates economic, policital, and cultural power.\ + \ The answer is (B).\n\nQ: The shift from 'civil religion' to 'common religion'\ + \ means that:\n(A) the increasing bureaucracy of the state has made religion only\ + \ a marginal part of our lives (B) despite the weakening of traditional authority,\ + \ our everyday lives and 'common sense' remain shaped by religious beliefs and values\ + \ (C) religious participation in collective worship may have declined, but people\ + \ still practise their faiths in private (D) people are much more likely to discuss\ + \ their religious beliefs in public, informal settings\nA: Let's think step by step.\ + \ We refer to Wikipedia articles on sociology for help. The shift from civil religion\ + \ to common religion means that despite the weakening of traditional authority,\ + \ our everyday lives and common sense remain shaped by religious beliefs and values.\ + \ The answer is (B).\n\nQ: Which of the following did the post-war welfare state\ + \ of 1948 not aim to provide:\n(A) free health care and education for all (B) a\ + \ minimum wage (C) full employment (D) universal welfare\nA: Let's think step by\ + \ step. We refer to Wikipedia articles on sociology for help. The post-war welfare\ + \ state of 1948 aimed to provide free healthcare and education, full employment,\ + \ and universal welfare. But it did not aim to provide a minimum wage. The answer\ + \ is (B)." +"group": "mmlu_flan_cot_fewshot_social_sciences" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_sociology" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_us_foreign_policy.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_us_foreign_policy.yaml index 6340aee3..fb996730 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_us_foreign_policy.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_us_foreign_policy.yaml @@ -1,66 +1,40 @@ -dataset_name: us_foreign_policy -description: 'The following are multiple choice questions (with answers) about us - foreign policy. - - - Q: How did Donald Trump attack globalization in the 2016 campaign? - - (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 - - A: 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). - - - Q: How did NSC-68 change U.S. strategy? - - (A) It globalized containment. (B) It militarized containment. (C) It called for - the development of the hydrogen bomb. (D) All of the above - - A: 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). - - - Q: How do Defensive Realism and Offensive Realism differ in their explanation of - state behaviour? - - (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 - - A: 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). - - - Q: The realm of policy decisions concerned primarily with relations between the - United States and the rest of the world is known as - - (A) terrorism policy. (B) economic policy. (C) foreign policy. (D) international - policy. - - A: 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). - - - Q: How did the 2008 financial crisis affect America''s international reputation? - - (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 - - A: 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).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_us_foreign_policy +"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)." +"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_eval/tasks/mmlu/flan_cot_fewshot/mmlu_virology.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_virology.yaml index 5bbd7a2c..71f8f8bf 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_virology.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_virology.yaml @@ -1,55 +1,31 @@ -dataset_name: virology -description: 'The following are multiple choice questions (with answers) about virology. - - - Q: The median survival time to AIDS and death was established by following: - - (A) Seroprevalent HIV-infected individuals (B) Seronegatives (C) Seroconverters - (D) High-risk seronegatives - - A: Let''s think step by step. We refer to Wikipedia articles on virology for help. - The median survival time to AIDS and death was established as a result of the development - of seroconverters. The answer is (C). - - - Q: Which of the following is a morphological characteristic of the paramyxoviruses. - - (A) Fragile viruses often visualised with RNA spewing from the inside (B) Elongate - viruses (C) Icosahedral viruses with envelope (D) Very large viruses - - A: Let''s think step by step. We refer to Wikipedia articles on virology for help. - Paramyxoviruses are fragile viruses often visualised with RNA spewing from the inside. - The answer is (A). - - - Q: The most important goal of a behavioral intervention is: - - (A) Change in behavior (B) Comprehensive coverage (C) Effective use of behavioral - theory (D) Sustained behavior change - - A: Let''s think step by step. We refer to Wikipedia articles on virology for help. - The prim goal of a behavioral intervention is to cause sustained behavior change. - The answer is (D). - - - Q: A key factor facilitating the application of nested case-control studies from - the MACS was: - - (A) Data collection (B) Establishment of a repository of biologic specimens (C) - Participant interest (D) Administration of the questionnaire by staff - - A: Let''s think step by step. We refer to Wikipedia articles on virology for help. - The Multicenter AIDS Cohort Study''s use of nested case-control studies was facilitated - by the establishment of a repository of biologic specimens. The answer is (B). - - - Q: Why are parvoviruses a highly impactful parasite? - - (A) Because they have no nucleic acid (B) They require a helper virus (C) Only replicate - in dividing cells (D) Can integrate into host chromosomes - - A: Let''s think step by step. We refer to Wikipedia articles on virology for help. - Paroviruses are highly impactful because they do not have nucleic acid. The answer - is (A).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_virology +"dataset_name": "virology" +"description": "The following are multiple choice questions (with answers) about virology.\n\ + \nQ: The median survival time to AIDS and death was established by following:\n\ + (A) Seroprevalent HIV-infected individuals (B) Seronegatives (C) Seroconverters\ + \ (D) High-risk seronegatives\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on virology for help. The median survival time to AIDS and death was\ + \ established as a result of the development of seroconverters. The answer is (C).\n\ + \nQ: Which of the following is a morphological characteristic of the paramyxoviruses.\n\ + (A) Fragile viruses often visualised with RNA spewing from the inside (B) Elongate\ + \ viruses (C) Icosahedral viruses with envelope (D) Very large viruses\nA: Let's\ + \ think step by step. We refer to Wikipedia articles on virology for help. Paramyxoviruses\ + \ are fragile viruses often visualised with RNA spewing from the inside. The answer\ + \ is (A).\n\nQ: The most important goal of a behavioral intervention is:\n(A) Change\ + \ in behavior (B) Comprehensive coverage (C) Effective use of behavioral theory\ + \ (D) Sustained behavior change\nA: Let's think step by step. We refer to Wikipedia\ + \ articles on virology for help. The prim goal of a behavioral intervention is to\ + \ cause sustained behavior change. The answer is (D).\n\nQ: A key factor facilitating\ + \ the application of nested case-control studies from the MACS was:\n(A) Data collection\ + \ (B) Establishment of a repository of biologic specimens (C) Participant interest\ + \ (D) Administration of the questionnaire by staff\nA: Let's think step by step.\ + \ We refer to Wikipedia articles on virology for help. The Multicenter AIDS Cohort\ + \ Study's use of nested case-control studies was facilitated by the establishment\ + \ of a repository of biologic specimens. The answer is (B).\n\nQ: Why are parvoviruses\ + \ a highly impactful parasite?\n(A) Because they have no nucleic acid (B) They require\ + \ a helper virus (C) Only replicate in dividing cells (D) Can integrate into host\ + \ chromosomes\nA: Let's think step by step. We refer to Wikipedia articles on virology\ + \ for help. Paroviruses are highly impactful because they do not have nucleic acid.\ + \ The answer is (A)." +"group": "mmlu_flan_cot_fewshot_other" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_virology" diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_world_religions.yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_world_religions.yaml index c01adcdb..13390322 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_world_religions.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_world_religions.yaml @@ -1,53 +1,27 @@ -dataset_name: world_religions -description: 'The following are multiple choice questions (with answers) about world - religions. - - - Q: How can the Upanishads be characterized? - - (A) Ritual texts (B) Philosophical texts (C) Hymns (D) Origin stories - - A: 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). - - - Q: What is the Second Gem in Buddhism? - - (A) The Dharma (B) The Sangha (C) The Buddha (D) The Bodhisattva - - A: 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). - - - Q: Which Japanese government promoted a kind of national cult based on the emperor - and his associations with kami? - - (A) Honen (B) Tanaka (C) Tokugawa (D) Meiji - - A: 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). - - - Q: In which dynasty was the "Mandate of Heaven" developed to legitimatize the new - rulers? - - (A) Shang (B) Zhou (C) Han (D) Xia - - A: 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). - - - Q: What is the sign of the covenant for Jewish males? - - (A) The rainbow (B) Circumcision (C) A son (D) Bar mitzvah - - A: 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).' -include: _mmlu_flan_cot_fewshot_template_yaml -task: mmlu_flan_cot_fewshot_world_religions +"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)." +"group": "mmlu_flan_cot_fewshot_humanities" +"include": "_mmlu_flan_cot_fewshot_template_yaml" +"task": "mmlu_flan_cot_fewshot_world_religions" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/_mmlu.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/_mmlu.yaml new file mode 100644 index 00000000..390425c7 --- /dev/null +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/_mmlu.yaml @@ -0,0 +1,6 @@ +group: mmlu_flan_cot_zeroshot +task: + - mmlu_flan_cot_zeroshot_stem + - mmlu_flan_cot_zeroshot_other + - mmlu_flan_cot_zeroshot_social_sciences + - mmlu_flan_cot_zeroshot_humanities diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/_mmlu_flan_generative_template_yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/_mmlu_flan_cot_zeroshot_template_yaml similarity index 100% rename from lm_eval/tasks/mmlu/flan_cot_zeroshot/_mmlu_flan_generative_template_yaml rename to lm_eval/tasks/mmlu/flan_cot_zeroshot/_mmlu_flan_cot_zeroshot_template_yaml diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_abstract_algebra.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_abstract_algebra.yaml index 17bccf1f..8609f626 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_abstract_algebra.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_abstract_algebra.yaml @@ -1,8 +1,6 @@ -dataset_name: abstract_algebra -description: 'The following are multiple choice questions (with answers) about abstract - algebra. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_abstract_algebra +"dataset_name": "abstract_algebra" +"description": "The following are multiple choice questions (with answers) about abstract\ + \ algebra.\n\n" +"group": "mmlu_flan_cot_zeroshot_stem" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_abstract_algebra" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_anatomy.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_anatomy.yaml index 6e14fbc6..2923349d 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_anatomy.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_anatomy.yaml @@ -1,7 +1,6 @@ -dataset_name: anatomy -description: 'The following are multiple choice questions (with answers) about anatomy. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_anatomy +"dataset_name": "anatomy" +"description": "The following are multiple choice questions (with answers) about anatomy.\n\ + \n" +"group": "mmlu_flan_cot_zeroshot_stem" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_anatomy" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_astronomy.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_astronomy.yaml index b1ca9f52..e5ffd8ff 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_astronomy.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_astronomy.yaml @@ -1,7 +1,6 @@ -dataset_name: astronomy -description: 'The following are multiple choice questions (with answers) about astronomy. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_astronomy +"dataset_name": "astronomy" +"description": "The following are multiple choice questions (with answers) about astronomy.\n\ + \n" +"group": "mmlu_flan_cot_zeroshot_stem" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_astronomy" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_business_ethics.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_business_ethics.yaml index 53f3a78f..a6428571 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_business_ethics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_business_ethics.yaml @@ -1,8 +1,6 @@ -dataset_name: business_ethics -description: 'The following are multiple choice questions (with answers) about business - ethics. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_business_ethics +"dataset_name": "business_ethics" +"description": "The following are multiple choice questions (with answers) about business\ + \ ethics.\n\n" +"group": "mmlu_flan_cot_zeroshot_other" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_business_ethics" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_clinical_knowledge.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_clinical_knowledge.yaml index f858d671..e3655230 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_clinical_knowledge.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_clinical_knowledge.yaml @@ -1,8 +1,6 @@ -dataset_name: clinical_knowledge -description: 'The following are multiple choice questions (with answers) about clinical - knowledge. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_clinical_knowledge +"dataset_name": "clinical_knowledge" +"description": "The following are multiple choice questions (with answers) about clinical\ + \ knowledge.\n\n" +"group": "mmlu_flan_cot_zeroshot_other" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_clinical_knowledge" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_biology.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_biology.yaml index 93471b6a..736bb6de 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_biology.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_biology.yaml @@ -1,8 +1,6 @@ -dataset_name: college_biology -description: 'The following are multiple choice questions (with answers) about college - biology. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_college_biology +"dataset_name": "college_biology" +"description": "The following are multiple choice questions (with answers) about college\ + \ biology.\n\n" +"group": "mmlu_flan_cot_zeroshot_stem" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_college_biology" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_chemistry.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_chemistry.yaml index 5f619baa..7b719966 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_chemistry.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_chemistry.yaml @@ -1,8 +1,6 @@ -dataset_name: college_chemistry -description: 'The following are multiple choice questions (with answers) about college - chemistry. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_college_chemistry +"dataset_name": "college_chemistry" +"description": "The following are multiple choice questions (with answers) about college\ + \ chemistry.\n\n" +"group": "mmlu_flan_cot_zeroshot_stem" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_college_chemistry" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_computer_science.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_computer_science.yaml index 865b91bf..185f2a66 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_computer_science.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_computer_science.yaml @@ -1,8 +1,6 @@ -dataset_name: college_computer_science -description: 'The following are multiple choice questions (with answers) about college - computer science. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_college_computer_science +"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_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_mathematics.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_mathematics.yaml index 1f8a89fa..210eb127 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_mathematics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_mathematics.yaml @@ -1,8 +1,6 @@ -dataset_name: college_mathematics -description: 'The following are multiple choice questions (with answers) about college - mathematics. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_college_mathematics +"dataset_name": "college_mathematics" +"description": "The following are multiple choice questions (with answers) about college\ + \ mathematics.\n\n" +"group": "mmlu_flan_cot_zeroshot_stem" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_college_mathematics" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_medicine.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_medicine.yaml index e852c64b..51c8a3c0 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_medicine.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_medicine.yaml @@ -1,8 +1,6 @@ -dataset_name: college_medicine -description: 'The following are multiple choice questions (with answers) about college - medicine. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_college_medicine +"dataset_name": "college_medicine" +"description": "The following are multiple choice questions (with answers) about college\ + \ medicine.\n\n" +"group": "mmlu_flan_cot_zeroshot_other" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_college_medicine" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_physics.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_physics.yaml index f215c2f0..319c7214 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_physics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_college_physics.yaml @@ -1,8 +1,6 @@ -dataset_name: college_physics -description: 'The following are multiple choice questions (with answers) about college - physics. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_college_physics +"dataset_name": "college_physics" +"description": "The following are multiple choice questions (with answers) about college\ + \ physics.\n\n" +"group": "mmlu_flan_cot_zeroshot_stem" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_college_physics" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_computer_security.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_computer_security.yaml index 402f7bdc..ae4bda96 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_computer_security.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_computer_security.yaml @@ -1,8 +1,6 @@ -dataset_name: computer_security -description: 'The following are multiple choice questions (with answers) about computer - security. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_computer_security +"dataset_name": "computer_security" +"description": "The following are multiple choice questions (with answers) about computer\ + \ security.\n\n" +"group": "mmlu_flan_cot_zeroshot_stem" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_computer_security" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_conceptual_physics.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_conceptual_physics.yaml index c3ad6376..2e1e43db 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_conceptual_physics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_conceptual_physics.yaml @@ -1,8 +1,6 @@ -dataset_name: conceptual_physics -description: 'The following are multiple choice questions (with answers) about conceptual - physics. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_conceptual_physics +"dataset_name": "conceptual_physics" +"description": "The following are multiple choice questions (with answers) about conceptual\ + \ physics.\n\n" +"group": "mmlu_flan_cot_zeroshot_stem" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_conceptual_physics" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_econometrics.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_econometrics.yaml index dad5a83b..9ff25bba 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_econometrics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_econometrics.yaml @@ -1,7 +1,6 @@ -dataset_name: econometrics -description: 'The following are multiple choice questions (with answers) about econometrics. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_econometrics +"dataset_name": "econometrics" +"description": "The following are multiple choice questions (with answers) about econometrics.\n\ + \n" +"group": "mmlu_flan_cot_zeroshot_social_sciences" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_econometrics" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_electrical_engineering.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_electrical_engineering.yaml index 72a08dca..ca10a43e 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_electrical_engineering.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_electrical_engineering.yaml @@ -1,8 +1,6 @@ -dataset_name: electrical_engineering -description: 'The following are multiple choice questions (with answers) about electrical - engineering. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_electrical_engineering +"dataset_name": "electrical_engineering" +"description": "The following are multiple choice questions (with answers) about electrical\ + \ engineering.\n\n" +"group": "mmlu_flan_cot_zeroshot_stem" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_electrical_engineering" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_elementary_mathematics.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_elementary_mathematics.yaml index 0531f23e..065c92d2 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_elementary_mathematics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_elementary_mathematics.yaml @@ -1,8 +1,6 @@ -dataset_name: elementary_mathematics -description: 'The following are multiple choice questions (with answers) about elementary - mathematics. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_elementary_mathematics +"dataset_name": "elementary_mathematics" +"description": "The following are multiple choice questions (with answers) about elementary\ + \ mathematics.\n\n" +"group": "mmlu_flan_cot_zeroshot_stem" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_elementary_mathematics" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_formal_logic.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_formal_logic.yaml index 80b26401..ec2d323c 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_formal_logic.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_formal_logic.yaml @@ -1,8 +1,6 @@ -dataset_name: formal_logic -description: 'The following are multiple choice questions (with answers) about formal - logic. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_formal_logic +"dataset_name": "formal_logic" +"description": "The following are multiple choice questions (with answers) about formal\ + \ logic.\n\n" +"group": "mmlu_flan_cot_zeroshot_humanities" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_formal_logic" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_global_facts.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_global_facts.yaml index 491d0db4..b1e29a3e 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_global_facts.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_global_facts.yaml @@ -1,8 +1,6 @@ -dataset_name: global_facts -description: 'The following are multiple choice questions (with answers) about global - facts. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_global_facts +"dataset_name": "global_facts" +"description": "The following are multiple choice questions (with answers) about global\ + \ facts.\n\n" +"group": "mmlu_flan_cot_zeroshot_other" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_global_facts" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_biology.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_biology.yaml index 32da2e26..0e5794db 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_biology.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_biology.yaml @@ -1,8 +1,6 @@ -dataset_name: high_school_biology -description: 'The following are multiple choice questions (with answers) about high - school biology. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_high_school_biology +"dataset_name": "high_school_biology" +"description": "The following are multiple choice questions (with answers) about high\ + \ school biology.\n\n" +"group": "mmlu_flan_cot_zeroshot_stem" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_high_school_biology" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_chemistry.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_chemistry.yaml index 5968e54e..eba398b0 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_chemistry.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_chemistry.yaml @@ -1,8 +1,6 @@ -dataset_name: high_school_chemistry -description: 'The following are multiple choice questions (with answers) about high - school chemistry. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_high_school_chemistry +"dataset_name": "high_school_chemistry" +"description": "The following are multiple choice questions (with answers) about high\ + \ school chemistry.\n\n" +"group": "mmlu_flan_cot_zeroshot_stem" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_high_school_chemistry" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_computer_science.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_computer_science.yaml index 2666de90..4a69dbb3 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_computer_science.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_computer_science.yaml @@ -1,8 +1,6 @@ -dataset_name: high_school_computer_science -description: 'The following are multiple choice questions (with answers) about high - school computer science. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_high_school_computer_science +"dataset_name": "high_school_computer_science" +"description": "The following are multiple choice questions (with answers) about high\ + \ school computer science.\n\n" +"group": "mmlu_flan_cot_zeroshot_stem" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_high_school_computer_science" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_european_history.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_european_history.yaml index fb59ada4..54eafb51 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_european_history.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_european_history.yaml @@ -1,8 +1,6 @@ -dataset_name: high_school_european_history -description: 'The following are multiple choice questions (with answers) about high - school european history. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_high_school_european_history +"dataset_name": "high_school_european_history" +"description": "The following are multiple choice questions (with answers) about high\ + \ school european history.\n\n" +"group": "mmlu_flan_cot_zeroshot_humanities" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_high_school_european_history" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_geography.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_geography.yaml index ed3fca55..0898c876 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_geography.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_geography.yaml @@ -1,8 +1,6 @@ -dataset_name: high_school_geography -description: 'The following are multiple choice questions (with answers) about high - school geography. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_high_school_geography +"dataset_name": "high_school_geography" +"description": "The following are multiple choice questions (with answers) about high\ + \ school geography.\n\n" +"group": "mmlu_flan_cot_zeroshot_social_sciences" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_high_school_geography" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_government_and_politics.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_government_and_politics.yaml index 62803b4b..d82fb6b0 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_government_and_politics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_government_and_politics.yaml @@ -1,8 +1,6 @@ -dataset_name: high_school_government_and_politics -description: 'The following are multiple choice questions (with answers) about high - school government and politics. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_high_school_government_and_politics +"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_flan_cot_zeroshot_social_sciences" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_high_school_government_and_politics" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_macroeconomics.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_macroeconomics.yaml index f973b58d..b94fc2a6 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_macroeconomics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_macroeconomics.yaml @@ -1,8 +1,6 @@ -dataset_name: high_school_macroeconomics -description: 'The following are multiple choice questions (with answers) about high - school macroeconomics. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_high_school_macroeconomics +"dataset_name": "high_school_macroeconomics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school macroeconomics.\n\n" +"group": "mmlu_flan_cot_zeroshot_social_sciences" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_high_school_macroeconomics" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_mathematics.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_mathematics.yaml index 550dfcf1..dff0960a 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_mathematics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_mathematics.yaml @@ -1,8 +1,6 @@ -dataset_name: high_school_mathematics -description: 'The following are multiple choice questions (with answers) about high - school mathematics. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_high_school_mathematics +"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_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_microeconomics.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_microeconomics.yaml index 8a1e4c4c..75a08c48 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_microeconomics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_microeconomics.yaml @@ -1,8 +1,6 @@ -dataset_name: high_school_microeconomics -description: 'The following are multiple choice questions (with answers) about high - school microeconomics. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_high_school_microeconomics +"dataset_name": "high_school_microeconomics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school microeconomics.\n\n" +"group": "mmlu_flan_cot_zeroshot_social_sciences" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_high_school_microeconomics" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_physics.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_physics.yaml index 4997e712..177d42da 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_physics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_physics.yaml @@ -1,8 +1,6 @@ -dataset_name: high_school_physics -description: 'The following are multiple choice questions (with answers) about high - school physics. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_high_school_physics +"dataset_name": "high_school_physics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school physics.\n\n" +"group": "mmlu_flan_cot_zeroshot_stem" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_high_school_physics" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_psychology.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_psychology.yaml index a3e801ca..d5d47723 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_psychology.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_psychology.yaml @@ -1,8 +1,6 @@ -dataset_name: high_school_psychology -description: 'The following are multiple choice questions (with answers) about high - school psychology. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_high_school_psychology +"dataset_name": "high_school_psychology" +"description": "The following are multiple choice questions (with answers) about high\ + \ school psychology.\n\n" +"group": "mmlu_flan_cot_zeroshot_social_sciences" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_high_school_psychology" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_statistics.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_statistics.yaml index d057cbef..b245cf9e 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_statistics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_statistics.yaml @@ -1,8 +1,6 @@ -dataset_name: high_school_statistics -description: 'The following are multiple choice questions (with answers) about high - school statistics. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_high_school_statistics +"dataset_name": "high_school_statistics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school statistics.\n\n" +"group": "mmlu_flan_cot_zeroshot_stem" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_high_school_statistics" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_us_history.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_us_history.yaml index 583d9591..2e187da2 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_us_history.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_us_history.yaml @@ -1,8 +1,6 @@ -dataset_name: high_school_us_history -description: 'The following are multiple choice questions (with answers) about high - school us history. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_high_school_us_history +"dataset_name": "high_school_us_history" +"description": "The following are multiple choice questions (with answers) about high\ + \ school us history.\n\n" +"group": "mmlu_flan_cot_zeroshot_humanities" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_high_school_us_history" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_world_history.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_world_history.yaml index 40445582..c89dd0fa 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_world_history.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_world_history.yaml @@ -1,8 +1,6 @@ -dataset_name: high_school_world_history -description: 'The following are multiple choice questions (with answers) about high - school world history. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_high_school_world_history +"dataset_name": "high_school_world_history" +"description": "The following are multiple choice questions (with answers) about high\ + \ school world history.\n\n" +"group": "mmlu_flan_cot_zeroshot_humanities" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_high_school_world_history" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_human_aging.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_human_aging.yaml index c6db4c1c..230781b4 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_human_aging.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_human_aging.yaml @@ -1,8 +1,6 @@ -dataset_name: human_aging -description: 'The following are multiple choice questions (with answers) about human - aging. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_human_aging +"dataset_name": "human_aging" +"description": "The following are multiple choice questions (with answers) about human\ + \ aging.\n\n" +"group": "mmlu_flan_cot_zeroshot_other" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_human_aging" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_human_sexuality.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_human_sexuality.yaml index 41795660..ed2116dd 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_human_sexuality.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_human_sexuality.yaml @@ -1,8 +1,6 @@ -dataset_name: human_sexuality -description: 'The following are multiple choice questions (with answers) about human - sexuality. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_human_sexuality +"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_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_international_law.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_international_law.yaml index da1273b0..d777e9fc 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_international_law.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_international_law.yaml @@ -1,8 +1,6 @@ -dataset_name: international_law -description: 'The following are multiple choice questions (with answers) about international - law. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_international_law +"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_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_jurisprudence.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_jurisprudence.yaml index e1a6a28b..62b86dd0 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_jurisprudence.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_jurisprudence.yaml @@ -1,7 +1,6 @@ -dataset_name: jurisprudence -description: 'The following are multiple choice questions (with answers) about jurisprudence. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_jurisprudence +"dataset_name": "jurisprudence" +"description": "The following are multiple choice questions (with answers) about jurisprudence.\n\ + \n" +"group": "mmlu_flan_cot_zeroshot_humanities" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_jurisprudence" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_logical_fallacies.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_logical_fallacies.yaml index e94cde17..07ae8438 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_logical_fallacies.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_logical_fallacies.yaml @@ -1,8 +1,6 @@ -dataset_name: logical_fallacies -description: 'The following are multiple choice questions (with answers) about logical - fallacies. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_logical_fallacies +"dataset_name": "logical_fallacies" +"description": "The following are multiple choice questions (with answers) about logical\ + \ fallacies.\n\n" +"group": "mmlu_flan_cot_zeroshot_humanities" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_logical_fallacies" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_machine_learning.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_machine_learning.yaml index a17387bd..cd4813ef 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_machine_learning.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_machine_learning.yaml @@ -1,8 +1,6 @@ -dataset_name: machine_learning -description: 'The following are multiple choice questions (with answers) about machine - learning. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_machine_learning +"dataset_name": "machine_learning" +"description": "The following are multiple choice questions (with answers) about machine\ + \ learning.\n\n" +"group": "mmlu_flan_cot_zeroshot_stem" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_machine_learning" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_management.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_management.yaml index 68fc6ba2..b7164c1c 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_management.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_management.yaml @@ -1,7 +1,6 @@ -dataset_name: management -description: 'The following are multiple choice questions (with answers) about management. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_management +"dataset_name": "management" +"description": "The following are multiple choice questions (with answers) about management.\n\ + \n" +"group": "mmlu_flan_cot_zeroshot_other" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_management" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_marketing.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_marketing.yaml index f6c6444c..0827f78d 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_marketing.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_marketing.yaml @@ -1,7 +1,6 @@ -dataset_name: marketing -description: 'The following are multiple choice questions (with answers) about marketing. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_marketing +"dataset_name": "marketing" +"description": "The following are multiple choice questions (with answers) about marketing.\n\ + \n" +"group": "mmlu_flan_cot_zeroshot_other" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_marketing" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_medical_genetics.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_medical_genetics.yaml index 2490826b..1706ee5b 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_medical_genetics.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_medical_genetics.yaml @@ -1,8 +1,6 @@ -dataset_name: medical_genetics -description: 'The following are multiple choice questions (with answers) about medical - genetics. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_medical_genetics +"dataset_name": "medical_genetics" +"description": "The following are multiple choice questions (with answers) about medical\ + \ genetics.\n\n" +"group": "mmlu_flan_cot_zeroshot_other" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_medical_genetics" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_miscellaneous.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_miscellaneous.yaml index 5aebaef8..295d801a 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_miscellaneous.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_miscellaneous.yaml @@ -1,7 +1,6 @@ -dataset_name: miscellaneous -description: 'The following are multiple choice questions (with answers) about miscellaneous. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_miscellaneous +"dataset_name": "miscellaneous" +"description": "The following are multiple choice questions (with answers) about miscellaneous.\n\ + \n" +"group": "mmlu_flan_cot_zeroshot_other" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_miscellaneous" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_moral_disputes.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_moral_disputes.yaml index 85829454..a4595f06 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_moral_disputes.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_moral_disputes.yaml @@ -1,8 +1,6 @@ -dataset_name: moral_disputes -description: 'The following are multiple choice questions (with answers) about moral - disputes. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_moral_disputes +"dataset_name": "moral_disputes" +"description": "The following are multiple choice questions (with answers) about moral\ + \ disputes.\n\n" +"group": "mmlu_flan_cot_zeroshot_humanities" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_moral_disputes" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_moral_scenarios.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_moral_scenarios.yaml index f8a31ddc..a0e41ae4 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_moral_scenarios.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_moral_scenarios.yaml @@ -1,8 +1,6 @@ -dataset_name: moral_scenarios -description: 'The following are multiple choice questions (with answers) about moral - scenarios. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_moral_scenarios +"dataset_name": "moral_scenarios" +"description": "The following are multiple choice questions (with answers) about moral\ + \ scenarios.\n\n" +"group": "mmlu_flan_cot_zeroshot_humanities" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_moral_scenarios" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_nutrition.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_nutrition.yaml index 238c3f1c..4c87be43 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_nutrition.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_nutrition.yaml @@ -1,7 +1,6 @@ -dataset_name: nutrition -description: 'The following are multiple choice questions (with answers) about nutrition. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_nutrition +"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_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_philosophy.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_philosophy.yaml index c4a8fb47..534707cb 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_philosophy.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_philosophy.yaml @@ -1,7 +1,6 @@ -dataset_name: philosophy -description: 'The following are multiple choice questions (with answers) about philosophy. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_philosophy +"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_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_prehistory.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_prehistory.yaml index 07f31813..3233ba4e 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_prehistory.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_prehistory.yaml @@ -1,7 +1,6 @@ -dataset_name: prehistory -description: 'The following are multiple choice questions (with answers) about prehistory. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_prehistory +"dataset_name": "prehistory" +"description": "The following are multiple choice questions (with answers) about prehistory.\n\ + \n" +"group": "mmlu_flan_cot_zeroshot_humanities" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_prehistory" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_accounting.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_accounting.yaml index 82b5ff2c..021090c6 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_accounting.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_accounting.yaml @@ -1,8 +1,6 @@ -dataset_name: professional_accounting -description: 'The following are multiple choice questions (with answers) about professional - accounting. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_professional_accounting +"dataset_name": "professional_accounting" +"description": "The following are multiple choice questions (with answers) about professional\ + \ accounting.\n\n" +"group": "mmlu_flan_cot_zeroshot_other" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_professional_accounting" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_law.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_law.yaml index 32210b49..73d115d7 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_law.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_law.yaml @@ -1,8 +1,6 @@ -dataset_name: professional_law -description: 'The following are multiple choice questions (with answers) about professional - law. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_professional_law +"dataset_name": "professional_law" +"description": "The following are multiple choice questions (with answers) about professional\ + \ law.\n\n" +"group": "mmlu_flan_cot_zeroshot_humanities" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_professional_law" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_medicine.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_medicine.yaml index ed9eebe1..47cf9573 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_medicine.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_medicine.yaml @@ -1,8 +1,6 @@ -dataset_name: professional_medicine -description: 'The following are multiple choice questions (with answers) about professional - medicine. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_professional_medicine +"dataset_name": "professional_medicine" +"description": "The following are multiple choice questions (with answers) about professional\ + \ medicine.\n\n" +"group": "mmlu_flan_cot_zeroshot_other" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_professional_medicine" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_psychology.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_psychology.yaml index 7110b840..cc055d5b 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_psychology.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_psychology.yaml @@ -1,8 +1,6 @@ -dataset_name: professional_psychology -description: 'The following are multiple choice questions (with answers) about professional - psychology. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_professional_psychology +"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" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_public_relations.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_public_relations.yaml index 5138cdd8..14d02c3a 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_public_relations.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_public_relations.yaml @@ -1,8 +1,6 @@ -dataset_name: public_relations -description: 'The following are multiple choice questions (with answers) about public - relations. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_public_relations +"dataset_name": "public_relations" +"description": "The following are multiple choice questions (with answers) about public\ + \ relations.\n\n" +"group": "mmlu_flan_cot_zeroshot_social_sciences" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_public_relations" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_security_studies.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_security_studies.yaml index 84c359d7..cae551e2 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_security_studies.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_security_studies.yaml @@ -1,8 +1,6 @@ -dataset_name: security_studies -description: 'The following are multiple choice questions (with answers) about security - studies. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_security_studies +"dataset_name": "security_studies" +"description": "The following are multiple choice questions (with answers) about security\ + \ studies.\n\n" +"group": "mmlu_flan_cot_zeroshot_social_sciences" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_security_studies" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_sociology.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_sociology.yaml index fed1dc49..45b94193 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_sociology.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_sociology.yaml @@ -1,7 +1,6 @@ -dataset_name: sociology -description: 'The following are multiple choice questions (with answers) about sociology. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_sociology +"dataset_name": "sociology" +"description": "The following are multiple choice questions (with answers) about sociology.\n\ + \n" +"group": "mmlu_flan_cot_zeroshot_social_sciences" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_sociology" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_us_foreign_policy.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_us_foreign_policy.yaml index d94f60e9..52e48277 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_us_foreign_policy.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_us_foreign_policy.yaml @@ -1,8 +1,6 @@ -dataset_name: us_foreign_policy -description: 'The following are multiple choice questions (with answers) about us - foreign policy. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_us_foreign_policy +"dataset_name": "us_foreign_policy" +"description": "The following are multiple choice questions (with answers) about us\ + \ foreign policy.\n\n" +"group": "mmlu_flan_cot_zeroshot_social_sciences" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_us_foreign_policy" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_virology.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_virology.yaml index feaa8b06..fda1af06 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_virology.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_virology.yaml @@ -1,7 +1,6 @@ -dataset_name: virology -description: 'The following are multiple choice questions (with answers) about virology. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_virology +"dataset_name": "virology" +"description": "The following are multiple choice questions (with answers) about virology.\n\ + \n" +"group": "mmlu_flan_cot_zeroshot_other" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_virology" diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_world_religions.yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_world_religions.yaml index fe2b4c42..40518282 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_world_religions.yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_world_religions.yaml @@ -1,8 +1,6 @@ -dataset_name: world_religions -description: 'The following are multiple choice questions (with answers) about world - religions. - - - ' -include: _mmlu_flan_generative_template_yaml -task: mmlu_flan_cot_zeroshot_world_religions +"dataset_name": "world_religions" +"description": "The following are multiple choice questions (with answers) about world\ + \ religions.\n\n" +"group": "mmlu_flan_cot_zeroshot_humanities" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_world_religions" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/generative/_mmlu.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/_mmlu.yaml new file mode 100644 index 00000000..7705a171 --- /dev/null +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/_mmlu.yaml @@ -0,0 +1,6 @@ +group: mmlu_flan_n_shot_generative +task: + - mmlu_flan_n_shot_generative_stem + - mmlu_flan_n_shot_generative_other + - mmlu_flan_n_shot_generative_social_sciences + - mmlu_flan_n_shot_generative_humanities diff --git a/lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_generative_template_yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/_mmlu_flan_generative_template_yaml similarity index 100% rename from lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_generative_template_yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/_mmlu_flan_generative_template_yaml diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_abstract_algebra.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_abstract_algebra.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_abstract_algebra.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_abstract_algebra.yaml index 49b9c425..40cced2c 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_abstract_algebra.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_abstract_algebra.yaml @@ -1,4 +1,6 @@ "dataset_name": "abstract_algebra" -"description": "The following are multiple choice questions (with answers) about abstract algebra.\n\n" +"description": "The following are multiple choice questions (with answers) about abstract\ + \ algebra.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_abstract_algebra" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_anatomy.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_anatomy.yaml similarity index 70% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_anatomy.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_anatomy.yaml index 0c8d7914..606049a5 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_anatomy.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_anatomy.yaml @@ -1,4 +1,6 @@ "dataset_name": "anatomy" -"description": "The following are multiple choice questions (with answers) about anatomy.\n\n" +"description": "The following are multiple choice questions (with answers) about anatomy.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_anatomy" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_astronomy.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_astronomy.yaml similarity index 70% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_astronomy.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_astronomy.yaml index c92a1027..db5faa22 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_astronomy.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_astronomy.yaml @@ -1,4 +1,6 @@ "dataset_name": "astronomy" -"description": "The following are multiple choice questions (with answers) about astronomy.\n\n" +"description": "The following are multiple choice questions (with answers) about astronomy.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_astronomy" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_business_ethics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_business_ethics.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_business_ethics.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_business_ethics.yaml index 4b65902e..add2ffb4 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_business_ethics.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_business_ethics.yaml @@ -1,4 +1,6 @@ "dataset_name": "business_ethics" -"description": "The following are multiple choice questions (with answers) about business ethics.\n\n" +"description": "The following are multiple choice questions (with answers) about business\ + \ ethics.\n\n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_business_ethics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_clinical_knowledge.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_clinical_knowledge.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_clinical_knowledge.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_clinical_knowledge.yaml index 295fb234..e3f24569 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_clinical_knowledge.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_clinical_knowledge.yaml @@ -1,4 +1,6 @@ "dataset_name": "clinical_knowledge" -"description": "The following are multiple choice questions (with answers) about clinical knowledge.\n\n" +"description": "The following are multiple choice questions (with answers) about clinical\ + \ knowledge.\n\n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_clinical_knowledge" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_biology.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_biology.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_biology.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_biology.yaml index f945181b..3772b0e6 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_biology.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_biology.yaml @@ -1,4 +1,6 @@ "dataset_name": "college_biology" -"description": "The following are multiple choice questions (with answers) about college biology.\n\n" +"description": "The following are multiple choice questions (with answers) about college\ + \ biology.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_college_biology" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_chemistry.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_chemistry.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_chemistry.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_chemistry.yaml index 1fdab27d..cedcf0cc 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_chemistry.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_chemistry.yaml @@ -1,4 +1,6 @@ "dataset_name": "college_chemistry" -"description": "The following are multiple choice questions (with answers) about college chemistry.\n\n" +"description": "The following are multiple choice questions (with answers) about college\ + \ chemistry.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_college_chemistry" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_computer_science.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_computer_science.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_computer_science.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_computer_science.yaml index 6b41a5bb..a060903a 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_computer_science.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_computer_science.yaml @@ -1,4 +1,6 @@ "dataset_name": "college_computer_science" -"description": "The following are multiple choice questions (with answers) about college computer science.\n\n" +"description": "The following are multiple choice questions (with answers) about college\ + \ computer science.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_college_computer_science" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_mathematics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_mathematics.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_mathematics.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_mathematics.yaml index 29e80a5e..1899ce65 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_mathematics.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_mathematics.yaml @@ -1,4 +1,6 @@ "dataset_name": "college_mathematics" -"description": "The following are multiple choice questions (with answers) about college mathematics.\n\n" +"description": "The following are multiple choice questions (with answers) about college\ + \ mathematics.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_college_mathematics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_medicine.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_medicine.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_medicine.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_medicine.yaml index a5061541..ab052dd6 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_medicine.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_medicine.yaml @@ -1,4 +1,6 @@ "dataset_name": "college_medicine" -"description": "The following are multiple choice questions (with answers) about college medicine.\n\n" +"description": "The following are multiple choice questions (with answers) about college\ + \ medicine.\n\n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_college_medicine" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_physics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_physics.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_physics.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_physics.yaml index ec3262ee..3b1e64e6 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_college_physics.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_physics.yaml @@ -1,4 +1,6 @@ "dataset_name": "college_physics" -"description": "The following are multiple choice questions (with answers) about college physics.\n\n" +"description": "The following are multiple choice questions (with answers) about college\ + \ physics.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_college_physics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_computer_security.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_computer_security.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_computer_security.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_computer_security.yaml index a9ade9c5..cd312a93 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_computer_security.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_computer_security.yaml @@ -1,4 +1,6 @@ "dataset_name": "computer_security" -"description": "The following are multiple choice questions (with answers) about computer security.\n\n" +"description": "The following are multiple choice questions (with answers) about computer\ + \ security.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_computer_security" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_conceptual_physics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_conceptual_physics.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_conceptual_physics.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_conceptual_physics.yaml index 5a903a65..49e6b38c 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_conceptual_physics.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_conceptual_physics.yaml @@ -1,4 +1,6 @@ "dataset_name": "conceptual_physics" -"description": "The following are multiple choice questions (with answers) about conceptual physics.\n\n" +"description": "The following are multiple choice questions (with answers) about conceptual\ + \ physics.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_conceptual_physics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_econometrics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_econometrics.yaml similarity index 67% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_econometrics.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_econometrics.yaml index 847c8ce6..d9b4ebfc 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_econometrics.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_econometrics.yaml @@ -1,4 +1,6 @@ "dataset_name": "econometrics" -"description": "The following are multiple choice questions (with answers) about econometrics.\n\n" +"description": "The following are multiple choice questions (with answers) about econometrics.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_social_sciences" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_econometrics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_electrical_engineering.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_electrical_engineering.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_electrical_engineering.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_electrical_engineering.yaml index 038379e0..e6efb0ef 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_electrical_engineering.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_electrical_engineering.yaml @@ -1,4 +1,6 @@ "dataset_name": "electrical_engineering" -"description": "The following are multiple choice questions (with answers) about electrical engineering.\n\n" +"description": "The following are multiple choice questions (with answers) about electrical\ + \ engineering.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_electrical_engineering" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_elementary_mathematics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_elementary_mathematics.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_elementary_mathematics.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_elementary_mathematics.yaml index 4fd779de..b33cf318 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_elementary_mathematics.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_elementary_mathematics.yaml @@ -1,4 +1,6 @@ "dataset_name": "elementary_mathematics" -"description": "The following are multiple choice questions (with answers) about elementary mathematics.\n\n" +"description": "The following are multiple choice questions (with answers) about elementary\ + \ mathematics.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_elementary_mathematics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_formal_logic.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_formal_logic.yaml similarity index 68% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_formal_logic.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_formal_logic.yaml index bb528831..1c2ad3a1 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_formal_logic.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_formal_logic.yaml @@ -1,4 +1,6 @@ "dataset_name": "formal_logic" -"description": "The following are multiple choice questions (with answers) about formal logic.\n\n" +"description": "The following are multiple choice questions (with answers) about formal\ + \ logic.\n\n" +"group": "mmlu_flan_n_shot_generative_humanities" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_formal_logic" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_global_facts.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_global_facts.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_global_facts.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_global_facts.yaml index 1145dcab..a2352ff7 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_global_facts.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_global_facts.yaml @@ -1,4 +1,6 @@ "dataset_name": "global_facts" -"description": "The following are multiple choice questions (with answers) about global facts.\n\n" +"description": "The following are multiple choice questions (with answers) about global\ + \ facts.\n\n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_global_facts" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_biology.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_biology.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_biology.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_biology.yaml index 574a0c58..0b51f34a 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_biology.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_biology.yaml @@ -1,4 +1,6 @@ "dataset_name": "high_school_biology" -"description": "The following are multiple choice questions (with answers) about high school biology.\n\n" +"description": "The following are multiple choice questions (with answers) about high\ + \ school biology.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_high_school_biology" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_chemistry.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_chemistry.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_chemistry.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_chemistry.yaml index ef79ed73..0066ba77 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_chemistry.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_chemistry.yaml @@ -1,4 +1,6 @@ "dataset_name": "high_school_chemistry" -"description": "The following are multiple choice questions (with answers) about high school chemistry.\n\n" +"description": "The following are multiple choice questions (with answers) about high\ + \ school chemistry.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_high_school_chemistry" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_computer_science.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_computer_science.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_computer_science.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_computer_science.yaml index 9d9200a6..b0d4ef15 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_computer_science.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_computer_science.yaml @@ -1,4 +1,6 @@ "dataset_name": "high_school_computer_science" -"description": "The following are multiple choice questions (with answers) about high school computer science.\n\n" +"description": "The following are multiple choice questions (with answers) about high\ + \ school computer science.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_high_school_computer_science" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_european_history.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_european_history.yaml similarity index 67% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_european_history.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_european_history.yaml index e4b52a9c..4b17db63 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_european_history.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_european_history.yaml @@ -1,4 +1,6 @@ "dataset_name": "high_school_european_history" -"description": "The following are multiple choice questions (with answers) about high school european history.\n\n" +"description": "The following are multiple choice questions (with answers) about high\ + \ school european history.\n\n" +"group": "mmlu_flan_n_shot_generative_humanities" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_high_school_european_history" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_geography.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_geography.yaml similarity index 66% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_geography.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_geography.yaml index 8403d20e..93f8de20 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_geography.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_geography.yaml @@ -1,4 +1,6 @@ "dataset_name": "high_school_geography" -"description": "The following are multiple choice questions (with answers) about high school geography.\n\n" +"description": "The following are multiple choice questions (with answers) about high\ + \ school geography.\n\n" +"group": "mmlu_flan_n_shot_generative_social_sciences" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_high_school_geography" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_government_and_politics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_government_and_politics.yaml similarity index 66% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_government_and_politics.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_government_and_politics.yaml index 50ad3863..7ae12c17 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_government_and_politics.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_government_and_politics.yaml @@ -1,4 +1,6 @@ "dataset_name": "high_school_government_and_politics" -"description": "The following are multiple choice questions (with answers) about high school government and politics.\n\n" +"description": "The following are multiple choice questions (with answers) about high\ + \ school government and politics.\n\n" +"group": "mmlu_flan_n_shot_generative_social_sciences" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_high_school_government_and_politics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_macroeconomics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_macroeconomics.yaml similarity index 66% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_macroeconomics.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_macroeconomics.yaml index 18bfb8b1..71d82259 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_macroeconomics.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_macroeconomics.yaml @@ -1,4 +1,6 @@ "dataset_name": "high_school_macroeconomics" -"description": "The following are multiple choice questions (with answers) about high school macroeconomics.\n\n" +"description": "The following are multiple choice questions (with answers) about high\ + \ school macroeconomics.\n\n" +"group": "mmlu_flan_n_shot_generative_social_sciences" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_high_school_macroeconomics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_mathematics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_mathematics.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_mathematics.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_mathematics.yaml index 1b04a06f..20d31e12 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_mathematics.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_mathematics.yaml @@ -1,4 +1,6 @@ "dataset_name": "high_school_mathematics" -"description": "The following are multiple choice questions (with answers) about high school mathematics.\n\n" +"description": "The following are multiple choice questions (with answers) about high\ + \ school mathematics.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_high_school_mathematics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_microeconomics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_microeconomics.yaml similarity index 66% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_microeconomics.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_microeconomics.yaml index 9588af59..5c6d6ef9 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_microeconomics.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_microeconomics.yaml @@ -1,4 +1,6 @@ "dataset_name": "high_school_microeconomics" -"description": "The following are multiple choice questions (with answers) about high school microeconomics.\n\n" +"description": "The following are multiple choice questions (with answers) about high\ + \ school microeconomics.\n\n" +"group": "mmlu_flan_n_shot_generative_social_sciences" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_high_school_microeconomics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_physics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_physics.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_physics.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_physics.yaml index 4aa033c8..5b016778 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_physics.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_physics.yaml @@ -1,4 +1,6 @@ "dataset_name": "high_school_physics" -"description": "The following are multiple choice questions (with answers) about high school physics.\n\n" +"description": "The following are multiple choice questions (with answers) about high\ + \ school physics.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_high_school_physics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_psychology.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_psychology.yaml similarity index 66% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_psychology.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_psychology.yaml index 168c0c15..1abf244c 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_psychology.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_psychology.yaml @@ -1,4 +1,6 @@ "dataset_name": "high_school_psychology" -"description": "The following are multiple choice questions (with answers) about high school psychology.\n\n" +"description": "The following are multiple choice questions (with answers) about high\ + \ school psychology.\n\n" +"group": "mmlu_flan_n_shot_generative_social_sciences" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_high_school_psychology" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_statistics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_statistics.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_statistics.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_statistics.yaml index ba195da9..df3e8d93 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_statistics.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_statistics.yaml @@ -1,4 +1,6 @@ "dataset_name": "high_school_statistics" -"description": "The following are multiple choice questions (with answers) about high school statistics.\n\n" +"description": "The following are multiple choice questions (with answers) about high\ + \ school statistics.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_high_school_statistics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_us_history.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_us_history.yaml similarity index 68% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_us_history.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_us_history.yaml index 0605fbc4..68e3f0a9 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_us_history.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_us_history.yaml @@ -1,4 +1,6 @@ "dataset_name": "high_school_us_history" -"description": "The following are multiple choice questions (with answers) about high school us history.\n\n" +"description": "The following are multiple choice questions (with answers) about high\ + \ school us history.\n\n" +"group": "mmlu_flan_n_shot_generative_humanities" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_high_school_us_history" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_world_history.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_world_history.yaml similarity index 68% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_world_history.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_world_history.yaml index aa54d758..dfb839c3 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_high_school_world_history.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_world_history.yaml @@ -1,4 +1,6 @@ "dataset_name": "high_school_world_history" -"description": "The following are multiple choice questions (with answers) about high school world history.\n\n" +"description": "The following are multiple choice questions (with answers) about high\ + \ school world history.\n\n" +"group": "mmlu_flan_n_shot_generative_humanities" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_high_school_world_history" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_human_aging.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_human_aging.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_human_aging.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_human_aging.yaml index d47b7fef..a857698f 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_human_aging.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_human_aging.yaml @@ -1,4 +1,6 @@ "dataset_name": "human_aging" -"description": "The following are multiple choice questions (with answers) about human aging.\n\n" +"description": "The following are multiple choice questions (with answers) about human\ + \ aging.\n\n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_human_aging" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_human_sexuality.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_human_sexuality.yaml similarity index 67% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_human_sexuality.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_human_sexuality.yaml index 9be15e54..3dde3af5 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_human_sexuality.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_human_sexuality.yaml @@ -1,4 +1,6 @@ "dataset_name": "human_sexuality" -"description": "The following are multiple choice questions (with answers) about human sexuality.\n\n" +"description": "The following are multiple choice questions (with answers) about human\ + \ sexuality.\n\n" +"group": "mmlu_flan_n_shot_generative_social_sciences" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_human_sexuality" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_international_law.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_international_law.yaml similarity index 68% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_international_law.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_international_law.yaml index b80c9d58..be9018cf 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_international_law.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_international_law.yaml @@ -1,4 +1,6 @@ "dataset_name": "international_law" -"description": "The following are multiple choice questions (with answers) about international law.\n\n" +"description": "The following are multiple choice questions (with answers) about international\ + \ law.\n\n" +"group": "mmlu_flan_n_shot_generative_humanities" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_international_law" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_jurisprudence.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_jurisprudence.yaml similarity index 68% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_jurisprudence.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_jurisprudence.yaml index 5e7a5395..f6b3c7ae 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_jurisprudence.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_jurisprudence.yaml @@ -1,4 +1,6 @@ "dataset_name": "jurisprudence" -"description": "The following are multiple choice questions (with answers) about jurisprudence.\n\n" +"description": "The following are multiple choice questions (with answers) about jurisprudence.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_humanities" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_jurisprudence" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_logical_fallacies.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_logical_fallacies.yaml similarity index 68% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_logical_fallacies.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_logical_fallacies.yaml index fcb718a0..c6363390 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_logical_fallacies.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_logical_fallacies.yaml @@ -1,4 +1,6 @@ "dataset_name": "logical_fallacies" -"description": "The following are multiple choice questions (with answers) about logical fallacies.\n\n" +"description": "The following are multiple choice questions (with answers) about logical\ + \ fallacies.\n\n" +"group": "mmlu_flan_n_shot_generative_humanities" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_logical_fallacies" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_machine_learning.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_machine_learning.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_machine_learning.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_machine_learning.yaml index d879b54c..64496cfb 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_machine_learning.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_machine_learning.yaml @@ -1,4 +1,6 @@ "dataset_name": "machine_learning" -"description": "The following are multiple choice questions (with answers) about machine learning.\n\n" +"description": "The following are multiple choice questions (with answers) about machine\ + \ learning.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_machine_learning" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_management.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_management.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_management.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_management.yaml index 887c71a3..63292cc1 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_management.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_management.yaml @@ -1,4 +1,6 @@ "dataset_name": "management" -"description": "The following are multiple choice questions (with answers) about management.\n\n" +"description": "The following are multiple choice questions (with answers) about management.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_management" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_marketing.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_marketing.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_marketing.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_marketing.yaml index bad500ca..0716dc14 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_marketing.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_marketing.yaml @@ -1,4 +1,6 @@ "dataset_name": "marketing" -"description": "The following are multiple choice questions (with answers) about marketing.\n\n" +"description": "The following are multiple choice questions (with answers) about marketing.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_marketing" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_medical_genetics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_medical_genetics.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_medical_genetics.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_medical_genetics.yaml index c4faff12..92115979 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_medical_genetics.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_medical_genetics.yaml @@ -1,4 +1,6 @@ "dataset_name": "medical_genetics" -"description": "The following are multiple choice questions (with answers) about medical genetics.\n\n" +"description": "The following are multiple choice questions (with answers) about medical\ + \ genetics.\n\n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_medical_genetics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_miscellaneous.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_miscellaneous.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_miscellaneous.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_miscellaneous.yaml index e9aac340..74e88944 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_miscellaneous.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_miscellaneous.yaml @@ -1,4 +1,6 @@ "dataset_name": "miscellaneous" -"description": "The following are multiple choice questions (with answers) about miscellaneous.\n\n" +"description": "The following are multiple choice questions (with answers) about miscellaneous.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_miscellaneous" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_moral_disputes.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_moral_disputes.yaml similarity index 68% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_moral_disputes.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_moral_disputes.yaml index 41af33e0..58bf43df 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_moral_disputes.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_moral_disputes.yaml @@ -1,4 +1,6 @@ "dataset_name": "moral_disputes" -"description": "The following are multiple choice questions (with answers) about moral disputes.\n\n" +"description": "The following are multiple choice questions (with answers) about moral\ + \ disputes.\n\n" +"group": "mmlu_flan_n_shot_generative_humanities" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_moral_disputes" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_moral_scenarios.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_moral_scenarios.yaml similarity index 68% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_moral_scenarios.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_moral_scenarios.yaml index 1689c3d9..9630e517 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_moral_scenarios.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_moral_scenarios.yaml @@ -1,4 +1,6 @@ "dataset_name": "moral_scenarios" -"description": "The following are multiple choice questions (with answers) about moral scenarios.\n\n" +"description": "The following are multiple choice questions (with answers) about moral\ + \ scenarios.\n\n" +"group": "mmlu_flan_n_shot_generative_humanities" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_moral_scenarios" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_nutrition.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_nutrition.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_nutrition.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_nutrition.yaml index 24be1a63..df14da9d 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_nutrition.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_nutrition.yaml @@ -1,4 +1,6 @@ "dataset_name": "nutrition" -"description": "The following are multiple choice questions (with answers) about nutrition.\n\n" +"description": "The following are multiple choice questions (with answers) about nutrition.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_nutrition" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_philosophy.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_philosophy.yaml similarity index 68% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_philosophy.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_philosophy.yaml index 01040729..20f5d60b 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_philosophy.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_philosophy.yaml @@ -1,4 +1,6 @@ "dataset_name": "philosophy" -"description": "The following are multiple choice questions (with answers) about philosophy.\n\n" +"description": "The following are multiple choice questions (with answers) about philosophy.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_humanities" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_philosophy" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_prehistory.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_prehistory.yaml similarity index 68% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_prehistory.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_prehistory.yaml index fc5a6fbe..3695e770 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_prehistory.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_prehistory.yaml @@ -1,4 +1,6 @@ "dataset_name": "prehistory" -"description": "The following are multiple choice questions (with answers) about prehistory.\n\n" +"description": "The following are multiple choice questions (with answers) about prehistory.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_humanities" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_prehistory" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_professional_accounting.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_professional_accounting.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_professional_accounting.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_professional_accounting.yaml index cbdd2f0d..222642ac 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_professional_accounting.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_professional_accounting.yaml @@ -1,4 +1,6 @@ "dataset_name": "professional_accounting" -"description": "The following are multiple choice questions (with answers) about professional accounting.\n\n" +"description": "The following are multiple choice questions (with answers) about professional\ + \ accounting.\n\n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_professional_accounting" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_professional_law.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_professional_law.yaml similarity index 68% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_professional_law.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_professional_law.yaml index 42e46529..b4d39e49 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_professional_law.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_professional_law.yaml @@ -1,4 +1,6 @@ "dataset_name": "professional_law" -"description": "The following are multiple choice questions (with answers) about professional law.\n\n" +"description": "The following are multiple choice questions (with answers) about professional\ + \ law.\n\n" +"group": "mmlu_flan_n_shot_generative_humanities" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_professional_law" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_professional_medicine.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_professional_medicine.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_professional_medicine.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_professional_medicine.yaml index a64610e6..c420d0d3 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_professional_medicine.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_professional_medicine.yaml @@ -1,4 +1,6 @@ "dataset_name": "professional_medicine" -"description": "The following are multiple choice questions (with answers) about professional medicine.\n\n" +"description": "The following are multiple choice questions (with answers) about professional\ + \ medicine.\n\n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_professional_medicine" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_professional_psychology.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_professional_psychology.yaml similarity index 66% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_professional_psychology.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_professional_psychology.yaml index b0c574fe..c5ba7495 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_professional_psychology.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_professional_psychology.yaml @@ -1,4 +1,6 @@ "dataset_name": "professional_psychology" -"description": "The following are multiple choice questions (with answers) about professional psychology.\n\n" +"description": "The following are multiple choice questions (with answers) about professional\ + \ psychology.\n\n" +"group": "mmlu_flan_n_shot_generative_social_sciences" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_professional_psychology" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_public_relations.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_public_relations.yaml similarity index 66% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_public_relations.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_public_relations.yaml index ff1030fc..9aa7d686 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_public_relations.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_public_relations.yaml @@ -1,4 +1,6 @@ "dataset_name": "public_relations" -"description": "The following are multiple choice questions (with answers) about public relations.\n\n" +"description": "The following are multiple choice questions (with answers) about public\ + \ relations.\n\n" +"group": "mmlu_flan_n_shot_generative_social_sciences" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_public_relations" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_security_studies.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_security_studies.yaml similarity index 66% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_security_studies.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_security_studies.yaml index 25555da4..6d2e0cda 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_security_studies.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_security_studies.yaml @@ -1,4 +1,6 @@ "dataset_name": "security_studies" -"description": "The following are multiple choice questions (with answers) about security studies.\n\n" +"description": "The following are multiple choice questions (with answers) about security\ + \ studies.\n\n" +"group": "mmlu_flan_n_shot_generative_social_sciences" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_security_studies" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_sociology.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_sociology.yaml similarity index 67% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_sociology.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_sociology.yaml index f8ac254c..3c42d0b9 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_sociology.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_sociology.yaml @@ -1,4 +1,6 @@ "dataset_name": "sociology" -"description": "The following are multiple choice questions (with answers) about sociology.\n\n" +"description": "The following are multiple choice questions (with answers) about sociology.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_social_sciences" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_sociology" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_us_foreign_policy.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_us_foreign_policy.yaml similarity index 66% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_us_foreign_policy.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_us_foreign_policy.yaml index af3917ac..5c514725 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_us_foreign_policy.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_us_foreign_policy.yaml @@ -1,4 +1,6 @@ "dataset_name": "us_foreign_policy" -"description": "The following are multiple choice questions (with answers) about us foreign policy.\n\n" +"description": "The following are multiple choice questions (with answers) about us\ + \ foreign policy.\n\n" +"group": "mmlu_flan_n_shot_generative_social_sciences" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_us_foreign_policy" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_virology.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_virology.yaml similarity index 69% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_virology.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_virology.yaml index b8df2d59..fb083b62 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_virology.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_virology.yaml @@ -1,4 +1,6 @@ "dataset_name": "virology" -"description": "The following are multiple choice questions (with answers) about virology.\n\n" +"description": "The following are multiple choice questions (with answers) about virology.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_virology" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_world_religions.yaml b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_world_religions.yaml similarity index 68% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_world_religions.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_world_religions.yaml index 496f66c5..0f2c199a 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_gen_world_religions.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_world_religions.yaml @@ -1,4 +1,6 @@ "dataset_name": "world_religions" -"description": "The following are multiple choice questions (with answers) about world religions.\n\n" +"description": "The following are multiple choice questions (with answers) about world\ + \ religions.\n\n" +"group": "mmlu_flan_n_shot_generative_humanities" "include": "_mmlu_flan_generative_template_yaml" "task": "mmlu_flan_n_shot_generative_world_religions" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/_mmlu.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/_mmlu.yaml new file mode 100644 index 00000000..7705a171 --- /dev/null +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/_mmlu.yaml @@ -0,0 +1,6 @@ +group: mmlu_flan_n_shot_generative +task: + - mmlu_flan_n_shot_generative_stem + - mmlu_flan_n_shot_generative_other + - mmlu_flan_n_shot_generative_social_sciences + - mmlu_flan_n_shot_generative_humanities diff --git a/lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_loglikelihood_template_yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/_mmlu_flan_loglikelihood_template_yaml similarity index 94% rename from lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_loglikelihood_template_yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/_mmlu_flan_loglikelihood_template_yaml index 5db2981a..2d5d92ef 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_loglikelihood_template_yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/_mmlu_flan_loglikelihood_template_yaml @@ -12,4 +12,4 @@ metric_list: higher_is_better: true - metric: acc_norm aggregation: mean - higher_is_better: true + higher_is_better: true \ No newline at end of file diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_abstract_algebra.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_abstract_algebra.yaml similarity index 51% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_abstract_algebra.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_abstract_algebra.yaml index 4ea918d6..7ac6123b 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_abstract_algebra.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_abstract_algebra.yaml @@ -1,4 +1,6 @@ "dataset_name": "abstract_algebra" -"description": "The following are multiple choice questions (with answers) about abstract algebra.\n\n" +"description": "The following are multiple choice questions (with answers) about abstract\ + \ algebra.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_abstract_algebra" +"task": "mmlu_flan_n_shot_generative_abstract_algebra" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_anatomy.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_anatomy.yaml similarity index 53% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_anatomy.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_anatomy.yaml index 9205bd31..2790a593 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_anatomy.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_anatomy.yaml @@ -1,4 +1,6 @@ "dataset_name": "anatomy" -"description": "The following are multiple choice questions (with answers) about anatomy.\n\n" +"description": "The following are multiple choice questions (with answers) about anatomy.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_anatomy" +"task": "mmlu_flan_n_shot_generative_anatomy" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_astronomy.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_astronomy.yaml similarity index 52% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_astronomy.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_astronomy.yaml index dcd41de7..199e9560 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_astronomy.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_astronomy.yaml @@ -1,4 +1,6 @@ "dataset_name": "astronomy" -"description": "The following are multiple choice questions (with answers) about astronomy.\n\n" +"description": "The following are multiple choice questions (with answers) about astronomy.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_astronomy" +"task": "mmlu_flan_n_shot_generative_astronomy" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_business_ethics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_business_ethics.yaml similarity index 51% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_business_ethics.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_business_ethics.yaml index 2b57abf3..4a346cd5 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_business_ethics.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_business_ethics.yaml @@ -1,4 +1,6 @@ "dataset_name": "business_ethics" -"description": "The following are multiple choice questions (with answers) about business ethics.\n\n" +"description": "The following are multiple choice questions (with answers) about business\ + \ ethics.\n\n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_business_ethics" +"task": "mmlu_flan_n_shot_generative_business_ethics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_clinical_knowledge.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_clinical_knowledge.yaml similarity index 50% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_clinical_knowledge.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_clinical_knowledge.yaml index 5b5da42e..8e27f055 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_clinical_knowledge.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_clinical_knowledge.yaml @@ -1,4 +1,6 @@ "dataset_name": "clinical_knowledge" -"description": "The following are multiple choice questions (with answers) about clinical knowledge.\n\n" +"description": "The following are multiple choice questions (with answers) about clinical\ + \ knowledge.\n\n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_clinical_knowledge" +"task": "mmlu_flan_n_shot_generative_clinical_knowledge" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_college_biology.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_biology.yaml similarity index 51% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_college_biology.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_biology.yaml index c8cc429d..91a91c67 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_college_biology.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_biology.yaml @@ -1,4 +1,6 @@ "dataset_name": "college_biology" -"description": "The following are multiple choice questions (with answers) about college biology.\n\n" +"description": "The following are multiple choice questions (with answers) about college\ + \ biology.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_college_biology" +"task": "mmlu_flan_n_shot_generative_college_biology" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_college_chemistry.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_chemistry.yaml similarity index 51% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_college_chemistry.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_chemistry.yaml index 8be3a04d..8d3ddf27 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_college_chemistry.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_chemistry.yaml @@ -1,4 +1,6 @@ "dataset_name": "college_chemistry" -"description": "The following are multiple choice questions (with answers) about college chemistry.\n\n" +"description": "The following are multiple choice questions (with answers) about college\ + \ chemistry.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_college_chemistry" +"task": "mmlu_flan_n_shot_generative_college_chemistry" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_computer_science.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_computer_science.yaml new file mode 100644 index 00000000..1a37e75a --- /dev/null +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/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_n_shot_generative_stem" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_generative_college_computer_science" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_college_mathematics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_mathematics.yaml similarity index 50% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_college_mathematics.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_mathematics.yaml index a9fe1814..6ef3d578 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_college_mathematics.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_mathematics.yaml @@ -1,4 +1,6 @@ "dataset_name": "college_mathematics" -"description": "The following are multiple choice questions (with answers) about college mathematics.\n\n" +"description": "The following are multiple choice questions (with answers) about college\ + \ mathematics.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_college_mathematics" +"task": "mmlu_flan_n_shot_generative_college_mathematics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_college_medicine.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_medicine.yaml similarity index 51% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_college_medicine.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_medicine.yaml index 6f5d767a..2bd3c63e 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_college_medicine.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_medicine.yaml @@ -1,4 +1,6 @@ "dataset_name": "college_medicine" -"description": "The following are multiple choice questions (with answers) about college medicine.\n\n" +"description": "The following are multiple choice questions (with answers) about college\ + \ medicine.\n\n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_college_medicine" +"task": "mmlu_flan_n_shot_generative_college_medicine" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_college_physics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_physics.yaml similarity index 51% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_college_physics.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_physics.yaml index c6c22a40..174a4eee 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_college_physics.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_physics.yaml @@ -1,4 +1,6 @@ "dataset_name": "college_physics" -"description": "The following are multiple choice questions (with answers) about college physics.\n\n" +"description": "The following are multiple choice questions (with answers) about college\ + \ physics.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_college_physics" +"task": "mmlu_flan_n_shot_generative_college_physics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_computer_security.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_computer_security.yaml similarity index 51% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_computer_security.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_computer_security.yaml index 96bccc15..b5eed81a 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_computer_security.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_computer_security.yaml @@ -1,4 +1,6 @@ "dataset_name": "computer_security" -"description": "The following are multiple choice questions (with answers) about computer security.\n\n" +"description": "The following are multiple choice questions (with answers) about computer\ + \ security.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_computer_security" +"task": "mmlu_flan_n_shot_generative_computer_security" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_conceptual_physics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_conceptual_physics.yaml similarity index 50% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_conceptual_physics.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_conceptual_physics.yaml index 2fc15ed0..c165c498 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_conceptual_physics.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_conceptual_physics.yaml @@ -1,4 +1,6 @@ "dataset_name": "conceptual_physics" -"description": "The following are multiple choice questions (with answers) about conceptual physics.\n\n" +"description": "The following are multiple choice questions (with answers) about conceptual\ + \ physics.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_conceptual_physics" +"task": "mmlu_flan_n_shot_generative_conceptual_physics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_econometrics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_econometrics.yaml similarity index 50% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_econometrics.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_econometrics.yaml index 07dbf921..94ca68fe 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_econometrics.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_econometrics.yaml @@ -1,4 +1,6 @@ "dataset_name": "econometrics" -"description": "The following are multiple choice questions (with answers) about econometrics.\n\n" +"description": "The following are multiple choice questions (with answers) about econometrics.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_social_sciences" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_econometrics" +"task": "mmlu_flan_n_shot_generative_econometrics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_electrical_engineering.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_electrical_engineering.yaml similarity index 50% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_electrical_engineering.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_electrical_engineering.yaml index 94492b11..7f72ffca 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_electrical_engineering.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_electrical_engineering.yaml @@ -1,4 +1,6 @@ "dataset_name": "electrical_engineering" -"description": "The following are multiple choice questions (with answers) about electrical engineering.\n\n" +"description": "The following are multiple choice questions (with answers) about electrical\ + \ engineering.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_electrical_engineering" +"task": "mmlu_flan_n_shot_generative_electrical_engineering" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_elementary_mathematics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_elementary_mathematics.yaml similarity index 50% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_elementary_mathematics.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_elementary_mathematics.yaml index 2cc56ef8..091c7a90 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_elementary_mathematics.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_elementary_mathematics.yaml @@ -1,4 +1,6 @@ "dataset_name": "elementary_mathematics" -"description": "The following are multiple choice questions (with answers) about elementary mathematics.\n\n" +"description": "The following are multiple choice questions (with answers) about elementary\ + \ mathematics.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_elementary_mathematics" +"task": "mmlu_flan_n_shot_generative_elementary_mathematics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_formal_logic.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_formal_logic.yaml similarity index 50% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_formal_logic.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_formal_logic.yaml index 17e28205..64a3d11d 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_formal_logic.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_formal_logic.yaml @@ -1,4 +1,6 @@ "dataset_name": "formal_logic" -"description": "The following are multiple choice questions (with answers) about formal logic.\n\n" +"description": "The following are multiple choice questions (with answers) about formal\ + \ logic.\n\n" +"group": "mmlu_flan_n_shot_generative_humanities" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_formal_logic" +"task": "mmlu_flan_n_shot_generative_formal_logic" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_global_facts.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_global_facts.yaml similarity index 51% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_global_facts.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_global_facts.yaml index 2b3cb863..1ec7cc2c 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_global_facts.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_global_facts.yaml @@ -1,4 +1,6 @@ "dataset_name": "global_facts" -"description": "The following are multiple choice questions (with answers) about global facts.\n\n" +"description": "The following are multiple choice questions (with answers) about global\ + \ facts.\n\n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_global_facts" +"task": "mmlu_flan_n_shot_generative_global_facts" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_biology.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_biology.yaml similarity index 50% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_biology.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_biology.yaml index ed3e70b2..2b2e15a0 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_biology.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_biology.yaml @@ -1,4 +1,6 @@ "dataset_name": "high_school_biology" -"description": "The following are multiple choice questions (with answers) about high school biology.\n\n" +"description": "The following are multiple choice questions (with answers) about high\ + \ school biology.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_high_school_biology" +"task": "mmlu_flan_n_shot_generative_high_school_biology" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_chemistry.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_chemistry.yaml similarity index 50% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_chemistry.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_chemistry.yaml index 729d37fa..549aea5f 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_chemistry.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_chemistry.yaml @@ -1,4 +1,6 @@ "dataset_name": "high_school_chemistry" -"description": "The following are multiple choice questions (with answers) about high school chemistry.\n\n" +"description": "The following are multiple choice questions (with answers) about high\ + \ school chemistry.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_high_school_chemistry" +"task": "mmlu_flan_n_shot_generative_high_school_chemistry" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_computer_science.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_computer_science.yaml new file mode 100644 index 00000000..bdbcfe93 --- /dev/null +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_computer_science.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_computer_science" +"description": "The following are multiple choice questions (with answers) about high\ + \ school computer science.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_generative_high_school_computer_science" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_european_history.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_european_history.yaml new file mode 100644 index 00000000..855db984 --- /dev/null +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_european_history.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_european_history" +"description": "The following are multiple choice questions (with answers) about high\ + \ school european history.\n\n" +"group": "mmlu_flan_n_shot_generative_humanities" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_generative_high_school_european_history" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_geography.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_geography.yaml new file mode 100644 index 00000000..6744db9f --- /dev/null +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_geography.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_geography" +"description": "The following are multiple choice questions (with answers) about high\ + \ school geography.\n\n" +"group": "mmlu_flan_n_shot_generative_social_sciences" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_generative_high_school_geography" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_government_and_politics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_government_and_politics.yaml new file mode 100644 index 00000000..c51d372f --- /dev/null +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_government_and_politics.yaml @@ -0,0 +1,6 @@ +"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_flan_n_shot_generative_social_sciences" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_generative_high_school_government_and_politics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_macroeconomics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_macroeconomics.yaml new file mode 100644 index 00000000..d0bf0220 --- /dev/null +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_macroeconomics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_macroeconomics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school macroeconomics.\n\n" +"group": "mmlu_flan_n_shot_generative_social_sciences" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_generative_high_school_macroeconomics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_mathematics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_mathematics.yaml similarity index 50% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_mathematics.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_mathematics.yaml index 83244ebb..958ab60b 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_mathematics.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_mathematics.yaml @@ -1,4 +1,6 @@ "dataset_name": "high_school_mathematics" -"description": "The following are multiple choice questions (with answers) about high school mathematics.\n\n" +"description": "The following are multiple choice questions (with answers) about high\ + \ school mathematics.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_high_school_mathematics" +"task": "mmlu_flan_n_shot_generative_high_school_mathematics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_microeconomics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_microeconomics.yaml new file mode 100644 index 00000000..8eaf6059 --- /dev/null +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_microeconomics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_microeconomics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school microeconomics.\n\n" +"group": "mmlu_flan_n_shot_generative_social_sciences" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_generative_high_school_microeconomics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_physics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_physics.yaml similarity index 50% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_physics.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_physics.yaml index 25c32369..208bf5b9 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_physics.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_physics.yaml @@ -1,4 +1,6 @@ "dataset_name": "high_school_physics" -"description": "The following are multiple choice questions (with answers) about high school physics.\n\n" +"description": "The following are multiple choice questions (with answers) about high\ + \ school physics.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_high_school_physics" +"task": "mmlu_flan_n_shot_generative_high_school_physics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_psychology.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_psychology.yaml new file mode 100644 index 00000000..c11af0a6 --- /dev/null +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_psychology.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_psychology" +"description": "The following are multiple choice questions (with answers) about high\ + \ school psychology.\n\n" +"group": "mmlu_flan_n_shot_generative_social_sciences" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_generative_high_school_psychology" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_statistics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_statistics.yaml similarity index 50% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_statistics.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_statistics.yaml index fa9075f5..a5babfe5 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_statistics.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_statistics.yaml @@ -1,4 +1,6 @@ "dataset_name": "high_school_statistics" -"description": "The following are multiple choice questions (with answers) about high school statistics.\n\n" +"description": "The following are multiple choice questions (with answers) about high\ + \ school statistics.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_high_school_statistics" +"task": "mmlu_flan_n_shot_generative_high_school_statistics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_us_history.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_us_history.yaml new file mode 100644 index 00000000..10306c2e --- /dev/null +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_us_history.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_us_history" +"description": "The following are multiple choice questions (with answers) about high\ + \ school us history.\n\n" +"group": "mmlu_flan_n_shot_generative_humanities" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_generative_high_school_us_history" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_world_history.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_world_history.yaml new file mode 100644 index 00000000..db7c1c11 --- /dev/null +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_world_history.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_world_history" +"description": "The following are multiple choice questions (with answers) about high\ + \ school world history.\n\n" +"group": "mmlu_flan_n_shot_generative_humanities" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_generative_high_school_world_history" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_human_aging.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_human_aging.yaml similarity index 51% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_human_aging.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_human_aging.yaml index d70d5e85..a3935d43 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_human_aging.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_human_aging.yaml @@ -1,4 +1,6 @@ "dataset_name": "human_aging" -"description": "The following are multiple choice questions (with answers) about human aging.\n\n" +"description": "The following are multiple choice questions (with answers) about human\ + \ aging.\n\n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_human_aging" +"task": "mmlu_flan_n_shot_generative_human_aging" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_human_sexuality.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_human_sexuality.yaml new file mode 100644 index 00000000..4672103c --- /dev/null +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/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_n_shot_generative_social_sciences" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_generative_human_sexuality" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_international_law.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_international_law.yaml similarity index 50% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_international_law.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_international_law.yaml index 03fab6ef..be63a3c5 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_international_law.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_international_law.yaml @@ -1,4 +1,6 @@ "dataset_name": "international_law" -"description": "The following are multiple choice questions (with answers) about international law.\n\n" +"description": "The following are multiple choice questions (with answers) about international\ + \ law.\n\n" +"group": "mmlu_flan_n_shot_generative_humanities" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_international_law" +"task": "mmlu_flan_n_shot_generative_international_law" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_jurisprudence.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_jurisprudence.yaml similarity index 50% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_jurisprudence.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_jurisprudence.yaml index bb6bfc6f..8e0a8191 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_jurisprudence.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_jurisprudence.yaml @@ -1,4 +1,6 @@ "dataset_name": "jurisprudence" -"description": "The following are multiple choice questions (with answers) about jurisprudence.\n\n" +"description": "The following are multiple choice questions (with answers) about jurisprudence.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_humanities" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_jurisprudence" +"task": "mmlu_flan_n_shot_generative_jurisprudence" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_logical_fallacies.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_logical_fallacies.yaml similarity index 50% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_logical_fallacies.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_logical_fallacies.yaml index d57576cd..8c920895 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_logical_fallacies.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_logical_fallacies.yaml @@ -1,4 +1,6 @@ "dataset_name": "logical_fallacies" -"description": "The following are multiple choice questions (with answers) about logical fallacies.\n\n" +"description": "The following are multiple choice questions (with answers) about logical\ + \ fallacies.\n\n" +"group": "mmlu_flan_n_shot_generative_humanities" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_logical_fallacies" +"task": "mmlu_flan_n_shot_generative_logical_fallacies" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_machine_learning.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_machine_learning.yaml similarity index 51% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_machine_learning.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_machine_learning.yaml index 2c586922..f9aad4df 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_machine_learning.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_machine_learning.yaml @@ -1,4 +1,6 @@ "dataset_name": "machine_learning" -"description": "The following are multiple choice questions (with answers) about machine learning.\n\n" +"description": "The following are multiple choice questions (with answers) about machine\ + \ learning.\n\n" +"group": "mmlu_flan_n_shot_generative_stem" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_machine_learning" +"task": "mmlu_flan_n_shot_generative_machine_learning" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_management.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_management.yaml similarity index 52% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_management.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_management.yaml index 66b14f7f..4709c403 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_management.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_management.yaml @@ -1,4 +1,6 @@ "dataset_name": "management" -"description": "The following are multiple choice questions (with answers) about management.\n\n" +"description": "The following are multiple choice questions (with answers) about management.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_management" +"task": "mmlu_flan_n_shot_generative_management" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_marketing.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_marketing.yaml similarity index 52% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_marketing.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_marketing.yaml index aacee467..808f1c78 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_marketing.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_marketing.yaml @@ -1,4 +1,6 @@ "dataset_name": "marketing" -"description": "The following are multiple choice questions (with answers) about marketing.\n\n" +"description": "The following are multiple choice questions (with answers) about marketing.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_marketing" +"task": "mmlu_flan_n_shot_generative_marketing" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_medical_genetics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_medical_genetics.yaml similarity index 51% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_medical_genetics.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_medical_genetics.yaml index 72d607fb..3c0a99f8 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_medical_genetics.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_medical_genetics.yaml @@ -1,4 +1,6 @@ "dataset_name": "medical_genetics" -"description": "The following are multiple choice questions (with answers) about medical genetics.\n\n" +"description": "The following are multiple choice questions (with answers) about medical\ + \ genetics.\n\n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_medical_genetics" +"task": "mmlu_flan_n_shot_generative_medical_genetics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_miscellaneous.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_miscellaneous.yaml similarity index 51% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_miscellaneous.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_miscellaneous.yaml index 14db1ba8..c363f1bd 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_miscellaneous.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_miscellaneous.yaml @@ -1,4 +1,6 @@ "dataset_name": "miscellaneous" -"description": "The following are multiple choice questions (with answers) about miscellaneous.\n\n" +"description": "The following are multiple choice questions (with answers) about miscellaneous.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_miscellaneous" +"task": "mmlu_flan_n_shot_generative_miscellaneous" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_moral_disputes.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_moral_disputes.yaml similarity index 50% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_moral_disputes.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_moral_disputes.yaml index 0beccf44..d710816f 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_moral_disputes.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_moral_disputes.yaml @@ -1,4 +1,6 @@ "dataset_name": "moral_disputes" -"description": "The following are multiple choice questions (with answers) about moral disputes.\n\n" +"description": "The following are multiple choice questions (with answers) about moral\ + \ disputes.\n\n" +"group": "mmlu_flan_n_shot_generative_humanities" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_moral_disputes" +"task": "mmlu_flan_n_shot_generative_moral_disputes" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_moral_scenarios.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_moral_scenarios.yaml similarity index 50% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_moral_scenarios.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_moral_scenarios.yaml index 4d884b63..7d26770c 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_moral_scenarios.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_moral_scenarios.yaml @@ -1,4 +1,6 @@ "dataset_name": "moral_scenarios" -"description": "The following are multiple choice questions (with answers) about moral scenarios.\n\n" +"description": "The following are multiple choice questions (with answers) about moral\ + \ scenarios.\n\n" +"group": "mmlu_flan_n_shot_generative_humanities" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_moral_scenarios" +"task": "mmlu_flan_n_shot_generative_moral_scenarios" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_nutrition.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_nutrition.yaml similarity index 52% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_nutrition.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_nutrition.yaml index ba1fdf61..677185b3 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_nutrition.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_nutrition.yaml @@ -1,4 +1,6 @@ "dataset_name": "nutrition" -"description": "The following are multiple choice questions (with answers) about nutrition.\n\n" +"description": "The following are multiple choice questions (with answers) about nutrition.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_nutrition" +"task": "mmlu_flan_n_shot_generative_nutrition" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_philosophy.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_philosophy.yaml similarity index 51% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_philosophy.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_philosophy.yaml index 21645e77..8c4b6f22 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_philosophy.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_philosophy.yaml @@ -1,4 +1,6 @@ "dataset_name": "philosophy" -"description": "The following are multiple choice questions (with answers) about philosophy.\n\n" +"description": "The following are multiple choice questions (with answers) about philosophy.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_humanities" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_philosophy" +"task": "mmlu_flan_n_shot_generative_philosophy" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_prehistory.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_prehistory.yaml similarity index 51% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_prehistory.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_prehistory.yaml index 74d9f30c..64065a6f 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_prehistory.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_prehistory.yaml @@ -1,4 +1,6 @@ "dataset_name": "prehistory" -"description": "The following are multiple choice questions (with answers) about prehistory.\n\n" +"description": "The following are multiple choice questions (with answers) about prehistory.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_humanities" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_prehistory" +"task": "mmlu_flan_n_shot_generative_prehistory" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_professional_accounting.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_professional_accounting.yaml new file mode 100644 index 00000000..4fb590f8 --- /dev/null +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_professional_accounting.yaml @@ -0,0 +1,6 @@ +"dataset_name": "professional_accounting" +"description": "The following are multiple choice questions (with answers) about professional\ + \ accounting.\n\n" +"group": "mmlu_flan_n_shot_generative_other" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_generative_professional_accounting" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_professional_law.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_professional_law.yaml similarity index 50% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_professional_law.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_professional_law.yaml index 15fdad65..581b9da7 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_professional_law.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_professional_law.yaml @@ -1,4 +1,6 @@ "dataset_name": "professional_law" -"description": "The following are multiple choice questions (with answers) about professional law.\n\n" +"description": "The following are multiple choice questions (with answers) about professional\ + \ law.\n\n" +"group": "mmlu_flan_n_shot_generative_humanities" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_professional_law" +"task": "mmlu_flan_n_shot_generative_professional_law" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_professional_medicine.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_professional_medicine.yaml similarity index 50% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_professional_medicine.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_professional_medicine.yaml index 1bcc6a9a..c49f9119 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_professional_medicine.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_professional_medicine.yaml @@ -1,4 +1,6 @@ "dataset_name": "professional_medicine" -"description": "The following are multiple choice questions (with answers) about professional medicine.\n\n" +"description": "The following are multiple choice questions (with answers) about professional\ + \ medicine.\n\n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_professional_medicine" +"task": "mmlu_flan_n_shot_generative_professional_medicine" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_professional_psychology.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_professional_psychology.yaml new file mode 100644 index 00000000..2d6f441d --- /dev/null +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/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_n_shot_generative_social_sciences" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_generative_professional_psychology" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_public_relations.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_public_relations.yaml new file mode 100644 index 00000000..3d330fc9 --- /dev/null +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_public_relations.yaml @@ -0,0 +1,6 @@ +"dataset_name": "public_relations" +"description": "The following are multiple choice questions (with answers) about public\ + \ relations.\n\n" +"group": "mmlu_flan_n_shot_generative_social_sciences" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_generative_public_relations" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_security_studies.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_security_studies.yaml new file mode 100644 index 00000000..8bbe963f --- /dev/null +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_security_studies.yaml @@ -0,0 +1,6 @@ +"dataset_name": "security_studies" +"description": "The following are multiple choice questions (with answers) about security\ + \ studies.\n\n" +"group": "mmlu_flan_n_shot_generative_social_sciences" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_generative_security_studies" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_sociology.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_sociology.yaml similarity index 50% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_sociology.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_sociology.yaml index c583cf24..0cc86bcc 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_sociology.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_sociology.yaml @@ -1,4 +1,6 @@ "dataset_name": "sociology" -"description": "The following are multiple choice questions (with answers) about sociology.\n\n" +"description": "The following are multiple choice questions (with answers) about sociology.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_social_sciences" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_sociology" +"task": "mmlu_flan_n_shot_generative_sociology" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_us_foreign_policy.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_us_foreign_policy.yaml new file mode 100644 index 00000000..12ac4f36 --- /dev/null +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_us_foreign_policy.yaml @@ -0,0 +1,6 @@ +"dataset_name": "us_foreign_policy" +"description": "The following are multiple choice questions (with answers) about us\ + \ foreign policy.\n\n" +"group": "mmlu_flan_n_shot_generative_social_sciences" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_generative_us_foreign_policy" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_virology.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_virology.yaml similarity index 52% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_virology.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_virology.yaml index c2cafd9b..6e942396 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_virology.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_virology.yaml @@ -1,4 +1,6 @@ "dataset_name": "virology" -"description": "The following are multiple choice questions (with answers) about virology.\n\n" +"description": "The following are multiple choice questions (with answers) about virology.\n\ + \n" +"group": "mmlu_flan_n_shot_generative_other" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_virology" +"task": "mmlu_flan_n_shot_generative_virology" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_world_religions.yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_world_religions.yaml similarity index 50% rename from lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_world_religions.yaml rename to lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_world_religions.yaml index b1d1de0f..30f97421 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_world_religions.yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_world_religions.yaml @@ -1,4 +1,6 @@ "dataset_name": "world_religions" -"description": "The following are multiple choice questions (with answers) about world religions.\n\n" +"description": "The following are multiple choice questions (with answers) about world\ + \ religions.\n\n" +"group": "mmlu_flan_n_shot_generative_humanities" "include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_world_religions" +"task": "mmlu_flan_n_shot_generative_world_religions" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_college_computer_science.yaml b/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_college_computer_science.yaml deleted file mode 100644 index 506ee760..00000000 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_college_computer_science.yaml +++ /dev/null @@ -1,4 +0,0 @@ -"dataset_name": "college_computer_science" -"description": "The following are multiple choice questions (with answers) about college computer science.\n\n" -"include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_college_computer_science" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_computer_science.yaml b/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_computer_science.yaml deleted file mode 100644 index 7003e94c..00000000 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_computer_science.yaml +++ /dev/null @@ -1,4 +0,0 @@ -"dataset_name": "high_school_computer_science" -"description": "The following are multiple choice questions (with answers) about high school computer science.\n\n" -"include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_high_school_computer_science" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_european_history.yaml b/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_european_history.yaml deleted file mode 100644 index 0ad96085..00000000 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_european_history.yaml +++ /dev/null @@ -1,4 +0,0 @@ -"dataset_name": "high_school_european_history" -"description": "The following are multiple choice questions (with answers) about high school european history.\n\n" -"include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_high_school_european_history" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_geography.yaml b/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_geography.yaml deleted file mode 100644 index f26e8bc6..00000000 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_geography.yaml +++ /dev/null @@ -1,4 +0,0 @@ -"dataset_name": "high_school_geography" -"description": "The following are multiple choice questions (with answers) about high school geography.\n\n" -"include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_high_school_geography" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_government_and_politics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_government_and_politics.yaml deleted file mode 100644 index 523e278d..00000000 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_government_and_politics.yaml +++ /dev/null @@ -1,4 +0,0 @@ -"dataset_name": "high_school_government_and_politics" -"description": "The following are multiple choice questions (with answers) about high school government and politics.\n\n" -"include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_high_school_government_and_politics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_macroeconomics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_macroeconomics.yaml deleted file mode 100644 index 6b08a4fc..00000000 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_macroeconomics.yaml +++ /dev/null @@ -1,4 +0,0 @@ -"dataset_name": "high_school_macroeconomics" -"description": "The following are multiple choice questions (with answers) about high school macroeconomics.\n\n" -"include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_high_school_macroeconomics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_microeconomics.yaml b/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_microeconomics.yaml deleted file mode 100644 index 982f3f08..00000000 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_microeconomics.yaml +++ /dev/null @@ -1,4 +0,0 @@ -"dataset_name": "high_school_microeconomics" -"description": "The following are multiple choice questions (with answers) about high school microeconomics.\n\n" -"include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_high_school_microeconomics" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_psychology.yaml b/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_psychology.yaml deleted file mode 100644 index a6e431db..00000000 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_psychology.yaml +++ /dev/null @@ -1,4 +0,0 @@ -"dataset_name": "high_school_psychology" -"description": "The following are multiple choice questions (with answers) about high school psychology.\n\n" -"include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_high_school_psychology" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_us_history.yaml b/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_us_history.yaml deleted file mode 100644 index 094f95d0..00000000 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_us_history.yaml +++ /dev/null @@ -1,4 +0,0 @@ -"dataset_name": "high_school_us_history" -"description": "The following are multiple choice questions (with answers) about high school us history.\n\n" -"include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_high_school_us_history" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_world_history.yaml b/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_world_history.yaml deleted file mode 100644 index 6ffd6d08..00000000 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_high_school_world_history.yaml +++ /dev/null @@ -1,4 +0,0 @@ -"dataset_name": "high_school_world_history" -"description": "The following are multiple choice questions (with answers) about high school world history.\n\n" -"include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_high_school_world_history" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_human_sexuality.yaml b/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_human_sexuality.yaml deleted file mode 100644 index 39751188..00000000 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_human_sexuality.yaml +++ /dev/null @@ -1,4 +0,0 @@ -"dataset_name": "human_sexuality" -"description": "The following are multiple choice questions (with answers) about human sexuality.\n\n" -"include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_human_sexuality" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_professional_accounting.yaml b/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_professional_accounting.yaml deleted file mode 100644 index 9010995f..00000000 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_professional_accounting.yaml +++ /dev/null @@ -1,4 +0,0 @@ -"dataset_name": "professional_accounting" -"description": "The following are multiple choice questions (with answers) about professional accounting.\n\n" -"include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_professional_accounting" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_professional_psychology.yaml b/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_professional_psychology.yaml deleted file mode 100644 index 9144805c..00000000 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_professional_psychology.yaml +++ /dev/null @@ -1,4 +0,0 @@ -"dataset_name": "professional_psychology" -"description": "The following are multiple choice questions (with answers) about professional psychology.\n\n" -"include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_professional_psychology" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_public_relations.yaml b/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_public_relations.yaml deleted file mode 100644 index 0b4adc04..00000000 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_public_relations.yaml +++ /dev/null @@ -1,4 +0,0 @@ -"dataset_name": "public_relations" -"description": "The following are multiple choice questions (with answers) about public relations.\n\n" -"include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_public_relations" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_security_studies.yaml b/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_security_studies.yaml deleted file mode 100644 index 2f4178f0..00000000 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_security_studies.yaml +++ /dev/null @@ -1,4 +0,0 @@ -"dataset_name": "security_studies" -"description": "The following are multiple choice questions (with answers) about security studies.\n\n" -"include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_security_studies" diff --git a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_us_foreign_policy.yaml b/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_us_foreign_policy.yaml deleted file mode 100644 index f41d3c27..00000000 --- a/lm_eval/tasks/mmlu/flan_n_shot/mmlu_log_us_foreign_policy.yaml +++ /dev/null @@ -1,4 +0,0 @@ -"dataset_name": "us_foreign_policy" -"description": "The following are multiple choice questions (with answers) about us foreign policy.\n\n" -"include": "_mmlu_flan_loglikelihood_template_yaml" -"task": "mmlu_flan_n_shot_loglikelihood_us_foreign_policy" -- GitLab From c64bf9a98c7d2526674ff23bb59823217e2ead38 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Tue, 17 Oct 2023 14:42:37 +0000 Subject: [PATCH 040/105] change all mentions of `greedy_until` to `generate_until` --- lm_eval/api/task.py | 18 ++--- lm_eval/benchmarks/__init__.py | 76 ------------------- lm_eval/models/anthropic_llms.py | 6 +- lm_eval/models/dummy.py | 2 +- lm_eval/models/huggingface.py | 4 +- lm_eval/models/openai_completions.py | 6 +- lm_eval/models/textsynth.py | 16 ++-- lm_eval/tasks/__init__.py | 2 +- lm_eval/tasks/babi/babi.yaml | 2 +- .../_flan_cot_fewshot_template_yaml | 2 +- .../_flan_cot_zeroshot_template_yaml | 2 +- .../flan_fewshot/_flan_fewshot_template_yaml | 2 +- .../_flan_zeroshot_template_yaml | 2 +- .../flan/yaml_templates/cot_template_yaml | 2 +- .../flan/yaml_templates/held_in_template_yaml | 2 +- .../{ => tasks}/benchmarks/minerva_math.yaml | 0 lm_eval/tasks/benchmarks/t0_eval.yaml | 20 ++--- lm_eval/tasks/bigbench/generate_tasks.py | 4 +- .../abstract_narrative_understanding.yaml | 4 + .../bigbench/generate_until/anachronisms.yaml | 4 + .../generate_until/analogical_similarity.yaml | 4 + .../generate_until/analytic_entailment.yaml | 4 + .../bigbench/generate_until/arithmetic.yaml | 4 + .../ascii_word_recognition.yaml | 4 + .../authorship_verification.yaml | 4 + .../generate_until/auto_categorization.yaml | 4 + .../generate_until/auto_debugging.yaml | 4 + .../generate_until/bbq_lite_json.yaml | 4 + .../bridging_anaphora_resolution_barqa.yaml | 4 + .../generate_until/causal_judgment.yaml | 4 + .../generate_until/cause_and_effect.yaml | 4 + .../generate_until/checkmate_in_one.yaml | 4 + .../generate_until/chess_state_tracking.yaml | 4 + .../chinese_remainder_theorem.yaml | 4 + .../cifar10_classification.yaml | 4 + .../generate_until/code_line_description.yaml | 4 + .../bigbench/generate_until/codenames.yaml | 4 + .../tasks/bigbench/generate_until/color.yaml | 4 + .../generate_until/common_morpheme.yaml | 4 + .../conceptual_combinations.yaml | 4 + .../generate_until/conlang_translation.yaml | 4 + ...extual_parametric_knowledge_conflicts.yaml | 4 + .../generate_until/crash_blossom.yaml | 4 + .../bigbench/generate_until/crass_ai.yaml | 4 + .../generate_until/cryobiology_spanish.yaml | 4 + .../bigbench/generate_until/cryptonite.yaml | 4 + .../generate_until/cs_algorithms.yaml | 4 + .../generate_until/dark_humor_detection.yaml | 4 + .../generate_until/date_understanding.yaml | 4 + .../generate_until/disambiguation_qa.yaml | 4 + .../discourse_marker_prediction.yaml | 4 + .../bigbench/generate_until/disfl_qa.yaml | 4 + .../generate_until/dyck_languages.yaml | 4 + .../generate_until/elementary_math_qa.yaml | 4 + .../bigbench/generate_until/emoji_movie.yaml | 4 + .../emojis_emotion_prediction.yaml | 4 + .../generate_until/empirical_judgments.yaml | 4 + .../generate_until/english_proverbs.yaml | 4 + .../english_russian_proverbs.yaml | 4 + .../generate_until/entailed_polarity.yaml | 4 + .../entailed_polarity_hindi.yaml | 4 + .../generate_until/epistemic_reasoning.yaml | 4 + .../evaluating_information_essentiality.yaml | 4 + .../bigbench/generate_until/fact_checker.yaml | 4 + .../generate_until/fantasy_reasoning.yaml | 4 + .../bigbench/generate_until/few_shot_nlg.yaml | 4 + .../figure_of_speech_detection.yaml | 4 + .../formal_fallacies_syllogisms_negation.yaml | 4 + .../tasks/bigbench/generate_until/gem.yaml | 4 + .../gender_inclusive_sentences_german.yaml | 4 + .../generate_until/general_knowledge.yaml | 4 + .../generate_until/geometric_shapes.yaml | 4 + .../generate_until/goal_step_wikihow.yaml | 4 + .../gre_reading_comprehension.yaml | 4 + .../generate_until/hhh_alignment.yaml | 4 + .../hindi_question_answering.yaml | 4 + .../generate_until/hindu_knowledge.yaml | 4 + .../generate_until/hinglish_toxicity.yaml | 4 + .../generate_until/human_organs_senses.yaml | 4 + .../bigbench/generate_until/hyperbaton.yaml | 4 + .../identify_math_theorems.yaml | 4 + .../generate_until/identify_odd_metaphor.yaml | 4 + .../bigbench/generate_until/implicatures.yaml | 4 + .../generate_until/implicit_relations.yaml | 4 + .../generate_until/intent_recognition.yaml | 4 + .../international_phonetic_alphabet_nli.yaml | 4 + ...ional_phonetic_alphabet_transliterate.yaml | 4 + .../generate_until/intersect_geometry.yaml | 4 + .../generate_until/irony_identification.yaml | 4 + .../bigbench/generate_until/kanji_ascii.yaml | 4 + .../bigbench/generate_until/kannada.yaml | 4 + .../generate_until/key_value_maps.yaml | 4 + .../generate_until/known_unknowns.yaml | 4 + .../generate_until/language_games.yaml | 4 + .../language_identification.yaml | 4 + .../generate_until/linguistic_mappings.yaml | 4 + .../generate_until/linguistics_puzzles.yaml | 4 + .../generate_until/list_functions.yaml | 4 + .../generate_until/logic_grid_puzzle.yaml | 4 + .../bigbench/generate_until/logical_args.yaml | 4 + .../generate_until/logical_deduction.yaml | 4 + .../logical_fallacy_detection.yaml | 4 + .../generate_until/logical_sequence.yaml | 4 + .../mathematical_induction.yaml | 4 + .../bigbench/generate_until/matrixshapes.yaml | 4 + .../generate_until/metaphor_boolean.yaml | 4 + .../metaphor_understanding.yaml | 4 + .../generate_until/minute_mysteries_qa.yaml | 4 + .../generate_until/misconceptions.yaml | 4 + .../misconceptions_russian.yaml | 4 + .../bigbench/generate_until/mnist_ascii.yaml | 4 + .../generate_until/modified_arithmetic.yaml | 4 + .../generate_until/moral_permissibility.yaml | 4 + .../movie_dialog_same_or_different.yaml | 4 + .../generate_until/movie_recommendation.yaml | 4 + .../generate_until/mult_data_wrangling.yaml | 4 + .../bigbench/generate_until/multiemo.yaml | 4 + .../generate_until/natural_instructions.yaml | 4 + .../bigbench/generate_until/navigate.yaml | 4 + .../nonsense_words_grammar.yaml | 4 + .../generate_until/novel_concepts.yaml | 4 + .../generate_until/object_counting.yaml | 4 + .../bigbench/generate_until/odd_one_out.yaml | 4 + .../bigbench/generate_until/operators.yaml | 4 + .../paragraph_segmentation.yaml | 4 + .../bigbench/generate_until/parsinlu_qa.yaml | 4 + .../parsinlu_reading_comprehension.yaml | 4 + .../generate_until/penguins_in_a_table.yaml | 4 + .../generate_until/periodic_elements.yaml | 4 + .../generate_until/persian_idioms.yaml | 4 + .../generate_until/phrase_relatedness.yaml | 4 + .../generate_until/physical_intuition.yaml | 4 + .../bigbench/generate_until/physics.yaml | 4 + .../generate_until/physics_questions.yaml | 4 + .../play_dialog_same_or_different.yaml | 4 + .../polish_sequence_labeling.yaml | 4 + .../presuppositions_as_nli.yaml | 4 + .../bigbench/generate_until/qa_wikidata.yaml | 4 + .../generate_until/question_selection.yaml | 4 + .../generate_until/real_or_fake_text.yaml | 4 + .../reasoning_about_colored_objects.yaml | 4 + .../generate_until/repeat_copy_logic.yaml | 4 + .../bigbench/generate_until/rephrase.yaml | 4 + .../bigbench/generate_until/riddle_sense.yaml | 4 + .../bigbench/generate_until/ruin_names.yaml | 4 + .../salient_translation_error_detection.yaml | 4 + .../scientific_press_release.yaml | 4 + .../semantic_parsing_in_context_sparc.yaml | 4 + .../semantic_parsing_spider.yaml | 4 + .../generate_until/sentence_ambiguity.yaml | 4 + .../similarities_abstraction.yaml | 4 + .../generate_until/simp_turing_concept.yaml | 4 + .../simple_arithmetic_json.yaml | 4 + ...imple_arithmetic_json_multiple_choice.yaml | 4 + .../simple_arithmetic_json_subtasks.yaml | 4 + ...mple_arithmetic_multiple_targets_json.yaml | 4 + .../simple_ethical_questions.yaml | 4 + .../generate_until/simple_text_editing.yaml | 4 + .../tasks/bigbench/generate_until/snarks.yaml | 4 + .../bigbench/generate_until/social_iqa.yaml | 4 + .../generate_until/social_support.yaml | 4 + .../generate_until/sports_understanding.yaml | 4 + .../generate_until/strange_stories.yaml | 4 + .../bigbench/generate_until/strategyqa.yaml | 4 + .../sufficient_information.yaml | 4 + .../bigbench/generate_until/suicide_risk.yaml | 4 + .../swahili_english_proverbs.yaml | 4 + .../swedish_to_german_proverbs.yaml | 4 + .../generate_until/symbol_interpretation.yaml | 4 + .../generate_until/temporal_sequences.yaml | 4 + .../tasks/bigbench/generate_until/tense.yaml | 4 + .../bigbench/generate_until/timedial.yaml | 4 + .../bigbench/generate_until/topical_chat.yaml | 4 + .../tracking_shuffled_objects.yaml | 4 + .../generate_until/understanding_fables.yaml | 4 + .../generate_until/undo_permutation.yaml | 4 + .../generate_until/unit_conversion.yaml | 4 + .../generate_until/unit_interpretation.yaml | 4 + .../unnatural_in_context_learning.yaml | 4 + .../vitaminc_fact_verification.yaml | 4 + .../generate_until/what_is_the_tao.yaml | 4 + .../generate_until/which_wiki_edit.yaml | 4 + .../bigbench/generate_until/winowhy.yaml | 4 + .../bigbench/generate_until/word_sorting.yaml | 4 + .../generate_until/word_unscrambling.yaml | 4 + .../abstract_narrative_understanding.yaml | 4 - .../bigbench/greedy_until/anachronisms.yaml | 4 - .../greedy_until/analogical_similarity.yaml | 4 - .../greedy_until/analytic_entailment.yaml | 4 - .../bigbench/greedy_until/arithmetic.yaml | 4 - .../greedy_until/ascii_word_recognition.yaml | 4 - .../greedy_until/authorship_verification.yaml | 4 - .../greedy_until/auto_categorization.yaml | 4 - .../bigbench/greedy_until/auto_debugging.yaml | 4 - .../bigbench/greedy_until/bbq_lite_json.yaml | 4 - .../bridging_anaphora_resolution_barqa.yaml | 4 - .../greedy_until/causal_judgment.yaml | 4 - .../greedy_until/cause_and_effect.yaml | 4 - .../greedy_until/checkmate_in_one.yaml | 4 - .../greedy_until/chess_state_tracking.yaml | 4 - .../chinese_remainder_theorem.yaml | 4 - .../greedy_until/cifar10_classification.yaml | 4 - .../greedy_until/code_line_description.yaml | 4 - .../bigbench/greedy_until/codenames.yaml | 4 - .../tasks/bigbench/greedy_until/color.yaml | 4 - .../greedy_until/common_morpheme.yaml | 4 - .../greedy_until/conceptual_combinations.yaml | 4 - .../greedy_until/conlang_translation.yaml | 4 - ...extual_parametric_knowledge_conflicts.yaml | 4 - .../bigbench/greedy_until/crash_blossom.yaml | 4 - .../tasks/bigbench/greedy_until/crass_ai.yaml | 4 - .../greedy_until/cryobiology_spanish.yaml | 4 - .../bigbench/greedy_until/cryptonite.yaml | 4 - .../bigbench/greedy_until/cs_algorithms.yaml | 4 - .../greedy_until/dark_humor_detection.yaml | 4 - .../greedy_until/date_understanding.yaml | 4 - .../greedy_until/disambiguation_qa.yaml | 4 - .../discourse_marker_prediction.yaml | 4 - .../tasks/bigbench/greedy_until/disfl_qa.yaml | 4 - .../bigbench/greedy_until/dyck_languages.yaml | 4 - .../greedy_until/elementary_math_qa.yaml | 4 - .../bigbench/greedy_until/emoji_movie.yaml | 4 - .../emojis_emotion_prediction.yaml | 4 - .../greedy_until/empirical_judgments.yaml | 4 - .../greedy_until/english_proverbs.yaml | 4 - .../english_russian_proverbs.yaml | 4 - .../greedy_until/entailed_polarity.yaml | 4 - .../greedy_until/entailed_polarity_hindi.yaml | 4 - .../greedy_until/epistemic_reasoning.yaml | 4 - .../evaluating_information_essentiality.yaml | 4 - .../bigbench/greedy_until/fact_checker.yaml | 4 - .../greedy_until/fantasy_reasoning.yaml | 4 - .../bigbench/greedy_until/few_shot_nlg.yaml | 4 - .../figure_of_speech_detection.yaml | 4 - .../formal_fallacies_syllogisms_negation.yaml | 4 - lm_eval/tasks/bigbench/greedy_until/gem.yaml | 4 - .../gender_inclusive_sentences_german.yaml | 4 - .../greedy_until/general_knowledge.yaml | 4 - .../greedy_until/geometric_shapes.yaml | 4 - .../greedy_until/goal_step_wikihow.yaml | 4 - .../gre_reading_comprehension.yaml | 4 - .../bigbench/greedy_until/hhh_alignment.yaml | 4 - .../hindi_question_answering.yaml | 4 - .../greedy_until/hindu_knowledge.yaml | 4 - .../greedy_until/hinglish_toxicity.yaml | 4 - .../greedy_until/human_organs_senses.yaml | 4 - .../bigbench/greedy_until/hyperbaton.yaml | 4 - .../greedy_until/identify_math_theorems.yaml | 4 - .../greedy_until/identify_odd_metaphor.yaml | 4 - .../bigbench/greedy_until/implicatures.yaml | 4 - .../greedy_until/implicit_relations.yaml | 4 - .../greedy_until/intent_recognition.yaml | 4 - .../international_phonetic_alphabet_nli.yaml | 4 - ...ional_phonetic_alphabet_transliterate.yaml | 4 - .../greedy_until/intersect_geometry.yaml | 4 - .../greedy_until/irony_identification.yaml | 4 - .../bigbench/greedy_until/kanji_ascii.yaml | 4 - .../tasks/bigbench/greedy_until/kannada.yaml | 4 - .../bigbench/greedy_until/key_value_maps.yaml | 4 - .../bigbench/greedy_until/known_unknowns.yaml | 4 - .../bigbench/greedy_until/language_games.yaml | 4 - .../greedy_until/language_identification.yaml | 4 - .../greedy_until/linguistic_mappings.yaml | 4 - .../greedy_until/linguistics_puzzles.yaml | 4 - .../bigbench/greedy_until/list_functions.yaml | 4 - .../greedy_until/logic_grid_puzzle.yaml | 4 - .../bigbench/greedy_until/logical_args.yaml | 4 - .../greedy_until/logical_deduction.yaml | 4 - .../logical_fallacy_detection.yaml | 4 - .../greedy_until/logical_sequence.yaml | 4 - .../greedy_until/mathematical_induction.yaml | 4 - .../bigbench/greedy_until/matrixshapes.yaml | 4 - .../greedy_until/metaphor_boolean.yaml | 4 - .../greedy_until/metaphor_understanding.yaml | 4 - .../greedy_until/minute_mysteries_qa.yaml | 4 - .../bigbench/greedy_until/misconceptions.yaml | 4 - .../greedy_until/misconceptions_russian.yaml | 4 - .../bigbench/greedy_until/mnist_ascii.yaml | 4 - .../greedy_until/modified_arithmetic.yaml | 4 - .../greedy_until/moral_permissibility.yaml | 4 - .../movie_dialog_same_or_different.yaml | 4 - .../greedy_until/movie_recommendation.yaml | 4 - .../greedy_until/mult_data_wrangling.yaml | 4 - .../tasks/bigbench/greedy_until/multiemo.yaml | 4 - .../greedy_until/natural_instructions.yaml | 4 - .../tasks/bigbench/greedy_until/navigate.yaml | 4 - .../greedy_until/nonsense_words_grammar.yaml | 4 - .../bigbench/greedy_until/novel_concepts.yaml | 4 - .../greedy_until/object_counting.yaml | 4 - .../bigbench/greedy_until/odd_one_out.yaml | 4 - .../bigbench/greedy_until/operators.yaml | 4 - .../greedy_until/paragraph_segmentation.yaml | 4 - .../bigbench/greedy_until/parsinlu_qa.yaml | 4 - .../parsinlu_reading_comprehension.yaml | 4 - .../greedy_until/penguins_in_a_table.yaml | 4 - .../greedy_until/periodic_elements.yaml | 4 - .../bigbench/greedy_until/persian_idioms.yaml | 4 - .../greedy_until/phrase_relatedness.yaml | 4 - .../greedy_until/physical_intuition.yaml | 4 - .../tasks/bigbench/greedy_until/physics.yaml | 4 - .../greedy_until/physics_questions.yaml | 4 - .../play_dialog_same_or_different.yaml | 4 - .../polish_sequence_labeling.yaml | 4 - .../greedy_until/presuppositions_as_nli.yaml | 4 - .../bigbench/greedy_until/qa_wikidata.yaml | 4 - .../greedy_until/question_selection.yaml | 4 - .../greedy_until/real_or_fake_text.yaml | 4 - .../reasoning_about_colored_objects.yaml | 4 - .../greedy_until/repeat_copy_logic.yaml | 4 - .../tasks/bigbench/greedy_until/rephrase.yaml | 4 - .../bigbench/greedy_until/riddle_sense.yaml | 4 - .../bigbench/greedy_until/ruin_names.yaml | 4 - .../salient_translation_error_detection.yaml | 4 - .../scientific_press_release.yaml | 4 - .../semantic_parsing_in_context_sparc.yaml | 4 - .../greedy_until/semantic_parsing_spider.yaml | 4 - .../greedy_until/sentence_ambiguity.yaml | 4 - .../similarities_abstraction.yaml | 4 - .../greedy_until/simp_turing_concept.yaml | 4 - .../greedy_until/simple_arithmetic_json.yaml | 4 - ...imple_arithmetic_json_multiple_choice.yaml | 4 - .../simple_arithmetic_json_subtasks.yaml | 4 - ...mple_arithmetic_multiple_targets_json.yaml | 4 - .../simple_ethical_questions.yaml | 4 - .../greedy_until/simple_text_editing.yaml | 4 - .../tasks/bigbench/greedy_until/snarks.yaml | 4 - .../bigbench/greedy_until/social_iqa.yaml | 4 - .../bigbench/greedy_until/social_support.yaml | 4 - .../greedy_until/sports_understanding.yaml | 4 - .../greedy_until/strange_stories.yaml | 4 - .../bigbench/greedy_until/strategyqa.yaml | 4 - .../greedy_until/sufficient_information.yaml | 4 - .../bigbench/greedy_until/suicide_risk.yaml | 4 - .../swahili_english_proverbs.yaml | 4 - .../swedish_to_german_proverbs.yaml | 4 - .../greedy_until/symbol_interpretation.yaml | 4 - .../greedy_until/temporal_sequences.yaml | 4 - .../tasks/bigbench/greedy_until/tense.yaml | 4 - .../tasks/bigbench/greedy_until/timedial.yaml | 4 - .../bigbench/greedy_until/topical_chat.yaml | 4 - .../tracking_shuffled_objects.yaml | 4 - .../greedy_until/understanding_fables.yaml | 4 - .../greedy_until/undo_permutation.yaml | 4 - .../greedy_until/unit_conversion.yaml | 4 - .../greedy_until/unit_interpretation.yaml | 4 - .../unnatural_in_context_learning.yaml | 4 - .../vitaminc_fact_verification.yaml | 4 - .../greedy_until/what_is_the_tao.yaml | 4 - .../greedy_until/which_wiki_edit.yaml | 4 - .../tasks/bigbench/greedy_until/winowhy.yaml | 4 - .../bigbench/greedy_until/word_sorting.yaml | 4 - .../greedy_until/word_unscrambling.yaml | 4 - .../tasks/bigbench/greedy_until_template_yaml | 2 +- lm_eval/tasks/code_x_glue/code-text/go.yaml | 2 +- lm_eval/tasks/code_x_glue/code-text/java.yaml | 2 +- .../code_x_glue/code-text/javascript.yaml | 2 +- lm_eval/tasks/code_x_glue/code-text/php.yaml | 2 +- .../tasks/code_x_glue/code-text/python.yaml | 2 +- lm_eval/tasks/code_x_glue/code-text/ruby.yaml | 2 +- lm_eval/tasks/coqa/default.yaml | 2 +- lm_eval/tasks/drop/default.yaml | 2 +- lm_eval/tasks/gsm8k/gsm8k-cot.yaml | 2 +- lm_eval/tasks/gsm8k/gsm8k.yaml | 2 +- lm_eval/tasks/logiqa2/logieval.yaml | 2 +- lm_eval/tasks/mgsm/direct/direct_yaml | 2 +- lm_eval/tasks/mgsm/en_cot/cot_yaml | 2 +- lm_eval/tasks/mgsm/native_cot/cot_yaml | 2 +- lm_eval/tasks/minerva_math/README.md | 2 +- .../minerva_math/minerva_math_algebra.yaml | 2 +- .../_mmlu_flan_cot_fewshot_template_yaml | 2 +- .../_mmlu_flan_generative_template_yaml | 2 +- .../_mmlu_flan_generative_template_yaml | 2 +- lm_eval/tasks/nq_open/nq_open.yaml | 2 +- lm_eval/tasks/polemo2/polemo2_in.yaml | 2 +- lm_eval/tasks/qasper/freeform.yaml | 2 +- lm_eval/tasks/squadv2/default.yaml | 16 +--- lm_eval/tasks/super_glue/boolq/seq2seq.yaml | 2 +- lm_eval/tasks/super_glue/boolq/t5-prompt.yaml | 2 +- lm_eval/tasks/super_glue/cb/t5-prompt.yaml | 2 +- lm_eval/tasks/super_glue/copa/t5-prompt.yaml | 2 +- .../tasks/super_glue/multirc/t5-prompt.yaml | 2 +- .../tasks/super_glue/record/t5-prompt.yaml | 2 +- lm_eval/tasks/super_glue/rte/t5-prompt.yaml | 2 +- lm_eval/tasks/super_glue/wic/t5-prompt.yaml | 2 +- lm_eval/tasks/super_glue/wsc/t5-prompt.yaml | 2 +- .../tasks/translation/iwslt2017_ar-en.yaml | 2 +- .../tasks/translation/iwslt2017_en-ar.yaml | 2 +- lm_eval/tasks/translation/utils.py | 2 +- lm_eval/tasks/translation/wmt14_en-fr.yaml | 2 +- lm_eval/tasks/translation/wmt14_fr-en.yaml | 2 +- lm_eval/tasks/translation/wmt16_de-en.yaml | 2 +- lm_eval/tasks/translation/wmt16_en-de.yaml | 2 +- lm_eval/tasks/translation/wmt16_en-ro.yaml | 2 +- lm_eval/tasks/translation/wmt16_ro-en.yaml | 2 +- lm_eval/tasks/translation/wmt_common_yaml | 2 +- lm_eval/tasks/triviaqa/default.yaml | 2 +- lm_eval/tasks/truthfulqa/truthfulqa_gen.yaml | 2 +- lm_eval/tasks/unscramble/anagrams1.yaml | 2 +- lm_eval/tasks/unscramble/anagrams2.yaml | 2 +- lm_eval/tasks/unscramble/cycle_letters.yaml | 2 +- .../tasks/unscramble/random_insertion.yaml | 2 +- lm_eval/tasks/unscramble/reversed_words.yaml | 2 +- lm_eval/tasks/wmt2016/ro_en-t5_prompt.yaml | 2 +- 403 files changed, 766 insertions(+), 854 deletions(-) delete mode 100644 lm_eval/benchmarks/__init__.py rename lm_eval/{ => tasks}/benchmarks/minerva_math.yaml (100%) create mode 100644 lm_eval/tasks/bigbench/generate_until/abstract_narrative_understanding.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/anachronisms.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/analogical_similarity.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/analytic_entailment.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/arithmetic.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/ascii_word_recognition.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/authorship_verification.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/auto_categorization.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/auto_debugging.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/bbq_lite_json.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/bridging_anaphora_resolution_barqa.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/causal_judgment.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/cause_and_effect.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/checkmate_in_one.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/chess_state_tracking.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/chinese_remainder_theorem.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/cifar10_classification.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/code_line_description.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/codenames.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/color.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/common_morpheme.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/conceptual_combinations.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/conlang_translation.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/contextual_parametric_knowledge_conflicts.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/crash_blossom.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/crass_ai.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/cryobiology_spanish.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/cryptonite.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/cs_algorithms.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/dark_humor_detection.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/date_understanding.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/disambiguation_qa.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/discourse_marker_prediction.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/disfl_qa.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/dyck_languages.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/elementary_math_qa.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/emoji_movie.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/emojis_emotion_prediction.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/empirical_judgments.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/english_proverbs.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/english_russian_proverbs.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/entailed_polarity.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/entailed_polarity_hindi.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/epistemic_reasoning.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/evaluating_information_essentiality.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/fact_checker.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/fantasy_reasoning.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/few_shot_nlg.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/figure_of_speech_detection.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/formal_fallacies_syllogisms_negation.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/gem.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/gender_inclusive_sentences_german.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/general_knowledge.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/geometric_shapes.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/goal_step_wikihow.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/gre_reading_comprehension.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/hhh_alignment.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/hindi_question_answering.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/hindu_knowledge.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/hinglish_toxicity.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/human_organs_senses.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/hyperbaton.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/identify_math_theorems.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/identify_odd_metaphor.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/implicatures.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/implicit_relations.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/intent_recognition.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/international_phonetic_alphabet_nli.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/international_phonetic_alphabet_transliterate.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/intersect_geometry.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/irony_identification.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/kanji_ascii.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/kannada.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/key_value_maps.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/known_unknowns.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/language_games.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/language_identification.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/linguistic_mappings.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/linguistics_puzzles.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/list_functions.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/logic_grid_puzzle.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/logical_args.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/logical_deduction.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/logical_fallacy_detection.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/logical_sequence.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/mathematical_induction.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/matrixshapes.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/metaphor_boolean.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/metaphor_understanding.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/minute_mysteries_qa.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/misconceptions.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/misconceptions_russian.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/mnist_ascii.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/modified_arithmetic.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/moral_permissibility.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/movie_dialog_same_or_different.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/movie_recommendation.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/mult_data_wrangling.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/multiemo.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/natural_instructions.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/navigate.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/nonsense_words_grammar.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/novel_concepts.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/object_counting.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/odd_one_out.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/operators.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/paragraph_segmentation.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/parsinlu_qa.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/parsinlu_reading_comprehension.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/penguins_in_a_table.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/periodic_elements.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/persian_idioms.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/phrase_relatedness.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/physical_intuition.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/physics.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/physics_questions.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/play_dialog_same_or_different.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/polish_sequence_labeling.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/presuppositions_as_nli.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/qa_wikidata.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/question_selection.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/real_or_fake_text.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/reasoning_about_colored_objects.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/repeat_copy_logic.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/rephrase.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/riddle_sense.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/ruin_names.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/salient_translation_error_detection.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/scientific_press_release.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/semantic_parsing_in_context_sparc.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/semantic_parsing_spider.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/sentence_ambiguity.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/similarities_abstraction.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/simp_turing_concept.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/simple_arithmetic_json.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/simple_arithmetic_json_multiple_choice.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/simple_arithmetic_json_subtasks.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/simple_arithmetic_multiple_targets_json.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/simple_ethical_questions.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/simple_text_editing.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/snarks.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/social_iqa.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/social_support.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/sports_understanding.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/strange_stories.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/strategyqa.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/sufficient_information.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/suicide_risk.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/swahili_english_proverbs.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/swedish_to_german_proverbs.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/symbol_interpretation.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/temporal_sequences.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/tense.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/timedial.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/topical_chat.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/tracking_shuffled_objects.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/understanding_fables.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/undo_permutation.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/unit_conversion.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/unit_interpretation.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/unnatural_in_context_learning.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/vitaminc_fact_verification.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/what_is_the_tao.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/which_wiki_edit.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/winowhy.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/word_sorting.yaml create mode 100644 lm_eval/tasks/bigbench/generate_until/word_unscrambling.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/abstract_narrative_understanding.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/anachronisms.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/analogical_similarity.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/analytic_entailment.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/arithmetic.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/ascii_word_recognition.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/authorship_verification.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/auto_categorization.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/auto_debugging.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/bbq_lite_json.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/bridging_anaphora_resolution_barqa.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/causal_judgment.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/cause_and_effect.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/checkmate_in_one.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/chess_state_tracking.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/chinese_remainder_theorem.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/cifar10_classification.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/code_line_description.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/codenames.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/color.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/common_morpheme.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/conceptual_combinations.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/conlang_translation.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/contextual_parametric_knowledge_conflicts.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/crash_blossom.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/crass_ai.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/cryobiology_spanish.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/cryptonite.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/cs_algorithms.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/dark_humor_detection.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/date_understanding.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/disambiguation_qa.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/discourse_marker_prediction.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/disfl_qa.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/dyck_languages.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/elementary_math_qa.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/emoji_movie.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/emojis_emotion_prediction.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/empirical_judgments.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/english_proverbs.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/english_russian_proverbs.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/entailed_polarity.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/entailed_polarity_hindi.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/epistemic_reasoning.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/evaluating_information_essentiality.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/fact_checker.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/fantasy_reasoning.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/few_shot_nlg.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/figure_of_speech_detection.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/formal_fallacies_syllogisms_negation.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/gem.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/gender_inclusive_sentences_german.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/general_knowledge.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/geometric_shapes.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/goal_step_wikihow.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/gre_reading_comprehension.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/hhh_alignment.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/hindi_question_answering.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/hindu_knowledge.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/hinglish_toxicity.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/human_organs_senses.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/hyperbaton.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/identify_math_theorems.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/identify_odd_metaphor.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/implicatures.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/implicit_relations.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/intent_recognition.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/international_phonetic_alphabet_nli.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/international_phonetic_alphabet_transliterate.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/intersect_geometry.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/irony_identification.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/kanji_ascii.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/kannada.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/key_value_maps.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/known_unknowns.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/language_games.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/language_identification.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/linguistic_mappings.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/linguistics_puzzles.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/list_functions.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/logic_grid_puzzle.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/logical_args.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/logical_deduction.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/logical_fallacy_detection.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/logical_sequence.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/mathematical_induction.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/matrixshapes.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/metaphor_boolean.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/metaphor_understanding.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/minute_mysteries_qa.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/misconceptions.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/misconceptions_russian.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/mnist_ascii.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/modified_arithmetic.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/moral_permissibility.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/movie_dialog_same_or_different.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/movie_recommendation.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/mult_data_wrangling.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/multiemo.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/natural_instructions.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/navigate.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/nonsense_words_grammar.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/novel_concepts.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/object_counting.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/odd_one_out.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/operators.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/paragraph_segmentation.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/parsinlu_qa.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/parsinlu_reading_comprehension.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/penguins_in_a_table.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/periodic_elements.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/persian_idioms.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/phrase_relatedness.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/physical_intuition.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/physics.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/physics_questions.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/play_dialog_same_or_different.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/polish_sequence_labeling.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/presuppositions_as_nli.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/qa_wikidata.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/question_selection.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/real_or_fake_text.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/reasoning_about_colored_objects.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/repeat_copy_logic.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/rephrase.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/riddle_sense.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/ruin_names.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/salient_translation_error_detection.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/scientific_press_release.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/semantic_parsing_in_context_sparc.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/semantic_parsing_spider.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/sentence_ambiguity.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/similarities_abstraction.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/simp_turing_concept.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/simple_arithmetic_json.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/simple_arithmetic_json_multiple_choice.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/simple_arithmetic_json_subtasks.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/simple_arithmetic_multiple_targets_json.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/simple_ethical_questions.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/simple_text_editing.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/snarks.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/social_iqa.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/social_support.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/sports_understanding.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/strange_stories.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/strategyqa.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/sufficient_information.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/suicide_risk.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/swahili_english_proverbs.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/swedish_to_german_proverbs.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/symbol_interpretation.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/temporal_sequences.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/tense.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/timedial.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/topical_chat.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/tracking_shuffled_objects.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/understanding_fables.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/undo_permutation.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/unit_conversion.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/unit_interpretation.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/unnatural_in_context_learning.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/vitaminc_fact_verification.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/what_is_the_tao.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/which_wiki_edit.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/winowhy.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/word_sorting.yaml delete mode 100644 lm_eval/tasks/bigbench/greedy_until/word_unscrambling.yaml diff --git a/lm_eval/api/task.py b/lm_eval/api/task.py index d0f7d14b..32813dec 100644 --- a/lm_eval/api/task.py +++ b/lm_eval/api/task.py @@ -44,7 +44,7 @@ ALL_OUTPUT_TYPES = [ "loglikelihood", "multiple_choice", "loglikelihood_rolling", - "greedy_until", + "generate_until", ] @@ -80,7 +80,7 @@ class TaskConfig(dict): num_fewshot: int = 0 # scoring options metric_list: list = None - output_type: str = "greedy_until" + output_type: str = "generate_until" generation_kwargs: dict = None repeats: int = 1 filter_list: Union[str, list] = None @@ -97,11 +97,11 @@ class TaskConfig(dict): self.dataset_path = inspect.getfile(import_module(self.dataset_path)) if self.generation_kwargs is not None: - if self.output_type != "greedy_until": + if self.output_type != "generate_until": eval_logger.warning( - f"[{self.task}] passed `generation_kwargs`, but not using `output_type: greedy_until`!" + f"[{self.task}] passed `generation_kwargs`, but not using `output_type: generate_until`!" ) - assert self.output_type != "greedy_until" + assert self.output_type != "generate_until" if "temperature" in self.generation_kwargs: self.generation_kwargs["temperature"] = float( @@ -111,7 +111,7 @@ class TaskConfig(dict): if "until" not in self.generation_kwargs: self.generation_kwargs["until"] = [self.fewshot_delimiter] else: - if self.output_type == "greedy_until": + if self.output_type == "generate_until": # ensure that we greedily generate in absence of explicit arguments otherwise self.generation_kwargs = { "until": None @@ -958,7 +958,7 @@ class ConfigurableTask(Task): ) return request_list - elif self.OUTPUT_TYPE == "greedy_until": + elif self.OUTPUT_TYPE == "generate_until": arguments = (ctx, self.config.generation_kwargs) return Instance( @@ -1070,7 +1070,7 @@ class ConfigurableTask(Task): acc_mutual_info = 1.0 if np.argmax(lls_mutual_info) == gold else 0.0 result_dict["acc_mutual_info"] = acc_mutual_info - elif self.OUTPUT_TYPE == "greedy_until": + elif self.OUTPUT_TYPE == "generate_until": gold = self.doc_to_target(doc) result = results[0] if self.config.doc_to_choice is not None: @@ -1134,7 +1134,7 @@ class ConfigurableTask(Task): else: raise ValueError( f"Passed invalid output_type '{self.OUTPUT_TYPE}' ! Please use one of ", - "'loglikelihood', 'loglikelihood_rolling', 'greedy_until' or 'multiple_choice'", + "'loglikelihood', 'loglikelihood_rolling', 'generate_until' or 'multiple_choice'", ) return result_dict diff --git a/lm_eval/benchmarks/__init__.py b/lm_eval/benchmarks/__init__.py deleted file mode 100644 index e87ad788..00000000 --- a/lm_eval/benchmarks/__init__.py +++ /dev/null @@ -1,76 +0,0 @@ -import os -import yaml - -from lm_eval import utils -from lm_eval.tasks import register_configurable_task, check_prompt_config -from lm_eval.logger import eval_logger -from lm_eval.api.registry import ( - TASK_REGISTRY, - GROUP_REGISTRY, - ALL_TASKS, -) - - -def include_benchmarks(task_dir: str) -> None: - for root, subdirs, file_list in os.walk(task_dir): - if (subdirs == [] or "__pycache__" in subdirs) and (len(file_list) > 0): - for f in file_list: - if f.endswith(".yaml"): - try: - benchmark_path = os.path.join(root, f) - - with open(benchmark_path, "rb") as file: - yaml_config = yaml.full_load(file) - - if "prompts" in yaml_config: - continue # Skip it - - assert "group" in yaml_config - group = yaml_config["group"] - all_task_list = yaml_config["task"] - config_list = [ - task for task in all_task_list if type(task) != str - ] - task_list = [ - task for task in all_task_list if type(task) == str - ] - - for task_config in config_list: - yaml_dir = os.path.dirname(benchmark_path) - task_config = utils.load_yaml_config( - yaml_config=task_config, yaml_dir=yaml_dir - ) - if "use_prompt" in task_config: - if "yaml" in task_config["use_prompt"]: - task_config["use_prompt"] = os.path.join( - root, task_config["use_prompt"] - ) - - var_configs = check_prompt_config( - { - **task_config, - **{"group": group}, - } - ) - for config in var_configs: - register_configurable_task(config) - - task_names = utils.pattern_match(task_list, ALL_TASKS) - for task in task_names: - if task in TASK_REGISTRY: - if group in GROUP_REGISTRY: - GROUP_REGISTRY[group].append(task) - else: - GROUP_REGISTRY[group] = [task] - ALL_TASKS.add(group) - except Exception as error: - eval_logger.warning( - "Failed to load benchmark in\n" - f" {benchmark_path}\n" - " Benchmark will not be added to registry\n" - f" Error: {error}" - ) - - -task_dir = os.path.dirname(os.path.abspath(__file__)) + "/" -include_benchmarks(task_dir) diff --git a/lm_eval/models/anthropic_llms.py b/lm_eval/models/anthropic_llms.py index 953ea913..be144b16 100644 --- a/lm_eval/models/anthropic_llms.py +++ b/lm_eval/models/anthropic_llms.py @@ -138,7 +138,7 @@ please install anthropic via `pip install lm-eval[anthropic]` or `pip install -e def _loglikelihood_tokens(self, requests, disable_tqdm: bool = False): raise NotImplementedError("No support for logits.") - def greedy_until(self, requests) -> List[str]: + def generate_until(self, requests) -> List[str]: if not requests: return [] @@ -164,7 +164,7 @@ please install anthropic via `pip install lm-eval[anthropic]` or `pip install -e ) res.append(response) - self.cache_hook.add_partial("greedy_until", request, response) + self.cache_hook.add_partial("generate_until", request, response) except anthropic.APIConnectionError as e: # type: ignore # noqa: F821 eval_logger.critical(f"Server unreachable: {e.__cause__}") break @@ -179,7 +179,7 @@ please install anthropic via `pip install lm-eval[anthropic]` or `pip install -e raise NotImplementedError() def _model_generate(self, context, max_length, eos_token_id): - # Isn't used because we override greedy_until + # Isn't used because we override generate_until raise NotImplementedError() def loglikelihood(self, requests): diff --git a/lm_eval/models/dummy.py b/lm_eval/models/dummy.py index 0264e763..b13a3900 100644 --- a/lm_eval/models/dummy.py +++ b/lm_eval/models/dummy.py @@ -20,7 +20,7 @@ class DummyLM(LM): return res - def greedy_until(self, requests): + def generate_until(self, requests): res = [] for ctx, _ in requests: diff --git a/lm_eval/models/huggingface.py b/lm_eval/models/huggingface.py index d4b4c9b6..0a2519e6 100644 --- a/lm_eval/models/huggingface.py +++ b/lm_eval/models/huggingface.py @@ -813,7 +813,7 @@ class HFLM(LM): return re_ord.get_original(res) - def greedy_until(self, requests): + def generate_until(self, requests): res = defaultdict(list) re_ords = {} @@ -930,7 +930,7 @@ class HFLM(LM): res[key].append(s) self.cache_hook.add_partial( - "greedy_until", (context, gen_kwargs), s + "generate_until", (context, gen_kwargs), s ) pbar.update(1) # reorder this group of results back to original unsorted form diff --git a/lm_eval/models/openai_completions.py b/lm_eval/models/openai_completions.py index eb05dd4c..1a06d85a 100644 --- a/lm_eval/models/openai_completions.py +++ b/lm_eval/models/openai_completions.py @@ -203,7 +203,7 @@ class OpenaiCompletionsLM(LM): self.cache_hook.add_partial("loglikelihood", cache_key, answer) return re_ord.get_original(res) - def greedy_until(self, requests) -> List[str]: + def generate_until(self, requests) -> List[str]: if not requests: return [] res = [] @@ -260,7 +260,7 @@ class OpenaiCompletionsLM(LM): # partial caching self.cache_hook.add_partial( - "greedy_until", (context, {"until": until_}), s + "generate_until", (context, {"until": until_}), s ) res.append(s) @@ -271,7 +271,7 @@ class OpenaiCompletionsLM(LM): raise NotImplementedError() def _model_generate(self, context, max_length, eos_token_id): - # Isn't used because we override greedy_until + # Isn't used because we override generate_until raise NotImplementedError() def loglikelihood_rolling(self, requests) -> List[float]: diff --git a/lm_eval/models/textsynth.py b/lm_eval/models/textsynth.py index a8fcfb9c..379f11b9 100644 --- a/lm_eval/models/textsynth.py +++ b/lm_eval/models/textsynth.py @@ -58,7 +58,7 @@ class TextSynthLM(LM): @property def eot_token_id(self): - # Isn't used because we override loglikelihood, loglikelihood_rolling and greedy_until + # Isn't used because we override loglikelihood, loglikelihood_rolling and generate_until raise NotImplementedError() @property @@ -72,20 +72,20 @@ class TextSynthLM(LM): @property def batch_size(self): - # Isn't used because we override loglikelihood, loglikelihood_rolling and greedy_until + # Isn't used because we override loglikelihood, loglikelihood_rolling and generate_until raise NotImplementedError() @property def device(self): - # Isn't used because we override loglikelihood, loglikelihood_rolling and greedy_until + # Isn't used because we override loglikelihood, loglikelihood_rolling and generate_until raise NotImplementedError() def tok_encode(self, string: str): - # Isn't used because we override loglikelihood, loglikelihood_rolling and greedy_until + # Isn't used because we override loglikelihood, loglikelihood_rolling and generate_until raise NotImplementedError() def tok_decode(self, tokens): - # Isn't used because we override loglikelihood, loglikelihood_rolling and greedy_until + # Isn't used because we override loglikelihood, loglikelihood_rolling and generate_until raise NotImplementedError() def loglikelihood(self, requests): @@ -122,7 +122,7 @@ class TextSynthLM(LM): "input tokenization support from TextSynth." ) - def greedy_until(self, requests): + def generate_until(self, requests): if not requests: return [] @@ -146,7 +146,7 @@ class TextSynthLM(LM): s = resp["text"] res.append(s) - self.cache_hook.add_partial("greedy_until", (inp, request_args), s) + self.cache_hook.add_partial("generate_until", (inp, request_args), s) else: logger.error( f"The following response does not contain generated `text`. " @@ -160,5 +160,5 @@ class TextSynthLM(LM): raise NotImplementedError() def _model_generate(self, context, max_length, eos_token_id): - # Isn't used because we override greedy_until + # Isn't used because we override generate_until raise NotImplementedError() diff --git a/lm_eval/tasks/__init__.py b/lm_eval/tasks/__init__.py index 0b124a67..026f52e4 100644 --- a/lm_eval/tasks/__init__.py +++ b/lm_eval/tasks/__init__.py @@ -98,7 +98,7 @@ def check_prompt_config( ] ) }, - **{"output_type": "greedy_until"}, + **{"output_type": "generate_until"}, } ) else: diff --git a/lm_eval/tasks/babi/babi.yaml b/lm_eval/tasks/babi/babi.yaml index 1b10cc00..5181b2a1 100644 --- a/lm_eval/tasks/babi/babi.yaml +++ b/lm_eval/tasks/babi/babi.yaml @@ -1,7 +1,7 @@ task: babi dataset_path: Muennighoff/babi dataset_name: null -output_type: greedy_until +output_type: generate_until training_split: train validation_split: valid test_split: test diff --git a/lm_eval/tasks/bbh/flan_cot_fewshot/_flan_cot_fewshot_template_yaml b/lm_eval/tasks/bbh/flan_cot_fewshot/_flan_cot_fewshot_template_yaml index 2e2e8bc9..b96dd712 100644 --- a/lm_eval/tasks/bbh/flan_cot_fewshot/_flan_cot_fewshot_template_yaml +++ b/lm_eval/tasks/bbh/flan_cot_fewshot/_flan_cot_fewshot_template_yaml @@ -1,6 +1,6 @@ group: bbh_flan_cot_fewshot dataset_path: lukaemon/bbh -output_type: greedy_until +output_type: generate_until test_split: test doc_to_target: "{{target}}" metric_list: diff --git a/lm_eval/tasks/bbh/flan_cot_zeroshot/_flan_cot_zeroshot_template_yaml b/lm_eval/tasks/bbh/flan_cot_zeroshot/_flan_cot_zeroshot_template_yaml index 7ccf3699..8bb0f2b7 100644 --- a/lm_eval/tasks/bbh/flan_cot_zeroshot/_flan_cot_zeroshot_template_yaml +++ b/lm_eval/tasks/bbh/flan_cot_zeroshot/_flan_cot_zeroshot_template_yaml @@ -1,6 +1,6 @@ group: bbh_flan_cot_zeroshot dataset_path: lukaemon/bbh -output_type: greedy_until +output_type: generate_until test_split: test doc_to_target: "{{target}}" metric_list: diff --git a/lm_eval/tasks/bbh/flan_fewshot/_flan_fewshot_template_yaml b/lm_eval/tasks/bbh/flan_fewshot/_flan_fewshot_template_yaml index 89e5de29..93503989 100644 --- a/lm_eval/tasks/bbh/flan_fewshot/_flan_fewshot_template_yaml +++ b/lm_eval/tasks/bbh/flan_fewshot/_flan_fewshot_template_yaml @@ -1,6 +1,6 @@ group: bbh_flan_fewshot dataset_path: lukaemon/bbh -output_type: greedy_until +output_type: generate_until test_split: test doc_to_target: "{{target}}" metric_list: diff --git a/lm_eval/tasks/bbh/flan_zeroshot/_flan_zeroshot_template_yaml b/lm_eval/tasks/bbh/flan_zeroshot/_flan_zeroshot_template_yaml index 66dbf369..cd5bafe8 100644 --- a/lm_eval/tasks/bbh/flan_zeroshot/_flan_zeroshot_template_yaml +++ b/lm_eval/tasks/bbh/flan_zeroshot/_flan_zeroshot_template_yaml @@ -1,6 +1,6 @@ group: bbh_flan_zeroshot dataset_path: lukaemon/bbh -output_type: greedy_until +output_type: generate_until test_split: test doc_to_target: "{{target}}" metric_list: diff --git a/lm_eval/tasks/benchmarks/flan/yaml_templates/cot_template_yaml b/lm_eval/tasks/benchmarks/flan/yaml_templates/cot_template_yaml index cbd40849..6e460a0e 100644 --- a/lm_eval/tasks/benchmarks/flan/yaml_templates/cot_template_yaml +++ b/lm_eval/tasks/benchmarks/flan/yaml_templates/cot_template_yaml @@ -1,5 +1,5 @@ group: flan-cot -output_type: greedy_until +output_type: generate_until validation_split: validation doc_to_target: "{{answer}}" metric_list: diff --git a/lm_eval/tasks/benchmarks/flan/yaml_templates/held_in_template_yaml b/lm_eval/tasks/benchmarks/flan/yaml_templates/held_in_template_yaml index e09daca2..f5050a49 100644 --- a/lm_eval/tasks/benchmarks/flan/yaml_templates/held_in_template_yaml +++ b/lm_eval/tasks/benchmarks/flan/yaml_templates/held_in_template_yaml @@ -1,4 +1,4 @@ -output_type: greedy_until +output_type: generate_until validation_split: validation metric_list: - metric: exact_match diff --git a/lm_eval/benchmarks/minerva_math.yaml b/lm_eval/tasks/benchmarks/minerva_math.yaml similarity index 100% rename from lm_eval/benchmarks/minerva_math.yaml rename to lm_eval/tasks/benchmarks/minerva_math.yaml diff --git a/lm_eval/tasks/benchmarks/t0_eval.yaml b/lm_eval/tasks/benchmarks/t0_eval.yaml index 788122e9..27e7adc4 100644 --- a/lm_eval/tasks/benchmarks/t0_eval.yaml +++ b/lm_eval/tasks/benchmarks/t0_eval.yaml @@ -6,7 +6,7 @@ task: use_prompt: promptsource:* training_split: train validation_split: validation - output_type: greedy_until + output_type: generate_until metric_list: - metric: exact_match aggregation: mean @@ -19,7 +19,7 @@ task: use_prompt: promptsource:* training_split: train validation_split: validation - output_type: greedy_until + output_type: generate_until metric_list: - metric: exact_match aggregation: mean @@ -32,7 +32,7 @@ task: use_prompt: promptsource:* training_split: train validation_split: validation - output_type: greedy_until + output_type: generate_until metric_list: - metric: exact_match aggregation: mean @@ -44,7 +44,7 @@ task: use_prompt: promptsource:* training_split: train validation_split: validation - output_type: greedy_until + output_type: generate_until metric_list: - metric: exact_match aggregation: mean @@ -56,7 +56,7 @@ task: use_prompt: promptsource:* training_split: train_r1 validation_split: dev_r1 - output_type: greedy_until + output_type: generate_until metric_list: - metric: exact_match aggregation: mean @@ -68,7 +68,7 @@ task: use_prompt: promptsource:* training_split: train_r2 validation_split: dev_r2 - output_type: greedy_until + output_type: generate_until metric_list: - metric: exact_match aggregation: mean @@ -80,7 +80,7 @@ task: use_prompt: promptsource:* training_split: train_r3 validation_split: dev_r3 - output_type: greedy_until + output_type: generate_until metric_list: - metric: exact_match aggregation: mean @@ -93,7 +93,7 @@ task: use_prompt: promptsource:* training_split: train validation_split: validation - output_type: greedy_until + output_type: generate_until metric_list: - metric: exact_match aggregation: mean @@ -105,7 +105,7 @@ task: use_prompt: promptsource:* training_split: train validation_split: validation - output_type: greedy_until + output_type: generate_until metric_list: - metric: exact_match aggregation: mean @@ -118,7 +118,7 @@ task: use_prompt: promptsource:* training_split: train validation_split: validation - output_type: greedy_until + output_type: generate_until metric_list: - metric: exact_match aggregation: mean diff --git a/lm_eval/tasks/bigbench/generate_tasks.py b/lm_eval/tasks/bigbench/generate_tasks.py index 00a8799e..fa8619f4 100644 --- a/lm_eval/tasks/bigbench/generate_tasks.py +++ b/lm_eval/tasks/bigbench/generate_tasks.py @@ -175,8 +175,8 @@ all_subtasks = [ def main() -> None: for path, task_type in zip( - ["multiple_choice", "greedy_until"], - ["multiple_choice_template_yaml", "greedy_until_template_yaml"], + ["multiple_choice", "generate_until"], + ["multiple_choice_template_yaml", "generate_until_template_yaml"], ): os.makedirs(path, exist_ok=True) for task in all_subtasks: diff --git a/lm_eval/tasks/bigbench/generate_until/abstract_narrative_understanding.yaml b/lm_eval/tasks/bigbench/generate_until/abstract_narrative_understanding.yaml new file mode 100644 index 00000000..dce5238b --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/abstract_narrative_understanding.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: abstract_narrative_understanding_zero_shot +include: ../generate_until_template_yaml +task: bigbench_abstract_narrative_understanding_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/anachronisms.yaml b/lm_eval/tasks/bigbench/generate_until/anachronisms.yaml new file mode 100644 index 00000000..83136198 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/anachronisms.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: anachronisms_zero_shot +include: ../generate_until_template_yaml +task: bigbench_anachronisms_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/analogical_similarity.yaml b/lm_eval/tasks/bigbench/generate_until/analogical_similarity.yaml new file mode 100644 index 00000000..5cc6550a --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/analogical_similarity.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: analogical_similarity_zero_shot +include: ../generate_until_template_yaml +task: bigbench_analogical_similarity_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/analytic_entailment.yaml b/lm_eval/tasks/bigbench/generate_until/analytic_entailment.yaml new file mode 100644 index 00000000..4ae5cfe9 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/analytic_entailment.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: analytic_entailment_zero_shot +include: ../generate_until_template_yaml +task: bigbench_analytic_entailment_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/arithmetic.yaml b/lm_eval/tasks/bigbench/generate_until/arithmetic.yaml new file mode 100644 index 00000000..d6ae791f --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/arithmetic.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: arithmetic_zero_shot +include: ../generate_until_template_yaml +task: bigbench_arithmetic_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/ascii_word_recognition.yaml b/lm_eval/tasks/bigbench/generate_until/ascii_word_recognition.yaml new file mode 100644 index 00000000..60eaa0be --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/ascii_word_recognition.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: ascii_word_recognition_zero_shot +include: ../generate_until_template_yaml +task: bigbench_ascii_word_recognition_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/authorship_verification.yaml b/lm_eval/tasks/bigbench/generate_until/authorship_verification.yaml new file mode 100644 index 00000000..3d7510df --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/authorship_verification.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: authorship_verification_zero_shot +include: ../generate_until_template_yaml +task: bigbench_authorship_verification_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/auto_categorization.yaml b/lm_eval/tasks/bigbench/generate_until/auto_categorization.yaml new file mode 100644 index 00000000..d90a0e7c --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/auto_categorization.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: auto_categorization_zero_shot +include: ../generate_until_template_yaml +task: bigbench_auto_categorization_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/auto_debugging.yaml b/lm_eval/tasks/bigbench/generate_until/auto_debugging.yaml new file mode 100644 index 00000000..d8802c1c --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/auto_debugging.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: auto_debugging_zero_shot +include: ../generate_until_template_yaml +task: bigbench_auto_debugging_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/bbq_lite_json.yaml b/lm_eval/tasks/bigbench/generate_until/bbq_lite_json.yaml new file mode 100644 index 00000000..6812f699 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/bbq_lite_json.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: bbq_lite_json_zero_shot +include: ../generate_until_template_yaml +task: bigbench_bbq_lite_json_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/bridging_anaphora_resolution_barqa.yaml b/lm_eval/tasks/bigbench/generate_until/bridging_anaphora_resolution_barqa.yaml new file mode 100644 index 00000000..28e7309f --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/bridging_anaphora_resolution_barqa.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: bridging_anaphora_resolution_barqa_zero_shot +include: ../generate_until_template_yaml +task: bigbench_bridging_anaphora_resolution_barqa_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/causal_judgment.yaml b/lm_eval/tasks/bigbench/generate_until/causal_judgment.yaml new file mode 100644 index 00000000..1e165680 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/causal_judgment.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: causal_judgment_zero_shot +include: ../generate_until_template_yaml +task: bigbench_causal_judgment_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/cause_and_effect.yaml b/lm_eval/tasks/bigbench/generate_until/cause_and_effect.yaml new file mode 100644 index 00000000..c34bfdc2 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/cause_and_effect.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: cause_and_effect_zero_shot +include: ../generate_until_template_yaml +task: bigbench_cause_and_effect_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/checkmate_in_one.yaml b/lm_eval/tasks/bigbench/generate_until/checkmate_in_one.yaml new file mode 100644 index 00000000..e0736f96 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/checkmate_in_one.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: checkmate_in_one_zero_shot +include: ../generate_until_template_yaml +task: bigbench_checkmate_in_one_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/chess_state_tracking.yaml b/lm_eval/tasks/bigbench/generate_until/chess_state_tracking.yaml new file mode 100644 index 00000000..8b3dde85 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/chess_state_tracking.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: chess_state_tracking_zero_shot +include: ../generate_until_template_yaml +task: bigbench_chess_state_tracking_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/chinese_remainder_theorem.yaml b/lm_eval/tasks/bigbench/generate_until/chinese_remainder_theorem.yaml new file mode 100644 index 00000000..872e809b --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/chinese_remainder_theorem.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: chinese_remainder_theorem_zero_shot +include: ../generate_until_template_yaml +task: bigbench_chinese_remainder_theorem_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/cifar10_classification.yaml b/lm_eval/tasks/bigbench/generate_until/cifar10_classification.yaml new file mode 100644 index 00000000..1a3b08ca --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/cifar10_classification.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: cifar10_classification_zero_shot +include: ../generate_until_template_yaml +task: bigbench_cifar10_classification_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/code_line_description.yaml b/lm_eval/tasks/bigbench/generate_until/code_line_description.yaml new file mode 100644 index 00000000..4bd83353 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/code_line_description.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: code_line_description_zero_shot +include: ../generate_until_template_yaml +task: bigbench_code_line_description_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/codenames.yaml b/lm_eval/tasks/bigbench/generate_until/codenames.yaml new file mode 100644 index 00000000..e71510b4 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/codenames.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: codenames_zero_shot +include: ../generate_until_template_yaml +task: bigbench_codenames_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/color.yaml b/lm_eval/tasks/bigbench/generate_until/color.yaml new file mode 100644 index 00000000..18793a99 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/color.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: color_zero_shot +include: ../generate_until_template_yaml +task: bigbench_color_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/common_morpheme.yaml b/lm_eval/tasks/bigbench/generate_until/common_morpheme.yaml new file mode 100644 index 00000000..09a8b9f4 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/common_morpheme.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: common_morpheme_zero_shot +include: ../generate_until_template_yaml +task: bigbench_common_morpheme_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/conceptual_combinations.yaml b/lm_eval/tasks/bigbench/generate_until/conceptual_combinations.yaml new file mode 100644 index 00000000..b36c1d5c --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/conceptual_combinations.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: conceptual_combinations_zero_shot +include: ../generate_until_template_yaml +task: bigbench_conceptual_combinations_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/conlang_translation.yaml b/lm_eval/tasks/bigbench/generate_until/conlang_translation.yaml new file mode 100644 index 00000000..ec9cccc8 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/conlang_translation.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: conlang_translation_zero_shot +include: ../generate_until_template_yaml +task: bigbench_conlang_translation_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/contextual_parametric_knowledge_conflicts.yaml b/lm_eval/tasks/bigbench/generate_until/contextual_parametric_knowledge_conflicts.yaml new file mode 100644 index 00000000..e4da8946 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/contextual_parametric_knowledge_conflicts.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: contextual_parametric_knowledge_conflicts_zero_shot +include: ../generate_until_template_yaml +task: bigbench_contextual_parametric_knowledge_conflicts_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/crash_blossom.yaml b/lm_eval/tasks/bigbench/generate_until/crash_blossom.yaml new file mode 100644 index 00000000..3b551e5d --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/crash_blossom.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: crash_blossom_zero_shot +include: ../generate_until_template_yaml +task: bigbench_crash_blossom_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/crass_ai.yaml b/lm_eval/tasks/bigbench/generate_until/crass_ai.yaml new file mode 100644 index 00000000..a65d1c33 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/crass_ai.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: crass_ai_zero_shot +include: ../generate_until_template_yaml +task: bigbench_crass_ai_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/cryobiology_spanish.yaml b/lm_eval/tasks/bigbench/generate_until/cryobiology_spanish.yaml new file mode 100644 index 00000000..5fc59ee2 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/cryobiology_spanish.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: cryobiology_spanish_zero_shot +include: ../generate_until_template_yaml +task: bigbench_cryobiology_spanish_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/cryptonite.yaml b/lm_eval/tasks/bigbench/generate_until/cryptonite.yaml new file mode 100644 index 00000000..3393c368 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/cryptonite.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: cryptonite_zero_shot +include: ../generate_until_template_yaml +task: bigbench_cryptonite_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/cs_algorithms.yaml b/lm_eval/tasks/bigbench/generate_until/cs_algorithms.yaml new file mode 100644 index 00000000..938fc4af --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/cs_algorithms.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: cs_algorithms_zero_shot +include: ../generate_until_template_yaml +task: bigbench_cs_algorithms_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/dark_humor_detection.yaml b/lm_eval/tasks/bigbench/generate_until/dark_humor_detection.yaml new file mode 100644 index 00000000..f13ec2a4 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/dark_humor_detection.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: dark_humor_detection_zero_shot +include: ../generate_until_template_yaml +task: bigbench_dark_humor_detection_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/date_understanding.yaml b/lm_eval/tasks/bigbench/generate_until/date_understanding.yaml new file mode 100644 index 00000000..0fdca6ab --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/date_understanding.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: date_understanding_zero_shot +include: ../generate_until_template_yaml +task: bigbench_date_understanding_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/disambiguation_qa.yaml b/lm_eval/tasks/bigbench/generate_until/disambiguation_qa.yaml new file mode 100644 index 00000000..b671d715 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/disambiguation_qa.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: disambiguation_qa_zero_shot +include: ../generate_until_template_yaml +task: bigbench_disambiguation_qa_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/discourse_marker_prediction.yaml b/lm_eval/tasks/bigbench/generate_until/discourse_marker_prediction.yaml new file mode 100644 index 00000000..30182d9d --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/discourse_marker_prediction.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: discourse_marker_prediction_zero_shot +include: ../generate_until_template_yaml +task: bigbench_discourse_marker_prediction_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/disfl_qa.yaml b/lm_eval/tasks/bigbench/generate_until/disfl_qa.yaml new file mode 100644 index 00000000..4c6b9567 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/disfl_qa.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: disfl_qa_zero_shot +include: ../generate_until_template_yaml +task: bigbench_disfl_qa_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/dyck_languages.yaml b/lm_eval/tasks/bigbench/generate_until/dyck_languages.yaml new file mode 100644 index 00000000..814a95de --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/dyck_languages.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: dyck_languages_zero_shot +include: ../generate_until_template_yaml +task: bigbench_dyck_languages_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/elementary_math_qa.yaml b/lm_eval/tasks/bigbench/generate_until/elementary_math_qa.yaml new file mode 100644 index 00000000..9fe807bc --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/elementary_math_qa.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: elementary_math_qa_zero_shot +include: ../generate_until_template_yaml +task: bigbench_elementary_math_qa_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/emoji_movie.yaml b/lm_eval/tasks/bigbench/generate_until/emoji_movie.yaml new file mode 100644 index 00000000..af958389 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/emoji_movie.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: emoji_movie_zero_shot +include: ../generate_until_template_yaml +task: bigbench_emoji_movie_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/emojis_emotion_prediction.yaml b/lm_eval/tasks/bigbench/generate_until/emojis_emotion_prediction.yaml new file mode 100644 index 00000000..3eafb819 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/emojis_emotion_prediction.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: emojis_emotion_prediction_zero_shot +include: ../generate_until_template_yaml +task: bigbench_emojis_emotion_prediction_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/empirical_judgments.yaml b/lm_eval/tasks/bigbench/generate_until/empirical_judgments.yaml new file mode 100644 index 00000000..1b26cbee --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/empirical_judgments.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: empirical_judgments_zero_shot +include: ../generate_until_template_yaml +task: bigbench_empirical_judgments_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/english_proverbs.yaml b/lm_eval/tasks/bigbench/generate_until/english_proverbs.yaml new file mode 100644 index 00000000..cdd014d9 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/english_proverbs.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: english_proverbs_zero_shot +include: ../generate_until_template_yaml +task: bigbench_english_proverbs_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/english_russian_proverbs.yaml b/lm_eval/tasks/bigbench/generate_until/english_russian_proverbs.yaml new file mode 100644 index 00000000..4e6da1e0 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/english_russian_proverbs.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: english_russian_proverbs_zero_shot +include: ../generate_until_template_yaml +task: bigbench_english_russian_proverbs_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/entailed_polarity.yaml b/lm_eval/tasks/bigbench/generate_until/entailed_polarity.yaml new file mode 100644 index 00000000..cb2ecba0 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/entailed_polarity.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: entailed_polarity_zero_shot +include: ../generate_until_template_yaml +task: bigbench_entailed_polarity_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/entailed_polarity_hindi.yaml b/lm_eval/tasks/bigbench/generate_until/entailed_polarity_hindi.yaml new file mode 100644 index 00000000..aba850d3 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/entailed_polarity_hindi.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: entailed_polarity_hindi_zero_shot +include: ../generate_until_template_yaml +task: bigbench_entailed_polarity_hindi_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/epistemic_reasoning.yaml b/lm_eval/tasks/bigbench/generate_until/epistemic_reasoning.yaml new file mode 100644 index 00000000..f080bcf3 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/epistemic_reasoning.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: epistemic_reasoning_zero_shot +include: ../generate_until_template_yaml +task: bigbench_epistemic_reasoning_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/evaluating_information_essentiality.yaml b/lm_eval/tasks/bigbench/generate_until/evaluating_information_essentiality.yaml new file mode 100644 index 00000000..b640b943 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/evaluating_information_essentiality.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: evaluating_information_essentiality_zero_shot +include: ../generate_until_template_yaml +task: bigbench_evaluating_information_essentiality_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/fact_checker.yaml b/lm_eval/tasks/bigbench/generate_until/fact_checker.yaml new file mode 100644 index 00000000..62dd5197 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/fact_checker.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: fact_checker_zero_shot +include: ../generate_until_template_yaml +task: bigbench_fact_checker_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/fantasy_reasoning.yaml b/lm_eval/tasks/bigbench/generate_until/fantasy_reasoning.yaml new file mode 100644 index 00000000..b94f4c05 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/fantasy_reasoning.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: fantasy_reasoning_zero_shot +include: ../generate_until_template_yaml +task: bigbench_fantasy_reasoning_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/few_shot_nlg.yaml b/lm_eval/tasks/bigbench/generate_until/few_shot_nlg.yaml new file mode 100644 index 00000000..718837f1 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/few_shot_nlg.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: few_shot_nlg_zero_shot +include: ../generate_until_template_yaml +task: bigbench_few_shot_nlg_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/figure_of_speech_detection.yaml b/lm_eval/tasks/bigbench/generate_until/figure_of_speech_detection.yaml new file mode 100644 index 00000000..ffbb5f60 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/figure_of_speech_detection.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: figure_of_speech_detection_zero_shot +include: ../generate_until_template_yaml +task: bigbench_figure_of_speech_detection_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/formal_fallacies_syllogisms_negation.yaml b/lm_eval/tasks/bigbench/generate_until/formal_fallacies_syllogisms_negation.yaml new file mode 100644 index 00000000..d3afc0ed --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/formal_fallacies_syllogisms_negation.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: formal_fallacies_syllogisms_negation_zero_shot +include: ../generate_until_template_yaml +task: bigbench_formal_fallacies_syllogisms_negation_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/gem.yaml b/lm_eval/tasks/bigbench/generate_until/gem.yaml new file mode 100644 index 00000000..f59f2878 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/gem.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: gem_zero_shot +include: ../generate_until_template_yaml +task: bigbench_gem_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/gender_inclusive_sentences_german.yaml b/lm_eval/tasks/bigbench/generate_until/gender_inclusive_sentences_german.yaml new file mode 100644 index 00000000..12dd01b8 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/gender_inclusive_sentences_german.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: gender_inclusive_sentences_german_zero_shot +include: ../generate_until_template_yaml +task: bigbench_gender_inclusive_sentences_german_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/general_knowledge.yaml b/lm_eval/tasks/bigbench/generate_until/general_knowledge.yaml new file mode 100644 index 00000000..1c0a2ea6 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/general_knowledge.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: general_knowledge_zero_shot +include: ../generate_until_template_yaml +task: bigbench_general_knowledge_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/geometric_shapes.yaml b/lm_eval/tasks/bigbench/generate_until/geometric_shapes.yaml new file mode 100644 index 00000000..d586c3cb --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/geometric_shapes.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: geometric_shapes_zero_shot +include: ../generate_until_template_yaml +task: bigbench_geometric_shapes_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/goal_step_wikihow.yaml b/lm_eval/tasks/bigbench/generate_until/goal_step_wikihow.yaml new file mode 100644 index 00000000..22748246 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/goal_step_wikihow.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: goal_step_wikihow_zero_shot +include: ../generate_until_template_yaml +task: bigbench_goal_step_wikihow_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/gre_reading_comprehension.yaml b/lm_eval/tasks/bigbench/generate_until/gre_reading_comprehension.yaml new file mode 100644 index 00000000..449b09c4 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/gre_reading_comprehension.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: gre_reading_comprehension_zero_shot +include: ../generate_until_template_yaml +task: bigbench_gre_reading_comprehension_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/hhh_alignment.yaml b/lm_eval/tasks/bigbench/generate_until/hhh_alignment.yaml new file mode 100644 index 00000000..c5c437a4 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/hhh_alignment.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: hhh_alignment_zero_shot +include: ../generate_until_template_yaml +task: bigbench_hhh_alignment_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/hindi_question_answering.yaml b/lm_eval/tasks/bigbench/generate_until/hindi_question_answering.yaml new file mode 100644 index 00000000..463450b0 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/hindi_question_answering.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: hindi_question_answering_zero_shot +include: ../generate_until_template_yaml +task: bigbench_hindi_question_answering_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/hindu_knowledge.yaml b/lm_eval/tasks/bigbench/generate_until/hindu_knowledge.yaml new file mode 100644 index 00000000..7fef48a4 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/hindu_knowledge.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: hindu_knowledge_zero_shot +include: ../generate_until_template_yaml +task: bigbench_hindu_knowledge_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/hinglish_toxicity.yaml b/lm_eval/tasks/bigbench/generate_until/hinglish_toxicity.yaml new file mode 100644 index 00000000..7ad63dda --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/hinglish_toxicity.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: hinglish_toxicity_zero_shot +include: ../generate_until_template_yaml +task: bigbench_hinglish_toxicity_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/human_organs_senses.yaml b/lm_eval/tasks/bigbench/generate_until/human_organs_senses.yaml new file mode 100644 index 00000000..2334fd6d --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/human_organs_senses.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: human_organs_senses_zero_shot +include: ../generate_until_template_yaml +task: bigbench_human_organs_senses_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/hyperbaton.yaml b/lm_eval/tasks/bigbench/generate_until/hyperbaton.yaml new file mode 100644 index 00000000..1e428c2a --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/hyperbaton.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: hyperbaton_zero_shot +include: ../generate_until_template_yaml +task: bigbench_hyperbaton_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/identify_math_theorems.yaml b/lm_eval/tasks/bigbench/generate_until/identify_math_theorems.yaml new file mode 100644 index 00000000..4d0028e0 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/identify_math_theorems.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: identify_math_theorems_zero_shot +include: ../generate_until_template_yaml +task: bigbench_identify_math_theorems_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/identify_odd_metaphor.yaml b/lm_eval/tasks/bigbench/generate_until/identify_odd_metaphor.yaml new file mode 100644 index 00000000..b4e1f9aa --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/identify_odd_metaphor.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: identify_odd_metaphor_zero_shot +include: ../generate_until_template_yaml +task: bigbench_identify_odd_metaphor_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/implicatures.yaml b/lm_eval/tasks/bigbench/generate_until/implicatures.yaml new file mode 100644 index 00000000..cf19c32a --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/implicatures.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: implicatures_zero_shot +include: ../generate_until_template_yaml +task: bigbench_implicatures_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/implicit_relations.yaml b/lm_eval/tasks/bigbench/generate_until/implicit_relations.yaml new file mode 100644 index 00000000..361f0435 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/implicit_relations.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: implicit_relations_zero_shot +include: ../generate_until_template_yaml +task: bigbench_implicit_relations_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/intent_recognition.yaml b/lm_eval/tasks/bigbench/generate_until/intent_recognition.yaml new file mode 100644 index 00000000..0583a17e --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/intent_recognition.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: intent_recognition_zero_shot +include: ../generate_until_template_yaml +task: bigbench_intent_recognition_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/international_phonetic_alphabet_nli.yaml b/lm_eval/tasks/bigbench/generate_until/international_phonetic_alphabet_nli.yaml new file mode 100644 index 00000000..1497c780 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/international_phonetic_alphabet_nli.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: international_phonetic_alphabet_nli_zero_shot +include: ../generate_until_template_yaml +task: bigbench_international_phonetic_alphabet_nli_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/international_phonetic_alphabet_transliterate.yaml b/lm_eval/tasks/bigbench/generate_until/international_phonetic_alphabet_transliterate.yaml new file mode 100644 index 00000000..71ad3b9d --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/international_phonetic_alphabet_transliterate.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: international_phonetic_alphabet_transliterate_zero_shot +include: ../generate_until_template_yaml +task: bigbench_international_phonetic_alphabet_transliterate_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/intersect_geometry.yaml b/lm_eval/tasks/bigbench/generate_until/intersect_geometry.yaml new file mode 100644 index 00000000..0f2868a4 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/intersect_geometry.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: intersect_geometry_zero_shot +include: ../generate_until_template_yaml +task: bigbench_intersect_geometry_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/irony_identification.yaml b/lm_eval/tasks/bigbench/generate_until/irony_identification.yaml new file mode 100644 index 00000000..556c5a62 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/irony_identification.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: irony_identification_zero_shot +include: ../generate_until_template_yaml +task: bigbench_irony_identification_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/kanji_ascii.yaml b/lm_eval/tasks/bigbench/generate_until/kanji_ascii.yaml new file mode 100644 index 00000000..f9a8a5b8 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/kanji_ascii.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: kanji_ascii_zero_shot +include: ../generate_until_template_yaml +task: bigbench_kanji_ascii_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/kannada.yaml b/lm_eval/tasks/bigbench/generate_until/kannada.yaml new file mode 100644 index 00000000..047e7049 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/kannada.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: kannada_zero_shot +include: ../generate_until_template_yaml +task: bigbench_kannada_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/key_value_maps.yaml b/lm_eval/tasks/bigbench/generate_until/key_value_maps.yaml new file mode 100644 index 00000000..3ea697d1 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/key_value_maps.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: key_value_maps_zero_shot +include: ../generate_until_template_yaml +task: bigbench_key_value_maps_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/known_unknowns.yaml b/lm_eval/tasks/bigbench/generate_until/known_unknowns.yaml new file mode 100644 index 00000000..b1a8bb06 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/known_unknowns.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: known_unknowns_zero_shot +include: ../generate_until_template_yaml +task: bigbench_known_unknowns_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/language_games.yaml b/lm_eval/tasks/bigbench/generate_until/language_games.yaml new file mode 100644 index 00000000..56022300 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/language_games.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: language_games_zero_shot +include: ../generate_until_template_yaml +task: bigbench_language_games_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/language_identification.yaml b/lm_eval/tasks/bigbench/generate_until/language_identification.yaml new file mode 100644 index 00000000..9cb7b274 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/language_identification.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: language_identification_zero_shot +include: ../generate_until_template_yaml +task: bigbench_language_identification_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/linguistic_mappings.yaml b/lm_eval/tasks/bigbench/generate_until/linguistic_mappings.yaml new file mode 100644 index 00000000..cc351ce1 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/linguistic_mappings.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: linguistic_mappings_zero_shot +include: ../generate_until_template_yaml +task: bigbench_linguistic_mappings_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/linguistics_puzzles.yaml b/lm_eval/tasks/bigbench/generate_until/linguistics_puzzles.yaml new file mode 100644 index 00000000..df8b729a --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/linguistics_puzzles.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: linguistics_puzzles_zero_shot +include: ../generate_until_template_yaml +task: bigbench_linguistics_puzzles_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/list_functions.yaml b/lm_eval/tasks/bigbench/generate_until/list_functions.yaml new file mode 100644 index 00000000..658630ac --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/list_functions.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: list_functions_zero_shot +include: ../generate_until_template_yaml +task: bigbench_list_functions_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/logic_grid_puzzle.yaml b/lm_eval/tasks/bigbench/generate_until/logic_grid_puzzle.yaml new file mode 100644 index 00000000..aa8f2c2f --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/logic_grid_puzzle.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: logic_grid_puzzle_zero_shot +include: ../generate_until_template_yaml +task: bigbench_logic_grid_puzzle_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/logical_args.yaml b/lm_eval/tasks/bigbench/generate_until/logical_args.yaml new file mode 100644 index 00000000..e85c1429 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/logical_args.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: logical_args_zero_shot +include: ../generate_until_template_yaml +task: bigbench_logical_args_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/logical_deduction.yaml b/lm_eval/tasks/bigbench/generate_until/logical_deduction.yaml new file mode 100644 index 00000000..8fdaac7f --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/logical_deduction.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: logical_deduction_zero_shot +include: ../generate_until_template_yaml +task: bigbench_logical_deduction_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/logical_fallacy_detection.yaml b/lm_eval/tasks/bigbench/generate_until/logical_fallacy_detection.yaml new file mode 100644 index 00000000..a74d11ea --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/logical_fallacy_detection.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: logical_fallacy_detection_zero_shot +include: ../generate_until_template_yaml +task: bigbench_logical_fallacy_detection_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/logical_sequence.yaml b/lm_eval/tasks/bigbench/generate_until/logical_sequence.yaml new file mode 100644 index 00000000..b55c057b --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/logical_sequence.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: logical_sequence_zero_shot +include: ../generate_until_template_yaml +task: bigbench_logical_sequence_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/mathematical_induction.yaml b/lm_eval/tasks/bigbench/generate_until/mathematical_induction.yaml new file mode 100644 index 00000000..59e4fc3f --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/mathematical_induction.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: mathematical_induction_zero_shot +include: ../generate_until_template_yaml +task: bigbench_mathematical_induction_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/matrixshapes.yaml b/lm_eval/tasks/bigbench/generate_until/matrixshapes.yaml new file mode 100644 index 00000000..1a162eae --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/matrixshapes.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: matrixshapes_zero_shot +include: ../generate_until_template_yaml +task: bigbench_matrixshapes_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/metaphor_boolean.yaml b/lm_eval/tasks/bigbench/generate_until/metaphor_boolean.yaml new file mode 100644 index 00000000..28922b3f --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/metaphor_boolean.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: metaphor_boolean_zero_shot +include: ../generate_until_template_yaml +task: bigbench_metaphor_boolean_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/metaphor_understanding.yaml b/lm_eval/tasks/bigbench/generate_until/metaphor_understanding.yaml new file mode 100644 index 00000000..029a4c0a --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/metaphor_understanding.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: metaphor_understanding_zero_shot +include: ../generate_until_template_yaml +task: bigbench_metaphor_understanding_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/minute_mysteries_qa.yaml b/lm_eval/tasks/bigbench/generate_until/minute_mysteries_qa.yaml new file mode 100644 index 00000000..d453fd94 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/minute_mysteries_qa.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: minute_mysteries_qa_zero_shot +include: ../generate_until_template_yaml +task: bigbench_minute_mysteries_qa_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/misconceptions.yaml b/lm_eval/tasks/bigbench/generate_until/misconceptions.yaml new file mode 100644 index 00000000..f3375eb6 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/misconceptions.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: misconceptions_zero_shot +include: ../generate_until_template_yaml +task: bigbench_misconceptions_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/misconceptions_russian.yaml b/lm_eval/tasks/bigbench/generate_until/misconceptions_russian.yaml new file mode 100644 index 00000000..a5e5e102 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/misconceptions_russian.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: misconceptions_russian_zero_shot +include: ../generate_until_template_yaml +task: bigbench_misconceptions_russian_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/mnist_ascii.yaml b/lm_eval/tasks/bigbench/generate_until/mnist_ascii.yaml new file mode 100644 index 00000000..db7ce738 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/mnist_ascii.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: mnist_ascii_zero_shot +include: ../generate_until_template_yaml +task: bigbench_mnist_ascii_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/modified_arithmetic.yaml b/lm_eval/tasks/bigbench/generate_until/modified_arithmetic.yaml new file mode 100644 index 00000000..edbb2b34 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/modified_arithmetic.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: modified_arithmetic_zero_shot +include: ../generate_until_template_yaml +task: bigbench_modified_arithmetic_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/moral_permissibility.yaml b/lm_eval/tasks/bigbench/generate_until/moral_permissibility.yaml new file mode 100644 index 00000000..277bf69f --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/moral_permissibility.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: moral_permissibility_zero_shot +include: ../generate_until_template_yaml +task: bigbench_moral_permissibility_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/movie_dialog_same_or_different.yaml b/lm_eval/tasks/bigbench/generate_until/movie_dialog_same_or_different.yaml new file mode 100644 index 00000000..27cc6228 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/movie_dialog_same_or_different.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: movie_dialog_same_or_different_zero_shot +include: ../generate_until_template_yaml +task: bigbench_movie_dialog_same_or_different_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/movie_recommendation.yaml b/lm_eval/tasks/bigbench/generate_until/movie_recommendation.yaml new file mode 100644 index 00000000..97c370ce --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/movie_recommendation.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: movie_recommendation_zero_shot +include: ../generate_until_template_yaml +task: bigbench_movie_recommendation_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/mult_data_wrangling.yaml b/lm_eval/tasks/bigbench/generate_until/mult_data_wrangling.yaml new file mode 100644 index 00000000..622c7ab1 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/mult_data_wrangling.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: mult_data_wrangling_zero_shot +include: ../generate_until_template_yaml +task: bigbench_mult_data_wrangling_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/multiemo.yaml b/lm_eval/tasks/bigbench/generate_until/multiemo.yaml new file mode 100644 index 00000000..465ccd0c --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/multiemo.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: multiemo_zero_shot +include: ../generate_until_template_yaml +task: bigbench_multiemo_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/natural_instructions.yaml b/lm_eval/tasks/bigbench/generate_until/natural_instructions.yaml new file mode 100644 index 00000000..9b77c895 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/natural_instructions.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: natural_instructions_zero_shot +include: ../generate_until_template_yaml +task: bigbench_natural_instructions_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/navigate.yaml b/lm_eval/tasks/bigbench/generate_until/navigate.yaml new file mode 100644 index 00000000..549ed370 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/navigate.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: navigate_zero_shot +include: ../generate_until_template_yaml +task: bigbench_navigate_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/nonsense_words_grammar.yaml b/lm_eval/tasks/bigbench/generate_until/nonsense_words_grammar.yaml new file mode 100644 index 00000000..0ed30902 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/nonsense_words_grammar.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: nonsense_words_grammar_zero_shot +include: ../generate_until_template_yaml +task: bigbench_nonsense_words_grammar_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/novel_concepts.yaml b/lm_eval/tasks/bigbench/generate_until/novel_concepts.yaml new file mode 100644 index 00000000..12f388f8 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/novel_concepts.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: novel_concepts_zero_shot +include: ../generate_until_template_yaml +task: bigbench_novel_concepts_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/object_counting.yaml b/lm_eval/tasks/bigbench/generate_until/object_counting.yaml new file mode 100644 index 00000000..a9fc9569 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/object_counting.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: object_counting_zero_shot +include: ../generate_until_template_yaml +task: bigbench_object_counting_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/odd_one_out.yaml b/lm_eval/tasks/bigbench/generate_until/odd_one_out.yaml new file mode 100644 index 00000000..a58d7b5f --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/odd_one_out.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: odd_one_out_zero_shot +include: ../generate_until_template_yaml +task: bigbench_odd_one_out_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/operators.yaml b/lm_eval/tasks/bigbench/generate_until/operators.yaml new file mode 100644 index 00000000..d6aaa8b6 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/operators.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: operators_zero_shot +include: ../generate_until_template_yaml +task: bigbench_operators_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/paragraph_segmentation.yaml b/lm_eval/tasks/bigbench/generate_until/paragraph_segmentation.yaml new file mode 100644 index 00000000..5f982c5d --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/paragraph_segmentation.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: paragraph_segmentation_zero_shot +include: ../generate_until_template_yaml +task: bigbench_paragraph_segmentation_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/parsinlu_qa.yaml b/lm_eval/tasks/bigbench/generate_until/parsinlu_qa.yaml new file mode 100644 index 00000000..552f8c60 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/parsinlu_qa.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: parsinlu_qa_zero_shot +include: ../generate_until_template_yaml +task: bigbench_parsinlu_qa_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/parsinlu_reading_comprehension.yaml b/lm_eval/tasks/bigbench/generate_until/parsinlu_reading_comprehension.yaml new file mode 100644 index 00000000..358184e1 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/parsinlu_reading_comprehension.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: parsinlu_reading_comprehension_zero_shot +include: ../generate_until_template_yaml +task: bigbench_parsinlu_reading_comprehension_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/penguins_in_a_table.yaml b/lm_eval/tasks/bigbench/generate_until/penguins_in_a_table.yaml new file mode 100644 index 00000000..6dc70030 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/penguins_in_a_table.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: penguins_in_a_table_zero_shot +include: ../generate_until_template_yaml +task: bigbench_penguins_in_a_table_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/periodic_elements.yaml b/lm_eval/tasks/bigbench/generate_until/periodic_elements.yaml new file mode 100644 index 00000000..c5c96cec --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/periodic_elements.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: periodic_elements_zero_shot +include: ../generate_until_template_yaml +task: bigbench_periodic_elements_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/persian_idioms.yaml b/lm_eval/tasks/bigbench/generate_until/persian_idioms.yaml new file mode 100644 index 00000000..7e3aa0f4 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/persian_idioms.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: persian_idioms_zero_shot +include: ../generate_until_template_yaml +task: bigbench_persian_idioms_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/phrase_relatedness.yaml b/lm_eval/tasks/bigbench/generate_until/phrase_relatedness.yaml new file mode 100644 index 00000000..037da053 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/phrase_relatedness.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: phrase_relatedness_zero_shot +include: ../generate_until_template_yaml +task: bigbench_phrase_relatedness_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/physical_intuition.yaml b/lm_eval/tasks/bigbench/generate_until/physical_intuition.yaml new file mode 100644 index 00000000..ecef1581 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/physical_intuition.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: physical_intuition_zero_shot +include: ../generate_until_template_yaml +task: bigbench_physical_intuition_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/physics.yaml b/lm_eval/tasks/bigbench/generate_until/physics.yaml new file mode 100644 index 00000000..39bc786b --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/physics.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: physics_zero_shot +include: ../generate_until_template_yaml +task: bigbench_physics_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/physics_questions.yaml b/lm_eval/tasks/bigbench/generate_until/physics_questions.yaml new file mode 100644 index 00000000..3fcfd477 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/physics_questions.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: physics_questions_zero_shot +include: ../generate_until_template_yaml +task: bigbench_physics_questions_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/play_dialog_same_or_different.yaml b/lm_eval/tasks/bigbench/generate_until/play_dialog_same_or_different.yaml new file mode 100644 index 00000000..57b65cfd --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/play_dialog_same_or_different.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: play_dialog_same_or_different_zero_shot +include: ../generate_until_template_yaml +task: bigbench_play_dialog_same_or_different_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/polish_sequence_labeling.yaml b/lm_eval/tasks/bigbench/generate_until/polish_sequence_labeling.yaml new file mode 100644 index 00000000..23775493 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/polish_sequence_labeling.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: polish_sequence_labeling_zero_shot +include: ../generate_until_template_yaml +task: bigbench_polish_sequence_labeling_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/presuppositions_as_nli.yaml b/lm_eval/tasks/bigbench/generate_until/presuppositions_as_nli.yaml new file mode 100644 index 00000000..70da2d74 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/presuppositions_as_nli.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: presuppositions_as_nli_zero_shot +include: ../generate_until_template_yaml +task: bigbench_presuppositions_as_nli_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/qa_wikidata.yaml b/lm_eval/tasks/bigbench/generate_until/qa_wikidata.yaml new file mode 100644 index 00000000..9fb5b230 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/qa_wikidata.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: qa_wikidata_zero_shot +include: ../generate_until_template_yaml +task: bigbench_qa_wikidata_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/question_selection.yaml b/lm_eval/tasks/bigbench/generate_until/question_selection.yaml new file mode 100644 index 00000000..8e2321a8 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/question_selection.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: question_selection_zero_shot +include: ../generate_until_template_yaml +task: bigbench_question_selection_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/real_or_fake_text.yaml b/lm_eval/tasks/bigbench/generate_until/real_or_fake_text.yaml new file mode 100644 index 00000000..948bfb0c --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/real_or_fake_text.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: real_or_fake_text_zero_shot +include: ../generate_until_template_yaml +task: bigbench_real_or_fake_text_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/reasoning_about_colored_objects.yaml b/lm_eval/tasks/bigbench/generate_until/reasoning_about_colored_objects.yaml new file mode 100644 index 00000000..0b371d6e --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/reasoning_about_colored_objects.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: reasoning_about_colored_objects_zero_shot +include: ../generate_until_template_yaml +task: bigbench_reasoning_about_colored_objects_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/repeat_copy_logic.yaml b/lm_eval/tasks/bigbench/generate_until/repeat_copy_logic.yaml new file mode 100644 index 00000000..bd8cd4d8 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/repeat_copy_logic.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: repeat_copy_logic_zero_shot +include: ../generate_until_template_yaml +task: bigbench_repeat_copy_logic_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/rephrase.yaml b/lm_eval/tasks/bigbench/generate_until/rephrase.yaml new file mode 100644 index 00000000..16a337db --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/rephrase.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: rephrase_zero_shot +include: ../generate_until_template_yaml +task: bigbench_rephrase_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/riddle_sense.yaml b/lm_eval/tasks/bigbench/generate_until/riddle_sense.yaml new file mode 100644 index 00000000..745cdb32 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/riddle_sense.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: riddle_sense_zero_shot +include: ../generate_until_template_yaml +task: bigbench_riddle_sense_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/ruin_names.yaml b/lm_eval/tasks/bigbench/generate_until/ruin_names.yaml new file mode 100644 index 00000000..e9ceddad --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/ruin_names.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: ruin_names_zero_shot +include: ../generate_until_template_yaml +task: bigbench_ruin_names_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/salient_translation_error_detection.yaml b/lm_eval/tasks/bigbench/generate_until/salient_translation_error_detection.yaml new file mode 100644 index 00000000..4968e441 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/salient_translation_error_detection.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: salient_translation_error_detection_zero_shot +include: ../generate_until_template_yaml +task: bigbench_salient_translation_error_detection_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/scientific_press_release.yaml b/lm_eval/tasks/bigbench/generate_until/scientific_press_release.yaml new file mode 100644 index 00000000..122f66e7 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/scientific_press_release.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: scientific_press_release_zero_shot +include: ../generate_until_template_yaml +task: bigbench_scientific_press_release_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/semantic_parsing_in_context_sparc.yaml b/lm_eval/tasks/bigbench/generate_until/semantic_parsing_in_context_sparc.yaml new file mode 100644 index 00000000..276c997a --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/semantic_parsing_in_context_sparc.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: semantic_parsing_in_context_sparc_zero_shot +include: ../generate_until_template_yaml +task: bigbench_semantic_parsing_in_context_sparc_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/semantic_parsing_spider.yaml b/lm_eval/tasks/bigbench/generate_until/semantic_parsing_spider.yaml new file mode 100644 index 00000000..39307d92 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/semantic_parsing_spider.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: semantic_parsing_spider_zero_shot +include: ../generate_until_template_yaml +task: bigbench_semantic_parsing_spider_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/sentence_ambiguity.yaml b/lm_eval/tasks/bigbench/generate_until/sentence_ambiguity.yaml new file mode 100644 index 00000000..263b453f --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/sentence_ambiguity.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: sentence_ambiguity_zero_shot +include: ../generate_until_template_yaml +task: bigbench_sentence_ambiguity_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/similarities_abstraction.yaml b/lm_eval/tasks/bigbench/generate_until/similarities_abstraction.yaml new file mode 100644 index 00000000..c33b1c8b --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/similarities_abstraction.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: similarities_abstraction_zero_shot +include: ../generate_until_template_yaml +task: bigbench_similarities_abstraction_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/simp_turing_concept.yaml b/lm_eval/tasks/bigbench/generate_until/simp_turing_concept.yaml new file mode 100644 index 00000000..6eb9cd87 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/simp_turing_concept.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: simp_turing_concept_zero_shot +include: ../generate_until_template_yaml +task: bigbench_simp_turing_concept_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/simple_arithmetic_json.yaml b/lm_eval/tasks/bigbench/generate_until/simple_arithmetic_json.yaml new file mode 100644 index 00000000..3ff5a1b1 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/simple_arithmetic_json.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: simple_arithmetic_json_zero_shot +include: ../generate_until_template_yaml +task: bigbench_simple_arithmetic_json_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/simple_arithmetic_json_multiple_choice.yaml b/lm_eval/tasks/bigbench/generate_until/simple_arithmetic_json_multiple_choice.yaml new file mode 100644 index 00000000..8d130973 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/simple_arithmetic_json_multiple_choice.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: simple_arithmetic_json_multiple_choice_zero_shot +include: ../generate_until_template_yaml +task: bigbench_simple_arithmetic_json_multiple_choice_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/simple_arithmetic_json_subtasks.yaml b/lm_eval/tasks/bigbench/generate_until/simple_arithmetic_json_subtasks.yaml new file mode 100644 index 00000000..57052288 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/simple_arithmetic_json_subtasks.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: simple_arithmetic_json_subtasks_zero_shot +include: ../generate_until_template_yaml +task: bigbench_simple_arithmetic_json_subtasks_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/simple_arithmetic_multiple_targets_json.yaml b/lm_eval/tasks/bigbench/generate_until/simple_arithmetic_multiple_targets_json.yaml new file mode 100644 index 00000000..393ec884 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/simple_arithmetic_multiple_targets_json.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: simple_arithmetic_multiple_targets_json_zero_shot +include: ../generate_until_template_yaml +task: bigbench_simple_arithmetic_multiple_targets_json_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/simple_ethical_questions.yaml b/lm_eval/tasks/bigbench/generate_until/simple_ethical_questions.yaml new file mode 100644 index 00000000..44960774 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/simple_ethical_questions.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: simple_ethical_questions_zero_shot +include: ../generate_until_template_yaml +task: bigbench_simple_ethical_questions_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/simple_text_editing.yaml b/lm_eval/tasks/bigbench/generate_until/simple_text_editing.yaml new file mode 100644 index 00000000..d3310fa2 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/simple_text_editing.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: simple_text_editing_zero_shot +include: ../generate_until_template_yaml +task: bigbench_simple_text_editing_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/snarks.yaml b/lm_eval/tasks/bigbench/generate_until/snarks.yaml new file mode 100644 index 00000000..d362537a --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/snarks.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: snarks_zero_shot +include: ../generate_until_template_yaml +task: bigbench_snarks_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/social_iqa.yaml b/lm_eval/tasks/bigbench/generate_until/social_iqa.yaml new file mode 100644 index 00000000..4ba7721d --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/social_iqa.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: social_iqa_zero_shot +include: ../generate_until_template_yaml +task: bigbench_social_iqa_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/social_support.yaml b/lm_eval/tasks/bigbench/generate_until/social_support.yaml new file mode 100644 index 00000000..dc00bb83 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/social_support.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: social_support_zero_shot +include: ../generate_until_template_yaml +task: bigbench_social_support_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/sports_understanding.yaml b/lm_eval/tasks/bigbench/generate_until/sports_understanding.yaml new file mode 100644 index 00000000..474c08ae --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/sports_understanding.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: sports_understanding_zero_shot +include: ../generate_until_template_yaml +task: bigbench_sports_understanding_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/strange_stories.yaml b/lm_eval/tasks/bigbench/generate_until/strange_stories.yaml new file mode 100644 index 00000000..f5405d92 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/strange_stories.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: strange_stories_zero_shot +include: ../generate_until_template_yaml +task: bigbench_strange_stories_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/strategyqa.yaml b/lm_eval/tasks/bigbench/generate_until/strategyqa.yaml new file mode 100644 index 00000000..47c4b25c --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/strategyqa.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: strategyqa_zero_shot +include: ../generate_until_template_yaml +task: bigbench_strategyqa_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/sufficient_information.yaml b/lm_eval/tasks/bigbench/generate_until/sufficient_information.yaml new file mode 100644 index 00000000..0705a250 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/sufficient_information.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: sufficient_information_zero_shot +include: ../generate_until_template_yaml +task: bigbench_sufficient_information_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/suicide_risk.yaml b/lm_eval/tasks/bigbench/generate_until/suicide_risk.yaml new file mode 100644 index 00000000..e276c4a0 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/suicide_risk.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: suicide_risk_zero_shot +include: ../generate_until_template_yaml +task: bigbench_suicide_risk_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/swahili_english_proverbs.yaml b/lm_eval/tasks/bigbench/generate_until/swahili_english_proverbs.yaml new file mode 100644 index 00000000..c218adb3 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/swahili_english_proverbs.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: swahili_english_proverbs_zero_shot +include: ../generate_until_template_yaml +task: bigbench_swahili_english_proverbs_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/swedish_to_german_proverbs.yaml b/lm_eval/tasks/bigbench/generate_until/swedish_to_german_proverbs.yaml new file mode 100644 index 00000000..5a13d6f7 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/swedish_to_german_proverbs.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: swedish_to_german_proverbs_zero_shot +include: ../generate_until_template_yaml +task: bigbench_swedish_to_german_proverbs_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/symbol_interpretation.yaml b/lm_eval/tasks/bigbench/generate_until/symbol_interpretation.yaml new file mode 100644 index 00000000..cca33bf6 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/symbol_interpretation.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: symbol_interpretation_zero_shot +include: ../generate_until_template_yaml +task: bigbench_symbol_interpretation_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/temporal_sequences.yaml b/lm_eval/tasks/bigbench/generate_until/temporal_sequences.yaml new file mode 100644 index 00000000..414dc51b --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/temporal_sequences.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: temporal_sequences_zero_shot +include: ../generate_until_template_yaml +task: bigbench_temporal_sequences_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/tense.yaml b/lm_eval/tasks/bigbench/generate_until/tense.yaml new file mode 100644 index 00000000..480b95ec --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/tense.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: tense_zero_shot +include: ../generate_until_template_yaml +task: bigbench_tense_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/timedial.yaml b/lm_eval/tasks/bigbench/generate_until/timedial.yaml new file mode 100644 index 00000000..854d8642 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/timedial.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: timedial_zero_shot +include: ../generate_until_template_yaml +task: bigbench_timedial_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/topical_chat.yaml b/lm_eval/tasks/bigbench/generate_until/topical_chat.yaml new file mode 100644 index 00000000..47a301cf --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/topical_chat.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: topical_chat_zero_shot +include: ../generate_until_template_yaml +task: bigbench_topical_chat_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/tracking_shuffled_objects.yaml b/lm_eval/tasks/bigbench/generate_until/tracking_shuffled_objects.yaml new file mode 100644 index 00000000..9c02866c --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/tracking_shuffled_objects.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: tracking_shuffled_objects_zero_shot +include: ../generate_until_template_yaml +task: bigbench_tracking_shuffled_objects_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/understanding_fables.yaml b/lm_eval/tasks/bigbench/generate_until/understanding_fables.yaml new file mode 100644 index 00000000..9972f403 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/understanding_fables.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: understanding_fables_zero_shot +include: ../generate_until_template_yaml +task: bigbench_understanding_fables_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/undo_permutation.yaml b/lm_eval/tasks/bigbench/generate_until/undo_permutation.yaml new file mode 100644 index 00000000..3f0e914c --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/undo_permutation.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: undo_permutation_zero_shot +include: ../generate_until_template_yaml +task: bigbench_undo_permutation_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/unit_conversion.yaml b/lm_eval/tasks/bigbench/generate_until/unit_conversion.yaml new file mode 100644 index 00000000..6f3747c4 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/unit_conversion.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: unit_conversion_zero_shot +include: ../generate_until_template_yaml +task: bigbench_unit_conversion_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/unit_interpretation.yaml b/lm_eval/tasks/bigbench/generate_until/unit_interpretation.yaml new file mode 100644 index 00000000..34c882dc --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/unit_interpretation.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: unit_interpretation_zero_shot +include: ../generate_until_template_yaml +task: bigbench_unit_interpretation_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/unnatural_in_context_learning.yaml b/lm_eval/tasks/bigbench/generate_until/unnatural_in_context_learning.yaml new file mode 100644 index 00000000..deddb77d --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/unnatural_in_context_learning.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: unnatural_in_context_learning_zero_shot +include: ../generate_until_template_yaml +task: bigbench_unnatural_in_context_learning_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/vitaminc_fact_verification.yaml b/lm_eval/tasks/bigbench/generate_until/vitaminc_fact_verification.yaml new file mode 100644 index 00000000..6f2ad8d3 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/vitaminc_fact_verification.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: vitaminc_fact_verification_zero_shot +include: ../generate_until_template_yaml +task: bigbench_vitaminc_fact_verification_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/what_is_the_tao.yaml b/lm_eval/tasks/bigbench/generate_until/what_is_the_tao.yaml new file mode 100644 index 00000000..3a1487ab --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/what_is_the_tao.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: what_is_the_tao_zero_shot +include: ../generate_until_template_yaml +task: bigbench_what_is_the_tao_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/which_wiki_edit.yaml b/lm_eval/tasks/bigbench/generate_until/which_wiki_edit.yaml new file mode 100644 index 00000000..bc05c377 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/which_wiki_edit.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: which_wiki_edit_zero_shot +include: ../generate_until_template_yaml +task: bigbench_which_wiki_edit_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/winowhy.yaml b/lm_eval/tasks/bigbench/generate_until/winowhy.yaml new file mode 100644 index 00000000..99ff22d9 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/winowhy.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: winowhy_zero_shot +include: ../generate_until_template_yaml +task: bigbench_winowhy_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/word_sorting.yaml b/lm_eval/tasks/bigbench/generate_until/word_sorting.yaml new file mode 100644 index 00000000..16be6060 --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/word_sorting.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: word_sorting_zero_shot +include: ../generate_until_template_yaml +task: bigbench_word_sorting_generate_until diff --git a/lm_eval/tasks/bigbench/generate_until/word_unscrambling.yaml b/lm_eval/tasks/bigbench/generate_until/word_unscrambling.yaml new file mode 100644 index 00000000..5632a79c --- /dev/null +++ b/lm_eval/tasks/bigbench/generate_until/word_unscrambling.yaml @@ -0,0 +1,4 @@ +# Generated by utils.py +dataset_name: word_unscrambling_zero_shot +include: ../generate_until_template_yaml +task: bigbench_word_unscrambling_generate_until diff --git a/lm_eval/tasks/bigbench/greedy_until/abstract_narrative_understanding.yaml b/lm_eval/tasks/bigbench/greedy_until/abstract_narrative_understanding.yaml deleted file mode 100644 index dd041fdd..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/abstract_narrative_understanding.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: abstract_narrative_understanding_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_abstract_narrative_understanding_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/anachronisms.yaml b/lm_eval/tasks/bigbench/greedy_until/anachronisms.yaml deleted file mode 100644 index 9e723927..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/anachronisms.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: anachronisms_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_anachronisms_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/analogical_similarity.yaml b/lm_eval/tasks/bigbench/greedy_until/analogical_similarity.yaml deleted file mode 100644 index 3d2e82b4..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/analogical_similarity.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: analogical_similarity_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_analogical_similarity_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/analytic_entailment.yaml b/lm_eval/tasks/bigbench/greedy_until/analytic_entailment.yaml deleted file mode 100644 index a8425049..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/analytic_entailment.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: analytic_entailment_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_analytic_entailment_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/arithmetic.yaml b/lm_eval/tasks/bigbench/greedy_until/arithmetic.yaml deleted file mode 100644 index be296b1b..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/arithmetic.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: arithmetic_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_arithmetic_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/ascii_word_recognition.yaml b/lm_eval/tasks/bigbench/greedy_until/ascii_word_recognition.yaml deleted file mode 100644 index d199e8a5..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/ascii_word_recognition.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: ascii_word_recognition_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_ascii_word_recognition_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/authorship_verification.yaml b/lm_eval/tasks/bigbench/greedy_until/authorship_verification.yaml deleted file mode 100644 index 65d8177c..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/authorship_verification.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: authorship_verification_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_authorship_verification_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/auto_categorization.yaml b/lm_eval/tasks/bigbench/greedy_until/auto_categorization.yaml deleted file mode 100644 index 3ce36427..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/auto_categorization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: auto_categorization_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_auto_categorization_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/auto_debugging.yaml b/lm_eval/tasks/bigbench/greedy_until/auto_debugging.yaml deleted file mode 100644 index e25bee24..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/auto_debugging.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: auto_debugging_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_auto_debugging_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/bbq_lite_json.yaml b/lm_eval/tasks/bigbench/greedy_until/bbq_lite_json.yaml deleted file mode 100644 index d1d45477..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/bbq_lite_json.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: bbq_lite_json_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_bbq_lite_json_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/bridging_anaphora_resolution_barqa.yaml b/lm_eval/tasks/bigbench/greedy_until/bridging_anaphora_resolution_barqa.yaml deleted file mode 100644 index a20da27f..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/bridging_anaphora_resolution_barqa.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: bridging_anaphora_resolution_barqa_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_bridging_anaphora_resolution_barqa_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/causal_judgment.yaml b/lm_eval/tasks/bigbench/greedy_until/causal_judgment.yaml deleted file mode 100644 index 2b9c89af..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/causal_judgment.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: causal_judgment_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_causal_judgment_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/cause_and_effect.yaml b/lm_eval/tasks/bigbench/greedy_until/cause_and_effect.yaml deleted file mode 100644 index 5dd23108..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/cause_and_effect.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: cause_and_effect_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_cause_and_effect_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/checkmate_in_one.yaml b/lm_eval/tasks/bigbench/greedy_until/checkmate_in_one.yaml deleted file mode 100644 index 06681769..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/checkmate_in_one.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: checkmate_in_one_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_checkmate_in_one_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/chess_state_tracking.yaml b/lm_eval/tasks/bigbench/greedy_until/chess_state_tracking.yaml deleted file mode 100644 index 6a9a088e..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/chess_state_tracking.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: chess_state_tracking_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_chess_state_tracking_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/chinese_remainder_theorem.yaml b/lm_eval/tasks/bigbench/greedy_until/chinese_remainder_theorem.yaml deleted file mode 100644 index f3937088..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/chinese_remainder_theorem.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: chinese_remainder_theorem_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_chinese_remainder_theorem_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/cifar10_classification.yaml b/lm_eval/tasks/bigbench/greedy_until/cifar10_classification.yaml deleted file mode 100644 index 6bad6797..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/cifar10_classification.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: cifar10_classification_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_cifar10_classification_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/code_line_description.yaml b/lm_eval/tasks/bigbench/greedy_until/code_line_description.yaml deleted file mode 100644 index de1f7829..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/code_line_description.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: code_line_description_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_code_line_description_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/codenames.yaml b/lm_eval/tasks/bigbench/greedy_until/codenames.yaml deleted file mode 100644 index 83feca88..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/codenames.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: codenames_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_codenames_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/color.yaml b/lm_eval/tasks/bigbench/greedy_until/color.yaml deleted file mode 100644 index 5aa9c1a9..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/color.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: color_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_color_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/common_morpheme.yaml b/lm_eval/tasks/bigbench/greedy_until/common_morpheme.yaml deleted file mode 100644 index ec0fdc44..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/common_morpheme.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: common_morpheme_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_common_morpheme_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/conceptual_combinations.yaml b/lm_eval/tasks/bigbench/greedy_until/conceptual_combinations.yaml deleted file mode 100644 index 5eaba446..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/conceptual_combinations.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: conceptual_combinations_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_conceptual_combinations_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/conlang_translation.yaml b/lm_eval/tasks/bigbench/greedy_until/conlang_translation.yaml deleted file mode 100644 index afae8184..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/conlang_translation.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: conlang_translation_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_conlang_translation_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/contextual_parametric_knowledge_conflicts.yaml b/lm_eval/tasks/bigbench/greedy_until/contextual_parametric_knowledge_conflicts.yaml deleted file mode 100644 index bb7eba64..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/contextual_parametric_knowledge_conflicts.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: contextual_parametric_knowledge_conflicts_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_contextual_parametric_knowledge_conflicts_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/crash_blossom.yaml b/lm_eval/tasks/bigbench/greedy_until/crash_blossom.yaml deleted file mode 100644 index ae7f6b9f..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/crash_blossom.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: crash_blossom_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_crash_blossom_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/crass_ai.yaml b/lm_eval/tasks/bigbench/greedy_until/crass_ai.yaml deleted file mode 100644 index 7d56bbc2..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/crass_ai.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: crass_ai_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_crass_ai_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/cryobiology_spanish.yaml b/lm_eval/tasks/bigbench/greedy_until/cryobiology_spanish.yaml deleted file mode 100644 index 37fd99ad..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/cryobiology_spanish.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: cryobiology_spanish_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_cryobiology_spanish_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/cryptonite.yaml b/lm_eval/tasks/bigbench/greedy_until/cryptonite.yaml deleted file mode 100644 index 64577738..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/cryptonite.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: cryptonite_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_cryptonite_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/cs_algorithms.yaml b/lm_eval/tasks/bigbench/greedy_until/cs_algorithms.yaml deleted file mode 100644 index 9279c295..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/cs_algorithms.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: cs_algorithms_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_cs_algorithms_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/dark_humor_detection.yaml b/lm_eval/tasks/bigbench/greedy_until/dark_humor_detection.yaml deleted file mode 100644 index 014d57e6..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/dark_humor_detection.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: dark_humor_detection_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_dark_humor_detection_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/date_understanding.yaml b/lm_eval/tasks/bigbench/greedy_until/date_understanding.yaml deleted file mode 100644 index 999a7e71..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/date_understanding.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: date_understanding_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_date_understanding_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/disambiguation_qa.yaml b/lm_eval/tasks/bigbench/greedy_until/disambiguation_qa.yaml deleted file mode 100644 index db25589d..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/disambiguation_qa.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: disambiguation_qa_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_disambiguation_qa_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/discourse_marker_prediction.yaml b/lm_eval/tasks/bigbench/greedy_until/discourse_marker_prediction.yaml deleted file mode 100644 index ae8941e8..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/discourse_marker_prediction.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: discourse_marker_prediction_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_discourse_marker_prediction_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/disfl_qa.yaml b/lm_eval/tasks/bigbench/greedy_until/disfl_qa.yaml deleted file mode 100644 index 0086850a..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/disfl_qa.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: disfl_qa_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_disfl_qa_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/dyck_languages.yaml b/lm_eval/tasks/bigbench/greedy_until/dyck_languages.yaml deleted file mode 100644 index e8de0093..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/dyck_languages.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: dyck_languages_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_dyck_languages_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/elementary_math_qa.yaml b/lm_eval/tasks/bigbench/greedy_until/elementary_math_qa.yaml deleted file mode 100644 index 55369151..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/elementary_math_qa.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: elementary_math_qa_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_elementary_math_qa_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/emoji_movie.yaml b/lm_eval/tasks/bigbench/greedy_until/emoji_movie.yaml deleted file mode 100644 index 4553ede7..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/emoji_movie.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: emoji_movie_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_emoji_movie_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/emojis_emotion_prediction.yaml b/lm_eval/tasks/bigbench/greedy_until/emojis_emotion_prediction.yaml deleted file mode 100644 index e570e24a..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/emojis_emotion_prediction.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: emojis_emotion_prediction_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_emojis_emotion_prediction_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/empirical_judgments.yaml b/lm_eval/tasks/bigbench/greedy_until/empirical_judgments.yaml deleted file mode 100644 index d4f2f3cf..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/empirical_judgments.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: empirical_judgments_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_empirical_judgments_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/english_proverbs.yaml b/lm_eval/tasks/bigbench/greedy_until/english_proverbs.yaml deleted file mode 100644 index b7628796..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/english_proverbs.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: english_proverbs_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_english_proverbs_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/english_russian_proverbs.yaml b/lm_eval/tasks/bigbench/greedy_until/english_russian_proverbs.yaml deleted file mode 100644 index ea719e1d..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/english_russian_proverbs.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: english_russian_proverbs_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_english_russian_proverbs_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/entailed_polarity.yaml b/lm_eval/tasks/bigbench/greedy_until/entailed_polarity.yaml deleted file mode 100644 index e3d89fc2..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/entailed_polarity.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: entailed_polarity_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_entailed_polarity_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/entailed_polarity_hindi.yaml b/lm_eval/tasks/bigbench/greedy_until/entailed_polarity_hindi.yaml deleted file mode 100644 index e416a059..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/entailed_polarity_hindi.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: entailed_polarity_hindi_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_entailed_polarity_hindi_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/epistemic_reasoning.yaml b/lm_eval/tasks/bigbench/greedy_until/epistemic_reasoning.yaml deleted file mode 100644 index 8f8efc4e..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/epistemic_reasoning.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: epistemic_reasoning_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_epistemic_reasoning_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/evaluating_information_essentiality.yaml b/lm_eval/tasks/bigbench/greedy_until/evaluating_information_essentiality.yaml deleted file mode 100644 index b35240c4..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/evaluating_information_essentiality.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: evaluating_information_essentiality_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_evaluating_information_essentiality_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/fact_checker.yaml b/lm_eval/tasks/bigbench/greedy_until/fact_checker.yaml deleted file mode 100644 index f83e4081..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/fact_checker.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: fact_checker_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_fact_checker_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/fantasy_reasoning.yaml b/lm_eval/tasks/bigbench/greedy_until/fantasy_reasoning.yaml deleted file mode 100644 index ab38359d..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/fantasy_reasoning.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: fantasy_reasoning_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_fantasy_reasoning_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/few_shot_nlg.yaml b/lm_eval/tasks/bigbench/greedy_until/few_shot_nlg.yaml deleted file mode 100644 index bf1e33e0..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/few_shot_nlg.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: few_shot_nlg_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_few_shot_nlg_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/figure_of_speech_detection.yaml b/lm_eval/tasks/bigbench/greedy_until/figure_of_speech_detection.yaml deleted file mode 100644 index 184cd4e6..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/figure_of_speech_detection.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: figure_of_speech_detection_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_figure_of_speech_detection_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/formal_fallacies_syllogisms_negation.yaml b/lm_eval/tasks/bigbench/greedy_until/formal_fallacies_syllogisms_negation.yaml deleted file mode 100644 index cb1915b8..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/formal_fallacies_syllogisms_negation.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: formal_fallacies_syllogisms_negation_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_formal_fallacies_syllogisms_negation_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/gem.yaml b/lm_eval/tasks/bigbench/greedy_until/gem.yaml deleted file mode 100644 index aa43ca45..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/gem.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: gem_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_gem_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/gender_inclusive_sentences_german.yaml b/lm_eval/tasks/bigbench/greedy_until/gender_inclusive_sentences_german.yaml deleted file mode 100644 index 6471e577..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/gender_inclusive_sentences_german.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: gender_inclusive_sentences_german_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_gender_inclusive_sentences_german_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/general_knowledge.yaml b/lm_eval/tasks/bigbench/greedy_until/general_knowledge.yaml deleted file mode 100644 index 93a3f875..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/general_knowledge.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: general_knowledge_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_general_knowledge_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/geometric_shapes.yaml b/lm_eval/tasks/bigbench/greedy_until/geometric_shapes.yaml deleted file mode 100644 index c3a5d9a7..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/geometric_shapes.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: geometric_shapes_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_geometric_shapes_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/goal_step_wikihow.yaml b/lm_eval/tasks/bigbench/greedy_until/goal_step_wikihow.yaml deleted file mode 100644 index 6fd557d3..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/goal_step_wikihow.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: goal_step_wikihow_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_goal_step_wikihow_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/gre_reading_comprehension.yaml b/lm_eval/tasks/bigbench/greedy_until/gre_reading_comprehension.yaml deleted file mode 100644 index c4416b10..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/gre_reading_comprehension.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: gre_reading_comprehension_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_gre_reading_comprehension_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/hhh_alignment.yaml b/lm_eval/tasks/bigbench/greedy_until/hhh_alignment.yaml deleted file mode 100644 index 4060824c..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/hhh_alignment.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: hhh_alignment_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_hhh_alignment_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/hindi_question_answering.yaml b/lm_eval/tasks/bigbench/greedy_until/hindi_question_answering.yaml deleted file mode 100644 index 5c4791b4..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/hindi_question_answering.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: hindi_question_answering_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_hindi_question_answering_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/hindu_knowledge.yaml b/lm_eval/tasks/bigbench/greedy_until/hindu_knowledge.yaml deleted file mode 100644 index 040441f7..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/hindu_knowledge.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: hindu_knowledge_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_hindu_knowledge_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/hinglish_toxicity.yaml b/lm_eval/tasks/bigbench/greedy_until/hinglish_toxicity.yaml deleted file mode 100644 index 0eb98e51..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/hinglish_toxicity.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: hinglish_toxicity_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_hinglish_toxicity_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/human_organs_senses.yaml b/lm_eval/tasks/bigbench/greedy_until/human_organs_senses.yaml deleted file mode 100644 index c5541571..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/human_organs_senses.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: human_organs_senses_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_human_organs_senses_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/hyperbaton.yaml b/lm_eval/tasks/bigbench/greedy_until/hyperbaton.yaml deleted file mode 100644 index 4368f4c9..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/hyperbaton.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: hyperbaton_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_hyperbaton_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/identify_math_theorems.yaml b/lm_eval/tasks/bigbench/greedy_until/identify_math_theorems.yaml deleted file mode 100644 index 2c08703e..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/identify_math_theorems.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: identify_math_theorems_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_identify_math_theorems_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/identify_odd_metaphor.yaml b/lm_eval/tasks/bigbench/greedy_until/identify_odd_metaphor.yaml deleted file mode 100644 index 9cb39d0d..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/identify_odd_metaphor.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: identify_odd_metaphor_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_identify_odd_metaphor_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/implicatures.yaml b/lm_eval/tasks/bigbench/greedy_until/implicatures.yaml deleted file mode 100644 index e216762c..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/implicatures.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: implicatures_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_implicatures_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/implicit_relations.yaml b/lm_eval/tasks/bigbench/greedy_until/implicit_relations.yaml deleted file mode 100644 index c7a82a10..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/implicit_relations.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: implicit_relations_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_implicit_relations_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/intent_recognition.yaml b/lm_eval/tasks/bigbench/greedy_until/intent_recognition.yaml deleted file mode 100644 index 4839afa2..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/intent_recognition.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: intent_recognition_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_intent_recognition_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/international_phonetic_alphabet_nli.yaml b/lm_eval/tasks/bigbench/greedy_until/international_phonetic_alphabet_nli.yaml deleted file mode 100644 index 62643a46..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/international_phonetic_alphabet_nli.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: international_phonetic_alphabet_nli_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_international_phonetic_alphabet_nli_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/international_phonetic_alphabet_transliterate.yaml b/lm_eval/tasks/bigbench/greedy_until/international_phonetic_alphabet_transliterate.yaml deleted file mode 100644 index 05feb4f5..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/international_phonetic_alphabet_transliterate.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: international_phonetic_alphabet_transliterate_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_international_phonetic_alphabet_transliterate_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/intersect_geometry.yaml b/lm_eval/tasks/bigbench/greedy_until/intersect_geometry.yaml deleted file mode 100644 index 57745d23..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/intersect_geometry.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: intersect_geometry_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_intersect_geometry_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/irony_identification.yaml b/lm_eval/tasks/bigbench/greedy_until/irony_identification.yaml deleted file mode 100644 index b49dfb44..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/irony_identification.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: irony_identification_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_irony_identification_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/kanji_ascii.yaml b/lm_eval/tasks/bigbench/greedy_until/kanji_ascii.yaml deleted file mode 100644 index 293ff6c2..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/kanji_ascii.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: kanji_ascii_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_kanji_ascii_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/kannada.yaml b/lm_eval/tasks/bigbench/greedy_until/kannada.yaml deleted file mode 100644 index 00eeb32a..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/kannada.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: kannada_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_kannada_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/key_value_maps.yaml b/lm_eval/tasks/bigbench/greedy_until/key_value_maps.yaml deleted file mode 100644 index d313e1ce..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/key_value_maps.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: key_value_maps_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_key_value_maps_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/known_unknowns.yaml b/lm_eval/tasks/bigbench/greedy_until/known_unknowns.yaml deleted file mode 100644 index d72e1d37..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/known_unknowns.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: known_unknowns_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_known_unknowns_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/language_games.yaml b/lm_eval/tasks/bigbench/greedy_until/language_games.yaml deleted file mode 100644 index 61e85b53..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/language_games.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: language_games_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_language_games_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/language_identification.yaml b/lm_eval/tasks/bigbench/greedy_until/language_identification.yaml deleted file mode 100644 index 8db65637..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/language_identification.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: language_identification_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_language_identification_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/linguistic_mappings.yaml b/lm_eval/tasks/bigbench/greedy_until/linguistic_mappings.yaml deleted file mode 100644 index db6e9832..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/linguistic_mappings.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: linguistic_mappings_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_linguistic_mappings_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/linguistics_puzzles.yaml b/lm_eval/tasks/bigbench/greedy_until/linguistics_puzzles.yaml deleted file mode 100644 index 4e3981f4..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/linguistics_puzzles.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: linguistics_puzzles_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_linguistics_puzzles_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/list_functions.yaml b/lm_eval/tasks/bigbench/greedy_until/list_functions.yaml deleted file mode 100644 index 32afff69..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/list_functions.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: list_functions_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_list_functions_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/logic_grid_puzzle.yaml b/lm_eval/tasks/bigbench/greedy_until/logic_grid_puzzle.yaml deleted file mode 100644 index a1d1b5b1..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/logic_grid_puzzle.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: logic_grid_puzzle_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_logic_grid_puzzle_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/logical_args.yaml b/lm_eval/tasks/bigbench/greedy_until/logical_args.yaml deleted file mode 100644 index 201c04ae..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/logical_args.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: logical_args_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_logical_args_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/logical_deduction.yaml b/lm_eval/tasks/bigbench/greedy_until/logical_deduction.yaml deleted file mode 100644 index 1b77561d..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/logical_deduction.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: logical_deduction_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_logical_deduction_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/logical_fallacy_detection.yaml b/lm_eval/tasks/bigbench/greedy_until/logical_fallacy_detection.yaml deleted file mode 100644 index af3e9ea4..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/logical_fallacy_detection.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: logical_fallacy_detection_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_logical_fallacy_detection_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/logical_sequence.yaml b/lm_eval/tasks/bigbench/greedy_until/logical_sequence.yaml deleted file mode 100644 index 4d4ffe1d..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/logical_sequence.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: logical_sequence_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_logical_sequence_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/mathematical_induction.yaml b/lm_eval/tasks/bigbench/greedy_until/mathematical_induction.yaml deleted file mode 100644 index 84d0f419..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/mathematical_induction.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: mathematical_induction_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_mathematical_induction_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/matrixshapes.yaml b/lm_eval/tasks/bigbench/greedy_until/matrixshapes.yaml deleted file mode 100644 index 956aa5f0..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/matrixshapes.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: matrixshapes_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_matrixshapes_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/metaphor_boolean.yaml b/lm_eval/tasks/bigbench/greedy_until/metaphor_boolean.yaml deleted file mode 100644 index 7fd4e53c..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/metaphor_boolean.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: metaphor_boolean_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_metaphor_boolean_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/metaphor_understanding.yaml b/lm_eval/tasks/bigbench/greedy_until/metaphor_understanding.yaml deleted file mode 100644 index 12b79d44..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/metaphor_understanding.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: metaphor_understanding_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_metaphor_understanding_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/minute_mysteries_qa.yaml b/lm_eval/tasks/bigbench/greedy_until/minute_mysteries_qa.yaml deleted file mode 100644 index 459aec57..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/minute_mysteries_qa.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: minute_mysteries_qa_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_minute_mysteries_qa_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/misconceptions.yaml b/lm_eval/tasks/bigbench/greedy_until/misconceptions.yaml deleted file mode 100644 index 25038ae3..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/misconceptions.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: misconceptions_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_misconceptions_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/misconceptions_russian.yaml b/lm_eval/tasks/bigbench/greedy_until/misconceptions_russian.yaml deleted file mode 100644 index 676d94ea..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/misconceptions_russian.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: misconceptions_russian_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_misconceptions_russian_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/mnist_ascii.yaml b/lm_eval/tasks/bigbench/greedy_until/mnist_ascii.yaml deleted file mode 100644 index 19c9a82b..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/mnist_ascii.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: mnist_ascii_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_mnist_ascii_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/modified_arithmetic.yaml b/lm_eval/tasks/bigbench/greedy_until/modified_arithmetic.yaml deleted file mode 100644 index 313b5b9d..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/modified_arithmetic.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: modified_arithmetic_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_modified_arithmetic_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/moral_permissibility.yaml b/lm_eval/tasks/bigbench/greedy_until/moral_permissibility.yaml deleted file mode 100644 index f478ed24..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/moral_permissibility.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: moral_permissibility_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_moral_permissibility_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/movie_dialog_same_or_different.yaml b/lm_eval/tasks/bigbench/greedy_until/movie_dialog_same_or_different.yaml deleted file mode 100644 index 98e06e5d..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/movie_dialog_same_or_different.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: movie_dialog_same_or_different_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_movie_dialog_same_or_different_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/movie_recommendation.yaml b/lm_eval/tasks/bigbench/greedy_until/movie_recommendation.yaml deleted file mode 100644 index 7cd021a4..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/movie_recommendation.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: movie_recommendation_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_movie_recommendation_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/mult_data_wrangling.yaml b/lm_eval/tasks/bigbench/greedy_until/mult_data_wrangling.yaml deleted file mode 100644 index 92b84838..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/mult_data_wrangling.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: mult_data_wrangling_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_mult_data_wrangling_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/multiemo.yaml b/lm_eval/tasks/bigbench/greedy_until/multiemo.yaml deleted file mode 100644 index ac4f9432..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/multiemo.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: multiemo_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_multiemo_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/natural_instructions.yaml b/lm_eval/tasks/bigbench/greedy_until/natural_instructions.yaml deleted file mode 100644 index 0b87004d..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/natural_instructions.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: natural_instructions_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_natural_instructions_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/navigate.yaml b/lm_eval/tasks/bigbench/greedy_until/navigate.yaml deleted file mode 100644 index 85fd618b..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/navigate.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: navigate_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_navigate_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/nonsense_words_grammar.yaml b/lm_eval/tasks/bigbench/greedy_until/nonsense_words_grammar.yaml deleted file mode 100644 index 863b0a85..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/nonsense_words_grammar.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: nonsense_words_grammar_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_nonsense_words_grammar_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/novel_concepts.yaml b/lm_eval/tasks/bigbench/greedy_until/novel_concepts.yaml deleted file mode 100644 index b3b08806..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/novel_concepts.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: novel_concepts_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_novel_concepts_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/object_counting.yaml b/lm_eval/tasks/bigbench/greedy_until/object_counting.yaml deleted file mode 100644 index fc0d6119..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/object_counting.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: object_counting_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_object_counting_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/odd_one_out.yaml b/lm_eval/tasks/bigbench/greedy_until/odd_one_out.yaml deleted file mode 100644 index 90d0fd93..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/odd_one_out.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: odd_one_out_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_odd_one_out_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/operators.yaml b/lm_eval/tasks/bigbench/greedy_until/operators.yaml deleted file mode 100644 index d4ad9b91..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/operators.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: operators_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_operators_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/paragraph_segmentation.yaml b/lm_eval/tasks/bigbench/greedy_until/paragraph_segmentation.yaml deleted file mode 100644 index c661e1a7..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/paragraph_segmentation.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: paragraph_segmentation_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_paragraph_segmentation_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/parsinlu_qa.yaml b/lm_eval/tasks/bigbench/greedy_until/parsinlu_qa.yaml deleted file mode 100644 index 4ea51e21..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/parsinlu_qa.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: parsinlu_qa_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_parsinlu_qa_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/parsinlu_reading_comprehension.yaml b/lm_eval/tasks/bigbench/greedy_until/parsinlu_reading_comprehension.yaml deleted file mode 100644 index 967741fd..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/parsinlu_reading_comprehension.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: parsinlu_reading_comprehension_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_parsinlu_reading_comprehension_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/penguins_in_a_table.yaml b/lm_eval/tasks/bigbench/greedy_until/penguins_in_a_table.yaml deleted file mode 100644 index 5e59b741..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/penguins_in_a_table.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: penguins_in_a_table_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_penguins_in_a_table_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/periodic_elements.yaml b/lm_eval/tasks/bigbench/greedy_until/periodic_elements.yaml deleted file mode 100644 index a7ed5a82..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/periodic_elements.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: periodic_elements_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_periodic_elements_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/persian_idioms.yaml b/lm_eval/tasks/bigbench/greedy_until/persian_idioms.yaml deleted file mode 100644 index 087d4688..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/persian_idioms.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: persian_idioms_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_persian_idioms_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/phrase_relatedness.yaml b/lm_eval/tasks/bigbench/greedy_until/phrase_relatedness.yaml deleted file mode 100644 index c2da5cce..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/phrase_relatedness.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: phrase_relatedness_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_phrase_relatedness_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/physical_intuition.yaml b/lm_eval/tasks/bigbench/greedy_until/physical_intuition.yaml deleted file mode 100644 index 1482fe65..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/physical_intuition.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: physical_intuition_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_physical_intuition_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/physics.yaml b/lm_eval/tasks/bigbench/greedy_until/physics.yaml deleted file mode 100644 index 7fade7b3..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/physics.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: physics_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_physics_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/physics_questions.yaml b/lm_eval/tasks/bigbench/greedy_until/physics_questions.yaml deleted file mode 100644 index bf332361..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/physics_questions.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: physics_questions_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_physics_questions_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/play_dialog_same_or_different.yaml b/lm_eval/tasks/bigbench/greedy_until/play_dialog_same_or_different.yaml deleted file mode 100644 index 1ddf7ca7..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/play_dialog_same_or_different.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: play_dialog_same_or_different_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_play_dialog_same_or_different_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/polish_sequence_labeling.yaml b/lm_eval/tasks/bigbench/greedy_until/polish_sequence_labeling.yaml deleted file mode 100644 index 10c8bd98..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/polish_sequence_labeling.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: polish_sequence_labeling_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_polish_sequence_labeling_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/presuppositions_as_nli.yaml b/lm_eval/tasks/bigbench/greedy_until/presuppositions_as_nli.yaml deleted file mode 100644 index 66d0e5ea..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/presuppositions_as_nli.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: presuppositions_as_nli_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_presuppositions_as_nli_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/qa_wikidata.yaml b/lm_eval/tasks/bigbench/greedy_until/qa_wikidata.yaml deleted file mode 100644 index 67240110..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/qa_wikidata.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: qa_wikidata_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_qa_wikidata_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/question_selection.yaml b/lm_eval/tasks/bigbench/greedy_until/question_selection.yaml deleted file mode 100644 index 5652cb3f..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/question_selection.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: question_selection_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_question_selection_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/real_or_fake_text.yaml b/lm_eval/tasks/bigbench/greedy_until/real_or_fake_text.yaml deleted file mode 100644 index c206597b..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/real_or_fake_text.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: real_or_fake_text_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_real_or_fake_text_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/reasoning_about_colored_objects.yaml b/lm_eval/tasks/bigbench/greedy_until/reasoning_about_colored_objects.yaml deleted file mode 100644 index 8b1051e5..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/reasoning_about_colored_objects.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: reasoning_about_colored_objects_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_reasoning_about_colored_objects_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/repeat_copy_logic.yaml b/lm_eval/tasks/bigbench/greedy_until/repeat_copy_logic.yaml deleted file mode 100644 index 279ecd01..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/repeat_copy_logic.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: repeat_copy_logic_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_repeat_copy_logic_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/rephrase.yaml b/lm_eval/tasks/bigbench/greedy_until/rephrase.yaml deleted file mode 100644 index 90135638..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/rephrase.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: rephrase_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_rephrase_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/riddle_sense.yaml b/lm_eval/tasks/bigbench/greedy_until/riddle_sense.yaml deleted file mode 100644 index a11c167d..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/riddle_sense.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: riddle_sense_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_riddle_sense_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/ruin_names.yaml b/lm_eval/tasks/bigbench/greedy_until/ruin_names.yaml deleted file mode 100644 index 5074e010..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/ruin_names.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: ruin_names_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_ruin_names_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/salient_translation_error_detection.yaml b/lm_eval/tasks/bigbench/greedy_until/salient_translation_error_detection.yaml deleted file mode 100644 index 7f2ce433..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/salient_translation_error_detection.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: salient_translation_error_detection_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_salient_translation_error_detection_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/scientific_press_release.yaml b/lm_eval/tasks/bigbench/greedy_until/scientific_press_release.yaml deleted file mode 100644 index 90071882..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/scientific_press_release.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: scientific_press_release_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_scientific_press_release_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/semantic_parsing_in_context_sparc.yaml b/lm_eval/tasks/bigbench/greedy_until/semantic_parsing_in_context_sparc.yaml deleted file mode 100644 index 93ddccc2..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/semantic_parsing_in_context_sparc.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: semantic_parsing_in_context_sparc_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_semantic_parsing_in_context_sparc_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/semantic_parsing_spider.yaml b/lm_eval/tasks/bigbench/greedy_until/semantic_parsing_spider.yaml deleted file mode 100644 index cc590faf..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/semantic_parsing_spider.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: semantic_parsing_spider_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_semantic_parsing_spider_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/sentence_ambiguity.yaml b/lm_eval/tasks/bigbench/greedy_until/sentence_ambiguity.yaml deleted file mode 100644 index 6cbacb79..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/sentence_ambiguity.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: sentence_ambiguity_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_sentence_ambiguity_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/similarities_abstraction.yaml b/lm_eval/tasks/bigbench/greedy_until/similarities_abstraction.yaml deleted file mode 100644 index 10e9a439..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/similarities_abstraction.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: similarities_abstraction_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_similarities_abstraction_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/simp_turing_concept.yaml b/lm_eval/tasks/bigbench/greedy_until/simp_turing_concept.yaml deleted file mode 100644 index a82b8226..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/simp_turing_concept.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: simp_turing_concept_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_simp_turing_concept_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/simple_arithmetic_json.yaml b/lm_eval/tasks/bigbench/greedy_until/simple_arithmetic_json.yaml deleted file mode 100644 index 8e0a207e..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/simple_arithmetic_json.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: simple_arithmetic_json_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_simple_arithmetic_json_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/simple_arithmetic_json_multiple_choice.yaml b/lm_eval/tasks/bigbench/greedy_until/simple_arithmetic_json_multiple_choice.yaml deleted file mode 100644 index df235325..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/simple_arithmetic_json_multiple_choice.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: simple_arithmetic_json_multiple_choice_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_simple_arithmetic_json_multiple_choice_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/simple_arithmetic_json_subtasks.yaml b/lm_eval/tasks/bigbench/greedy_until/simple_arithmetic_json_subtasks.yaml deleted file mode 100644 index 2f981fb0..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/simple_arithmetic_json_subtasks.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: simple_arithmetic_json_subtasks_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_simple_arithmetic_json_subtasks_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/simple_arithmetic_multiple_targets_json.yaml b/lm_eval/tasks/bigbench/greedy_until/simple_arithmetic_multiple_targets_json.yaml deleted file mode 100644 index 2bc6cf16..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/simple_arithmetic_multiple_targets_json.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: simple_arithmetic_multiple_targets_json_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_simple_arithmetic_multiple_targets_json_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/simple_ethical_questions.yaml b/lm_eval/tasks/bigbench/greedy_until/simple_ethical_questions.yaml deleted file mode 100644 index 77e45a58..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/simple_ethical_questions.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: simple_ethical_questions_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_simple_ethical_questions_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/simple_text_editing.yaml b/lm_eval/tasks/bigbench/greedy_until/simple_text_editing.yaml deleted file mode 100644 index 1b485d5c..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/simple_text_editing.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: simple_text_editing_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_simple_text_editing_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/snarks.yaml b/lm_eval/tasks/bigbench/greedy_until/snarks.yaml deleted file mode 100644 index 9ccbda74..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/snarks.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: snarks_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_snarks_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/social_iqa.yaml b/lm_eval/tasks/bigbench/greedy_until/social_iqa.yaml deleted file mode 100644 index 9cbc5ec5..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/social_iqa.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: social_iqa_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_social_iqa_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/social_support.yaml b/lm_eval/tasks/bigbench/greedy_until/social_support.yaml deleted file mode 100644 index bcc3a9d1..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/social_support.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: social_support_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_social_support_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/sports_understanding.yaml b/lm_eval/tasks/bigbench/greedy_until/sports_understanding.yaml deleted file mode 100644 index 01082a10..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/sports_understanding.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: sports_understanding_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_sports_understanding_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/strange_stories.yaml b/lm_eval/tasks/bigbench/greedy_until/strange_stories.yaml deleted file mode 100644 index a0bf1c46..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/strange_stories.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: strange_stories_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_strange_stories_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/strategyqa.yaml b/lm_eval/tasks/bigbench/greedy_until/strategyqa.yaml deleted file mode 100644 index 495d873f..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/strategyqa.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: strategyqa_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_strategyqa_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/sufficient_information.yaml b/lm_eval/tasks/bigbench/greedy_until/sufficient_information.yaml deleted file mode 100644 index 3484952c..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/sufficient_information.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: sufficient_information_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_sufficient_information_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/suicide_risk.yaml b/lm_eval/tasks/bigbench/greedy_until/suicide_risk.yaml deleted file mode 100644 index a8e980d5..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/suicide_risk.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: suicide_risk_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_suicide_risk_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/swahili_english_proverbs.yaml b/lm_eval/tasks/bigbench/greedy_until/swahili_english_proverbs.yaml deleted file mode 100644 index ff045534..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/swahili_english_proverbs.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: swahili_english_proverbs_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_swahili_english_proverbs_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/swedish_to_german_proverbs.yaml b/lm_eval/tasks/bigbench/greedy_until/swedish_to_german_proverbs.yaml deleted file mode 100644 index 8cbd401b..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/swedish_to_german_proverbs.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: swedish_to_german_proverbs_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_swedish_to_german_proverbs_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/symbol_interpretation.yaml b/lm_eval/tasks/bigbench/greedy_until/symbol_interpretation.yaml deleted file mode 100644 index 3fa4cdba..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/symbol_interpretation.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: symbol_interpretation_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_symbol_interpretation_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/temporal_sequences.yaml b/lm_eval/tasks/bigbench/greedy_until/temporal_sequences.yaml deleted file mode 100644 index c20300f8..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/temporal_sequences.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: temporal_sequences_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_temporal_sequences_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/tense.yaml b/lm_eval/tasks/bigbench/greedy_until/tense.yaml deleted file mode 100644 index b1b5698d..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/tense.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: tense_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_tense_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/timedial.yaml b/lm_eval/tasks/bigbench/greedy_until/timedial.yaml deleted file mode 100644 index d5f1950e..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/timedial.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: timedial_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_timedial_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/topical_chat.yaml b/lm_eval/tasks/bigbench/greedy_until/topical_chat.yaml deleted file mode 100644 index 4ec83039..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/topical_chat.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: topical_chat_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_topical_chat_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/tracking_shuffled_objects.yaml b/lm_eval/tasks/bigbench/greedy_until/tracking_shuffled_objects.yaml deleted file mode 100644 index 27024bee..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/tracking_shuffled_objects.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: tracking_shuffled_objects_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_tracking_shuffled_objects_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/understanding_fables.yaml b/lm_eval/tasks/bigbench/greedy_until/understanding_fables.yaml deleted file mode 100644 index f467652d..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/understanding_fables.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: understanding_fables_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_understanding_fables_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/undo_permutation.yaml b/lm_eval/tasks/bigbench/greedy_until/undo_permutation.yaml deleted file mode 100644 index d91ff331..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/undo_permutation.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: undo_permutation_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_undo_permutation_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/unit_conversion.yaml b/lm_eval/tasks/bigbench/greedy_until/unit_conversion.yaml deleted file mode 100644 index a31929fb..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/unit_conversion.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: unit_conversion_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_unit_conversion_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/unit_interpretation.yaml b/lm_eval/tasks/bigbench/greedy_until/unit_interpretation.yaml deleted file mode 100644 index ca4c38be..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/unit_interpretation.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: unit_interpretation_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_unit_interpretation_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/unnatural_in_context_learning.yaml b/lm_eval/tasks/bigbench/greedy_until/unnatural_in_context_learning.yaml deleted file mode 100644 index 1cc271d2..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/unnatural_in_context_learning.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: unnatural_in_context_learning_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_unnatural_in_context_learning_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/vitaminc_fact_verification.yaml b/lm_eval/tasks/bigbench/greedy_until/vitaminc_fact_verification.yaml deleted file mode 100644 index 770e8500..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/vitaminc_fact_verification.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: vitaminc_fact_verification_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_vitaminc_fact_verification_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/what_is_the_tao.yaml b/lm_eval/tasks/bigbench/greedy_until/what_is_the_tao.yaml deleted file mode 100644 index 8c60da65..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/what_is_the_tao.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: what_is_the_tao_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_what_is_the_tao_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/which_wiki_edit.yaml b/lm_eval/tasks/bigbench/greedy_until/which_wiki_edit.yaml deleted file mode 100644 index 4eda6d08..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/which_wiki_edit.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: which_wiki_edit_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_which_wiki_edit_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/winowhy.yaml b/lm_eval/tasks/bigbench/greedy_until/winowhy.yaml deleted file mode 100644 index e065c80c..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/winowhy.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: winowhy_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_winowhy_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/word_sorting.yaml b/lm_eval/tasks/bigbench/greedy_until/word_sorting.yaml deleted file mode 100644 index caa6f02d..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/word_sorting.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: word_sorting_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_word_sorting_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until/word_unscrambling.yaml b/lm_eval/tasks/bigbench/greedy_until/word_unscrambling.yaml deleted file mode 100644 index 774aef15..00000000 --- a/lm_eval/tasks/bigbench/greedy_until/word_unscrambling.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by utils.py -dataset_name: word_unscrambling_zero_shot -include: ../greedy_until_template_yaml -task: bigbench_word_unscrambling_greedy_until diff --git a/lm_eval/tasks/bigbench/greedy_until_template_yaml b/lm_eval/tasks/bigbench/greedy_until_template_yaml index 130500cc..ebce0377 100644 --- a/lm_eval/tasks/bigbench/greedy_until_template_yaml +++ b/lm_eval/tasks/bigbench/greedy_until_template_yaml @@ -1,6 +1,6 @@ group: bigbench dataset_path: bigbench # will switch to `hails/bigbench` when all tasks are pushed -output_type: greedy_until +output_type: generate_until dataset_kwargs: # num_shots: 0 # TODO: num of shots for `bigbench` HF dataset should be controlled through this, not through the typical methods # subtask_name: null diff --git a/lm_eval/tasks/code_x_glue/code-text/go.yaml b/lm_eval/tasks/code_x_glue/code-text/go.yaml index 3a4033c6..f8670652 100644 --- a/lm_eval/tasks/code_x_glue/code-text/go.yaml +++ b/lm_eval/tasks/code_x_glue/code-text/go.yaml @@ -5,7 +5,7 @@ dataset_path: CM/codexglue_code2text_go training_split: train validation_split: validation test_split: test -output_type: greedy_until +output_type: generate_until generation_kwargs: num_beams: 10 max_length: 128 diff --git a/lm_eval/tasks/code_x_glue/code-text/java.yaml b/lm_eval/tasks/code_x_glue/code-text/java.yaml index 141673c9..aaad034c 100644 --- a/lm_eval/tasks/code_x_glue/code-text/java.yaml +++ b/lm_eval/tasks/code_x_glue/code-text/java.yaml @@ -5,7 +5,7 @@ dataset_path: CM/codexglue_code2text_java training_split: train validation_split: validation test_split: test -output_type: greedy_until +output_type: generate_until generation_kwargs: num_beams: 10 max_length: 128 diff --git a/lm_eval/tasks/code_x_glue/code-text/javascript.yaml b/lm_eval/tasks/code_x_glue/code-text/javascript.yaml index c537e50d..615fffe3 100644 --- a/lm_eval/tasks/code_x_glue/code-text/javascript.yaml +++ b/lm_eval/tasks/code_x_glue/code-text/javascript.yaml @@ -5,7 +5,7 @@ dataset_path: CM/codexglue_code2text_javascript training_split: train validation_split: validation test_split: test -output_type: greedy_until +output_type: generate_until generation_kwargs: num_beams: 10 max_length: 128 diff --git a/lm_eval/tasks/code_x_glue/code-text/php.yaml b/lm_eval/tasks/code_x_glue/code-text/php.yaml index 9137bdaf..b71a7525 100644 --- a/lm_eval/tasks/code_x_glue/code-text/php.yaml +++ b/lm_eval/tasks/code_x_glue/code-text/php.yaml @@ -5,7 +5,7 @@ dataset_path: CM/codexglue_code2text_php training_split: train validation_split: validation test_split: test -output_type: greedy_until +output_type: generate_until generation_kwargs: num_beams: 10 max_length: 128 diff --git a/lm_eval/tasks/code_x_glue/code-text/python.yaml b/lm_eval/tasks/code_x_glue/code-text/python.yaml index a98bfdba..301251b0 100644 --- a/lm_eval/tasks/code_x_glue/code-text/python.yaml +++ b/lm_eval/tasks/code_x_glue/code-text/python.yaml @@ -5,7 +5,7 @@ dataset_path: CM/codexglue_code2text_python training_split: train validation_split: validation test_split: test -output_type: greedy_until +output_type: generate_until generation_kwargs: num_beams: 10 max_length: 128 diff --git a/lm_eval/tasks/code_x_glue/code-text/ruby.yaml b/lm_eval/tasks/code_x_glue/code-text/ruby.yaml index d6562d4c..6a3b4a5a 100644 --- a/lm_eval/tasks/code_x_glue/code-text/ruby.yaml +++ b/lm_eval/tasks/code_x_glue/code-text/ruby.yaml @@ -5,7 +5,7 @@ dataset_path: CM/codexglue_code2text_ruby training_split: train validation_split: validation test_split: test -output_type: greedy_until +output_type: generate_until generation_kwargs: num_beams: 10 max_length: 128 diff --git a/lm_eval/tasks/coqa/default.yaml b/lm_eval/tasks/coqa/default.yaml index 5b891192..f928e1f7 100644 --- a/lm_eval/tasks/coqa/default.yaml +++ b/lm_eval/tasks/coqa/default.yaml @@ -1,6 +1,6 @@ task: coqa dataset_path: EleutherAI/coqa -output_type: greedy_until +output_type: generate_until training_split: train validation_split: validation doc_to_text: !function utils.doc_to_text diff --git a/lm_eval/tasks/drop/default.yaml b/lm_eval/tasks/drop/default.yaml index 973fff7b..28560312 100644 --- a/lm_eval/tasks/drop/default.yaml +++ b/lm_eval/tasks/drop/default.yaml @@ -1,6 +1,6 @@ task: drop dataset_path: EleutherAI/drop -output_type: greedy_until +output_type: generate_until training_split: train validation_split: validation process_docs: !function utils.process_docs diff --git a/lm_eval/tasks/gsm8k/gsm8k-cot.yaml b/lm_eval/tasks/gsm8k/gsm8k-cot.yaml index 6236e519..92555a57 100644 --- a/lm_eval/tasks/gsm8k/gsm8k-cot.yaml +++ b/lm_eval/tasks/gsm8k/gsm8k-cot.yaml @@ -3,7 +3,7 @@ group: task: gsm8k_cot dataset_path: gsm8k dataset_name: main -output_type: greedy_until +output_type: generate_until test_split: test doc_to_text: "Q: There are 15 trees in the grove. Grove workers will plant trees in the grove today. After they are done, there will be 21 trees. How many trees did the grove workers plant today?\n\nA: There are 15 trees originally. Then there were 21 trees after some more were planted. So there must have been 21 - 15 = 6. The answer is 6.\n\n\ Q: If there are 3 cars in the parking lot and 2 more cars arrive, how many cars are in the parking lot?\n\nA: There are originally 3 cars. 2 more cars arrive. 3 + 2 = 5. The answer is 5.\n\n\ diff --git a/lm_eval/tasks/gsm8k/gsm8k.yaml b/lm_eval/tasks/gsm8k/gsm8k.yaml index ebd1b4e1..124f708d 100644 --- a/lm_eval/tasks/gsm8k/gsm8k.yaml +++ b/lm_eval/tasks/gsm8k/gsm8k.yaml @@ -3,7 +3,7 @@ group: task: gsm8k_yaml dataset_path: gsm8k dataset_name: main -output_type: greedy_until +output_type: generate_until training_split: train fewshot_split: train test_split: test diff --git a/lm_eval/tasks/logiqa2/logieval.yaml b/lm_eval/tasks/logiqa2/logieval.yaml index 7701426e..9f945be4 100644 --- a/lm_eval/tasks/logiqa2/logieval.yaml +++ b/lm_eval/tasks/logiqa2/logieval.yaml @@ -1,7 +1,7 @@ task: logieval dataset_path: baber/logiqa2 dataset_name: logieval -output_type: greedy_until +output_type: generate_until training_split: train test_split: test # Instructions + {content} diff --git a/lm_eval/tasks/mgsm/direct/direct_yaml b/lm_eval/tasks/mgsm/direct/direct_yaml index 6eae3257..0833ff8a 100644 --- a/lm_eval/tasks/mgsm/direct/direct_yaml +++ b/lm_eval/tasks/mgsm/direct/direct_yaml @@ -4,7 +4,7 @@ group: mgsm_direct dataset_path: juletxara/mgsm dataset_name: null # Overridden by language-specific config. -output_type: greedy_until +output_type: generate_until training_split: train test_split: test target_delimiter: "" diff --git a/lm_eval/tasks/mgsm/en_cot/cot_yaml b/lm_eval/tasks/mgsm/en_cot/cot_yaml index f5cf60d9..06308fd7 100644 --- a/lm_eval/tasks/mgsm/en_cot/cot_yaml +++ b/lm_eval/tasks/mgsm/en_cot/cot_yaml @@ -4,7 +4,7 @@ group: mgsm_cot_native dataset_path: juletxara/mgsm dataset_name: null # Overridden by language-specific config. -output_type: greedy_until +output_type: generate_until training_split: train test_split: test target_delimiter: "" diff --git a/lm_eval/tasks/mgsm/native_cot/cot_yaml b/lm_eval/tasks/mgsm/native_cot/cot_yaml index f5cf60d9..06308fd7 100644 --- a/lm_eval/tasks/mgsm/native_cot/cot_yaml +++ b/lm_eval/tasks/mgsm/native_cot/cot_yaml @@ -4,7 +4,7 @@ group: mgsm_cot_native dataset_path: juletxara/mgsm dataset_name: null # Overridden by language-specific config. -output_type: greedy_until +output_type: generate_until training_split: train test_split: test target_delimiter: "" diff --git a/lm_eval/tasks/minerva_math/README.md b/lm_eval/tasks/minerva_math/README.md index 7ca5d652..7bfb7d50 100644 --- a/lm_eval/tasks/minerva_math/README.md +++ b/lm_eval/tasks/minerva_math/README.md @@ -37,7 +37,7 @@ Eprint = {arXiv:2206.14858}, #### Groups - `math_word_problems` -- `greedy_until` +- `generate_until` #### Tasks diff --git a/lm_eval/tasks/minerva_math/minerva_math_algebra.yaml b/lm_eval/tasks/minerva_math/minerva_math_algebra.yaml index 3ad3802b..8aca7ad5 100644 --- a/lm_eval/tasks/minerva_math/minerva_math_algebra.yaml +++ b/lm_eval/tasks/minerva_math/minerva_math_algebra.yaml @@ -4,7 +4,7 @@ task: minerva_math_algebra dataset_path: EleutherAI/hendrycks_math process_docs: !function utils.process_docs dataset_name: algebra -output_type: greedy_until +output_type: generate_until training_split: train test_split: test doc_to_text: !function utils.doc_to_text diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/_mmlu_flan_cot_fewshot_template_yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/_mmlu_flan_cot_fewshot_template_yaml index 8461b93a..4b54fb41 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/_mmlu_flan_cot_fewshot_template_yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/_mmlu_flan_cot_fewshot_template_yaml @@ -2,7 +2,7 @@ group: mmlu_flan_cot_fewshot dataset_path: cais/mmlu validation_split: validation fewshot_split: dev -output_type: greedy_until +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: diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/_mmlu_flan_generative_template_yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/_mmlu_flan_generative_template_yaml index 0666018b..37c95ce7 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/_mmlu_flan_generative_template_yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/_mmlu_flan_generative_template_yaml @@ -2,7 +2,7 @@ group: mmlu_flan_cot_zeroshot dataset_path: cais/mmlu validation_split: validation fewshot_split: dev -output_type: greedy_until +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: diff --git a/lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_generative_template_yaml b/lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_generative_template_yaml index b1ff96a8..49046d22 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_generative_template_yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_generative_template_yaml @@ -2,7 +2,7 @@ group: mmlu_flan_n_shot_generative dataset_path: cais/mmlu test_split: test fewshot_split: dev -output_type: greedy_until +output_type: generate_until doc_to_text: "Q: {{question.strip()}}\n(A) {{choices[0]}} (B) {{choices[1]}} (C) {{choices[2]}} (D) {{choices[3]}}\nA: " doc_to_target: "{{['(A)', '(B)', '(C)', '(D)'][answer]}}" generation_kwargs: diff --git a/lm_eval/tasks/nq_open/nq_open.yaml b/lm_eval/tasks/nq_open/nq_open.yaml index 1a472151..69ff8dac 100644 --- a/lm_eval/tasks/nq_open/nq_open.yaml +++ b/lm_eval/tasks/nq_open/nq_open.yaml @@ -1,6 +1,6 @@ task: nq_open dataset_path: nq_open -output_type: greedy_until +output_type: generate_until training_split: train validation_split: validation description: "Answer these questions:\n" diff --git a/lm_eval/tasks/polemo2/polemo2_in.yaml b/lm_eval/tasks/polemo2/polemo2_in.yaml index 4c2250f8..b7f7caf8 100644 --- a/lm_eval/tasks/polemo2/polemo2_in.yaml +++ b/lm_eval/tasks/polemo2/polemo2_in.yaml @@ -3,7 +3,7 @@ group: task: polemo2_in dataset_path: allegro/klej-polemo2-in dataset_name: klej-polemo2-in -output_type: greedy_until +output_type: generate_until training_split: train validation_split: validation test_split: test diff --git a/lm_eval/tasks/qasper/freeform.yaml b/lm_eval/tasks/qasper/freeform.yaml index 03324c3b..c65d0f7b 100644 --- a/lm_eval/tasks/qasper/freeform.yaml +++ b/lm_eval/tasks/qasper/freeform.yaml @@ -1,7 +1,7 @@ group: qasper task: qasper_freeform dataset_path: qasper -output_type: greedy_until +output_type: generate_until training_split: train validation_split: validation process_docs: !function utils.process_docs_freeform diff --git a/lm_eval/tasks/squadv2/default.yaml b/lm_eval/tasks/squadv2/default.yaml index 2bb3029f..0f42bf54 100644 --- a/lm_eval/tasks/squadv2/default.yaml +++ b/lm_eval/tasks/squadv2/default.yaml @@ -1,21 +1,9 @@ +include: _template_yaml task: squadv2 -dataset_path: squad_v2 -output_type: greedy_until -training_split: train -validation_split: validation -doc_to_text: "Title: {{title}}\n\nBackground: {{context}}\n\nQuestion: {{question}}\n\n Answer:" -doc_to_target: "{% if answers.text| length > 0 %}{{answers.text}}{% else %}{{['']}}{% endif %}" -target_delimiter: "" -should_decontaminate: true -doc_to_decontamination_query: context +output_type: generate_until generation_kwargs: until: - "\n" -# filter_list: -# - name: remove_whitespace -# filter: -# - function: remove_whitespace -# - function: take_first metric_list: - metric: !function utils.exact aggregation: mean diff --git a/lm_eval/tasks/super_glue/boolq/seq2seq.yaml b/lm_eval/tasks/super_glue/boolq/seq2seq.yaml index 7a6c67db..948ee247 100644 --- a/lm_eval/tasks/super_glue/boolq/seq2seq.yaml +++ b/lm_eval/tasks/super_glue/boolq/seq2seq.yaml @@ -3,7 +3,7 @@ group: task: "boolq-seq2seq" dataset_path: super_glue dataset_name: boolq -output_type: greedy_until +output_type: generate_until training_split: train validation_split: validation doc_to_text: "{{passage}}\nQuestion: {{question}}?\nAnswer:" diff --git a/lm_eval/tasks/super_glue/boolq/t5-prompt.yaml b/lm_eval/tasks/super_glue/boolq/t5-prompt.yaml index 8ebd82fb..86c9a54e 100644 --- a/lm_eval/tasks/super_glue/boolq/t5-prompt.yaml +++ b/lm_eval/tasks/super_glue/boolq/t5-prompt.yaml @@ -5,7 +5,7 @@ dataset_path: super_glue dataset_name: boolq training_split: train validation_split: validation -output_type: greedy_until +output_type: generate_until doc_to_text: "boolq passage: {{passage}} question: {{question}}" doc_to_target: label doc_to_choice: ['False', 'True'] diff --git a/lm_eval/tasks/super_glue/cb/t5-prompt.yaml b/lm_eval/tasks/super_glue/cb/t5-prompt.yaml index a16505fa..d023f7c8 100644 --- a/lm_eval/tasks/super_glue/cb/t5-prompt.yaml +++ b/lm_eval/tasks/super_glue/cb/t5-prompt.yaml @@ -5,7 +5,7 @@ dataset_path: super_glue dataset_name: cb training_split: train validation_split: validation -output_type: greedy_until +output_type: generate_until doc_to_text: "cb hypothesis: {{hypothesis}} premise: {{premise}}" doc_to_target: label doc_to_choice: ['entailment', 'contradiction', 'neutral'] diff --git a/lm_eval/tasks/super_glue/copa/t5-prompt.yaml b/lm_eval/tasks/super_glue/copa/t5-prompt.yaml index 47aaf275..227f5d56 100644 --- a/lm_eval/tasks/super_glue/copa/t5-prompt.yaml +++ b/lm_eval/tasks/super_glue/copa/t5-prompt.yaml @@ -5,7 +5,7 @@ dataset_path: super_glue dataset_name: copa training_split: train validation_split: validation -output_type: greedy_until +output_type: generate_until doc_to_text: "copa choice1: {{choice1}} choice2: {{choice2}} premise: {{premise}} question: {{question}}" doc_to_target: label doc_to_choice: ['choice1', 'choice2'] diff --git a/lm_eval/tasks/super_glue/multirc/t5-prompt.yaml b/lm_eval/tasks/super_glue/multirc/t5-prompt.yaml index 008c1443..66eccfef 100644 --- a/lm_eval/tasks/super_glue/multirc/t5-prompt.yaml +++ b/lm_eval/tasks/super_glue/multirc/t5-prompt.yaml @@ -5,7 +5,7 @@ dataset_path: super_glue dataset_name: multirc training_split: train validation_split: validation -output_type: greedy_until +output_type: generate_until doc_to_text: "multirc question: {{question}} answer: {{answer}} paragraph: {{paragraph}}" doc_to_target: label doc_to_choice: "{% set group_id = idx.question|string %}{{[group_id+'_False', group_id+'_True']}}" diff --git a/lm_eval/tasks/super_glue/record/t5-prompt.yaml b/lm_eval/tasks/super_glue/record/t5-prompt.yaml index c1db59ad..22440c0a 100644 --- a/lm_eval/tasks/super_glue/record/t5-prompt.yaml +++ b/lm_eval/tasks/super_glue/record/t5-prompt.yaml @@ -4,7 +4,7 @@ task: super_glue-record-t5-prompt dataset_path: super_glue dataset_name: record validation_split: validation -output_type: greedy_until +output_type: generate_until process_docs: !function t5_utils.process_docs doc_to_text: !function t5_utils.doc_to_text doc_to_target: "{{idx.passage|string}}+{{idx.query}}_{{answers}}" diff --git a/lm_eval/tasks/super_glue/rte/t5-prompt.yaml b/lm_eval/tasks/super_glue/rte/t5-prompt.yaml index 870dc363..df0234d7 100644 --- a/lm_eval/tasks/super_glue/rte/t5-prompt.yaml +++ b/lm_eval/tasks/super_glue/rte/t5-prompt.yaml @@ -5,7 +5,7 @@ dataset_path: super_glue dataset_name: rte training_split: train validation_split: validation -output_type: greedy_until +output_type: generate_until doc_to_text: "rte hypothesis: {{hypothesis}} premise: {{premise}}" doc_to_target: label doc_to_choice: ['entailment', 'not_entailment'] diff --git a/lm_eval/tasks/super_glue/wic/t5-prompt.yaml b/lm_eval/tasks/super_glue/wic/t5-prompt.yaml index da6a9411..3231e41c 100644 --- a/lm_eval/tasks/super_glue/wic/t5-prompt.yaml +++ b/lm_eval/tasks/super_glue/wic/t5-prompt.yaml @@ -5,7 +5,7 @@ dataset_path: super_glue dataset_name: wic training_split: train validation_split: validation -output_type: greedy_until +output_type: generate_until doc_to_text: "wic sentence1: {{sentence1}} sentence2: {{sentence2}} word: {{word}}" doc_to_target: label doc_to_choice: ['False', 'True'] diff --git a/lm_eval/tasks/super_glue/wsc/t5-prompt.yaml b/lm_eval/tasks/super_glue/wsc/t5-prompt.yaml index e0ef7538..520cee1a 100644 --- a/lm_eval/tasks/super_glue/wsc/t5-prompt.yaml +++ b/lm_eval/tasks/super_glue/wsc/t5-prompt.yaml @@ -5,7 +5,7 @@ dataset_path: super_glue dataset_name: wsc.fixed training_split: train validation_split: validation -output_type: greedy_until +output_type: generate_until doc_to_text: !function "t5_utils.doc_to_text" doc_to_target: label generation_kwargs: diff --git a/lm_eval/tasks/translation/iwslt2017_ar-en.yaml b/lm_eval/tasks/translation/iwslt2017_ar-en.yaml index 739fb6c2..ea713393 100644 --- a/lm_eval/tasks/translation/iwslt2017_ar-en.yaml +++ b/lm_eval/tasks/translation/iwslt2017_ar-en.yaml @@ -6,7 +6,7 @@ doc_to_text: 'Arabic phrase: {{translation["ar"]}} English phrase:' group: -- greedy_until +- generate_until - translation - iwslt2017 include: wmt_common_yaml diff --git a/lm_eval/tasks/translation/iwslt2017_en-ar.yaml b/lm_eval/tasks/translation/iwslt2017_en-ar.yaml index d3c0462a..891ad50f 100644 --- a/lm_eval/tasks/translation/iwslt2017_en-ar.yaml +++ b/lm_eval/tasks/translation/iwslt2017_en-ar.yaml @@ -6,7 +6,7 @@ doc_to_text: 'English phrase: {{translation["en"]}} Arabic phrase:' group: -- greedy_until +- generate_until - translation - iwslt2017 include: wmt_common_yaml diff --git a/lm_eval/tasks/translation/utils.py b/lm_eval/tasks/translation/utils.py index aacc1e96..f80ae89a 100644 --- a/lm_eval/tasks/translation/utils.py +++ b/lm_eval/tasks/translation/utils.py @@ -58,7 +58,7 @@ def gen_lang_yamls(output_dir: str, overwrite: bool) -> None: try: source, target = code_to_language(src), code_to_language(tgt) - groups = ["greedy_until", "translation", lang] + groups = ["generate_until", "translation", lang] if lang in gpt3_translation_benchmarks.keys(): groups += ["gpt3_translation_benchmarks"] diff --git a/lm_eval/tasks/translation/wmt14_en-fr.yaml b/lm_eval/tasks/translation/wmt14_en-fr.yaml index 154b0698..b7e42dca 100644 --- a/lm_eval/tasks/translation/wmt14_en-fr.yaml +++ b/lm_eval/tasks/translation/wmt14_en-fr.yaml @@ -6,7 +6,7 @@ doc_to_text: 'English phrase: {{translation["en"]}} French phrase:' group: -- greedy_until +- generate_until - translation - wmt14 - gpt3_translation_benchmarks diff --git a/lm_eval/tasks/translation/wmt14_fr-en.yaml b/lm_eval/tasks/translation/wmt14_fr-en.yaml index 0a414359..09ddd57d 100644 --- a/lm_eval/tasks/translation/wmt14_fr-en.yaml +++ b/lm_eval/tasks/translation/wmt14_fr-en.yaml @@ -6,7 +6,7 @@ doc_to_text: 'French phrase: {{translation["fr"]}} English phrase:' group: -- greedy_until +- generate_until - translation - wmt14 - gpt3_translation_benchmarks diff --git a/lm_eval/tasks/translation/wmt16_de-en.yaml b/lm_eval/tasks/translation/wmt16_de-en.yaml index b38d21b8..23d50e4a 100644 --- a/lm_eval/tasks/translation/wmt16_de-en.yaml +++ b/lm_eval/tasks/translation/wmt16_de-en.yaml @@ -6,7 +6,7 @@ doc_to_text: 'German phrase: {{translation["de"]}} English phrase:' group: -- greedy_until +- generate_until - translation - wmt16 - gpt3_translation_benchmarks diff --git a/lm_eval/tasks/translation/wmt16_en-de.yaml b/lm_eval/tasks/translation/wmt16_en-de.yaml index e7ac0d77..8d391b6c 100644 --- a/lm_eval/tasks/translation/wmt16_en-de.yaml +++ b/lm_eval/tasks/translation/wmt16_en-de.yaml @@ -6,7 +6,7 @@ doc_to_text: 'English phrase: {{translation["en"]}} German phrase:' group: -- greedy_until +- generate_until - translation - wmt16 - gpt3_translation_benchmarks diff --git a/lm_eval/tasks/translation/wmt16_en-ro.yaml b/lm_eval/tasks/translation/wmt16_en-ro.yaml index c214b56c..45a8cae1 100644 --- a/lm_eval/tasks/translation/wmt16_en-ro.yaml +++ b/lm_eval/tasks/translation/wmt16_en-ro.yaml @@ -6,7 +6,7 @@ doc_to_text: 'English phrase: {{translation["en"]}} Romanian phrase:' group: -- greedy_until +- generate_until - translation - wmt16 - gpt3_translation_benchmarks diff --git a/lm_eval/tasks/translation/wmt16_ro-en.yaml b/lm_eval/tasks/translation/wmt16_ro-en.yaml index 14278794..39441eac 100644 --- a/lm_eval/tasks/translation/wmt16_ro-en.yaml +++ b/lm_eval/tasks/translation/wmt16_ro-en.yaml @@ -6,7 +6,7 @@ doc_to_text: 'Romanian phrase: {{translation["ro"]}} English phrase:' group: -- greedy_until +- generate_until - translation - wmt16 - gpt3_translation_benchmarks diff --git a/lm_eval/tasks/translation/wmt_common_yaml b/lm_eval/tasks/translation/wmt_common_yaml index 5be7c978..2095c1e2 100644 --- a/lm_eval/tasks/translation/wmt_common_yaml +++ b/lm_eval/tasks/translation/wmt_common_yaml @@ -1,4 +1,4 @@ -output_type: greedy_until +output_type: generate_until training_split: train validation_split: validation fewshot_split: validation diff --git a/lm_eval/tasks/triviaqa/default.yaml b/lm_eval/tasks/triviaqa/default.yaml index e0afcec3..67c65acb 100644 --- a/lm_eval/tasks/triviaqa/default.yaml +++ b/lm_eval/tasks/triviaqa/default.yaml @@ -1,7 +1,7 @@ task: triviaqa dataset_path: trivia_qa dataset_name: rc.nocontext -output_type: greedy_until +output_type: generate_until training_split: train validation_split: validation doc_to_text: "Question: {{question}}?\nAnswer:" diff --git a/lm_eval/tasks/truthfulqa/truthfulqa_gen.yaml b/lm_eval/tasks/truthfulqa/truthfulqa_gen.yaml index 88412ad1..8d2adeaf 100644 --- a/lm_eval/tasks/truthfulqa/truthfulqa_gen.yaml +++ b/lm_eval/tasks/truthfulqa/truthfulqa_gen.yaml @@ -3,7 +3,7 @@ group: task: truthfulqa_gen dataset_path: truthful_qa dataset_name: generation -output_type: greedy_until +output_type: generate_until training_split: null validation_split: validation test_split: null diff --git a/lm_eval/tasks/unscramble/anagrams1.yaml b/lm_eval/tasks/unscramble/anagrams1.yaml index c549a07e..b6abf984 100644 --- a/lm_eval/tasks/unscramble/anagrams1.yaml +++ b/lm_eval/tasks/unscramble/anagrams1.yaml @@ -3,7 +3,7 @@ group: task: anagrams1 dataset_path: EleutherAI/unscramble dataset_name: mid_word_1_anagrams -output_type: greedy_until +output_type: generate_until test_split: validation doc_to_text: "{{context}}" doc_to_target: "{{completion}}" diff --git a/lm_eval/tasks/unscramble/anagrams2.yaml b/lm_eval/tasks/unscramble/anagrams2.yaml index 4df34b0c..285d7ced 100644 --- a/lm_eval/tasks/unscramble/anagrams2.yaml +++ b/lm_eval/tasks/unscramble/anagrams2.yaml @@ -3,7 +3,7 @@ group: task: anagrams2 dataset_path: EleutherAI/unscramble dataset_name: mid_word_2_anagrams -output_type: greedy_until +output_type: generate_until test_split: validation doc_to_text: "{{context}}" doc_to_target: "{{completion}}" diff --git a/lm_eval/tasks/unscramble/cycle_letters.yaml b/lm_eval/tasks/unscramble/cycle_letters.yaml index e84d0c96..602adbad 100644 --- a/lm_eval/tasks/unscramble/cycle_letters.yaml +++ b/lm_eval/tasks/unscramble/cycle_letters.yaml @@ -3,7 +3,7 @@ group: task: cycle_letters dataset_path: EleutherAI/unscramble dataset_name: cycle_letters_in_word -output_type: greedy_until +output_type: generate_until test_split: validation doc_to_text: "{{context}}" doc_to_target: "{{completion}}" diff --git a/lm_eval/tasks/unscramble/random_insertion.yaml b/lm_eval/tasks/unscramble/random_insertion.yaml index 56f19989..aa4ce86d 100644 --- a/lm_eval/tasks/unscramble/random_insertion.yaml +++ b/lm_eval/tasks/unscramble/random_insertion.yaml @@ -3,7 +3,7 @@ group: task: random_insertion dataset_path: EleutherAI/unscramble dataset_name: random_insertion_in_word -output_type: greedy_until +output_type: generate_until test_split: validation doc_to_text: "{{context}}" doc_to_target: "{{completion}}" diff --git a/lm_eval/tasks/unscramble/reversed_words.yaml b/lm_eval/tasks/unscramble/reversed_words.yaml index 97564422..ffef53f6 100644 --- a/lm_eval/tasks/unscramble/reversed_words.yaml +++ b/lm_eval/tasks/unscramble/reversed_words.yaml @@ -3,7 +3,7 @@ group: task: reversed_words dataset_path: EleutherAI/unscramble dataset_name: reversed_words -output_type: greedy_until +output_type: generate_until test_split: validation doc_to_text: "{{context}}" doc_to_target: "{{completion}}" diff --git a/lm_eval/tasks/wmt2016/ro_en-t5_prompt.yaml b/lm_eval/tasks/wmt2016/ro_en-t5_prompt.yaml index 61d5140d..8d377167 100644 --- a/lm_eval/tasks/wmt2016/ro_en-t5_prompt.yaml +++ b/lm_eval/tasks/wmt2016/ro_en-t5_prompt.yaml @@ -5,7 +5,7 @@ dataset_path: wmt16 dataset_name: ro-en training_split: train validation_split: validation -output_type: greedy_until +output_type: generate_until doc_to_text: "translate English to Romanian: {{translation.en}}" doc_to_target: "{{translation.ro}}" metric_list: -- GitLab From a7ba3d76f26b3a581d0de0a19cb134bbd1debd0e Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Tue, 17 Oct 2023 15:26:49 +0000 Subject: [PATCH 041/105] changed file name --- lm_eval/tasks/squadv2/{_template.yaml => _template_yaml} | 0 lm_eval/tasks/squadv2/default.yaml | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename lm_eval/tasks/squadv2/{_template.yaml => _template_yaml} (100%) diff --git a/lm_eval/tasks/squadv2/_template.yaml b/lm_eval/tasks/squadv2/_template_yaml similarity index 100% rename from lm_eval/tasks/squadv2/_template.yaml rename to lm_eval/tasks/squadv2/_template_yaml diff --git a/lm_eval/tasks/squadv2/default.yaml b/lm_eval/tasks/squadv2/default.yaml index 51a304fc..0f42bf54 100644 --- a/lm_eval/tasks/squadv2/default.yaml +++ b/lm_eval/tasks/squadv2/default.yaml @@ -1,6 +1,6 @@ include: _template_yaml task: squadv2 -output_type: greedy_until +output_type: generate_until generation_kwargs: until: - "\n" -- GitLab From 785153f622e681ebfba07494afc768eafd669b7a Mon Sep 17 00:00:00 2001 From: haileyschoelkopf Date: Wed, 18 Oct 2023 12:51:10 +0000 Subject: [PATCH 042/105] fix greedy_until abstractmethod --- lm_eval/api/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lm_eval/api/model.py b/lm_eval/api/model.py index 42ef1c74..8ab73cff 100644 --- a/lm_eval/api/model.py +++ b/lm_eval/api/model.py @@ -96,7 +96,7 @@ class LM(abc.ABC): # TODO: Add an optional max length @abc.abstractmethod - def greedy_until(self, requests) -> List[str]: + def generate_until(self, requests) -> List[str]: """Generate greedily until a stopping sequence :param requests: list[Instance] -- GitLab From c28d100d00b8cfd07b809bafbcef0dc0d0452d83 Mon Sep 17 00:00:00 2001 From: haileyschoelkopf Date: Wed, 18 Oct 2023 19:10:08 +0000 Subject: [PATCH 043/105] replace the rest of the 'greedy_until' occurrences --- README.md | 16 ++++++++-------- docs/interface.md | 4 ++-- docs/model_guide.md | 20 +++++++++----------- docs/task_guide.md | 4 ++-- lm_eval/api/instance.py | 2 +- lm_eval/api/metrics.py | 6 +++--- lm_eval/api/model.py | 4 ++-- lm_eval/api/registry.py | 2 +- scripts/cost_estimate.py | 2 +- tests/models/test_huggingface.py | 16 ++++++++-------- tests/tests_master/test_models.py | 6 +++--- tests/tests_master/test_version_stable.py | 6 +++--- 12 files changed, 43 insertions(+), 45 deletions(-) diff --git a/README.md b/README.md index 22afe46e..1bcba7f4 100644 --- a/README.md +++ b/README.md @@ -155,14 +155,14 @@ A full accounting of the supported and planned libraries + APIs can be seen belo | API or Inference Server | Implemented? | `--model ` name | Models supported: | Request Types: | |-----------------------------|---------------------------------|----------------------------------------------------------------------------------|--------------------------------------|----------------------------------------------------------| -| OpenAI Completions | :heavy_check_mark: | `openai`, `openai-completions`, `gooseai` | up to `code-davinci-002` | `greedy_until`, `loglikelihood`, `loglikelihood_rolling` | -| OpenAI ChatCompletions | :x: Not yet - needs help! | N/A | (link here?) | `greedy_until` (no logprobs) | -| Anthropic | :heavy_check_mark: | `anthropic` | [Supported Anthropic Engines](https://docs.anthropic.com/claude/reference/selecting-a-model) | `greedy_until` (no logprobs) | -| GooseAI | :heavy_check_mark: (not separately maintained) | `openai`, `openai-completions`, `gooseai` (same interface as OpenAI Completions) | | `greedy_until`, `loglikelihood`, `loglikelihood_rolling` | -| Textsynth | Needs testing | `textsynth` | ??? | `greedy_until`, `loglikelihood`, `loglikelihood_rolling` | -| Cohere | :hourglass: - blocked on Cohere API bug | N/A | [All `cohere.generate()` engines](https://docs.cohere.com/docs/models) | `greedy_until`, `loglikelihood`, `loglikelihood_rolling` | -| GGML | :hourglass: [PR](https://github.com/EleutherAI/lm-evaluation-harness/pull/617) | N/A | ??? | `greedy_until`, `loglikelihood`, `loglikelihood_rolling` | -| vLLM | :x: Not yet - needs help! | N/A | All HF models | `greedy_until` (no logprobs) | +| OpenAI Completions | :heavy_check_mark: | `openai`, `openai-completions`, `gooseai` | up to `code-davinci-002` | `generate_until`, `loglikelihood`, `loglikelihood_rolling` | +| OpenAI ChatCompletions | :x: Not yet - needs help! | N/A | (link here?) | `generate_until` (no logprobs) | +| Anthropic | :heavy_check_mark: | `anthropic` | [Supported Anthropic Engines](https://docs.anthropic.com/claude/reference/selecting-a-model) | `generate_until` (no logprobs) | +| GooseAI | :heavy_check_mark: (not separately maintained) | `openai`, `openai-completions`, `gooseai` (same interface as OpenAI Completions) | | `generate_until`, `loglikelihood`, `loglikelihood_rolling` | +| Textsynth | Needs testing | `textsynth` | ??? | `generate_until`, `loglikelihood`, `loglikelihood_rolling` | +| Cohere | :hourglass: - blocked on Cohere API bug | N/A | [All `cohere.generate()` engines](https://docs.cohere.com/docs/models) | `generate_until`, `loglikelihood`, `loglikelihood_rolling` | +| GGML | :hourglass: [PR](https://github.com/EleutherAI/lm-evaluation-harness/pull/617) | N/A | ??? | `generate_until`, `loglikelihood`, `loglikelihood_rolling` | +| vLLM | :x: Not yet - needs help! | N/A | All HF models | `generate_until` (no logprobs) | | Your inference server here! | ... | ... | ... | ... | | ... | It is on our roadmap to create task variants designed to enable models which do not serve logprobs/loglikelihoods to be compared with generation performance of open-source models. diff --git a/docs/interface.md b/docs/interface.md index 860dd1c0..36353e7f 100644 --- a/docs/interface.md +++ b/docs/interface.md @@ -57,7 +57,7 @@ import lm_eval my_model = initialize_my_model() # create your model (could be running finetuning with some custom modeling code) ... -lm_obj = Your_LM(model=my_model, batch_size=16) # instantiate an LM subclass that takes your initialized model and can run `Your_LM.loglikelihood()`, `Your_LM.loglikelihood_rolling()`, `Your_LM.greedy_until()` +lm_obj = Your_LM(model=my_model, batch_size=16) # instantiate an LM subclass that takes your initialized model and can run `Your_LM.loglikelihood()`, `Your_LM.loglikelihood_rolling()`, `Your_LM.generate_until()` results = lm_eval.simple_evaluate( # call simple_evaluate model=lm_obj, @@ -83,7 +83,7 @@ from my_tasks import MyTask1 # suppose you've defined a custom lm_eval.api.Task my_model = initialize_my_model() # create your model (could be running finetuning with some custom modeling code) ... -lm_obj = Your_LM(model=my_model, batch_size=16) # instantiate an LM subclass that takes your initialized model and can run `Your_LM.loglikelihood()`, `Your_LM.loglikelihood_rolling()`, `Your_LM.greedy_until()` +lm_obj = Your_LM(model=my_model, batch_size=16) # instantiate an LM subclass that takes your initialized model and can run `Your_LM.loglikelihood()`, `Your_LM.loglikelihood_rolling()`, `Your_LM.generate_until()` diff --git a/docs/model_guide.md b/docs/model_guide.md index cf79dd77..a71539b7 100644 --- a/docs/model_guide.md +++ b/docs/model_guide.md @@ -44,26 +44,24 @@ class MyCustomLM(LM): #... - def greedy_until(self, requests: list[Instance]) -> list[str]: + def generate_until(self, requests: list[Instance]) -> list[str]: #... #... ``` Where `Instance` is a dataclass defined in [`lm_eval.api.instance`](https://github.com/EleutherAI/lm-evaluation-harness/blob/big-refactor/lm_eval/api/instance.py) with property `args` which returns a tuple of (context, continuation). -We support +We support three types of requests, consisting of different interactions / measurements with an autoregressive LM. -The three types of +All three request types take as input `requests` of type `list[Instance]` that have a matching `Instance.request_type` to the method name. +- `generate_until` + - Each request contains `Instance.args : Tuple[str, dict]` containing 1. an input string to the LM and 2. a dictionary of keyword arguments used to control generation parameters. + - +- `loglikelihood` + - -smth smth tokenizer-agnostic - -3 reqtypes -- greedy_until, and the arguments passed to it - -- loglikelihood, and args passed to it - -- loglikelihood_rolling, and args passed to it +- `loglikelihood_rolling`, and args passed to it ## Registration diff --git a/docs/task_guide.md b/docs/task_guide.md index 3e15fd9f..5d63c15d 100644 --- a/docs/task_guide.md +++ b/docs/task_guide.md @@ -32,7 +32,7 @@ Prompting / in-context formatting options: - **use_prompt** (`str`, *optional*) — Name of prompt in promptsource to use. if defined, will overwrite doc_to_text, doc_to_target, and doc_to_choice. - **doc_to_text** (`Union[Callable, str]`, *optional*) — Jinja2, f-string, or function to process a sample into the appropriate input for the model - **doc_to_target** (`Union[Callable, str]`, *optional*) — Jinja2, f-string, or function to process a sample into the appropriate target output for the model. For multiple choice tasks, this should return an index into -- **doc_to_choice** (`Union[Callable, str]`, *optional*) — Jinja2, f-string, or function to process a sample into a list of possible string choices for `multiple_choice` tasks. Left undefined for `greedy_until` tasks. +- **doc_to_choice** (`Union[Callable, str]`, *optional*) — Jinja2, f-string, or function to process a sample into a list of possible string choices for `multiple_choice` tasks. Left undefined for `generate_until` tasks. - **fewshot_delimiter** (`str`, *optional*, defaults to "\n\n") — String to insert between few-shot examples. - **target_delimiter** (`str`, *optional*, defaults to `" "`) — String to insert between input and target output for the datapoint being tested. @@ -42,7 +42,7 @@ Runtime configuration options: Scoring details: - **metric_list** (`str`, *optional*, defaults to None) — A list of metrics to use for evaluation. See docs for expected format. -- **output_type** (`str`, *optional*, defaults to "greedy_until") — Selects the type of model output for the given task. Options are `greedy_until`, `loglikelihood`, `loglikelihood_rolling`, and `multiple_choice`. +- **output_type** (`str`, *optional*, defaults to "generate_until") — Selects the type of model output for the given task. Options are `generate_until`, `loglikelihood`, `loglikelihood_rolling`, and `multiple_choice`. - **generation_kwargs** (`dict`, *optional*) — Auxiliary arguments for the `generate` function from HF transformers library. Advanced keyword arguments may not be supported for non-HF LM classes. - **repeats** (`int`, *optional*, defaults to 1) — Number of repeated runs through model for each sample. can be used for cases such as self-consistency. - **filter_list** (`Union[str, list]`, *optional*) — List of filters to postprocess model outputs. See below for further detail on the filter API. diff --git a/lm_eval/api/instance.py b/lm_eval/api/instance.py index f3e7f005..7d3c23aa 100644 --- a/lm_eval/api/instance.py +++ b/lm_eval/api/instance.py @@ -4,7 +4,7 @@ from typing import Literal, Tuple @dataclass class Instance: - request_type: Literal["loglikelihood", "loglikelihood_rolling", "greedy_until"] + request_type: Literal["loglikelihood", "loglikelihood_rolling", "generate_until"] doc: dict arguments: tuple idx: int diff --git a/lm_eval/api/metrics.py b/lm_eval/api/metrics.py index 16d9a143..02c0a936 100644 --- a/lm_eval/api/metrics.py +++ b/lm_eval/api/metrics.py @@ -212,7 +212,7 @@ def f1_fn(items): # This is a passthrough function @register_metric( metric="bleu", higher_is_better=True, - output_type="greedy_until", + output_type="generate_until", aggregation="bleu", ) def bleu_fn(items): # This is a passthrough function @@ -222,7 +222,7 @@ def bleu_fn(items): # This is a passthrough function @register_metric( metric="chrf", higher_is_better=True, - output_type="greedy_until", + output_type="generate_until", aggregation="chrf", ) def chrf_fn(items): # This is a passthrough function @@ -232,7 +232,7 @@ def chrf_fn(items): # This is a passthrough function @register_metric( metric="ter", higher_is_better=True, - output_type="greedy_until", + output_type="generate_until", aggregation="ter", ) def ter_fn(items): # This is a passthrough function diff --git a/lm_eval/api/model.py b/lm_eval/api/model.py index 8ab73cff..c24026ac 100644 --- a/lm_eval/api/model.py +++ b/lm_eval/api/model.py @@ -211,12 +211,12 @@ class CachingLM: ) for req in tqdm(requests): hsh = hash_args(attr, req.args) - if attr == "greedy_until" and req.args[1].get("do_sample", False): + if attr == "generate_until" and req.args[1].get("do_sample", False): # when we are doing non-greedy generation, don't use the cache # (else every "randomly sampled" generation would be identical for repeats > 1). if not warned: eval_logger.warning( - f"Arguments to lm.greedy_until() '{req.args[1]}' include non-deterministic sampling. Caching will not be performed for such requests." + f"Arguments to lm.generate_until() '{req.args[1]}' include non-deterministic sampling. Caching will not be performed for such requests." ) warned = True res.append(None) diff --git a/lm_eval/api/registry.py b/lm_eval/api/registry.py index 53e5771a..f227a30b 100644 --- a/lm_eval/api/registry.py +++ b/lm_eval/api/registry.py @@ -81,7 +81,7 @@ DEFAULT_METRIC_REGISTRY = { ], "loglikelihood_rolling": ["word_perplexity", "byte_perplexity", "bits_per_byte"], "multiple_choice": ["acc", "acc_norm"], - "greedy_until": ["exact_match"], + "generate_until": ["exact_match"], } diff --git a/scripts/cost_estimate.py b/scripts/cost_estimate.py index e8e0c35b..72b8d4b3 100644 --- a/scripts/cost_estimate.py +++ b/scripts/cost_estimate.py @@ -23,7 +23,7 @@ class DryrunLM(LM): return res - def greedy_until(self, requests): + def generate_until(self, requests): res = [] for ctx, _ in requests: diff --git a/tests/models/test_huggingface.py b/tests/models/test_huggingface.py index 0ecd02aa..1fd9464a 100644 --- a/tests/models/test_huggingface.py +++ b/tests/models/test_huggingface.py @@ -15,10 +15,10 @@ class Test_HFLM: multiple_choice_task = tasks.TASK_REGISTRY.get("arc_easy")() # type: ignore multiple_choice_task.build_all_requests(limit=10, rank=0, world_size=1) MULTIPLE_CH: list[Instance] = multiple_choice_task.instances - greedy_until_task = tasks.TASK_REGISTRY.get("gsm8k_yaml")() # type: ignore - greedy_until_task.build_all_requests(limit=10, rank=0, world_size=1) - greedy_until_task._config.generation_kwargs["max_gen_toks"] = 10 - GREEDY_UNTIL: list[Instance] = greedy_until_task.instances + generate_until_task = tasks.TASK_REGISTRY.get("gsm8k_yaml")() # type: ignore + generate_until_task.build_all_requests(limit=10, rank=0, world_size=1) + generate_until_task._config.generation_kwargs["max_gen_toks"] = 10 + generate_until: list[Instance] = generate_until_task.instances rolling_task = tasks.TASK_REGISTRY.get("wikitext")() # type: ignore rolling_task.build_all_requests(limit=10, rank=0, world_size=1) ROLLING: list[Instance] = rolling_task.instances @@ -65,7 +65,7 @@ class Test_HFLM: -52.70050811767578, -56.25089645385742, ] - GREEDY_UNTIL_RES = [ + generate_until_RES = [ " The average of $2.50 each is $", " A robe takes 2 bolts of blue fiber and half", " $50,000 in repairs.", @@ -109,9 +109,9 @@ class Test_HFLM: ), np.argmax(np.array(_res).reshape(-1, 4), axis=1) assert (argmax_RES == argmax_res).all() - def test_greedy_until(self) -> None: - res = self.LM.greedy_until(self.GREEDY_UNTIL) - assert res == self.GREEDY_UNTIL_RES + def test_generate_until(self) -> None: + res = self.LM.generate_until(self.generate_until) + assert res == self.generate_until_RES def test_logliklihood_rolling(self) -> None: res = self.LM.loglikelihood_rolling(self.ROLLING) diff --git a/tests/tests_master/test_models.py b/tests/tests_master/test_models.py index c50332da..b3f6b1b8 100644 --- a/tests/tests_master/test_models.py +++ b/tests/tests_master/test_models.py @@ -78,7 +78,7 @@ def test_gpt2(): # test empty context gpt2.loglikelihood([("", "test")]) - (gen,) = gpt2.greedy_until( + (gen,) = gpt2.generate_until( [("The quick brown fox jumps over the lazy", [".", "\n"])] ) @@ -204,7 +204,7 @@ def test_gpt3(): # test empty context gpt3.loglikelihood([("", "test")]) - (gen,) = gpt3.greedy_until( + (gen,) = gpt3.generate_until( [("The quick brown fox jumps over the lazy", [".", "\n"])] ) @@ -300,7 +300,7 @@ def test_textsynth(): # test empty context textsynth.loglikelihood([("", "test")]) - (gen,) = textsynth.greedy_until( + (gen,) = textsynth.generate_until( [("The quick brown fox jumps over the lazy", [".", "\n"])] ) diff --git a/tests/tests_master/test_version_stable.py b/tests/tests_master/test_version_stable.py index 3d639122..2eba83c6 100644 --- a/tests/tests_master/test_version_stable.py +++ b/tests/tests_master/test_version_stable.py @@ -98,9 +98,9 @@ def test_versions_stable(taskname, task_class): return res - def greedy_until(reqs): + def generate_until(reqs): res = [] - assert_target_hashed(f"{taskname}-v{task_class.VERSION}-greedy_until", reqs) + assert_target_hashed(f"{taskname}-v{task_class.VERSION}-generate_until", reqs) for ctx, _ in [req.args for req in reqs]: res.append("lol") @@ -110,7 +110,7 @@ def test_versions_stable(taskname, task_class): lm.loglikelihood = ll_fn lm.loglikelihood_rolling = ll_perp_fn - lm.greedy_until = greedy_until + lm.generate_until = generate_until limit = None result = evaluator.evaluate( -- GitLab From e66ba123cc9e16e50e90c6505737728e92f8db00 Mon Sep 17 00:00:00 2001 From: haileyschoelkopf Date: Wed, 18 Oct 2023 19:21:02 +0000 Subject: [PATCH 044/105] don't raise error for unset higher_is_better --- lm_eval/api/registry.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lm_eval/api/registry.py b/lm_eval/api/registry.py index f227a30b..3601835e 100644 --- a/lm_eval/api/registry.py +++ b/lm_eval/api/registry.py @@ -171,7 +171,6 @@ def is_higher_better(metric_name): try: return HIGHER_IS_BETTER_REGISTRY[metric_name] except KeyError: - raise Warning(f"higher_is_better not specified for metric '{metric_name}'!") eval_logger.warning( f"higher_is_better not specified for metric '{metric_name}'!" ) -- GitLab From a8d130abab6623fca6dc53b8d2af94491836d0db Mon Sep 17 00:00:00 2001 From: Stella Biderman Date: Wed, 18 Oct 2023 23:03:07 -0400 Subject: [PATCH 045/105] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 22afe46e..4a7f3508 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ python -m lm_eval \ --batch_size 8 ``` -Models that are loaded via either `transformers.AutoModelForCausalLM` (autoregressive, decoder-only GPT style models) or `transformers.AutoModelForSeq2SeqLM` (such as encoder-decoder models like T5) in Huggingface are supported via Support for this model type is currently pending. +Models that are loaded via both `transformers.AutoModelForCausalLM` (autoregressive, decoder-only GPT style models) and `transformers.AutoModelForSeq2SeqLM` (such as encoder-decoder models like T5) in Huggingface are supporteded. Batch size selection can be automated by setting the ```--batch_size``` flag to ```auto```. This will perform automatic detection of the largest batch size that will fit on your device. On tasks where there is a large difference between the longest and shortest example, it can be helpful to periodically recompute the largest batch size, to gain a further speedup. To do this, append ```:N``` to above flag to automatically recompute the largest batch size ```N``` times. For example, to recompute the batch size 4 times, the command would be: -- GitLab From a007bacb1941356233b0aba49dbcea9bec10429e Mon Sep 17 00:00:00 2001 From: Zhiwei Zhuang Date: Thu, 19 Oct 2023 15:50:51 +0800 Subject: [PATCH 046/105] fix two bugs when ran with qasper_bool and toxigen --- lm_eval/__main__.py | 29 +++++++++++++++++++++++------ lm_eval/tasks/__init__.py | 3 ++- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/lm_eval/__main__.py b/lm_eval/__main__.py index c877262e..8d30f878 100644 --- a/lm_eval/__main__.py +++ b/lm_eval/__main__.py @@ -2,11 +2,10 @@ import os import re import json import fnmatch -import jsonlines import argparse import logging from pathlib import Path - +import numpy as np from lm_eval import evaluator, utils from lm_eval.api.registry import ALL_TASKS from lm_eval.logger import eval_logger, SPACING @@ -15,6 +14,14 @@ from lm_eval.tasks import include_path from typing import Union +def _handle_non_serializable(o): + if isinstance(o, np.int64): + return int(o) + elif isinstance(o, set): + return list(o) + raise TypeError(f"Object of type {o.__class__.__name__} is not JSON serializable") + + def parse_eval_args() -> argparse.Namespace: parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter) parser.add_argument("--model", required=True, help="Name of model e.g. `hf`") @@ -103,6 +110,12 @@ def parse_eval_args() -> argparse.Namespace: default="INFO", help="Log error when tasks are not registered.", ) + parser.add_argument( + "--huggingface_token", + type=str, + default=None, + help="huggingface token for downloading some authorization datasets, like toxigen, https://huggingface.co/settings/tokens", + ) return parser.parse_args() @@ -119,7 +132,10 @@ def cli_evaluate(args: Union[argparse.Namespace, None] = None) -> None: " --limit SHOULD ONLY BE USED FOR TESTING." "REAL METRICS SHOULD NOT BE COMPUTED USING LIMIT." ) + if args.huggingface_token: + from huggingface_hub import login + login(token=args.huggingface_token) if args.include_path is not None: eval_logger.info(f"Including path: {args.include_path}") include_path(args.include_path) @@ -195,7 +211,7 @@ def cli_evaluate(args: Union[argparse.Namespace, None] = None) -> None: if results is not None: if args.log_samples: samples = results.pop("samples") - dumped = json.dumps(results, indent=2, default=lambda o: str(o)) + dumped = json.dumps(results, indent=2, default=_handle_non_serializable) if args.show_config: print(dumped) @@ -210,9 +226,10 @@ def cli_evaluate(args: Union[argparse.Namespace, None] = None) -> None: re.sub("/|=", "__", args.model_args), task_name ) filename = path.joinpath(f"{output_name}.jsonl") - - with jsonlines.open(filename, "w") as f: - f.write_all(samples[task_name]) + samples_dumped = json.dumps( + samples[task_name], indent=2, default=_handle_non_serializable + ) + filename.open("w").write(samples_dumped) print( f"{args.model} ({args.model_args}), limit: {args.limit}, num_fewshot: {args.num_fewshot}, " diff --git a/lm_eval/tasks/__init__.py b/lm_eval/tasks/__init__.py index eb9d3353..d36b6077 100644 --- a/lm_eval/tasks/__init__.py +++ b/lm_eval/tasks/__init__.py @@ -15,7 +15,8 @@ from lm_eval.api.registry import ( import logging -eval_logger = logging.getLogger('lm-eval') +eval_logger = logging.getLogger("lm-eval") + def register_configurable_task(config: Dict[str, str]) -> int: SubClass = type( -- GitLab From 0c5de3ac58e888be9d39e3ea45a55e6ca51a7b59 Mon Sep 17 00:00:00 2001 From: Zhiwei Zhuang Date: Thu, 19 Oct 2023 17:59:29 +0800 Subject: [PATCH 047/105] fix :Object of type int32 is not JSON serializable --- lm_eval/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lm_eval/__main__.py b/lm_eval/__main__.py index 8d30f878..d7b5fd3d 100644 --- a/lm_eval/__main__.py +++ b/lm_eval/__main__.py @@ -15,7 +15,7 @@ from typing import Union def _handle_non_serializable(o): - if isinstance(o, np.int64): + if isinstance(o, np.int64) or isinstance(o, np.int32): return int(o) elif isinstance(o, set): return list(o) -- GitLab From a6179b494cb835e0dbdc4c19fa42055d652ef8fc Mon Sep 17 00:00:00 2001 From: Lintang Sutawika Date: Thu, 19 Oct 2023 21:06:39 +0700 Subject: [PATCH 048/105] Update registry.py Removed `get_default_aggregation` --- lm_eval/api/registry.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lm_eval/api/registry.py b/lm_eval/api/registry.py index 3601835e..a946c9b2 100644 --- a/lm_eval/api/registry.py +++ b/lm_eval/api/registry.py @@ -158,15 +158,6 @@ def get_aggregation(name): ) -def get_default_aggregation(metric_name): - try: - return DEFAULT_AGGREGATION_REGISTRY[metric_name] - except KeyError: - eval_logger.warning( - f"No default aggregation metric for metric '{metric_name}'!" - ) - - def is_higher_better(metric_name): try: return HIGHER_IS_BETTER_REGISTRY[metric_name] -- GitLab From 6b4161c17bde2b063c59769b9f1378a305059044 Mon Sep 17 00:00:00 2001 From: Lintang Sutawika Date: Thu, 19 Oct 2023 21:08:28 +0700 Subject: [PATCH 049/105] Changed `get_default_aggregation` to `get_aggregation` --- lm_eval/api/task.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lm_eval/api/task.py b/lm_eval/api/task.py index 32813dec..375c967d 100644 --- a/lm_eval/api/task.py +++ b/lm_eval/api/task.py @@ -33,7 +33,6 @@ from lm_eval.api.metrics import ( from lm_eval.api.registry import ( get_metric, get_aggregation, - get_default_aggregation, is_higher_better, DEFAULT_METRIC_REGISTRY, OUTPUT_TYPE_REGISTRY, @@ -543,9 +542,7 @@ class ConfigurableTask(Task): # TODO: handle this in TaskConfig.__post_init__ ? for metric_name in _metric_list: self._metric_fn_list[metric_name] = get_metric(metric_name) - self._aggregation_list[metric_name] = get_default_aggregation( - metric_name - ) + self._aggregation_list[metric_name] = get_aggregation(metric_name) self._higher_is_better[metric_name] = is_higher_better(metric_name) else: for metric_config in self.config.metric_list: -- GitLab From 90d818daa915199d32e833975d60671ff4b5b451 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Thu, 19 Oct 2023 14:42:02 +0000 Subject: [PATCH 050/105] fix issue with default metrics and aggregation functions --- lm_eval/api/metrics.py | 10 ++++++++++ lm_eval/api/registry.py | 19 ++++++++++++++----- lm_eval/api/task.py | 8 ++++++-- lm_eval/models/huggingface.py | 22 ++++++++++++++++++---- lm_eval/tasks/__init__.py | 3 ++- 5 files changed, 50 insertions(+), 12 deletions(-) diff --git a/lm_eval/api/metrics.py b/lm_eval/api/metrics.py index 02c0a936..bc4b7f00 100644 --- a/lm_eval/api/metrics.py +++ b/lm_eval/api/metrics.py @@ -135,6 +135,16 @@ def acc_mutual_info_fn(items): # This is a passthrough function return items +@register_metric( + metric="exact_match", + higher_is_better=True, + output_type="generate_until", + aggregation="mean", +) +def exact_match_fn(items): # This is a passthrough function + return items + + @register_metric( metric="perplexity", higher_is_better=False, diff --git a/lm_eval/api/registry.py b/lm_eval/api/registry.py index a946c9b2..aebe8c04 100644 --- a/lm_eval/api/registry.py +++ b/lm_eval/api/registry.py @@ -68,10 +68,10 @@ def register_group(name): return decorate -AGGREGATION_REGISTRY = {} -DEFAULT_AGGREGATION_REGISTRY = {} -METRIC_REGISTRY = {} OUTPUT_TYPE_REGISTRY = {} +METRIC_REGISTRY = {} +METRIC_AGGREGATION_REGISTRY = {} +AGGREGATION_REGISTRY = {} HIGHER_IS_BETTER_REGISTRY = {} DEFAULT_METRIC_REGISTRY = { @@ -95,8 +95,7 @@ def register_metric(**args): for key, registry in [ ("metric", METRIC_REGISTRY), ("higher_is_better", HIGHER_IS_BETTER_REGISTRY), - # ("output_type", OUTPUT_TYPE_REGISTRY), - ("aggregation", DEFAULT_AGGREGATION_REGISTRY), + ("aggregation", METRIC_AGGREGATION_REGISTRY), ]: if key in args: @@ -158,6 +157,16 @@ def get_aggregation(name): ) +def get_metric_aggregation(name): + + try: + return METRIC_AGGREGATION_REGISTRY[name] + except KeyError: + eval_logger.warning( + "{} not a registered aggregation metric!".format(name), + ) + + def is_higher_better(metric_name): try: return HIGHER_IS_BETTER_REGISTRY[metric_name] diff --git a/lm_eval/api/task.py b/lm_eval/api/task.py index 375c967d..6067e159 100644 --- a/lm_eval/api/task.py +++ b/lm_eval/api/task.py @@ -33,6 +33,7 @@ from lm_eval.api.metrics import ( from lm_eval.api.registry import ( get_metric, get_aggregation, + get_metric_aggregation, is_higher_better, DEFAULT_METRIC_REGISTRY, OUTPUT_TYPE_REGISTRY, @@ -537,12 +538,15 @@ class ConfigurableTask(Task): self._aggregation_list = {} self._higher_is_better = {} - _metric_list = DEFAULT_METRIC_REGISTRY[self.config.output_type] if self.config.metric_list is None: # TODO: handle this in TaskConfig.__post_init__ ? + _metric_list = DEFAULT_METRIC_REGISTRY[self.config.output_type] + for metric_name in _metric_list: self._metric_fn_list[metric_name] = get_metric(metric_name) - self._aggregation_list[metric_name] = get_aggregation(metric_name) + self._aggregation_list[metric_name] = get_metric_aggregation( + metric_name + ) self._higher_is_better[metric_name] = is_higher_better(metric_name) else: for metric_config in self.config.metric_list: diff --git a/lm_eval/models/huggingface.py b/lm_eval/models/huggingface.py index dfc88c77..e24d9567 100644 --- a/lm_eval/models/huggingface.py +++ b/lm_eval/models/huggingface.py @@ -663,8 +663,16 @@ class HFLM(LM): chunks = utils.chunks( re_ord.get_reordered(), - n=self.batch_size if self.batch_size != "auto" else override_bs if override_bs is not None else 0, - fn=self._batch_scheduler if self.batch_size == "auto" and n_reordered_requests > 0 and not override_bs else None, + n=self.batch_size + if self.batch_size != "auto" + else override_bs + if override_bs is not None + else 0, + fn=self._batch_scheduler + if self.batch_size == "auto" + and n_reordered_requests > 0 + and not override_bs + else None, ) for chunk in tqdm(chunks, disable=(disable_tqdm or (self.rank != 0))): @@ -840,8 +848,14 @@ class HFLM(LM): for key, re_ord in re_ords.items(): chunks = utils.chunks( re_ord.get_reordered(), - n=self.batch_size if self.batch_size != "auto" else adaptive_batch_size if adaptive_batch_size is not None else 0, - fn=self._batch_scheduler if self.batch_size == "auto" and not adaptive_batch_size else None, + n=self.batch_size + if self.batch_size != "auto" + else adaptive_batch_size + if adaptive_batch_size is not None + else 0, + fn=self._batch_scheduler + if self.batch_size == "auto" and not adaptive_batch_size + else None, ) for chunk in tqdm(chunks, disable=self.rank != 0): contexts, all_gen_kwargs = zip(*chunk) diff --git a/lm_eval/tasks/__init__.py b/lm_eval/tasks/__init__.py index eb9d3353..d36b6077 100644 --- a/lm_eval/tasks/__init__.py +++ b/lm_eval/tasks/__init__.py @@ -15,7 +15,8 @@ from lm_eval.api.registry import ( import logging -eval_logger = logging.getLogger('lm-eval') +eval_logger = logging.getLogger("lm-eval") + def register_configurable_task(config: Dict[str, str]) -> int: SubClass = type( -- GitLab From 9fbe6eef799213340d9871f23c853dcf8a154d43 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Thu, 19 Oct 2023 14:54:30 +0000 Subject: [PATCH 051/105] changed warning message --- lm_eval/api/registry.py | 2 +- lm_eval/api/task.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lm_eval/api/registry.py b/lm_eval/api/registry.py index aebe8c04..4e78048b 100644 --- a/lm_eval/api/registry.py +++ b/lm_eval/api/registry.py @@ -163,7 +163,7 @@ def get_metric_aggregation(name): return METRIC_AGGREGATION_REGISTRY[name] except KeyError: eval_logger.warning( - "{} not a registered aggregation metric!".format(name), + "{} metric is not assigned a default aggregation!".format(name), ) diff --git a/lm_eval/api/task.py b/lm_eval/api/task.py index 6067e159..60b5ccbf 100644 --- a/lm_eval/api/task.py +++ b/lm_eval/api/task.py @@ -587,7 +587,7 @@ class ConfigurableTask(Task): ] else: INV_AGG_REGISTRY = {v: k for k, v in AGGREGATION_REGISTRY.items()} - metric_agg = get_default_aggregation(metric_name) + metric_agg = get_metric_aggregation(metric_name) eval_logger.warning( f"[Task: {self._config.task}] metric {metric_name} is defined, but aggregation is not. " f"using default " -- GitLab From 8d4d1fa9252539951e2b3b1a9d347d96484a5cd0 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Thu, 19 Oct 2023 15:24:45 +0000 Subject: [PATCH 052/105] fixed registered metric --- lm_eval/api/metrics.py | 5 +++-- lm_eval/api/task.py | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lm_eval/api/metrics.py b/lm_eval/api/metrics.py index bc4b7f00..a6d3abc3 100644 --- a/lm_eval/api/metrics.py +++ b/lm_eval/api/metrics.py @@ -5,6 +5,7 @@ import numpy as np import sacrebleu import sklearn.metrics import random +import evaluate from lm_eval.api.registry import register_metric, register_aggregation @@ -141,8 +142,8 @@ def acc_mutual_info_fn(items): # This is a passthrough function output_type="generate_until", aggregation="mean", ) -def exact_match_fn(items): # This is a passthrough function - return items +def exact_match_fn(**kwargs): # This is a passthrough function + return evaluate.load("exact_match").compute(**kwargs) @register_metric( diff --git a/lm_eval/api/task.py b/lm_eval/api/task.py index 60b5ccbf..ba303db0 100644 --- a/lm_eval/api/task.py +++ b/lm_eval/api/task.py @@ -544,6 +544,7 @@ class ConfigurableTask(Task): for metric_name in _metric_list: self._metric_fn_list[metric_name] = get_metric(metric_name) + self._metric_fn_kwargs[metric_name] = {} self._aggregation_list[metric_name] = get_metric_aggregation( metric_name ) -- GitLab From ff148cd862f51617724cf1f2c48dc83c47df980c Mon Sep 17 00:00:00 2001 From: haileyschoelkopf Date: Thu, 19 Oct 2023 23:05:34 +0000 Subject: [PATCH 053/105] don't call evaluate.load() every time --- lm_eval/api/metrics.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lm_eval/api/metrics.py b/lm_eval/api/metrics.py index a6d3abc3..69e66fdc 100644 --- a/lm_eval/api/metrics.py +++ b/lm_eval/api/metrics.py @@ -136,14 +136,17 @@ def acc_mutual_info_fn(items): # This is a passthrough function return items +exact_match = evaluate.load("exact_match") + + @register_metric( metric="exact_match", higher_is_better=True, output_type="generate_until", aggregation="mean", ) -def exact_match_fn(**kwargs): # This is a passthrough function - return evaluate.load("exact_match").compute(**kwargs) +def exact_match_fn(**kwargs): + return exact_match.compute(**kwargs) @register_metric( -- GitLab From d9b4ca7f93e1410e3910e254d94b797df62f0eff Mon Sep 17 00:00:00 2001 From: haileyschoelkopf Date: Thu, 19 Oct 2023 23:06:10 +0000 Subject: [PATCH 054/105] fix bug when target_delimiter is empty string --- lm_eval/api/task.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lm_eval/api/task.py b/lm_eval/api/task.py index ba303db0..898909e4 100644 --- a/lm_eval/api/task.py +++ b/lm_eval/api/task.py @@ -689,7 +689,10 @@ class ConfigurableTask(Task): for choice in check_choices: choice_has_whitespace = True if choice[0].isspace() else False delimiter_has_whitespace = ( - True if self.config.target_delimiter[-1].isspace() else False + True + if self.config.target_delimiter.rstrip() + == self.config.target_delimiter + else False ) if delimiter_has_whitespace and choice_has_whitespace: -- GitLab From 1428ad575ffd701be935e3fc1833d525334091ff Mon Sep 17 00:00:00 2001 From: haileyschoelkopf Date: Thu, 19 Oct 2023 23:06:54 +0000 Subject: [PATCH 055/105] fixes to pythia benchmark, boolqseq2seq --- lm_eval/tasks/benchmarks/pythia.yaml | 2 +- lm_eval/tasks/super_glue/boolq/seq2seq.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lm_eval/tasks/benchmarks/pythia.yaml b/lm_eval/tasks/benchmarks/pythia.yaml index bb5b1174..bdeadd3c 100644 --- a/lm_eval/tasks/benchmarks/pythia.yaml +++ b/lm_eval/tasks/benchmarks/pythia.yaml @@ -9,4 +9,4 @@ task: - wsc - ai2_arc - blimp - - hendrycksTest* + - mmlu diff --git a/lm_eval/tasks/super_glue/boolq/seq2seq.yaml b/lm_eval/tasks/super_glue/boolq/seq2seq.yaml index 948ee247..b1c0048f 100644 --- a/lm_eval/tasks/super_glue/boolq/seq2seq.yaml +++ b/lm_eval/tasks/super_glue/boolq/seq2seq.yaml @@ -8,7 +8,8 @@ training_split: train validation_split: validation doc_to_text: "{{passage}}\nQuestion: {{question}}?\nAnswer:" doc_to_target: label -doc_to_choice: ['no', 'yes'] +doc_to_choice: [' no', ' yes'] +target_delimiter: "" generation_kwargs: until: - "\n\n" -- GitLab From bff237e6badc292f8f87af11f679a822163d5b5f Mon Sep 17 00:00:00 2001 From: Zhiwei Zhuang Date: Fri, 20 Oct 2023 15:12:50 +0800 Subject: [PATCH 056/105] change huggingface_login from str to bool for privacy --- lm_eval/__main__.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lm_eval/__main__.py b/lm_eval/__main__.py index d7b5fd3d..2155e6f3 100644 --- a/lm_eval/__main__.py +++ b/lm_eval/__main__.py @@ -111,9 +111,9 @@ def parse_eval_args() -> argparse.Namespace: help="Log error when tasks are not registered.", ) parser.add_argument( - "--huggingface_token", - type=str, - default=None, + "--huggingface_login", + action="store_true", + default=False, help="huggingface token for downloading some authorization datasets, like toxigen, https://huggingface.co/settings/tokens", ) return parser.parse_args() @@ -132,10 +132,14 @@ def cli_evaluate(args: Union[argparse.Namespace, None] = None) -> None: " --limit SHOULD ONLY BE USED FOR TESTING." "REAL METRICS SHOULD NOT BE COMPUTED USING LIMIT." ) - if args.huggingface_token: + if args.huggingface_login: from huggingface_hub import login - login(token=args.huggingface_token) + assert ( + "HUGGINGFACE_LOGIN_TOKEN" in os.environ + ), "Your environment variable does not contain a HUGGINGFACE_LOGIN_TOKEN. Please set the token first." + huggingface_token = os.environ["HUGGINGFACE_LOGIN_TOKEN"] + login(token=huggingface_token) if args.include_path is not None: eval_logger.info(f"Including path: {args.include_path}") include_path(args.include_path) -- GitLab From 305b546084a9ac7766565a8c7228f523c38efb90 Mon Sep 17 00:00:00 2001 From: Zhiwei Zhuang Date: Fri, 20 Oct 2023 18:00:03 +0800 Subject: [PATCH 057/105] Force conversion to str if type exceeds expected --- lm_eval/__main__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lm_eval/__main__.py b/lm_eval/__main__.py index 2155e6f3..f57d712c 100644 --- a/lm_eval/__main__.py +++ b/lm_eval/__main__.py @@ -19,7 +19,9 @@ def _handle_non_serializable(o): return int(o) elif isinstance(o, set): return list(o) - raise TypeError(f"Object of type {o.__class__.__name__} is not JSON serializable") + else: + print(f"Object of type {o.__class__.__name__} is not JSON serializable,just stringify it") + return str(o) def parse_eval_args() -> argparse.Namespace: @@ -114,7 +116,7 @@ def parse_eval_args() -> argparse.Namespace: "--huggingface_login", action="store_true", default=False, - help="huggingface token for downloading some authorization datasets, like toxigen, https://huggingface.co/settings/tokens", + help="huggingface token for downloading some authorization datasets, like toxigen, you need add HUGGINGFACE_LOGIN_TOKEN to environment variable firstly. https://huggingface.co/settings/tokens", ) return parser.parse_args() -- GitLab From 1964ccd302215f59828a7b328ba78a61e577b138 Mon Sep 17 00:00:00 2001 From: Michael Pieler Date: Fri, 20 Oct 2023 18:42:45 +0200 Subject: [PATCH 058/105] feat: add --include_path option to write out --- scripts/write_out.py | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/scripts/write_out.py b/scripts/write_out.py index df39bd26..d6b1f012 100644 --- a/scripts/write_out.py +++ b/scripts/write_out.py @@ -2,9 +2,9 @@ import argparse import numpy as np import json import os -import random -from lm_eval import tasks from lm_eval.utils import join_iters +from lm_eval.tasks import include_path +from lm_eval.logger import eval_logger EXAMPLE_DIVIDER = "!!@@##@@!! -- Example {i}\n" @@ -17,6 +17,12 @@ def parse_args(): parser.add_argument("--num_fewshot", type=int, default=1) parser.add_argument("--seed", type=int, default=42) parser.add_argument("--num_examples", type=int, default=1) + parser.add_argument( + "--include_path", + type=str, + default=None, + help="Additional path to include if there are external tasks to include.", + ) return parser.parse_args() @@ -24,13 +30,17 @@ def main(): args = parse_args() np.random.seed(args.seed) + if args.include_path is not None: + eval_logger.info(f"Including path: {args.include_path}") + include_path(args.include_path) + if args.tasks == "all_tasks": task_names = tasks.ALL_TASKS else: task_names = args.tasks.split(",") task_dict = tasks.get_task_dict(task_names) - - os.makedirs(args.output_base_path, exist_ok=True) + + os.makedirs(args.output_base_path, exist_ok=True) for task_name, task in task_dict.items(): rnd = random.Random() rnd.seed(args.seed) -- GitLab From 1a183d0374ca4df9d2715ad5f7cdb41a27264170 Mon Sep 17 00:00:00 2001 From: Michael Pieler Date: Fri, 20 Oct 2023 18:45:36 +0200 Subject: [PATCH 059/105] fix: copy paste mistake --- scripts/write_out.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/write_out.py b/scripts/write_out.py index d6b1f012..cc15ad33 100644 --- a/scripts/write_out.py +++ b/scripts/write_out.py @@ -2,6 +2,8 @@ import argparse import numpy as np import json import os +import random +from lm_eval import tasks from lm_eval.utils import join_iters from lm_eval.tasks import include_path from lm_eval.logger import eval_logger @@ -39,8 +41,8 @@ def main(): else: task_names = args.tasks.split(",") task_dict = tasks.get_task_dict(task_names) - - os.makedirs(args.output_base_path, exist_ok=True) + + os.makedirs(args.output_base_path, exist_ok=True) for task_name, task in task_dict.items(): rnd = random.Random() rnd.seed(args.seed) -- GitLab From b3a2af333f9597ec74eab79b005c85d9695c6cb1 Mon Sep 17 00:00:00 2001 From: Hailey Schoelkopf <65563625+haileyschoelkopf@users.noreply.github.com> Date: Tue, 24 Oct 2023 13:04:59 -0400 Subject: [PATCH 060/105] Update pyproject.toml --- pyproject.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0689c34c..45ccd3c2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,9 +41,13 @@ dependencies = [ [tool.setuptools] packages = ["lm_eval"] + +[tool.setuptools.packages.find] +include = ["lm_eval*"] + # required to include yaml files in pip installation [tool.setuptools.package-data] -lm_eval = ["**/*.yaml", "api/**/*", "decontamination/**/*", "filters/**/*", "models/**/*", "prompts/**/*", "tasks/**/*"] +lm_eval = ["**/*.yaml", "prompts/**/*", "tasks/**/*"] examples = ["**/*.yaml"] [project.scripts] -- GitLab From e7e3adeb3a0f047caba90fb3fbdb14e3a801ee2d Mon Sep 17 00:00:00 2001 From: Hailey Schoelkopf <65563625+haileyschoelkopf@users.noreply.github.com> Date: Tue, 24 Oct 2023 13:06:36 -0400 Subject: [PATCH 061/105] Update pyproject.toml --- pyproject.toml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 45ccd3c2..8b0eaecd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,10 +38,6 @@ dependencies = [ "zstandard", ] -[tool.setuptools] -packages = ["lm_eval"] - - [tool.setuptools.packages.find] include = ["lm_eval*"] -- GitLab From fa1f35718631060e6057b9f2cd3c82d77593c8ba Mon Sep 17 00:00:00 2001 From: Hailey Schoelkopf <65563625+haileyschoelkopf@users.noreply.github.com> Date: Tue, 24 Oct 2023 13:10:28 -0400 Subject: [PATCH 062/105] Update pyproject.toml --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8b0eaecd..f495a57f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,9 @@ dependencies = [ ] [tool.setuptools.packages.find] -include = ["lm_eval*"] +where = ["lm_eval"] +include = ["*"] +namespaces = false # required to include yaml files in pip installation [tool.setuptools.package-data] -- GitLab From a1b589df8e8a6eff383459bf01166a54d3decbe4 Mon Sep 17 00:00:00 2001 From: Hailey Schoelkopf <65563625+haileyschoelkopf@users.noreply.github.com> Date: Tue, 24 Oct 2023 13:45:07 -0400 Subject: [PATCH 063/105] Update pyproject.toml --- pyproject.toml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f495a57f..7a9b8d6e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,14 +39,11 @@ dependencies = [ ] [tool.setuptools.packages.find] -where = ["lm_eval"] -include = ["*"] -namespaces = false +include = ["lm_eval"] # required to include yaml files in pip installation [tool.setuptools.package-data] -lm_eval = ["**/*.yaml", "prompts/**/*", "tasks/**/*"] -examples = ["**/*.yaml"] +lm_eval = ["**/*.yaml", "tasks/**/*"] [project.scripts] lm-eval = "lm_eval.__main__:cli_evaluate" -- GitLab From 84db6359e1079f9ba90dcd54abcff908ee481ec6 Mon Sep 17 00:00:00 2001 From: Hailey Schoelkopf <65563625+haileyschoelkopf@users.noreply.github.com> Date: Tue, 24 Oct 2023 13:50:33 -0400 Subject: [PATCH 064/105] Update pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7a9b8d6e..fd9fc79b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ dependencies = [ ] [tool.setuptools.packages.find] -include = ["lm_eval"] +include = ["lm_eval*"] # required to include yaml files in pip installation [tool.setuptools.package-data] -- GitLab From 888d30350ac7b20077bc7a540ee1e82a9c2b1220 Mon Sep 17 00:00:00 2001 From: haileyschoelkopf Date: Tue, 31 Oct 2023 19:31:24 +0000 Subject: [PATCH 065/105] fix warning for delimiter having no whitespace --- lm_eval/api/task.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lm_eval/api/task.py b/lm_eval/api/task.py index 898909e4..883c643d 100644 --- a/lm_eval/api/task.py +++ b/lm_eval/api/task.py @@ -691,7 +691,7 @@ class ConfigurableTask(Task): delimiter_has_whitespace = ( True if self.config.target_delimiter.rstrip() - == self.config.target_delimiter + != self.config.target_delimiter else False ) @@ -701,7 +701,7 @@ class ConfigurableTask(Task): ) elif (not delimiter_has_whitespace) and (not choice_has_whitespace): eval_logger.warning( - f'Both target_delimiter and target choice: "{choice}" does not have whitespace, ignore if the language you are evaluating on does not require/use whitespace' + f'Both target_delimiter "{self.config.target_delimiter}" and target choice: "{choice}" do not have whitespace, ignore if the language you are evaluating on does not require/use whitespace' ) def download(self, dataset_kwargs=None) -> None: -- GitLab From dd7002d6c1324a79a7e97ec02211e1e3f808dbe4 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Wed, 1 Nov 2023 13:34:10 +0000 Subject: [PATCH 066/105] add task and group alias --- lm_eval/api/task.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lm_eval/api/task.py b/lm_eval/api/task.py index 898909e4..3d8052be 100644 --- a/lm_eval/api/task.py +++ b/lm_eval/api/task.py @@ -52,7 +52,9 @@ ALL_OUTPUT_TYPES = [ class TaskConfig(dict): # task naming/registry task: str = None + task_alias: str = None group: Union[str, list] = None + group_alias: Union[str, list] = None # HF dataset options. # which dataset to use, # and what splits for what purpose -- GitLab From f5bdefe84a07fb2db1fb3593d005c411eb21fcdf Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Wed, 1 Nov 2023 15:00:48 +0000 Subject: [PATCH 067/105] new way to display tasks --- lm_eval/evaluator.py | 54 ++++++++++++++++++++++++++++++++++++++------ 1 file changed, 47 insertions(+), 7 deletions(-) diff --git a/lm_eval/evaluator.py b/lm_eval/evaluator.py index caf84941..27612647 100644 --- a/lm_eval/evaluator.py +++ b/lm_eval/evaluator.py @@ -221,6 +221,7 @@ def evaluate( task_hierarchy = collections.defaultdict(list) # store the ordering of tasks and groups task_order = collections.defaultdict(int) + task_group_alias = collections.defaultdict(dict) # get lists of each type of request for task_name, task in task_dict.items(): @@ -228,6 +229,10 @@ def evaluate( group_name, task = task task_hierarchy[group_name].append(task_name) versions[group_name] = "N/A" + + if "group_alias" in configs[task_name]: + task_group_alias[group_name] = configs[task_name]["group_alias"] + else: task_hierarchy[task_name] = [] @@ -237,6 +242,9 @@ def evaluate( versions[task_name] = task.VERSION configs[task_name] = dict(task.dump_config()) + if "task_alias" in configs[task_name]: + task_group_alias[task_name] = configs[task_name]["task_alias"] + if limit is not None: if task.has_test_docs(): task_docs = task.test_docs() @@ -522,19 +530,19 @@ def evaluate( results[group]["samples"] = total_size - def print_tasks(task_hierarchy, task_order, task_version): + def print_tasks(task_hierarchy, task_order, task_version, task_group_alias): results_agg = collections.defaultdict(dict) groups_agg = collections.defaultdict(dict) for group_name, task_list in task_hierarchy.items(): order = task_order[group_name] - tabbed_name = "-" * order + group_name - results_agg[tabbed_name] = results[group_name] - task_version[tabbed_name] = task_version[group_name] + results_agg[group_name] = results[group_name] + results_agg[group_name]["tab"] = order if (order < max(task_order.values())) and (len(task_list) > 0): - groups_agg[tabbed_name] = results[group_name] + groups_agg[group_name] = results[group_name] + groups_agg[group_name]["tab"] = order if task_list != []: for task in sorted(task_list): @@ -544,7 +552,7 @@ def evaluate( _task_hierarchy = {task: []} _results_agg, _groups_agg, task_version = print_tasks( - _task_hierarchy, task_order, task_version + _task_hierarchy, task_order, task_version, task_group_alias ) results_agg = {**results_agg, **_results_agg} @@ -553,9 +561,41 @@ def evaluate( return results_agg, groups_agg, task_version results_agg, groups_agg, versions = print_tasks( - task_hierarchy, task_order, versions + task_hierarchy, task_order, versions, task_group_alias ) + _results_agg = collections.defaultdict(dict) + _versions = collections.defaultdict(dict) + for task in results_agg: + task_results = results_agg[task] + if "tab" in task_results: + tab = task_results.pop("tab") + tab_string = " "*(tab-1)+"-" if tab > 0 else "" + + if task in task_group_alias: + task_alias = task_group_alias[task] + _results_agg[tab_string+task_alias] = task_results + _versions[tab_string+task_alias] = versions[task] + else: + _results_agg[tab_string+task] = task_results + _versions[tab_string+task] = versions[task] + results_agg = _results_agg + versions = _versions + + _groups_agg = collections.defaultdict(dict) + for group in groups_agg: + group_results = groups_agg[group] + if "tab" in group_results: + tab = group_results.pop("tab") + tab_string = " "*(tab-1)+"-" if tab > 0 else "" + + if group in task_group_alias: + group_alias = task_group_alias[group] + _groups_agg[tab_string+group_alias] = group_results + else: + _groups_agg[tab_string+group] = group_results + groups_agg = _groups_agg + results_dict = { "results": dict(results_agg.items()), **({"groups": dict(groups_agg.items())} if bool(groups_agg) else {}), -- GitLab From 60dd33c80f61373455de89d1a54101144849ba19 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Wed, 1 Nov 2023 15:02:15 +0000 Subject: [PATCH 068/105] new way to display tasks --- lm_eval/evaluator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lm_eval/evaluator.py b/lm_eval/evaluator.py index 27612647..81f4efd7 100644 --- a/lm_eval/evaluator.py +++ b/lm_eval/evaluator.py @@ -570,7 +570,7 @@ def evaluate( task_results = results_agg[task] if "tab" in task_results: tab = task_results.pop("tab") - tab_string = " "*(tab-1)+"-" if tab > 0 else "" + tab_string = " "*tab+"-" if tab > 0 else "" if task in task_group_alias: task_alias = task_group_alias[task] @@ -587,7 +587,7 @@ def evaluate( group_results = groups_agg[group] if "tab" in group_results: tab = group_results.pop("tab") - tab_string = " "*(tab-1)+"-" if tab > 0 else "" + tab_string = " "*tab+"-" if tab > 0 else "" if group in task_group_alias: group_alias = task_group_alias[group] -- GitLab From 55407cd689fbd424ae3658bbe9ecebd2adedc5af Mon Sep 17 00:00:00 2001 From: haileyschoelkopf Date: Wed, 1 Nov 2023 15:43:13 +0000 Subject: [PATCH 069/105] fix tqdm total for hf model --- lm_eval/models/huggingface.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lm_eval/models/huggingface.py b/lm_eval/models/huggingface.py index e24d9567..54cf98a4 100644 --- a/lm_eval/models/huggingface.py +++ b/lm_eval/models/huggingface.py @@ -675,7 +675,10 @@ class HFLM(LM): else None, ) - for chunk in tqdm(chunks, disable=(disable_tqdm or (self.rank != 0))): + pbar = tqdm(total=len(requests), disable=(disable_tqdm or (self.rank != 0))) + for ( + chunk + ) in chunks: # tqdm(chunks, disable=(disable_tqdm or (self.rank != 0))): inps = [] cont_toks_list = [] inplens = [] @@ -812,6 +815,9 @@ class HFLM(LM): res.append(answer) self.cache_hook.add_partial("loglikelihood", cache_key, answer) + pbar.update(1) + + pbar.close() return re_ord.get_original(res) -- GitLab From 2fda31ca0490a010131d8d676f4003f5132d6ae3 Mon Sep 17 00:00:00 2001 From: haileyschoelkopf Date: Wed, 1 Nov 2023 16:54:12 +0000 Subject: [PATCH 070/105] remove nonstandard logger from evaluator.py --- lm_eval/evaluator.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lm_eval/evaluator.py b/lm_eval/evaluator.py index bf35097c..177eab31 100644 --- a/lm_eval/evaluator.py +++ b/lm_eval/evaluator.py @@ -2,7 +2,6 @@ import random import itertools import json import collections -import logging import sys import torch @@ -25,10 +24,6 @@ from lm_eval.utils import ( from lm_eval.logger import eval_logger -logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) -logger.addHandler(logging.StreamHandler(sys.stdout)) - @positional_deprecated def simple_evaluate( -- GitLab From a922db886c1fa0c0b8e8a5c40e6b8a12a44c1546 Mon Sep 17 00:00:00 2001 From: haileyschoelkopf Date: Wed, 1 Nov 2023 16:55:03 +0000 Subject: [PATCH 071/105] rename template for generate_until bb tasks --- .../{greedy_until_template_yaml => generate_until_template_yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename lm_eval/tasks/bigbench/{greedy_until_template_yaml => generate_until_template_yaml} (100%) diff --git a/lm_eval/tasks/bigbench/greedy_until_template_yaml b/lm_eval/tasks/bigbench/generate_until_template_yaml similarity index 100% rename from lm_eval/tasks/bigbench/greedy_until_template_yaml rename to lm_eval/tasks/bigbench/generate_until_template_yaml -- GitLab From f5cf38a9b730c81c39d35483de4a20c473d4ac3f Mon Sep 17 00:00:00 2001 From: haileyschoelkopf Date: Wed, 1 Nov 2023 17:05:06 +0000 Subject: [PATCH 072/105] replace with no_train mmlu dataset --- lm_eval/tasks/mmlu/default/_default_template_yaml | 2 +- .../mmlu/flan_cot_fewshot/_mmlu_flan_cot_fewshot_template_yaml | 2 +- .../mmlu/flan_cot_zeroshot/_mmlu_flan_generative_template_yaml | 2 +- .../tasks/mmlu/flan_n_shot/_mmlu_flan_generative_template_yaml | 2 +- .../mmlu/flan_n_shot/_mmlu_flan_loglikelihood_template_yaml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lm_eval/tasks/mmlu/default/_default_template_yaml b/lm_eval/tasks/mmlu/default/_default_template_yaml index bd989c40..af4bf12c 100644 --- a/lm_eval/tasks/mmlu/default/_default_template_yaml +++ b/lm_eval/tasks/mmlu/default/_default_template_yaml @@ -1,5 +1,5 @@ group: mmlu -dataset_path: cais/mmlu +dataset_path: hails/mmlu_no_train # a copy of `cais/mmlu` with no auxiliary_train split test_split: test fewshot_split: dev fewshot_config: diff --git a/lm_eval/tasks/mmlu/flan_cot_fewshot/_mmlu_flan_cot_fewshot_template_yaml b/lm_eval/tasks/mmlu/flan_cot_fewshot/_mmlu_flan_cot_fewshot_template_yaml index 4b54fb41..e340271a 100644 --- a/lm_eval/tasks/mmlu/flan_cot_fewshot/_mmlu_flan_cot_fewshot_template_yaml +++ b/lm_eval/tasks/mmlu/flan_cot_fewshot/_mmlu_flan_cot_fewshot_template_yaml @@ -1,5 +1,5 @@ group: mmlu_flan_cot_fewshot -dataset_path: cais/mmlu +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 diff --git a/lm_eval/tasks/mmlu/flan_cot_zeroshot/_mmlu_flan_generative_template_yaml b/lm_eval/tasks/mmlu/flan_cot_zeroshot/_mmlu_flan_generative_template_yaml index 37c95ce7..1e276204 100644 --- a/lm_eval/tasks/mmlu/flan_cot_zeroshot/_mmlu_flan_generative_template_yaml +++ b/lm_eval/tasks/mmlu/flan_cot_zeroshot/_mmlu_flan_generative_template_yaml @@ -1,5 +1,5 @@ group: mmlu_flan_cot_zeroshot -dataset_path: cais/mmlu +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 diff --git a/lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_generative_template_yaml b/lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_generative_template_yaml index 49046d22..93dc8c71 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_generative_template_yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_generative_template_yaml @@ -1,5 +1,5 @@ group: mmlu_flan_n_shot_generative -dataset_path: cais/mmlu +dataset_path: hails/mmlu_no_train # a copy of `cais/mmlu` with no auxiliary_train split test_split: test fewshot_split: dev output_type: generate_until diff --git a/lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_loglikelihood_template_yaml b/lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_loglikelihood_template_yaml index 5db2981a..3efc2e42 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_loglikelihood_template_yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_loglikelihood_template_yaml @@ -1,5 +1,5 @@ group: mmlu_flan_n_shot_loglikelihood -dataset_path: cais/mmlu +dataset_path: hails/mmlu_no_train # a copy of `cais/mmlu` with no auxiliary_train split test_split: test fewshot_split: dev output_type: multiple_choice -- GitLab From 7fa0761cb5514158c94ab33cb20161b50f03e3c2 Mon Sep 17 00:00:00 2001 From: haileyschoelkopf Date: Wed, 1 Nov 2023 18:00:42 +0000 Subject: [PATCH 073/105] clean up documentation --- docs/model_guide.md | 33 +++++++++++++++++++++++++++++---- docs/new_task_guide.md | 6 +++--- 2 files changed, 32 insertions(+), 7 deletions(-) diff --git a/docs/model_guide.md b/docs/model_guide.md index a71539b7..10c58e06 100644 --- a/docs/model_guide.md +++ b/docs/model_guide.md @@ -48,7 +48,7 @@ class MyCustomLM(LM): #... #... ``` -Where `Instance` is a dataclass defined in [`lm_eval.api.instance`](https://github.com/EleutherAI/lm-evaluation-harness/blob/big-refactor/lm_eval/api/instance.py) with property `args` which returns a tuple of (context, continuation). +Where `Instance` is a dataclass defined in [`lm_eval.api.instance`](https://github.com/EleutherAI/lm-evaluation-harness/blob/big-refactor/lm_eval/api/instance.py) with property `args` of request-dependent type signature described below. We support three types of requests, consisting of different interactions / measurements with an autoregressive LM. @@ -56,14 +56,37 @@ All three request types take as input `requests` of type `list[Instance]` that h - `generate_until` - Each request contains `Instance.args : Tuple[str, dict]` containing 1. an input string to the LM and 2. a dictionary of keyword arguments used to control generation parameters. - - + - Using this input and these generation parameters, text will be sampled from the language model (typically until a maximum output length or specific stopping string sequences--for example, `{"until": ["\n\n", "."], "max_gen_toks": 128}`). + - The generated input+output text from the model will then be returned. - `loglikelihood` - - + - Each request contains `Instance.args : Tuple[str, str]` containing 1. an input string to the LM and 2. a target string on which the loglikelihood of the LM producing this target, conditioned on the input, will be returned. + - Each request will have, as result, `(ll, is_greedy): Tuple[float, int]` returned, where `ll` is a floating point number representing the log probability of generating the target string conditioned on the input, and `is_greedy` being either the value `0` or `1`, with it being `1` if and only if the target string *would be generated by greedy sampling from the LM* (that is, if the target string is the *most likely* N-token string to be output by the LM given the input. ) -- `loglikelihood_rolling`, and args passed to it +- `loglikelihood_rolling` + - Each request contains `Instance.args : Tuple[str]`, which is an input string to the model whose *entire* loglikelihood, conditioned on purely the EOT token, will be calculated. + - This is used to evaluate *perplexity* on a data distribution. + - It should return `(ll,) : Tuple[float]` , a.k.a. solely the *loglikelihood* of producing each piece of text given no starting input. +To allow a model to be evaluated on all types of tasks, you will need to implement these three types of measurements (note that `loglikelihood_rolling` is a special case of `loglikelihood`). For a reference implementation, check out `lm_eval/models/huggingface.py` ! + +**Tip: be careful of indexing in loglikelihood!** + + +LMs take in tokens in position `[0 1 2 ... N]` and output a probability distribution for token position `N+1`. We provide a simplified graphic here, excerpted from `huggingface.py`: + +``` +# how this all works (illustrated on a causal decoder-only setup): +# CTX CONT +# inp 0 1 2 3|4 5 6 7 8 9 <- last token is deleted by inp[:, :-1] +# model \ \ +# logits 1 2 3|4 5 6 7 8 9 <- the ctx half gets tossed out by the +# cont_toks 4 5 6 7 8 9 [:, -len(continuation_enc):, :self.vocab_size] slice +``` + +The final token of the target is not passed into the LM, because we want the LM's predictions *up to but not past* that final target token. For more information, check out https://github.com/EleutherAI/lm-evaluation-harness/issues/942 . + ## Registration Congrats on implementing your model! Now it's time to test it out. @@ -81,7 +104,9 @@ class MyCustomLM(LM): Using this decorator results in the class being added to an accounting of the usable LM types maintained internally to the library at `lm_eval.api.registry.MODEL_REGISTRY`. See `lm_eval.api.registry` for more detail on what sorts of registries and decorators exist in the library! +## Testing +We also recommend that new model contributions be accompanied by short tests of their 3 core functionalities, at minimum. To see an example of such tests, look at https://github.com/EleutherAI/lm-evaluation-harness/blob/35bdecd379c0cefad6897e67db892f4a6026a128/tests/test_ggml.py . ## Other diff --git a/docs/new_task_guide.md b/docs/new_task_guide.md index e0ccc6a3..d0b2b429 100644 --- a/docs/new_task_guide.md +++ b/docs/new_task_guide.md @@ -17,7 +17,7 @@ git checkout -b pip install -e ".[dev]" ``` -As a concrete example, we'll walk through reimplementing the `gsm8k` benchmark (a *generative* task which requires sampling text from a model) and the `sciq` benchmark. (a *discriminative*, or *multiple choice*, task where the model picks the most likely of several fixed answer choices). +In this document, we'll walk through the basics of implementing a static benchmark evaluation in two formats: a *generative* task which requires sampling text from a model, such as [`gsm8k`](https://github.com/EleutherAI/lm-evaluation-harness/blob/big-refactor/lm_eval/tasks/gsm8k/gsm8k.yaml), and a *discriminative*, or *multiple choice*, task where the model picks the most likely of several fixed answer choices, such as [`sciq`](https://github.com/EleutherAI/lm-evaluation-harness/blob/big-refactor/lm_eval/tasks/sciq/sciq.yaml). ## Creating a YAML file @@ -116,7 +116,7 @@ doc_to_choice: ['No', 'Yes'] We support the [Jinja 2](https://jinja.palletsprojects.com/en/3.1.x/) templating language for writing prompts. In practice, this means you can take your dataset's columns and do many basic string manipulations to place each document into prompted format. -Take for example `super_glue/boolq`, as input, we'd like to use the features `passage` and `question` and string them together so that for a a sample line `doc`, the model sees something the format of: +Take for example the dataset `super_glue/boolq`. As input, we'd like to use the features `passage` and `question` and string them together so that for a a sample line `doc`, the model sees something the format of: ``` doc["passage"] Question: doc["question"]? @@ -285,7 +285,7 @@ It's now time to check models' performance on your task! In the evaluation harne To enable this, we provide a checklist that should be completed when contributing a new task, to enable accurate book-keeping and to ensure that tasks added to the library are well-tested and, where applicable, precedented. -### Task impl. checklist +### Task Validity Checklist The checklist is the following: -- GitLab From 09a744b9ea1823a62107df87cd53e048f9a39c00 Mon Sep 17 00:00:00 2001 From: Stella Biderman Date: Wed, 1 Nov 2023 16:14:09 -0400 Subject: [PATCH 074/105] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cbd8777b..2cea64c1 100644 --- a/README.md +++ b/README.md @@ -249,7 +249,7 @@ You can also ask for help, or discuss new features with the maintainers in the # ## Cite as ``` -@software{eval-harness, +@misc{eval-harness, author = {Gao, Leo and Tow, Jonathan and Abbasi, Baber and -- GitLab From 7aad26fe2f3201eccc0a24cb5b0a05cd40d8fcc4 Mon Sep 17 00:00:00 2001 From: Stella Biderman Date: Wed, 1 Nov 2023 16:16:11 -0400 Subject: [PATCH 075/105] Update README.md --- README.md | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/README.md b/README.md index 2cea64c1..2622a62d 100644 --- a/README.md +++ b/README.md @@ -250,30 +250,7 @@ You can also ask for help, or discuss new features with the maintainers in the # ``` @misc{eval-harness, - author = {Gao, Leo and - Tow, Jonathan and - Abbasi, Baber and - Biderman, Stella and - Black, Sid and - DiPofi, Anthony and - Foster, Charles and - Golding, Laurence and - Hsu, Jeffrey and - Le Noac'h, Alain and - Li, Haonan and - McDonell, Kyle and - Muennighoff, Niklas and - Ociepa, Chris - Phang, Jason and - Reynolds, Laria and - Schoelkopf, Hailey and - Skowron, Aviya and - Sutawika, Lintang and - Tang, Eric and - Thite, Anish and - Wang, Ben and - Wang, Kevin and - Zou, Andy}, + author = {Gao, Leo and Tow, Jonathan and Abbasi, Baber and Biderman, Stella and Black, Sid and DiPofi, Anthony and Foster, Charles and Golding, Laurence and Hsu, Jeffrey and Le Noac'h, Alain and Li, Haonan and McDonell, Kyle and Muennighoff, Niklas and Ociepa, Chris and Phang, Jason and Reynolds, Laria and Schoelkopf, Hailey and Skowron, Aviya and Sutawika, Lintang and Tang, Eric and Thite, Anish and Wang, Ben and Wang, Kevin and Zou, Andy}, title = {A framework for few-shot language model evaluation}, month = sep, year = 2021, -- GitLab From 2efac405e4db9271671b8ad9e78f5e29047fab86 Mon Sep 17 00:00:00 2001 From: Stella Biderman Date: Wed, 1 Nov 2023 16:19:34 -0400 Subject: [PATCH 076/105] Update README.md --- README.md | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/README.md b/README.md index 2622a62d..6ac931e0 100644 --- a/README.md +++ b/README.md @@ -1,26 +1,12 @@ # Language Model Evaluation Harness -## Notice to Users -(as of 6/15/23) -We have a revamp of the Evaluation Harness library internals staged on the [big-refactor](https://github.com/EleutherAI/lm-evaluation-harness/tree/big-refactor) branch! It is far along in progress, but before we start to move the `master` branch of the repository over to this new design with a new version release, we'd like to ensure that it's been tested by outside users and there are no glaring bugs. - -We’d like your help to test it out! you can help by: -1. Trying out your current workloads on the big-refactor branch, and seeing if anything breaks or is counterintuitive, -2. Porting tasks supported in the previous version of the harness to the new YAML configuration format. Please check out our [task implementation guide](https://github.com/EleutherAI/lm-evaluation-harness/blob/big-refactor/docs/new_task_guide.md) for more information. - -If you choose to port a task not yet completed according to [our checklist](https://github.com/EleutherAI/lm-evaluation-harness/blob/big-refactor/lm_eval/tasks/README.md), then you can contribute it by opening a PR containing [Refactor] in the name with: -- A command of the form `python -m lm_eval --model hf --model_args ..... --tasks ...` which will run the task in the `master` branch, and what the score is -- A command of the form `python -m lm_eval --model hf --model_args ..... --tasks ...` to run the task in your PR branch to `big-refactor`, and what the resulting score is, to show that we achieve equality between the two implementations. - -Lastly, we'll no longer be accepting new feature requests beyond those that are already open to the master branch as we carry out this switch to the new version over the next week, though we will be accepting bugfixes to `master` branch and PRs to `big-refactor`. Feel free to reach out in the #lm-thunderdome channel of the EAI discord for more information. - ## Overview This project provides a unified framework to test generative language models on a large number of different evaluation tasks. Features: -- Many tasks implemented, 200+ tasks [implemented in the old framework](https://github.com/EleutherAI/lm-evaluation-harness/blob/master/docs/task_table.md) which require porting to the new setup as described in [the new task guide](https://github.com/EleutherAI/lm-evaluation-harness/blob/big-refactor/docs/new_task_guide.md). +- Over 60 standard academic benchmarks for LLMs, with hundreds of subtasks and variants implemented. - Support for models loaded via [transformers](https://github.com/huggingface/transformers/) (including quantization via [AutoGPTQ](https://github.com/PanQiWei/AutoGPTQ)), [GPT-NeoX](https://github.com/EleutherAI/gpt-neox), and [Megatron-DeepSpeed](https://github.com/microsoft/Megatron-DeepSpeed/), with a flexible tokenization-agnostic interface. - Support for commercial APIs including [OpenAI](https://openai.com), [goose.ai](https://goose.ai), and [TextSynth](https://textsynth.com/). - Support for evaluation on adapters (e.g. LoRA) supported in [HuggingFace's PEFT library](https://github.com/huggingface/peft). @@ -58,7 +44,6 @@ To install the package with all extras, run pip install -e ".[all]" ``` - ## Support The best way to get support is to open an issue on this repo or join the EleutherAI discord server](discord.gg/eleutherai). The `#lm-thunderdome` channel is dedicated to developing this project and the `#release-discussion` channel is for receiving support for our releases. -- GitLab From 70b09fd9a148a05c865e429adc58d20a441837c8 Mon Sep 17 00:00:00 2001 From: Stella Biderman Date: Wed, 1 Nov 2023 16:20:34 -0400 Subject: [PATCH 077/105] Update README.md --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6ac931e0..6b8ae98d 100644 --- a/README.md +++ b/README.md @@ -216,12 +216,6 @@ python -m lm_eval \ We support wildcards in task names, for example you can run all of the machine-translated lambada tasks via `--task lambada_openai_mt_*`. -## Implementing new tasks - -To implement a new task in the eval harness, see [this guide](./docs/new_task_guide.md). - - -As a start, we currently only support one prompt per task, which we strive to make the "standard" as defined by the benchmark's authors. If you would like to study how varying prompts causes changes in the evaluation score, we support prompts authored in the [Promptsource Library](https://github.com/bigscience-workshop/promptsource/tree/main) as described further in [the task guide](https://github.com/EleutherAI/lm-evaluation-harness/blob/big-refactor/lm_eval/docs/new_task_guide.md) and [the advanced task guide](https://github.com/EleutherAI/lm-evaluation-harness/blob/big-refactor/lm_eval/docs/advanced_task_guide.md) and welcome contributions of novel task templates and task variants. ## How to Contribute or Learn More? @@ -230,6 +224,13 @@ For more information on the library and how everything fits together, check out You can also ask for help, or discuss new features with the maintainers in the #lm-thunderdome channel of the EleutherAI discord! If you've used the library and have had a positive (or negative) experience, we'd love to hear from you! +### Implementing new tasks + +To implement a new task in the eval harness, see [this guide](./docs/new_task_guide.md). + + +As a start, we currently only support one prompt per task, which we strive to make the "standard" as defined by the benchmark's authors. If you would like to study how varying prompts causes changes in the evaluation score, we support prompts authored in the [Promptsource Library](https://github.com/bigscience-workshop/promptsource/tree/main) as described further in [the task guide](https://github.com/EleutherAI/lm-evaluation-harness/blob/big-refactor/lm_eval/docs/new_task_guide.md) and [the advanced task guide](https://github.com/EleutherAI/lm-evaluation-harness/blob/big-refactor/lm_eval/docs/advanced_task_guide.md) and welcome contributions of novel task templates and task variants. + ## Cite as -- GitLab From 06faed0cde9c9e2c48ab1531badbf722c8404c22 Mon Sep 17 00:00:00 2001 From: Stella Biderman Date: Wed, 1 Nov 2023 16:21:40 -0400 Subject: [PATCH 078/105] Update CODEOWNERS --- CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CODEOWNERS b/CODEOWNERS index 9e637546..35ca63fe 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1 +1 @@ -* @haileyschoelkopf @lintangsutawika +* @haileyschoelkopf @lintangsutawika @StellaAthena -- GitLab From d50a2ad61d7d7da0694585ec50b9214fcd8e670e Mon Sep 17 00:00:00 2001 From: Hailey Schoelkopf <65563625+haileyschoelkopf@users.noreply.github.com> Date: Wed, 1 Nov 2023 17:11:50 -0400 Subject: [PATCH 079/105] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6b8ae98d..92af820c 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ The Language Model Evaluation Harness is the backend for 🤗 Hugging Face's pop ## Install -To install the `lm-eval` refactor branch from the github repository, run: +To install the `lm-eval` package from the github repository, run: ```bash git clone https://github.com/EleutherAI/lm-evaluation-harness @@ -141,7 +141,7 @@ A full accounting of the supported and planned libraries + APIs can be seen belo | API or Inference Server | Implemented? | `--model ` name | Models supported: | Request Types: | |-----------------------------|---------------------------------|----------------------------------------------------------------------------------|--------------------------------------|----------------------------------------------------------| | OpenAI Completions | :heavy_check_mark: | `openai`, `openai-completions`, `gooseai` | up to `code-davinci-002` | `generate_until`, `loglikelihood`, `loglikelihood_rolling` | -| OpenAI ChatCompletions | :x: Not yet - needs help! | N/A | (link here?) | `generate_until` (no logprobs) | +| OpenAI ChatCompletions | :x: Not yet - needs testing! | N/A | [All ChatCompletions API models](https://platform.openai.com/docs/guides/gpt) | `generate_until` (no logprobs) | | Anthropic | :heavy_check_mark: | `anthropic` | [Supported Anthropic Engines](https://docs.anthropic.com/claude/reference/selecting-a-model) | `generate_until` (no logprobs) | | GooseAI | :heavy_check_mark: (not separately maintained) | `openai`, `openai-completions`, `gooseai` (same interface as OpenAI Completions) | | `generate_until`, `loglikelihood`, `loglikelihood_rolling` | | Textsynth | Needs testing | `textsynth` | ??? | `generate_until`, `loglikelihood`, `loglikelihood_rolling` | -- GitLab From 56a2c8e3b72fbaa298bf46c8f17f1cdefb2a6c9b Mon Sep 17 00:00:00 2001 From: Hailey Schoelkopf <65563625+haileyschoelkopf@users.noreply.github.com> Date: Wed, 1 Nov 2023 17:19:56 -0400 Subject: [PATCH 080/105] describe local dataset usage in docs --- docs/new_task_guide.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/new_task_guide.md b/docs/new_task_guide.md index d0b2b429..6b30bfc9 100644 --- a/docs/new_task_guide.md +++ b/docs/new_task_guide.md @@ -45,6 +45,16 @@ dataset_name: ... # the dataset configuration to use. Leave `null` if your datas dataset_kwargs: null # any extra keyword arguments that should be passed to the dataset constructor, e.g. `data_dir`. ``` +------------------------------ +**Tip:** To load a local dataset for evaluation, you can specify data files in the `dataset_kwargs` field, such as the following for JSON files: +``` +dataset_path: json +dataset_name: null +dataset_kwargs: + data_files: /path/to/my/json +``` +------------------------------- + Next, we'd like to tell our task what the dataset's train, validation, and test splits are named, if they exist: ```yaml -- GitLab From 4ac7f064d186bb8dfc72350a1a6973f20b0ed2e5 Mon Sep 17 00:00:00 2001 From: Hailey Schoelkopf <65563625+haileyschoelkopf@users.noreply.github.com> Date: Wed, 1 Nov 2023 19:00:56 -0400 Subject: [PATCH 081/105] remove `--huggingface_login` --- lm_eval/__main__.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lm_eval/__main__.py b/lm_eval/__main__.py index f57d712c..aaf98419 100644 --- a/lm_eval/__main__.py +++ b/lm_eval/__main__.py @@ -20,7 +20,6 @@ def _handle_non_serializable(o): elif isinstance(o, set): return list(o) else: - print(f"Object of type {o.__class__.__name__} is not JSON serializable,just stringify it") return str(o) @@ -112,12 +111,6 @@ def parse_eval_args() -> argparse.Namespace: default="INFO", help="Log error when tasks are not registered.", ) - parser.add_argument( - "--huggingface_login", - action="store_true", - default=False, - help="huggingface token for downloading some authorization datasets, like toxigen, you need add HUGGINGFACE_LOGIN_TOKEN to environment variable firstly. https://huggingface.co/settings/tokens", - ) return parser.parse_args() @@ -134,14 +127,6 @@ def cli_evaluate(args: Union[argparse.Namespace, None] = None) -> None: " --limit SHOULD ONLY BE USED FOR TESTING." "REAL METRICS SHOULD NOT BE COMPUTED USING LIMIT." ) - if args.huggingface_login: - from huggingface_hub import login - - assert ( - "HUGGINGFACE_LOGIN_TOKEN" in os.environ - ), "Your environment variable does not contain a HUGGINGFACE_LOGIN_TOKEN. Please set the token first." - huggingface_token = os.environ["HUGGINGFACE_LOGIN_TOKEN"] - login(token=huggingface_token) if args.include_path is not None: eval_logger.info(f"Including path: {args.include_path}") include_path(args.include_path) -- GitLab From 29ba8cb16e272084a34bce21a724ccfc2c100e8e Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Thu, 2 Nov 2023 06:03:14 +0000 Subject: [PATCH 082/105] fixing display name --- lm_eval/evaluator.py | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/lm_eval/evaluator.py b/lm_eval/evaluator.py index 81f4efd7..4f3544c8 100644 --- a/lm_eval/evaluator.py +++ b/lm_eval/evaluator.py @@ -230,8 +230,12 @@ def evaluate( task_hierarchy[group_name].append(task_name) versions[group_name] = "N/A" - if "group_alias" in configs[task_name]: + if ("group_alias" in configs[task_name]) and ( + group_name not in task_group_alias + ): + print(group_name) task_group_alias[group_name] = configs[task_name]["group_alias"] + print(task_group_alias) else: task_hierarchy[task_name] = [] @@ -537,11 +541,11 @@ def evaluate( for group_name, task_list in task_hierarchy.items(): order = task_order[group_name] - results_agg[group_name] = results[group_name] + results_agg[group_name] = results[group_name].copy() results_agg[group_name]["tab"] = order if (order < max(task_order.values())) and (len(task_list) > 0): - groups_agg[group_name] = results[group_name] + groups_agg[group_name] = results[group_name].copy() groups_agg[group_name]["tab"] = order if task_list != []: @@ -564,36 +568,41 @@ def evaluate( task_hierarchy, task_order, versions, task_group_alias ) + print("task_group_alias") + print(task_group_alias) + _results_agg = collections.defaultdict(dict) _versions = collections.defaultdict(dict) for task in results_agg: task_results = results_agg[task] + tab_string = "" if "tab" in task_results: tab = task_results.pop("tab") - tab_string = " "*tab+"-" if tab > 0 else "" + tab_string = " " * tab + "-" if tab > 0 else "" if task in task_group_alias: task_alias = task_group_alias[task] - _results_agg[tab_string+task_alias] = task_results - _versions[tab_string+task_alias] = versions[task] + _results_agg[tab_string + task_alias] = task_results + _versions[tab_string + task_alias] = versions[task] else: - _results_agg[tab_string+task] = task_results - _versions[tab_string+task] = versions[task] + _results_agg[tab_string + task] = task_results + _versions[tab_string + task] = versions[task] results_agg = _results_agg versions = _versions _groups_agg = collections.defaultdict(dict) for group in groups_agg: group_results = groups_agg[group] + tab_string = "" if "tab" in group_results: tab = group_results.pop("tab") - tab_string = " "*tab+"-" if tab > 0 else "" + tab_string = " " * tab + "-" if tab > 0 else "" if group in task_group_alias: group_alias = task_group_alias[group] - _groups_agg[tab_string+group_alias] = group_results + _groups_agg[tab_string + group_alias] = group_results else: - _groups_agg[tab_string+group] = group_results + _groups_agg[tab_string + group] = group_results groups_agg = _groups_agg results_dict = { -- GitLab From d1e7a30a13a709148f78df214b33a41c89a2f9db Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Thu, 2 Nov 2023 06:42:42 +0000 Subject: [PATCH 083/105] fixed stderr calculation --- lm_eval/evaluator.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/lm_eval/evaluator.py b/lm_eval/evaluator.py index 4f3544c8..3322297d 100644 --- a/lm_eval/evaluator.py +++ b/lm_eval/evaluator.py @@ -230,13 +230,6 @@ def evaluate( task_hierarchy[group_name].append(task_name) versions[group_name] = "N/A" - if ("group_alias" in configs[task_name]) and ( - group_name not in task_group_alias - ): - print(group_name) - task_group_alias[group_name] = configs[task_name]["group_alias"] - print(task_group_alias) - else: task_hierarchy[task_name] = [] @@ -249,6 +242,11 @@ def evaluate( if "task_alias" in configs[task_name]: task_group_alias[task_name] = configs[task_name]["task_alias"] + if ("group_alias" in configs[task_name]) and ( + group_name not in task_group_alias + ): + task_group_alias[group_name] = configs[task_name]["group_alias"] + if limit is not None: if task.has_test_docs(): task_docs = task.test_docs() @@ -502,6 +500,7 @@ def evaluate( stderr = "_stderr,".join(metric.split(",")) stderr_score = results[task][stderr] + var_score = stderr_score**2 metric_score = results[task][metric] all_stderr.append(stderr) @@ -514,7 +513,7 @@ def evaluate( # $$s_z^2 = \frac{(n-1) s_x^2 + (m-1) s_y^2}{n+m-1} + \frac{nm(\bar x - \bar y)^2}{(n+m)(n+m-1)}.$$ results[group][stderr] = ( (total_size - 1) * results[group][stderr] - + (current_size - 1) * stderr_score + + (current_size - 1) * var_score ) / ( total_size + current_size - 1 ) + total_size * current_size / ( @@ -525,7 +524,7 @@ def evaluate( ) ** 2 else: results[group][metric] = metric_score - results[group][stderr] = stderr_score + results[group][stderr] = var_score total_size += current_size -- GitLab From 6dfe848e23c596cc968e254180a4ebb06fe26342 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Thu, 2 Nov 2023 06:42:53 +0000 Subject: [PATCH 084/105] added group and task alias --- lm_eval/tasks/mmlu/_generate_configs.py | 2 ++ lm_eval/tasks/mmlu/default/mmlu_abstract_algebra.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_anatomy.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_astronomy.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_business_ethics.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_clinical_knowledge.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_college_biology.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_college_chemistry.yaml | 5 ++++- .../tasks/mmlu/default/mmlu_college_computer_science.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_college_mathematics.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_college_medicine.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_college_physics.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_computer_security.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_conceptual_physics.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_econometrics.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_electrical_engineering.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_elementary_mathematics.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_formal_logic.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_global_facts.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_high_school_biology.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_high_school_chemistry.yaml | 5 ++++- .../mmlu/default/mmlu_high_school_computer_science.yaml | 5 ++++- .../mmlu/default/mmlu_high_school_european_history.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_high_school_geography.yaml | 5 ++++- .../default/mmlu_high_school_government_and_politics.yaml | 5 ++++- .../tasks/mmlu/default/mmlu_high_school_macroeconomics.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_high_school_mathematics.yaml | 5 ++++- .../tasks/mmlu/default/mmlu_high_school_microeconomics.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_high_school_physics.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_high_school_psychology.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_high_school_statistics.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_high_school_us_history.yaml | 5 ++++- .../tasks/mmlu/default/mmlu_high_school_world_history.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_human_aging.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_human_sexuality.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_international_law.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_jurisprudence.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_logical_fallacies.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_machine_learning.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_management.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_marketing.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_medical_genetics.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_miscellaneous.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_moral_disputes.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_moral_scenarios.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_nutrition.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_philosophy.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_prehistory.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_professional_accounting.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_professional_law.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_professional_medicine.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_professional_psychology.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_public_relations.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_security_studies.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_sociology.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_us_foreign_policy.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_virology.yaml | 5 ++++- lm_eval/tasks/mmlu/default/mmlu_world_religions.yaml | 5 ++++- .../loglikelihood/_mmlu_flan_loglikelihood_template_yaml | 2 +- 59 files changed, 231 insertions(+), 58 deletions(-) diff --git a/lm_eval/tasks/mmlu/_generate_configs.py b/lm_eval/tasks/mmlu/_generate_configs.py index 1ea16ece..2bf27ac0 100644 --- a/lm_eval/tasks/mmlu/_generate_configs.py +++ b/lm_eval/tasks/mmlu/_generate_configs.py @@ -112,9 +112,11 @@ if __name__ == "__main__": "group": f"mmlu_{args.task_prefix}_{category}" if args.task_prefix != "" else f"mmlu_{category}", + "group_alias": category.replace("_", " "), "task": f"mmlu_{args.task_prefix}_{subject}" if args.task_prefix != "" else f"mmlu_{subject}", + "task_alias": subject.replace("_", " "), "dataset_name": subject, "description": description, } diff --git a/lm_eval/tasks/mmlu/default/mmlu_abstract_algebra.yaml b/lm_eval/tasks/mmlu/default/mmlu_abstract_algebra.yaml index bb786cc8..90f3cc50 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_abstract_algebra.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_abstract_algebra.yaml @@ -1,5 +1,8 @@ "dataset_name": "abstract_algebra" -"description": "The following are multiple choice questions (with answers) about abstract algebra.\n\n" +"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_eval/tasks/mmlu/default/mmlu_anatomy.yaml b/lm_eval/tasks/mmlu/default/mmlu_anatomy.yaml index 22eaa7fd..0e9e09b2 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_anatomy.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_anatomy.yaml @@ -1,5 +1,8 @@ "dataset_name": "anatomy" -"description": "The following are multiple choice questions (with answers) about anatomy.\n\n" +"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_eval/tasks/mmlu/default/mmlu_astronomy.yaml b/lm_eval/tasks/mmlu/default/mmlu_astronomy.yaml index 64f20d20..e3bdfc95 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_astronomy.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_astronomy.yaml @@ -1,5 +1,8 @@ "dataset_name": "astronomy" -"description": "The following are multiple choice questions (with answers) about astronomy.\n\n" +"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_eval/tasks/mmlu/default/mmlu_business_ethics.yaml b/lm_eval/tasks/mmlu/default/mmlu_business_ethics.yaml index 49330917..ea0d1fe2 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_business_ethics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_business_ethics.yaml @@ -1,5 +1,8 @@ "dataset_name": "business_ethics" -"description": "The following are multiple choice questions (with answers) about business ethics.\n\n" +"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_eval/tasks/mmlu/default/mmlu_clinical_knowledge.yaml b/lm_eval/tasks/mmlu/default/mmlu_clinical_knowledge.yaml index 547aeccf..20bab147 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_clinical_knowledge.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_clinical_knowledge.yaml @@ -1,5 +1,8 @@ "dataset_name": "clinical_knowledge" -"description": "The following are multiple choice questions (with answers) about clinical knowledge.\n\n" +"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_eval/tasks/mmlu/default/mmlu_college_biology.yaml b/lm_eval/tasks/mmlu/default/mmlu_college_biology.yaml index 69826397..afb4d9c6 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_college_biology.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_college_biology.yaml @@ -1,5 +1,8 @@ "dataset_name": "college_biology" -"description": "The following are multiple choice questions (with answers) about college biology.\n\n" +"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_eval/tasks/mmlu/default/mmlu_college_chemistry.yaml b/lm_eval/tasks/mmlu/default/mmlu_college_chemistry.yaml index b91c07f6..a7de3532 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_college_chemistry.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_college_chemistry.yaml @@ -1,5 +1,8 @@ "dataset_name": "college_chemistry" -"description": "The following are multiple choice questions (with answers) about college chemistry.\n\n" +"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_eval/tasks/mmlu/default/mmlu_college_computer_science.yaml b/lm_eval/tasks/mmlu/default/mmlu_college_computer_science.yaml index a89a46aa..9786cc6e 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_college_computer_science.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_college_computer_science.yaml @@ -1,5 +1,8 @@ "dataset_name": "college_computer_science" -"description": "The following are multiple choice questions (with answers) about college computer science.\n\n" +"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_eval/tasks/mmlu/default/mmlu_college_mathematics.yaml b/lm_eval/tasks/mmlu/default/mmlu_college_mathematics.yaml index c452ff97..e7699f8b 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_college_mathematics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_college_mathematics.yaml @@ -1,5 +1,8 @@ "dataset_name": "college_mathematics" -"description": "The following are multiple choice questions (with answers) about college mathematics.\n\n" +"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_eval/tasks/mmlu/default/mmlu_college_medicine.yaml b/lm_eval/tasks/mmlu/default/mmlu_college_medicine.yaml index d696a40d..df9e8901 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_college_medicine.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_college_medicine.yaml @@ -1,5 +1,8 @@ "dataset_name": "college_medicine" -"description": "The following are multiple choice questions (with answers) about college medicine.\n\n" +"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_eval/tasks/mmlu/default/mmlu_college_physics.yaml b/lm_eval/tasks/mmlu/default/mmlu_college_physics.yaml index 16046e53..3c5e7462 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_college_physics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_college_physics.yaml @@ -1,5 +1,8 @@ "dataset_name": "college_physics" -"description": "The following are multiple choice questions (with answers) about college physics.\n\n" +"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_eval/tasks/mmlu/default/mmlu_computer_security.yaml b/lm_eval/tasks/mmlu/default/mmlu_computer_security.yaml index 923967ae..df9c4a51 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_computer_security.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_computer_security.yaml @@ -1,5 +1,8 @@ "dataset_name": "computer_security" -"description": "The following are multiple choice questions (with answers) about computer security.\n\n" +"description": "The following are multiple choice questions (with answers) about computer\ + \ security.\n\n" "group": "mmlu_stem" +"group_alias": "stem" "include": "_default_template_yaml" "task": "mmlu_computer_security" +"task_alias": "computer_security" diff --git a/lm_eval/tasks/mmlu/default/mmlu_conceptual_physics.yaml b/lm_eval/tasks/mmlu/default/mmlu_conceptual_physics.yaml index 88096f3b..8ab59ed1 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_conceptual_physics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_conceptual_physics.yaml @@ -1,5 +1,8 @@ "dataset_name": "conceptual_physics" -"description": "The following are multiple choice questions (with answers) about conceptual physics.\n\n" +"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_eval/tasks/mmlu/default/mmlu_econometrics.yaml b/lm_eval/tasks/mmlu/default/mmlu_econometrics.yaml index 4c43a5c8..a974fc84 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_econometrics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_econometrics.yaml @@ -1,5 +1,8 @@ "dataset_name": "econometrics" -"description": "The following are multiple choice questions (with answers) about econometrics.\n\n" +"description": "The following are multiple choice questions (with answers) about econometrics.\n\ + \n" "group": "mmlu_social_sciences" +"group_alias": "social_sciences" "include": "_default_template_yaml" "task": "mmlu_econometrics" +"task_alias": "econometrics" diff --git a/lm_eval/tasks/mmlu/default/mmlu_electrical_engineering.yaml b/lm_eval/tasks/mmlu/default/mmlu_electrical_engineering.yaml index 27ab4828..9c45cc61 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_electrical_engineering.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_electrical_engineering.yaml @@ -1,5 +1,8 @@ "dataset_name": "electrical_engineering" -"description": "The following are multiple choice questions (with answers) about electrical engineering.\n\n" +"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_eval/tasks/mmlu/default/mmlu_elementary_mathematics.yaml b/lm_eval/tasks/mmlu/default/mmlu_elementary_mathematics.yaml index bd7106e4..2154ab65 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_elementary_mathematics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_elementary_mathematics.yaml @@ -1,5 +1,8 @@ "dataset_name": "elementary_mathematics" -"description": "The following are multiple choice questions (with answers) about elementary mathematics.\n\n" +"description": "The following are multiple choice questions (with answers) about elementary\ + \ mathematics.\n\n" "group": "mmlu_stem" +"group_alias": "stem" "include": "_default_template_yaml" "task": "mmlu_elementary_mathematics" +"task_alias": "elementary_mathematics" diff --git a/lm_eval/tasks/mmlu/default/mmlu_formal_logic.yaml b/lm_eval/tasks/mmlu/default/mmlu_formal_logic.yaml index 98486ebe..689d3d1f 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_formal_logic.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_formal_logic.yaml @@ -1,5 +1,8 @@ "dataset_name": "formal_logic" -"description": "The following are multiple choice questions (with answers) about formal logic.\n\n" +"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_eval/tasks/mmlu/default/mmlu_global_facts.yaml b/lm_eval/tasks/mmlu/default/mmlu_global_facts.yaml index 9db3f3d3..60b5c129 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_global_facts.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_global_facts.yaml @@ -1,5 +1,8 @@ "dataset_name": "global_facts" -"description": "The following are multiple choice questions (with answers) about global facts.\n\n" +"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_eval/tasks/mmlu/default/mmlu_high_school_biology.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_biology.yaml index 0ed8c0e7..c7e055dc 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_biology.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_biology.yaml @@ -1,5 +1,8 @@ "dataset_name": "high_school_biology" -"description": "The following are multiple choice questions (with answers) about high school biology.\n\n" +"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_eval/tasks/mmlu/default/mmlu_high_school_chemistry.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_chemistry.yaml index 7aa6037d..8e9421c1 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_chemistry.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_chemistry.yaml @@ -1,5 +1,8 @@ "dataset_name": "high_school_chemistry" -"description": "The following are multiple choice questions (with answers) about high school chemistry.\n\n" +"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_eval/tasks/mmlu/default/mmlu_high_school_computer_science.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_computer_science.yaml index 9cf212af..87ec15cc 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_computer_science.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_computer_science.yaml @@ -1,5 +1,8 @@ "dataset_name": "high_school_computer_science" -"description": "The following are multiple choice questions (with answers) about high school computer science.\n\n" +"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_eval/tasks/mmlu/default/mmlu_high_school_european_history.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_european_history.yaml index e9189bd9..be0d696a 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_european_history.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_european_history.yaml @@ -1,5 +1,8 @@ "dataset_name": "high_school_european_history" -"description": "The following are multiple choice questions (with answers) about high school european history.\n\n" +"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_eval/tasks/mmlu/default/mmlu_high_school_geography.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_geography.yaml index 7573c8c2..57c5261a 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_geography.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_geography.yaml @@ -1,5 +1,8 @@ "dataset_name": "high_school_geography" -"description": "The following are multiple choice questions (with answers) about high school geography.\n\n" +"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_eval/tasks/mmlu/default/mmlu_high_school_government_and_politics.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_government_and_politics.yaml index 83d7d498..2e92f152 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_government_and_politics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_government_and_politics.yaml @@ -1,5 +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" +"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_eval/tasks/mmlu/default/mmlu_high_school_macroeconomics.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_macroeconomics.yaml index 4e8269b3..988d132a 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_macroeconomics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_macroeconomics.yaml @@ -1,5 +1,8 @@ "dataset_name": "high_school_macroeconomics" -"description": "The following are multiple choice questions (with answers) about high school macroeconomics.\n\n" +"description": "The following are multiple choice questions (with answers) about high\ + \ school macroeconomics.\n\n" "group": "mmlu_social_sciences" +"group_alias": "social_sciences" "include": "_default_template_yaml" "task": "mmlu_high_school_macroeconomics" +"task_alias": "high_school_macroeconomics" diff --git a/lm_eval/tasks/mmlu/default/mmlu_high_school_mathematics.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_mathematics.yaml index 2b9d3216..f7c07a60 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_mathematics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_mathematics.yaml @@ -1,5 +1,8 @@ "dataset_name": "high_school_mathematics" -"description": "The following are multiple choice questions (with answers) about high school mathematics.\n\n" +"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_eval/tasks/mmlu/default/mmlu_high_school_microeconomics.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_microeconomics.yaml index 3206bfdf..5339a023 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_microeconomics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_microeconomics.yaml @@ -1,5 +1,8 @@ "dataset_name": "high_school_microeconomics" -"description": "The following are multiple choice questions (with answers) about high school microeconomics.\n\n" +"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_eval/tasks/mmlu/default/mmlu_high_school_physics.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_physics.yaml index 27a1e51a..0fae0405 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_physics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_physics.yaml @@ -1,5 +1,8 @@ "dataset_name": "high_school_physics" -"description": "The following are multiple choice questions (with answers) about high school physics.\n\n" +"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_eval/tasks/mmlu/default/mmlu_high_school_psychology.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_psychology.yaml index 1e0b1628..31ecb18e 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_psychology.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_psychology.yaml @@ -1,5 +1,8 @@ "dataset_name": "high_school_psychology" -"description": "The following are multiple choice questions (with answers) about high school psychology.\n\n" +"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_eval/tasks/mmlu/default/mmlu_high_school_statistics.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_statistics.yaml index 4244ea8f..54d70880 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_statistics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_statistics.yaml @@ -1,5 +1,8 @@ "dataset_name": "high_school_statistics" -"description": "The following are multiple choice questions (with answers) about high school statistics.\n\n" +"description": "The following are multiple choice questions (with answers) about high\ + \ school statistics.\n\n" "group": "mmlu_stem" +"group_alias": "stem" "include": "_default_template_yaml" "task": "mmlu_high_school_statistics" +"task_alias": "high_school_statistics" diff --git a/lm_eval/tasks/mmlu/default/mmlu_high_school_us_history.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_us_history.yaml index a6f085ec..e4432fe4 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_us_history.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_us_history.yaml @@ -1,5 +1,8 @@ "dataset_name": "high_school_us_history" -"description": "The following are multiple choice questions (with answers) about high school us history.\n\n" +"description": "The following are multiple choice questions (with answers) about high\ + \ school us history.\n\n" "group": "mmlu_humanities" +"group_alias": "humanities" "include": "_default_template_yaml" "task": "mmlu_high_school_us_history" +"task_alias": "high_school_us_history" diff --git a/lm_eval/tasks/mmlu/default/mmlu_high_school_world_history.yaml b/lm_eval/tasks/mmlu/default/mmlu_high_school_world_history.yaml index c23d93c8..08773a20 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_high_school_world_history.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_high_school_world_history.yaml @@ -1,5 +1,8 @@ "dataset_name": "high_school_world_history" -"description": "The following are multiple choice questions (with answers) about high school world history.\n\n" +"description": "The following are multiple choice questions (with answers) about high\ + \ school world history.\n\n" "group": "mmlu_humanities" +"group_alias": "humanities" "include": "_default_template_yaml" "task": "mmlu_high_school_world_history" +"task_alias": "high_school_world_history" diff --git a/lm_eval/tasks/mmlu/default/mmlu_human_aging.yaml b/lm_eval/tasks/mmlu/default/mmlu_human_aging.yaml index 1478d3dd..c9e1feb1 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_human_aging.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_human_aging.yaml @@ -1,5 +1,8 @@ "dataset_name": "human_aging" -"description": "The following are multiple choice questions (with answers) about human aging.\n\n" +"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_eval/tasks/mmlu/default/mmlu_human_sexuality.yaml b/lm_eval/tasks/mmlu/default/mmlu_human_sexuality.yaml index ab56a035..715859a1 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_human_sexuality.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_human_sexuality.yaml @@ -1,5 +1,8 @@ "dataset_name": "human_sexuality" -"description": "The following are multiple choice questions (with answers) about human sexuality.\n\n" +"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_eval/tasks/mmlu/default/mmlu_international_law.yaml b/lm_eval/tasks/mmlu/default/mmlu_international_law.yaml index 7a352701..68765225 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_international_law.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_international_law.yaml @@ -1,5 +1,8 @@ "dataset_name": "international_law" -"description": "The following are multiple choice questions (with answers) about international law.\n\n" +"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_eval/tasks/mmlu/default/mmlu_jurisprudence.yaml b/lm_eval/tasks/mmlu/default/mmlu_jurisprudence.yaml index af29fae3..e16de5c4 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_jurisprudence.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_jurisprudence.yaml @@ -1,5 +1,8 @@ "dataset_name": "jurisprudence" -"description": "The following are multiple choice questions (with answers) about jurisprudence.\n\n" +"description": "The following are multiple choice questions (with answers) about jurisprudence.\n\ + \n" "group": "mmlu_humanities" +"group_alias": "humanities" "include": "_default_template_yaml" "task": "mmlu_jurisprudence" +"task_alias": "jurisprudence" diff --git a/lm_eval/tasks/mmlu/default/mmlu_logical_fallacies.yaml b/lm_eval/tasks/mmlu/default/mmlu_logical_fallacies.yaml index 570fd3dd..8b12057b 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_logical_fallacies.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_logical_fallacies.yaml @@ -1,5 +1,8 @@ "dataset_name": "logical_fallacies" -"description": "The following are multiple choice questions (with answers) about logical fallacies.\n\n" +"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_eval/tasks/mmlu/default/mmlu_machine_learning.yaml b/lm_eval/tasks/mmlu/default/mmlu_machine_learning.yaml index 11166e2f..2387d680 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_machine_learning.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_machine_learning.yaml @@ -1,5 +1,8 @@ "dataset_name": "machine_learning" -"description": "The following are multiple choice questions (with answers) about machine learning.\n\n" +"description": "The following are multiple choice questions (with answers) about machine\ + \ learning.\n\n" "group": "mmlu_stem" +"group_alias": "stem" "include": "_default_template_yaml" "task": "mmlu_machine_learning" +"task_alias": "machine_learning" diff --git a/lm_eval/tasks/mmlu/default/mmlu_management.yaml b/lm_eval/tasks/mmlu/default/mmlu_management.yaml index 745ac762..d0cdc812 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_management.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_management.yaml @@ -1,5 +1,8 @@ "dataset_name": "management" -"description": "The following are multiple choice questions (with answers) about management.\n\n" +"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_eval/tasks/mmlu/default/mmlu_marketing.yaml b/lm_eval/tasks/mmlu/default/mmlu_marketing.yaml index 38401dc8..a614db29 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_marketing.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_marketing.yaml @@ -1,5 +1,8 @@ "dataset_name": "marketing" -"description": "The following are multiple choice questions (with answers) about marketing.\n\n" +"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_eval/tasks/mmlu/default/mmlu_medical_genetics.yaml b/lm_eval/tasks/mmlu/default/mmlu_medical_genetics.yaml index 2e4fbbd8..5d7ce708 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_medical_genetics.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_medical_genetics.yaml @@ -1,5 +1,8 @@ "dataset_name": "medical_genetics" -"description": "The following are multiple choice questions (with answers) about medical genetics.\n\n" +"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_eval/tasks/mmlu/default/mmlu_miscellaneous.yaml b/lm_eval/tasks/mmlu/default/mmlu_miscellaneous.yaml index aa674180..77e819cf 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_miscellaneous.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_miscellaneous.yaml @@ -1,5 +1,8 @@ "dataset_name": "miscellaneous" -"description": "The following are multiple choice questions (with answers) about miscellaneous.\n\n" +"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_eval/tasks/mmlu/default/mmlu_moral_disputes.yaml b/lm_eval/tasks/mmlu/default/mmlu_moral_disputes.yaml index ac8bbdb9..2df1a1dd 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_moral_disputes.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_moral_disputes.yaml @@ -1,5 +1,8 @@ "dataset_name": "moral_disputes" -"description": "The following are multiple choice questions (with answers) about moral disputes.\n\n" +"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_eval/tasks/mmlu/default/mmlu_moral_scenarios.yaml b/lm_eval/tasks/mmlu/default/mmlu_moral_scenarios.yaml index 33a249c2..6da63cb2 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_moral_scenarios.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_moral_scenarios.yaml @@ -1,5 +1,8 @@ "dataset_name": "moral_scenarios" -"description": "The following are multiple choice questions (with answers) about moral scenarios.\n\n" +"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_eval/tasks/mmlu/default/mmlu_nutrition.yaml b/lm_eval/tasks/mmlu/default/mmlu_nutrition.yaml index 44b799cd..df70fbb2 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_nutrition.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_nutrition.yaml @@ -1,5 +1,8 @@ "dataset_name": "nutrition" -"description": "The following are multiple choice questions (with answers) about nutrition.\n\n" +"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_eval/tasks/mmlu/default/mmlu_philosophy.yaml b/lm_eval/tasks/mmlu/default/mmlu_philosophy.yaml index 5a703cc4..9dba09c1 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_philosophy.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_philosophy.yaml @@ -1,5 +1,8 @@ "dataset_name": "philosophy" -"description": "The following are multiple choice questions (with answers) about philosophy.\n\n" +"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_eval/tasks/mmlu/default/mmlu_prehistory.yaml b/lm_eval/tasks/mmlu/default/mmlu_prehistory.yaml index dc8e65b8..d787898c 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_prehistory.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_prehistory.yaml @@ -1,5 +1,8 @@ "dataset_name": "prehistory" -"description": "The following are multiple choice questions (with answers) about prehistory.\n\n" +"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_eval/tasks/mmlu/default/mmlu_professional_accounting.yaml b/lm_eval/tasks/mmlu/default/mmlu_professional_accounting.yaml index c59ccffd..3443c336 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_professional_accounting.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_professional_accounting.yaml @@ -1,5 +1,8 @@ "dataset_name": "professional_accounting" -"description": "The following are multiple choice questions (with answers) about professional accounting.\n\n" +"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_eval/tasks/mmlu/default/mmlu_professional_law.yaml b/lm_eval/tasks/mmlu/default/mmlu_professional_law.yaml index 46a3ebbd..f3a02631 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_professional_law.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_professional_law.yaml @@ -1,5 +1,8 @@ "dataset_name": "professional_law" -"description": "The following are multiple choice questions (with answers) about professional law.\n\n" +"description": "The following are multiple choice questions (with answers) about professional\ + \ law.\n\n" "group": "mmlu_humanities" +"group_alias": "humanities" "include": "_default_template_yaml" "task": "mmlu_professional_law" +"task_alias": "professional_law" diff --git a/lm_eval/tasks/mmlu/default/mmlu_professional_medicine.yaml b/lm_eval/tasks/mmlu/default/mmlu_professional_medicine.yaml index fe52278d..e8c49b5e 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_professional_medicine.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_professional_medicine.yaml @@ -1,5 +1,8 @@ "dataset_name": "professional_medicine" -"description": "The following are multiple choice questions (with answers) about professional medicine.\n\n" +"description": "The following are multiple choice questions (with answers) about professional\ + \ medicine.\n\n" "group": "mmlu_other" +"group_alias": "other" "include": "_default_template_yaml" "task": "mmlu_professional_medicine" +"task_alias": "professional_medicine" diff --git a/lm_eval/tasks/mmlu/default/mmlu_professional_psychology.yaml b/lm_eval/tasks/mmlu/default/mmlu_professional_psychology.yaml index ff7bb1f7..ec48a06f 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_professional_psychology.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_professional_psychology.yaml @@ -1,5 +1,8 @@ "dataset_name": "professional_psychology" -"description": "The following are multiple choice questions (with answers) about professional psychology.\n\n" +"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_eval/tasks/mmlu/default/mmlu_public_relations.yaml b/lm_eval/tasks/mmlu/default/mmlu_public_relations.yaml index 290a85f5..db36fb49 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_public_relations.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_public_relations.yaml @@ -1,5 +1,8 @@ "dataset_name": "public_relations" -"description": "The following are multiple choice questions (with answers) about public relations.\n\n" +"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_eval/tasks/mmlu/default/mmlu_security_studies.yaml b/lm_eval/tasks/mmlu/default/mmlu_security_studies.yaml index d1a41871..072dfd70 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_security_studies.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_security_studies.yaml @@ -1,5 +1,8 @@ "dataset_name": "security_studies" -"description": "The following are multiple choice questions (with answers) about security studies.\n\n" +"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_eval/tasks/mmlu/default/mmlu_sociology.yaml b/lm_eval/tasks/mmlu/default/mmlu_sociology.yaml index be1e46f5..efcbd27b 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_sociology.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_sociology.yaml @@ -1,5 +1,8 @@ "dataset_name": "sociology" -"description": "The following are multiple choice questions (with answers) about sociology.\n\n" +"description": "The following are multiple choice questions (with answers) about sociology.\n\ + \n" "group": "mmlu_social_sciences" +"group_alias": "social_sciences" "include": "_default_template_yaml" "task": "mmlu_sociology" +"task_alias": "sociology" diff --git a/lm_eval/tasks/mmlu/default/mmlu_us_foreign_policy.yaml b/lm_eval/tasks/mmlu/default/mmlu_us_foreign_policy.yaml index f94e8bc0..d80ee94a 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_us_foreign_policy.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_us_foreign_policy.yaml @@ -1,5 +1,8 @@ "dataset_name": "us_foreign_policy" -"description": "The following are multiple choice questions (with answers) about us foreign policy.\n\n" +"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_eval/tasks/mmlu/default/mmlu_virology.yaml b/lm_eval/tasks/mmlu/default/mmlu_virology.yaml index 4fdc1bf6..d935f92a 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_virology.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_virology.yaml @@ -1,5 +1,8 @@ "dataset_name": "virology" -"description": "The following are multiple choice questions (with answers) about virology.\n\n" +"description": "The following are multiple choice questions (with answers) about virology.\n\ + \n" "group": "mmlu_other" +"group_alias": "other" "include": "_default_template_yaml" "task": "mmlu_virology" +"task_alias": "virology" diff --git a/lm_eval/tasks/mmlu/default/mmlu_world_religions.yaml b/lm_eval/tasks/mmlu/default/mmlu_world_religions.yaml index 870ea78d..8681354f 100644 --- a/lm_eval/tasks/mmlu/default/mmlu_world_religions.yaml +++ b/lm_eval/tasks/mmlu/default/mmlu_world_religions.yaml @@ -1,5 +1,8 @@ "dataset_name": "world_religions" -"description": "The following are multiple choice questions (with answers) about world religions.\n\n" +"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_eval/tasks/mmlu/flan_n_shot/loglikelihood/_mmlu_flan_loglikelihood_template_yaml b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/_mmlu_flan_loglikelihood_template_yaml index 2d5d92ef..5db2981a 100644 --- a/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/_mmlu_flan_loglikelihood_template_yaml +++ b/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/_mmlu_flan_loglikelihood_template_yaml @@ -12,4 +12,4 @@ metric_list: higher_is_better: true - metric: acc_norm aggregation: mean - higher_is_better: true \ No newline at end of file + higher_is_better: true -- GitLab From 6eac00565e3fdc2741c1048960f2e16dd308222d Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Thu, 2 Nov 2023 06:44:32 +0000 Subject: [PATCH 085/105] removed print --- lm_eval/evaluator.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/lm_eval/evaluator.py b/lm_eval/evaluator.py index 3322297d..76b2c475 100644 --- a/lm_eval/evaluator.py +++ b/lm_eval/evaluator.py @@ -567,9 +567,6 @@ def evaluate( task_hierarchy, task_order, versions, task_group_alias ) - print("task_group_alias") - print(task_group_alias) - _results_agg = collections.defaultdict(dict) _versions = collections.defaultdict(dict) for task in results_agg: -- GitLab From 0d1fb8a5e805bc7e3987ce301e1b835d1c551863 Mon Sep 17 00:00:00 2001 From: Lintang Sutawika Date: Thu, 2 Nov 2023 15:34:16 +0800 Subject: [PATCH 086/105] Rename greedy_until_template_yaml to generate_until_template_yaml --- .../{greedy_until_template_yaml => generate_until_template_yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename lm_eval/tasks/bigbench/{greedy_until_template_yaml => generate_until_template_yaml} (100%) diff --git a/lm_eval/tasks/bigbench/greedy_until_template_yaml b/lm_eval/tasks/bigbench/generate_until_template_yaml similarity index 100% rename from lm_eval/tasks/bigbench/greedy_until_template_yaml rename to lm_eval/tasks/bigbench/generate_until_template_yaml -- GitLab From ad8eee89a917d60032c5484c04cbc32284f6670a Mon Sep 17 00:00:00 2001 From: haileyschoelkopf Date: Thu, 2 Nov 2023 18:34:26 +0000 Subject: [PATCH 087/105] cleanup hf tqdm --- lm_eval/models/huggingface.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lm_eval/models/huggingface.py b/lm_eval/models/huggingface.py index 54cf98a4..8feb8cfa 100644 --- a/lm_eval/models/huggingface.py +++ b/lm_eval/models/huggingface.py @@ -676,9 +676,7 @@ class HFLM(LM): ) pbar = tqdm(total=len(requests), disable=(disable_tqdm or (self.rank != 0))) - for ( - chunk - ) in chunks: # tqdm(chunks, disable=(disable_tqdm or (self.rank != 0))): + for chunk in chunks: inps = [] cont_toks_list = [] inplens = [] @@ -863,7 +861,7 @@ class HFLM(LM): if self.batch_size == "auto" and not adaptive_batch_size else None, ) - for chunk in tqdm(chunks, disable=self.rank != 0): + for chunk in chunks: contexts, all_gen_kwargs = zip(*chunk) # we assume all gen kwargs in the batch are the same # this is safe to assume because the `grouper` object ensures it. -- GitLab From 37ac5f468d2d67dddc2b68c4ea047a5e8bae20b5 Mon Sep 17 00:00:00 2001 From: haileyschoelkopf Date: Fri, 3 Nov 2023 16:52:59 +0000 Subject: [PATCH 088/105] remove gold_alias from codebase --- lm_eval/api/task.py | 21 ------------------- lm_eval/tasks/gsm8k/gsm8k-cot.yaml | 5 +++-- lm_eval/tasks/gsm8k/gsm8k.yaml | 4 ++-- .../utilitarianism_original_yaml | 1 - lm_eval/tasks/pubmedqa/preprocess_pubmedqa.py | 9 -------- 5 files changed, 5 insertions(+), 35 deletions(-) diff --git a/lm_eval/api/task.py b/lm_eval/api/task.py index 883c643d..256a4671 100644 --- a/lm_eval/api/task.py +++ b/lm_eval/api/task.py @@ -69,7 +69,6 @@ class TaskConfig(dict): doc_to_text: Union[Callable, str] = None doc_to_target: Union[Callable, str] = None doc_to_choice: Union[Callable, str, dict, list] = None - gold_alias: Union[Callable, str] = None process_results: Union[Callable, str] = None use_prompt: str = None description: str = "" @@ -893,26 +892,6 @@ class ConfigurableTask(Task): else: raise TypeError - def gold_alias(self, doc): - # returns a version of the gold target answer to a document, - # which should be passed into metric for scoring as the ground truth. - - # in multiple_choice tasks, this should be castable to an int corresponding to the index - # within the answer choices, while doc_to_target is the string version of {{answer_choices[gold]}}. - if self.config.gold_alias is not None: - doc_to_target = self.config.gold_alias - else: - return self.doc_to_target(doc) - - if type(doc_to_target) == str: - return utils.apply_template(doc_to_target, doc) - elif callable(doc_to_target): - return doc_to_target(doc) - elif hasattr(doc_to_target, "apply"): - return doc_to_target.apply(doc)[1] - else: - raise TypeError - def construct_requests( self, doc: dict, ctx: str, **kwargs ) -> Union[List[Instance], Instance]: diff --git a/lm_eval/tasks/gsm8k/gsm8k-cot.yaml b/lm_eval/tasks/gsm8k/gsm8k-cot.yaml index 92555a57..b318eed3 100644 --- a/lm_eval/tasks/gsm8k/gsm8k-cot.yaml +++ b/lm_eval/tasks/gsm8k/gsm8k-cot.yaml @@ -14,17 +14,18 @@ Q: There were nine computers in the server room. Five more computers were instal Q: Michael had 58 golf balls. On tuesday, he lost 23 golf balls. On wednesday, he lost 2 more. How many golf balls did he have at the end of wednesday?\n\nA: Michael started with 58 golf balls. After losing 23 on tuesday, he had 58 - 23 = 35. After losing 2 more, he had 35 - 2 = 33 golf balls. The answer is 33.\n\n\ Q: Olivia has $23. She bought five bagels for $3 each. How much money does she have left?\n\nA: Olivia had 23 dollars. 5 bagels for 3 dollars each will be 5 x 3 = 15 dollars. So she has 23 - 15 dollars left. 23 - 15 is 8. The answer is 8.\n\n\ Q: {{question}}\n\nA:" -doc_to_target: "{{answer}}" #" {{answer.split('### ')[-1].rstrip()}}" -gold_alias: "{{answer.split('### ')[-1].rstrip()}}" # this post-processes the reference that we'll score against +doc_to_target: " {{answer.split('### ')[-1].rstrip()}}" metric_list: - metric: exact_match aggregation: mean higher_is_better: true ignore_case: true + ignore_whitespace: true ignore_punctuation: false regexes_to_ignore: - "," - "\\$" + - ".*### " generation_kwargs: until: - "Q:" diff --git a/lm_eval/tasks/gsm8k/gsm8k.yaml b/lm_eval/tasks/gsm8k/gsm8k.yaml index 124f708d..45c248ae 100644 --- a/lm_eval/tasks/gsm8k/gsm8k.yaml +++ b/lm_eval/tasks/gsm8k/gsm8k.yaml @@ -1,6 +1,6 @@ group: - math_word_problems -task: gsm8k_yaml +task: gsm8k dataset_path: gsm8k dataset_name: main output_type: generate_until @@ -9,12 +9,12 @@ fewshot_split: train test_split: test doc_to_text: "Question: {{question}}\nAnswer:" doc_to_target: "{{answer}}" #" {{answer.split('### ')[-1].rstrip()}}" -gold_alias: "{{answer.split('### ')[-1].rstrip()}}" # this post-processes the reference that we'll score against metric_list: - metric: exact_match aggregation: mean higher_is_better: true ignore_case: true + ignore_whitespace: true ignore_punctuation: false regexes_to_ignore: - "," diff --git a/lm_eval/tasks/hendrycks_ethics/utilitarianism_original_yaml b/lm_eval/tasks/hendrycks_ethics/utilitarianism_original_yaml index a7e712cc..04b433f6 100644 --- a/lm_eval/tasks/hendrycks_ethics/utilitarianism_original_yaml +++ b/lm_eval/tasks/hendrycks_ethics/utilitarianism_original_yaml @@ -9,7 +9,6 @@ # template_aliases: #"{% set answer_choices = range(1, 11)|list %}" # doc_to_text: 'Activity: "{{activity}}"\nRating:' # doc_to_target: "{{answer_choices[label]}}" -# gold_alias: "{{label}}" # this will be cast to an int. # metric_list: # - metric: acc # TODO: we want this to be implemented as a winograd_schema task type, actually diff --git a/lm_eval/tasks/pubmedqa/preprocess_pubmedqa.py b/lm_eval/tasks/pubmedqa/preprocess_pubmedqa.py index 516f0e2f..51c19870 100644 --- a/lm_eval/tasks/pubmedqa/preprocess_pubmedqa.py +++ b/lm_eval/tasks/pubmedqa/preprocess_pubmedqa.py @@ -3,12 +3,3 @@ def doc_to_text(doc) -> str: return "Abstract: {}\nQuestion: {}\nAnswer:".format( ctxs, doc["QUESTION"], doc["final_decision"] ) - - -def doc_to_target(doc) -> str: - return " {}".format(doc["final_decision"]) - - -def gold_alias(doc): - dict_to_label = {"yes": 0, "no": 1, "maybe": 2} - return dict_to_label[doc["final_decision"]] -- GitLab From b9f0d0d38656c5f4260d74585cf9f779d5026960 Mon Sep 17 00:00:00 2001 From: haileyschoelkopf Date: Fri, 3 Nov 2023 16:55:17 +0000 Subject: [PATCH 089/105] make sure gold_alias not in docs --- docs/task_guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/task_guide.md b/docs/task_guide.md index 5d63c15d..30ae038f 100644 --- a/docs/task_guide.md +++ b/docs/task_guide.md @@ -20,12 +20,12 @@ Task naming + registration: Dataset configuration options: - **dataset_path** (`str`) — The name of the dataset as listed by HF in the datasets Hub. -- **dataset_name** (`str`, *optional*, defaults to None) — The name of, what HF calls, a “data instance” or sub-task of the benchmark. If your task does not contain any data instances, just leave this to default to None. (If you're familiar with the HF `datasets.load_dataset` function, these are just the first 2 arguments to it.) +- **dataset_name** (`str`, *optional*, defaults to None) — The name of what HF calls a “data instance” or sub-task of the benchmark. If your task does not contain any data instances, just leave this to default to None. (If you're familiar with the HF `datasets.load_dataset` function, these are just the first 2 arguments to it.) - **dataset_kwargs** (`dict`, *optional*) — Auxiliary arguments that `datasets.load_dataset` accepts. This can be used to specify arguments such as `data_files` or `data_dir` if you want to use local datafiles such as json or csv. - **training_split** (`str`, *optional*) — Split in the dataset to use as the training split. - **validation_split** (`str`, *optional*) — Split in the dataset to use as the validation split. - **test_split** (`str`, *optional*) — Split in the dataset to use as the test split. -- **fewshot_split** (`str`, *optional*) — Split in the dataset to draw few-shot exemplars from. assert that this not None if num_fewshot > 0. (?) assert if this is same split as one evaling (?) +- **fewshot_split** (`str`, *optional*) — Split in the dataset to draw few-shot exemplars from. assert that this not None if num_fewshot > 0. - **process_docs** (`Callable`, *optional*) — Optionally define a function to apply to each HF dataset split, to preprocess all documents before being fed into prompt template rendering or other evaluation steps. Can be used to rename dataset columns, or to process documents into a format closer to the expected format expected by a prompt template. Prompting / in-context formatting options: -- GitLab From 4d9b928ef283a9c83c40f0994d1fc4c4aa448811 Mon Sep 17 00:00:00 2001 From: Hailey Schoelkopf <65563625+haileyschoelkopf@users.noreply.github.com> Date: Fri, 3 Nov 2023 14:03:05 -0400 Subject: [PATCH 090/105] Update _generate_configs.py --- lm_eval/tasks/model_written_evals/persona/_generate_configs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lm_eval/tasks/model_written_evals/persona/_generate_configs.py b/lm_eval/tasks/model_written_evals/persona/_generate_configs.py index 949118f1..a21f2830 100644 --- a/lm_eval/tasks/model_written_evals/persona/_generate_configs.py +++ b/lm_eval/tasks/model_written_evals/persona/_generate_configs.py @@ -4,6 +4,7 @@ import datasets from tqdm import tqdm + def main() -> None: dataset_path = "EleutherAI/persona" -- GitLab From 9f09016db25c09d3e5dff2a0e473f29f6108118e Mon Sep 17 00:00:00 2001 From: Hailey Schoelkopf <65563625+haileyschoelkopf@users.noreply.github.com> Date: Fri, 3 Nov 2023 14:03:40 -0400 Subject: [PATCH 091/105] Update ignore.txt --- ignore.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ignore.txt b/ignore.txt index c93b98d1..de10b539 100644 --- a/ignore.txt +++ b/ignore.txt @@ -5,4 +5,4 @@ maka mor te ond -extraversion \ No newline at end of file +extraversion -- GitLab From 93d088c8461f7a68d91f4985bdd935188c90e178 Mon Sep 17 00:00:00 2001 From: haileyschoelkopf Date: Fri, 3 Nov 2023 18:26:20 +0000 Subject: [PATCH 092/105] fix gsm8k regexes --- lm_eval/tasks/gsm8k/gsm8k-cot.yaml | 6 +++--- lm_eval/tasks/gsm8k/gsm8k.yaml | 15 +++++++-------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/lm_eval/tasks/gsm8k/gsm8k-cot.yaml b/lm_eval/tasks/gsm8k/gsm8k-cot.yaml index b318eed3..71381400 100644 --- a/lm_eval/tasks/gsm8k/gsm8k-cot.yaml +++ b/lm_eval/tasks/gsm8k/gsm8k-cot.yaml @@ -20,12 +20,12 @@ metric_list: aggregation: mean higher_is_better: true ignore_case: true - ignore_whitespace: true ignore_punctuation: false regexes_to_ignore: - "," - "\\$" - - ".*### " + - "(?s).*#### " + - "\n\n" generation_kwargs: until: - "Q:" @@ -38,5 +38,5 @@ filter_list: - name: "get-answer" filter: - function: "regex" - regex_pattern: "The answer is (\\-?[0-9\\.\\,]+)" + regex_pattern: "The answer is (\\-?[0-9\\.\\,]+)." - function: "take_first" diff --git a/lm_eval/tasks/gsm8k/gsm8k.yaml b/lm_eval/tasks/gsm8k/gsm8k.yaml index 45c248ae..9cf16158 100644 --- a/lm_eval/tasks/gsm8k/gsm8k.yaml +++ b/lm_eval/tasks/gsm8k/gsm8k.yaml @@ -14,12 +14,11 @@ metric_list: aggregation: mean higher_is_better: true ignore_case: true - ignore_whitespace: true ignore_punctuation: false regexes_to_ignore: - "," - "\\$" - - ".*### " + - "(?s).*#### " generation_kwargs: until: - "\n\n" @@ -28,9 +27,9 @@ generation_kwargs: temperature: 0.0 repeats: 1 num_fewshot: 5 -# filter_list: -# - name: "get-answer" -# filter: -# - function: "regex" -# regex_pattern: "### (\\-?[0-9\\.\\,]+)" -# - function: "take_first" +filter_list: + - name: "get-answer" + filter: + - function: "regex" + regex_pattern: "#### (\\-?[0-9\\.\\,]+)" + - function: "take_first" -- GitLab From 5f3b8bf668047ce6433c4f93c26a32499c78d992 Mon Sep 17 00:00:00 2001 From: haileyschoelkopf Date: Fri, 3 Nov 2023 19:52:51 +0000 Subject: [PATCH 093/105] fix bug with args.verbose --- lm_eval/__main__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lm_eval/__main__.py b/lm_eval/__main__.py index 5ddc1c4f..aaf98419 100644 --- a/lm_eval/__main__.py +++ b/lm_eval/__main__.py @@ -182,7 +182,6 @@ def cli_evaluate(args: Union[argparse.Namespace, None] = None) -> None: assert args.output_path, "Specify --output_path" eval_logger.info(f"Selected Tasks: {task_names}") - eval_logger.verbose = args.verbose results = evaluator.simple_evaluate( model=args.model, -- GitLab From 1e1dbaf3545277a3ce0e890e36f4f528f6f3139d Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Mon, 6 Nov 2023 09:50:17 +0000 Subject: [PATCH 094/105] remove samples in the table --- lm_eval/evaluator.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lm_eval/evaluator.py b/lm_eval/evaluator.py index 76b2c475..14ca4f5a 100644 --- a/lm_eval/evaluator.py +++ b/lm_eval/evaluator.py @@ -571,6 +571,10 @@ def evaluate( _versions = collections.defaultdict(dict) for task in results_agg: task_results = results_agg[task] + + if "samples" in task_results: + task_results.pop("samples") + tab_string = "" if "tab" in task_results: tab = task_results.pop("tab") @@ -589,6 +593,10 @@ def evaluate( _groups_agg = collections.defaultdict(dict) for group in groups_agg: group_results = groups_agg[group] + + if "samples" in group_results: + group_results.pop("samples") + tab_string = "" if "tab" in group_results: tab = group_results.pop("tab") -- GitLab From 491d479930824577922741330197321fc88cdbb9 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Mon, 6 Nov 2023 09:56:20 +0000 Subject: [PATCH 095/105] reformat --- docs/new_task_guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/new_task_guide.md b/docs/new_task_guide.md index 6b30bfc9..86966be5 100644 --- a/docs/new_task_guide.md +++ b/docs/new_task_guide.md @@ -50,7 +50,7 @@ dataset_kwargs: null # any extra keyword arguments that should be passed to the ``` dataset_path: json dataset_name: null -dataset_kwargs: +dataset_kwargs: data_files: /path/to/my/json ``` ------------------------------- -- GitLab From 98f9bac986d688bddb345a915ba6dc8b712246fe Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Mon, 6 Nov 2023 11:01:16 +0000 Subject: [PATCH 096/105] add brier_score --- lm_eval/api/metrics.py | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/lm_eval/api/metrics.py b/lm_eval/api/metrics.py index 69e66fdc..adf2ce30 100644 --- a/lm_eval/api/metrics.py +++ b/lm_eval/api/metrics.py @@ -7,6 +7,7 @@ import sklearn.metrics import random import evaluate +from Levenshtein import distance from lm_eval.api.registry import register_metric, register_aggregation @@ -106,6 +107,27 @@ def ter(items): return sacrebleu.corpus_ter(preds, refs).score +@register_aggregation("brier_score") +def brier_score(items): # This is a passthrough function + gold = list(zip(*items))[0] + gold_one_hot = np.eye(max(gold)+1)[gold] + predictions = list(zip(*items))[1] + print("predictions", prediction) + print("gold_one_hot", gold_one_hot) + import sys; sys.exit() + return np.mean(np.sum((predictions - gold_one_hot)**2, axis=1)) + + +@register_metric( + metric="brier_score", + higher_is_better=False, + output_type=["multiple_choice"], + aggregation="brier_score", +) +def brier_score_fn(items): # This is a passthrough function + return items + + @register_metric( metric="acc", higher_is_better=True, @@ -139,6 +161,18 @@ def acc_mutual_info_fn(items): # This is a passthrough function exact_match = evaluate.load("exact_match") +# @register_metric( +# metric="token_edit_distance", +# higher_is_better=False, +# output_type=["generate_until"], +# aggregation="mean", +# ) +# def ted_fn(items): # This is a passthrough function + +# references, predictions = items +# return distance(references, predictions) + + @register_metric( metric="exact_match", higher_is_better=True, -- GitLab From a76754ff4b09ad199aa7d5500cb3e3d416205c70 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Mon, 6 Nov 2023 11:01:30 +0000 Subject: [PATCH 097/105] process brier_score --- lm_eval/api/task.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lm_eval/api/task.py b/lm_eval/api/task.py index 883c643d..613e52ae 100644 --- a/lm_eval/api/task.py +++ b/lm_eval/api/task.py @@ -972,7 +972,10 @@ class ConfigurableTask(Task): def process_results(self, doc, results): if callable(self.config.process_results): - return self.config.process_results(doc, results) + try: + return self.config.process_results(self, doc, results) + except: + return self.config.process_results(doc, results) result_dict = {} use_metric = list(self._metric_fn_list.keys()) @@ -1060,12 +1063,15 @@ class ConfigurableTask(Task): # TODO: this gets score of 0 on arc_challenge for pythia-70m. need to test that this works properly exact_match = int(is_greedy[gold]) if gold != -100 else 0 + prob_norm = [float(i)/sum(lls) for i in lls] + result_dict = { **({"acc": acc} if "acc" in use_metric else {}), **({"f1": (gold, pred)} if "f1" in use_metric else {}), **({"mcc": (gold, pred)} if "mcc" in use_metric else {}), **({"acc_norm": acc_norm} if "acc_norm" in use_metric else {}), **({"exact_match": exact_match} if "exact_match" in use_metric else {}), + **({"brier_score": (gold, prob_norm)} if "brier_score" in use_metric else {}), } if "acc_mutual_info" in use_metric: -- GitLab From d49636a3025e9d3f2d020019c07276758fabb479 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Mon, 6 Nov 2023 11:12:17 +0000 Subject: [PATCH 098/105] brier score is working for N-sized class --- lm_eval/api/metrics.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lm_eval/api/metrics.py b/lm_eval/api/metrics.py index adf2ce30..0f36435c 100644 --- a/lm_eval/api/metrics.py +++ b/lm_eval/api/metrics.py @@ -109,12 +109,10 @@ def ter(items): @register_aggregation("brier_score") def brier_score(items): # This is a passthrough function - gold = list(zip(*items))[0] - gold_one_hot = np.eye(max(gold)+1)[gold] + gold, predictions = list(zip(*items)) + gold = list(gold) + gold_one_hot = np.eye(np.max(gold)+1)[gold] predictions = list(zip(*items))[1] - print("predictions", prediction) - print("gold_one_hot", gold_one_hot) - import sys; sys.exit() return np.mean(np.sum((predictions - gold_one_hot)**2, axis=1)) -- GitLab From 44124d95a25195da0a3d129dddabb37c43ba5ce2 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Mon, 6 Nov 2023 13:08:33 +0000 Subject: [PATCH 099/105] add space after - --- lm_eval/evaluator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lm_eval/evaluator.py b/lm_eval/evaluator.py index 14ca4f5a..6b951ef2 100644 --- a/lm_eval/evaluator.py +++ b/lm_eval/evaluator.py @@ -578,7 +578,7 @@ def evaluate( tab_string = "" if "tab" in task_results: tab = task_results.pop("tab") - tab_string = " " * tab + "-" if tab > 0 else "" + tab_string = " " * tab + "- " if tab > 0 else "" if task in task_group_alias: task_alias = task_group_alias[task] @@ -600,7 +600,7 @@ def evaluate( tab_string = "" if "tab" in group_results: tab = group_results.pop("tab") - tab_string = " " * tab + "-" if tab > 0 else "" + tab_string = " " * tab + "- " if tab > 0 else "" if group in task_group_alias: group_alias = task_group_alias[group] -- GitLab From 5cc65a798a6348779bfe0854e7cb1e449a79228f Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Mon, 6 Nov 2023 16:25:30 +0000 Subject: [PATCH 100/105] fxied brier score --- lm_eval/api/metrics.py | 12 ------------ lm_eval/api/task.py | 4 +++- lm_eval/utils.py | 7 +++++++ 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/lm_eval/api/metrics.py b/lm_eval/api/metrics.py index 0f36435c..16e2b189 100644 --- a/lm_eval/api/metrics.py +++ b/lm_eval/api/metrics.py @@ -159,18 +159,6 @@ def acc_mutual_info_fn(items): # This is a passthrough function exact_match = evaluate.load("exact_match") -# @register_metric( -# metric="token_edit_distance", -# higher_is_better=False, -# output_type=["generate_until"], -# aggregation="mean", -# ) -# def ted_fn(items): # This is a passthrough function - -# references, predictions = items -# return distance(references, predictions) - - @register_metric( metric="exact_match", higher_is_better=True, diff --git a/lm_eval/api/task.py b/lm_eval/api/task.py index 613e52ae..dbcd50dc 100644 --- a/lm_eval/api/task.py +++ b/lm_eval/api/task.py @@ -1063,8 +1063,10 @@ class ConfigurableTask(Task): # TODO: this gets score of 0 on arc_challenge for pythia-70m. need to test that this works properly exact_match = int(is_greedy[gold]) if gold != -100 else 0 - prob_norm = [float(i)/sum(lls) for i in lls] + prob_norm = utils.softmax(lls) + # TODO use keyword arguments to the metric? + # gold, pred, norm stuff, the original lls, result_dict = { **({"acc": acc} if "acc" in use_metric else {}), **({"f1": (gold, pred)} if "f1" in use_metric else {}), diff --git a/lm_eval/utils.py b/lm_eval/utils.py index d246470a..514e49f4 100644 --- a/lm_eval/utils.py +++ b/lm_eval/utils.py @@ -15,6 +15,7 @@ from typing import Iterator, List, Literal, Union import gc import torch import transformers +import numpy as np from jinja2 import BaseLoader, Environment, StrictUndefined from itertools import islice @@ -127,6 +128,12 @@ def pattern_match(patterns, source_list): return sorted(list(task_names)) +def softmax(x): + """Compute softmax values for each sets of scores in x.""" + e_x = np.exp(x - np.max(x)) + return e_x / e_x.sum() + + def general_detokenize(string): string = string.replace(" n't", "n't") string = string.replace(" )", ")") -- GitLab From 2b7d8c2da5d6cb2acb6bf117c420e9402c24ade7 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Tue, 7 Nov 2023 02:13:22 +0000 Subject: [PATCH 101/105] add TED to BigBench and Brier score to MMLU --- lm_eval/tasks/bigbench/aux_metric.py | 10 ++++++++++ lm_eval/tasks/bigbench/generate_until_template_yaml | 5 ++++- lm_eval/tasks/mmlu/default/_default_template_yaml | 3 +++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 lm_eval/tasks/bigbench/aux_metric.py diff --git a/lm_eval/tasks/bigbench/aux_metric.py b/lm_eval/tasks/bigbench/aux_metric.py new file mode 100644 index 00000000..4a92c41e --- /dev/null +++ b/lm_eval/tasks/bigbench/aux_metric.py @@ -0,0 +1,10 @@ +from textdistance import levenshtein +from transformers import AutoTokenizer + +# Change this tokenizer to fit with the model you are using. +tokenizer = AutoTokenizer.from_pretrained("EleutherAI/pythia-2.8b") + +def token_edit_distance(references, predictions, **kwargs): + ref_tokens = tokenizer.encode(references[0]) + pred_tokens = tokenizer.encode(predictions[0]) + return levenshtein.distance(ref_tokens, pred_tokens) diff --git a/lm_eval/tasks/bigbench/generate_until_template_yaml b/lm_eval/tasks/bigbench/generate_until_template_yaml index ebce0377..99f44525 100644 --- a/lm_eval/tasks/bigbench/generate_until_template_yaml +++ b/lm_eval/tasks/bigbench/generate_until_template_yaml @@ -1,5 +1,5 @@ group: bigbench -dataset_path: bigbench # will switch to `hails/bigbench` when all tasks are pushed +dataset_path: hails/bigbench # will switch to `hails/bigbench` when all tasks are pushed output_type: generate_until dataset_kwargs: # num_shots: 0 # TODO: num of shots for `bigbench` HF dataset should be controlled through this, not through the typical methods @@ -14,3 +14,6 @@ metric_list: aggregation: mean higher_is_better: true ignore_punctuation: true + - metric: !function aux_metric.token_edit_distance # pip install textdistance + aggregation: mean + higher_is_better: false \ No newline at end of file diff --git a/lm_eval/tasks/mmlu/default/_default_template_yaml b/lm_eval/tasks/mmlu/default/_default_template_yaml index af4bf12c..e24cb508 100644 --- a/lm_eval/tasks/mmlu/default/_default_template_yaml +++ b/lm_eval/tasks/mmlu/default/_default_template_yaml @@ -15,3 +15,6 @@ metric_list: - metric: acc_norm aggregation: mean higher_is_better: true + - metric: brier_score + aggregation: mean + higher_is_better: false \ No newline at end of file -- GitLab From 0a39d0556e0724314fe758cf251142db10a6d3e0 Mon Sep 17 00:00:00 2001 From: lintangsutawika Date: Tue, 7 Nov 2023 02:23:46 +0000 Subject: [PATCH 102/105] format --- docs/new_task_guide.md | 2 +- lm_eval/api/metrics.py | 4 ++-- lm_eval/api/task.py | 8 ++++++-- lm_eval/tasks/bigbench/aux_metric.py | 6 +++++- lm_eval/tasks/bigbench/generate_until_template_yaml | 2 +- lm_eval/tasks/mmlu/default/_default_template_yaml | 2 +- 6 files changed, 16 insertions(+), 8 deletions(-) diff --git a/docs/new_task_guide.md b/docs/new_task_guide.md index 6b30bfc9..86966be5 100644 --- a/docs/new_task_guide.md +++ b/docs/new_task_guide.md @@ -50,7 +50,7 @@ dataset_kwargs: null # any extra keyword arguments that should be passed to the ``` dataset_path: json dataset_name: null -dataset_kwargs: +dataset_kwargs: data_files: /path/to/my/json ``` ------------------------------- diff --git a/lm_eval/api/metrics.py b/lm_eval/api/metrics.py index 16e2b189..f1f544c9 100644 --- a/lm_eval/api/metrics.py +++ b/lm_eval/api/metrics.py @@ -111,9 +111,9 @@ def ter(items): def brier_score(items): # This is a passthrough function gold, predictions = list(zip(*items)) gold = list(gold) - gold_one_hot = np.eye(np.max(gold)+1)[gold] + gold_one_hot = np.eye(np.max(gold) + 1)[gold] predictions = list(zip(*items))[1] - return np.mean(np.sum((predictions - gold_one_hot)**2, axis=1)) + return np.mean(np.sum((predictions - gold_one_hot) ** 2, axis=1)) @register_metric( diff --git a/lm_eval/api/task.py b/lm_eval/api/task.py index dbcd50dc..b699ca12 100644 --- a/lm_eval/api/task.py +++ b/lm_eval/api/task.py @@ -1066,14 +1066,18 @@ class ConfigurableTask(Task): prob_norm = utils.softmax(lls) # TODO use keyword arguments to the metric? - # gold, pred, norm stuff, the original lls, + # gold, pred, norm stuff, the original lls, result_dict = { **({"acc": acc} if "acc" in use_metric else {}), **({"f1": (gold, pred)} if "f1" in use_metric else {}), **({"mcc": (gold, pred)} if "mcc" in use_metric else {}), **({"acc_norm": acc_norm} if "acc_norm" in use_metric else {}), **({"exact_match": exact_match} if "exact_match" in use_metric else {}), - **({"brier_score": (gold, prob_norm)} if "brier_score" in use_metric else {}), + **( + {"brier_score": (gold, prob_norm)} + if "brier_score" in use_metric + else {} + ), } if "acc_mutual_info" in use_metric: diff --git a/lm_eval/tasks/bigbench/aux_metric.py b/lm_eval/tasks/bigbench/aux_metric.py index 4a92c41e..bd87fbec 100644 --- a/lm_eval/tasks/bigbench/aux_metric.py +++ b/lm_eval/tasks/bigbench/aux_metric.py @@ -2,9 +2,13 @@ from textdistance import levenshtein from transformers import AutoTokenizer # Change this tokenizer to fit with the model you are using. -tokenizer = AutoTokenizer.from_pretrained("EleutherAI/pythia-2.8b") +tokenizer = AutoTokenizer.from_pretrained("EleutherAI/pythia-2.8b", max_new_tokens=128) + def token_edit_distance(references, predictions, **kwargs): + print(references) + print(predictions) + print("###") ref_tokens = tokenizer.encode(references[0]) pred_tokens = tokenizer.encode(predictions[0]) return levenshtein.distance(ref_tokens, pred_tokens) diff --git a/lm_eval/tasks/bigbench/generate_until_template_yaml b/lm_eval/tasks/bigbench/generate_until_template_yaml index 99f44525..9e6b5265 100644 --- a/lm_eval/tasks/bigbench/generate_until_template_yaml +++ b/lm_eval/tasks/bigbench/generate_until_template_yaml @@ -16,4 +16,4 @@ metric_list: ignore_punctuation: true - metric: !function aux_metric.token_edit_distance # pip install textdistance aggregation: mean - higher_is_better: false \ No newline at end of file + higher_is_better: false diff --git a/lm_eval/tasks/mmlu/default/_default_template_yaml b/lm_eval/tasks/mmlu/default/_default_template_yaml index e24cb508..4e017ff6 100644 --- a/lm_eval/tasks/mmlu/default/_default_template_yaml +++ b/lm_eval/tasks/mmlu/default/_default_template_yaml @@ -17,4 +17,4 @@ metric_list: higher_is_better: true - metric: brier_score aggregation: mean - higher_is_better: false \ No newline at end of file + higher_is_better: false -- GitLab From 59b5471c9bb832d056bd1d2668798a822a66f322 Mon Sep 17 00:00:00 2001 From: Lintang Sutawika Date: Wed, 8 Nov 2023 11:02:06 +0700 Subject: [PATCH 103/105] Update metrics.py --- lm_eval/api/metrics.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lm_eval/api/metrics.py b/lm_eval/api/metrics.py index f1f544c9..be4d6f0b 100644 --- a/lm_eval/api/metrics.py +++ b/lm_eval/api/metrics.py @@ -7,7 +7,6 @@ import sklearn.metrics import random import evaluate -from Levenshtein import distance from lm_eval.api.registry import register_metric, register_aggregation -- GitLab From 66b3c3a2e50d45ca6c1ecc7f35f4c702ca7b3040 Mon Sep 17 00:00:00 2001 From: Lintang Sutawika Date: Wed, 8 Nov 2023 11:02:41 +0700 Subject: [PATCH 104/105] Update task.py --- lm_eval/api/task.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lm_eval/api/task.py b/lm_eval/api/task.py index eac914ce..c35808d7 100644 --- a/lm_eval/api/task.py +++ b/lm_eval/api/task.py @@ -953,10 +953,7 @@ class ConfigurableTask(Task): def process_results(self, doc, results): if callable(self.config.process_results): - try: - return self.config.process_results(self, doc, results) - except: - return self.config.process_results(doc, results) + return self.config.process_results(doc, results) result_dict = {} use_metric = list(self._metric_fn_list.keys()) -- GitLab From 1522009c6d9b05bd0aae2e83d6ce7b7418affc5e Mon Sep 17 00:00:00 2001 From: Lintang Sutawika Date: Wed, 8 Nov 2023 11:03:16 +0700 Subject: [PATCH 105/105] Update generate_until_template_yaml --- lm_eval/tasks/bigbench/generate_until_template_yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lm_eval/tasks/bigbench/generate_until_template_yaml b/lm_eval/tasks/bigbench/generate_until_template_yaml index 9e6b5265..2e4db21f 100644 --- a/lm_eval/tasks/bigbench/generate_until_template_yaml +++ b/lm_eval/tasks/bigbench/generate_until_template_yaml @@ -1,5 +1,5 @@ group: bigbench -dataset_path: hails/bigbench # will switch to `hails/bigbench` when all tasks are pushed +dataset_path: bigbench # will switch to `hails/bigbench` when all tasks are pushed output_type: generate_until dataset_kwargs: # num_shots: 0 # TODO: num of shots for `bigbench` HF dataset should be controlled through this, not through the typical methods -- GitLab