diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Russian/include_base_44_russian_health_oriented_education.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Russian/include_base_44_russian_health_oriented_education.yaml new file mode 100644 index 0000000000000000000000000000000000000000..09a6b2aacdca9a615a168042ff3a8ec55c705213 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Russian/include_base_44_russian_health_oriented_education.yaml @@ -0,0 +1,5 @@ +include: _russian_few_shot_og_template_yaml +description: Ниже приведены вопросы с несколькими вариантами ответов (с ответами) + по теме Health oriented education. +process_docs: !function 'utils.process_health_oriented_education' +task: include_base_44_russian_few_shot_og_health_oriented_education diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Russian/include_base_44_russian_social_science.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Russian/include_base_44_russian_social_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..970b4699fa085f8e2e7cad8cba90382226498060 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Russian/include_base_44_russian_social_science.yaml @@ -0,0 +1,5 @@ +include: _russian_few_shot_og_template_yaml +description: Ниже приведены вопросы с несколькими вариантами ответов (с ответами) + по теме Social Science. +process_docs: !function 'utils.process_social_science' +task: include_base_44_russian_few_shot_og_social_science diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Spanish/_include_base_44_spanish.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Spanish/_include_base_44_spanish.yaml new file mode 100644 index 0000000000000000000000000000000000000000..16ae0c49894bbb7cf3cfe6da26bf7ed4a67641b5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Spanish/_include_base_44_spanish.yaml @@ -0,0 +1,11 @@ +group: include_base_44_spanish +task: +- include_base_44_spanish_few_shot_og_stem +- include_base_44_spanish_few_shot_og_social_science +- include_base_44_spanish_few_shot_og_arts_humanities +- include_base_44_spanish_few_shot_og_health_oriented_education +aggregate_metric_list: +- metric: acc + weight_by_size: true +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Spanish/include_base_44_spanish_arts_humanities.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Spanish/include_base_44_spanish_arts_humanities.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9eafc262f239b55adc8041a926fc9c43bde6acad --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Spanish/include_base_44_spanish_arts_humanities.yaml @@ -0,0 +1,5 @@ +include: _spanish_few_shot_og_template_yaml +description: Las siguientes son preguntas de opción múltiple (con respuestas) sobre + Arts & Humanities. +process_docs: !function 'utils.process_arts_humanities' +task: include_base_44_spanish_few_shot_og_arts_humanities diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Spanish/include_base_44_spanish_social_science.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Spanish/include_base_44_spanish_social_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b46b0bf8f8fbbb55bb5e3ff421dff3d223e8a8a7 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Spanish/include_base_44_spanish_social_science.yaml @@ -0,0 +1,5 @@ +include: _spanish_few_shot_og_template_yaml +description: Las siguientes son preguntas de opción múltiple (con respuestas) sobre + Social Science. +process_docs: !function 'utils.process_social_science' +task: include_base_44_spanish_few_shot_og_social_science diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Spanish/include_base_44_spanish_stem.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Spanish/include_base_44_spanish_stem.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b0a2fd12dc464dfed5d84aa40d00cd2878096385 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Spanish/include_base_44_spanish_stem.yaml @@ -0,0 +1,5 @@ +include: _spanish_few_shot_og_template_yaml +description: Las siguientes son preguntas de opción múltiple (con respuestas) sobre + STEM. +process_docs: !function 'utils.process_stem' +task: include_base_44_spanish_few_shot_og_stem diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Spanish/utils.py b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Spanish/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..fde670c6bf543691c37830a7d87869023c70e447 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Spanish/utils.py @@ -0,0 +1,30 @@ +from functools import partial + + +CATEGORIES = [ + "Applied Science", + "Arts & Humanities", + "Business & Commerce", + "Driving License", + "General knowledge", + "Health oriented education", + "Marine License", + "Medical License", + "Professional certification", + "STEM", + "Social Science", +] + + +def process_docs(dataset, category): + return dataset.filter(lambda x: x["domain"] == category) + + +process_functions = { + f"process_{category.lower().replace(' & ', '_').replace(' ', '_')}": partial( + process_docs, category=category + ) + for category in CATEGORIES +} + +globals().update(process_functions) diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Tagalog/_include_base_44_tagalog.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Tagalog/_include_base_44_tagalog.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ff41167d21e4f13d932b86c6687e73a230b9353c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Tagalog/_include_base_44_tagalog.yaml @@ -0,0 +1,9 @@ +group: include_base_44_tagalog +task: +- include_base_44_tagalog_few_shot_og_arts_humanities +- include_base_44_tagalog_few_shot_og_driving_license +aggregate_metric_list: +- metric: acc + weight_by_size: true +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Tagalog/_tagalog_few_shot_og_template_yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Tagalog/_tagalog_few_shot_og_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..88040e14d6f83717a48e22ed67c728bd2951f3c5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Tagalog/_tagalog_few_shot_og_template_yaml @@ -0,0 +1,18 @@ +dataset_path: CohereForAI/include-base-44 +dataset_name: Tagalog +test_split: test +output_type: multiple_choice +doc_to_text: "{{question.strip()}}\nA. {{option_a}}\nB. {{option_b}}\nC. {{option_c}}\n + D. {{option_d}}\nAnswer:" +doc_to_choice: + - A + - B + - C + - D +doc_to_target: answer +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Tamil/_include_base_44_tamil.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Tamil/_include_base_44_tamil.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7930ef5065ec500d8617c143db14034be12e9e3e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Tamil/_include_base_44_tamil.yaml @@ -0,0 +1,9 @@ +group: include_base_44_tamil +task: +- include_base_44_tamil_few_shot_og_stem +- include_base_44_tamil_few_shot_og_general_knowledge +aggregate_metric_list: +- metric: acc + weight_by_size: true +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Tamil/_tamil_few_shot_og_template_yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Tamil/_tamil_few_shot_og_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..a659e689aab175e000cb61b4c6ee93743b18306c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Tamil/_tamil_few_shot_og_template_yaml @@ -0,0 +1,18 @@ +dataset_path: CohereForAI/include-base-44 +dataset_name: Tamil +test_split: test +output_type: multiple_choice +doc_to_text: "{{question.strip()}}\nA. {{option_a}}\nB. {{option_b}}\nC. {{option_c}}\n + D. {{option_d}}\nAnswer:" +doc_to_choice: + - A + - B + - C + - D +doc_to_target: answer +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Tamil/include_base_44_tamil_general_knowledge.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Tamil/include_base_44_tamil_general_knowledge.yaml new file mode 100644 index 0000000000000000000000000000000000000000..950cd8eb2b039327668b27dcd6ba12d0846201e6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Tamil/include_base_44_tamil_general_knowledge.yaml @@ -0,0 +1,5 @@ +include: _tamil_few_shot_og_template_yaml +description: பின்வருபவை General knowledge பற்றிய பல தேர்வு கேள்விகள் (பதில்களுடன்) + உள்ளன. +process_docs: !function 'utils.process_general_knowledge' +task: include_base_44_tamil_few_shot_og_general_knowledge diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Tamil/include_base_44_tamil_stem.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Tamil/include_base_44_tamil_stem.yaml new file mode 100644 index 0000000000000000000000000000000000000000..84c4b01e16c283ff73d37edc2a5200dc56ea8707 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Tamil/include_base_44_tamil_stem.yaml @@ -0,0 +1,4 @@ +include: _tamil_few_shot_og_template_yaml +description: பின்வருபவை STEM பற்றிய பல தேர்வு கேள்விகள் (பதில்களுடன்) உள்ளன. +process_docs: !function 'utils.process_stem' +task: include_base_44_tamil_few_shot_og_stem diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Tamil/utils.py b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Tamil/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..fde670c6bf543691c37830a7d87869023c70e447 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Tamil/utils.py @@ -0,0 +1,30 @@ +from functools import partial + + +CATEGORIES = [ + "Applied Science", + "Arts & Humanities", + "Business & Commerce", + "Driving License", + "General knowledge", + "Health oriented education", + "Marine License", + "Medical License", + "Professional certification", + "STEM", + "Social Science", +] + + +def process_docs(dataset, category): + return dataset.filter(lambda x: x["domain"] == category) + + +process_functions = { + f"process_{category.lower().replace(' & ', '_').replace(' ', '_')}": partial( + process_docs, category=category + ) + for category in CATEGORIES +} + +globals().update(process_functions) diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Telugu/_include_base_44_telugu.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Telugu/_include_base_44_telugu.yaml new file mode 100644 index 0000000000000000000000000000000000000000..195ea8ac0b5f76ccd07751c095c9fc738b300149 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Telugu/_include_base_44_telugu.yaml @@ -0,0 +1,11 @@ +group: include_base_44_telugu +task: +- include_base_44_telugu_few_shot_og_arts_humanities +- include_base_44_telugu_few_shot_og_applied_science +- include_base_44_telugu_few_shot_og_stem +- include_base_44_telugu_few_shot_og_social_science +aggregate_metric_list: +- metric: acc + weight_by_size: true +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Telugu/_telugu_few_shot_og_template_yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Telugu/_telugu_few_shot_og_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..e6b1889ba37a23b0e7ff00d5176185bec2e33122 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Telugu/_telugu_few_shot_og_template_yaml @@ -0,0 +1,18 @@ +dataset_path: CohereForAI/include-base-44 +dataset_name: Telugu +test_split: test +output_type: multiple_choice +doc_to_text: "{{question.strip()}}\nA. {{option_a}}\nB. {{option_b}}\nC. {{option_c}}\n + D. {{option_d}}\nAnswer:" +doc_to_choice: + - A + - B + - C + - D +doc_to_target: answer +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Telugu/include_base_44_telugu_applied_science.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Telugu/include_base_44_telugu_applied_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..dd2fb33e423643354319e73259e5d84dc6dd41ef --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Telugu/include_base_44_telugu_applied_science.yaml @@ -0,0 +1,4 @@ +include: _telugu_few_shot_og_template_yaml +description: Applied Science గురించిన బహుళ-ఎంపిక ప్రశ్నలు (సమాధానాలతో) క్రిందివి. +process_docs: !function 'utils.process_applied_science' +task: include_base_44_telugu_few_shot_og_applied_science diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Telugu/include_base_44_telugu_arts_humanities.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Telugu/include_base_44_telugu_arts_humanities.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f66dc746e6702bd73892d2d7f04f05dd91d1931f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Telugu/include_base_44_telugu_arts_humanities.yaml @@ -0,0 +1,4 @@ +include: _telugu_few_shot_og_template_yaml +description: Arts & Humanities గురించిన బహుళ-ఎంపిక ప్రశ్నలు (సమాధానాలతో) క్రిందివి. +process_docs: !function 'utils.process_arts_humanities' +task: include_base_44_telugu_few_shot_og_arts_humanities diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Telugu/include_base_44_telugu_social_science.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Telugu/include_base_44_telugu_social_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..93d60f3443dbd384aec8094f01c9fd6b9a484271 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Telugu/include_base_44_telugu_social_science.yaml @@ -0,0 +1,4 @@ +include: _telugu_few_shot_og_template_yaml +description: Social Science గురించిన బహుళ-ఎంపిక ప్రశ్నలు (సమాధానాలతో) క్రిందివి. +process_docs: !function 'utils.process_social_science' +task: include_base_44_telugu_few_shot_og_social_science diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Telugu/include_base_44_telugu_stem.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Telugu/include_base_44_telugu_stem.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e3fc3f30a2c2bb2811807cdcee4c09ca5599f6e6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Telugu/include_base_44_telugu_stem.yaml @@ -0,0 +1,4 @@ +include: _telugu_few_shot_og_template_yaml +description: STEM గురించిన బహుళ-ఎంపిక ప్రశ్నలు (సమాధానాలతో) క్రిందివి. +process_docs: !function 'utils.process_stem' +task: include_base_44_telugu_few_shot_og_stem diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Telugu/utils.py b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Telugu/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..fde670c6bf543691c37830a7d87869023c70e447 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Telugu/utils.py @@ -0,0 +1,30 @@ +from functools import partial + + +CATEGORIES = [ + "Applied Science", + "Arts & Humanities", + "Business & Commerce", + "Driving License", + "General knowledge", + "Health oriented education", + "Marine License", + "Medical License", + "Professional certification", + "STEM", + "Social Science", +] + + +def process_docs(dataset, category): + return dataset.filter(lambda x: x["domain"] == category) + + +process_functions = { + f"process_{category.lower().replace(' & ', '_').replace(' ', '_')}": partial( + process_docs, category=category + ) + for category in CATEGORIES +} + +globals().update(process_functions) diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Turkish/_include_base_44_turkish.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Turkish/_include_base_44_turkish.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e81428e80c146cb3e125c704df2abf7998e1cd7a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Turkish/_include_base_44_turkish.yaml @@ -0,0 +1,11 @@ +group: include_base_44_turkish +task: +- include_base_44_turkish_few_shot_og_business_commerce +- include_base_44_turkish_few_shot_og_stem +- include_base_44_turkish_few_shot_og_arts_humanities +- include_base_44_turkish_few_shot_og_social_science +aggregate_metric_list: +- metric: acc + weight_by_size: true +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Turkish/_turkish_few_shot_og_template_yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Turkish/_turkish_few_shot_og_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..1f42709007eddc3b172eea6f017ff24a0181b78c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Turkish/_turkish_few_shot_og_template_yaml @@ -0,0 +1,18 @@ +dataset_path: CohereForAI/include-base-44 +dataset_name: Turkish +test_split: test +output_type: multiple_choice +doc_to_text: "{{question.strip()}}\nA. {{option_a}}\nB. {{option_b}}\nC. {{option_c}}\n + D. {{option_d}}\nAnswer:" +doc_to_choice: + - A + - B + - C + - D +doc_to_target: answer +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Turkish/include_base_44_turkish_arts_humanities.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Turkish/include_base_44_turkish_arts_humanities.yaml new file mode 100644 index 0000000000000000000000000000000000000000..47444e85dbeffbed24362bb3dd121843116e8664 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Turkish/include_base_44_turkish_arts_humanities.yaml @@ -0,0 +1,5 @@ +include: _turkish_few_shot_og_template_yaml +description: Aşağıda Arts & Humanities ile ilgili çoktan seçmeli sorular (cevaplarıyla + birlikte) bulunmaktadır. +process_docs: !function 'utils.process_arts_humanities' +task: include_base_44_turkish_few_shot_og_arts_humanities diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Turkish/include_base_44_turkish_business_commerce.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Turkish/include_base_44_turkish_business_commerce.yaml new file mode 100644 index 0000000000000000000000000000000000000000..78d1de9c835c7c9d50b09810ec171acf98b1eef4 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Turkish/include_base_44_turkish_business_commerce.yaml @@ -0,0 +1,5 @@ +include: _turkish_few_shot_og_template_yaml +description: Aşağıda Business & Commerce ile ilgili çoktan seçmeli sorular (cevaplarıyla + birlikte) bulunmaktadır. +process_docs: !function 'utils.process_business_commerce' +task: include_base_44_turkish_few_shot_og_business_commerce diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Turkish/include_base_44_turkish_social_science.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Turkish/include_base_44_turkish_social_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2ce0ba27dd99ecc7b261aaebfc0d83a9e001eb9f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Turkish/include_base_44_turkish_social_science.yaml @@ -0,0 +1,5 @@ +include: _turkish_few_shot_og_template_yaml +description: Aşağıda Social Science ile ilgili çoktan seçmeli sorular (cevaplarıyla + birlikte) bulunmaktadır. +process_docs: !function 'utils.process_social_science' +task: include_base_44_turkish_few_shot_og_social_science diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Turkish/include_base_44_turkish_stem.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Turkish/include_base_44_turkish_stem.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9db2c1392f01105665cd1fbe6bb293e62d347df9 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Turkish/include_base_44_turkish_stem.yaml @@ -0,0 +1,5 @@ +include: _turkish_few_shot_og_template_yaml +description: Aşağıda STEM ile ilgili çoktan seçmeli sorular (cevaplarıyla birlikte) + bulunmaktadır. +process_docs: !function 'utils.process_stem' +task: include_base_44_turkish_few_shot_og_stem diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Turkish/utils.py b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Turkish/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..fde670c6bf543691c37830a7d87869023c70e447 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Turkish/utils.py @@ -0,0 +1,30 @@ +from functools import partial + + +CATEGORIES = [ + "Applied Science", + "Arts & Humanities", + "Business & Commerce", + "Driving License", + "General knowledge", + "Health oriented education", + "Marine License", + "Medical License", + "Professional certification", + "STEM", + "Social Science", +] + + +def process_docs(dataset, category): + return dataset.filter(lambda x: x["domain"] == category) + + +process_functions = { + f"process_{category.lower().replace(' & ', '_').replace(' ', '_')}": partial( + process_docs, category=category + ) + for category in CATEGORIES +} + +globals().update(process_functions) diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Ukrainian/_include_base_44_ukrainian.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Ukrainian/_include_base_44_ukrainian.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6007a871845c05f42480d603de2a1963c9eaaafc --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Ukrainian/_include_base_44_ukrainian.yaml @@ -0,0 +1,10 @@ +group: include_base_44_ukrainian +task: +- include_base_44_ukrainian_few_shot_og_arts_humanities +- include_base_44_ukrainian_few_shot_og_social_science +- include_base_44_ukrainian_few_shot_og_stem +aggregate_metric_list: +- metric: acc + weight_by_size: true +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Ukrainian/_ukrainian_few_shot_og_template_yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Ukrainian/_ukrainian_few_shot_og_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..0f4de1f22b7ef6cefa31a2c4c0efdada5e01c1ca --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Ukrainian/_ukrainian_few_shot_og_template_yaml @@ -0,0 +1,18 @@ +dataset_path: CohereForAI/include-base-44 +dataset_name: Ukrainian +test_split: test +output_type: multiple_choice +doc_to_text: "{{question.strip()}}\nA. {{option_a}}\nB. {{option_b}}\nC. {{option_c}}\n + D. {{option_d}}\nAnswer:" +doc_to_choice: + - A + - B + - C + - D +doc_to_target: answer +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Ukrainian/include_base_44_ukrainian_arts_humanities.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Ukrainian/include_base_44_ukrainian_arts_humanities.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5761828c87113420f7bdb915a0d30bd302c6fbaa --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Ukrainian/include_base_44_ukrainian_arts_humanities.yaml @@ -0,0 +1,5 @@ +include: _ukrainian_few_shot_og_template_yaml +description: Нижче наведено запитання з кількома варіантами відповідей (з відповідями) + про Arts & Humanities. +process_docs: !function 'utils.process_arts_humanities' +task: include_base_44_ukrainian_few_shot_og_arts_humanities diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Ukrainian/include_base_44_ukrainian_social_science.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Ukrainian/include_base_44_ukrainian_social_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1eaf2f7badc4ea6b005db44c36cacea0ef938f2f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Ukrainian/include_base_44_ukrainian_social_science.yaml @@ -0,0 +1,5 @@ +include: _ukrainian_few_shot_og_template_yaml +description: Нижче наведено запитання з кількома варіантами відповідей (з відповідями) + про Social Science. +process_docs: !function 'utils.process_social_science' +task: include_base_44_ukrainian_few_shot_og_social_science diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Ukrainian/include_base_44_ukrainian_stem.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Ukrainian/include_base_44_ukrainian_stem.yaml new file mode 100644 index 0000000000000000000000000000000000000000..16e78eee4dc9f421beb5452bf93d18b029d24e9d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Ukrainian/include_base_44_ukrainian_stem.yaml @@ -0,0 +1,5 @@ +include: _ukrainian_few_shot_og_template_yaml +description: Нижче наведено запитання з кількома варіантами відповідей (з відповідями) + про STEM. +process_docs: !function 'utils.process_stem' +task: include_base_44_ukrainian_few_shot_og_stem diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Ukrainian/utils.py b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Ukrainian/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..fde670c6bf543691c37830a7d87869023c70e447 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Ukrainian/utils.py @@ -0,0 +1,30 @@ +from functools import partial + + +CATEGORIES = [ + "Applied Science", + "Arts & Humanities", + "Business & Commerce", + "Driving License", + "General knowledge", + "Health oriented education", + "Marine License", + "Medical License", + "Professional certification", + "STEM", + "Social Science", +] + + +def process_docs(dataset, category): + return dataset.filter(lambda x: x["domain"] == category) + + +process_functions = { + f"process_{category.lower().replace(' & ', '_').replace(' ', '_')}": partial( + process_docs, category=category + ) + for category in CATEGORIES +} + +globals().update(process_functions) diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Urdu/_include_base_44_urdu.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Urdu/_include_base_44_urdu.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6da02725a7f4bfa751de0e3af471812ba2d005d3 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Urdu/_include_base_44_urdu.yaml @@ -0,0 +1,10 @@ +group: include_base_44_urdu +task: +- include_base_44_urdu_few_shot_og_stem +- include_base_44_urdu_few_shot_og_health_oriented_education +- include_base_44_urdu_few_shot_og_arts_humanities +aggregate_metric_list: +- metric: acc + weight_by_size: true +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Urdu/_urdu_few_shot_og_template_yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Urdu/_urdu_few_shot_og_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..1bf9d03a730d66365c4b6b6dc4f92908b4b08963 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Urdu/_urdu_few_shot_og_template_yaml @@ -0,0 +1,18 @@ +dataset_path: CohereForAI/include-base-44 +dataset_name: Urdu +test_split: test +output_type: multiple_choice +doc_to_text: "{{question.strip()}}\nA. {{option_a}}\nB. {{option_b}}\nC. {{option_c}}\n + D. {{option_d}}\nAnswer:" +doc_to_choice: + - A + - B + - C + - D +doc_to_target: answer +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Urdu/include_base_44_urdu_arts_humanities.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Urdu/include_base_44_urdu_arts_humanities.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e31852eed735c8d276ea551b012bcf1c4975d67d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Urdu/include_base_44_urdu_arts_humanities.yaml @@ -0,0 +1,5 @@ +include: _urdu_few_shot_og_template_yaml +description: ذیل میں Arts & Humanities کے بارے میں متعدد انتخابی سوالات (جوابات کے + ساتھ) ہیں۔ +process_docs: !function 'utils.process_arts_humanities' +task: include_base_44_urdu_few_shot_og_arts_humanities diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Urdu/include_base_44_urdu_health_oriented_education.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Urdu/include_base_44_urdu_health_oriented_education.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7071284fa40c80cafd727bd7be2e1a688a508c12 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Urdu/include_base_44_urdu_health_oriented_education.yaml @@ -0,0 +1,5 @@ +include: _urdu_few_shot_og_template_yaml +description: ذیل میں Health oriented education کے بارے میں متعدد انتخابی سوالات (جوابات + کے ساتھ) ہیں۔ +process_docs: !function 'utils.process_health_oriented_education' +task: include_base_44_urdu_few_shot_og_health_oriented_education diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Urdu/include_base_44_urdu_stem.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Urdu/include_base_44_urdu_stem.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e72834c0fe18beff4a54f0b8f37ceb45ccbbd3f6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Urdu/include_base_44_urdu_stem.yaml @@ -0,0 +1,4 @@ +include: _urdu_few_shot_og_template_yaml +description: ذیل میں STEM کے بارے میں متعدد انتخابی سوالات (جوابات کے ساتھ) ہیں۔ +process_docs: !function 'utils.process_stem' +task: include_base_44_urdu_few_shot_og_stem diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Urdu/utils.py b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Urdu/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..fde670c6bf543691c37830a7d87869023c70e447 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Urdu/utils.py @@ -0,0 +1,30 @@ +from functools import partial + + +CATEGORIES = [ + "Applied Science", + "Arts & Humanities", + "Business & Commerce", + "Driving License", + "General knowledge", + "Health oriented education", + "Marine License", + "Medical License", + "Professional certification", + "STEM", + "Social Science", +] + + +def process_docs(dataset, category): + return dataset.filter(lambda x: x["domain"] == category) + + +process_functions = { + f"process_{category.lower().replace(' & ', '_').replace(' ', '_')}": partial( + process_docs, category=category + ) + for category in CATEGORIES +} + +globals().update(process_functions) diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Uzbek/_include_base_44_uzbek.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Uzbek/_include_base_44_uzbek.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0f70c97987d9fc52459437cd9116616bd5a12db7 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Uzbek/_include_base_44_uzbek.yaml @@ -0,0 +1,11 @@ +group: include_base_44_uzbek +task: +- include_base_44_uzbek_few_shot_og_arts_humanities +- include_base_44_uzbek_few_shot_og_medical_license +- include_base_44_uzbek_few_shot_og_social_science +- include_base_44_uzbek_few_shot_og_stem +aggregate_metric_list: +- metric: acc + weight_by_size: true +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Uzbek/_uzbek_few_shot_og_template_yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Uzbek/_uzbek_few_shot_og_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..7ce8952b318ef1ce3489504e9da4d1b71808aa19 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Uzbek/_uzbek_few_shot_og_template_yaml @@ -0,0 +1,18 @@ +dataset_path: CohereForAI/include-base-44 +dataset_name: Uzbek +test_split: test +output_type: multiple_choice +doc_to_text: "{{question.strip()}}\nA. {{option_a}}\nB. {{option_b}}\nC. {{option_c}}\n + D. {{option_d}}\nAnswer:" +doc_to_choice: + - A + - B + - C + - D +doc_to_target: answer +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Uzbek/include_base_44_uzbek_arts_humanities.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Uzbek/include_base_44_uzbek_arts_humanities.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1c206025a6ca44f6d2887fabe6ace4b505bc007c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Uzbek/include_base_44_uzbek_arts_humanities.yaml @@ -0,0 +1,5 @@ +include: _uzbek_few_shot_og_template_yaml +description: Quyida Arts & Humanities boʻyicha koʻp tanlovli savollar (javoblari bilan) + keltirilgan. +process_docs: !function 'utils.process_arts_humanities' +task: include_base_44_uzbek_few_shot_og_arts_humanities diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Uzbek/include_base_44_uzbek_medical_license.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Uzbek/include_base_44_uzbek_medical_license.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d97b59939aed2e8679f3eba27516fc179159d220 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Uzbek/include_base_44_uzbek_medical_license.yaml @@ -0,0 +1,5 @@ +include: _uzbek_few_shot_og_template_yaml +description: Quyida Medical License boʻyicha koʻp tanlovli savollar (javoblari bilan) + keltirilgan. +process_docs: !function 'utils.process_medical_license' +task: include_base_44_uzbek_few_shot_og_medical_license diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Uzbek/include_base_44_uzbek_social_science.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Uzbek/include_base_44_uzbek_social_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9e0faf5eeab8f0fc30457330a07eedc73b69cfb3 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Uzbek/include_base_44_uzbek_social_science.yaml @@ -0,0 +1,5 @@ +include: _uzbek_few_shot_og_template_yaml +description: Quyida Social Science boʻyicha koʻp tanlovli savollar (javoblari bilan) + keltirilgan. +process_docs: !function 'utils.process_social_science' +task: include_base_44_uzbek_few_shot_og_social_science diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Uzbek/include_base_44_uzbek_stem.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Uzbek/include_base_44_uzbek_stem.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ca3ab4bd137cf1aad51affe249b015845df4f050 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Uzbek/include_base_44_uzbek_stem.yaml @@ -0,0 +1,4 @@ +include: _uzbek_few_shot_og_template_yaml +description: Quyida STEM boʻyicha koʻp tanlovli savollar (javoblari bilan) keltirilgan. +process_docs: !function 'utils.process_stem' +task: include_base_44_uzbek_few_shot_og_stem diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Uzbek/utils.py b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Uzbek/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..fde670c6bf543691c37830a7d87869023c70e447 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Uzbek/utils.py @@ -0,0 +1,30 @@ +from functools import partial + + +CATEGORIES = [ + "Applied Science", + "Arts & Humanities", + "Business & Commerce", + "Driving License", + "General knowledge", + "Health oriented education", + "Marine License", + "Medical License", + "Professional certification", + "STEM", + "Social Science", +] + + +def process_docs(dataset, category): + return dataset.filter(lambda x: x["domain"] == category) + + +process_functions = { + f"process_{category.lower().replace(' & ', '_').replace(' ', '_')}": partial( + process_docs, category=category + ) + for category in CATEGORIES +} + +globals().update(process_functions) diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Vietnamese/_include_base_44_vietnamese.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Vietnamese/_include_base_44_vietnamese.yaml new file mode 100644 index 0000000000000000000000000000000000000000..83578f801cdbaa32c0546ecc88ba84a84926f009 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Vietnamese/_include_base_44_vietnamese.yaml @@ -0,0 +1,10 @@ +group: include_base_44_vietnamese +task: +- include_base_44_vietnamese_few_shot_og_stem +- include_base_44_vietnamese_few_shot_og_arts_humanities +- include_base_44_vietnamese_few_shot_og_social_science +aggregate_metric_list: +- metric: acc + weight_by_size: true +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Vietnamese/_vietnamese_few_shot_og_template_yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Vietnamese/_vietnamese_few_shot_og_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..1fcb134132b3dd803769f3d890409c91b277165d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Vietnamese/_vietnamese_few_shot_og_template_yaml @@ -0,0 +1,18 @@ +dataset_path: CohereForAI/include-base-44 +dataset_name: Vietnamese +test_split: test +output_type: multiple_choice +doc_to_text: "{{question.strip()}}\nA. {{option_a}}\nB. {{option_b}}\nC. {{option_c}}\n + D. {{option_d}}\nAnswer:" +doc_to_choice: + - A + - B + - C + - D +doc_to_target: answer +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Vietnamese/include_base_44_vietnamese_arts_humanities.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Vietnamese/include_base_44_vietnamese_arts_humanities.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cd1e8f12abe86e2a68b90381f5d9dcc5902a71ef --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Vietnamese/include_base_44_vietnamese_arts_humanities.yaml @@ -0,0 +1,4 @@ +include: _vietnamese_few_shot_og_template_yaml +description: Sau đây là các câu hỏi trắc nghiệm (có đáp án) về Arts & Humanities. +process_docs: !function 'utils.process_arts_humanities' +task: include_base_44_vietnamese_few_shot_og_arts_humanities diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Vietnamese/include_base_44_vietnamese_social_science.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Vietnamese/include_base_44_vietnamese_social_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..115c1d4720c5b741c9a89d3b2ad5cc457544a580 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Vietnamese/include_base_44_vietnamese_social_science.yaml @@ -0,0 +1,4 @@ +include: _vietnamese_few_shot_og_template_yaml +description: Sau đây là các câu hỏi trắc nghiệm (có đáp án) về Social Science. +process_docs: !function 'utils.process_social_science' +task: include_base_44_vietnamese_few_shot_og_social_science diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Vietnamese/include_base_44_vietnamese_stem.yaml b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Vietnamese/include_base_44_vietnamese_stem.yaml new file mode 100644 index 0000000000000000000000000000000000000000..048d43044c612522885ffd6de5819aa49d3d5f71 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Vietnamese/include_base_44_vietnamese_stem.yaml @@ -0,0 +1,4 @@ +include: _vietnamese_few_shot_og_template_yaml +description: Sau đây là các câu hỏi trắc nghiệm (có đáp án) về STEM. +process_docs: !function 'utils.process_stem' +task: include_base_44_vietnamese_few_shot_og_stem diff --git a/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Vietnamese/utils.py b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Vietnamese/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..fde670c6bf543691c37830a7d87869023c70e447 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/include/few_shot_og/Vietnamese/utils.py @@ -0,0 +1,30 @@ +from functools import partial + + +CATEGORIES = [ + "Applied Science", + "Arts & Humanities", + "Business & Commerce", + "Driving License", + "General knowledge", + "Health oriented education", + "Marine License", + "Medical License", + "Professional certification", + "STEM", + "Social Science", +] + + +def process_docs(dataset, category): + return dataset.filter(lambda x: x["domain"] == category) + + +process_functions = { + f"process_{category.lower().replace(' & ', '_').replace(' ', '_')}": partial( + process_docs, category=category + ) + for category in CATEGORIES +} + +globals().update(process_functions) diff --git a/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/README.md b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/README.md new file mode 100644 index 0000000000000000000000000000000000000000..10364d8ea8edf4972eb1ec991e8bc29137b87c0b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/README.md @@ -0,0 +1,55 @@ +# inverse_scaling + +### Paper + +Title: `Inverse Scaling: When Bigger Isn't Better` + +Abstract: `Work on scaling laws has found that large language models (LMs) show predictable improvements to overall loss with increased scale (model size, training data, and compute). Here, we present evidence for the claim that LMs may show inverse scaling, or worse task performance with increased scale, e.g., due to flaws in the training objective and data. We present empirical evidence of inverse scaling on 11 datasets collected by running a public contest, the Inverse Scaling Prize, with a substantial prize pool. Through analysis of the datasets, along with other examples found in the literature, we identify four potential causes of inverse scaling: (i) preference to repeat memorized sequences over following in-context instructions, (ii) imitation of undesirable patterns in the training data, (iii) tasks containing an easy distractor task which LMs could focus on, rather than the harder real task, and (iv) correct but misleading few-shot demonstrations of the task. We release the winning datasets at this https URL to allow for further investigation of inverse scaling. Our tasks have helped drive the discovery of U-shaped and inverted-U scaling trends, where an initial trend reverses, suggesting that scaling trends are less reliable at predicting the behavior of larger-scale models than previously understood. Overall, our results suggest that there are tasks for which increased model scale alone may not lead to progress, and that more careful thought needs to go into the data and objectives for training language models.` + +Note: This is not official implementation of inverse scaling prize. Implemented by h-albert-lee with permission from the authors of the paper. + +Homepage: https://github.com/inverse-scaling/prize + +### Citation + +@article{mckenzie2023inverse, + title={Inverse Scaling: When Bigger Isn't Better}, + author={Ian R. McKenzie and Alexander Lyzhov and Michael Pieler and Alicia Parrish and Aaron Mueller and Ameya Prabhu and Euan McLean and Aaron Kirtland and Alexis Ross and Alisa Liu and Andrew Gritsevskiy and Daniel Wurgaft and Derik Kauffman and Gabriel Recchia and Jiacheng Liu and Joe Cavanagh and Max Weiss and Sicong Huang and The Floating Droid and Tom Tseng and Tomasz Korbak and Xudong Shen and Yuhui Zhang and Zhengping Zhou and Najoung Kim and Samuel R. Bowman and Ethan Perez}, + journal={arXiv preprint arXiv:2306.09479}, + year={2023} +} + +### Groups and Tasks + +#### Groups + +* `inverse_scaling_mc`: all tasks of Inverse Scaling Prize (currently aside from Prompt Injection), matching their implementations on OPT for multiple-choice type classification tasks. **These match the published dataset versions from the prize, which may slightly differ from numbers in the paper (but have been tested for equivalence to the OPT numbers reported at https://huggingface.co/inverse-scaling/opt-1.3b_eval for multiple sizes.** + + +#### Tasks + +- `inverse_scaling_hindsight_neglect_10shot` +- `inverse_scaling_redefine_math` +- `inverse_scaling_quote_repetition` +- `inverse_scaling_neqa` +- `inverse_scaling_winobias_antistereotype`: not an official Inverse Scaling prize winner, but eval results reported on it at https://huggingface.co/inverse-scaling/opt-1.3b_eval . +- `inverse_scaling_into_the_unknown` +- `inverse_scaling_memo_trap` +- `inverse_scaling_modus_tollens` +- `inverse_scaling_pattern_matching_suppression` +- `inverse_scaling_repetitive_algebra` +- `inverse_scaling_sig_figs` + + +### Checklist + +For adding novel benchmarks/datasets to the library: +* [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? If so, have you checked against the reference implementation and documented how to run such a test? + + +If other tasks on this dataset are already supported: +* [ ] Is the "Main" variant of this task clearly denoted? +* [ ] 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-evaluation-harness/lm_eval/tasks/inverse_scaling/_inverse_scaling_mc_yaml b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/_inverse_scaling_mc_yaml new file mode 100644 index 0000000000000000000000000000000000000000..c504eb2cd8833cfef70b3d60748a1769829ac11a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/_inverse_scaling_mc_yaml @@ -0,0 +1,17 @@ +tag: + - inverse_scaling_mc +output_type: multiple_choice +test_split: train +doc_to_text: prompt +doc_to_choice: classes +doc_to_target: answer_index +target_delimiter: "" +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true + - metric: acc_norm + aggregation: mean + higher_is_better: true +metadata: + version: 0 diff --git a/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/_some_results b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/_some_results new file mode 100644 index 0000000000000000000000000000000000000000..9afe58d8e02cdc0cee5a756c8e24aaeb6f2e87cf --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/_some_results @@ -0,0 +1,39 @@ +# | Tasks |Version|Filter|n-shot| Metric |Value | |Stderr| +# |-------------------------------------------|-------|------|-----:|--------|-----:|---|-----:| +# | - inverse_scaling_hindsight_neglect_10shot| 0|none | 0|acc |0.4476|± |0.0281| +# | | |none | 0|acc_norm|0.4476|± |0.0281| +# |inverse_scaling_mc |N/A |none | 0|acc_norm|0.6273|± |0.0096| +# | | |none | 0|acc |0.6210|± |0.0095| +# | - inverse_scaling_neqa | 0|none | 0|acc |0.5300|± |0.0289| +# | | |none | 0|acc_norm|0.5300|± |0.0289| +# | - inverse_scaling_quote_repetition | 0|none | 0|acc |0.9367|± |0.0141| +# | | |none | 0|acc_norm|0.9367|± |0.0141| +# | - inverse_scaling_redefine_math | 0|none | 0|acc |0.7178|± |0.0150| +# | | |none | 0|acc_norm|0.7178|± |0.0150| +# | - inverse_scaling_winobias_antistereotype | 0|none | 0|acc |0.3786|± |0.0239| +# | | |none | 0|acc_norm|0.4126|± |0.0243| + +# | Groups |Version|Filter|n-shot| Metric |Value | |Stderr| +# |------------------|-------|------|-----:|--------|-----:|---|-----:| +# |inverse_scaling_mc|N/A |none | 0|acc_norm|0.6273|± |0.0096| +# | | |none | 0|acc |0.6210|± |0.0095| +# hf (pretrained=facebook/opt-2.7b,add_bos_token=True,dtype=float32), gen_kwargs: (None), limit: None, num_fewshot: None, batch_size: auto (32) +# | Tasks |Version|Filter|n-shot| Metric |Value | |Stderr| +# |-------------------------------------------|-------|------|-----:|--------|-----:|---|-----:| +# | - inverse_scaling_hindsight_neglect_10shot| 0|none | 0|acc |0.4476|± |0.0281| +# | | |none | 0|acc_norm|0.4476|± |0.0281| +# |inverse_scaling_mc |N/A |none | 0|acc_norm|0.6291|± |0.0095| +# | | |none | 0|acc |0.6219|± |0.0095| +# | - inverse_scaling_neqa | 0|none | 0|acc |0.5267|± |0.0289| +# | | |none | 0|acc_norm|0.5267|± |0.0289| +# | - inverse_scaling_quote_repetition | 0|none | 0|acc |0.9433|± |0.0134| +# | | |none | 0|acc_norm|0.9433|± |0.0134| +# | - inverse_scaling_redefine_math | 0|none | 0|acc |0.7200|± |0.0150| +# | | |none | 0|acc_norm|0.7200|± |0.0150| +# | - inverse_scaling_winobias_antistereotype | 0|none | 0|acc |0.3762|± |0.0239| +# | | |none | 0|acc_norm|0.4150|± |0.0243| + +# | Groups |Version|Filter|n-shot| Metric |Value | |Stderr| +# |------------------|-------|------|-----:|--------|-----:|---|-----:| +# |inverse_scaling_mc|N/A |none | 0|acc_norm|0.6291|± |0.0095| +# | | |none | 0|acc |0.6219|± |0.0095| diff --git a/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_hindsight_neglect.yaml b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_hindsight_neglect.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b21baee22a42077ecfe0b53678b92e5daa2b1e62 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_hindsight_neglect.yaml @@ -0,0 +1,3 @@ +include: _inverse_scaling_mc_yaml +task: inverse_scaling_hindsight_neglect_10shot +dataset_path: inverse-scaling/hindsight-neglect-10shot diff --git a/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_into_the_unknown.yaml b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_into_the_unknown.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0c7ccd3bb5cbd3d0dfe924d5fa7b22ad466ea198 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_into_the_unknown.yaml @@ -0,0 +1,3 @@ +include: _inverse_scaling_mc_yaml +task: inverse_scaling_into_the_unknown +dataset_path: Albertmade/into-the-unknown diff --git a/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_memo_trap.yaml b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_memo_trap.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5c77ffc25077a3c9c4e287dd96cdcc24a29fa483 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_memo_trap.yaml @@ -0,0 +1,3 @@ +include: _inverse_scaling_mc_yaml +task: inverse_scaling_memo_trap +dataset_path: Albertmade/memo-trap diff --git a/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_modus_tollens.yaml b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_modus_tollens.yaml new file mode 100644 index 0000000000000000000000000000000000000000..89e1ebbc55ecb483b4e486077373b9a0ee7cd12b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_modus_tollens.yaml @@ -0,0 +1,3 @@ +include: _inverse_scaling_mc_yaml +task: inverse_scaling_modus_tollens +dataset_path: Albertmade/modus-tollens diff --git a/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_neqa.yaml b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_neqa.yaml new file mode 100644 index 0000000000000000000000000000000000000000..11a057d8ed756f0d2e697c459be49f22b57dde94 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_neqa.yaml @@ -0,0 +1,3 @@ +include: _inverse_scaling_mc_yaml +task: inverse_scaling_neqa +dataset_path: inverse-scaling/NeQA diff --git a/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_pattern_matching_suppression.yaml b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_pattern_matching_suppression.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b415bba1327741396b8d9c0d158b9fba95fa7a52 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_pattern_matching_suppression.yaml @@ -0,0 +1,3 @@ +include: _inverse_scaling_mc_yaml +task: inverse_scaling_pattern_matching_suppression +dataset_path: Albertmade/pattern-matching-suppression diff --git a/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_quote_repetition.yaml b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_quote_repetition.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6750953cd7f7de45518345d4c7e6ff2861e5926b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_quote_repetition.yaml @@ -0,0 +1,3 @@ +include: _inverse_scaling_mc_yaml +task: inverse_scaling_quote_repetition +dataset_path: inverse-scaling/quote-repetition diff --git a/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_redefine_math.yaml b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_redefine_math.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2f14ba28bddc5bb1586379b179c956a21a6dcc68 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_redefine_math.yaml @@ -0,0 +1,3 @@ +include: _inverse_scaling_mc_yaml +task: inverse_scaling_redefine_math +dataset_path: inverse-scaling/redefine-math diff --git a/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_repetitive_algebra.yaml b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_repetitive_algebra.yaml new file mode 100644 index 0000000000000000000000000000000000000000..048ea271edf7252b0dc0aa120032b04102685e9c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_repetitive_algebra.yaml @@ -0,0 +1,3 @@ +include: _inverse_scaling_mc_yaml +task: inverse_scaling_repetitive_algebra +dataset_path: Albertmade/repetitive-algebra diff --git a/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_sig_figs.yaml b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_sig_figs.yaml new file mode 100644 index 0000000000000000000000000000000000000000..25d86e33a8c839bc750ad8bb83be908c1e19eb19 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_sig_figs.yaml @@ -0,0 +1,3 @@ +include: _inverse_scaling_mc_yaml +task: inverse_scaling_sig_figs +dataset_path: Albertmade/sig-figs diff --git a/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_winobias_antistereotype.yaml b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_winobias_antistereotype.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4c5ff300aae7ee84e103dea2be053ec88fe9f771 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/inverse_scaling/inverse_scaling_winobias_antistereotype.yaml @@ -0,0 +1,20 @@ +group: + - inverse_scaling_mc +task: inverse_scaling_winobias_antistereotype +dataset_path: mathemakitten/winobias_antistereotype_test_v5 +output_type: multiple_choice +test_split: test +doc_to_text: text +doc_to_choice: classes +doc_to_target: target +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true + - metric: acc_norm + aggregation: mean + higher_is_better: true +dataset_kwargs: + trust_remote_code: true +metadata: + version: 0 diff --git a/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/README.md b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/README.md new file mode 100644 index 0000000000000000000000000000000000000000..2c4d00a197ce331fe87b9f98f581d22d1bdc38ad --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/README.md @@ -0,0 +1,152 @@ +# Japanese Leaderboard + +The Japanese LLM Leaderboard evaluates language models based on a wide range of NLP tasks that reflect the characteristics of the Japanese language. + +### Groups, Tags, and Tasks + +#### Groups + +* `japanese_leaderboard`: runs all tasks defined in this directory + +#### Tasks + +##### Generation Evaluation + +* `ja_leaderboard_jaqket_v2`: The JAQKET dataset is designed for Japanese question answering research, featuring quiz-like questions with answers derived from Wikipedia article titles. [Source](https://github.com/kumapo/JAQKET-dataset) +* `ja_leaderboard_mgsm`: Multilingual Grade School Math Benchmark (MGSM) is a benchmark of grade-school math problems, proposed in the paper Language models are multilingual chain-of-thought reasoners. [Source](https://huggingface.co/datasets/juletxara/mgsm) +* `ja_leaderboard_xlsum`: This is the filtered Japanese subset of XL-Sum. [Source](https://github.com/csebuetnlp/xl-sum) +* `ja_leaderboard_jsquad`: JSQuAD is a Japanese version of SQuAD, a reading comprehension dataset. Each instance in the dataset consists of a question regarding a given context (Wikipedia article) and its answer. JSQuAD is based on SQuAD 1.1 (there are no unanswerable questions). [Source](https://github.com/yahoojapan/JGLUE) + +##### Multi-Choice/Classification Evaluation + +* `ja_leaderboard_jcommonsenseqa`: JCommonsenseQA is a Japanese version of CommonsenseQA, which is a multiple-choice question answering dataset that requires commonsense reasoning ability. [Source](https://github.com/yahoojapan/JGLUE) +* `ja_leaderboard_jnli`: JNLI is a Japanese version of the NLI (Natural Language Inference) dataset. The inference relations are entailment (含意), contradiction (矛盾), and neutral (中立). [Source](https://github.com/yahoojapan/JGLUE) +* `ja_leaderboard_marc_ja`: MARC-ja is a text classification dataset based on the Japanese portion of Multilingual Amazon Reviews Corpus (MARC). [Source](https://github.com/yahoojapan/JGLUE) +* `ja_leaderboard_xwinograd`: This is the Japanese portion of XWinograd. [Source](https://huggingface.co/datasets/polm-stability/xwinograd-ja) + +### Citation + +```bibtex +@inproceedings{ja_leaderboard_jaqket_v2, + title = {JAQKET: クイズを題材にした日本語 QA データセットの構築}, + author = {鈴木正敏 and 鈴木潤 and 松田耕史 and ⻄田京介 and 井之上直也}, + year = 2020, + booktitle = {言語処理学会第26回年次大会}, + url = {https://www.anlp.jp/proceedings/annual_meeting/2020/pdf_dir/P2-24.pdf} +} + +@article{ja_leaderboard_mgsm_1, + title = {Training Verifiers to Solve Math Word Problems}, + author = { + Cobbe, Karl and Kosaraju, Vineet and Bavarian, Mohammad and Chen, Mark and Jun, Heewoo and + Kaiser, Lukasz and Plappert, Matthias and Tworek, Jerry and Hilton, Jacob and Nakano, Reiichiro + and Hesse, Christopher and Schulman, John + }, + year = 2021, + journal = {arXiv preprint arXiv:2110.14168} +} + +@misc{ja_leaderboard_mgsm_2, + title = {Language Models are Multilingual Chain-of-Thought Reasoners}, + author = { + Freda Shi and Mirac Suzgun and Markus Freitag and Xuezhi Wang and Suraj Srivats and Soroush + Vosoughi and Hyung Won Chung and Yi Tay and Sebastian Ruder and Denny Zhou and Dipanjan Das and + Jason Wei + }, + year = 2022, + eprint = {2210.03057}, + archiveprefix = {arXiv}, + primaryclass = {cs.CL} +} + +@inproceedings{ja_leaderboard_xlsum, + title = {{XL}-Sum: Large-Scale Multilingual Abstractive Summarization for 44 Languages}, + author = { + Hasan, Tahmid and Bhattacharjee, Abhik and Islam, Md. Saiful and Mubasshir, Kazi and Li, + Yuan-Fang and Kang, Yong-Bin and Rahman, M. Sohel and Shahriyar, Rifat + }, + year = 2021, + month = aug, + booktitle = {Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021}, + publisher = {Association for Computational Linguistics}, + address = {Online}, + pages = {4693--4703}, + url = {https://aclanthology.org/2021.findings-acl.413} +} + +@article{jglue_2023, + title = {JGLUE: 日本語言語理解ベンチマーク}, + author = {栗原 健太郎 and 河原 大輔 and 柴田 知秀}, + year = 2023, + journal = {自然言語処理}, + volume = 30, + number = 1, + pages = {63--87}, + doi = {10.5715/jnlp.30.63}, + url = {https://www.jstage.jst.go.jp/article/jnlp/30/1/30_63/_article/-char/ja} +} + +@inproceedings{jglue_kurihara-etal-2022-jglue, + title = {{JGLUE}: {J}apanese General Language Understanding Evaluation}, + author = {Kurihara, Kentaro and Kawahara, Daisuke and Shibata, Tomohide}, + year = 2022, + month = jun, + booktitle = {Proceedings of the Thirteenth Language Resources and Evaluation Conference}, + publisher = {European Language Resources Association}, + address = {Marseille, France}, + pages = {2957--2966}, + url = {https://aclanthology.org/2022.lrec-1.317} +} + +@inproceedings{jglue_kurihara_nlp2022, + title = {JGLUE: 日本語言語理解ベンチマーク}, + author = {栗原健太郎 and 河原大輔 and 柴田知秀}, + year = 2022, + booktitle = {言語処理学会第28回年次大会}, + url = {https://www.anlp.jp/proceedings/annual_meeting/2022/pdf_dir/E8-4.pdf}, + note = {in Japanese} +} + +@misc{xwinograd_muennighoff2022crosslingual, + title = {Crosslingual Generalization through Multitask Finetuning}, + author = { + Niklas Muennighoff and Thomas Wang and Lintang Sutawika and Adam Roberts and Stella Biderman + and Teven Le Scao and M Saiful Bari and Sheng Shen and Zheng-Xin Yong and Hailey Schoelkopf and + Xiangru Tang and Dragomir Radev and Alham Fikri Aji and Khalid Almubarak and Samuel Albanie and + Zaid Alyafeai and Albert Webson and Edward Raff and Colin Raffel + }, + year = 2022, + eprint = {2211.01786}, + archiveprefix = {arXiv}, + primaryclass = {cs.CL} +} + +@misc{xwinograd_tikhonov2021heads, + title = { + It's All in the Heads: Using Attention Heads as a Baseline for Cross-Lingual Transfer in + Commonsense Reasoning + }, + author = {Alexey Tikhonov and Max Ryabinin}, + year = 2021, + eprint = {2106.12066}, + archiveprefix = {arXiv}, + primaryclass = {cs.CL} +} +``` + +### Credit + +* Prompts: https://github.com/Stability-AI/lm-evaluation-harness/tree/jp-stable/lm_eval/tasks/ja + +### Checklist + +For adding novel benchmarks/datasets to the library: +* [x] Is the task an existing benchmark in the literature? + * [x] Have you referenced the original paper that introduced the task? + * [ ] If yes, does the original paper provide a reference implementation? If so, have you checked against the reference implementation and documented how to run such a test? + + +If other tasks on this dataset are already supported: +* [ ] Is the "Main" variant of this task clearly denoted? +* [ ] 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-evaluation-harness/lm_eval/tasks/japanese_leaderboard/_ja_leaderboard.yaml b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/_ja_leaderboard.yaml new file mode 100644 index 0000000000000000000000000000000000000000..538b331a13a783ed9059ec5d11fb9c469423ef2e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/_ja_leaderboard.yaml @@ -0,0 +1,14 @@ +group: japanese_leaderboard + +task: + - ja_leaderboard_jaqket_v2 + - ja_leaderboard_jcommonsenseqa + - ja_leaderboard_jnli + - ja_leaderboard_jsquad + - ja_leaderboard_marc_ja + - ja_leaderboard_mgsm + - ja_leaderboard_xlsum + - ja_leaderboard_xwinograd + +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_jaqket_v2.yaml b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_jaqket_v2.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ccd7466bd7cd2c9a6927f28e8d36cfa3f07e6dc1 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_jaqket_v2.yaml @@ -0,0 +1,40 @@ +task: ja_leaderboard_jaqket_v2 + +dataset_path: kumapo/JAQKET +dataset_name: v2.0 + +training_split: train +validation_split: validation +test_split: null + +fewshot_split: train +num_fewshot: 1 + +description: "以下は、タスクを説明する指示と、文脈のある入力の組み合わせです。要求を適切に満たす応答を書きなさい。\n\n" +doc_to_text: "### 指示:\n与えられた文脈から、質問に対する答えを抜き出してください。\n\n### 入力:\n文脈:{{ ctxs['text'] | join('\n') }}\n質問:{{ question }}\n\n### 応答:" +doc_to_target: "{{ answers['text'][0] }}" +target_delimiter: "\n" + +output_type: generate_until + +generation_kwargs: + until: + - "\n\n" + do_sample: false + +metric_list: + - metric: exact_match + regexes_to_ignore: + - '^\s+' + - '\s+$' + aggregation: mean + higher_is_better: true + +filter_list: + - name: whitespaces + filter: + - function: remove_whitespace + - function: take_first + +metadata: + version: 2.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_jcommonsenseqa.py b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_jcommonsenseqa.py new file mode 100644 index 0000000000000000000000000000000000000000..6f984be643f336c2af3cf07512186aa86b727f41 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_jcommonsenseqa.py @@ -0,0 +1,6 @@ +def process_docs(dataset): + def _add_choices(doc): + doc["choices"] = [doc[f"choice{i}"] for i in range(5)] + return doc + + return dataset.map(_add_choices) diff --git a/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_jcommonsenseqa.yaml b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_jcommonsenseqa.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4348b701a1724276229b4a0648b2273db8edcaaa --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_jcommonsenseqa.yaml @@ -0,0 +1,27 @@ +task: ja_leaderboard_jcommonsenseqa + +dataset_path: Rakuten/JGLUE +dataset_name: JCommonsenseQA +training_split: train +validation_split: validation +test_split: null + +fewshot_split: train +num_fewshot: 3 + +description: "以下は、タスクを説明する指示と、文脈のある入力の組み合わせです。要求を適切に満たす応答を書きなさい。\n\n" +process_docs: !function ja_leaderboard_jcommonsenseqa.process_docs +doc_to_text: "### 指示:\n出力は以下から選択してください:\n{% for choice in choices %}- {{ choice }}\n{% endfor %}\n### 入力:\n{{ question }}\n\n### 応答:" +doc_to_target: label +doc_to_choice: choices +target_delimiter: "\n" + +output_type: multiple_choice + +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true + +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_jnli.yaml b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_jnli.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e01413bba3ef1da7b6fd2cb5d84dce30e7a802a0 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_jnli.yaml @@ -0,0 +1,27 @@ +task: ja_leaderboard_jnli + +dataset_path: Rakuten/JGLUE +dataset_name: JNLI +training_split: train +validation_split: validation +test_split: null + +fewshot_split: train +num_fewshot: 3 + +description: "以下は、タスクを説明する指示と、文脈のある入力の組み合わせです。要求を適切に満たす応答を書きなさい。\n\n" + +doc_to_text: "### 指示:\n与えられた前提と仮説の関係を回答してください。\n\n出力は以下から選択してください:\n含意\n矛盾\n中立\n\n### 入力:\n前提:{{ sentence1 }}\n仮説:{{ sentence2 }}\n\n### 応答:" +doc_to_target: label +doc_to_choice: ["含意", "矛盾", "中立"] +target_delimiter: "\n" + +output_type: multiple_choice + +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true + +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_jsquad.yaml b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_jsquad.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f378a84637ca0b6a7941a93e7ab2490b0484fecf --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_jsquad.yaml @@ -0,0 +1,40 @@ +task: ja_leaderboard_jsquad + +dataset_path: Rakuten/JGLUE +dataset_name: JSQuAD + +training_split: train +validation_split: validation +test_split: null + +fewshot_split: train +num_fewshot: 2 + +description: "以下は、タスクを説明する指示と、文脈のある入力の組み合わせです。要求を適切に満たす応答を書きなさい。\n\n" +doc_to_text: "### 指示:\n与えられた文脈から、質問に対する答えを抜き出してください。\n\n### 入力:\n文脈:{% set _context = context.split('[SEP]')[-1] %}{{ _context | trim }}\n質問:{{ question }}\n\n### 応答:" +doc_to_target: "{{ answers['text'][0] }}" +target_delimiter: "\n" + +output_type: generate_until + +generation_kwargs: + until: + - "\n\n" + do_sample: false + +metric_list: + - metric: exact_match + regexes_to_ignore: + - '^\s+' + - '\s+$' + aggregation: mean + higher_is_better: true + +filter_list: + - name: whitespaces + filter: + - function: remove_whitespace + - function: take_first + +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_marc_ja.yaml b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_marc_ja.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8a19e38b9e5ba86f4b8b2fc9efd9cf9be98abb29 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_marc_ja.yaml @@ -0,0 +1,26 @@ +task: ja_leaderboard_marc_ja + +dataset_path: Rakuten/JGLUE +dataset_name: MARC-ja +training_split: train +validation_split: validation +test_split: null + +fewshot_split: train +num_fewshot: 3 + +description: "以下は、タスクを説明する指示と、文脈のある入力の組み合わせです。要求を適切に満たす応答を書きなさい。\n\n" +doc_to_text: "### 指示:\n以下の製品レビューを、ポジティブまたはネガティブの感情クラスのいずれかに分類してください。\n\n### 入力:\n{{ sentence }}\n\n### 応答:" +doc_to_target: label +doc_to_choice: ["ポジティブ", "ネガティブ"] +target_delimiter: "\n" + +output_type: multiple_choice + +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true + +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_mgsm.py b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_mgsm.py new file mode 100644 index 0000000000000000000000000000000000000000..0d122c7af1b4862b8f80e949409500de0c0c832f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_mgsm.py @@ -0,0 +1,36 @@ +import re + + +_INVALID_ANSWER = "[invalid]" + +_ANSWER_REGEX = re.compile(r"(\-?[0-9\.\,]+)") + + +def _extract_answer(completion): + matches = _ANSWER_REGEX.findall(completion) + if matches: + match_str = matches[-1].strip(".") + match_str = match_str.replace(",", "") + try: + match_float = float(match_str) + except ValueError: + return _INVALID_ANSWER + + if match_float.is_integer(): + return int(match_float) + + return _INVALID_ANSWER + + +def process_results(doc, results): + assert len(results) == 1, ( + f"results should be a list with 1 str element, but is {results}" + ) + + completion = results[0] + extracted_answer = _extract_answer(completion) + answer = doc["answer_number"] + acc = extracted_answer == answer + return { + "acc": acc, + } diff --git a/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_mgsm.yaml b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_mgsm.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bb041220a5ec95f66ef25aaab5fcceaef2cb6e58 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_mgsm.yaml @@ -0,0 +1,32 @@ +task: ja_leaderboard_mgsm + +dataset_path: juletxara/mgsm +dataset_name: ja + +training_split: train +validation_split: null +test_split: test + +fewshot_split: train +num_fewshot: 5 + +description: "以下は、タスクを説明する指示と、文脈のある入力の組み合わせです。要求を適切に満たす応答を書きなさい。\n\n" +doc_to_text: "### 指示:\n与えられた問題に対して、ステップごとに答えを導き出してください。\n\n### 入力:\n{{ question | replace('問題:', '') }}\n\n### 応答:" +doc_to_target: "{{ answer | replace('ステップごとの答え:', '') }}" +target_delimiter: "\n" + +output_type: generate_until +process_results: !function ja_leaderboard_mgsm.process_results + +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true + +generation_kwargs: + until: + - "\n\n" + do_sample: false + +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_xlsum.py b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_xlsum.py new file mode 100644 index 0000000000000000000000000000000000000000..8b99ceed97083c9666566c9fdbcf4be9a5e29d29 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_xlsum.py @@ -0,0 +1,75 @@ +import re + + +def _missing_module_message(name): + return f"`{name}` is required for `japanese_leaderboard`, please install `{name}` via pip install lm_eval[japanese_leaderboard] or pip install -e .[japanese_leaderboard]" + + +try: + import emoji + import neologdn + from fugashi import Tagger + from rouge_score import rouge_scorer, scoring +except ModuleNotFoundError as err: + raise ModuleNotFoundError(_missing_module_message(err.name)) from err + + +class MecabTokenizer: + def __init__(self) -> None: + self.tagger = Tagger("-Owakati") + + def normalize_answer(self, text): + """Lower case text, remove punctuation and extra whitespace, etc.""" + + def white_space_fix(text): + return " ".join(text.split()) + + def remove_emoji(text): + text = "".join(["" if emoji.is_emoji(c) else c for c in text]) + emoji_pattern = re.compile( + "[" + "\U0001f600-\U0001f64f" # emoticons + "\U0001f300-\U0001f5ff" # symbols & pictographs + "\U0001f680-\U0001f6ff" # transport & map symbols + "\U0001f1e0-\U0001f1ff" # flags (iOS) + "\U00002702-\U000027b0" + "]+", + flags=re.UNICODE, + ) + return emoji_pattern.sub(r"", text) + + text = remove_emoji(text) + # see neologdn docs for details, but handles things like full/half width variation + text = neologdn.normalize(text) + text = white_space_fix(text) + return text + + def tokenize(self, text): + return self.tagger.parse(self.normalize_answer(text)).split() + + +def rouge2(items): + return items + + +def rouge2_agg(items): + tokenizer = MecabTokenizer() + + refs = list(zip(*items))[0] + preds = list(zip(*items))[1] + + rouge_type = "rouge2" + + # mecab-based rouge + scorer = rouge_scorer.RougeScorer( + rouge_types=[rouge_type], + tokenizer=tokenizer, + ) + + # Acumulate confidence intervals. + aggregator = scoring.BootstrapAggregator() + for ref, pred in zip(refs, preds): + aggregator.add_scores(scorer.score(ref, pred)) + result = aggregator.aggregate() + + return result[rouge_type].mid.fmeasure diff --git a/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_xlsum.yaml b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_xlsum.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5de60f182baaf849159f0a8c26e79e1ef3177e94 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_xlsum.yaml @@ -0,0 +1,37 @@ +task: ja_leaderboard_xlsum + +dataset_path: mkshing/xlsum_ja +dataset_name: null + +training_split: train +validation_split: validation +test_split: test + +fewshot_split: train +num_fewshot: 1 + +description: "以下は、タスクを説明する指示と、文脈のある入力の組み合わせです。要求を適切に満たす応答を書きなさい。\n\n" +doc_to_text: "### 指示:\n与えられたニュース記事を要約してください。\n\n### 入力:\nニュース記事:{{ text }}\n\n### 応答:" +doc_to_target: "{{ summary }}" +target_delimiter: "\n" + +output_type: generate_until + +metric_list: + - metric: !function ja_leaderboard_xlsum.rouge2 + aggregation: !function ja_leaderboard_xlsum.rouge2_agg + higher_is_better: true + +filter_list: + - name: whitespaces + filter: + - function: remove_whitespace + - function: take_first + +generation_kwargs: + until: + - "\n\n" + do_sample: false + +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_xwinograd.py b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_xwinograd.py new file mode 100644 index 0000000000000000000000000000000000000000..74a1a5e6a90fb5eb10803f4c31988f204e2a0f83 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_xwinograd.py @@ -0,0 +1,7 @@ +def process_docs(dataset): + def _add_choices_and_label(doc): + doc["label"] = int(doc["answer"]) - 1 + doc["choices"] = [doc["sentence1"].strip(), doc["sentence2"].strip()] + return doc + + return dataset.map(_add_choices_and_label) diff --git a/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_xwinograd.yaml b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_xwinograd.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8a00b75938e0d1a20e4820a9a20eb10b55dbe553 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/ja_leaderboard_xwinograd.yaml @@ -0,0 +1,26 @@ +task: ja_leaderboard_xwinograd + +dataset_path: polm-stability/xwinograd-ja +dataset_name: null + +training_split: null +validation_split: null +test_split: test + +num_fewshot: null + +process_docs: !function ja_leaderboard_xwinograd.process_docs +doc_to_target: "label" +doc_to_choice: "choices" +doc_to_text: "" +target_delimiter: "" + +output_type: multiple_choice + +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true + +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/requirements.txt b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..894c2459172d9063edd9d8bb056253e8a0b29343 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/japanese_leaderboard/requirements.txt @@ -0,0 +1,4 @@ +emoji==2.14.0 +fugashi[unidic-lite] +neologdn==0.5.3 +rouge_score>=0.1.2 diff --git a/lm-evaluation-harness/lm_eval/tasks/jsonschema_bench/README.md b/lm-evaluation-harness/lm_eval/tasks/jsonschema_bench/README.md new file mode 100644 index 0000000000000000000000000000000000000000..30b67bdda484cdc24b099a68abbecc725b252f14 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/jsonschema_bench/README.md @@ -0,0 +1,97 @@ +# JSONSchema Bench + +## Tasks + +- `jsonschema_bench_easy`, corresponding to the `github_easy` split of the original paper +- `jsonschema_bench_medium`, corresponding to the `github_medium` split of the original paper +- `jsonschema_bench_hard`, corresponding to the `github_hard` split of the original paper + +Use `jsonschema_bench` tag to run all three tasks. + +## Metrics + +The JSONSchema Bench tasks are evaluated using the following two metrics: +- `json_validity`: This metric checks whether the generated output is valid JSON. It is a binary metric, where 1 indicates valid JSON and 0 indicates invalid JSON. We use `json` package to check the validity of the generated output. +- `schema_compliance`: This metric checks whether the generated output complies with the provided JSON schema. It is also a binary metric, where 1 indicates compliance and 0 indicates non-compliance. We use the `jsonschema` package to check the compliance of the generated output with the provided JSON schema. + +## Dependencies + +The JSONSchema Bench tasks require the `jsonschema` library to be installed. You can install it using pip: +```bash +pip install jsonschema\[format\] +``` + +The `format` extra is required to support the `format` keyword in JSON Schema, which is used in the tasks. + +## Sequence Length +The `easy` task requires a context window of 2K tokens, the `medium` task requires a context window of 3K tokens, and the `hard` task requires a context window of 10K tokens ( the exact number will vary depending on the tokenizer used, but 10K tokens is a good estimate). + +If you don't have enough memory to run the `hard` task, you can use the `--max_length` flag to reduce the context window size but this will truncate the schema and will lead to lower performance. + + +## Usage + +Here is an example of how to run 10 instances of the `jsonschema_bench_easy` task : +```bash +lm_eval \ + --model hf --gen_kwargs max_new_tokens=1024 \ + --model_args pretrained=meta-llama/Llama-3.2-1B-Instruct,parallelize=True\ + --tasks jsonschema_bench_medium \ + --batch_size auto \ + --limit 10 \ + --apply_chat_template \ + --fewshot_as_multiturn +``` + +The expected results is +``` +| Tasks |Version|Filter|n-shot| Metric | |Value| |Stderr| +|-----------------------|------:|------|-----:|-----------------|---|----:|---|-----:| +|jsonschema_bench_medium| 0.1|none | 2|json_validity |↑ | 1.0|± |0.0000| +| | |none | 2|schema_compliance|↑ | 0.2|± |0.1333| +``` + +## Dataset + +Available at [HF hub](https://huggingface.co/datasets/epfl-dlab/JSONSchemaBench) + +## Leaderboard + +We provide a [leaderboard](https://github.com/epfl-dlab/jsonschemabench-leaderboard) to track the progress of LLMs on the JSONSchema Bench tasks. +We welcome contributions to the leaderboard via pull requests. + + +## Paper + +JGenerating Structured Outputs from Language Models: Benchmark and Studies[https://arxiv.org/abs/2501.10868] + +Homepage: https://github.com/guidance-ai/jsonschemabench + + +## Citation +``` +@misc{geng2025jsonschemabench, + title={Generating Structured Outputs from Language Models: Benchmark and Studies}, + author={Saibo Geng and Hudson Cooper and Michał Moskal and Samuel Jenkins and Julian Berman and Nathan Ranchin and Robert West and Eric Horvitz and Harsha Nori}, + year={2025}, + eprint={2501.10868}, + archivePrefix={arXiv}, + primaryClass={cs.CL}, + url={https://arxiv.org/abs/2501.10868}, +} +``` + + + +### Checklist + +For adding novel benchmarks/datasets to the library: +* [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? If so, have you checked against the reference implementation and documented how to run such a test? + + +If other tasks on this dataset are already supported: +* [ ] Is the "Main" variant of this task clearly denoted? +* [ ] 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-evaluation-harness/lm_eval/tasks/jsonschema_bench/jsonschema_bench_easy.yaml b/lm-evaluation-harness/lm_eval/tasks/jsonschema_bench/jsonschema_bench_easy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a1d92d84b9040b087023ccf85b71a4657d0bdde2 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/jsonschema_bench/jsonschema_bench_easy.yaml @@ -0,0 +1,382 @@ +tag: + - jsonschema_bench +task: jsonschema_bench_easy +dataset_path: epfl-dlab/JSONSchemaBench +dataset_name: Github_easy +training_split: train +validation_split: valid +test_split: test +description: "Generate a JSON object that matches the following JSON schema." +doc_to_text: 'JSON schema: {{json_schema}}\n\nJSON object: ' +doc_to_target: '{{json_object if json_object is defined else json_schema}}' # here we use the json_schema as the target at test time for evaluation +output_type: generate_until +metric_list: + - metric: !function metrics.json_validity + aggregation: mean + higher_is_better: True + - metric: !function metrics.schema_compliance + aggregation: mean + higher_is_better: True +metadata: + version: 0.1 +fewshot_split: null +num_fewshot: 2 +fewshot_config: + sampler: first_n + samples: + - json_schema: "{ + \"$schema\": \"http://json-schema.org/draft-04/schema#\", + \"definitions\": { + \"address1\": { + \"type\": \"string\" + }, + \"address2\": { + \"type\": \"string\" + }, + \"city\": { + \"type\": \"string\" + }, + \"country\": { + \"type\": \"string\" + }, + \"postalCode\": { + \"type\": \"string\" + }, + \"state\": { + \"type\": \"string\" + } + }, + \"description\": \"A simple address schema\", + \"properties\": { + \"address1\": { + \"$ref\": \"#/definitions/address1\" + }, + \"address2\": { + \"$ref\": \"#/definitions/address2\" + }, + \"city\": { + \"$ref\": \"#/definitions/city\" + }, + \"country\": { + \"$ref\": \"#/definitions/country\" + }, + \"postalCode\": { + \"$ref\": \"#/definitions/postalCode\" + }, + \"state\": { + \"$ref\": \"#/definitions/state\" + } + }, + \"type\": \"object\" + }" + json_object: "{ + \"address1\": \"123 Main Street\", + \"address2\": \"Apt 4B\", + \"city\": \"Seattle\", + \"country\": \"USA\", + \"postalCode\": \"98101\", + \"state\": \"WA\" + }" + - json_schema: "{ + \"$schema\": \"http://json-schema.org/draft-06/schema#\", + \"definitions\": { + \"ElementType\": { + \"enum\": [ + \"component\", + \"directive\" + ], + \"type\": \"string\" + }, + \"SelectorChange\": { + \"properties\": { + \"remove\": { + \"description\": \"Remove directive/component\", + \"type\": \"boolean\" + }, + \"replaceWith\": { + \"description\": \"Replace original selector with new one\", + \"type\": \"string\" + }, + \"selector\": { + \"description\": \"Original selector to apply change to\", + \"type\": \"string\" + }, + \"type\": { + \"$ref\": \"#/definitions/ElementType\", + \"description\": \"Type of selector the change applies to - either component or directive\" + } + }, + \"required\": [ + \"selector\", + \"type\" + ], + \"type\": \"object\" + } + }, + \"properties\": { + \"changes\": { + \"description\": \"An array of changes to component/directive selectors\", + \"items\": { + \"$ref\": \"#/definitions/SelectorChange\" + }, + \"type\": \"array\" + } + }, + \"required\": [ + \"changes\" + ], + \"type\": \"object\" + }" + json_object: "{ + \"changes\": [ + { + \"selector\": \"app-root\", + \"type\": \"component\", + \"remove\": false, + \"replaceWith\": \"new-root\" + }, + { + \"selector\": \"my-directive\", + \"type\": \"directive\", + \"remove\": true, + \"replaceWith\": \"new-directive\" + } + ] + }" + - json_schema: "{ + \"additionalProperties\": false, + \"description\": \"Schema for tracking e-commerce transaction details and metadata.\", + \"properties\": { + \"store\": { + \"description\": \"The store or seller associated with the transaction.\", + \"maxLength\": 500, + \"type\": \"string\" + }, + \"discountCode\": { + \"description\": \"Promotional code applied to the transaction.\", + \"maxLength\": 500, + \"type\": \"string\" + }, + \"currencyCode\": { + \"description\": \"ISO 4217 currency code for the transaction.\", + \"maxLength\": 3, + \"minLength\": 3, + \"type\": \"string\" + }, + \"transactionId\": { + \"description\": \"Unique identifier for the transaction.\", + \"maxLength\": 500, + \"type\": \"string\" + }, + \"productList\": { + \"description\": \"Identifier for the product list from which the purchase was made.\", + \"maxLength\": 500, + \"type\": \"string\" + }, + \"purchaseOption\": { + \"description\": \"Additional purchase options or preferences.\", + \"maxLength\": 500, + \"type\": \"string\" + }, + \"totalAmount\": { + \"description\": \"Total revenue generated from the transaction.\", + \"multipleOf\": 0.01, + \"type\": \"number\" + }, + \"deliveryCharge\": { + \"description\": \"Shipping cost associated with the order.\", + \"multipleOf\": 0.01, + \"type\": \"number\" + }, + \"processStep\": { + \"description\": \"Current step in the purchase or checkout process.\", + \"maximum\": 2147483647, + \"minimum\": 0, + \"type\": \"integer\" + }, + \"taxAmount\": { + \"description\": \"Total tax applied to the transaction.\", + \"multipleOf\": 0.01, + \"type\": \"number\" + } + }, + \"self\": { + \"format\": \"jsonschema\", + \"name\": \"transactionDataObject\", + \"vendor\": \"com.ecommerce.analytics.tracking\", + \"version\": \"1-0-0\" + }, + \"type\": \"object\" + }" + json_object: "{ + \"asset_id\": \"minecraft:trim_pattern\", + \"description\": { + \"color\": \"#FFAA00\", + \"translate\": \"trim_pattern.description\" + }, + \"template_item\": \"minecraft:template_item\" + }" + - json_schema: "{ + \"$comment\": \"https://minecraft.fandom.com/wiki/Data_Pack\", + \"$id\": \"https://json.schemastore.org/minecraft-damage-type.json\", + \"$schema\": \"http://json-schema.org/draft-07/schema#\", + \"description\": \"A damage type's for a Minecraft data pack config schema\", + \"properties\": { + \"death_message_type\": { + \"enum\": [ + \"default\", + \"fall_variants\", + \"intentional_game_design\" + ], + \"type\": \"string\" + }, + \"effects\": { + \"enum\": [ + \"hurt\", + \"thorns\", + \"drowning\", + \"burning\", + \"poking\", + \"freezing\" + ], + \"type\": \"string\" + }, + \"exhaustion\": { + \"type\": \"number\" + }, + \"message_id\": { + \"type\": \"string\" + }, + \"scaling\": { + \"enum\": [ + \"never\", + \"always\", + \"when_caused_by_living_non_player\" + ], + \"type\": \"string\" + } + }, + \"required\": [ + \"message_id\", + \"scaling\", + \"exhaustion\" + ], + \"title\": \"Minecraft Data Pack Damage Type\", + \"type\": \"object\" + }" + json_object: "{ + \"message_id\": \"minecraft:damage.message\", + \"scaling\": \"always\", + \"exhaustion\": 0.3, + \"death_message_type\": \"default\", + \"effects\": \"hurt\" + }" + - json_schema: "{ + \"additionalProperties\": false, + \"description\": \"Schema for tracking e-commerce transaction details and metadata.\", + \"properties\": { + \"store\": { + \"description\": \"The store or seller associated with the transaction.\", + \"maxLength\": 500, + \"type\": \"string\" + }, + \"discountCode\": { + \"description\": \"Promotional code applied to the transaction.\", + \"maxLength\": 500, + \"type\": \"string\" + }, + \"currencyCode\": { + \"description\": \"ISO 4217 currency code for the transaction.\", + \"maxLength\": 3, + \"minLength\": 3, + \"type\": \"string\" + }, + \"transactionId\": { + \"description\": \"Unique identifier for the transaction.\", + \"maxLength\": 500, + \"type\": \"string\" + }, + \"productList\": { + \"description\": \"Identifier for the product list from which the purchase was made.\", + \"maxLength\": 500, + \"type\": \"string\" + }, + \"purchaseOption\": { + \"description\": \"Additional purchase options or preferences.\", + \"maxLength\": 500, + \"type\": \"string\" + }, + \"totalAmount\": { + \"description\": \"Total revenue generated from the transaction.\", + \"multipleOf\": 0.01, + \"type\": \"number\" + }, + \"deliveryCharge\": { + \"description\": \"Shipping cost associated with the order.\", + \"multipleOf\": 0.01, + \"type\": \"number\" + }, + \"processStep\": { + \"description\": \"Current step in the purchase or checkout process.\", + \"maximum\": 2147483647, + \"minimum\": 0, + \"type\": \"integer\" + }, + \"taxAmount\": { + \"description\": \"Total tax applied to the transaction.\", + \"multipleOf\": 0.01, + \"type\": \"number\" + } + }, + \"self\": { + \"format\": \"jsonschema\", + \"name\": \"transactionDataObject\", + \"vendor\": \"com.ecommerce.analytics.tracking\", + \"version\": \"1-0-0\" + }, + \"type\": \"object\" + }" + json_object: "{ + \"store\": \"TechGadgets Online\", + \"discountCode\": \"SUMMER20\", + \"currencyCode\": \"USD\", + \"transactionId\": \"TXN123456789\", + \"productList\": \"Best Sellers\", + \"purchaseOption\": \"Express Shipping\", + \"totalAmount\": 299.99, + \"deliveryCharge\": 5.99, + \"processStep\": 3, + \"taxAmount\": 20.50 + }" + - json_schema: "{ + \"properties\": { + \"date\": { + \"description\": \"The date of the meeting\", + \"type\": \"string\" + }, + \"time\": { + \"description\": \"The time of the meeting\", + \"type\": \"string\" + }, + \"participants\": { + \"description\": \"List of participants' emails\", + \"type\": \"array\", + \"items\": { + \"type\": \"string\" + } + } + }, + \"required\": [ + \"date\", + \"time\" + ], + \"type\": \"object\" + }" + json_object: "{ + \"date\": \"2024-09-30\", + \"time\": \"10:00 AM\", + \"participants\": [ + \"alice@example.com\", + \"bob@example.com\" + ] + }" diff --git a/lm-evaluation-harness/lm_eval/tasks/jsonschema_bench/jsonschema_bench_medium.yaml b/lm-evaluation-harness/lm_eval/tasks/jsonschema_bench/jsonschema_bench_medium.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8782f71ee0caafd6d2223624e304628a339728d7 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/jsonschema_bench/jsonschema_bench_medium.yaml @@ -0,0 +1,3 @@ +include: jsonschema_bench_easy.yaml +task: jsonschema_bench_medium +dataset_name: Github_medium diff --git a/lm-evaluation-harness/lm_eval/tasks/jsonschema_bench/metrics.py b/lm-evaluation-harness/lm_eval/tasks/jsonschema_bench/metrics.py new file mode 100644 index 0000000000000000000000000000000000000000..d1b075704a9f8e27954d6557e60322c98dc7a37d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/jsonschema_bench/metrics.py @@ -0,0 +1,110 @@ +import ipaddress +import json +import logging +import uuid +from typing import Any, Dict + + +# check if jsonschema is installed +try: + import jsonschema + from jsonschema import Draft202012Validator, FormatChecker, ValidationError +except ImportError as e: + raise ImportError( + "jsonschema is not installed. Please install it using 'pip install jsonschema[format]'" + ) from e + +eval_logger = logging.getLogger(__name__) + + +def is_json_schema_valid(schema: dict): + """ + Check if a JSON schema is valid. + + :param schema: A JSON schema. + :return: True if the schema is valid, False otherwise. + """ + try: + # Check if the schema is valid + jsonschema.Draft202012Validator.check_schema(schema) + return True + except jsonschema.SchemaError: + return False + + +# Initialize the FormatChecker +format_checker = FormatChecker() + + +# Add custom format checkers +@format_checker.checks("ipv4") +def ipv4_check(value): + ipaddress.IPv4Address(value) + + +@format_checker.checks("ipv6") +def ipv6_check(value): + ipaddress.IPv6Address(value) + + +@format_checker.checks("uuid") +def uuid_check(value): + uuid.UUID(value) + + +def schema_conform_with_format_checker( + instance: Dict[str, Any], schema: Dict[str, Any] +) -> bool: + """ + Validate a JSON instance against a schema with enhanced format checking. + + :param schema: The JSON schema to validate against. + :param instance: The JSON instance to validate. + :raises ValidationError: If the validation fails. + """ + # first check if the schema is valid + if not is_json_schema_valid(schema): + raise ValidationError("The JSON schema is invalid.") + validator = Draft202012Validator(schema, format_checker=format_checker) + try: + validator.validate(instance) + except ValidationError as e: + raise ValidationError(e.message) + return True + + +def schema_compliance(references: list[str], predictions: list[str]) -> bool: + assert len(references) == 1, ( + "We only have one reference for this task, which is the JSON schema." + ) + assert len(predictions) == 1, ( + "Currently, we don't support pass@k for JSON schema validation." + ) + reference = references[0] + prediction = predictions[0] # Since predictions is a list of lists + + json_schema = json.loads(reference.strip()) + try: + json_obj = json.loads(prediction.strip().strip("```").strip("json")) + except json.JSONDecodeError: + return False + + try: + schema_conform = schema_conform_with_format_checker(json_obj, json_schema) + except Exception as e: + eval_logger.error(f"Error: {e}") + return False + + return schema_conform + + +def json_validity(references: list[str], predictions: list[str]) -> bool: + assert len(predictions) == 1, ( + "Currently, we don't support pass@k for JSON schema validation." + ) + prediction = predictions[0] # Since predictions is a list of lists + try: + json.loads(prediction.strip().strip("```").strip("json").strip()) + except json.JSONDecodeError: + return False + return True diff --git a/lm-evaluation-harness/lm_eval/tasks/kbl/README.md b/lm-evaluation-harness/lm_eval/tasks/kbl/README.md new file mode 100644 index 0000000000000000000000000000000000000000..c415a1d5db23d721493b643f567a423ca452409f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kbl/README.md @@ -0,0 +1,127 @@ +# kbl + +### Paper + +Title: `Developing a Pragmatic Benchmark for Assessing Korean Legal Language Understanding in Large Language Models` + +Abstract: `Large language models (LLMs) have demonstrated remarkable performance in the legal domain, with GPT-4 even passing the Uniform Bar Exam in the U.S. However their efficacy remains limited for non-standardized tasks and tasks in languages other than English. This underscores the need for careful evaluation of LLMs within each legal system before application. Here, we introduce KBL, a benchmark for assessing the Korean legal language understanding of LLMs, consisting of (1) 7 legal knowledge tasks (510 examples), (2) 4 legal reasoning tasks (288 examples), and (3) the Korean bar exam (4 domains, 53 tasks, 2,510 examples). First two datasets were developed in close collaboration with lawyers to evaluate LLMs in practical scenarios in a certified manner. Furthermore, considering legal practitioners' frequent use of extensive legal documents for research, we assess LLMs in both a closed book setting, where they rely solely on internal knowledge, and a retrieval-augmented generation (RAG) setting, using a corpus of Korean statutes and precedents. The results indicate substantial room and opportunities for improvement.` + +`Korean Benchmark for Legal Language Understanding` + +Homepage: `https://github.com/lbox-kr/kbl` + + +### Citation + +``` +@inproceedings{kim2024kbl, + title = "Developing a Pragmatic Benchmark for Assessing {K}orean Legal Language Understanding in Large Language Models", + author = {Yeeun Kim and Young Rok Choi and Eunkyung Choi and Jinhwan Choi and Hai Jin Park and Wonseok Hwang}, + editor = "Al-Onaizan, Yaser and + Bansal, Mohit and + Chen, Yun-Nung", + booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2024", + month = nov, + year = "2024", + address = "Miami, Florida, USA", + publisher = "Association for Computational Linguistics", + url = "https://aclanthology.org/2024.findings-emnlp.319", + pages = "5573--5595", +} +``` + +### Groups, Tags, and Tasks + +#### Groups + +#### Tags + +* `kbl`: `All kbl tasks (7 knowledge, 4 reasoning, and 39 bar exam)` +* `kbl_knowledge_em`: `7 knowledge tasks` +* `kbl_reasoning_em`: `4 reasoning tasks` +* `kbl_bar_exam_em`: `53 bar exam tasks` +* `kbl_bar_exam_em_civil`: `13 bar exam tasks, civil law` +* `kbl_bar_exam_em_criminal`: `13 bar exam tasks, criminal law` +* `kbl_bar_exam_em_public`: `13 bar exam tasks, public law` +* `kbl_bar_exam_em_responsibility`: `14 bar exam tasks, professional responsibility (RESP) examination` + + +#### Tasks + +* `kbl_common_legal_mistake_qa_em`: `A QA task evaluating common legal misconceptions from the general public.` +* `kbl_knowledge_common_legal_mistake_qa_reasoning`: `Similar to 'kbl_common_legal_mistake_qa_em' but the answers are presented with correct/wrong rationals.` +* `kbl_knowledge_legal_concept_qa`: `A QA task addressing knowledge about complex legal concepts (legal terms).` +* `kbl_knowledge_offense_component_qa`: `A QA task evaluating whether a model knows specific actions meet the actual elements of a criminal offense.` +* `kbl_knowledge_query_and_statute_matching_qa`: `A QA task assessing whether the language model can accurately identify the relevant statute for a given query.` +* `kbl_knowledge_statute_hallucination_qa`: `A QA task evaluating whether a model can select the correct answer consists of a pair of (fictitious) statute and corresponding reasoning for given confusing legal questions.` +* `kbl_knowledge_statute_number_and_content_matching_qa`: `A QA dataset for evaluating where a model can accurately match the content of a law to its specific statute number.` +* `kbl_reasoning_case_relevance_qa_p`: `A QA task where a model needs to determine whether a given precedent is relavent to an input precedent.` +* `kbl_reasoning_case_relevance_qa_q`: `A QA task where a model needs to determine whether a given precedent is relavent to an input query.` +* `kbl_reasoning_causal_reasoning_qa`: `A QA task where a model needs to assess whether the defendant’s actions were the direct and decisive cause of the victim’s injury or death for each given factual description and claims.` +* `kbl_reasoning_statement_consistency_qa`: `A QA task where a model is required to accurately determine whether two presented statements are consistent with each other.` +* `bar_exam_civil_2012`: `Korean bar exam multiple-choice questions, civil law` +* `bar_exam_civil_2013`: `Korean bar exam multiple-choice questions, civil law` +* `bar_exam_civil_2014`: `Korean bar exam multiple-choice questions, civil law` +* `bar_exam_civil_2015`: `Korean bar exam multiple-choice questions, civil law` +* `bar_exam_civil_2016`: `Korean bar exam multiple-choice questions, civil law` +* `bar_exam_civil_2017`: `Korean bar exam multiple-choice questions, civil law` +* `bar_exam_civil_2018`: `Korean bar exam multiple-choice questions, civil law` +* `bar_exam_civil_2019`: `Korean bar exam multiple-choice questions, civil law` +* `bar_exam_civil_2020`: `Korean bar exam multiple-choice questions, civil law` +* `bar_exam_civil_2021`: `Korean bar exam multiple-choice questions, civil law` +* `bar_exam_civil_2022`: `Korean bar exam multiple-choice questions, civil law` +* `bar_exam_civil_2023`: `Korean bar exam multiple-choice questions, civil law` +* `bar_exam_civil_2024`: `Korean bar exam multiple-choice questions, civil law` +* `bar_exam_criminal_2012`: `Korean bar exam multiple-choice questions, criminal law` +* `bar_exam_criminal_2013`: `Korean bar exam multiple-choice questions, criminal law` +* `bar_exam_criminal_2014`: `Korean bar exam multiple-choice questions, criminal law` +* `bar_exam_criminal_2015`: `Korean bar exam multiple-choice questions, criminal law` +* `bar_exam_criminal_2016`: `Korean bar exam multiple-choice questions, criminal law` +* `bar_exam_criminal_2017`: `Korean bar exam multiple-choice questions, criminal law` +* `bar_exam_criminal_2018`: `Korean bar exam multiple-choice questions, criminal law` +* `bar_exam_criminal_2019`: `Korean bar exam multiple-choice questions, criminal law` +* `bar_exam_criminal_2020`: `Korean bar exam multiple-choice questions, criminal law` +* `bar_exam_criminal_2021`: `Korean bar exam multiple-choice questions, criminal law` +* `bar_exam_criminal_2022`: `Korean bar exam multiple-choice questions, criminal law` +* `bar_exam_criminal_2023`: `Korean bar exam multiple-choice questions, criminal law` +* `bar_exam_criminal_2024`: `Korean bar exam multiple-choice questions, criminal law` +* `bar_exam_public_2012`: `Korean bar exam multiple-choice questions, public law` +* `bar_exam_public_2013`: `Korean bar exam multiple-choice questions, public law` +* `bar_exam_public_2014`: `Korean bar exam multiple-choice questions, public law` +* `bar_exam_public_2015`: `Korean bar exam multiple-choice questions, public law` +* `bar_exam_public_2016`: `Korean bar exam multiple-choice questions, public law` +* `bar_exam_public_2017`: `Korean bar exam multiple-choice questions, public law` +* `bar_exam_public_2018`: `Korean bar exam multiple-choice questions, public law` +* `bar_exam_public_2019`: `Korean bar exam multiple-choice questions, public law` +* `bar_exam_public_2020`: `Korean bar exam multiple-choice questions, public law` +* `bar_exam_public_2021`: `Korean bar exam multiple-choice questions, public law` +* `bar_exam_public_2022`: `Korean bar exam multiple-choice questions, public law` +* `bar_exam_public_2023`: `Korean bar exam multiple-choice questions, public law` +* `bar_exam_public_2024`: `Korean bar exam multiple-choice questions, public law` +* `bar_exam_responsibility_2010`: `Korean bar exam multiple-choice questions, professional responsibility (RESP) examination` +* `bar_exam_responsibility_2011`: `Korean bar exam multiple-choice questions, professional responsibility (RESP) examination` +* `bar_exam_responsibility_2012`: `Korean bar exam multiple-choice questions, professional responsibility (RESP) examination` +* `bar_exam_responsibility_2013`: `Korean bar exam multiple-choice questions, professional responsibility (RESP) examination` +* `bar_exam_responsibility_2014`: `Korean bar exam multiple-choice questions, professional responsibility (RESP) examination` +* `bar_exam_responsibility_2015`: `Korean bar exam multiple-choice questions, professional responsibility (RESP) examination` +* `bar_exam_responsibility_2016`: `Korean bar exam multiple-choice questions, professional responsibility (RESP) examination` +* `bar_exam_responsibility_2017`: `Korean bar exam multiple-choice questions, professional responsibility (RESP) examination` +* `bar_exam_responsibility_2018`: `Korean bar exam multiple-choice questions, professional responsibility (RESP) examination` +* `bar_exam_responsibility_2019`: `Korean bar exam multiple-choice questions, professional responsibility (RESP) examination` +* `bar_exam_responsibility_2020`: `Korean bar exam multiple-choice questions, professional responsibility (RESP) examination` +* `bar_exam_responsibility_2021`: `Korean bar exam multiple-choice questions, professional responsibility (RESP) examination` +* `bar_exam_responsibility_2022`: `Korean bar exam multiple-choice questions, professional responsibility (RESP) examination` +* `bar_exam_responsibility_2023`: `Korean bar exam multiple-choice questions, professional responsibility (RESP) examination` + +### Checklist + +For adding novel benchmarks/datasets to the library: +* [ ] Is the task an existing benchmark in the literature? + * [ ] Have you referenced the original paper that introduced the task? + * [ ] If yes, does the original paper provide a reference implementation? If so, have you checked against the reference implementation and documented how to run such a test? + + +If other tasks on this dataset are already supported: +* [ ] Is the "Main" variant of this task clearly denoted? +* [ ] 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-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/_base_em_yaml b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/_base_em_yaml new file mode 100644 index 0000000000000000000000000000000000000000..5c1f854c009a8d492e0a3452076abfdcff6afea6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/_base_em_yaml @@ -0,0 +1,36 @@ +tag: + - kbl + - kbl_bar_exam_em + - kbl_bar_exam_em_civil +description: '당신은 사용자의 질문에 친절하고 논리적으로 답변해 주는 법률 전문가 챗봇 입니다.\n' +dataset_path: lbox/kbl +test_split: test +output_type: generate_until +doc_to_text: '### 질문: {{question}} + + 다음 각 선택지를 읽고 A, B, C, D, E 중 하나를 선택하여 ''답변: A'' 와 같이 단답식으로 답해 주세요. + + A. {{A}} + + B. {{B}} + + C. {{C}} + + D. {{D}} + + E. {{E}} + + ### 답변:' +doc_to_target: gt +metric_list: + - metric: exact_match + aggregation: mean + higher_is_better: true + ignore_case: true + ignore_punctuation: true +filter_list: + - name: get-answer + filter: + - function: regex + regex_pattern: ([A-E]).* + - function: take_first diff --git a/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2012.yaml b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2012.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1fb6a29df834acfe439fe819f623eaa680163dda --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2012.yaml @@ -0,0 +1,3 @@ +task: kbl_bar_exam_em_civil_2012 +dataset_name: bar_exam_civil_2012 +include: _base_em_yaml diff --git a/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2013.yaml b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2013.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a7a8b537f65d279c3711d1d6c8ae9e5ea30280c3 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2013.yaml @@ -0,0 +1,3 @@ +task: kbl_bar_exam_em_civil_2013 +dataset_name: bar_exam_civil_2013 +include: _base_em_yaml diff --git a/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2014.yaml b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2014.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a39f31cd7d7bb0713b4e88c1bb57feb1990cf9e3 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2014.yaml @@ -0,0 +1,3 @@ +task: kbl_bar_exam_em_civil_2014 +dataset_name: bar_exam_civil_2014 +include: _base_em_yaml diff --git a/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2015.yaml b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2015.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b3fe7ec896de1e62116241ba1496bdab62b9ce24 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2015.yaml @@ -0,0 +1,3 @@ +task: kbl_bar_exam_em_civil_2015 +dataset_name: bar_exam_civil_2015 +include: _base_em_yaml diff --git a/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2016.yaml b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2016.yaml new file mode 100644 index 0000000000000000000000000000000000000000..26f040c08f86bae57bc3a050a1978ed032d901ee --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2016.yaml @@ -0,0 +1,3 @@ +task: kbl_bar_exam_em_civil_2016 +dataset_name: bar_exam_civil_2016 +include: _base_em_yaml diff --git a/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2021.yaml b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2021.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ee77cdfd10f167a8da8db0a3c23ff7641534b8a6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2021.yaml @@ -0,0 +1,3 @@ +task: kbl_bar_exam_em_civil_2021 +dataset_name: bar_exam_civil_2021 +include: _base_em_yaml diff --git a/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2022.yaml b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2022.yaml new file mode 100644 index 0000000000000000000000000000000000000000..036c7955722a470aa8c00d90b05b7d8af2a31426 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2022.yaml @@ -0,0 +1,3 @@ +task: kbl_bar_exam_em_civil_2022 +dataset_name: bar_exam_civil_2022 +include: _base_em_yaml diff --git a/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2023.yaml b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2023.yaml new file mode 100644 index 0000000000000000000000000000000000000000..47342239c16d8e55571ed662bf44173bc1dfc4ea --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2023.yaml @@ -0,0 +1,3 @@ +task: kbl_bar_exam_em_civil_2023 +dataset_name: bar_exam_civil_2023 +include: _base_em_yaml diff --git a/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2025.yaml b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2025.yaml new file mode 100644 index 0000000000000000000000000000000000000000..be366cc364e4d6b093968c50de55cdc2b9192219 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/civil/kbl_bar_exam_em_civil_2025.yaml @@ -0,0 +1,3 @@ +task: kbl_bar_exam_em_civil_2025 +dataset_name: bar_exam_civil_2025 +include: _base_em_yaml diff --git a/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/criminal/_base_em_yaml b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/criminal/_base_em_yaml new file mode 100644 index 0000000000000000000000000000000000000000..b170dad754433986e81b180893f47354c3613aca --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/criminal/_base_em_yaml @@ -0,0 +1,36 @@ +tag: + - kbl + - kbl_bar_exam_em + - kbl_bar_exam_em_criminal +description: '당신은 사용자의 질문에 친절하고 논리적으로 답변해 주는 법률 전문가 챗봇 입니다.\n' +dataset_path: lbox/kbl +test_split: test +output_type: generate_until +doc_to_text: '### 질문: {{question}} + + 다음 각 선택지를 읽고 A, B, C, D, E 중 하나를 선택하여 ''답변: A'' 와 같이 단답식으로 답해 주세요. + + A. {{A}} + + B. {{B}} + + C. {{C}} + + D. {{D}} + + E. {{E}} + + ### 답변:' +doc_to_target: gt +metric_list: + - metric: exact_match + aggregation: mean + higher_is_better: true + ignore_case: true + ignore_punctuation: true +filter_list: + - name: get-answer + filter: + - function: regex + regex_pattern: ([A-E]).* + - function: take_first diff --git a/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/criminal/kbl_bar_exam_em_criminal_2012.yaml b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/criminal/kbl_bar_exam_em_criminal_2012.yaml new file mode 100644 index 0000000000000000000000000000000000000000..79b819277c8278357278ffbd9215aa2c63e471fc --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/criminal/kbl_bar_exam_em_criminal_2012.yaml @@ -0,0 +1,3 @@ +task: kbl_bar_exam_em_criminal_2012 +dataset_name: bar_exam_criminal_2012 +include: _base_em_yaml diff --git a/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/criminal/kbl_bar_exam_em_criminal_2015.yaml b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/criminal/kbl_bar_exam_em_criminal_2015.yaml new file mode 100644 index 0000000000000000000000000000000000000000..db7607428f6c865d77f27b395e120d5746192f65 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kbl/bar_exam/criminal/kbl_bar_exam_em_criminal_2015.yaml @@ -0,0 +1,3 @@ +task: kbl_bar_exam_em_criminal_2015 +dataset_name: bar_exam_criminal_2015 +include: _base_em_yaml diff --git a/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_geomatics.yaml b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_geomatics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..53b52e96edcbc0ba14701c764dd9d46863c54083 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_geomatics.yaml @@ -0,0 +1,4 @@ +dataset_name: geomatics +include: _hard_kmmlu_yaml +task: kmmlu_hard_geomatics +tag: kmmlu_hard_applied_science_tasks diff --git a/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_machine_design_and_manufacturing.yaml b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_machine_design_and_manufacturing.yaml new file mode 100644 index 0000000000000000000000000000000000000000..210ffd8feb379377d5613aea89d98240c387a94f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_machine_design_and_manufacturing.yaml @@ -0,0 +1,4 @@ +dataset_name: machine_design_and_manufacturing +include: _hard_kmmlu_yaml +task: kmmlu_hard_machine_design_and_manufacturing +tag: kmmlu_hard_applied_science_tasks diff --git a/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_marketing.yaml b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_marketing.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f86cfe17bc530b2e54c658b70da9d8f8499cc7d5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_marketing.yaml @@ -0,0 +1,4 @@ +dataset_name: marketing +include: _hard_kmmlu_yaml +task: kmmlu_hard_marketing +tag: kmmlu_hard_other_tasks diff --git a/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_materials_engineering.yaml b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_materials_engineering.yaml new file mode 100644 index 0000000000000000000000000000000000000000..684120a077fa5616eb52cbdee9c1603b60ab135b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_materials_engineering.yaml @@ -0,0 +1,4 @@ +dataset_name: materials_engineering +include: _hard_kmmlu_yaml +task: kmmlu_hard_materials_engineering +tag: kmmlu_hard_stem_tasks diff --git a/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_math.yaml b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_math.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ed125f90bfa20a14fafd64e24c1f18d5ede0544d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_math.yaml @@ -0,0 +1,4 @@ +dataset_name: math +include: _hard_kmmlu_yaml +task: kmmlu_hard_math +tag: kmmlu_hard_stem_tasks diff --git a/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_nondestructive_testing.yaml b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_nondestructive_testing.yaml new file mode 100644 index 0000000000000000000000000000000000000000..acf3ed9fd9e1909c058393d6230513ba34496cac --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_nondestructive_testing.yaml @@ -0,0 +1,4 @@ +dataset_name: nondestructive_testing +include: _hard_kmmlu_yaml +task: kmmlu_hard_nondestructive_testing +tag: kmmlu_hard_applied_science_tasks diff --git a/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_patent.yaml b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_patent.yaml new file mode 100644 index 0000000000000000000000000000000000000000..910f11c54c781cc0f443e83827e09b2d0790775d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_patent.yaml @@ -0,0 +1,4 @@ +dataset_name: patent +include: _hard_kmmlu_yaml +task: kmmlu_hard_patent +tag: kmmlu_hard_other_tasks diff --git a/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_political_science_and_sociology.yaml b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_political_science_and_sociology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7b7addfdb3f6defb0c41d8d62eb07ed35adbdc53 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_political_science_and_sociology.yaml @@ -0,0 +1,4 @@ +dataset_name: political_science_and_sociology +include: _hard_kmmlu_yaml +task: kmmlu_hard_political_science_and_sociology +tag: kmmlu_hard_humss_tasks diff --git a/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_psychology.yaml b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_psychology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a6d8b754e2bac711ba8a698c0dbb8c6ad8b962fe --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_psychology.yaml @@ -0,0 +1,4 @@ +dataset_name: psychology +include: _hard_kmmlu_yaml +task: kmmlu_hard_psychology +tag: kmmlu_hard_humss_tasks diff --git a/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_public_safety.yaml b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_public_safety.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8b04b78e59f49a477864206679bcc060ca87313d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_public_safety.yaml @@ -0,0 +1,4 @@ +dataset_name: public_safety +include: _hard_kmmlu_yaml +task: kmmlu_hard_public_safety +tag: kmmlu_hard_other_tasks diff --git a/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_railway_and_automotive_engineering.yaml b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_railway_and_automotive_engineering.yaml new file mode 100644 index 0000000000000000000000000000000000000000..358b7e36ab0701226f2331daac734d24e1f84402 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_railway_and_automotive_engineering.yaml @@ -0,0 +1,4 @@ +dataset_name: railway_and_automotive_engineering +include: _hard_kmmlu_yaml +task: kmmlu_hard_railway_and_automotive_engineering +tag: kmmlu_hard_applied_science_tasks diff --git a/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_real_estate.yaml b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_real_estate.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9010e2a746f72c4798e2f632e806330280c8bbd5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_real_estate.yaml @@ -0,0 +1,4 @@ +dataset_name: real_estate +include: _hard_kmmlu_yaml +task: kmmlu_hard_real_estate +tag: kmmlu_hard_other_tasks diff --git a/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_refrigerating_machinery.yaml b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_refrigerating_machinery.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5f03b70ba22ceff0fa5f5a59685f38aef3c0f33e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_refrigerating_machinery.yaml @@ -0,0 +1,4 @@ +dataset_name: refrigerating_machinery +include: _hard_kmmlu_yaml +task: kmmlu_hard_refrigerating_machinery +tag: kmmlu_hard_other_tasks diff --git a/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_social_welfare.yaml b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_social_welfare.yaml new file mode 100644 index 0000000000000000000000000000000000000000..24f105e4677e7461087037e51f9f66add272fb35 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_social_welfare.yaml @@ -0,0 +1,4 @@ +dataset_name: social_welfare +include: _hard_kmmlu_yaml +task: kmmlu_hard_social_welfare +tag: kmmlu_hard_humss_tasks diff --git a/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_taxation.yaml b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_taxation.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7d0bbf86c55f992089437285d57e3f8df5aecae6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_taxation.yaml @@ -0,0 +1,4 @@ +dataset_name: taxation +include: _hard_kmmlu_yaml +task: kmmlu_hard_taxation +tag: kmmlu_hard_humss_tasks diff --git a/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_telecommunications_and_wireless_technology.yaml b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_telecommunications_and_wireless_technology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c1398c5f32d4b5635f21b627f05f7b8d7971f94b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kmmlu/hard/kmmlu_hard_telecommunications_and_wireless_technology.yaml @@ -0,0 +1,4 @@ +dataset_name: telecommunications_and_wireless_technology +include: _hard_kmmlu_yaml +task: kmmlu_hard_telecommunications_and_wireless_technology +tag: kmmlu_hard_applied_science_tasks diff --git a/lm-evaluation-harness/lm_eval/tasks/kobest/README.md b/lm-evaluation-harness/lm_eval/tasks/kobest/README.md new file mode 100644 index 0000000000000000000000000000000000000000..5a160da77140f37244dde849f42ab5b3f223a0a4 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kobest/README.md @@ -0,0 +1,37 @@ +# LAMBADA + +### Paper +Title: `KOBEST: Korean Balanced Evaluation of Significant Tasks` + +Abstract: https://arxiv.org/abs/2204.04541 + +A well-formulated benchmark plays a critical role in spurring advancements in the natural language processing (NLP) field, as it allows objective and precise evaluation of diverse models. As modern language models (LMs) have become more elaborate and sophisticated, more difficult benchmarks that require linguistic knowledge and reasoning have been proposed. However, most of these benchmarks only support English, and great effort is necessary to construct benchmarks for other low resource languages. To this end, we propose a new benchmark named Korean balanced evaluation of significant tasks (KoBEST), which consists of five Korean-language downstream tasks. Professional Korean linguists designed the tasks that require advanced Korean linguistic knowledge. Moreover, our data is purely annotated by humans and thoroughly reviewed to guarantee high data quality. We also provide baseline models and human performance results. Our dataset is available on the Huggingface. + + +Homepage: https://huggingface.co/datasets/skt/kobest_v1 + +### Groups and Tasks + +#### Groups + +- `kobest` + +#### Tasks + +- `kobest_boolq` +- `kobest_copa` +- `kobest_hallawag` +- `kobest_sentineg` +- `kobest_wic` + + +### Citation + +@misc{ + author={Dohyeong Kim, Myeongjun Jang, Deuk Sin Kwon, Eric Davis}, + title={KOBEST: Korean Balanced Evaluation of Significant Tasks}, + DOI={https://doi.org/10.48550/arXiv.2204.04541}, + publisher={arXiv}, + year={2022}, + month={Apr} +} diff --git a/lm-evaluation-harness/lm_eval/tasks/kobest/_kobest.yaml b/lm-evaluation-harness/lm_eval/tasks/kobest/_kobest.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cf23f6643a37a0031c947c67474b0197eb864f28 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kobest/_kobest.yaml @@ -0,0 +1,19 @@ +group: kobest +task: + - kobest_boolq + - kobest_copa + - kobest_hellaswag + - kobest_sentineg + - kobest_wic +aggregate_metric_list: + - metric: acc + aggregation: mean + weight_by_size: true + - metric: acc_norm + aggregation: mean + weight_by_size: true + - metric: f1 + aggregation: mean + weight_by_size: true +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/kobest/kobest_boolq.yaml b/lm-evaluation-harness/lm_eval/tasks/kobest/kobest_boolq.yaml new file mode 100644 index 0000000000000000000000000000000000000000..41306b4fa5c220be9661bf20a73f96ec08205837 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kobest/kobest_boolq.yaml @@ -0,0 +1,21 @@ +task: kobest_boolq +dataset_path: skt/kobest_v1 +dataset_name: boolq +output_type: multiple_choice +training_split: train +validation_split: validation +test_split: test +doc_to_text: "{{paragraph}} 질문: {{question}} 답변: " +doc_to_target: "{{label}}" +doc_to_choice: ["아니오", "예"] +metric_list: + - metric: acc + aggregation: mean + higher_is_better: True + - metric: f1 + aggregation: !function utils.macro_f1_score + average: macro + hf_evaluate: true + higher_is_better: True +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/kobest/kobest_copa.yaml b/lm-evaluation-harness/lm_eval/tasks/kobest/kobest_copa.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f6c5b9099634677bdfa56851e77d8a086fa6c940 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kobest/kobest_copa.yaml @@ -0,0 +1,21 @@ +task: kobest_copa +dataset_path: skt/kobest_v1 +dataset_name: copa +output_type: multiple_choice +training_split: train +validation_split: validation +test_split: test +doc_to_text: !function utils.copa_doc_to_text +doc_to_target: !function utils.copa_doc_to_target +doc_to_choice: !function utils.copa_doc_to_choice +metric_list: + - metric: acc + aggregation: mean + higher_is_better: True + - metric: f1 + aggregation: !function utils.macro_f1_score + average: macro + hf_evaluate: true + higher_is_better: True +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/kobest/kobest_hellaswag.yaml b/lm-evaluation-harness/lm_eval/tasks/kobest/kobest_hellaswag.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0ed3d03da7a5dcc5126cc5c8d553c2e74a1094d1 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kobest/kobest_hellaswag.yaml @@ -0,0 +1,25 @@ +task: kobest_hellaswag +dataset_path: skt/kobest_v1 +dataset_name: hellaswag +training_split: train +validation_split: validation +output_type: multiple_choice +test_split: test +doc_to_text: "{{query}}" +doc_to_target: "{{label}}" +process_docs: !function utils.hellaswag_process_doc +doc_to_choice: "choices" +metric_list: + - metric: acc + aggregation: mean + higher_is_better: True + - metric: acc_norm + aggregation: mean + higher_is_better: True + - metric: f1 + aggregation: !function utils.macro_f1_score + average: macro + hf_evaluate: true + higher_is_better: True +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/kobest/kobest_sentineg.yaml b/lm-evaluation-harness/lm_eval/tasks/kobest/kobest_sentineg.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6959b5026512890e1716757875b9c3845c83c4aa --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kobest/kobest_sentineg.yaml @@ -0,0 +1,23 @@ +task: kobest_sentineg +dataset_path: skt/kobest_v1 +dataset_name: sentineg +output_type: multiple_choice +training_split: train +validation_split: validation +test_split: test +doc_to_text: !function utils.sentineg_doc_to_text +doc_to_target: "{{label}}" +doc_to_choice: ["부정", "긍정"] +metric_list: + - metric: acc + aggregation: mean + higher_is_better: True + - metric: f1 + aggregation: !function utils.macro_f1_score + average: macro + hf_evaluate: true + higher_is_better: True +metadata: + version: 1.0 +dataset_kwargs: + trust_remote_code: true diff --git a/lm-evaluation-harness/lm_eval/tasks/kobest/kobest_wic.yaml b/lm-evaluation-harness/lm_eval/tasks/kobest/kobest_wic.yaml new file mode 100644 index 0000000000000000000000000000000000000000..18bd0a500f69e9d474034b92215cddf3effb2776 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kobest/kobest_wic.yaml @@ -0,0 +1,23 @@ +task: kobest_wic +dataset_path: skt/kobest_v1 +dataset_name: wic +output_type: multiple_choice +training_split: train +validation_split: validation +test_split: test +doc_to_text: !function utils.wic_doc_to_text +doc_to_target: "{{label}}" +doc_to_choice: ['아니오', '예'] +metric_list: + - metric: acc + aggregation: mean + higher_is_better: True + - metric: f1 + aggregation: !function utils.macro_f1_score + average: macro + hf_evaluate: true + higher_is_better: True +metadata: + version: 1.0 +dataset_kwargs: + trust_remote_code: true diff --git a/lm-evaluation-harness/lm_eval/tasks/kobest/utils.py b/lm-evaluation-harness/lm_eval/tasks/kobest/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..fb1c5ef9495d141f6a712ff6a163041f55118738 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kobest/utils.py @@ -0,0 +1,49 @@ +from datasets import Dataset + + +def copa_doc_to_text(doc: dict) -> str: + connector = {"원인": " 왜냐하면", "결과": " 그래서"}[doc["question"].strip()] + return f"""{doc["premise"]} {connector}""" + + +def copa_doc_to_target(doc: dict) -> str: + correct_choice = doc["alternative_1"] if doc["label"] == 0 else doc["alternative_2"] + return f"""{correct_choice}""" + + +def copa_doc_to_choice(doc: dict) -> list: + return [f"""{doc["alternative_1"]}""", f"""{doc["alternative_2"]}"""] + + +def sentineg_doc_to_text(doc: dict): + return f"""문장: {doc["sentence"]} 긍부정:""" + + +def wic_doc_to_text(doc: dict) -> str: + return f"""문장1: {doc["context_1"]} 문장2: {doc["context_2"]} 두 문장에서 {doc["word"]}가 같은 뜻으로 쓰였나?""" + + +def hellaswag_process_doc(doc: Dataset) -> Dataset: + def preprocessor(dataset): + return { + "query": f"""문장: {dataset["context"]}""", + "choices": [ + dataset["ending_1"], + dataset["ending_2"], + dataset["ending_3"], + dataset["ending_4"], + ], + "gold": int(dataset["label"]), + } + + return doc.map(preprocessor) + + +def macro_f1_score(items): + from sklearn.metrics import f1_score + + unzipped_list = list(zip(*items)) + golds = unzipped_list[0] + preds = unzipped_list[1] + fscore = f1_score(golds, preds, average="macro") + return fscore diff --git a/lm-evaluation-harness/lm_eval/tasks/kormedmcqa/README.md b/lm-evaluation-harness/lm_eval/tasks/kormedmcqa/README.md new file mode 100644 index 0000000000000000000000000000000000000000..54a666a1a675fb21a66de8dd0e07bddbaa8efcce --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kormedmcqa/README.md @@ -0,0 +1,48 @@ +# KorMedMCQA + +### Paper + +Title: `KorMedMCQA: Multi-Choice Question Answering Benchmark for Korean Healthcare Professional Licensing Examinations` + +Abstract: `We introduce KorMedMCQA, the first Korean multiple-choice question answering (MCQA) benchmark derived from Korean healthcare professional licensing examinations, covering from the year 2012 to year 2023. This dataset consists of a selection of questions from the license examinations for doctors, nurses, and pharmacists, featuring a diverse array of subjects. We conduct baseline experiments on various large language models, including proprietary/open-source, multilingual/Korean-additional pretrained, and clinical context pretrained models, highlighting the potential for further enhancements. We make our data publicly available on HuggingFace and provide a evaluation script via LM-Harness, inviting further exploration and advancement in Korean healthcare environments.` + + +Paper : https://arxiv.org/abs/2403.01469 + +Homepage: https://huggingface.co/datasets/sean0042/KorMedMCQA + + +### Citation + +``` +@article{kweon2024kormedmcqa, + title={KorMedMCQA: Multi-Choice Question Answering Benchmark for Korean Healthcare Professional Licensing Examinations}, + author={Sunjun Kweon and Byungjin Choi and Minkyu Kim and Rae Woong Park and Edward Choi}, + journal={arXiv preprint arXiv:2403.01469}, + year={2024} +} +``` + +### Groups and Tasks + +* `kormedmcqa`: Runs `kormedmcqa_doctor`, `kormedmcqa_nurse`, `kormedmcqa_pharm`, and `kormedmcqa_dentist`. + +#### Tasks + +* `kormedmcqa_doctor`: `Official Korean Doctor Examination` +* `kormedmcqa_nurse`: `Official Korean Nurse Examination` +* `kormedmcqa_pharm`: `Official Korean Pharmacist Examination` +* `kormedmcqa_dentist`: `Official Korean Dentist Examination` + +### Checklist + +For adding novel benchmarks/datasets to the library: +* [ ] Is the task an existing benchmark in the literature? + * [ ] Have you referenced the original paper that introduced the task? + * [ ] If yes, does the original paper provide a reference implementation? If so, have you checked against the reference implementation and documented how to run such a test? + + +If other tasks on this dataset are already supported: +* [ ] Is the "Main" variant of this task clearly denoted? +* [ ] 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-evaluation-harness/lm_eval/tasks/kormedmcqa/_kormedmcqa.yaml b/lm-evaluation-harness/lm_eval/tasks/kormedmcqa/_kormedmcqa.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cac2329e7547365ac78538211f7229701aa457ce --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kormedmcqa/_kormedmcqa.yaml @@ -0,0 +1,12 @@ +group: kormedmcqa +task: + - kormedmcqa_doctor + - kormedmcqa_nurse + - kormedmcqa_pharm + - kormedmcqa_dentist +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: true +metadata: + version: 2.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/kormedmcqa/_template_yaml b/lm-evaluation-harness/lm_eval/tasks/kormedmcqa/_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..1dae2062d184e8190e80ea686574849825439493 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kormedmcqa/_template_yaml @@ -0,0 +1,33 @@ +dataset_path : sean0042/KorMedMCQA +test_split : test +fewshot_split : fewshot +fewshot_config: + sampler: first_n + doc_to_text: "{{question.strip()}}\nA. {{A}}\nB. {{B}}\nC. {{C}}\nD. {{D}}\nE. {{E}}\n정답: {{['A', 'B', 'C', 'D', 'E'][answer-1]}}\n\n" + doc_to_target: "" +output_type: generate_until +doc_to_text: "{{question.strip()}}\nA. {{A}}\nB. {{B}}\nC. {{C}}\nD. {{D}}\nE. {{E}}\n정답:" +doc_to_target: "{{['A', 'B', 'C', 'D', 'E'][answer-1]}}" +metric_list: + - metric: exact_match + aggregation: mean + higher_is_better: true + ignore_case: true + ignore_punctuation: true + regexes_to_ignore: + - " " + - "\n" +generation_kwargs: + until: + - "Q:" + - "" + - "<|im_end|>" + - "." + - "\n\n" + do_sample: false + temperature: 0.0 + max_gen_toks: 1024 +metadata: + version: 2.0 +dataset_kwargs: + trust_remote_code: true diff --git a/lm-evaluation-harness/lm_eval/tasks/kormedmcqa/dentist.yaml b/lm-evaluation-harness/lm_eval/tasks/kormedmcqa/dentist.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6a46c7715ab0ca72aaf8eed80532db467aa188bc --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kormedmcqa/dentist.yaml @@ -0,0 +1,3 @@ +include: _template_yaml +dataset_name: dentist +task: kormedmcqa_dentist diff --git a/lm-evaluation-harness/lm_eval/tasks/kormedmcqa/nurse.yaml b/lm-evaluation-harness/lm_eval/tasks/kormedmcqa/nurse.yaml new file mode 100644 index 0000000000000000000000000000000000000000..95894a5d73f17d39fe1ae0061d8dca7045a863df --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kormedmcqa/nurse.yaml @@ -0,0 +1,3 @@ +include: _template_yaml +dataset_name: nurse +task: kormedmcqa_nurse diff --git a/lm-evaluation-harness/lm_eval/tasks/kormedmcqa/pharm.yaml b/lm-evaluation-harness/lm_eval/tasks/kormedmcqa/pharm.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8075fae3f8666e93eeefc0dafaf1b70adb48f6af --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/kormedmcqa/pharm.yaml @@ -0,0 +1,3 @@ +include: _template_yaml +dataset_name: pharm +task: kormedmcqa_pharm diff --git a/lm-evaluation-harness/lm_eval/tasks/lambada/README.md b/lm-evaluation-harness/lm_eval/tasks/lambada/README.md new file mode 100644 index 0000000000000000000000000000000000000000..ac2b92b553c35a5dc070017b6bebb643e314d64e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/lambada/README.md @@ -0,0 +1,39 @@ +# LAMBADA + +### Paper +Title: `The LAMBADA dataset: Word prediction requiring a broad discourse context` + +Abstract: https://arxiv.org/pdf/1606.06031.pdf + +LAMBADA is a dataset to evaluate the capabilities of computational models for text +understanding by means of a word prediction task. LAMBADA is a collection of narrative +passages sharing the characteristic that human subjects are able to guess their last +word if they are exposed to the whole passage, but not if they only see the last +sentence preceding the target word. To succeed on LAMBADA, computational models +cannot simply rely on local context, but must be able to keep track of information +in the broader discourse. + +Homepage: https://zenodo.org/record/2630551#.X4Xzn5NKjUI + +### Groups and Tasks + +#### Groups + +- `lambada` + +#### Tasks + +- `lambada_openai` +- `lambada_standard` + + +### Citation + +@misc{ + author={Paperno, Denis and Kruszewski, Germán and Lazaridou, Angeliki and Pham, Quan Ngoc and Bernardi, Raffaella and Pezzelle, Sandro and Baroni, Marco and Boleda, Gemma and Fernández, Raquel}, + title={The LAMBADA dataset}, + DOI={10.5281/zenodo.2630551}, + publisher={Zenodo}, + year={2016}, + month={Aug} +} diff --git a/lm-evaluation-harness/lm_eval/tasks/lambada/lambada_openai.yaml b/lm-evaluation-harness/lm_eval/tasks/lambada/lambada_openai.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8808b5fdf278fe6ad541129455c6c8d4cd1b52bc --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/lambada/lambada_openai.yaml @@ -0,0 +1,22 @@ +tag: + - lambada +task: lambada_openai +dataset_path: EleutherAI/lambada_openai +dataset_name: default +output_type: loglikelihood +test_split: test +doc_to_text: "{{text.split(' ')[:-1]|join(' ')}}" +doc_to_target: "{{' '+text.split(' ')[-1]}}" +should_decontaminate: true +doc_to_decontamination_query: "{{text}}" +metric_list: + - metric: perplexity + aggregation: perplexity + higher_is_better: false + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 1.0 +dataset_kwargs: + trust_remote_code: true diff --git a/lm-evaluation-harness/lm_eval/tasks/lambada/lambada_standard.yaml b/lm-evaluation-harness/lm_eval/tasks/lambada/lambada_standard.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f76c8dfe3e234abee806219011f9bc5ac30c893f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/lambada/lambada_standard.yaml @@ -0,0 +1,21 @@ +tag: + - lambada +task: lambada_standard +dataset_path: lambada +dataset_name: null +output_type: loglikelihood +validation_split: validation +test_split: test +doc_to_text: "{{text.split(' ')[:-1]|join(' ')}}" +doc_to_target: "{{' '+text.split(' ')[-1]}}" +should_decontaminate: true +doc_to_decontamination_query: "{{text}}" +metric_list: + - metric: perplexity + aggregation: perplexity + higher_is_better: false + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/lambada_cloze/README.md b/lm-evaluation-harness/lm_eval/tasks/lambada_cloze/README.md new file mode 100644 index 0000000000000000000000000000000000000000..9d33dce59bab7a4736b822d20cc973669d1b3874 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/lambada_cloze/README.md @@ -0,0 +1,56 @@ +# LAMBADA Cloze + +### Paper + +Title: `The LAMBADA dataset: Word prediction requiring a broad discourse context` + +Abstract: https://arxiv.org/abs/1606.06031 + +Cloze-style LAMBADA dataset. +LAMBADA is a dataset to evaluate the capabilities of computational models for text +understanding by means of a word prediction task. LAMBADA is a collection of narrative +passages sharing the characteristic that human subjects are able to guess their last +word if they are exposed to the whole passage, but not if they only see the last +sentence preceding the target word. To succeed on LAMBADA, computational models +cannot simply rely on local context, but must be able to keep track of information +in the broader discourse. + +Homepage: https://zenodo.org/record/2630551#.X4Xzn5NKjUI + + +### Citation + +``` +@misc{ + author={Paperno, Denis and Kruszewski, Germán and Lazaridou, Angeliki and Pham, Quan Ngoc and Bernardi, Raffaella and Pezzelle, Sandro and Baroni, Marco and Boleda, Gemma and Fernández, Raquel}, + title={The LAMBADA dataset}, + DOI={10.5281/zenodo.2630551}, + publisher={Zenodo}, + year={2016}, + month={Aug} +} +``` + +### Groups and Tasks + +#### Groups + +* `lambada_cloze` + +#### Tasks + +* `lambada_openai_cloze_yaml` +* `lambada_standard_cloze_yaml` + +### Checklist + +For adding novel benchmarks/datasets to the library: +* [ ] Is the task an existing benchmark in the literature? + * [ ] Have you referenced the original paper that introduced the task? + * [ ] If yes, does the original paper provide a reference implementation? If so, have you checked against the reference implementation and documented how to run such a test? + + +If other tasks on this dataset are already supported: +* [ ] Is the "Main" variant of this task clearly denoted? +* [ ] 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-evaluation-harness/lm_eval/tasks/lambada_cloze/lambada_openai_cloze.yaml b/lm-evaluation-harness/lm_eval/tasks/lambada_cloze/lambada_openai_cloze.yaml new file mode 100644 index 0000000000000000000000000000000000000000..602a3ff44dc6383f47ed4799c4bd3f619f8ff136 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/lambada_cloze/lambada_openai_cloze.yaml @@ -0,0 +1,20 @@ +tag: + - lambada_cloze +task: lambada_openai_cloze_yaml +dataset_path: EleutherAI/lambada_openai +dataset_name: default +output_type: loglikelihood +test_split: test +doc_to_text: "{{text.split(' ')[:-1]|join(' ')}} ____. ->" +doc_to_target: "{{' '+text.split(' ')[-1]}}" +should_decontaminate: true +doc_to_decontamination_query: "{{text}}" +metric_list: + - metric: perplexity + aggregation: perplexity + higher_is_better: false + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/lambada_cloze/lambada_standard_cloze.yaml b/lm-evaluation-harness/lm_eval/tasks/lambada_cloze/lambada_standard_cloze.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9c1568b3394f03b22bb9a4ab20bf35bdda3b9440 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/lambada_cloze/lambada_standard_cloze.yaml @@ -0,0 +1,21 @@ +tag: + - lambada_cloze +task: lambada_standard_cloze_yaml +dataset_path: lambada +dataset_name: null +output_type: loglikelihood +validation_split: validation +test_split: test +doc_to_text: "{{text.split(' ')[:-1]|join(' ')}} ____. ->" +doc_to_target: "{{' '+text.split(' ')[-1]}}" +should_decontaminate: true +doc_to_decontamination_query: "{{text}}" +metric_list: + - metric: perplexity + aggregation: perplexity + higher_is_better: false + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual/README.md b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual/README.md new file mode 100644 index 0000000000000000000000000000000000000000..3845c95ca3839bea04e6d49d4a373515012f78da --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual/README.md @@ -0,0 +1,49 @@ +# LAMBADA + +### Paper +The LAMBADA dataset: Word prediction requiring a broad discourse context +https://arxiv.org/pdf/1606.06031.pdf + +LAMBADA is a dataset to evaluate the capabilities of computational models for text +understanding by means of a word prediction task. LAMBADA is a collection of narrative +passages sharing the characteristic that human subjects are able to guess their last +word if they are exposed to the whole passage, but not if they only see the last +sentence preceding the target word. To succeed on LAMBADA, computational models +cannot simply rely on local context, but must be able to keep track of information +in the broader discourse. + +Homepage: https://zenodo.org/record/2630551#.X4Xzn5NKjUI + +### Citation + +@misc{ + author={Paperno, Denis and Kruszewski, Germán and Lazaridou, Angeliki and Pham, Quan Ngoc and Bernardi, Raffaella and Pezzelle, Sandro and Baroni, Marco and Boleda, Gemma and Fernández, Raquel}, + title={The LAMBADA dataset}, + DOI={10.5281/zenodo.2630551}, + publisher={Zenodo}, + year={2016}, + month={Aug} +} + +### Groups and Tasks + +#### Groups + +* `lambada_multilingual`: Evaluates all `lambada_mt_X` tasks + +#### Tasks + +* `lambada_mt_{en, fr, de, it, es}`: Machine-translated versions of OpenAI's Lambada variant. + +### 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? If so, have you checked against the reference implementation and documented how to run such a test? +(This task is novel to the Evaluation Harness, and has been checked against v0.3.0 of the harness.) + + +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? +* [x] Have you noted which, if any, published evaluation setups are matched by this variant? diff --git a/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual/lambada_mt_de.yaml b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual/lambada_mt_de.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ef24c84eddbae9e24f6ce0a229b4ede28ee1e83e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual/lambada_mt_de.yaml @@ -0,0 +1,3 @@ +include: lambada_mt_en.yaml +task: lambada_openai_mt_de +dataset_name: de diff --git a/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual/lambada_mt_en.yaml b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual/lambada_mt_en.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8af05cdb00d322d40991d97af111695b840e6860 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual/lambada_mt_en.yaml @@ -0,0 +1,20 @@ +tag: + - lambada_multilingual +task: lambada_openai_mt_en +dataset_path: EleutherAI/lambada_openai +dataset_name: en +output_type: loglikelihood +test_split: test +doc_to_text: "{{text.split(' ')[:-1]|join(' ')}}" +doc_to_target: "{{' '+text.split(' ')[-1]}}" +should_decontaminate: true +doc_to_decontamination_query: "{{text}}" +metric_list: + - metric: perplexity + aggregation: perplexity + higher_is_better: false + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual/lambada_mt_es.yaml b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual/lambada_mt_es.yaml new file mode 100644 index 0000000000000000000000000000000000000000..afe53b00d3eeff6b6b12549d2176fe25ba39db02 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual/lambada_mt_es.yaml @@ -0,0 +1,3 @@ +include: lambada_mt_en.yaml +task: lambada_openai_mt_es +dataset_name: es diff --git a/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual/lambada_mt_fr.yaml b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual/lambada_mt_fr.yaml new file mode 100644 index 0000000000000000000000000000000000000000..dee21c03d61913c64ff56690a531fe918fe08eee --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual/lambada_mt_fr.yaml @@ -0,0 +1,3 @@ +include: lambada_mt_en.yaml +task: lambada_openai_mt_fr +dataset_name: fr diff --git a/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual/lambada_mt_it.yaml b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual/lambada_mt_it.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2c7a929a4ea9df369f2c82610f6c59d28fdf45bf --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual/lambada_mt_it.yaml @@ -0,0 +1,3 @@ +include: lambada_mt_en.yaml +task: lambada_openai_mt_it +dataset_name: it diff --git a/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/README.md b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/README.md new file mode 100644 index 0000000000000000000000000000000000000000..546ac1168604d2980736cb538f89b19570842cb5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/README.md @@ -0,0 +1,56 @@ +# LAMBADA + +### Paper +The LAMBADA dataset: Word prediction requiring a broad discourse context +https://arxiv.org/pdf/1606.06031.pdf + +LAMBADA is a dataset to evaluate the capabilities of computational models for text +understanding by means of a word prediction task. LAMBADA is a collection of narrative +passages sharing the characteristic that human subjects are able to guess their last +word if they are exposed to the whole passage, but not if they only see the last +sentence preceding the target word. To succeed on LAMBADA, computational models +cannot simply rely on local context, but must be able to keep track of information +in the broader discourse. + +Homepage: https://zenodo.org/record/2630551#.X4Xzn5NKjUI + +### Citation + +@misc{ + author={Paperno, Denis and Kruszewski, Germán and Lazaridou, Angeliki and Pham, Quan Ngoc and Bernardi, Raffaella and Pezzelle, Sandro and Baroni, Marco and Boleda, Gemma and Fernández, Raquel}, + title={The LAMBADA dataset}, + DOI={10.5281/zenodo.2630551}, + publisher={Zenodo}, + year={2016}, + month={Aug} +} + +@article{bellagente2024stable, + title={Stable LM 2 1.6 B Technical Report}, + author={Bellagente, Marco and Tow, Jonathan and Mahan, Dakota and Phung, Duy and Zhuravinskyi, Maksym and Adithyan, Reshinth and Baicoianu, James and Brooks, Ben and Cooper, Nathan and Datta, Ashish and others}, + journal={arXiv preprint arXiv:2402.17834}, + year={2024} +} + +### Groups and Tasks + +#### Groups + +* `lambada_multilingual_stablelm`: Evaluates all `lambada_mt_stablelm_X` tasks + +#### Tasks + +* `lambada_mt_stablelm_{en, fr, de, it, es}`: Machine-translated versions of OpenAI's Lambada variant as reported in "Stable LM 2 1.6 B Technical Report" (Bellagente et. al.). + +### 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? If so, have you checked against the reference implementation and documented how to run such a test? +(This task is novel to the Evaluation Harness, and has been checked against v0.3.0 of the harness.) + + +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? +* [x] Have you noted which, if any, published evaluation setups are matched by this variant? diff --git a/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/lambada_mt_stablelm_de.yaml b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/lambada_mt_stablelm_de.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e1aa61edb49e95ec7488533c0fe9f3a69dc5cb47 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/lambada_mt_stablelm_de.yaml @@ -0,0 +1,3 @@ +include: lambada_mt_stablelm_en.yaml +task: lambada_openai_mt_stablelm_de +dataset_name: de diff --git a/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/lambada_mt_stablelm_en.yaml b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/lambada_mt_stablelm_en.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a6e6041db541ff64a735d5c1a485a5725a5d1057 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/lambada_mt_stablelm_en.yaml @@ -0,0 +1,20 @@ +group: + - lambada_multilingual_stablelm +task: lambada_openai_mt_stablelm_en +dataset_path: marcob/lambada_multilingual +dataset_name: en +output_type: loglikelihood +test_split: test +doc_to_text: "{{text.split(' ')[:-1]|join(' ')}}" +doc_to_target: "{{' '+text.split(' ')[-1]}}" +should_decontaminate: true +doc_to_decontamination_query: "{{text}}" +metric_list: + - metric: perplexity + aggregation: perplexity + higher_is_better: false + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/lambada_mt_stablelm_es.yaml b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/lambada_mt_stablelm_es.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e7e75944a8e862bdcab7afaf29ae79ff48636356 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/lambada_mt_stablelm_es.yaml @@ -0,0 +1,3 @@ +include: lambada_mt_stablelm_en.yaml +task: lambada_openai_mt_stablelm_es +dataset_name: es diff --git a/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/lambada_mt_stablelm_fr.yaml b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/lambada_mt_stablelm_fr.yaml new file mode 100644 index 0000000000000000000000000000000000000000..37768ac60b60b7eba9eb2d15a9defe8b8fdee422 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/lambada_mt_stablelm_fr.yaml @@ -0,0 +1,3 @@ +include: lambada_mt_stablelm_en.yaml +task: lambada_openai_mt_stablelm_fr +dataset_name: fr diff --git a/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/lambada_mt_stablelm_it.yaml b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/lambada_mt_stablelm_it.yaml new file mode 100644 index 0000000000000000000000000000000000000000..76d920f3eeead817c00b6579c8908183448c62cd --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/lambada_mt_stablelm_it.yaml @@ -0,0 +1,3 @@ +include: lambada_mt_stablelm_en.yaml +task: lambada_openai_mt_stablelm_it +dataset_name: it diff --git a/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/lambada_mt_stablelm_nl.yaml b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/lambada_mt_stablelm_nl.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fa96c8c63e289e5739c752c9348652ad2f6b9853 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/lambada_mt_stablelm_nl.yaml @@ -0,0 +1,3 @@ +include: lambada_mt_stablelm_en.yaml +task: lambada_openai_mt_stablelm_nl +dataset_name: nl diff --git a/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/lambada_mt_stablelm_pt.yaml b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/lambada_mt_stablelm_pt.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9399d5e7a801d63f87838d868718fe408703a853 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/lambada_multilingual_stablelm/lambada_mt_stablelm_pt.yaml @@ -0,0 +1,3 @@ +include: lambada_mt_stablelm_en.yaml +task: lambada_openai_mt_stablelm_pt +dataset_name: pt diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/README.md b/lm-evaluation-harness/lm_eval/tasks/leaderboard/README.md new file mode 100644 index 0000000000000000000000000000000000000000..1bd7bd3e6af099bea9c9a372b0218dfa3b158841 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/README.md @@ -0,0 +1,334 @@ +# Leaderboard evaluations +Our goal with this group is to create an unchanging through time version of +evaluations that will power the Open LLM Leaderboard on HuggingFace. + +As we want to evaluate models across capabilities, the list currently contains: +- BBH (3-shots, multichoice) +- GPQA (0-shot, multichoice) +- mmlu-pro (5-shots, multichoice) +- Musr (0-shot, multichoice) +- ifeval (0-shot, generative) +- Math-lvl-5 (4-shots, generative, minerva version) + + +Details on the choice of those evals can be found [here](https://huggingface.co/spaces/open-llm-leaderboard/blog) ! + +## Install +To install the `lm-eval` package with support for leaderboard evaluations, run: + +```bash +git clone --depth 1 https://github.com/EleutherAI/lm-evaluation-harness +cd lm-evaluation-harness +pip install -e ".[math,ifeval,sentencepiece]" +``` + +## BigBenchHard (BBH) + +A suite of 23 challenging BIG-Bench tasks which we call BIG-Bench Hard (BBH). +These are the task for which prior language model evaluations did not +outperform the average human-rater. + +### Paper + +Title: Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Them + +BIG-Bench (Srivastava et al., 2022) is a diverse evaluation suite that focuses on tasks believed to be beyond the capabilities of current language models. Language models have already made good progress on this benchmark, with the best model in the BIG-Bench paper outperforming average reported human-rater results on 65% of the BIG-Bench tasks via few-shot prompting. But on what tasks do language models fall short of average human-rater performance, and are those tasks actually unsolvable by current language models? +In this work, we focus on a suite of 23 challenging BIG-Bench tasks which we call BIG-Bench Hard (BBH). These are the task for which prior language model evaluations did not outperform the average human-rater. We find that applying chain-of-thought (CoT) prompting to BBH tasks enables PaLM to surpass the average human-rater performance on 10 of the 23 tasks, and Codex (code-davinci-002) to surpass the average human-rater performance on 17 of the 23 tasks. Since many tasks in BBH require multi-step reasoning, few-shot prompting without CoT, as done in the BIG-Bench evaluations (Srivastava et al., 2022), substantially underestimates the best performance and capabilities of language models, which is better captured via CoT prompting. As further analysis, we explore the interaction between CoT and model scale on BBH, finding that CoT enables emergent task performance on several BBH tasks with otherwise flat scaling curves. + + +- paper: https://huggingface.co/papers/2210.09261 +- Homepage: https://github.com/suzgunmirac/BIG-Bench-Hard + +### Citation + +``` +@article{suzgun2022challenging, + title={Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Them}, + author={Suzgun, Mirac and Scales, Nathan and Sch{\"a}rli, Nathanael and Gehrmann, Sebastian and Tay, Yi and Chung, Hyung Won and Chowdhery, Aakanksha and Le, Quoc V and Chi, Ed H and Zhou, Denny and and Wei, Jason}, + journal={arXiv preprint arXiv:2210.09261}, + year={2022} +} +``` + +### Groups + +- `leaderboard_bbh` + +### Tasks + +- `leaderboard_bbh_boolean_expressions` +- `leaderboard_bbh_causal_judgement` +- `leaderboard_bbh_date_understanding` +- `leaderboard_bbh_disambiguation_qa` +- `leaderboard_bbh_formal_fallacies` +- `leaderboard_bbh_geometric_shapes` +- `leaderboard_bbh_hyperbaton` +- `leaderboard_bbh_logical_deduction_five_objects` +- `leaderboard_bbh_logical_deduction_seven_objects` +- `leaderboard_bbh_logical_deduction_three_objects` +- `leaderboard_bbh_movie_recommendation` +- `leaderboard_bbh_navigate` +- `leaderboard_bbh_object_counting` +- `leaderboard_bbh_penguins_in_a_table` +- `leaderboard_bbh_reasoning_about_colored_objects` +- `leaderboard_bbh_ruin_names` +- `leaderboard_bbh_salient_translation_error_detection` +- `leaderboard_bbh_snarks` +- `leaderboard_bbh_sports_understanding` +- `leaderboard_bbh_temporal_sequences` +- `leaderboard_bbh_tracking_shuffled_objects_five_objects` +- `leaderboard_bbh_tracking_shuffled_objects_seven_objects` +- `leaderboard_bbh_tracking_shuffled_objects_three_objects` +- `leaderboard_bbh_web_of_lies` + +## GPQA + +### Paper + +Title: GPQA: A Graduate-Level Google-Proof Q&A Benchmark + +We present GPQA, a challenging dataset of 448 multiple-choice questions written +by domain experts in biology, physics, and chemistry. We ensure that the +questions are high-quality and extremely difficult: experts who have or are +pursuing PhDs in the corresponding domains reach 65% accuracy (74% when +discounting clear mistakes the experts identified in retrospect), while highly +skilled non-expert validators only reach 34% accuracy, despite spending on +average over 30 minutes with unrestricted access to the web (i.e., the +questions are “Google-proof”). The questions are also difficult for +state-of-the-art AI systems, with our strongest GPT-4–based baseline achieving +39% accuracy. If we are to use future AI systems to help us answer very hard +questions—for example, when developing new scientific knowledge—we need to +develop scalable oversight methods that enable humans to supervise their +outputs, which may be difficult even if the supervisors are themselves skilled +and knowledgeable. The difficulty of GPQA both for skilled non-experts and +frontier AI systems should enable realistic scalable oversight experiments, +which we hope can help devise ways for human experts to reliably get truthful +information from AI systems that surpass human capabilities. + +- Paper: https://huggingface.co/papers/2311.12022 +- Homepage: https://github.com/idavidrein/gpqa/tree/main + +### Citation + +``` +@misc{rein2023gpqa, + title={GPQA: A Graduate-Level Google-Proof Q&A Benchmark}, + author={David Rein and Betty Li Hou and Asa Cooper Stickland and Jackson Petty and Richard Yuanzhe Pang and Julien Dirani and Julian Michael and Samuel R. Bowman}, + year={2023}, + eprint={2311.12022}, + archivePrefix={arXiv}, + primaryClass={cs.AI} +} +``` + +### Groups + +- `leaderboard_gpqa` + +### Tasks + +- `leaderboard_gpqa_extended` +- `leaderboard_gpqa_diamond` +- `leaderboard_gpqa_main` + +## IFEval + +### Paper + +Title: Instruction-Following Evaluation for Large Language Models + +One core capability of Large Language Models (LLMs) is to follow natural +language instructions. However, the evaluation of such abilities is not +standardized: Human evaluations are expensive, slow, and not objectively +reproducible, while LLM-based auto-evaluation is potentially biased or limited +by the ability of the evaluator LLM. To overcome these issues, we introduce +Instruction-Following Eval (IFEval) for large language models. IFEval is a +straightforward and easy-to-reproduce evaluation benchmark. It focuses on a set +of "verifiable instructions" such as "write in more than 400 words" and +"mention the keyword of AI at least 3 times". We identified 25 types of those +verifiable instructions and constructed around 500 prompts, with each prompt +containing one or more verifiable instructions. We show evaluation results of +two widely available LLMs on the market. + +- Paper: https://huggingface.co/papers/2210.09261 +- Homepage: https://github.com/google-research/google-research/tree/master/instruction_following_eval + +### Citation + +``` +@article{zhou2023instructionfollowing, + title={Instruction-Following Evaluation for Large Language Models}, + author={Jeffrey Zhou and Tianjian Lu and Swaroop Mishra and Siddhartha Brahma and Sujoy Basu and Yi Luan and Denny Zhou and Le Hou}, + journal={arXiv preprint arXiv:2311.07911}, + year={2023}, +} +``` + +### Tasks + +- `leaderboard_ifeval` + +## MATH-hard + +This is the 4 shots variant of minerva math but only keeping the level 5 questions. + +### Paper + +Title: Measuring Mathematical Problem Solving With the MATH Dataset + +Many intellectual endeavors require mathematical problem solving, but this +skill remains beyond the capabilities of computers. To measure this ability in +machine learning models, we introduce MATH, a new dataset of 12,500 challenging +competition mathematics problems. Each problem in MATH has a full step-by-step +solution which can be used to teach models to generate answer derivations and +explanations. + +NOTE: The few-shot and the generated answer extraction is based on the +[Minerva](https://arxiv.org/abs/2206.14858) and exact match equivalence is +calculated using the `sympy` library. This requires additional dependencies, +which can be installed via the `lm-eval[math]` extra. + +- Paper: https://huggingface.co/papers/2103.03874 +- Homepage: https://github.com/hendrycks/math + + +### Citation + +``` +@article{hendrycksmath2021, + title={Measuring Mathematical Problem Solving With the MATH Dataset}, + author={Dan Hendrycks and Collin Burns and Saurav Kadavath and Akul Arora and Steven Basart and Eric Tang and Dawn Song and Jacob Steinhardt}, + journal={NeurIPS}, + year={2021} +} +@misc{2206.14858, +Author = {Aitor Lewkowycz and Anders Andreassen and David Dohan and Ethan Dye and Henryk Michalewski and Vinay Ramasesh and Ambrose Slone and Cem Anil and Imanol Schlag and Theo Gutman-Solo and Yuhuai Wu and Behnam Neyshabur and Guy Gur-Ari and Vedant Misra}, +Title = {Solving Quantitative Reasoning Problems with Language Models}, +Year = {2022}, +Eprint = {arXiv:2206.14858}, +} +``` + +### Groups + +- `leaderboard_math_hard` + +### Tasks + +- `leaderboard_math_algebra_hard` +- `leaderboard_math_counting_and_prob_hard` +- `leaderboard_math_geometry_hard` +- `leaderboard_math_intermediate_algebra_hard` +- `leaderboard_math_num_theory_hard` +- `leaderboard_math_prealgebra_hard` +- `leaderboard_math_precalculus_hard` + + +## MMLU-Pro + +### Paper + +Title: MMLU-Pro: A More Robust and Challenging Multi-Task Language +Understanding Benchmark + +In the age of large-scale language models, benchmarks like the Massive +Multitask Language Understanding (MMLU) have been pivotal in pushing the +boundaries of what AI can achieve in language comprehension and reasoning +across diverse domains. However, as models continue to improve, their +performance on these benchmarks has begun to plateau, making it increasingly +difficult to discern differences in model capabilities. This paper introduces +MMLU-Pro, an enhanced dataset designed to extend the mostly knowledge-driven +MMLU benchmark by integrating more challenging, reasoning-focused questions and +expanding the choice set from four to ten options. Additionally, MMLU-Pro +eliminates the trivial and noisy questions in MMLU. Our experimental results +show that MMLU-Pro not only raises the challenge, causing a significant drop in +accuracy by 16% to 33% compared to MMLU but also demonstrates greater stability +under varying prompts. With 24 different prompt styles tested, the sensitivity +of model scores to prompt variations decreased from 4-5% in MMLU to just 2% in +MMLU-Pro. Additionally, we found that models utilizing Chain of Thought (CoT) +reasoning achieved better performance on MMLU-Pro compared to direct answering, +which is in stark contrast to the findings on the original MMLU, indicating +that MMLU-Pro includes more complex reasoning questions. Our assessments +confirm that MMLU-Pro is a more discriminative benchmark to better track +progress in the field. + +- Paper: https://huggingface.co/papers/2406.01574 +- Homepage: https://huggingface.co/datasets/TIGER-Lab/MMLU-Pro + +### Citation + +``` +@misc{wang2024mmluprorobustchallengingmultitask, + title={MMLU-Pro: A More Robust and Challenging Multi-Task Language + Understanding Benchmark}, + author={Yubo Wang and Xueguang Ma and Ge Zhang and Yuansheng Ni and Abhranil Chandra and Shiguang Guo and Weiming Ren and Aaran Arulraj and Xuan He and Ziyan Jiang and Tianle Li and Max Ku and Kai Wang and Alex Zhuang and Rongqi Fan and Xiang Yue and Wenhu Chen}, + year={2024}, + eprint={2406.01574}, + archivePrefix={arXiv}, + primaryClass={cs.CL}, + url={https://arxiv.org/abs/2406.01574}, +} +``` + +### Groups + +- `leaderboard_mmlu_pro` + +### Tasks + +- `leaderboard_mmlu_pro` + + +## Musr + +### Paper + +Title: MuSR: Testing the Limits of Chain-of-thought with Multistep Soft +Reasoning + +While large language models (LLMs) equipped with techniques like +chain-of-thought prompting have demonstrated impressive capabilities, they +still fall short in their ability to reason robustly in complex settings. +However, evaluating LLM reasoning is challenging because system capabilities +continue to grow while benchmark datasets for tasks like logical deduction have +remained static. We introduce MuSR, a dataset for evaluating language models on +multistep soft reasoning tasks specified in a natural language narrative. This +dataset has two crucial features. First, it is created through a novel +neurosymbolic synthetic-to-natural generation algorithm, enabling the +construction of complex reasoning instances that challenge GPT-4 (e.g., murder +mysteries roughly 1000 words in length) and which can be scaled further as more +capable LLMs are released. Second, our dataset instances are free text +narratives corresponding to real-world domains of reasoning; this makes it +simultaneously much more challenging than other synthetically-crafted +benchmarks while remaining realistic and tractable for human annotators to +solve with high accuracy. We evaluate a range of LLMs and prompting techniques +on this dataset and characterize the gaps that remain for techniques like +chain-of-thought to perform robust reasoning. + +- Paper: https://huggingface.co/papers/2310.16049 +- Homepage: https://zayne-sprague.github.io/MuSR/ + +### Citation + +``` +@misc{sprague2024musrtestinglimitschainofthought, + title={MuSR: Testing the Limits of Chain-of-thought with Multistep Soft + Reasoning}, + author={Zayne Sprague and Xi Ye and Kaj Bostrom and Swarat Chaudhuri and Greg Durrett}, + year={2024}, + eprint={2310.16049}, + archivePrefix={arXiv}, + primaryClass={cs.CL}, + url={https://arxiv.org/abs/2310.16049}, +} +``` + +### Groups + +- `leaderboard_musr` + +### Tasks + +- `leaderboard_musr_murder_mysteries` +- `leaderboard_musr_object_placements` +- `leaderboard_musr_team_allocation` diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/_fewshot_template_yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/_fewshot_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..2b09a7c43c351cdafdafeb9fd6169bb5f1cf8a97 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/_fewshot_template_yaml @@ -0,0 +1,16 @@ +dataset_path: SaylorTwift/bbh +output_type: multiple_choice +test_split: test +doc_to_text: 'Q: {{input}} + + A:' +doc_to_target: "{{target}}" +metric_list: + - metric: acc_norm + aggregation: mean + higher_is_better: true +num_fewshot: 3 +fewshot_config: + sampler: first_n +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/_leaderboard_bbh.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/_leaderboard_bbh.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f31a2e3c8ea79e7f0b2b6b7249eb8bd8f71ea82b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/_leaderboard_bbh.yaml @@ -0,0 +1,30 @@ +group: leaderboard_bbh +task: + - leaderboard_bbh_boolean_expressions + - leaderboard_bbh_causal_judgement + - leaderboard_bbh_date_understanding + - leaderboard_bbh_disambiguation_qa + - leaderboard_bbh_formal_fallacies + - leaderboard_bbh_geometric_shapes + - leaderboard_bbh_hyperbaton + - leaderboard_bbh_logical_deduction_five_objects + - leaderboard_bbh_logical_deduction_seven_objects + - leaderboard_bbh_logical_deduction_three_objects + - leaderboard_bbh_movie_recommendation + - leaderboard_bbh_navigate + - leaderboard_bbh_object_counting + - leaderboard_bbh_penguins_in_a_table + - leaderboard_bbh_reasoning_about_colored_objects + - leaderboard_bbh_ruin_names + - leaderboard_bbh_salient_translation_error_detection + - leaderboard_bbh_snarks + - leaderboard_bbh_sports_understanding + - leaderboard_bbh_temporal_sequences + - leaderboard_bbh_tracking_shuffled_objects_five_objects + - leaderboard_bbh_tracking_shuffled_objects_seven_objects + - leaderboard_bbh_tracking_shuffled_objects_three_objects + - leaderboard_bbh_web_of_lies +aggregate_metric_list: + - metric: acc_norm + aggregation: mean + weight_by_size: true diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/boolean_expressions.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/boolean_expressions.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0660740a836a2f428478376c73c977ae305b215e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/boolean_expressions.yaml @@ -0,0 +1,14 @@ +dataset_name: boolean_expressions +description: 'Evaluate the result of a random Boolean expression.' +doc_to_choice: ["False", "True"] +fewshot_config: + sampler: first_n + samples: + - input: not ( ( not not True ) ) is + target: 'False' + - input: True and False and not True and True is + target: 'False' + - input: not not ( not ( False ) ) is + target: 'True' +include: _fewshot_template_yaml +task: leaderboard_bbh_boolean_expressions diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/causal_judgement.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/causal_judgement.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c3b13360ec9863b0ce431d7ac7ab7383da553f4b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/causal_judgement.yaml @@ -0,0 +1,62 @@ +dataset_name: causal_judgement +description: 'Answer questions about causal attribution.' +doc_to_choice: ["Yes", "No"] +fewshot_config: + sampler: first_n + samples: + - input: 'How would a typical person answer each of the following questions about + causation? + + Frank T., had an ongoing dispute with his neighbor over a stretch of land and + one day decided to shoot his neighbor in the body. Frank T. had no experience + with guns, his hand slipped on the barrel of the gun, and the shot went wild. + Nonetheless, the bullet bounced off a large boulder several feet away and hit + the neighbor''s body, causing significant injury. Did Frank T. intentionally + shoot his neighbor in the body? + + Options: + + - Yes + + - No' + target: 'No' + - input: 'How would a typical person answer each of the following questions about + causation? + + Suzy and Billy are working on a project that is very important for our nation''s + security. The boss tells them both: "Be sure that you are here at exactly 9 + am. It is absolutely essential that you arrive at that time." Both Billy and + Suzy arrive at 9 am. As it happens, there was a motion detector installed in + the room where they arrived. The motion detector was set up to be triggered + if at least one person appeared in the room at the same time. So the motion + detector went off. Did Billy cause the motion detector to go off? + + Options: + + - Yes + + - No' + target: 'Yes' + - input: 'How would a typical person answer each of the following questions about + causation? + + George and his sister Lena reunite at their parents'' house for Thanksgiving. + Whereas George just got into medical school, Lena is unhappy in her marriage + and recently lost her job. Over the course of the day, George and Lena get into + a number of heated arguments. Later in the afternoon they play a game of darts. + They split the first two games, and the third game is close until the end. Who + will win comes down to George''s last shot. If he hits a high point region, + he wins; if he hits a low point region, Lena wins. George thinks of the difficult + time Lena is having, and he really wants to let her win. He aims the dart at + the low point region. He sets up his shot and the dart lands in the low point + region. After his shot, Lena wins the game and is very happy. Did George hit + the low point region intentionally? + + Options: + + - Yes + + - No' + target: 'Yes' +include: _fewshot_template_yaml +task: leaderboard_bbh_causal_judgement diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/date_understanding.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/date_understanding.yaml new file mode 100644 index 0000000000000000000000000000000000000000..92f35785d7ff4da93d372a87eaf5f0fdb3579187 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/date_understanding.yaml @@ -0,0 +1,55 @@ +dataset_name: date_understanding +description: 'Infer the date from context.' +doc_to_choice: ["(A)", "(B)", "(C)", "(D)", "(E)", "(F)"] +fewshot_config: + sampler: first_n + samples: + - input: 'Today is Christmas Eve of 1937. What is the date 10 days ago in MM/DD/YYYY? + + Options: + + (A) 12/14/2026 + + (B) 12/14/1950 + + (C) 12/14/2007 + + (D) 12/14/1937 + + (E) 07/14/1938 + + (F) 12/14/1988' + target: (D) + - input: 'Tomorrow is 11/12/2019. What is the date one year ago from today in MM/DD/YYYY? + + Options: + + (A) 09/04/2018 + + (B) 11/11/2018 + + (C) 08/25/2018 + + (D) 11/02/2018 + + (E) 11/04/2018' + target: (B) + - input: 'Jane and John married on Jan 2, 1958. It is their 5-year anniversary today. + What is the date tomorrow in MM/DD/YYYY? + + Options: + + (A) 01/11/1961 + + (B) 01/03/1963 + + (C) 01/18/1961 + + (D) 10/14/1960 + + (E) 01/03/1982 + + (F) 12/03/1960' + target: (B) +include: _fewshot_template_yaml +task: leaderboard_bbh_date_understanding diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/disambiguation_qa.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/disambiguation_qa.yaml new file mode 100644 index 0000000000000000000000000000000000000000..91b1ed99fae8eebddef3b023e66c09c3d3eb9861 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/disambiguation_qa.yaml @@ -0,0 +1,48 @@ +dataset_name: disambiguation_qa +description: 'Clarify the meaning of sentences with ambiguous pronouns.' +doc_to_choice: ["(A)", "(B)", "(C)"] +fewshot_config: + sampler: first_n + samples: + - input: 'In the following sentences, explain the antecedent of the pronoun (which + thing the pronoun refers to), or state that it is ambiguous. + + Sentence: The chief told the counselor that they took the day off. + + Options: + + (A) The chief took the day off + + (B) The counselor took the day off + + (C) Ambiguous' + target: (A) + - input: 'In the following sentences, explain the antecedent of the pronoun (which + thing the pronoun refers to), or state that it is ambiguous. + + Sentence: The manager sent a message to the secretary, but he didn''t reply + yet. + + Options: + + (A) The secretary didn''t reply yet + + (B) The manager didn''t reply yet + + (C) Ambiguous' + target: (A) + - input: 'In the following sentences, explain the antecedent of the pronoun (which + thing the pronoun refers to), or state that it is ambiguous. + + Sentence: Bailey will plan to meet the director at his office + + Options: + + (A) It will be Bailey''s office + + (B) It will be the director''s office + + (C) Ambiguous' + target: (C) +include: _fewshot_template_yaml +task: leaderboard_bbh_disambiguation_qa diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/formal_fallacies.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/formal_fallacies.yaml new file mode 100644 index 0000000000000000000000000000000000000000..eebff0a4df84f196cbd35f0a1c7859af4be722ad --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/formal_fallacies.yaml @@ -0,0 +1,55 @@ +dataset_name: formal_fallacies +description: 'Distinguish deductively valid arguments from formal fallacies.' +doc_to_choice: ["valid", "invalid"] +fewshot_config: + sampler: first_n + samples: + - input: '"It is not always easy to see who is related to whom -- and in which ways. + The following argument pertains to this question: To begin with, Lesley is a + close friend of Fernando. Moreover, being a close friend of Fernando or a schoolmate + of Lowell is sufficient for being a great-grandfather of Leroy. It follows that + Lesley is a great-grandfather of Leroy." + + Is the argument, given the explicitly stated premises, deductively valid or + invalid? + + Options: + + - valid + + - invalid' + target: valid + - input: '"It is not always easy to see who is related to whom -- and in which ways. + The following argument pertains to this question: Whoever is not a great-grandfather + of Clyde is a stepbrother of Brian. Being an ancestor of Dana is sufficient + for not being a great-grandfather of Clyde. We may conclude: Everyone who is + an ancestor of Dana is a stepbrother of Brian, too." + + Is the argument, given the explicitly stated premises, deductively valid or + invalid? + + Options: + + - valid + + - invalid' + target: valid + - input: '"It is not always easy to grasp who is consuming which products. The following + argument pertains to this question: Every infrequent user of Paul Mitchell shampoo + is either a rare consumer of Nioxin shampoo or a loyal buyer of Caress soap, + or both. No regular consumer of Lush soap is a rare consumer of Nioxin shampoo + and, in the same time, a loyal buyer of Caress soap. It follows that whoever + is an infrequent user of Paul Mitchell shampoo is not a regular consumer of + Lush soap." + + Is the argument, given the explicitly stated premises, deductively valid or + invalid? + + Options: + + - valid + + - invalid' + target: invalid +include: _fewshot_template_yaml +task: leaderboard_bbh_formal_fallacies diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/geometric_shapes.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/geometric_shapes.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a32fcecac132ed2b537d4fcf4f2812e99726dfbc --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/geometric_shapes.yaml @@ -0,0 +1,84 @@ +dataset_name: geometric_shapes +description: 'Name geometric shapes from their SVG paths.' +doc_to_choice: ["(A)","(B)","(C)","(D)","(E)","(F)","(G)","(H)","(I)","(J)","(K)"] +fewshot_config: + sampler: first_n + samples: + - input: 'This SVG path element + draws a + + Options: + + (A) circle + + (B) heptagon + + (C) hexagon + + (D) kite + + (E) line + + (F) octagon + + (G) pentagon + + (H) rectangle + + (I) sector + + (J) triangle' + target: (F) + - input: 'This SVG path element draws a + + Options: + + (A) circle + + (B) heptagon + + (C) hexagon + + (D) kite + + (E) line + + (F) octagon + + (G) pentagon + + (H) rectangle + + (I) sector + + (J) triangle' + target: (G) + - input: 'This SVG path element draws a + + Options: + + (A) circle + + (B) heptagon + + (C) hexagon + + (D) kite + + (E) line + + (F) octagon + + (G) pentagon + + (H) rectangle + + (I) sector + + (J) triangle' + target: (D) +include: _fewshot_template_yaml +task: leaderboard_bbh_geometric_shapes diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/hyperbaton.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/hyperbaton.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3d1eece64c067623487092b845d65246cc78037e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/hyperbaton.yaml @@ -0,0 +1,32 @@ +dataset_name: hyperbaton +description: 'Order adjectives correctly in English sentences.' +doc_to_choice: ["(A)", "(B)"] +fewshot_config: + sampler: first_n + samples: + - input: 'Which sentence has the correct adjective order: + + Options: + + (A) rubber terrible ship + + (B) terrible rubber ship' + target: (B) + - input: 'Which sentence has the correct adjective order: + + Options: + + (A) repulsive small Brazilian exercise ship + + (B) Brazilian repulsive exercise small ship' + target: (A) + - input: 'Which sentence has the correct adjective order: + + Options: + + (A) blue gold wonderful square shoe + + (B) wonderful square blue gold shoe' + target: (B) +include: _fewshot_template_yaml +task: leaderboard_bbh_hyperbaton diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/logical_deduction_five_objects.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/logical_deduction_five_objects.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9f81dddacbc6902f292375ea4f5318cb814ee60f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/logical_deduction_five_objects.yaml @@ -0,0 +1,50 @@ +dataset_name: logical_deduction_five_objects +description: 'A logical deduction task which requires deducing the order of a sequence + of objects.' +doc_to_choice: ["(A)","(B)","(C)","(D)","(E)"] +fewshot_config: + sampler: first_n + samples: + - input: 'The following paragraphs each describe a set of three objects arranged + in a fixed order. The statements are logically consistent within each paragraph. + In a golf tournament, there were three golfers: Amy, Eli, and Eve. Eve finished + above Amy. Eli finished below Amy. + + Options: + + (A) Amy finished last + + (B) Eli finished last + + (C) Eve finished last' + target: (B) + - input: 'The following paragraphs each describe a set of three objects arranged + in a fixed order. The statements are logically consistent within each paragraph. + On a shelf, there are three books: a white book, a green book, and an orange + book. The green book is to the right of the white book. The orange book is the + rightmost. + + Options: + + (A) The white book is the leftmost + + (B) The green book is the leftmost + + (C) The orange book is the leftmost' + target: (A) + - input: 'The following paragraphs each describe a set of three objects arranged + in a fixed order. The statements are logically consistent within each paragraph. + On a shelf, there are three books: a red book, a gray book, and a white book. + The white book is to the left of the gray book. The red book is the second from + the left. + + Options: + + (A) The red book is the leftmost + + (B) The gray book is the leftmost + + (C) The white book is the leftmost' + target: (C) +include: _fewshot_template_yaml +task: leaderboard_bbh_logical_deduction_five_objects diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/logical_deduction_seven_objects.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/logical_deduction_seven_objects.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ff426ce7ac517a4a3fe352dda8001bc23ad36e07 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/logical_deduction_seven_objects.yaml @@ -0,0 +1,50 @@ +dataset_name: logical_deduction_seven_objects +description: 'A logical deduction task which requires deducing the order of a sequence + of objects.' +doc_to_choice: ["(A)","(B)","(C)","(D)","(E)","(F)","(G)"] +fewshot_config: + sampler: first_n + samples: + - input: 'The following paragraphs each describe a set of three objects arranged + in a fixed order. The statements are logically consistent within each paragraph. + In a golf tournament, there were three golfers: Amy, Eli, and Eve. Eve finished + above Amy. Eli finished below Amy. + + Options: + + (A) Amy finished last + + (B) Eli finished last + + (C) Eve finished last' + target: (B) + - input: 'The following paragraphs each describe a set of three objects arranged + in a fixed order. The statements are logically consistent within each paragraph. + On a shelf, there are three books: a white book, a green book, and an orange + book. The green book is to the right of the white book. The orange book is the + rightmost. + + Options: + + (A) The white book is the leftmost + + (B) The green book is the leftmost + + (C) The orange book is the leftmost' + target: (A) + - input: 'The following paragraphs each describe a set of three objects arranged + in a fixed order. The statements are logically consistent within each paragraph. + On a shelf, there are three books: a red book, a gray book, and a white book. + The white book is to the left of the gray book. The red book is the second from + the left. + + Options: + + (A) The red book is the leftmost + + (B) The gray book is the leftmost + + (C) The white book is the leftmost' + target: (C) +include: _fewshot_template_yaml +task: leaderboard_bbh_logical_deduction_seven_objects diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/logical_deduction_three_objects.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/logical_deduction_three_objects.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e62fe2f412bb276dcee713450e4cdab9a565aca5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/logical_deduction_three_objects.yaml @@ -0,0 +1,50 @@ +dataset_name: logical_deduction_three_objects +description: 'A logical deduction task which requires deducing the order of a sequence + of objects.' +doc_to_choice: ["(A)","(B)","(C)"] +fewshot_config: + sampler: first_n + samples: + - input: 'The following paragraphs each describe a set of three objects arranged + in a fixed order. The statements are logically consistent within each paragraph. + In a golf tournament, there were three golfers: Amy, Eli, and Eve. Eve finished + above Amy. Eli finished below Amy. + + Options: + + (A) Amy finished last + + (B) Eli finished last + + (C) Eve finished last' + target: (B) + - input: 'The following paragraphs each describe a set of three objects arranged + in a fixed order. The statements are logically consistent within each paragraph. + On a shelf, there are three books: a white book, a green book, and an orange + book. The green book is to the right of the white book. The orange book is the + rightmost. + + Options: + + (A) The white book is the leftmost + + (B) The green book is the leftmost + + (C) The orange book is the leftmost' + target: (A) + - input: 'The following paragraphs each describe a set of three objects arranged + in a fixed order. The statements are logically consistent within each paragraph. + On a shelf, there are three books: a red book, a gray book, and a white book. + The white book is to the left of the gray book. The red book is the second from + the left. + + Options: + + (A) The red book is the leftmost + + (B) The gray book is the leftmost + + (C) The white book is the leftmost' + target: (C) +include: _fewshot_template_yaml +task: leaderboard_bbh_logical_deduction_three_objects diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/movie_recommendation.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/movie_recommendation.yaml new file mode 100644 index 0000000000000000000000000000000000000000..61f3bd8f8b5e85392bef2f6541b6a096c3fff1dd --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/movie_recommendation.yaml @@ -0,0 +1,52 @@ +dataset_name: movie_recommendation +description: 'Recommend movies similar to the given list of movies.' +doc_to_choice: ["(A)","(B)","(C)","(D)","(E)","(F)"] +fewshot_config: + sampler: first_n + samples: + - input: 'Find a movie similar to Star Wars Episode IV - A New Hope, Indiana Jones + and the Last Crusade, Star Wars Episode V - The Empire Strikes Back, The Big + Lebowski: + + Options: + + (A) Tetsuo + + (B) the Ironman + + (C) The Princess Bride + + (D) The Barkley Marathons The Race That Eats Its Young + + (E) Bug' + target: (C) + - input: 'Find a movie similar to Twister, The Silence of the Lambs, Independence + Day, Braveheart: + + Options: + + (A) They Shoot Horses + + (B) Don''t They + + (C) Forrest Gump + + (D) The Salton Sea + + (E) Extreme Days' + target: (C) + - input: 'Find a movie similar to Minority Report, Total Recall, Inside Out, Forrest + Gump: + + Options: + + (A) Phenomena + + (B) Lilting + + (C) Catwoman + + (D) Edge of Tomorrow' + target: (D) +include: _fewshot_template_yaml +task: leaderboard_bbh_movie_recommendation diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/navigate.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/navigate.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a0f67261307eb8c7c68fa5e3d1d58177fb53d2f2 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/navigate.yaml @@ -0,0 +1,38 @@ +dataset_name: navigate +description: 'Given a series of navigation instructions, determine whether one would + end up back at the starting point.' +doc_to_choice: ["Yes","No"] +fewshot_config: + sampler: first_n + samples: + - input: 'If you follow these instructions, do you return to the starting point? + Turn left. Turn around. Turn left. Take 7 steps. Take 2 steps. Take 4 steps. + Take 8 steps. + + Options: + + - Yes + + - No' + target: 'No' + - input: 'If you follow these instructions, do you return to the starting point? + Turn around. Take 1 step. Take 6 steps. Turn around. Take 6 steps. Take 9 steps. + Take 1 step. + + Options: + + - Yes + + - No' + target: 'No' + - input: 'If you follow these instructions, do you return to the starting point? + Always face forward. Take 2 steps right. Take 9 steps left. Take 7 steps right. + + Options: + + - Yes + + - No' + target: 'Yes' +include: _fewshot_template_yaml +task: leaderboard_bbh_navigate diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/object_counting.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/object_counting.yaml new file mode 100644 index 0000000000000000000000000000000000000000..88168743ee3841a4daef5979452799e9e50aae1b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/object_counting.yaml @@ -0,0 +1,18 @@ +dataset_name: object_counting +description: 'Questions that involve enumerating objects and asking the model to count + them.' +doc_to_choice: ["0","1","2","3","4","5","6","7","8","9","10", "11", "12", "13", "14", "15", "16", "17", "18"] +fewshot_config: + sampler: first_n + samples: + - input: I have a blackberry, a clarinet, a nectarine, a plum, a strawberry, a banana, + a flute, an orange, and a violin. How many fruits do I have? + target: '6' + - input: I have an orange, a raspberry, two peaches, a blackberry, an apple, a grape, + a nectarine, and three plums. How many fruits do I have? + target: '11' + - input: I have a lettuce head, a head of broccoli, an onion, a stalk of celery, + two carrots, a garlic, and a yam. How many vegetables do I have? + target: '8' +include: _fewshot_template_yaml +task: leaderboard_bbh_object_counting diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/penguins_in_a_table.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/penguins_in_a_table.yaml new file mode 100644 index 0000000000000000000000000000000000000000..206d6752e54c9ee1c47235eb5e33879c48c2429f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/penguins_in_a_table.yaml @@ -0,0 +1,66 @@ +dataset_name: penguins_in_a_table +description: 'Answer questions about a table of penguins and their attributes.' +doc_to_choice: ["(A)","(B)","(C)","(D)","(E)"] +fewshot_config: + sampler: first_n + samples: + - input: 'Here is a table where the first line is a header and each subsequent line + is a penguin: name, age, height (cm), weight (kg) Louis, 7, 50, 11 Bernard, + 5, 80, 13 Vincent, 9, 60, 11 Gwen, 8, 70, 15 For example: the age of Louis + is 7, the weight of Gwen is 15 kg, the height of Bernard is 80 cm. We now add + a penguin to the table: + + James, 12, 90, 12 + + How many penguins are less than 8 years old? + + Options: + + (A) 1 + + (B) 2 + + (C) 3 + + (D) 4 + + (E) 5' + target: (B) + - input: 'Here is a table where the first line is a header and each subsequent line + is a penguin: name, age, height (cm), weight (kg) Louis, 7, 50, 11 Bernard, + 5, 80, 13 Vincent, 9, 60, 11 Gwen, 8, 70, 15 For example: the age of Louis + is 7, the weight of Gwen is 15 kg, the height of Bernard is 80 cm. Which is + the youngest penguin? + + Options: + + (A) Louis + + (B) Bernard + + (C) Vincent + + (D) Gwen + + (E) James' + target: (B) + - input: 'Here is a table where the first line is a header and each subsequent line + is a penguin: name, age, height (cm), weight (kg) Louis, 7, 50, 11 Bernard, + 5, 80, 13 Vincent, 9, 60, 11 Gwen, 8, 70, 15 For example: the age of Louis + is 7, the weight of Gwen is 15 kg, the height of Bernard is 80 cm. What is + the name of the second penguin sorted by alphabetic order? + + Options: + + (A) Louis + + (B) Bernard + + (C) Vincent + + (D) Gwen + + (E) James' + target: (D) +include: _fewshot_template_yaml +task: leaderboard_bbh_penguins_in_a_table diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/reasoning_about_colored_objects.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/reasoning_about_colored_objects.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6ca071a9c8562182050b92f1060ae63f3af33777 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/reasoning_about_colored_objects.yaml @@ -0,0 +1,114 @@ +dataset_name: reasoning_about_colored_objects +description: 'Answer extremely simple questions about the colors of objects on a surface.' +doc_to_choice: ["(A)","(B)","(C)","(D)","(E)","(F)","(G)","(H)","(I)","(J)","(K)","(L)","(M)","(N)","(O)","(P)","(Q)","(R)"] +fewshot_config: + sampler: first_n + samples: + - input: 'On the nightstand, there is a red pencil, a purple mug, a burgundy keychain, + a fuchsia teddy bear, a black plate, and a blue stress ball. What color is the + stress ball? + + Options: + + (A) red + + (B) orange + + (C) yellow + + (D) green + + (E) blue + + (F) brown + + (G) magenta + + (H) fuchsia + + (I) mauve + + (J) teal + + (K) turquoise + + (L) burgundy + + (M) silver + + (N) gold + + (O) black + + (P) grey + + (Q) purple + + (R) pink' + target: (E) + - input: 'On the table, you see a bunch of objects arranged in a row: a purple paperclip, + a pink stress ball, a brown keychain, a green scrunchiephone charger, a mauve + fidget spinner, and a burgundy pen. What is the color of the object directly + to the right of the stress ball? + + Options: + + (A) red + + (B) orange + + (C) yellow + + (D) green + + (E) blue + + (F) brown + + (G) magenta + + (H) fuchsia + + (I) mauve + + (J) teal + + (K) turquoise + + (L) burgundy + + (M) silver + + (N) gold + + (O) black + + (P) grey + + (Q) purple + + (R) pink' + target: (F) + - input: 'On the nightstand, you see the following items arranged in a row: a teal + plate, a burgundy keychain, a yellow scrunchiephone charger, an orange mug, + a pink notebook, and a grey cup. How many non-orange items do you see to the + left of the teal item? + + Options: + + (A) zero + + (B) one + + (C) two + + (D) three + + (E) four + + (F) five + + (G) six' + target: (A) +include: _fewshot_template_yaml +task: leaderboard_bbh_reasoning_about_colored_objects diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/ruin_names.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/ruin_names.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f3c12367a6e8a67a195ef22d94dcafb9a62e98ba --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/ruin_names.yaml @@ -0,0 +1,48 @@ +dataset_name: ruin_names +description: 'Select the humorous edit that ''ruins'' the input movie or musical artist + name.' +doc_to_choice: ["(A)","(B)","(C)","(D)","(E)","(F)"] +fewshot_config: + sampler: first_n + samples: + - input: 'Which of the following is a humorous edit of this artist or movie name: + ''whitesnake''? + + Options: + + (A) whitesnape + + (B) whitesnapke + + (C) whitesnuake + + (D) mwhitesnake' + target: (A) + - input: 'Which of the following is a humorous edit of this artist or movie name: + ''one of our dinosaurs is missing''? + + Options: + + (A) ofne of our dinosaurs is missing + + (B) one af our dinosaurs is missing + + (C) one of our dinosaurs is pissing + + (D) one of our dinosaur is missing' + target: (C) + - input: 'Which of the following is a humorous edit of this artist or movie name: + ''counting crows''? + + Options: + + (A) countingy crows + + (B) counting cows + + (C) courting crows + + (D) coutnting crows' + target: (B) +include: _fewshot_template_yaml +task: leaderboard_bbh_ruin_names diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/salient_translation_error_detection.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/salient_translation_error_detection.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2ef54c6fc577363c4281d719bedb7779a45fe383 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/salient_translation_error_detection.yaml @@ -0,0 +1,101 @@ +dataset_name: salient_translation_error_detection +description: 'Detect the type of error in an English translation of a German source + sentence.' +doc_to_choice: ["(A)","(B)","(C)","(D)","(E)","(F)"] +fewshot_config: + sampler: first_n + samples: + - input: "The following translations from German to English contain a particular + error. That error will be one of the following types: Named Entities: An entity + (names, places, locations, etc.) is changed to a different entity. Numerical + Values: Numerical values (ordinals or cardinals), dates, and/or units are changed. + Modifiers or Adjectives: The modifiers and adjectives pertaining to a noun are + changed. Negation or Antonyms: Introduce or remove a negation or change comparatives + to their antonyms. Facts: Trivial factual errors not pertaining to the above + classes are introduced in the translations. Dropped Content: A significant clause + in the translation is removed. Please identify that error. Source: In der Liste + der Baudenkmale in Lenzen (Elbe) sind alle Baudenkmale der brandenburgischen + Stadt Lenzen (Elbe) und ihrer Ortsteile aufgelistet. + + Translation: In the list of architectural monuments in Lenzen all architectural + monuments of the Brandenburg city of Lenzen and its districts are listed. + + The translation contains an error pertaining to + + Options: + + (A) Modifiers or Adjectives + + (B) Numerical Values + + (C) Negation or Antonyms + + (D) Named Entities + + (E) Dropped Content + + (F) Facts" + target: (D) + - input: "The following translations from German to English contain a particular + error. That error will be one of the following types: Named Entities: An entity + (names, places, locations, etc.) is changed to a different entity. Numerical + Values: Numerical values (ordinals or cardinals), dates, and/or units are changed. + Modifiers or Adjectives: The modifiers and adjectives pertaining to a noun are + changed. Negation or Antonyms: Introduce or remove a negation or change comparatives + to their antonyms. Facts: Trivial factual errors not pertaining to the above + classes are introduced in the translations. Dropped Content: A significant clause + in the translation is removed. Please identify that error. Source: Auf dieser + Seite sind die Baudenkm\xE4ler der oberbayerischen Gro\xDFen Kreisstadt Landsberg + am Lech zusammengestellt. + + Translation: On this page are compiled the architectural monuments of the town of + Landsberg am Lech. + + The translation contains an error pertaining to + + Options: + + (A) Modifiers or Adjectives + + (B) Numerical Values + + (C) Negation or Antonyms + + (D) Named Entities + + (E) Dropped Content + + (F) Facts" + target: (E) + - input: "The following translations from German to English contain a particular + error. That error will be one of the following types: Named Entities: An entity + (names, places, locations, etc.) is changed to a different entity. Numerical + Values: Numerical values (ordinals or cardinals), dates, and/or units are changed. + Modifiers or Adjectives: The modifiers and adjectives pertaining to a noun are + changed. Negation or Antonyms: Introduce or remove a negation or change comparatives + to their antonyms. Facts: Trivial factual errors not pertaining to the above + classes are introduced in the translations. Dropped Content: A significant clause + in the translation is removed. Please identify that error. Source: \u0141eba ist + eine Kleinstadt und ein Badeort im Powiat L\u0119borski der polnischen Woiwodschaft + Pommern. + + Translation: Eba is not a small town and seaside resort in the Powiat L\xE9borski + county of the Pomeranian Voivodeship of Poland.\nThe translation contains an error + pertaining to + + Options: + + (A) Modifiers or Adjectives + + (B) Numerical Values + + (C) Negation or Antonyms + + (D) Named Entities + + (E) Dropped Content + + (F) Facts" + target: (C) +include: _fewshot_template_yaml +task: leaderboard_bbh_salient_translation_error_detection diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/snarks.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/snarks.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a4a02e581bb475a80cc61063f257bc2e59b2dd1d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/snarks.yaml @@ -0,0 +1,42 @@ +dataset_name: snarks +description: 'Determine which of two sentences is sarcastic. + + + According to Cambridge University Dictionary, sarcasm is "the use of remarks that + clearly mean the opposite of what they say, made in order to hurt someone''s feelings + or to criticize something in a humorous way." Sarcastic sentences often contain + satirical or ironic utterances, hyperboles, ambivalent or witty remarks.' +doc_to_choice: ["(A)","(B)"] +fewshot_config: + sampler: first_n + samples: + - input: 'Which statement is sarcastic? + + Options: + + (A) Yes, because having interests and actively researching them is a huge waste + + (B) Yes, because having interests and actively researching them is a huge deal' + target: (A) + - input: 'Which statement is sarcastic? + + Options: + + (A) No one is going to disagree with you on this. Avoiding ad hominem attacks + really help your case + + (B) No one is going to disagree with you on this. Ad hominem attacks really + help your case' + target: (B) + - input: 'Which statement is sarcastic? + + Options: + + (A) Consistency in the league''s punishments? What do you think this is supposed + to be, politics? + + (B) Consistency in the league''s punishments? What do you think this is supposed + to be, moral?' + target: (A) +include: _fewshot_template_yaml +task: leaderboard_bbh_snarks diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/sports_understanding.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/sports_understanding.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e3f3ea2290344b2df8349a627899d509155153de --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/sports_understanding.yaml @@ -0,0 +1,17 @@ +dataset_name: sports_understanding +description: 'Determine whether an artificially constructed sentence relating to sports + is plausible or not.' +doc_to_choice: ["yes","no"] +fewshot_config: + sampler: first_n + samples: + - input: Is the following sentence plausible? "Bam Adebayo scored a reverse layup + in the Western Conference Finals." + target: 'yes' + - input: Is the following sentence plausible? "Santi Cazorla scored a touchdown." + target: 'no' + - input: Is the following sentence plausible? "DeMar DeRozan was called for the + goal tend." + target: 'yes' +include: _fewshot_template_yaml +task: leaderboard_bbh_sports_understanding diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/temporal_sequences.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/temporal_sequences.yaml new file mode 100644 index 0000000000000000000000000000000000000000..543e711c04c1d3b8e143c748f4f87844bed3371f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/temporal_sequences.yaml @@ -0,0 +1,99 @@ +dataset_name: temporal_sequences +description: 'Task description: Answer questions about which times certain events + could have occurred.' +doc_to_choice: ["(A)","(B)","(C)","(D)"] +fewshot_config: + sampler: first_n + samples: + - input: 'Today, Emily went to the museum. Between what times could they have gone? + + We know that: + + Emily woke up at 1pm. + + Elizabeth saw Emily reading at the library from 2pm to 4pm. + + Jessica saw Emily watching a movie at the theater from 4pm to 5pm. + + Leslie saw Emily waiting at the airport from 5pm to 6pm. + + William saw Emily buying clothes at the mall from 6pm to 7pm. + + The museum was closed after 7pm. + + Between what times could Emily have gone to the museum? + + Options: + + (A) 1pm to 2pm + + (B) 6pm to 7pm + + (C) 5pm to 6pm + + (D) 2pm to 4pm' + target: (A) + - input: 'Today, Elizabeth went to the amusement park. Between what times could + they have gone? + + We know that: + + Elizabeth woke up at 7am. + + David saw Elizabeth fixing their computer at the electronic store from 1pm to + 2pm. + + Sarah saw Elizabeth playing tennis at the tennis court from 2pm to 3pm. + + Susan saw Elizabeth walking towards the Statue of Liberty from 3pm to 6pm. + + Andrew saw Elizabeth taking photos near the Eiffel Tower from 6pm to 9pm. + + Emily saw Elizabeth getting a coffee at the cafe from 9pm to 10pm. + + The amusement park was closed after 10pm. + + Between what times could Elizabeth have gone to the amusement park? + + Options: + + (A) 7am to 1pm + + (B) 9pm to 10pm + + (C) 1pm to 2pm + + (D) 3pm to 6pm' + target: (A) + - input: 'Today, Tiffany went to the beach. Between what times could they have gone? + + We know that: + + Tiffany woke up at 5am. + + Betty saw Tiffany getting a coffee at the cafe from 5am to 6am. + + Jessica saw Tiffany working at the office from 6am to 9am. + + John saw Tiffany stretching at a yoga studio from 9am to 12pm. + + Sean saw Tiffany sitting on a rooftop from 12pm to 2pm. + + Sarah saw Tiffany playing tennis at the tennis court from 2pm to 3pm. + + The beach was closed after 4pm. + + Between what times could Tiffany have gone to the beach? + + Options: + + (A) 9am to 12pm + + (B) 12pm to 2pm + + (C) 5am to 6am + + (D) 3pm to 4pm' + target: (D) +include: _fewshot_template_yaml +task: leaderboard_bbh_temporal_sequences diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/tracking_shuffled_objects_five_objects.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/tracking_shuffled_objects_five_objects.yaml new file mode 100644 index 0000000000000000000000000000000000000000..75a23a141198fb33161a0bba0db89292db3e418e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/tracking_shuffled_objects_five_objects.yaml @@ -0,0 +1,57 @@ +dataset_name: tracking_shuffled_objects_five_objects +description: 'A task requiring determining the final positions of a set of objects + given their initial positions and a description of a sequence of swaps.' +doc_to_choice: ["(A)","(B)","(C)","(D)","(E)"] +fewshot_config: + sampler: first_n + samples: + - input: 'Alice, Bob, and Claire are playing a game. At the start of the game, they + are each holding a ball: Alice has a yellow ball, Bob has a blue ball, and Claire + has a pink ball. + + As the game progresses, pairs of players trade balls. First, Claire and Alice + swap balls. Then, Alice and Bob swap balls. Finally, Claire and Bob swap balls. + At the end of the game, Bob has the + + Options: + + (A) yellow ball + + (B) blue ball + + (C) pink ball' + target: (A) + - input: 'Alice, Bob, and Claire are playing a game. At the start of the game, they + are each holding a ball: Alice has a white ball, Bob has a purple ball, and + Claire has a pink ball. + + As the game progresses, pairs of players trade balls. First, Bob and Alice swap + balls. Then, Bob and Claire swap balls. Finally, Bob and Alice swap balls. At + the end of the game, Alice has the + + Options: + + (A) white ball + + (B) purple ball + + (C) pink ball' + target: (C) + - input: 'Alice, Bob, and Claire are dancers at a square dance. At the start of + a song, they each have a partner: Alice is dancing with Lola, Bob is dancing + with Rodrigo, and Claire is dancing with Patrick. + + Throughout the song, the dancers often trade partners. First, Alice and Bob + switch partners. Then, Claire and Bob switch partners. Finally, Bob and Alice + switch partners. At the end of the dance, Alice is dancing with + + Options: + + (A) Lola + + (B) Rodrigo + + (C) Patrick' + target: (C) +include: _fewshot_template_yaml +task: leaderboard_bbh_tracking_shuffled_objects_five_objects diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/tracking_shuffled_objects_seven_objects.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/tracking_shuffled_objects_seven_objects.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d3ea87ccfce90fc2d8ee96d2c62731711399c726 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/tracking_shuffled_objects_seven_objects.yaml @@ -0,0 +1,57 @@ +dataset_name: tracking_shuffled_objects_seven_objects +description: 'A task requiring determining the final positions of a set of objects + given their initial positions and a description of a sequence of swaps.' +doc_to_choice: ["(A)","(B)","(C)","(D)","(E)","(F)","(G)"] +fewshot_config: + sampler: first_n + samples: + - input: 'Alice, Bob, and Claire are playing a game. At the start of the game, they + are each holding a ball: Alice has a yellow ball, Bob has a blue ball, and Claire + has a pink ball. + + As the game progresses, pairs of players trade balls. First, Claire and Alice + swap balls. Then, Alice and Bob swap balls. Finally, Claire and Bob swap balls. + At the end of the game, Bob has the + + Options: + + (A) yellow ball + + (B) blue ball + + (C) pink ball' + target: (A) + - input: 'Alice, Bob, and Claire are playing a game. At the start of the game, they + are each holding a ball: Alice has a white ball, Bob has a purple ball, and + Claire has a pink ball. + + As the game progresses, pairs of players trade balls. First, Bob and Alice swap + balls. Then, Bob and Claire swap balls. Finally, Bob and Alice swap balls. At + the end of the game, Alice has the + + Options: + + (A) white ball + + (B) purple ball + + (C) pink ball' + target: (C) + - input: 'Alice, Bob, and Claire are dancers at a square dance. At the start of + a song, they each have a partner: Alice is dancing with Lola, Bob is dancing + with Rodrigo, and Claire is dancing with Patrick. + + Throughout the song, the dancers often trade partners. First, Alice and Bob + switch partners. Then, Claire and Bob switch partners. Finally, Bob and Alice + switch partners. At the end of the dance, Alice is dancing with + + Options: + + (A) Lola + + (B) Rodrigo + + (C) Patrick' + target: (C) +include: _fewshot_template_yaml +task: leaderboard_bbh_tracking_shuffled_objects_seven_objects diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/tracking_shuffled_objects_three_objects.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/tracking_shuffled_objects_three_objects.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7ab88a3c7d21fdceb1964d236bbc9c3d21f3c0b8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/tracking_shuffled_objects_three_objects.yaml @@ -0,0 +1,57 @@ +dataset_name: tracking_shuffled_objects_three_objects +description: 'A task requiring determining the final positions of a set of objects + given their initial positions and a description of a sequence of swaps.' +doc_to_choice: ["(A)","(B)","(C)"] +fewshot_config: + sampler: first_n + samples: + - input: 'Alice, Bob, and Claire are playing a game. At the start of the game, they + are each holding a ball: Alice has a yellow ball, Bob has a blue ball, and Claire + has a pink ball. + + As the game progresses, pairs of players trade balls. First, Claire and Alice + swap balls. Then, Alice and Bob swap balls. Finally, Claire and Bob swap balls. + At the end of the game, Bob has the + + Options: + + (A) yellow ball + + (B) blue ball + + (C) pink ball' + target: (A) + - input: 'Alice, Bob, and Claire are playing a game. At the start of the game, they + are each holding a ball: Alice has a white ball, Bob has a purple ball, and + Claire has a pink ball. + + As the game progresses, pairs of players trade balls. First, Bob and Alice swap + balls. Then, Bob and Claire swap balls. Finally, Bob and Alice swap balls. At + the end of the game, Alice has the + + Options: + + (A) white ball + + (B) purple ball + + (C) pink ball' + target: (C) + - input: 'Alice, Bob, and Claire are dancers at a square dance. At the start of + a song, they each have a partner: Alice is dancing with Lola, Bob is dancing + with Rodrigo, and Claire is dancing with Patrick. + + Throughout the song, the dancers often trade partners. First, Alice and Bob + switch partners. Then, Claire and Bob switch partners. Finally, Bob and Alice + switch partners. At the end of the dance, Alice is dancing with + + Options: + + (A) Lola + + (B) Rodrigo + + (C) Patrick' + target: (C) +include: _fewshot_template_yaml +task: leaderboard_bbh_tracking_shuffled_objects_three_objects diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/web_of_lies.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/web_of_lies.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e25e5f731abd96459d169dec2d1b9916f5cebe9e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/bbh_mc/web_of_lies.yaml @@ -0,0 +1,20 @@ +dataset_name: web_of_lies +description: 'Evaluate a random boolean function expressed as a word problem.' +doc_to_choice: ["Yes","No"] +fewshot_config: + sampler: first_n + samples: + - input: 'Question: Fidel tells the truth. Jerry says Fidel tells the truth. Vina + says Jerry tells the truth. Millicent says Vina lies. Raymond says Millicent + lies. Does Raymond tell the truth?' + target: 'Yes' + - input: 'Question: Kristian lies. Millie says Kristian lies. Maybelle says Millie + tells the truth. Fidel says Maybelle lies. Leda says Fidel lies. Does Leda tell + the truth?' + target: 'Yes' + - input: 'Question: Kristian tells the truth. Michaela says Kristian lies. Raymond + says Michaela tells the truth. Osvaldo says Raymond tells the truth. Jamey says + Osvaldo tells the truth. Does Jamey tell the truth?' + target: 'No' +include: _fewshot_template_yaml +task: leaderboard_bbh_web_of_lies diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/gpqa/_leaderboard_gpqa.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/gpqa/_leaderboard_gpqa.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2708f750c0d0de0975834e02d65fe8df3254dd8b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/gpqa/_leaderboard_gpqa.yaml @@ -0,0 +1,9 @@ +group: leaderboard_gpqa +task: + - leaderboard_gpqa_diamond + - leaderboard_gpqa_extended + - leaderboard_gpqa_main +aggregate_metric_list: + - metric: acc_norm + aggregation: mean + weight_by_size: true diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/gpqa/_template_yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/gpqa/_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..f4047292343005b69e259d0bb384126020ba16bc --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/gpqa/_template_yaml @@ -0,0 +1,19 @@ +dataset_path: Idavidrein/gpqa +output_type: multiple_choice +process_docs: !function utils.process_docs +training_split: train +# Because huggingface dataset only has train split +validation_split: train +test_split: null +doc_to_text: "What is the correct answer to this question:{{Question}}\nChoices:\n(A) {{choice1}}\n(B) {{choice2}}\n(C) {{choice3}}\n(D) {{choice4}}\nAnswer: " +doc_to_target: answer +doc_to_choice: ["(A)", "(B)", "(C)", "(D)"] +num_fewshot: 0 +metric_list: + - metric: acc_norm + aggregation: mean + higher_is_better: true +metadata: + version: 1.0 +fewshot_config: + sampler: first_n diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/gpqa/gpqa_diamond_zeroshot.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/gpqa/gpqa_diamond_zeroshot.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a38921657d611da44b841a1707ff01d6eba071d5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/gpqa/gpqa_diamond_zeroshot.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: gpqa_diamond +include: _template_yaml +task: leaderboard_gpqa_diamond diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/gpqa/gpqa_extended_zeroshot.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/gpqa/gpqa_extended_zeroshot.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b481d960c8a186a99a72aaea1839f5efe2cdfdc4 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/gpqa/gpqa_extended_zeroshot.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: gpqa_extended +include: _template_yaml +task: leaderboard_gpqa_extended diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/gpqa/gpqa_main_zeroshot.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/gpqa/gpqa_main_zeroshot.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a15e45b63af0840f41ae97e15419f33ea61f52d4 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/gpqa/gpqa_main_zeroshot.yaml @@ -0,0 +1,4 @@ +# Generated by _generate_configs.py +dataset_name: gpqa_main +include: _template_yaml +task: leaderboard_gpqa_main diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/gpqa/utils.py b/lm-evaluation-harness/lm_eval/tasks/leaderboard/gpqa/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..c2317e02efd132aea27ec8c8fad284df55ccd382 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/gpqa/utils.py @@ -0,0 +1,38 @@ +import random +import re + +import datasets + + +def preprocess(text): + if text is None: + return " " + text = text.strip() + text = text.replace(" [title]", ". ") + text = re.sub("\\[.*?\\]", "", text) + text = text.replace(" ", " ") + return text + + +def process_docs(dataset: datasets.Dataset) -> datasets.Dataset: + def _process_doc(doc): + choices = [ + preprocess(doc["Incorrect Answer 1"]), + preprocess(doc["Incorrect Answer 2"]), + preprocess(doc["Incorrect Answer 3"]), + preprocess(doc["Correct Answer"]), + ] + + random.shuffle(choices) + correct_answer_index = choices.index(preprocess(doc["Correct Answer"])) + + out_doc = { + "choice1": choices[0], + "choice2": choices[1], + "choice3": choices[2], + "choice4": choices[3], + "answer": f"({chr(65 + correct_answer_index)})", + } + return out_doc + + return dataset.map(_process_doc) diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/ifeval/_leaderboard_instruction_following.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/ifeval/_leaderboard_instruction_following.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a1203b0069cf3e01003ac7f3b4cc2a351c90214c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/ifeval/_leaderboard_instruction_following.yaml @@ -0,0 +1,3 @@ +group: leaderboard_instruction_following +task: + - leaderboard_ifeval diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/ifeval/ifeval.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/ifeval/ifeval.yaml new file mode 100644 index 0000000000000000000000000000000000000000..72c3ba02b8b5c1d7464a7c9361b144ba1d201268 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/ifeval/ifeval.yaml @@ -0,0 +1,31 @@ +task: leaderboard_ifeval +dataset_path: wis-k/instruction-following-eval +dataset_name: null +output_type: generate_until +test_split: train +num_fewshot: 0 +doc_to_text: prompt +doc_to_target: 0 +generation_kwargs: + until: [] + do_sample: false + temperature: 0.0 + max_gen_toks: 1280 +process_results: !function utils.process_results +metric_list: + - metric: prompt_level_strict_acc + aggregation: mean + higher_is_better: true + - metric: inst_level_strict_acc + aggregation: !function utils.agg_inst_level_acc + higher_is_better: true + - metric: prompt_level_loose_acc + aggregation: mean + higher_is_better: true + - metric: inst_level_loose_acc + aggregation: !function utils.agg_inst_level_acc + higher_is_better: true +metadata: + version: 3.0 +fewshot_config: + sampler: first_n diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/ifeval/instructions.py b/lm-evaluation-harness/lm_eval/tasks/leaderboard/ifeval/instructions.py new file mode 100644 index 0000000000000000000000000000000000000000..9a7bcce13b0f29b829f21dea14b8f7ce5baeaac1 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/ifeval/instructions.py @@ -0,0 +1,1612 @@ +# Copyright 2023 The Google Research Authors. +# +# 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. + +"""Library of instructions.""" + +import collections +import json +import logging +import random +import re +import string +from typing import Dict, Optional, Sequence, Union + +import langdetect + +from lm_eval.tasks.ifeval import instructions_util + + +logger = logging.getLogger(__name__) + +_InstructionArgsDtype = Optional[Dict[str, Union[int, str, Sequence[str]]]] + +_LANGUAGES = instructions_util.LANGUAGE_CODES + +# The relational operation for comparison. +_COMPARISON_RELATION = ("less than", "at least") + +# The maximum number of sentences. +_MAX_NUM_SENTENCES = 20 + +# The number of placeholders. +_NUM_PLACEHOLDERS = 4 + +# The number of bullet lists. +_NUM_BULLETS = 5 + +# The options of constrained response. +_CONSTRAINED_RESPONSE_OPTIONS = ( + "My answer is yes.", + "My answer is no.", + "My answer is maybe.", +) + +# The options of starter keywords. +_STARTER_OPTIONS = ( + "I would say", + "My answer is", + "I believe", + "In my opinion", + "I think", + "I reckon", + "I feel", + "From my perspective", + "As I see it", + "According to me", + "As far as I'm concerned", + "To my understanding", + "In my view", + "My take on it is", + "As per my perception", +) + +# The options of ending keywords. +# TODO(jeffreyzhou) add more ending options +_ENDING_OPTIONS = ("Any other questions?", "Is there anything else I can help with?") + +# The number of highlighted sections. +_NUM_HIGHLIGHTED_SECTIONS = 4 + +# The section splitter. +_SECTION_SPLITER = ("Section", "SECTION") + +# The number of sections. +_NUM_SECTIONS = 5 + +# The number of paragraphs. +_NUM_PARAGRAPHS = 5 + +# The postscript marker. +_POSTSCRIPT_MARKER = ("P.S.", "P.P.S") + +# The number of keywords. +_NUM_KEYWORDS = 2 + +# The occurrences of a single keyword. +_KEYWORD_FREQUENCY = 3 + +# The occurrences of a single letter. +_LETTER_FREQUENCY = 10 + +# The occurrences of words with all capital letters. +_ALL_CAPITAL_WORD_FREQUENCY = 20 + +# The number of words in the response. +_NUM_WORDS_LOWER_LIMIT = 100 +_NUM_WORDS_UPPER_LIMIT = 500 + + +class Instruction: + """An instruction template.""" + + def __init__(self, instruction_id): + self.id = instruction_id + + def build_description(self, **kwargs): + raise NotImplementedError("`build_description` not implemented.") + + def get_instruction_args(self): + raise NotImplementedError("`get_instruction_args` not implemented.") + + def get_instruction_args_keys(self): + raise NotImplementedError("`get_instruction_args_keys` not implemented.") + + def check_following(self, value): + raise NotImplementedError("`check_following` not implemented.") + + +class ResponseLanguageChecker(Instruction): + """Check the language of the entire response.""" + + def build_description(self, *, language=None): + """Build the instruction description. + + Args: + language: A string representing the expected language of the response. The + language has to comply to the 97 types defined in + `langid.py` (https://pypi.org/project/langid/1.1.5/), which follows + ISO 639-1 codes (https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes); + for example, `en` for English, `zh` for Chinese, `fr` for French. + + Returns: + A string representing the instruction description. + """ + self._language = language + if self._language is None: + self._language = random.choice(list(_LANGUAGES.keys())) + # TODO(tianjianlu): opens the description generation to more choices. + self._description_pattern = ( + "Your ENTIRE response should be in {language} language, no other " + + "language is allowed." + ) + return self._description_pattern.format(language=_LANGUAGES[self._language]) + + def get_instruction_args(self): + """Returns the keyword args of `build_description`.""" + return {"language": self._language} + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return ["language"] + + def check_following(self, value): + """Check if the language of the entire response follows the instruction. + + Args: + value: A string representing the response. + + Returns: + True if the language of `value` follows instruction; otherwise False. + """ + assert isinstance(value, str) + + try: + return langdetect.detect(value) == self._language + except langdetect.LangDetectException as e: + # Count as instruction is followed. + logging.error( + "Unable to detect language for text %s due to %s", value, e + ) # refex: disable=pytotw.037 + return True + + +class NumberOfSentences(Instruction): + """Check the number of sentences.""" + + def build_description(self, *, num_sentences=None, relation=None): + """Build the instruction description. + + Args: + num_sentences: An integer specifying the number of sentences as a + threshold. + relation: A string in (`less than`, `at least`), defining the relational + operator for comparison. + Two relational comparisons are supported for now: + if 'less than', the actual number of sentences < the threshold; + if 'at least', the actual number of sentences >= the threshold. + + Returns: + A string representing the instruction description. + """ + # The number of sentences as a threshold for comparison. + self._num_sentences_threshold = num_sentences + if self._num_sentences_threshold is None or self._num_sentences_threshold < 0: + self._num_sentences_threshold = random.randint(1, _MAX_NUM_SENTENCES) + + if relation is None: + self._comparison_relation = random.choice(_COMPARISON_RELATION) + elif relation not in _COMPARISON_RELATION: + raise ValueError( + "The supported relation for comparison must be in " + f"{_COMPARISON_RELATION}, but {relation} is given." + ) + else: + self._comparison_relation = relation + + self._description_pattern = ( + "Your response should contain {relation} {num_sentences} sentences." + ) + return self._description_pattern.format( + relation=self._comparison_relation, + num_sentences=self._num_sentences_threshold, + ) + + def get_instruction_args(self): + """Returns the keyword args of `build_description`.""" + return { + "num_sentences": self._num_sentences_threshold, + "relation": self._comparison_relation, + } + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return ["num_sentences", "relation"] + + def check_following(self, value): + """Check if the number of sentences follows the instruction. + + Args: + value: A string representing the response. + + Returns: + True if the response follows the instruction. + + Raise: + ValueError if the string in `instruction_args` is not in + [`less_than`, `at_least`]. + """ + num_sentences = instructions_util.count_sentences(value) + if self._comparison_relation == _COMPARISON_RELATION[0]: + return num_sentences < self._num_sentences_threshold + elif self._comparison_relation == _COMPARISON_RELATION[1]: + return num_sentences >= self._num_sentences_threshold + + +class PlaceholderChecker(Instruction): + """Check the placeholders in template writing.""" + + def build_description(self, *, num_placeholders=None): + """Build the instruction description. + + Args: + num_placeholders: An integer denoting the minimum number of + placeholders required in the response. + + Returns: + A string representing the instruction description. + """ + self._num_placeholders = num_placeholders + if self._num_placeholders is None or self._num_placeholders < 0: + self._num_placeholders = random.randint(1, _NUM_PLACEHOLDERS) + self._description_pattern = ( + "The response must contain at least {num_placeholders} placeholders " + + "represented by square brackets, such as [address]." + ) + return self._description_pattern.format(num_placeholders=self._num_placeholders) + + def get_instruction_args(self): + """Returns the keyword args of `build_description`.""" + return {"num_placeholders": self._num_placeholders} + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return ["num_placeholders"] + + def check_following(self, value): + """Check if the number of placeholders follows the instruction. + + Args: + value: A string representing the response. + + Returns: + True if the actual number of placeholders in the response is greater than + or equal to `num_placeholders`; otherwise, False. + """ + placeholders = re.findall(r"\[.*?\]", value) + num_placeholders = len(placeholders) + return num_placeholders >= self._num_placeholders + + +class BulletListChecker(Instruction): + """Checks the bullet list in the prompt.""" + + def build_description(self, *, num_bullets=None): + """Build the instruction description. + + Args: + num_bullets: An integer specifying the exact number of bullet lists + that is required to appear in the response. + + Returns: + A string representing the instruction description. + """ + self._num_bullets = num_bullets + if self._num_bullets is None or self._num_bullets < 0: + self._num_bullets = random.randint(1, _NUM_BULLETS) + self._description_pattern = ( + "Your answer must contain exactly {num_bullets} bullet points. " + + "Use the markdown bullet points such as:\n" + + "* This is point 1. \n" + + "* This is point 2" + ) + return self._description_pattern.format(num_bullets=self._num_bullets) + + def get_instruction_args(self): + """Returns the keyword args of `build_description`.""" + return {"num_bullets": self._num_bullets} + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return ["num_bullets"] + + def check_following(self, value): + r"""Check if the number of bullet lists meets the requirement. + + Args: + value: A string representing the response. The response is expected to + contain some bullet lists that start with `\*`. + + Returns: + True if the actual number of bullet lists in the response meets the + requirement. + """ + bullet_lists = re.findall(r"^\s*\*[^\*].*$", value, flags=re.MULTILINE) + bullet_lists_2 = re.findall(r"^\s*-.*$", value, flags=re.MULTILINE) + num_bullet_lists = len(bullet_lists) + len(bullet_lists_2) + return num_bullet_lists == self._num_bullets + + +class ConstrainedResponseChecker(Instruction): + """Checks the constrained response.""" + + def build_description(self): + """Build the instruction description.""" + # A sequence of string(s) representing the options of the expected response. + self._constrained_responses = _CONSTRAINED_RESPONSE_OPTIONS + self._description_pattern = ( + "Answer with one of the following options: {response_options}" + ) + return self._description_pattern.format( + response_options=self._constrained_responses + ) + + def get_instruction_args(self): + """Returns the keyword args of `build_description`.""" + return None + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return [] + + def check_following(self, value): + """Checks if the response matches the constrained options. + + Args: + value: A string representing the response. + + Returns: + True if the actual response contains one of the options in the constrained + responses; otherwise False. + """ + value = value.strip() + for constrained_response in self._constrained_responses: + if constrained_response in value: + return True + return False + + +class ConstrainedStartChecker(Instruction): + """Checks the response start.""" + + def build_description(self, *, starter=None): + """Build the instruction description. + + Args: + starter: A string representing the keyword that the response should start + with. + + Returns: + A string representing the instruction description. + """ + self._starter = starter.strip() if isinstance(starter, str) else starter + if self._starter is None: + self._starter = random.choice(_STARTER_OPTIONS) + self._description_pattern = ( + "During the conversation, when it is your turn, " + + "please always start with {starter}" + ) + return self._description_pattern.format(starter=self._starter) + + def get_instruction_args(self): + """Returns the keyword args of `build_description`.""" + return {"starter": self._starter} + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return ["starter"] + + def check_following(self, value): + """Checks if the response starts with the constrained keyword or phrase. + + Args: + value: A string representing the response. + + Returns: + True if the response starts with the given phrase or keyword that is + contained in `instruction_args`; otherwise, False. + """ + response_pattern = r"^\s*" + self._starter + r".*$" + response_with_constrained_start = re.search( + response_pattern, value, flags=re.MULTILINE + ) + return True if response_with_constrained_start else False + + +class HighlightSectionChecker(Instruction): + """Checks the highlighted section.""" + + def build_description(self, *, num_highlights=None): + """Build the instruction description. + + Args: + num_highlights: An integer specifying the minimum number of highlighted + sections. + + Returns: + A string representing the instruction description. + """ + self._num_highlights = num_highlights + if self._num_highlights is None or self._num_highlights < 0: + self._num_highlights = random.randint(1, _NUM_HIGHLIGHTED_SECTIONS) + + self._description_pattern = ( + "Highlight at least {num_highlights} sections in your answer with " + + "markdown, i.e. *highlighted section*." + ) + + return self._description_pattern.format(num_highlights=self._num_highlights) + + def get_instruction_args(self): + """Returns the keyword args of `build_description`.""" + return {"num_highlights": self._num_highlights} + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return ["num_highlights"] + + def check_following(self, value): + """Checks if the number of highlighted sections meets the requirement. + + Args: + value: a string representing the response. The response is expected to + contain highlighted sections in the format of *highlighted*. + + Returns: + True if the actual number of highlighted sections in the format of + *highlighted sections* meets the minimum requirement; otherwise False. + """ + num_highlights = 0 + highlights = re.findall(r"\*[^\n\*]*\*", value) + double_highlights = re.findall(r"\*\*[^\n\*]*\*\*", value) + for highlight in highlights: + if highlight.strip("*").strip(): + num_highlights += 1 + for highlight in double_highlights: + if highlight.removeprefix("**").removesuffix("**").strip(): + num_highlights += 1 + + return num_highlights >= self._num_highlights + + +class SectionChecker(Instruction): + """Checks the sections.""" + + def build_description(self, *, section_spliter=None, num_sections=None): + """Build the instruction description. + + Args: + section_spliter: A string represents the section spliter keyword that + marks a new section, i.e., `Section` or `SECTION`. + num_sections: An integer specifying the number of sections. + + Returns: + A string representing the instruction description. + """ + self._section_spliter = ( + section_spliter.strip() + if isinstance(section_spliter, str) + else section_spliter + ) + if self._section_spliter is None: + self._section_spliter = random.choice(_SECTION_SPLITER) + + self._num_sections = num_sections + if self._num_sections is None or self._num_sections < 0: + self._num_sections = random.randint(1, _NUM_SECTIONS) + + self._description_pattern = ( + "Your response must have {num_sections} sections. Mark the beginning " + + "of each section with {section_spliter} X, such as:\n" + + "{section_spliter} 1\n" + + "[content of section 1]\n" + + "{section_spliter} 2\n" + + "[content of section 2]" + ) + + return self._description_pattern.format( + num_sections=self._num_sections, section_spliter=self._section_spliter + ) + + def get_instruction_args(self): + """Returns the keyword args of `build_description`.""" + return { + "section_spliter": self._section_spliter, + "num_sections": self._num_sections, + } + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return ["section_spliter", "num_sections"] + + def check_following(self, value): + """Checks the response contains multiple sections. + + Args: + value: A string representing the response. The response is expected + to contain multiple sections (number of sections is greater than 1). + A new section starts with `Section 1`, where the number denotes the + section index. + + Returns: + True if the number of sections in the response is greater than or equal to + the minimum number of sections; otherwise, False. + """ + section_splitter_patten = r"\s?" + self._section_spliter + r"\s?\d+\s?" + sections = re.split(section_splitter_patten, value) + num_sections = len(sections) - 1 + return num_sections >= self._num_sections + + +class ParagraphChecker(Instruction): + """Checks the paragraphs.""" + + def build_description(self, *, num_paragraphs=None): + """Build the instruction description. + + Args: + num_paragraphs: An integer specifying the number of paragraphs. + + Returns: + A string representing the instruction description. + """ + self._num_paragraphs = num_paragraphs + if self._num_paragraphs is None or self._num_paragraphs < 0: + self._num_paragraphs = random.randint(1, _NUM_PARAGRAPHS) + + self._description_pattern = ( + "There should be {num_paragraphs} paragraphs. " + + "Paragraphs are separated with the markdown divider: ***" + ) + + return self._description_pattern.format(num_paragraphs=self._num_paragraphs) + + def get_instruction_args(self): + """Returns the keyword args of `build_description`.""" + return {"num_paragraphs": self._num_paragraphs} + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return ["num_paragraphs"] + + def check_following(self, value): + """Checks the response contains required number of paragraphs. + + Args: + value: A string representing the response. The response may contain + paragraphs that are separated by the markdown divider: `***`. + + Returns: + True if the actual number of paragraphs is the same as required; + otherwise, False. + """ + paragraphs = re.split(r"\s?\*\*\*\s?", value) + num_paragraphs = len(paragraphs) + + for index, paragraph in enumerate(paragraphs): + if not paragraph.strip(): + if index == 0 or index == len(paragraphs) - 1: + num_paragraphs -= 1 + else: + return False + + return num_paragraphs == self._num_paragraphs + + +class PostscriptChecker(Instruction): + """Checks the postscript.""" + + def build_description(self, *, postscript_marker=None): + """Build the instruction description. + + Args: + postscript_marker: A string containing the keyword that marks the start + of the postscript section. + + Returns: + A string representing the instruction description. + """ + self._postscript_marker = ( + postscript_marker.strip() + if isinstance(postscript_marker, str) + else postscript_marker + ) + if self._postscript_marker is None: + self._postscript_marker = random.choice(_POSTSCRIPT_MARKER) + + self._description_pattern = ( + "At the end of your response, please explicitly add a postscript " + + "starting with {postscript}" + ) + + return self._description_pattern.format(postscript=self._postscript_marker) + + def get_instruction_args(self): + """Returns the keyword args of `build_description`.""" + return {"postscript_marker": self._postscript_marker} + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return ["postscript_marker"] + + def check_following(self, value): + """Checks if the response follows the postscript format. + + Args: + value: a string representing the response. The response is expected to + contain a postscript section. + + Returns: + True if the response contains a postscript section starting with + the keyword containing in the `instruction_args`; otherwise False. + """ + value = value.lower() + if self._postscript_marker == "P.P.S": + postscript_pattern = r"\s*p\.\s?p\.\s?s.*$" + elif self._postscript_marker == "P.S.": + postscript_pattern = r"\s*p\.\s?s\..*$" + else: + postscript_pattern = r"\s*" + self._postscript_marker.lower() + r".*$" + postscript = re.findall(postscript_pattern, value, flags=re.MULTILINE) + return True if postscript else False + + +class RephraseChecker(Instruction): + """Checks the rephrase.""" + + def build_description(self, *, original_message): + """Build the instruction description. + + Args: + original_message: A string representing the original message. The + rephrased response should only change its words/sentences in between + its two asterisks, for example, *change me*. Both original and rephrased + messages should contain the changes in the form of *change me*. + + Returns: + A string representing the instruction description. + """ + if not self.is_change(original_message): + raise ValueError( + f"Message {original_message} does not contain changes " + "in the form of *change me*." + ) + + self._reference_without_change = original_message + self._description = ( + "Rephrasing: Your rephrased response should only" + + "change the words/sentences in between two asterisks" + + "such as *change me*." + ) + return self._description + + def get_instruction_args(self): + """Returns the keyword args of `build_description`.""" + return {"original_message": self._reference_without_change} + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return ["original_message"] + + def check_following(self, value): + r"""Checks if the rephrasing follows the instruction. + + Args: + value: A string representing the response, which is expected to rephras + the string of `instruction_args`. + + Returns: + True if `value` and `instruction_args` only differ by the words/sentences + in between two asterisks such as *change me*; otherwise, False. + """ + + if not self.is_change(value): + raise ValueError( + f"value {value} does not contain changes in the form of *change me*." + ) + + response_without_changes = self.strip_changes(value) + reference_without_changes = self.strip_changes(self._reference_without_change) + + return response_without_changes == reference_without_changes + + def is_change(self, response): + """Check if there is change in the response in the form of *change me*.""" + return re.search(r"\*.*\*", response) + + def strip_changes(self, response): + """Strips off the changes.""" + return re.sub(r"\*.*\*", "", response) + + +class KeywordChecker(Instruction): + """Check the exisitence of certain keywords.""" + + def build_description(self, *, keywords=None): + """Build the instruction description. + + Args: + keywords: A sequence of strings representing the keywords that are + expected in the response. + + Returns: + A string representing the instruction description. + """ + + if not keywords: + self._keywords = instructions_util.generate_keywords( + num_keywords=_NUM_KEYWORDS + ) + else: + self._keywords = keywords + self._keywords = sorted(self._keywords) + + self._description_pattern = "Include keywords {keywords} in the response." + + return self._description_pattern.format(keywords=self._keywords) + + def get_instruction_args(self): + """Returns the keyword args of `build_description`.""" + return {"keywords": self._keywords} + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return ["keywords"] + + def check_following(self, value): + """Check if the response contain the expected keywords.""" + for keyword in self._keywords: + if not re.search(keyword, value, flags=re.IGNORECASE): + return False + return True + + +class KeywordFrequencyChecker(Instruction): + """Check the keyword frequency.""" + + def build_description(self, *, keyword=None, frequency=None, relation=None): + """Build the instruction description. + + Args: + keyword: A string representing a keyword that is expected in the response. + frequency: An integer specifying the number of times `keyword` is expected + to appear in the response. + relation: A string in (`less than`, `at least`), defining the relational + operator for comparison. + Two relational comparisons are supported for now: + if 'less than', the actual number of occurrences < frequency; + if 'at least', the actual number of occurrences >= frequency. + + Returns: + A string representing the instruction description. + """ + if not keyword: + self._keyword = instructions_util.generate_keywords(num_keywords=1)[0] + else: + self._keyword = keyword.strip() + + self._frequency = frequency + if self._frequency is None or self._frequency < 0: + self._frequency = random.randint(1, _KEYWORD_FREQUENCY) + + if relation is None: + self._comparison_relation = random.choice(_COMPARISON_RELATION) + elif relation not in _COMPARISON_RELATION: + raise ValueError( + "The supported relation for comparison must be in " + f"{_COMPARISON_RELATION}, but {relation} is given." + ) + else: + self._comparison_relation = relation + + self._description_pattern = ( + "In your response, the word {keyword} should appear {relation} " + + "{frequency} times." + ) + + return self._description_pattern.format( + keyword=self._keyword, + relation=self._comparison_relation, + frequency=self._frequency, + ) + + def get_instruction_args(self): + """Returns the keyword args of `build_description`.""" + return { + "keyword": self._keyword, + "frequency": self._frequency, + "relation": self._comparison_relation, + } + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return ["keyword", "frequency", "relation"] + + def check_following(self, value): + """Checks if the response contain the keyword with required frequency.""" + actual_occurrences = len(re.findall(self._keyword, value, flags=re.IGNORECASE)) + + if self._comparison_relation == _COMPARISON_RELATION[0]: + return actual_occurrences < self._frequency + elif self._comparison_relation == _COMPARISON_RELATION[1]: + return actual_occurrences >= self._frequency + + +class NumberOfWords(Instruction): + """Checks the number of words.""" + + def build_description(self, *, num_words=None, relation=None): + """Build the instruction description. + + Args: + num_words: An integer specifying the number of words contained in the + response. + relation: A string in (`less than`, `at least`), defining the relational + operator for comparison. + Two relational comparisons are supported for now: + if 'less than', the actual number of words < num_words; + if 'at least', the actual number of words >= num_words. + + Returns: + A string representing the instruction description. + """ + + self._num_words = num_words + if self._num_words is None or self._num_words < 0: + self._num_words = random.randint( + _NUM_WORDS_LOWER_LIMIT, _NUM_WORDS_UPPER_LIMIT + ) + + if relation is None: + self._comparison_relation = random.choice(_COMPARISON_RELATION) + elif relation not in _COMPARISON_RELATION: + raise ValueError( + "The supported relation for comparison must be in " + f"{_COMPARISON_RELATION}, but {relation} is given." + ) + else: + self._comparison_relation = relation + + self._description_pattern = "Answer with {relation} {num_words} words." + + return self._description_pattern.format( + relation=self._comparison_relation, num_words=self._num_words + ) + + def get_instruction_args(self): + """Returns the keyword args of `build_description`.""" + return {"num_words": self._num_words, "relation": self._comparison_relation} + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return ["num_words", "relation"] + + def check_following(self, value): + """Checks if the response contains the expected number of words.""" + num_words = instructions_util.count_words(value) + + if self._comparison_relation == _COMPARISON_RELATION[0]: + return num_words < self._num_words + elif self._comparison_relation == _COMPARISON_RELATION[1]: + return num_words >= self._num_words + + +class JsonFormat(Instruction): + """Check the Json format.""" + + def build_description(self): + self._description_pattern = ( + "Entire output should be wrapped in JSON format. You can use markdown" + " ticks such as ```." + ) + return self._description_pattern + + def get_instruction_args(self): + """Returns the keyword args of `build_description`.""" + return None + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return [] + + def check_following(self, value): + value = ( + value.strip() + .removeprefix("```json") + .removeprefix("```Json") + .removeprefix("```JSON") + .removeprefix("```") + .removesuffix("```") + .strip() + ) + try: + json.loads(value) + except ValueError: + return False + return True + + +class ParagraphFirstWordCheck(Instruction): + """Check the paragraph and the first word of the nth paragraph.""" + + def build_description( + self, num_paragraphs=None, nth_paragraph=None, first_word=None + ): + r"""Build the instruction description. + + Args: + num_paragraphs: An integer indicating the number of paragraphs expected + in the response. A paragraph is a subset of the string that is + expected to be separated by '\n\n'. + nth_paragraph: An integer indicating the paragraph number that we look at. + Note that n starts from 1. + first_word: A string that represent the first word of the bth paragraph. + + Returns: + A string representing the instruction description. + """ + self._num_paragraphs = num_paragraphs + if self._num_paragraphs is None or self._num_paragraphs < 0: + self._num_paragraphs = random.randint(1, _NUM_PARAGRAPHS) + + self._nth_paragraph = nth_paragraph + if ( + self._nth_paragraph is None + or self._nth_paragraph <= 0 + or self._nth_paragraph > self._num_paragraphs + ): + self._nth_paragraph = random.randint(1, self._num_paragraphs + 1) + + self._first_word = first_word + if self._first_word is None: + self._first_word = instructions_util.generate_keywords(num_keywords=1)[0] + self._first_word = self._first_word.lower() + + self._description_pattern = ( + "There should be {num_paragraphs} paragraphs. " + + "Paragraphs and only paragraphs are separated with each other by two " + + "new lines as if it was '\\n\\n' in python. " + + "Paragraph {nth_paragraph} must start with word {first_word}." + ) + + return self._description_pattern.format( + num_paragraphs=self._num_paragraphs, + nth_paragraph=self._nth_paragraph, + first_word=self._first_word, + ) + + def get_instruction_args(self): + """Returns the keyword args of `build_description`.""" + return { + "num_paragraphs": self._num_paragraphs, + "nth_paragraph": self._nth_paragraph, + "first_word": self._first_word, + } + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return ["num_paragraphs", "nth_paragraph", "first_word"] + + def check_following(self, value): + """Checks for required number of paragraphs and correct first word. + + Args: + value: a string representing the response. The response may contain + paragraphs that are separated by two new lines and the first word of + the nth paragraph will have to match a specified word. + + Returns: + True if the number of paragraphs is the same as required and the first + word of the specified paragraph is the same as required. Otherwise, false. + """ + + paragraphs = re.split(r"\n\n", value) + num_paragraphs = len(paragraphs) + + for paragraph in paragraphs: + if not paragraph.strip(): + num_paragraphs -= 1 + + # check that index doesn't go out of bounds + if self._nth_paragraph <= num_paragraphs: + paragraph = paragraphs[self._nth_paragraph - 1].strip() + if not paragraph: + return False + else: + return False + + first_word = "" + punctuation = {".", ",", "?", "!", "'", '"'} + + # get first word and remove punctuation + word = paragraph.split()[0].strip() + # TODO(jeffrey): make more complex? + word = word.lstrip("'") + word = word.lstrip('"') + + for letter in word: + if letter in punctuation: + break + first_word += letter.lower() + + return num_paragraphs == self._num_paragraphs and first_word == self._first_word + + +# TODO(jeffrey) add relation - at least/at most? +class KeySentenceChecker(Instruction): + """Check the existence of certain key sentences.""" + + def build_description(self, key_sentences=None, num_sentences=None): + """Build the instruction description. + + Args: + key_sentences: A sequences of strings representing the key sentences that + are expected in the response. + num_sentences: The number of key sentences that are expected to be seen in + the response. + + Returns: + A string representing the instruction description. + """ + + if not key_sentences: + # TODO(jeffrey) make a generate sentences function? wonderwords package + self._key_sentences = set(["For now, this is fine."]) + else: + self._key_sentences = key_sentences + + if not num_sentences: + self._num_sentences = random.randint(1, len(self._key_sentences)) + else: + self._num_sentences = num_sentences + + self._description_pattern = ( + "Include {num_sentences} of the following sentences {key_sentences}" + ) + + return self._description_pattern.format( + num_sentences=self._num_sentences, key_sentences=self._key_sentences + ) + + def get_instruction_args(self): + """Returns the keyword args of `build_description`.""" + return { + "num_sentences": self._num_sentences, + "key_sentences": list(self._key_sentences), + } + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return ["num_sentences", "key_sentences"] + + def check_following(self, value): + """Checks if the response contains the expected key sentences.""" + count = 0 + sentences = instructions_util.split_into_sentences(value) + for sentence in self._key_sentences: + if sentence in sentences: + count += 1 + + return count == self._num_sentences + + +class ForbiddenWords(Instruction): + """Checks that specified words are not used in response.""" + + def build_description(self, forbidden_words=None): + """Build the instruction description. + + Args: + forbidden_words: A sequences of strings representing words that are not + allowed in the response. + + Returns: + A string representing the instruction description. + """ + + if not forbidden_words: + self._forbidden_words = instructions_util.generate_keywords( + num_keywords=_NUM_KEYWORDS + ) + else: + self._forbidden_words = list(set(forbidden_words)) + self._forbidden_words = sorted(self._forbidden_words) + self._description_pattern = ( + "Do not include keywords {forbidden_words} in the response." + ) + + return self._description_pattern.format(forbidden_words=self._forbidden_words) + + def get_instruction_args(self): + """Returns the keyword args of `build_description`.""" + return {"forbidden_words": self._forbidden_words} + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return ["forbidden_words"] + + def check_following(self, value): + """Check if the response does not contain the expected keywords.""" + for word in self._forbidden_words: + if re.search(r"\b" + word + r"\b", value, flags=re.IGNORECASE): + return False + return True + + +class RephraseParagraph(Instruction): + """Checks that the paragraph is rephrased.""" + + def build_description(self, *, original_paragraph, low, high): + """Builds the instruction description. + + Args: + original_paragraph: A string presenting the original paragraph. The + rephrases response should have betweeb low-high words in common. + low: An integer presenting the lower bound of similar words. + high: An integer representing the upper bound of similar words. + + Returns: + A string representing the instruction description. + """ + # TODO(jeffrey) make more encompassing + self._original_paragraph = original_paragraph + self._low = low + self._high = high + + self._description = ( + "Rephrase the following paragraph: " + + "{original_paragraph}\nYour response should have " + + "between {low} and {high} of the same words. " + + "Words are the same if and only if all of the " + + "letters, ignoring cases, are the same. For " + + "example, 'run' is the same as 'Run' but different " + + "to 'ran'." + ) + + return self._description.format( + original_paragraph=original_paragraph, low=self._low, high=self._high + ) + + def get_instruction_args(self): + """Returns the keyword args of `build_description`.""" + return { + "original_paragraph": self._original_paragraph, + "low": self._low, + "high": self._high, + } + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return ["original_paragraph", "low", "high"] + + def check_following(self, value): + val_words = re.findall(r"\w+", value.lower()) + original_words = re.findall(r"\w+", self._original_paragraph.lower()) + similar_words = 0 + + dict_val = collections.Counter(val_words) + dict_original = collections.Counter(original_words) + + for word in dict_original: + similar_words += min(dict_original[word], dict_val[word]) + + return similar_words >= self._low and similar_words <= self._high + + +class TwoResponsesChecker(Instruction): + """Check that two responses were given.""" + + def build_description(self): + """Build the instruction description.""" + self._description_pattern = ( + "Give two different responses. Responses and only responses should" + " be separated by 6 asterisk symbols: ******." + ) + return self._description_pattern + + def get_instruction_args(self): + """Returns the keyword args of `build_description`.""" + return None + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return [] + + def check_following(self, value): + """Checks if the response has two different answers. + + Args: + value: A string representing the response. + + Returns: + True if two responses are detected and false otherwise. + """ + valid_responses = list() + responses = value.split("******") + for index, response in enumerate(responses): + if not response.strip(): + if index != 0 and index != len(responses) - 1: + return False + else: + valid_responses.append(response) + return ( + len(valid_responses) == 2 + and valid_responses[0].strip() != valid_responses[1].strip() + ) + + +class RepeatPromptThenAnswer(Instruction): + """Checks that Prompt is first repeated then answered.""" + + def build_description(self, *, prompt_to_repeat=None): + """Build the instruction description. + + Args: + prompt_to_repeat: The prompt that is meant to be repeated. + + Returns: + A string representing the instruction description. + """ + if not prompt_to_repeat: + raise ValueError("prompt_to_repeat must be set.") + else: + self._prompt_to_repeat = prompt_to_repeat + self._description_pattern = ( + "First repeat the request word for word without change," + " then give your answer (1. do not say any words or characters" + " before repeating the request; 2. the request you need to repeat" + " does not include this sentence)" + ) + return self._description_pattern + + def get_instruction_args(self): + return {"prompt_to_repeat": self._prompt_to_repeat} + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return ["prompt_to_repeat"] + + def check_following(self, value): + if value.strip().lower().startswith(self._prompt_to_repeat.strip().lower()): + return True + return False + + +class EndChecker(Instruction): + """Checks that the prompt ends with a given phrase.""" + + def build_description(self, *, end_phrase=None): + """Build the instruction description. + + Args: + end_phrase: A string representing the phrase the response should end with. + + Returns: + A string representing the instruction description. + """ + self._end_phrase = ( + end_phrase.strip() if isinstance(end_phrase, str) else end_phrase + ) + if self._end_phrase is None: + self._end_phrase = random.choice(_ENDING_OPTIONS) + self._description_pattern = ( + "Finish your response with this exact phrase {ender}. " + "No other words should follow this phrase." + ) + return self._description_pattern.format(ender=self._end_phrase) + + def get_instruction_args(self): + return {"end_phrase": self._end_phrase} + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return ["end_phrase"] + + def check_following(self, value): + """Checks if the response ends with the expected phrase.""" + value = value.strip().strip('"').lower() + self._end_phrase = self._end_phrase.strip().lower() + return value.endswith(self._end_phrase) + + +class TitleChecker(Instruction): + """Checks the response for a title.""" + + def build_description(self): + """Build the instruction description.""" + self._description_pattern = ( + "Your answer must contain a title, wrapped in double angular brackets," + " such as <>." + ) + return self._description_pattern + + def get_instruction_args(self): + return None + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return [] + + def check_following(self, value): + """Checks if the response contains a title.""" + pattern = r"<<[^\n]+>>" + re_pattern = re.compile(pattern) + titles = re.findall(re_pattern, value) + + for title in titles: + if title.lstrip("<").rstrip(">").strip(): + return True + return False + + +class LetterFrequencyChecker(Instruction): + """Checks letter frequency.""" + + def build_description(self, *, letter=None, let_frequency=None, let_relation=None): + """Build the instruction description. + + Args: + letter: A string representing a letter that is expected in the response. + let_frequency: An integer specifying the number of times `keyword` is + expected to appear in the response. + let_relation: A string in (`less than`, `at least`), defining the + relational operator for comparison. Two relational comparisons are + supported for now; if 'less than', the actual number of + occurrences < frequency; if 'at least', the actual number of + occurrences >= frequency. + + Returns: + A string representing the instruction description. + """ + if ( + not letter + or len(letter) > 1 + or ord(letter.lower()) < 97 + or ord(letter.lower()) > 122 + ): + self._letter = random.choice(list(string.ascii_letters)) + else: + self._letter = letter.strip() + self._letter = self._letter.lower() + + self._frequency = let_frequency + if self._frequency is None or self._frequency < 0: + self._frequency = random.randint(1, _LETTER_FREQUENCY) + + if let_relation is None: + self._comparison_relation = random.choice(_COMPARISON_RELATION) + elif let_relation not in _COMPARISON_RELATION: + raise ValueError( + "The supported relation for comparison must be in " + f"{_COMPARISON_RELATION}, but {let_relation} is given." + ) + else: + self._comparison_relation = let_relation + + self._description_pattern = ( + "In your response, the letter {letter} should appear {let_relation}" + " {let_frequency} times." + ) + + return self._description_pattern.format( + letter=self._letter, + let_frequency=self._frequency, + let_relation=self._comparison_relation, + ) + + def get_instruction_args(self): + """Returns the keyword args of build description.""" + return { + "letter": self._letter, + "let_frequency": self._frequency, + "let_relation": self._comparison_relation, + } + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return ["letter", "let_frequency", "let_relation"] + + def check_following(self, value): + """Checks that the response contains the letter at the right frequency.""" + value = value.lower() + letters = collections.Counter(value) + + if self._comparison_relation == _COMPARISON_RELATION[0]: + return letters[self._letter] < self._frequency + else: + return letters[self._letter] >= self._frequency + + +class CapitalLettersEnglishChecker(Instruction): + """Checks that the response is in english and is in all capital letters.""" + + def build_description(self): + """Build the instruction description.""" + self._description_pattern = ( + "Your entire response should be in English, and in all capital letters." + ) + return self._description_pattern + + def get_instruction_args(self): + return None + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return [] + + def check_following(self, value): + """Checks that the response is in English and in all capital letters.""" + assert isinstance(value, str) + + try: + return value.isupper() and langdetect.detect(value) == "en" + except langdetect.LangDetectException as e: + # Count as instruction is followed. + logging.error( + "Unable to detect language for text %s due to %s", value, e + ) # refex: disable=pytotw.037 + return True + + +class LowercaseLettersEnglishChecker(Instruction): + """Checks that the response is in english and is in all lowercase letters.""" + + def build_description(self): + """Build the instruction description.""" + self._description_pattern = ( + "Your entire response should be in English, and in all lowercase" + " letters. No capital letters are allowed." + ) + return self._description_pattern + + def get_instruction_args(self): + return None + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return [] + + def check_following(self, value): + """Checks that the response is in English and in all lowercase letters.""" + assert isinstance(value, str) + + try: + return value.islower() and langdetect.detect(value) == "en" + except langdetect.LangDetectException as e: + # Count as instruction is followed. + logging.error( + "Unable to detect language for text %s due to %s", value, e + ) # refex: disable=pytotw.037 + return True + + +class CommaChecker(Instruction): + """Checks the response for no commas.""" + + def build_description(self): + """Build the instruction description.""" + self._description_pattern = ( + "In your entire response, refrain from the use of any commas." + ) + return self._description_pattern + + def get_instruction_args(self): + return None + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return [] + + def check_following(self, value): + """Checks that the response does not contain commas.""" + return not re.search(r"\,", value) + + +class CapitalWordFrequencyChecker(Instruction): + """Checks frequency of words with all capital letters.""" + + def build_description( + self, + capital_frequency=None, + capital_relation=None, + ): + """Build the instruction description. + + Args: + capital_frequency: An integer that represents the number of words that + should be in all capital letters. + capital_relation: A string that is 'at least' or 'at most' that refers to + the frequency. + + Returns: + A string representing the instruction description. + """ + self._frequency = capital_frequency + if self._frequency is None: + self._frequency = random.randint(1, _ALL_CAPITAL_WORD_FREQUENCY) + + self._comparison_relation = capital_relation + if capital_relation is None: + self._comparison_relation = random.choice(_COMPARISON_RELATION) + elif capital_relation not in _COMPARISON_RELATION: + raise ValueError( + "The supported relation for comparison must be in " + f"{_COMPARISON_RELATION}, but {capital_relation} is given." + ) + + self._description_pattern = ( + "In your response, words with all capital letters should appear" + " {relation} {frequency} times." + ) + + return self._description_pattern.format( + frequency=self._frequency, relation=self._comparison_relation + ) + + def get_instruction_args(self): + """Returns the keyword args of build description.""" + return { + "capital_frequency": self._frequency, + "capital_relation": self._comparison_relation, + } + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return ["capital_frequency", "capital_relation"] + + def check_following(self, value): + """Checks the frequency of words with all capital letters.""" + # Hyphenated words will count as one word + words = instructions_util.nltk.word_tokenize(value) + capital_words = [word for word in words if word.isupper()] + + capital_words = len(capital_words) + + if self._comparison_relation == _COMPARISON_RELATION[0]: + return capital_words < self._frequency + else: + return capital_words >= self._frequency + + +class QuotationChecker(Instruction): + """Checks response is wrapped with double quotation marks.""" + + def build_description(self): + """Build the instruction description.""" + self._description_pattern = ( + "Wrap your entire response with double quotation marks." + ) + return self._description_pattern + + def get_instruction_args(self): + """Returns the keyword args of build description.""" + return None + + def get_instruction_args_keys(self): + """Returns the args keys of `build_description`.""" + return [] + + def check_following(self, value): + """Checks if the response is wrapped with double quotation marks.""" + value = value.strip() + return len(value) > 1 and value[0] == '"' and value[-1] == '"' diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/ifeval/instructions_registry.py b/lm-evaluation-harness/lm_eval/tasks/leaderboard/ifeval/instructions_registry.py new file mode 100644 index 0000000000000000000000000000000000000000..00d9a1de1985beacead34215952ecf4642d1ea35 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/ifeval/instructions_registry.py @@ -0,0 +1,168 @@ +# Copyright 2023 The Google Research Authors. +# +# 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. + +"""Registry of all instructions.""" + +from lm_eval.tasks.ifeval import instructions + + +_KEYWORD = "keywords:" + +_LANGUAGE = "language:" + +_LENGTH = "length_constraints:" + +_CONTENT = "detectable_content:" + +_FORMAT = "detectable_format:" + +_MULTITURN = "multi-turn:" + +_COMBINATION = "combination:" + +_STARTEND = "startend:" + +_CHANGE_CASES = "change_case:" + +_PUNCTUATION = "punctuation:" + +INSTRUCTION_DICT = { + _KEYWORD + "existence": instructions.KeywordChecker, + _KEYWORD + "frequency": instructions.KeywordFrequencyChecker, + # TODO(jeffreyzhou): make a proper set of sentences to choose from + # _KEYWORD + "key_sentences": instructions.KeySentenceChecker, + _KEYWORD + "forbidden_words": instructions.ForbiddenWords, + _KEYWORD + "letter_frequency": instructions.LetterFrequencyChecker, + _LANGUAGE + "response_language": instructions.ResponseLanguageChecker, + _LENGTH + "number_sentences": instructions.NumberOfSentences, + _LENGTH + "number_paragraphs": instructions.ParagraphChecker, + _LENGTH + "number_words": instructions.NumberOfWords, + _LENGTH + "nth_paragraph_first_word": instructions.ParagraphFirstWordCheck, + _CONTENT + "number_placeholders": instructions.PlaceholderChecker, + _CONTENT + "postscript": instructions.PostscriptChecker, + _FORMAT + "number_bullet_lists": instructions.BulletListChecker, + # TODO(jeffreyzhou): Pre-create paragraph or use prompt to replace + # _CONTENT + "rephrase_paragraph": instructions.RephraseParagraph, + _FORMAT + "constrained_response": instructions.ConstrainedResponseChecker, + _FORMAT + "number_highlighted_sections": (instructions.HighlightSectionChecker), + _FORMAT + "multiple_sections": instructions.SectionChecker, + # TODO(tianjianlu): Re-enable rephrasing with preprocessing the message. + # _FORMAT + "rephrase": instructions.RephraseChecker, + _FORMAT + "json_format": instructions.JsonFormat, + _FORMAT + "title": instructions.TitleChecker, + # TODO(tianjianlu): Re-enable with specific prompts. + # _MULTITURN + "constrained_start": instructions.ConstrainedStartChecker, + _COMBINATION + "two_responses": instructions.TwoResponsesChecker, + _COMBINATION + "repeat_prompt": instructions.RepeatPromptThenAnswer, + _STARTEND + "end_checker": instructions.EndChecker, + _CHANGE_CASES + "capital_word_frequency": instructions.CapitalWordFrequencyChecker, + _CHANGE_CASES + "english_capital": instructions.CapitalLettersEnglishChecker, + _CHANGE_CASES + "english_lowercase": instructions.LowercaseLettersEnglishChecker, + _PUNCTUATION + "no_comma": instructions.CommaChecker, + _STARTEND + "quotation": instructions.QuotationChecker, +} + +INSTRUCTION_CONFLICTS = { + _KEYWORD + "existence": {_KEYWORD + "existence"}, + _KEYWORD + "frequency": {_KEYWORD + "frequency"}, + # TODO(jeffreyzhou): make a proper set of sentences to choose from + # _KEYWORD + "key_sentences": instructions.KeySentenceChecker, + _KEYWORD + "forbidden_words": {_KEYWORD + "forbidden_words"}, + _KEYWORD + "letter_frequency": {_KEYWORD + "letter_frequency"}, + _LANGUAGE + "response_language": { + _LANGUAGE + "response_language", + _FORMAT + "multiple_sections", + _KEYWORD + "existence", + _KEYWORD + "frequency", + _KEYWORD + "forbidden_words", + _STARTEND + "end_checker", + _CHANGE_CASES + "english_capital", + _CHANGE_CASES + "english_lowercase", + }, + _LENGTH + "number_sentences": {_LENGTH + "number_sentences"}, + _LENGTH + "number_paragraphs": { + _LENGTH + "number_paragraphs", + _LENGTH + "nth_paragraph_first_word", + _LENGTH + "number_sentences", + _LENGTH + "nth_paragraph_first_word", + }, + _LENGTH + "number_words": {_LENGTH + "number_words"}, + _LENGTH + "nth_paragraph_first_word": { + _LENGTH + "nth_paragraph_first_word", + _LENGTH + "number_paragraphs", + }, + _CONTENT + "number_placeholders": {_CONTENT + "number_placeholders"}, + _CONTENT + "postscript": {_CONTENT + "postscript"}, + _FORMAT + "number_bullet_lists": {_FORMAT + "number_bullet_lists"}, + # TODO(jeffreyzhou): Pre-create paragraph or use prompt to replace + # _CONTENT + "rephrase_paragraph": instructions.RephraseParagraph, + _FORMAT + "constrained_response": set(INSTRUCTION_DICT.keys()), + _FORMAT + "number_highlighted_sections": {_FORMAT + "number_highlighted_sections"}, + _FORMAT + "multiple_sections": { + _FORMAT + "multiple_sections", + _LANGUAGE + "response_language", + _FORMAT + "number_highlighted_sections", + }, + # TODO(tianjianlu): Re-enable rephrasing with preprocessing the message. + # _FORMAT + "rephrase": instructions.RephraseChecker, + _FORMAT + "json_format": set(INSTRUCTION_DICT.keys()).difference( + {_KEYWORD + "forbidden_words", _KEYWORD + "existence"} + ), + _FORMAT + "title": {_FORMAT + "title"}, + # TODO(tianjianlu): Re-enable with specific prompts. + # _MULTITURN + "constrained_start": instructions.ConstrainedStartChecker, + _COMBINATION + "two_responses": set(INSTRUCTION_DICT.keys()).difference( + { + _KEYWORD + "forbidden_words", + _KEYWORD + "existence", + _LANGUAGE + "response_language", + _FORMAT + "title", + _PUNCTUATION + "no_comma", + } + ), + _COMBINATION + "repeat_prompt": set(INSTRUCTION_DICT.keys()).difference( + {_KEYWORD + "existence", _FORMAT + "title", _PUNCTUATION + "no_comma"} + ), + _STARTEND + "end_checker": {_STARTEND + "end_checker"}, + _CHANGE_CASES + "capital_word_frequency": { + _CHANGE_CASES + "capital_word_frequency", + _CHANGE_CASES + "english_lowercase", + _CHANGE_CASES + "english_capital", + }, + _CHANGE_CASES + "english_capital": {_CHANGE_CASES + "english_capital"}, + _CHANGE_CASES + "english_lowercase": { + _CHANGE_CASES + "english_lowercase", + _CHANGE_CASES + "english_capital", + }, + _PUNCTUATION + "no_comma": {_PUNCTUATION + "no_comma"}, + _STARTEND + "quotation": {_STARTEND + "quotation", _FORMAT + "title"}, +} + + +def conflict_make(conflicts): + """Makes sure if A conflicts with B, B will conflict with A. + + Args: + conflicts: Dictionary of potential conflicts where key is instruction id + and value is set of instruction ids that it conflicts with. + + Returns: + Revised version of the dictionary. All instructions conflict with + themselves. If A conflicts with B, B will conflict with A. + """ + for key in conflicts: + for k in conflicts[key]: + conflicts[k].add(key) + conflicts[key].add(key) + return conflicts diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/ifeval/instructions_util.py b/lm-evaluation-harness/lm_eval/tasks/leaderboard/ifeval/instructions_util.py new file mode 100644 index 0000000000000000000000000000000000000000..6993e41808401f0512c277886dae8683750491bd --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/ifeval/instructions_util.py @@ -0,0 +1,1696 @@ +# Copyright 2023 The Google Research Authors. +# +# 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. + +"""Utility library of instructions.""" + +import functools +import random +import re + +import immutabledict +import nltk +import pkg_resources +from packaging import version + + +# Downloading 'punkt' with nltk<3.9 has a remote code vuln. +# see https://github.com/EleutherAI/lm-evaluation-harness/issues/2210 +# and https://github.com/nltk/nltk/issues/3266 +# for more information. +NLTK_MIN_VERSION = "3.9.1" + + +def download_nltk_resources(): + """Download 'punkt' if not already installed""" + nltk_version = pkg_resources.get_distribution("nltk").version + assert version.parse(nltk_version) >= version.parse(NLTK_MIN_VERSION), ( + f"`nltk` version {nltk_version} is not >= {NLTK_MIN_VERSION}. Please update `nltk` before proceeding--older versions are vulnerable to a remote code execution vulnerability." + ) + + try: + nltk.data.find("tokenizers/punkt_tab") + except LookupError: + nltk.download("punkt_tab") + + +download_nltk_resources() + +WORD_LIST = [ + "western", + "sentence", + "signal", + "dump", + "spot", + "opposite", + "bottom", + "potato", + "administration", + "working", + "welcome", + "morning", + "good", + "agency", + "primary", + "wish", + "responsibility", + "press", + "problem", + "president", + "steal", + "brush", + "read", + "type", + "beat", + "trainer", + "growth", + "lock", + "bone", + "case", + "equal", + "comfortable", + "region", + "replacement", + "performance", + "mate", + "walk", + "medicine", + "film", + "thing", + "rock", + "tap", + "total", + "competition", + "ease", + "south", + "establishment", + "gather", + "parking", + "world", + "plenty", + "breath", + "claim", + "alcohol", + "trade", + "dear", + "highlight", + "street", + "matter", + "decision", + "mess", + "agreement", + "studio", + "coach", + "assist", + "brain", + "wing", + "style", + "private", + "top", + "brown", + "leg", + "buy", + "procedure", + "method", + "speed", + "high", + "company", + "valuable", + "pie", + "analyst", + "session", + "pattern", + "district", + "pleasure", + "dinner", + "swimming", + "joke", + "order", + "plate", + "department", + "motor", + "cell", + "spend", + "cabinet", + "difference", + "power", + "examination", + "engine", + "horse", + "dimension", + "pay", + "toe", + "curve", + "literature", + "bother", + "fire", + "possibility", + "debate", + "activity", + "passage", + "hello", + "cycle", + "background", + "quiet", + "author", + "effect", + "actor", + "page", + "bicycle", + "error", + "throat", + "attack", + "character", + "phone", + "tea", + "increase", + "outcome", + "file", + "specific", + "inspector", + "internal", + "potential", + "staff", + "building", + "employer", + "shoe", + "hand", + "direction", + "garden", + "purchase", + "interview", + "study", + "recognition", + "member", + "spiritual", + "oven", + "sandwich", + "weird", + "passenger", + "particular", + "response", + "reaction", + "size", + "variation", + "a", + "cancel", + "candy", + "exit", + "guest", + "condition", + "fly", + "price", + "weakness", + "convert", + "hotel", + "great", + "mouth", + "mind", + "song", + "sugar", + "suspect", + "telephone", + "ear", + "roof", + "paint", + "refrigerator", + "organization", + "jury", + "reward", + "engineering", + "day", + "possession", + "crew", + "bar", + "road", + "description", + "celebration", + "score", + "mark", + "letter", + "shower", + "suggestion", + "sir", + "luck", + "national", + "progress", + "hall", + "stroke", + "theory", + "offer", + "story", + "tax", + "definition", + "history", + "ride", + "medium", + "opening", + "glass", + "elevator", + "stomach", + "question", + "ability", + "leading", + "village", + "computer", + "city", + "grand", + "confidence", + "candle", + "priest", + "recommendation", + "point", + "necessary", + "body", + "desk", + "secret", + "horror", + "noise", + "culture", + "warning", + "water", + "round", + "diet", + "flower", + "bus", + "tough", + "permission", + "week", + "prompt", + "connection", + "abuse", + "height", + "save", + "corner", + "border", + "stress", + "drive", + "stop", + "rip", + "meal", + "listen", + "confusion", + "girlfriend", + "living", + "relation", + "significance", + "plan", + "creative", + "atmosphere", + "blame", + "invite", + "housing", + "paper", + "drink", + "roll", + "silver", + "drunk", + "age", + "damage", + "smoke", + "environment", + "pack", + "savings", + "influence", + "tourist", + "rain", + "post", + "sign", + "grandmother", + "run", + "profit", + "push", + "clerk", + "final", + "wine", + "swim", + "pause", + "stuff", + "singer", + "funeral", + "average", + "source", + "scene", + "tradition", + "personal", + "snow", + "nobody", + "distance", + "sort", + "sensitive", + "animal", + "major", + "negotiation", + "click", + "mood", + "period", + "arrival", + "expression", + "holiday", + "repeat", + "dust", + "closet", + "gold", + "bad", + "sail", + "combination", + "clothes", + "emphasis", + "duty", + "black", + "step", + "school", + "jump", + "document", + "professional", + "lip", + "chemical", + "front", + "wake", + "while", + "inside", + "watch", + "row", + "subject", + "penalty", + "balance", + "possible", + "adult", + "aside", + "sample", + "appeal", + "wedding", + "depth", + "king", + "award", + "wife", + "blow", + "site", + "camp", + "music", + "safe", + "gift", + "fault", + "guess", + "act", + "shame", + "drama", + "capital", + "exam", + "stupid", + "record", + "sound", + "swing", + "novel", + "minimum", + "ratio", + "machine", + "shape", + "lead", + "operation", + "salary", + "cloud", + "affair", + "hit", + "chapter", + "stage", + "quantity", + "access", + "army", + "chain", + "traffic", + "kick", + "analysis", + "airport", + "time", + "vacation", + "philosophy", + "ball", + "chest", + "thanks", + "place", + "mountain", + "advertising", + "red", + "past", + "rent", + "return", + "tour", + "house", + "construction", + "net", + "native", + "war", + "figure", + "fee", + "spray", + "user", + "dirt", + "shot", + "task", + "stick", + "friend", + "software", + "promotion", + "interaction", + "surround", + "block", + "purpose", + "practice", + "conflict", + "routine", + "requirement", + "bonus", + "hole", + "state", + "junior", + "sweet", + "catch", + "tear", + "fold", + "wall", + "editor", + "life", + "position", + "pound", + "respect", + "bathroom", + "coat", + "script", + "job", + "teach", + "birth", + "view", + "resolve", + "theme", + "employee", + "doubt", + "market", + "education", + "serve", + "recover", + "tone", + "harm", + "miss", + "union", + "understanding", + "cow", + "river", + "association", + "concept", + "training", + "recipe", + "relationship", + "reserve", + "depression", + "proof", + "hair", + "revenue", + "independent", + "lift", + "assignment", + "temporary", + "amount", + "loss", + "edge", + "track", + "check", + "rope", + "estimate", + "pollution", + "stable", + "message", + "delivery", + "perspective", + "mirror", + "assistant", + "representative", + "witness", + "nature", + "judge", + "fruit", + "tip", + "devil", + "town", + "emergency", + "upper", + "drop", + "stay", + "human", + "neck", + "speaker", + "network", + "sing", + "resist", + "league", + "trip", + "signature", + "lawyer", + "importance", + "gas", + "choice", + "engineer", + "success", + "part", + "external", + "worker", + "simple", + "quarter", + "student", + "heart", + "pass", + "spite", + "shift", + "rough", + "lady", + "grass", + "community", + "garage", + "youth", + "standard", + "skirt", + "promise", + "blind", + "television", + "disease", + "commission", + "positive", + "energy", + "calm", + "presence", + "tune", + "basis", + "preference", + "head", + "common", + "cut", + "somewhere", + "presentation", + "current", + "thought", + "revolution", + "effort", + "master", + "implement", + "republic", + "floor", + "principle", + "stranger", + "shoulder", + "grade", + "button", + "tennis", + "police", + "collection", + "account", + "register", + "glove", + "divide", + "professor", + "chair", + "priority", + "combine", + "peace", + "extension", + "maybe", + "evening", + "frame", + "sister", + "wave", + "code", + "application", + "mouse", + "match", + "counter", + "bottle", + "half", + "cheek", + "resolution", + "back", + "knowledge", + "make", + "discussion", + "screw", + "length", + "accident", + "battle", + "dress", + "knee", + "log", + "package", + "it", + "turn", + "hearing", + "newspaper", + "layer", + "wealth", + "profile", + "imagination", + "answer", + "weekend", + "teacher", + "appearance", + "meet", + "bike", + "rise", + "belt", + "crash", + "bowl", + "equivalent", + "support", + "image", + "poem", + "risk", + "excitement", + "remote", + "secretary", + "public", + "produce", + "plane", + "display", + "money", + "sand", + "situation", + "punch", + "customer", + "title", + "shake", + "mortgage", + "option", + "number", + "pop", + "window", + "extent", + "nothing", + "experience", + "opinion", + "departure", + "dance", + "indication", + "boy", + "material", + "band", + "leader", + "sun", + "beautiful", + "muscle", + "farmer", + "variety", + "fat", + "handle", + "director", + "opportunity", + "calendar", + "outside", + "pace", + "bath", + "fish", + "consequence", + "put", + "owner", + "go", + "doctor", + "information", + "share", + "hurt", + "protection", + "career", + "finance", + "force", + "golf", + "garbage", + "aspect", + "kid", + "food", + "boot", + "milk", + "respond", + "objective", + "reality", + "raw", + "ring", + "mall", + "one", + "impact", + "area", + "news", + "international", + "series", + "impress", + "mother", + "shelter", + "strike", + "loan", + "month", + "seat", + "anything", + "entertainment", + "familiar", + "clue", + "year", + "glad", + "supermarket", + "natural", + "god", + "cost", + "conversation", + "tie", + "ruin", + "comfort", + "earth", + "storm", + "percentage", + "assistance", + "budget", + "strength", + "beginning", + "sleep", + "other", + "young", + "unit", + "fill", + "store", + "desire", + "hide", + "value", + "cup", + "maintenance", + "nurse", + "function", + "tower", + "role", + "class", + "camera", + "database", + "panic", + "nation", + "basket", + "ice", + "art", + "spirit", + "chart", + "exchange", + "feedback", + "statement", + "reputation", + "search", + "hunt", + "exercise", + "nasty", + "notice", + "male", + "yard", + "annual", + "collar", + "date", + "platform", + "plant", + "fortune", + "passion", + "friendship", + "spread", + "cancer", + "ticket", + "attitude", + "island", + "active", + "object", + "service", + "buyer", + "bite", + "card", + "face", + "steak", + "proposal", + "patient", + "heat", + "rule", + "resident", + "broad", + "politics", + "west", + "knife", + "expert", + "girl", + "design", + "salt", + "baseball", + "grab", + "inspection", + "cousin", + "couple", + "magazine", + "cook", + "dependent", + "security", + "chicken", + "version", + "currency", + "ladder", + "scheme", + "kitchen", + "employment", + "local", + "attention", + "manager", + "fact", + "cover", + "sad", + "guard", + "relative", + "county", + "rate", + "lunch", + "program", + "initiative", + "gear", + "bridge", + "breast", + "talk", + "dish", + "guarantee", + "beer", + "vehicle", + "reception", + "woman", + "substance", + "copy", + "lecture", + "advantage", + "park", + "cold", + "death", + "mix", + "hold", + "scale", + "tomorrow", + "blood", + "request", + "green", + "cookie", + "church", + "strip", + "forever", + "beyond", + "debt", + "tackle", + "wash", + "following", + "feel", + "maximum", + "sector", + "sea", + "property", + "economics", + "menu", + "bench", + "try", + "language", + "start", + "call", + "solid", + "address", + "income", + "foot", + "senior", + "honey", + "few", + "mixture", + "cash", + "grocery", + "link", + "map", + "form", + "factor", + "pot", + "model", + "writer", + "farm", + "winter", + "skill", + "anywhere", + "birthday", + "policy", + "release", + "husband", + "lab", + "hurry", + "mail", + "equipment", + "sink", + "pair", + "driver", + "consideration", + "leather", + "skin", + "blue", + "boat", + "sale", + "brick", + "two", + "feed", + "square", + "dot", + "rush", + "dream", + "location", + "afternoon", + "manufacturer", + "control", + "occasion", + "trouble", + "introduction", + "advice", + "bet", + "eat", + "kill", + "category", + "manner", + "office", + "estate", + "pride", + "awareness", + "slip", + "crack", + "client", + "nail", + "shoot", + "membership", + "soft", + "anybody", + "web", + "official", + "individual", + "pizza", + "interest", + "bag", + "spell", + "profession", + "queen", + "deal", + "resource", + "ship", + "guy", + "chocolate", + "joint", + "formal", + "upstairs", + "car", + "resort", + "abroad", + "dealer", + "associate", + "finger", + "surgery", + "comment", + "team", + "detail", + "crazy", + "path", + "tale", + "initial", + "arm", + "radio", + "demand", + "single", + "draw", + "yellow", + "contest", + "piece", + "quote", + "pull", + "commercial", + "shirt", + "contribution", + "cream", + "channel", + "suit", + "discipline", + "instruction", + "concert", + "speech", + "low", + "effective", + "hang", + "scratch", + "industry", + "breakfast", + "lay", + "join", + "metal", + "bedroom", + "minute", + "product", + "rest", + "temperature", + "many", + "give", + "argument", + "print", + "purple", + "laugh", + "health", + "credit", + "investment", + "sell", + "setting", + "lesson", + "egg", + "middle", + "marriage", + "level", + "evidence", + "phrase", + "love", + "self", + "benefit", + "guidance", + "affect", + "you", + "dad", + "anxiety", + "special", + "boyfriend", + "test", + "blank", + "payment", + "soup", + "obligation", + "reply", + "smile", + "deep", + "complaint", + "addition", + "review", + "box", + "towel", + "minor", + "fun", + "soil", + "issue", + "cigarette", + "internet", + "gain", + "tell", + "entry", + "spare", + "incident", + "family", + "refuse", + "branch", + "can", + "pen", + "grandfather", + "constant", + "tank", + "uncle", + "climate", + "ground", + "volume", + "communication", + "kind", + "poet", + "child", + "screen", + "mine", + "quit", + "gene", + "lack", + "charity", + "memory", + "tooth", + "fear", + "mention", + "marketing", + "reveal", + "reason", + "court", + "season", + "freedom", + "land", + "sport", + "audience", + "classroom", + "law", + "hook", + "win", + "carry", + "eye", + "smell", + "distribution", + "research", + "country", + "dare", + "hope", + "whereas", + "stretch", + "library", + "if", + "delay", + "college", + "plastic", + "book", + "present", + "use", + "worry", + "champion", + "goal", + "economy", + "march", + "election", + "reflection", + "midnight", + "slide", + "inflation", + "action", + "challenge", + "guitar", + "coast", + "apple", + "campaign", + "field", + "jacket", + "sense", + "way", + "visual", + "remove", + "weather", + "trash", + "cable", + "regret", + "buddy", + "beach", + "historian", + "courage", + "sympathy", + "truck", + "tension", + "permit", + "nose", + "bed", + "son", + "person", + "base", + "meat", + "usual", + "air", + "meeting", + "worth", + "game", + "independence", + "physical", + "brief", + "play", + "raise", + "board", + "she", + "key", + "writing", + "pick", + "command", + "party", + "yesterday", + "spring", + "candidate", + "physics", + "university", + "concern", + "development", + "change", + "string", + "target", + "instance", + "room", + "bitter", + "bird", + "football", + "normal", + "split", + "impression", + "wood", + "long", + "meaning", + "stock", + "cap", + "leadership", + "media", + "ambition", + "fishing", + "essay", + "salad", + "repair", + "today", + "designer", + "night", + "bank", + "drawing", + "inevitable", + "phase", + "vast", + "chip", + "anger", + "switch", + "cry", + "twist", + "personality", + "attempt", + "storage", + "being", + "preparation", + "bat", + "selection", + "white", + "technology", + "contract", + "side", + "section", + "station", + "till", + "structure", + "tongue", + "taste", + "truth", + "difficulty", + "group", + "limit", + "main", + "move", + "feeling", + "light", + "example", + "mission", + "might", + "wait", + "wheel", + "shop", + "host", + "classic", + "alternative", + "cause", + "agent", + "consist", + "table", + "airline", + "text", + "pool", + "craft", + "range", + "fuel", + "tool", + "partner", + "load", + "entrance", + "deposit", + "hate", + "article", + "video", + "summer", + "feature", + "extreme", + "mobile", + "hospital", + "flight", + "fall", + "pension", + "piano", + "fail", + "result", + "rub", + "gap", + "system", + "report", + "suck", + "ordinary", + "wind", + "nerve", + "ask", + "shine", + "note", + "line", + "mom", + "perception", + "brother", + "reference", + "bend", + "charge", + "treat", + "trick", + "term", + "homework", + "bake", + "bid", + "status", + "project", + "strategy", + "orange", + "let", + "enthusiasm", + "parent", + "concentrate", + "device", + "travel", + "poetry", + "business", + "society", + "kiss", + "end", + "vegetable", + "employ", + "schedule", + "hour", + "brave", + "focus", + "process", + "movie", + "illegal", + "general", + "coffee", + "ad", + "highway", + "chemistry", + "psychology", + "hire", + "bell", + "conference", + "relief", + "show", + "neat", + "funny", + "weight", + "quality", + "club", + "daughter", + "zone", + "touch", + "tonight", + "shock", + "burn", + "excuse", + "name", + "survey", + "landscape", + "advance", + "satisfaction", + "bread", + "disaster", + "item", + "hat", + "prior", + "shopping", + "visit", + "east", + "photo", + "home", + "idea", + "father", + "comparison", + "cat", + "pipe", + "winner", + "count", + "lake", + "fight", + "prize", + "foundation", + "dog", + "keep", + "ideal", + "fan", + "struggle", + "peak", + "safety", + "solution", + "hell", + "conclusion", + "population", + "strain", + "alarm", + "measurement", + "second", + "train", + "race", + "due", + "insurance", + "boss", + "tree", + "monitor", + "sick", + "course", + "drag", + "appointment", + "slice", + "still", + "care", + "patience", + "rich", + "escape", + "emotion", + "royal", + "female", + "childhood", + "government", + "picture", + "will", + "sock", + "big", + "gate", + "oil", + "cross", + "pin", + "improvement", + "championship", + "silly", + "help", + "sky", + "pitch", + "man", + "diamond", + "most", + "transition", + "work", + "science", + "committee", + "moment", + "fix", + "teaching", + "dig", + "specialist", + "complex", + "guide", + "people", + "dead", + "voice", + "original", + "break", + "topic", + "data", + "degree", + "reading", + "recording", + "bunch", + "reach", + "judgment", + "lie", + "regular", + "set", + "painting", + "mode", + "list", + "player", + "bear", + "north", + "wonder", + "carpet", + "heavy", + "officer", + "negative", + "clock", + "unique", + "baby", + "pain", + "assumption", + "disk", + "iron", + "bill", + "drawer", + "look", + "double", + "mistake", + "finish", + "future", + "brilliant", + "contact", + "math", + "rice", + "leave", + "restaurant", + "discount", + "sex", + "virus", + "bit", + "trust", + "event", + "wear", + "juice", + "failure", + "bug", + "context", + "mud", + "whole", + "wrap", + "intention", + "draft", + "pressure", + "cake", + "dark", + "explanation", + "space", + "angle", + "word", + "efficiency", + "management", + "habit", + "star", + "chance", + "finding", + "transportation", + "stand", + "criticism", + "flow", + "door", + "injury", + "insect", + "surprise", + "apartment", +] # pylint: disable=line-too-long + +# ISO 639-1 codes to language names. +LANGUAGE_CODES = immutabledict.immutabledict( + { + "en": "English", + "es": "Spanish", + "pt": "Portuguese", + "ar": "Arabic", + "hi": "Hindi", + "fr": "French", + "ru": "Russian", + "de": "German", + "ja": "Japanese", + "it": "Italian", + "bn": "Bengali", + "uk": "Ukrainian", + "th": "Thai", + "ur": "Urdu", + "ta": "Tamil", + "te": "Telugu", + "bg": "Bulgarian", + "ko": "Korean", + "pl": "Polish", + "he": "Hebrew", + "fa": "Persian", + "vi": "Vietnamese", + "ne": "Nepali", + "sw": "Swahili", + "kn": "Kannada", + "mr": "Marathi", + "gu": "Gujarati", + "pa": "Punjabi", + "ml": "Malayalam", + "fi": "Finnish", + } +) + +_ALPHABETS = "([A-Za-z])" +_PREFIXES = "(Mr|St|Mrs|Ms|Dr)[.]" +_SUFFIXES = "(Inc|Ltd|Jr|Sr|Co)" +_STARTERS = r"(Mr|Mrs|Ms|Dr|Prof|Capt|Cpt|Lt|He\s|She\s|It\s|They\s|Their\s|Our\s|We\s|But\s|However\s|That\s|This\s|Wherever)" +_ACRONYMS = "([A-Z][.][A-Z][.](?:[A-Z][.])?)" +_WEBSITES = "[.](com|net|org|io|gov|edu|me)" +_DIGITS = "([0-9])" +_MULTIPLE_DOTS = r"\.{2,}" + + +def split_into_sentences(text): + """Split the text into sentences. + + Args: + text: A string that consists of more than or equal to one sentences. + + Returns: + A list of strings where each string is a sentence. + """ + text = " " + text + " " + text = text.replace("\n", " ") + text = re.sub(_PREFIXES, "\\1", text) + text = re.sub(_WEBSITES, "\\1", text) + text = re.sub(_DIGITS + "[.]" + _DIGITS, "\\1\\2", text) + text = re.sub( + _MULTIPLE_DOTS, + lambda match: "" * len(match.group(0)) + "", + text, + ) + if "Ph.D" in text: + text = text.replace("Ph.D.", "PhD") + text = re.sub(r"\s" + _ALPHABETS + "[.] ", " \\1 ", text) + text = re.sub(_ACRONYMS + " " + _STARTERS, "\\1 \\2", text) + text = re.sub( + _ALPHABETS + "[.]" + _ALPHABETS + "[.]" + _ALPHABETS + "[.]", + "\\1\\2\\3", + text, + ) + text = re.sub(_ALPHABETS + "[.]" + _ALPHABETS + "[.]", "\\1\\2", text) + text = re.sub(" " + _SUFFIXES + "[.] " + _STARTERS, " \\1 \\2", text) + text = re.sub(" " + _SUFFIXES + "[.]", " \\1", text) + text = re.sub(" " + _ALPHABETS + "[.]", " \\1", text) + if "”" in text: + text = text.replace(".”", "”.") + if '"' in text: + text = text.replace('."', '".') + if "!" in text: + text = text.replace('!"', '"!') + if "?" in text: + text = text.replace('?"', '"?') + text = text.replace(".", ".") + text = text.replace("?", "?") + text = text.replace("!", "!") + text = text.replace("", ".") + sentences = text.split("") + sentences = [s.strip() for s in sentences] + if sentences and not sentences[-1]: + sentences = sentences[:-1] + return sentences + + +def count_words(text): + """Counts the number of words.""" + tokenizer = nltk.tokenize.RegexpTokenizer(r"\w+") + tokens = tokenizer.tokenize(text) + num_words = len(tokens) + return num_words + + +@functools.lru_cache(maxsize=None) +def _get_sentence_tokenizer(): + return nltk.data.load("nltk:tokenizers/punkt/english.pickle") + + +def count_sentences(text): + """Count the number of sentences.""" + tokenizer = _get_sentence_tokenizer() + tokenized_sentences = tokenizer.tokenize(text) + return len(tokenized_sentences) + + +def generate_keywords(num_keywords): + """Randomly generates a few keywords.""" + return random.sample(WORD_LIST, k=num_keywords) diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/ifeval/utils.py b/lm-evaluation-harness/lm_eval/tasks/leaderboard/ifeval/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..985e8d5ae578c484267c7c2d90ee7c896028941f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/ifeval/utils.py @@ -0,0 +1,134 @@ +import dataclasses +from typing import Dict, Optional, Union + +from lm_eval.tasks.ifeval import instructions_registry + + +@dataclasses.dataclass +class InputExample: + key: int + instruction_id_list: list[str] + prompt: str + kwargs: list[Dict[str, Optional[Union[str, int]]]] + + +@dataclasses.dataclass +class OutputExample: + instruction_id_list: list[str] + prompt: str + response: str + follow_all_instructions: bool + follow_instruction_list: list[bool] + + +def test_instruction_following_strict( + inp, + response, +): + """Tests response to see if instructions are followed.""" + instruction_list = inp.instruction_id_list + is_following_list = [] + + for index, instruction_id in enumerate(instruction_list): + instruction_cls = instructions_registry.INSTRUCTION_DICT[instruction_id] + instruction = instruction_cls(instruction_id) + + # Remove None values from kwargs to avoid unexpected keyword argument errors in build_description method. + kwargs = {k: v for k, v in inp.kwargs[index].items() if v} + instruction.build_description(**kwargs) + args = instruction.get_instruction_args() + if args and "prompt" in args: + instruction.build_description(prompt=inp.prompt) + + if response.strip() and instruction.check_following(response): + is_following_list.append(True) + else: + is_following_list.append(False) + + return OutputExample( + instruction_id_list=inp.instruction_id_list, + prompt=inp.prompt, + response=response, + follow_all_instructions=all(is_following_list), + follow_instruction_list=is_following_list, + ) + + +def test_instruction_following_loose( + inp, + response, +): + """Tests response for an upper bound for following instructions.""" + r = response.split("\n") + response_remove_first = "\n".join(r[1:]).strip() + response_remove_last = "\n".join(r[:-1]).strip() + response_remove_both = "\n".join(r[1:-1]).strip() + revised_response = response.replace("*", "") + revised_response_remove_first = response_remove_first.replace("*", "") + revised_response_remove_last = response_remove_last.replace("*", "") + revised_response_remove_both = response_remove_both.replace("*", "") + all_responses = [ + response, + revised_response, + response_remove_first, + response_remove_last, + response_remove_both, + revised_response_remove_first, + revised_response_remove_last, + revised_response_remove_both, + ] + instruction_list = inp.instruction_id_list + is_following_list = [] + + for index, instruction_id in enumerate(instruction_list): + instruction_cls = instructions_registry.INSTRUCTION_DICT[instruction_id] + instruction = instruction_cls(instruction_id) + + # Remove None values from kwargs to avoid unexpected keyword argument errors in build_description method. + kwargs = {k: v for k, v in inp.kwargs[index].items() if v} + instruction.build_description(**kwargs) + args = instruction.get_instruction_args() + if args and "prompt" in args: + instruction.build_description(prompt=inp.prompt) + + is_following = False + for r in all_responses: + if r.strip() and instruction.check_following(r): + is_following = True + break + + is_following_list.append(is_following) + + return OutputExample( + instruction_id_list=inp.instruction_id_list, + prompt=inp.prompt, + response=response, + follow_all_instructions=all(is_following_list), + follow_instruction_list=is_following_list, + ) + + +def process_results(doc, results): + inp = InputExample( + key=doc["key"], + instruction_id_list=doc["instruction_id_list"], + prompt=doc["prompt"], + kwargs=doc["kwargs"], + ) + response = results[0] + + out_strict = test_instruction_following_strict(inp, response) + out_loose = test_instruction_following_loose(inp, response) + + return { + "prompt_level_strict_acc": out_strict.follow_all_instructions, + "inst_level_strict_acc": out_strict.follow_instruction_list, + "prompt_level_loose_acc": out_loose.follow_all_instructions, + "inst_level_loose_acc": out_loose.follow_instruction_list, + } + + +def agg_inst_level_acc(items): + flat_items = [item for sublist in items for item in sublist] + inst_level_acc = sum(flat_items) / len(flat_items) + return inst_level_acc diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/leaderboard.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/leaderboard.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d83d031af42d8e4bdc9a58da9bccb86729266d36 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/leaderboard.yaml @@ -0,0 +1,32 @@ +group: leaderboard +task: + - leaderboard_mmlu_pro + - leaderboard_bbh + - leaderboard_gpqa + - leaderboard_math_hard + - leaderboard_ifeval + - leaderboard_musr +aggregate_metric_list: + - metric: acc + aggregation: mean + weight_by_size: true + - metric: acc_norm + aggregation: mean + weight_by_size: true + - metric: exact_match + aggregation: mean + weight_by_size: true + - metric: inst_level_loose_acc + aggregation: mean + weight_by_size: true + - metric: inst_level_strict_acc + aggregation: mean + weight_by_size: true + - metric: prompt_level_loose_acc + aggregation: mean + weight_by_size: true + - metric: prompt_level_strict_acc + aggregation: mean + weight_by_size: true +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/math/_leaderboard_math.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/math/_leaderboard_math.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7e7a6cfcf20b894de4432cd1dbb9cc350886495d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/math/_leaderboard_math.yaml @@ -0,0 +1,13 @@ +group: leaderboard_math_hard +task: + - leaderboard_math_algebra_hard + - leaderboard_math_counting_and_prob_hard + - leaderboard_math_geometry_hard + - leaderboard_math_intermediate_algebra_hard + - leaderboard_math_num_theory_hard + - leaderboard_math_prealgebra_hard + - leaderboard_math_precalculus_hard +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: true diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/math/_template_yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/math/_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..441bd0fef1aed1538324ed41b49f7e788eccecbc --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/math/_template_yaml @@ -0,0 +1,29 @@ +dataset_path: DigitalLearningGmbH/MATH-lighteval +process_docs: !function utils.process_docs +output_type: generate_until +training_split: train +test_split: test +doc_to_text: !function utils.doc_to_text +process_results: !function utils.process_results +doc_to_target: "{{answer if few_shot is undefined else solution}}" +generation_kwargs: + until: + - "Problem:" + do_sample: false + temperature: 0 + max_gen_toks: 1024 +metric_list: + - metric: exact_match + aggregation: mean + higher_is_better: true + - metric: exact_match_original + aggregation: mean + higher_is_better: true +num_fewshot: 4 +metadata: + version: 3.0 +dataset_kwargs: + trust_remote_code: true +fewshot_config: + sampler: first_n + samples: !function utils.list_fewshot_samples diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/math/math_counting_and_prob.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/math/math_counting_and_prob.yaml new file mode 100644 index 0000000000000000000000000000000000000000..41767099ef9b26a721904b97516b1dba49a0e991 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/math/math_counting_and_prob.yaml @@ -0,0 +1,3 @@ +include: _template_yaml +dataset_name: counting_and_probability +task: leaderboard_math_counting_and_prob_hard diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/math/math_geometry.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/math/math_geometry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..189633c304d7e80a119d35f8f096b296a9c251c9 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/math/math_geometry.yaml @@ -0,0 +1,3 @@ +include: _template_yaml +dataset_name: geometry +task: leaderboard_math_geometry_hard diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/math/math_intermediate_algebra.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/math/math_intermediate_algebra.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9959bd18595827c5411ed115f19a549b033c473e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/math/math_intermediate_algebra.yaml @@ -0,0 +1,3 @@ +include: _template_yaml +dataset_name: intermediate_algebra +task: leaderboard_math_intermediate_algebra_hard diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/math/math_prealgebra.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/math/math_prealgebra.yaml new file mode 100644 index 0000000000000000000000000000000000000000..474d7258f461ff77933e3f10e9facfce5a484bb3 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/math/math_prealgebra.yaml @@ -0,0 +1,3 @@ +include: _template_yaml +dataset_name: prealgebra +task: leaderboard_math_prealgebra_hard diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/math/math_precalculus.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/math/math_precalculus.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4d63541e54cfd1b7510214450591404f8da4dc18 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/math/math_precalculus.yaml @@ -0,0 +1,3 @@ +include: _template_yaml +dataset_name: precalculus +task: leaderboard_math_precalculus_hard diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/musr/_template_yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/musr/_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..d14081247271fb8f3860e7f636b9265e9ef418b5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/musr/_template_yaml @@ -0,0 +1,11 @@ +dataset_path: TAUR-Lab/MuSR +output_type: multiple_choice +doc_to_text: !function utils.doc_to_text +doc_to_target: "{{answer_choice}}" +doc_to_choice: "{{choices}}" +metric_list: + - metric: acc_norm + aggregation: mean + higher_is_better: true +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/musr/musr_object_placements.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/musr/musr_object_placements.yaml new file mode 100644 index 0000000000000000000000000000000000000000..89b29fb732422e2ae0bed278307dc7f633d39e34 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/musr/musr_object_placements.yaml @@ -0,0 +1,3 @@ +include: "_template_yaml" +task: leaderboard_musr_object_placements +test_split: object_placements diff --git a/lm-evaluation-harness/lm_eval/tasks/leaderboard/musr/musr_team_allocation.yaml b/lm-evaluation-harness/lm_eval/tasks/leaderboard/musr/musr_team_allocation.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8ede2ba9e05bffa93b6f0a5bc82005a842bbce02 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/leaderboard/musr/musr_team_allocation.yaml @@ -0,0 +1,3 @@ +include: "_template_yaml" +task: leaderboard_musr_team_allocation +test_split: team_allocation diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_management.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_management.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ea6b66c75547d2b91cd08806e7ac6deff248e9d9 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_management.yaml @@ -0,0 +1,50 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Startposition und Endposition + B: "Ausgangsumgebung und ver\xE4nderte Umgebung" + C: Organisationsstruktur und Konditionierung + D: "Initiierende Struktur und \xDCberlegungen" + input_correct_responses: + - D + input_question: Was sind die zwei Hauptdimensionen der Ohio Studies in Leadership? + - input_choice_list: + A: Friedrich Herzberg + B: DC McClelland + C: Abraham Maslow + D: Douglas McGregor + input_correct_responses: + - A + input_question: Hygienefaktoren werden mit welchem Schreiber in Verbindung gebracht? + - input_choice_list: + A: Symbole + B: Rituale und Routinen + C: Machtstrukturen + D: Kontroll systeme + input_correct_responses: + - A + input_question: Welches Element des kulturellen Netzes bildet Insignien? + - input_choice_list: + A: Moral + B: Innovation + C: Wachstumsressource + D: Anpassung + input_correct_responses: + - A + input_question: "Welches Merkmal ist kein Schl\xFCsselmerkmal des Managementmodells\ + \ der \u201Eoffenen Systeme\u201C?" + - input_choice_list: + A: Hierarchisch + B: "B\xFCrokratisch" + C: Wohnung + D: Funktionell + input_correct_responses: + - C + input_question: "Wie lassen sich Organisationsstrukturen beschreiben, die von\ + \ demokratischen und inklusiven F\xFChrungsstilen gepr\xE4gt sind?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_management +tag: mmlu_de_llama_other_tasks +task: mmlu_de_llama_management +task_alias: management diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_miscellaneous.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_miscellaneous.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3d19c3bdbbde4b97a747d942995fb2d0ff2b1054 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_miscellaneous.yaml @@ -0,0 +1,51 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: eins + B: zwei + C: vier + D: acht + input_correct_responses: + - B + input_question: Wie viele Achsen hat ein normales Auto? + - input_choice_list: + A: Budapest + B: Budokan + C: Bhutan + D: "Gro\xDFbritannien" + input_correct_responses: + - B + input_question: Welcher Ort wird im Titel des 1979er Live-Albums der Rocklegende + Cheap Trick genannt? + - input_choice_list: + A: "Anthony \u201ESpud\u201C Webb" + B: "Michael \u201EAir\u201C Jordan" + C: Tyrone 'Muggsy' Bogues + D: Julius 'Dr. J' Erving + input_correct_responses: + - A + input_question: Wer ist der kleinste Mann, der jemals einen NBA-Slam-Dunk-Wettbewerb + gewonnen hat? + - input_choice_list: + A: Wasserstoff + B: Nylon + C: Sauerstoff + D: Licht + input_correct_responses: + - C + input_question: Was entsteht bei der Photosynthese? + - input_choice_list: + 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'' + input_correct_responses: + - C + input_question: "Welcher dieser Songs war ein Top-10-Hit f\xFCr die Rockband The\ + \ Police?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_miscellaneous +tag: mmlu_de_llama_other_tasks +task: mmlu_de_llama_miscellaneous +task_alias: miscellaneous diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_moral_disputes.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_moral_disputes.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6159d512c50202f5c9b53bee29b1b8175bfef011 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_moral_disputes.yaml @@ -0,0 +1,63 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Es ist noch unklar, ob die Todesstrafe Schaden von der Gemeinschaft abschreckt + oder nicht. + B: Es ist noch unklar, ob die Todesstrafe Personen vor Schaden abschreckt oder + nicht. + C: "Konsequentialismus wird nicht von afrikanischen Werten unterst\xFCtzt." + D: "Obwohl der Konsequentialismus von afrikanischen Werten unterst\xFCtzt wird,\ + \ wurden keine konsequentialistischen Argumente vorgebracht, die auf afrikanische\ + \ Werte bezogen sind." + input_correct_responses: + - A + input_question: Was ist laut Metz falsch an konsequentialistischen Argumenten + gegen die Todesstrafe auf der Grundlage afrikanischer Werte? + - input_choice_list: + A: eine Zygote. + B: ein Embryo. + C: "eine Lebensf\xE4higkeit." + D: eine Blastozyste. + input_correct_responses: + - A + input_question: Eine befruchtete Eizelle wird auch als bezeichnet + - input_choice_list: + A: in der Oberklasse zu sein + B: "die F\xE4higkeit zu lernen und Probleme zu l\xF6sen" + C: "sch\xF6ner sein als der Gro\xDFteil der Bev\xF6lkerung" + D: "k\xFCrzer als der Durchschnitt sein" + input_correct_responses: + - B + input_question: Welches der folgenden Dinge ist laut Singer ein intrinsisches + Gut? + - input_choice_list: + A: "SCNT ist keine andere Art der Vervielf\xE4ltigung, weil es keine moralisch\ + \ relevanten Unterschiede zwischen ihr und anderen zul\xE4ssigen Vervielf\xE4\ + ltigungsmethoden gibt." + B: "Da f\xFCr nat\xFCrliche Zwillinge ein geringes Schadensrisiko besteht, besteht\ + \ f\xFCr SCNT ein geringes Schadensrisiko." + C: sowohl A als auch B + D: weder A noch B + input_correct_responses: + - A + input_question: "Pence vergleicht sechs verschiedene F\xE4lle von Fortpflanzung,\ + \ von nat\xFCrlichen Zwillingen bis zu SCNT. Welche Schlussfolgerung zieht er\ + \ aus diesem Vergleich?" + - input_choice_list: + A: die Dummheit der meisten traditionellen philosophischen Beispiele. + B: "ein allgemeiner Mangel an Intelligenz bei Menschen mit h\xF6heren Abschl\xFC\ + ssen." + C: die Ungerechtigkeit der Folter. + D: "die Bereitschaft vieler intelligenter Menschen, Folter als die beste L\xF6\ + sung im Umgang mit Terrorismus anzusehen." + input_correct_responses: + - D + input_question: "Baron gibt zu, dass die Versionen der tickenden Bombe, die sie\ + \ diskutiert, \u201Eerstaunlich dumm\u201C sind, aber sie behauptet, dies sei\ + \ tats\xE4chlich ein Beweis daf\xFCr" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_moral_disputes +tag: mmlu_de_llama_humanities_tasks +task: mmlu_de_llama_moral_disputes +task_alias: moral_disputes diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_moral_scenarios.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_moral_scenarios.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0e9139b3daca9b9a8b9b7f12feb079d27ae8e915 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_moral_scenarios.yaml @@ -0,0 +1,70 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Falsch falsch + B: Falsch, nicht falsch + C: Nicht falsch, falsch + D: Nicht falsch, nicht falsch + input_correct_responses: + - C + input_question: "F\xFCr welches dieser beiden Szenarien macht die Hauptfigur (die\ + \ I/me/my verwendet) etwas eindeutig moralisch Falsches, gem\xE4\xDF den gew\xF6\ + hnlichen moralischen Standards in den USA ab 2020? Szenario 1 | Ich habe meinen\ + \ neugeborenen Jungen wirklich geliebt. Szenario 2 | Dem neuen M\xE4dchen ist\ + \ es peinlich, in einer Wohnwagensiedlung zu leben, also lade ich die Klasse\ + \ zu ihr nach Hause ein." + - input_choice_list: + A: Falsch falsch + B: Falsch, nicht falsch + C: Nicht falsch, falsch + D: Nicht falsch, nicht falsch + input_correct_responses: + - C + input_question: "F\xFCr welches dieser beiden Szenarien macht die Hauptfigur (die\ + \ I/me/my verwendet) etwas eindeutig moralisch Falsches, gem\xE4\xDF den gew\xF6\ + hnlichen moralischen Standards in den USA ab 2020? Szenario 1 | Ich bat den\ + \ Typen vor dem Laden um eine Zigarette. Szenario 2 | Als der Wachmann seinen\ + \ Posten verlie\xDF, steckte ich eine seltene M\xFCnze ein." + - input_choice_list: + A: Falsch falsch + B: Falsch, nicht falsch + C: Nicht falsch, falsch + D: Nicht falsch, nicht falsch + input_correct_responses: + - D + input_question: "F\xFCr welches dieser beiden Szenarien macht die Hauptfigur (die\ + \ I/me/my verwendet) etwas eindeutig moralisch Falsches, gem\xE4\xDF den gew\xF6\ + hnlichen moralischen Standards in den USA ab 2020? Szenario 1 | Ich habe einen\ + \ alten Lieferwagen f\xFCr die Arbeit gekauft. Szenario 2 | Ich blickte zu dem\ + \ wundersch\xF6nen Wasserfall hoch und warf einen Stein darauf." + - input_choice_list: + A: Falsch falsch + B: Falsch, nicht falsch + C: Nicht falsch, falsch + D: Nicht falsch, nicht falsch + input_correct_responses: + - B + input_question: "F\xFCr welches dieser beiden Szenarien macht die Hauptfigur (die\ + \ I/me/my verwendet) etwas eindeutig moralisch Falsches, gem\xE4\xDF den gew\xF6\ + hnlichen moralischen Standards in den USA ab 2020? Szenario 1 | Beim Abriss\ + \ des Hauses stie\xDF ich ihn gegen eine Wand. Szenario 2 | Wenn ich einen Babysitter\ + \ f\xFCr meine Zwillingsnichten ausw\xE4hle, ist mir ihre ethnische Herkunft\ + \ egal." + - input_choice_list: + A: Falsch falsch + B: Falsch, nicht falsch + C: Nicht falsch, falsch + D: Nicht falsch, nicht falsch + input_correct_responses: + - A + input_question: "F\xFCr welches dieser beiden Szenarien macht die Hauptfigur (die\ + \ I/me/my verwendet) etwas eindeutig moralisch Falsches, gem\xE4\xDF den gew\xF6\ + hnlichen moralischen Standards in den USA ab 2020? Szenario 1 | Ich nahm seine\ + \ Brieftasche, nachdem er mich an der Bar bel\xE4stigt hatte. Szenario 2 | Ich\ + \ habe mit meinem neugeborenen Jungen geschlafen." +include: _continuation_template_yaml +process_docs: !function utils.process_docs_moral_scenarios +tag: mmlu_de_llama_humanities_tasks +task: mmlu_de_llama_moral_scenarios +task_alias: moral_scenarios diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_philosophy.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_philosophy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..298885a4f1fc424ec0d99bcceaeaadce2d59713d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_philosophy.yaml @@ -0,0 +1,53 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "eine ethische Theorie dar\xFCber, wie wir uns verhalten sollten." + B: "eine Verallgemeinerung \xFCber das Verhalten von Menschen." + C: "eine Behauptung \xFCber die menschliche Natur und die Art und Weise, wie\ + \ Menschen sich verhalten k\xF6nnen." + D: nichts des oben Genannten. + input_correct_responses: + - C + input_question: 'Psychischer Egoismus ist:' + - input_choice_list: + A: "Vergn\xFCgen." + B: "Gl\xFCck." + C: Gut. + D: Tugend. + input_correct_responses: + - C + input_question: "Nach Moores \u201Eidealem Utilitarismus\u201C ist die richtige\ + \ Handlung diejenige, die am meisten bewirkt:" + - input_choice_list: + A: freie Wahl + B: Gebot der Seele + C: notwendige Naturgesetze + D: unbestimmter Wille + input_correct_responses: + - C + input_question: Laut d'Holbach handeln Menschen immer nach _____. + - input_choice_list: + A: Optimist + B: befriedigt + C: "nominell religi\xF6s" + D: Pessimist + input_correct_responses: + - D + input_question: Was war vor Tolstois christlicher Bekehrung seine Sichtweise auf + den Sinn des Lebens? + - input_choice_list: + A: Metaphysik + B: Erkenntnistheorie + C: Quantenphysik + D: Axiologie + input_correct_responses: + - A + input_question: "Das Studium der Realit\xE4t im weitesten Sinne, eine Untersuchung\ + \ der elementaren Natur des Universums und der Dinge darin, ist bekannt als\ + \ _____." +include: _continuation_template_yaml +process_docs: !function utils.process_docs_philosophy +tag: mmlu_de_llama_humanities_tasks +task: mmlu_de_llama_philosophy +task_alias: philosophy diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_prehistory.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_prehistory.yaml new file mode 100644 index 0000000000000000000000000000000000000000..455d27aa3e36e7f8e55b5ea28526fb1cc2347ee3 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_prehistory.yaml @@ -0,0 +1,62 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Befriedigen Sie die m\xE4chtigen Maya-Astronomenpriester." + B: "dem einfachen Volk seine Gro\xDFz\xFCgigkeit zeigen, da es ihnen erlaubt\ + \ war, in den Tempeln zu leben." + C: Schrecken Sie Feinde, insbesondere die Spanier, ab. + D: "legitimieren sein K\xF6nigtum, da sein Vater nicht k\xF6niglich war." + input_correct_responses: + - D + input_question: "Der gro\xDFe Maya-K\xF6nig Pacal baute Tempel in der Stadt Palenque,\ + \ um:" + - input_choice_list: + A: "ein Zentrum der Mississippi-Zivilisation mit Bedingungen, die denen des\ + \ Aufstiegs fr\xFCher Staaten \xE4hneln." + B: "die Grenzen der Autorit\xE4t in einer indianischen Gesellschaft von egalit\xE4\ + ren Sammlern." + C: "ein einfaches H\xE4uptlingstum oder vielleicht ein komplexes H\xE4uptlingstum\ + \ hatte sich um 1500 n. Chr. entwickelt." + D: "ein Zentrum der Mississippi-Zivilisation mit \xE4hnlichen Bedingungen wie\ + \ Gesellschaften an der Nordwestk\xFCste Nordamerikas." + input_correct_responses: + - A + input_question: "Laut Timothy Pauketat deuten die Beweise f\xFCr soziale Schichtung\ + \ und politische Macht in Cahokia darauf hin:" + - input_choice_list: + A: eine Art Katastrophe, wie ein Erdbeben, Vulkan oder Tsunami. + B: "Umweltzerst\xF6rung durch Brandrodung in der Landwirtschaft." + C: endlose Kriege zwischen benachbarten Maya-Stadtstaaten. + D: "Praktiken der Kreuzung, die zu einem steilen Anstieg angeborener St\xF6\ + rungen f\xFChrten." + input_correct_responses: + - B + input_question: "Forscher glauben nun, dass der Niedergang der Maya haupts\xE4\ + chlich verursacht wurde durch:" + - input_choice_list: + A: "eine gro\xDFe Artenvielfalt oder eine einzelne Art, die eine gro\xDFe Vielfalt\ + \ aufwies." + B: sehr geringe Artenvielfalt in dieser Zeit und sehr wenige Hominiden. + C: "verringerte Artenvielfalt aufgrund einer anhaltenden Eiszeit, gefolgt von\ + \ einer schweren D\xFCrre." + D: "verringerte Artenvielfalt, aber erh\xF6hte Anzahl von Hammersteinen und\ + \ Flocken, was auf die Herstellung von Steinwerkzeugen hinweist." + input_correct_responses: + - A + input_question: "J\xFCngste Forschungen zu Hominidenarten aus dem mittleren Plioz\xE4\ + n zeigen (Stand 2020):" + - input_choice_list: + A: unter 650 ccm + B: etwa 800 ccm + C: knapp unter 1000 ccm + D: 1200 ccm + input_correct_responses: + - C + input_question: "Was ist die ungef\xE4hre mittlere Sch\xE4delkapazit\xE4t des\ + \ Homo erectus?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_prehistory +tag: mmlu_de_llama_humanities_tasks +task: mmlu_de_llama_prehistory +task_alias: prehistory diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_professional_accounting.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_professional_accounting.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a33ccd9154c27d483da57d204b4ca85cce5f4ec6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_professional_accounting.yaml @@ -0,0 +1,73 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: 70.000 $ + B: 75.000 $ + C: 80.000 $ + D: '100000' + input_correct_responses: + - D + input_question: "Box, eine nichtstaatliche gemeinn\xFCtzige Organisation, hatte\ + \ im Laufe des Jahres die folgenden Transaktionen: Erl\xF6se aus dem Verkauf\ + \ von Investitionen 80.000 USD Kauf von Sachanlagen 10.000 USD Erl\xF6se aus\ + \ langfristigen Schulden 100.000 USD Verlust aus dem Verkauf von Investitionen\ + \ 5.000 USD Welcher Betrag sollte als Nettobetrag gemeldet werden? Einzahlungen\ + \ aus Finanzierungst\xE4tigkeiten in der Kapitalflussrechnung von Box?" + - input_choice_list: + A: 13.000 $ + B: $600 + C: 15.000 $ + D: 28.000 $ + input_correct_responses: + - A + input_question: "Vor hundert Jahren investierte Ihre Ururgro\xDFmutter 100 Dollar\ + \ zu 5 % Jahreszins. Was ist die Investition heute wert?" + - input_choice_list: + A: $0 + B: $500 + C: 1.650 $ + D: 16.500 $ + input_correct_responses: + - A + input_question: "Krete ist ein unverheirateter Steuerzahler mit Eink\xFCnften\ + \ ausschlie\xDFlich aus Lohn. Bis zum 31. Dezember des ersten Jahres hat Kretes\ + \ Arbeitgeber 16.000 US-Dollar an Bundeseinkommenssteuern einbehalten und Krete\ + \ hat keine gesch\xE4tzten Steuerzahlungen geleistet. Am 15. April des zweiten\ + \ Jahres reichte Krete rechtzeitig einen Verl\xE4ngerungsantrag ein, um ihre\ + \ individuelle Steuererkl\xE4rung einzureichen, und zahlte 300 US-Dollar an\ + \ zus\xE4tzlichen Steuern. Kretes Steuerschuld f\xFCr Jahr 1 betrug 16.500 US-Dollar,\ + \ als sie ihre Steuererkl\xE4rung am 30. April des Jahres 2 rechtzeitig einreichte\ + \ und die verbleibende Steuerschuld bezahlte. Welcher Betrag w\xFCrde der Strafe\ + \ f\xFCr die Unterzahlung gesch\xE4tzter Steuern unterliegen?" + - input_choice_list: + A: 5.000 $ + B: 13.500 $ + C: 16.000 $ + D: 20.000 $ + input_correct_responses: + - B + input_question: "Am 1. Januar, Jahr 1, unterzeichnete Alpha Co. einen j\xE4hrlichen\ + \ Wartungsvertrag mit einem Softwareanbieter f\xFCr 15.000 $ und der Wartungszeitraum\ + \ beginnt am 1. M\xE4rz, Jahr 2. Alpha entstanden am 1. Januar, Jahr 1, au\xDF\ + erdem Kosten in H\xF6he von 5.000 $ im Zusammenhang mit Softwaremodifikationen\ + \ Anforderungen, die die Funktionalit\xE4t der Software erh\xF6hen. Alpha schreibt\ + \ seine Computer- und Software-Assets \xFCber f\xFCnf Jahre nach der linearen\ + \ Methode ab. Wie hoch sind die Gesamtausgaben, die Alpha im Zusammenhang mit\ + \ dem Wartungsvertrag und den Softwaremodifikationen f\xFCr das am 31. Dezember,\ + \ Jahr 1, endende Jahr erfassen sollte?" + - input_choice_list: + A: Bewertung und Zuordnung + B: "Vollst\xE4ndigkeit" + C: Rechte und Pflichten + D: "Pr\xE4sentation und Offenlegung" + input_correct_responses: + - B + input_question: "Ein Wirtschaftspr\xFCfer verfolgt die Seriennummern auf Ger\xE4\ + ten bis zum Nebenbuch eines Nicht-Emittenten. Welche der folgenden Managementaussagen\ + \ wird durch diesen Test gest\xFCtzt?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_accounting +tag: mmlu_de_llama_other_tasks +task: mmlu_de_llama_professional_accounting +task_alias: professional_accounting diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_professional_law.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_professional_law.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2920fa97d5ef886721b28b9d286df016bdc9b85f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_professional_law.yaml @@ -0,0 +1,138 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Das Gesetz ist wegen Unbestimmtheit gem\xE4\xDF der Klausel \xFCber ein\ + \ ordnungsgem\xE4\xDFes Verfahren der vierzehnten \xC4nderung ung\xFCltig." + B: "das Gesetz ist ung\xFCltig, weil es die Meinungsfreiheit des Petenten gem\xE4\ + \xDF dem ersten Zusatzartikel verletzt." + C: "Das Gesetz ist eine K\xFCrzung der Meinungsfreiheit gem\xE4\xDF dem ersten\ + \ Zusatzartikel, da weniger restriktive Mittel zur Verf\xFCgung stehen, um\ + \ denselben Zweck zu erreichen." + D: "Das Gesetz ist zu weit gefasst und daher gem\xE4\xDF der ersten und der\ + \ vierzehnten \xC4nderung ung\xFCltig." + input_correct_responses: + - D + input_question: "Ein staatlicher Gesetzgeber hat k\xFCrzlich ein Gesetz erlassen,\ + \ das es zu einem Vergehen macht, einen Polizeibeamten, der seine Pflichten\ + \ erf\xFCllt, zu verfluchen oder zu beschimpfen oder obsz\xF6ne oder anst\xF6\ + \xDFige Sprache zu verwenden oder sich auf ihn zu beziehen. Ein Student einer\ + \ staatlichen Universit\xE4t organisierte eine Demonstration auf dem Campus,\ + \ um gegen den Krieg zu protestieren. An der Kundgebung nahm eine Gruppe von\ + \ 50 Studenten teil, die vorbeifahrenden Autos Antikriegsbotschaften zuriefen.\ + \ Um seine Verachtung f\xFCr die Vereinigten Staaten zu zeigen, n\xE4hte der\ + \ Student die amerikanische Flagge hinten auf seine Jeans. Als ein Polizist\ + \ die Flagge sah, die auf die Jeans des Studenten gestickt war, n\xE4herte er\ + \ sich und forderte ihn auf, die Flagge zu entfernen, sonst w\xFCrde er verhaftet.\ + \ Der Student wurde w\xFCtend und schrie den Polizisten an: \u201EH\xF6ren Sie,\ + \ Sie Bastard, ich werde diesen Lappen \xFCberall tragen, wo es mir gef\xE4\ + llt.\u201C Der Student wurde daraufhin verhaftet und wegen Versto\xDFes gegen\ + \ das staatliche Gesetz angeklagt. Der Student erhebt daraufhin Klage vor einem\ + \ staatlichen Gericht und stellt die Verfassungsm\xE4\xDFigkeit des Gesetzes\ + \ in Frage. Das st\xE4rkste verfassungsrechtliche Argument f\xFCr den Studenten\ + \ ist das" + - input_choice_list: + A: Die Handelsklausel. + B: Die Gleichschutzklausel des vierzehnten Zusatzartikels. + C: "Die Vorzugs- und Immunit\xE4tsklausel von Artikel IV, Abschnitt 2." + D: Die Vertragsklausel. + input_correct_responses: + - A + input_question: "Ein Bundesstaat hat k\xFCrzlich ein Gesetz erlassen, das die\ + \ Entsorgung von Atomm\xFCll innerhalb des Bundesstaates verbietet. Dieses Gesetz\ + \ widerspricht oder widerspricht keinem Bundesgesetz. Ein Mann betreibt in dem\ + \ Staat ein Unternehmen, das sich mit der Entsorgung von Atomm\xFCll besch\xE4\ + ftigt. Nach der Verabschiedung des staatlichen Gesetzes schloss der Mann, der\ + \ das neue Gesetz noch nicht kannte, Vertr\xE4ge mit vielen au\xDFerstaatlichen\ + \ Firmen, um deren Atomm\xFCll im Staat zu entsorgen. Aufgrund dieses neuen\ + \ Gesetzes wird der Mann jedoch nicht in der Lage sein, diese Vertr\xE4ge zu\ + \ erf\xFCllen. Gehen Sie davon aus, dass der Mann berechtigt ist, dieses staatliche\ + \ Gesetz anzufechten. Welcher der folgenden stellt seine st\xE4rksten verfassungsrechtlichen\ + \ Gr\xFCnde dar, das staatliche Gesetz anzufechten, das die Entsorgung nuklearer\ + \ Abf\xE4lle innerhalb des Staates verbietet?" + - input_choice_list: + A: Unbestreitbare Tatsachen. + B: Tatsachen, die von einzelnen politischen Organisationen behauptet wurden. + C: Tatsachen, die nach allgemeinem Wissen als wahr anerkannt sind. + D: "Tatsachen, die wissenschaftlich \xFCberpr\xFCft werden k\xF6nnen." + input_correct_responses: + - B + input_question: "Der Richter nahm zu Beginn des Prozesses einige Tatsachen amtlich\ + \ zur Kenntnis. Welche der folgenden Tatsachen ist f\xFCr eine gerichtliche\ + \ Benachrichtigung nicht geeignet?" + - input_choice_list: + A: "Entlastung gew\xE4hren, weil der Zaun gegen die Dienstbarkeitsbeschr\xE4\ + nkung verstie\xDF." + B: "Entlastung gew\xE4hren, weil der Eingriff in den Zaun gegen die Beschr\xE4\ + nkung im urspr\xFCnglichen Plan verstie\xDF." + C: "Entlastung verweigern, weil der Lehrer es vers\xE4umt hat, die Beschr\xE4\ + nkung gegen\xFCber dem Rentner durchzusetzen." + D: "Entlastung verweigern, weil der Zaun nicht als "Bauwerk" im Sinne\ + \ der Beschr\xE4nkung ausgelegt w\xFCrde." + input_correct_responses: + - B + input_question: "Am 1. Oktober 1980 entwarf ein Entwickler, Eigent\xFCmer von\ + \ mehreren hundert Morgen in einem l\xE4ndlichen Bezirk, einen allgemeinen Entwicklungsplan\ + \ f\xFCr das Gebiet. Der ordnungsgem\xE4\xDF aufgezeichnete Plan erlegte dem\ + \ Land im Plan, das als Wohngebiet entwickelt werden sollte, ausf\xFChrliche\ + \ Beschr\xE4nkungen und Beschr\xE4nkungen auf. Die Beschr\xE4nkungen sollten\ + \ sich auf alle Personen erstrecken, die eines der Grundst\xFCcke erwerben,\ + \ sowie auf ihre Erben, Abtretungsempf\xE4nger und P\xE4chter. Ferner wurde\ + \ vorgesehen, dass alle nachfolgenden Eigent\xFCmer zur fristgerechten Benachrichtigung\ + \ der Beschr\xE4nkungen verpflichtet w\xFCrden. Zu diesen Einschr\xE4nkungen\ + \ im allgemeinen Plan geh\xF6rten die folgenden: (22) Ein Konzessionsrecht wird\ + \ in einem 10 Fu\xDF breiten Landstreifen entlang der R\xFCckseite jedes Grundst\xFC\ + cks f\xFCr die Nutzung durch \xF6ffentliche Versorgungsunternehmen mit Ein-\ + \ und Ausstiegsrecht geschaffen. (23) Auf dem vorgenannten Landstreifen, der\ + \ durch die genannten Bl\xF6cke verl\xE4uft, d\xFCrfen keine H\xE4user oder\ + \ Bauwerke jeglicher Art gebaut werden. Im Jahr 2000 kaufte ein Rentner eines\ + \ der Grundst\xFCcke, baute ein Haus und errichtete einen Zaun hinter seinem\ + \ Grundst\xFCck innerhalb des Sperrgebiets. 2004 kaufte ein Lehrer ein Grundst\xFC\ + ck neben dem Grundst\xFCck des Rentners und baute ein neues Haus. Zwei Jahre\ + \ sp\xE4ter kaufte ein Bibliothekar das Grundst\xFCck, das an das Grundst\xFC\ + ck des Lehrers angrenzte. Die drei Urkunden zu diesen Grundst\xFCcken enthielten\ + \ jeweils Verweise auf das Urkundenbuch, in dem der allgemeine Plan aufgezeichnet\ + \ war. Im Jahr 2008 begann der Bibliothekar mit dem Bau eines zwei Meter hohen\ + \ Pfosten-und-Eisen-Zauns entlang der Linie, die sein Grundst\xFCck mit dem\ + \ des Lehrers trennt, und entlang der Mitte des Bereichs, der dem Franchiserecht\ + \ unterliegt. Obwohl der Lehrer Einw\xE4nde gegen den Bau erhob, wurde der Zaun\ + \ fertiggestellt. Wenn der Lehrer eine einstweilige Verf\xFCgung beantragt,\ + \ um die Entfernung des Zauns des Bibliothekars zu erzwingen, wird das Gericht\ + \ h\xF6chstwahrscheinlich dies tun" + - input_choice_list: + A: "Das Versprechen des Vaters und das Vertrauen des Gl\xE4ubigers darauf f\xFC\ + hrten, falls nachgewiesen, zu einem g\xFCltigen Anspruch des Gl\xE4ubigers\ + \ gegen den Vater, basierend auf der Doktrin des schuldrechtlichen Estoppels." + B: "Da absehbar war, dass die Zusage des Vaters den Gl\xE4ubiger dazu veranlassen\ + \ w\xFCrde, jegliche Ma\xDFnahmen gegen den Sohn zu unterlassen, handelte\ + \ es sich rechtlich um eine erkaufte Gegenleistung f\xFCr die Zusage des Vaters." + C: "Die f\xFCnf Zahlungen des Vaters an den Gl\xE4ubiger in H\xF6he von insgesamt\ + \ 2.500 $ zeigten eine ernsthafte Absicht des Vaters, vertraglich gebunden\ + \ zu sein, und eine solche Manifestation wird allgemein als wirksamer Ersatz\ + \ f\xFCr eine Gegenleistung anerkannt." + D: "Durch die \xDCbernahme der Vorschuldverpflichtung des Sohnes gegen\xFCber\ + \ dem Gl\xE4ubiger wurde der Vater zum B\xFCrgen, dessen Versprechen gegen\xFC\ + ber dem Gl\xE4ubiger durchsetzbar war, da es schriftlich und durch eine angemessene\ + \ Gegenleistung belegt war." + input_correct_responses: + - A + input_question: "Ein Sohn schuldete einem Gl\xE4ubiger 5.000 Dollar. Der Vater\ + \ des Sohnes kontaktierte den Gl\xE4ubiger und teilte ihm mit, dass er die Schulden\ + \ des Sohnes begleichen wolle. Der Vater unterzeichnete ein Dokument, das besagte,\ + \ dass der Vater die Schulden des Sohnes mit einer Rate von 500 Dollar pro Monat\ + \ f\xFCr 10 Monate bezahlen w\xFCrde. Der Gl\xE4ubiger verpflichtete sich weder\ + \ schriftlich noch m\xFCndlich, den Sohn auf die Beitreibung der Schulden in\ + \ H\xF6he von 5.000 Dollar zu verklagen, und der Vater stellte weder m\xFCndlich\ + \ noch schriftlich einen solchen Nachlass. F\xFCr die n\xE4chsten f\xFCnf Monate\ + \ leistete der Vater die vereinbarten monatlichen Zahlungen in H\xF6he von 500\ + \ USD, und der Gl\xE4ubiger akzeptierte sie. Tats\xE4chlich verzichtete der\ + \ Gl\xE4ubiger w\xE4hrend dieser Zeit darauf, rechtliche Schritte gegen den\ + \ Sohn einzuleiten. Daraufhin teilte der Vater dem Gl\xE4ubiger jedoch mit,\ + \ dass er keine weiteren Zahlungen auf die Schuld leisten werde. Welches der\ + \ folgenden Argumente ist das \xFCberzeugendste, dass der Vater gegen\xFCber\ + \ dem Gl\xE4ubiger gem\xE4\xDF den Bedingungen ihrer Vereinbarung haftet?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_law +tag: mmlu_de_llama_humanities_tasks +task: mmlu_de_llama_professional_law +task_alias: professional_law diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_professional_medicine.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_professional_medicine.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bbd57edac23b086415c20dd18a0d92d2d20ec971 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_professional_medicine.yaml @@ -0,0 +1,92 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Labetalol + B: Eine Ladedosis Kaliumchlorid + C: Nifedipin + D: Phenoxybenzamin + input_correct_responses: + - D + input_question: "Ein 42-j\xE4hriger Mann kommt zur pr\xE4operativen Untersuchung\ + \ in die Praxis, bevor er sich in 2 Wochen einer Adrenalektomie unterziehen\ + \ muss. Vor einem Monat wurde er in der Notaufnahme wegen Schmerzen an der rechten\ + \ Flanke nach einem Autounfall behandelt. Zu diesem Zeitpunkt betrug der Blutdruck\ + \ 160/100 mmHg und ein CT-Scan des Abdomens zeigte eine zuf\xE4llige 10-cm-Masse\ + \ in der linken Nebenniere. Die Ergebnisse der Laborstudien, einschlie\xDFlich\ + \ des vollst\xE4ndigen Blutbildes, der Elektrolytkonzentrationen im Serum und\ + \ der Leberfunktionstests, lagen innerhalb der Referenzbereiche. Der Patient\ + \ war ansonsten gesund gewesen und ihm war nie gesagt worden, dass er einen\ + \ erh\xF6hten Blutdruck hatte. Er nimmt keine Medikamente. Bei einem Kontrollbesuch\ + \ in der Praxis vor 2 Wochen wurden erh\xF6hte Normetanephrin- und Metanephrin-\ + \ sowie Plasma-Aldosteron-Konzentrationen im Urin festgestellt. Der Patient\ + \ wurde an einen Chirurgen \xFCberwiesen, der die Adrenalektomie empfahl. Heute\ + \ sind die Vitalfunktionen Temperatur 36,6 \xB0C (97,9 \xB0F), Puls 100/min,\ + \ Atmung 14/min und Blutdruck 170/95 mm Hg. Die k\xF6rperliche Untersuchung\ + \ ergibt keine signifikanten Befunde. Die anf\xE4ngliche pr\xE4operative Vorbereitung\ + \ sollte die Behandlung mit welchen der folgenden Mittel umfassen?" + - input_choice_list: + A: Kreuzbeintorsion von links nach links + B: Kreuzbeintorsion von links nach rechts + C: rechte einseitige Sakralflexion + D: Kreuzbeintorsion von rechts nach rechts + input_correct_responses: + - D + input_question: "Ein 36-j\xE4hriger Mann stellt sich mit einer 3-w\xF6chigen Vorgeschichte\ + \ von Kreuzschmerzen in der Praxis vor. Er bestreitet jedes k\xFCrzliche Trauma,\ + \ sagt aber, dass er f\xFCr seinen Job mehrmals am Tag in seinen Truck ein-\ + \ und aussteigt. Die Untersuchung des Patienten in Bauchlage zeigt links einen\ + \ tiefen sakralen Sulcus, rechts einen posterioren inferioren Lateralwinkel\ + \ und einen bei Kompression frei federnden lumbosakralen \xDCbergang. Die wahrscheinlichste\ + \ Diagnose ist" + - input_choice_list: + A: Dopamin + B: Glutamat + C: Noradrenalin + D: Serotonin + input_correct_responses: + - D + input_question: "Eine zuvor gesunde 32-j\xE4hrige Frau kommt 8 Monate nach dem\ + \ Tod ihres Mannes bei einem Autounfall zum Arzt. Seitdem hat sie einen verminderten\ + \ Appetit und Schwierigkeiten beim Einschlafen. Sie gibt an, dass sie oft traurig\ + \ ist und h\xE4ufig weint. Sie hat f\xFCnf Mal das T\xFCrschloss \xFCberpr\xFC\ + ft, bevor sie ihr Haus verl\xE4sst, und muss genau f\xFCnf St\xFCck Toilettenpapier\ + \ z\xE4hlen, bevor sie es benutzt. Sie sagt, sie sei schon immer eine Perfektionistin\ + \ gewesen, aber diese Triebe und Rituale seien neu. Auf welche der folgenden\ + \ Neurotransmitter sollte die Pharmakotherapie abzielen?" + - input_choice_list: + A: Allergischer Schnupfen + B: Epstein Barr Virus + C: Mycoplasma pneumoniae + D: Rhinovirus + input_correct_responses: + - D + input_question: "Ein 44-j\xE4hriger Mann kommt wegen einer 3-t\xE4gigen Vorgeschichte\ + \ von Halsschmerzen, unproduktivem Husten, laufender Nase und Stirnkopfschmerzen\ + \ in die Praxis. Er sagt, die Kopfschmerzen seien morgens schlimmer und Ibuprofen\ + \ verschaffe etwas Linderung. Kurzatmigkeit hat er nicht. Die Anamnese ist unauff\xE4\ + llig. Er nimmt keine Medikamente au\xDFer Ibuprofen gegen Schmerzen. Vitalzeichen\ + \ sind Temperatur 37,4\xB0C (99,4\xB0F), Puls 88/min, Atmung 18/min und Blutdruck\ + \ 120/84 mmHg. Die Untersuchung der Nasenl\xF6cher zeigt ger\xF6tete Schleimh\xE4\ + ute. Die Untersuchung des Rachens zeigt ein Erythem und eine follikul\xE4re\ + \ lymphoide Hyperplasie am hinteren Oropharynx. Es gibt keine tastbare zervikale\ + \ Adenopathie. Lungen sind auskultierbar. Welche der folgenden Ursachen ist\ + \ die wahrscheinlichste Ursache f\xFCr die Symptome dieses Patienten?" + - input_choice_list: + A: vordere Skalenus + B: Latissimus dorsi + C: kleiner Brustmuskel + D: M. quadratus lumborum + input_correct_responses: + - C + input_question: "Ein 22-j\xE4hriger m\xE4nnlicher Marathonl\xE4ufer stellt sich\ + \ mit rechtsseitigen Rippenschmerzen bei Langstreckenl\xE4ufen in der Praxis\ + \ vor. Die k\xF6rperliche Untersuchung zeigt einen normalen Herz- und Lungenbefund\ + \ und eine Ausatmungsst\xF6rung an den Rippen 4-5 rechts. Welche der folgenden\ + \ Muskeln oder Muskelgruppen sind am n\xFCtzlichsten, um diese Dysfunktion mit\ + \ einer direkten Methode zu korrigieren?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_medicine +tag: mmlu_de_llama_other_tasks +task: mmlu_de_llama_professional_medicine +task_alias: professional_medicine diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_professional_psychology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_professional_psychology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..23d8f0c6ed5ebd4f908da8a1bfe884960215d143 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_professional_psychology.yaml @@ -0,0 +1,66 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Teilen Sie Ihrem Kunden die Vor- und Nachteile jedes Programms mit, das Sie + kennen, mit Ausnahme des Programms, in dem Sie eingeschrieben sind + B: "Empfehlen Sie Ihrem Kunden das Programm, f\xFCr das Sie angemeldet sind,\ + \ und erl\xE4utern Sie den 50-Dollar-Bonus, den Sie erhalten" + C: "Empfehlen Sie Ihrem Kunden das Programm, f\xFCr das Sie angemeldet sind,\ + \ und bieten Sie an, den $50-Bonus dem Konto Ihres Kunden im Programm gutschreiben\ + \ zu lassen" + D: "Teilen Sie Ihrem Kunden die Vor- und Nachteile jedes Programms mit, das\ + \ Sie kennen, aber beanspruchen Sie nicht den 50-Dollar-Bonus, wenn sich Ihr\ + \ Kunde f\xFCr Ihr Programm anmeldet" + input_correct_responses: + - D + input_question: "Einer Ihrer Therapieklienten bittet Sie um Rat zu einem guten\ + \ Programm zur Gewichtsreduktion. Sie haben die Programme in der Community untersucht\ + \ und sind bei dem Programm angemeldet, das Sie f\xFCr das beste halten. Dieses\ + \ Programm bietet seinen Patrons einen Bonus von 50 $ f\xFCr jede neue Person,\ + \ die sie in das Programm einbringen. Unter diesen Umst\xE4nden w\xE4re Ihre\ + \ angemessenste Antwort zu" + - input_choice_list: + A: "weniger empfindlich gegen\xFCber Extremwerten als der Mittelwert" + B: "n\xFCtzlicher f\xFCr schiefe Verteilungen" + C: "empfindlich gegen\xFCber Extremwerten und stark schiefen Verteilungen" + D: "die am h\xE4ufigsten vorkommende Zahl" + input_correct_responses: + - D + input_question: "Es gibt drei M\xF6glichkeiten, die zentrale Tendenz zu messen:\ + \ den Mittelwert, den Median und den Modus. Was ist nach Ihrem Wissen \xFCber\ + \ sie der Modus?" + - input_choice_list: + A: Individualismus. + B: Individualismus und Machtdistanz. + C: "Machtdistanz und M\xE4nnlichkeit." + D: Unsicherheitsvermeidung. + input_correct_responses: + - A + input_question: "In Bezug auf die f\xFCnf kulturellen Dimensionen von Hofstede\ + \ (1980) stehen die Vereinigten Staaten an der Spitze der Skala bei:" + - input_choice_list: + A: "ist eine Fantasie, die den Klienten von der Realit\xE4t ablenkt." + B: "steht f\xFCr \u201Egemischte Gef\xFChle\u201C gegen\xFCber dem Therapeuten." + C: "\u201Eist eine Form des \u201EAusagierens.\u201C\u201C" + D: "spiegelt das pers\xF6nliche und kollektive Unbewusste des Klienten wider." + input_correct_responses: + - D + input_question: "Carl Jung glaubte, dass die \xDCbertragung eines Klienten:" + - input_choice_list: + A: "sind nicht miteinander korreliert, aber m\xE4\xDFig mit dem Kriterium korreliert" + B: haben geringe Korrelationen untereinander und geringe Korrelationen mit dem + Kriterium + C: "sind stark miteinander korreliert und m\xE4\xDFig mit dem Kriterium korreliert" + D: "haben geringe Korrelationen mit dem Kriterium, sind aber m\xE4\xDFig miteinander\ + \ korreliert" + input_correct_responses: + - A + input_question: "Bei der Konstruktion einer multiplen Regressionsgleichung f\xFC\ + r Vorhersagezwecke ist die optimale Kombination von Ma\xDFen eine, bei der die\ + \ Pr\xE4diktoren" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_psychology +tag: mmlu_de_llama_social_sciences_tasks +task: mmlu_de_llama_professional_psychology +task_alias: professional_psychology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_sociology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_sociology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f47f68dcb2747ed034416a6497ad87b336c77254 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_sociology.yaml @@ -0,0 +1,59 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "kostenlose Gesundheitsversorgung und Bildung f\xFCr alle" + B: ein Mindestlohn + C: "Vollbesch\xE4ftigung" + D: universelle Wohlfahrt + input_correct_responses: + - B + input_question: 'Welche der folgenden Ziele hatte der Nachkriegswohlfahrtsstaat + von 1948 nicht zum Ziel:' + - input_choice_list: + A: eine Kirmesfahrt + B: ein Zirkus + C: ein Puppentheater + D: ein Ballett + input_correct_responses: + - C + input_question: "Was beschreibt Berger (1963) als Metapher f\xFCr die soziale\ + \ Wirklichkeit?" + - input_choice_list: + A: "Die zunehmende B\xFCrokratie des Staates hat die Religion nur noch zu einem\ + \ marginalen Teil unseres Lebens gemacht" + B: "Trotz der Schw\xE4chung traditioneller Autorit\xE4t bleiben unser Alltag\ + \ und unser \u201Egesunder Menschenverstand\u201C von religi\xF6sen \xDCberzeugungen\ + \ und Werten gepr\xE4gt" + C: "Die religi\xF6se Teilnahme an kollektiven Gottesdiensten mag zur\xFCckgegangen\ + \ sein, aber die Menschen praktizieren ihren Glauben immer noch privat" + D: "Es ist viel wahrscheinlicher, dass Menschen ihre religi\xF6sen \xDCberzeugungen\ + \ in \xF6ffentlichen, informellen Situationen diskutieren" + input_correct_responses: + - B + input_question: "Der Wechsel von \u201EZivilreligion\u201C zu \u201Eallgemeiner\ + \ Religion\u201C bedeutet Folgendes:" + - input_choice_list: + A: die Tendenz der Arbeiterklasse, ihre eigenen Interessen nicht zu verwirklichen + B: eine dominante Ideologie, die wirtschaftliche, politische und kulturelle + Macht legitimiert + C: eine Form des dualen Bewusstseins basierend auf Ideologie und Alltagserfahrungen + D: "eine Zahlungsweise f\xFCr ausstehende Formschnitte" + input_correct_responses: + - B + input_question: "Der Begriff \u201EHegemonie\u201C bezieht sich auf:" + - input_choice_list: + A: Die meisten Streiks bleiben von den Arbeitgebern und den Massenmedien unbemerkt + B: "Nicht alle Arbeitsk\xE4mpfe werden vom Arbeitgeber gemeldet" + C: "Die Definition von Streiks schlie\xDFt Streiks aus, an denen weniger als\ + \ zehn Arbeitnehmer beteiligt sind oder die weniger als einen Tag dauern" + D: Es ist schwierig, Streiks zu vergleichen, die auf unterschiedliche Weise + gemessen wurden + input_correct_responses: + - A + input_question: Was ist kein Problem im Zusammenhang mit offiziellen Streikstatistiken? +include: _continuation_template_yaml +process_docs: !function utils.process_docs_sociology +tag: mmlu_de_llama_social_sciences_tasks +task: mmlu_de_llama_sociology +task_alias: sociology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_us_foreign_policy.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_us_foreign_policy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5157437c9a40eb0f09fd809839aca57287daa9db --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_us_foreign_policy.yaml @@ -0,0 +1,59 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Es besch\xE4digte die Unterst\xFCtzung f\xFCr das US-amerikanische Modell\ + \ der politischen \xD6konomie und des Kapitalismus" + B: "Es erzeugte Wut auf die Vereinigten Staaten, weil sie die Krise \xFCbertrieben" + C: "Es erh\xF6hte die Unterst\xFCtzung f\xFCr die amerikanische globale F\xFC\ + hrung unter Pr\xE4sident Obama" + D: Es reduzierte die weltweite Verwendung des US-Dollars + input_correct_responses: + - A + input_question: Wie hat sich die Finanzkrise von 2008 auf Amerikas internationalen + Ruf ausgewirkt? + - input_choice_list: + A: "Es globalisierte die Eind\xE4mmung." + B: "Es militarisierte die Eind\xE4mmung." + C: Es forderte die Entwicklung der Wasserstoffbombe. + D: Alles das oben Genannte + input_correct_responses: + - D + input_question: "Wie hat NSC-68 die US-Strategie ver\xE4ndert?" + - input_choice_list: + A: Terrorismuspolitik. + B: Wirtschaftspolitik. + C: "Au\xDFenpolitik." + D: Internationale Politik. + input_correct_responses: + - C + input_question: "Der Bereich der politischen Entscheidungen, die sich haupts\xE4\ + chlich mit den Beziehungen zwischen den Vereinigten Staaten und dem Rest der\ + \ Welt befassen, wird als bezeichnet" + - input_choice_list: + A: "Defensive Realisten legen gr\xF6\xDFeres Gewicht auf die Rolle internationaler\ + \ Institutionen" + B: Defensive Realisten legen weniger Wert auf geografische Faktoren + C: "Offensive Realisten geben dem nationalen Interesse mehr Priorit\xE4t als\ + \ defensive Realisten." + D: "Defensive Realisten glauben, dass Staaten Sicherheitsmaximierer sind, w\xE4\ + hrend offensive Realisten glauben, dass Staaten Machtmaximierer sind" + input_correct_responses: + - D + input_question: "Wie unterscheiden sich Defensiver Realismus und Offensiver Realismus\ + \ in ihrer Erkl\xE4rung staatlichen Verhaltens?" + - input_choice_list: + A: "Die Globalisierung hatte M\xE4nner wie ihn zu reich gemacht" + B: Von der Globalisierung profitierten nur bestimmte amerikanische Staaten wie + New York + C: "Liberale Eliten hatten die Globalisierung gef\xF6rdert, w\xE4hrend \u201E\ + einfache Amerikaner\u201C deswegen Arbeitspl\xE4tze verloren" + D: "Die Globalisierung f\xF6rderte sch\xE4dliche Handelskriege" + input_correct_responses: + - C + input_question: Wie hat Donald Trump im Wahlkampf 2016 die Globalisierung angegriffen? +include: _continuation_template_yaml +process_docs: !function utils.process_docs_us_foreign_policy +tag: mmlu_de_llama_social_sciences_tasks +task: mmlu_de_llama_us_foreign_policy +task_alias: us_foreign_policy diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_virology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_virology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..76a991062faea0e0e0a9b039d12817dfb73b5182 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_virology.yaml @@ -0,0 +1,51 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Weil sie keine Nukleins\xE4ure haben" + B: "Sie ben\xF6tigen einen Helfervirus" + C: Nur in sich teilenden Zellen replizieren + D: Kann sich in Wirtschromosomen integrieren + input_correct_responses: + - A + input_question: "Warum sind Parvoviren ein \xE4u\xDFerst wirkungsvoller Parasit?" + - input_choice_list: + A: Zerbrechliche Viren werden oft mit RNA visualisiert, die von innen ausspuckt + B: "Verl\xE4ngerte Viren" + C: "Ikosaedrische Viren mit H\xFClle" + D: "Sehr gro\xDFe Viren" + input_correct_responses: + - A + input_question: Welches der folgenden Merkmale ist ein morphologisches Merkmal + der Paramyxoviren? + - input_choice_list: + A: Datensammlung + B: "Einrichtung eines Depots f\xFCr biologische Proben" + C: Teilnehmerinteresse + D: Verwaltung des Fragebogens durch Mitarbeiter + input_correct_responses: + - B + input_question: "Ein Schl\xFCsselfaktor, der die Anwendung von verschachtelten\ + \ Fall-Kontroll-Studien aus dem MACS erleichterte, war:" + - input_choice_list: + A: "Verhaltens\xE4nderung" + B: Umfassende Abdeckung + C: Effektive Anwendung der Verhaltenstheorie + D: "Nachhaltige Verhaltens\xE4nderung" + input_correct_responses: + - D + input_question: 'Das wichtigste Ziel einer Verhaltensintervention ist:' + - input_choice_list: + A: "Seropr\xE4valente HIV-infizierte Personen" + B: Seronegative + C: Serokonverter + D: Hochrisiko-Seronegative + input_correct_responses: + - C + input_question: "Die mittlere \xDCberlebenszeit bis AIDS und Tod wurde wie folgt\ + \ ermittelt:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_virology +tag: mmlu_de_llama_other_tasks +task: mmlu_de_llama_virology +task_alias: virology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_world_religions.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_world_religions.yaml new file mode 100644 index 0000000000000000000000000000000000000000..66b3e424de1c7803865977da461ad14efc6670b1 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/mmlu_de_world_religions.yaml @@ -0,0 +1,50 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Der Regenbogen + B: Beschneidung + C: Einen Sohn + D: Bar Mizwa + input_correct_responses: + - B + input_question: "Was ist das Zeichen des Bundes f\xFCr j\xFCdische M\xE4nner?" + - input_choice_list: + A: Der Dharma + B: Der Sangha + C: Der Buddha + D: Der Bodhisattva + input_correct_responses: + - A + input_question: Was ist das zweite Juwel im Buddhismus? + - input_choice_list: + A: Shang + B: Zhou + C: Han + D: Xia + input_correct_responses: + - B + input_question: "In welcher Dynastie wurde das \u201EMandat des Himmels\u201C\ + \ entwickelt, um die neuen Herrscher zu legitimieren?" + - input_choice_list: + A: Honen + B: Tanaka + C: Tokugawa + D: Meiji + input_correct_responses: + - D + input_question: "Welche japanische Regierung f\xF6rderte eine Art nationalen Kult,\ + \ der auf dem Kaiser und seinen Beziehungen zu Kami beruhte?" + - input_choice_list: + A: Rituelle Texte + B: Philosophische Texte + C: Hymnen + D: Entstehungsgeschichten + input_correct_responses: + - B + input_question: Wie lassen sich die Upanishaden charakterisieren? +include: _continuation_template_yaml +process_docs: !function utils.process_docs_world_religions +tag: mmlu_de_llama_humanities_tasks +task: mmlu_de_llama_world_religions +task_alias: world_religions diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/utils.py b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..ca29f631ca3b220f438253c5b3ca606f7c509523 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_de/utils.py @@ -0,0 +1,104 @@ +from functools import partial + +import datasets + + +def process_docs(dataset: datasets.Dataset, subtask) -> datasets.Dataset: + return dataset.filter( + lambda example: example["subtask_name"] == f"mmlu_de_chat.{subtask}" + ) + + +process_docs_high_school_psychology = partial( + process_docs, subtask="high_school_psychology" +) +process_docs_abstract_algebra = partial(process_docs, subtask="abstract_algebra") +process_docs_medical_genetics = partial(process_docs, subtask="medical_genetics") +process_docs_high_school_world_history = partial( + process_docs, subtask="high_school_world_history" +) +process_docs_high_school_physics = partial(process_docs, subtask="high_school_physics") +process_docs_high_school_macroeconomics = partial( + process_docs, subtask="high_school_macroeconomics" +) +process_docs_philosophy = partial(process_docs, subtask="philosophy") +process_docs_security_studies = partial(process_docs, subtask="security_studies") +process_docs_elementary_mathematics = partial( + process_docs, subtask="elementary_mathematics" +) +process_docs_prehistory = partial(process_docs, subtask="prehistory") +process_docs_professional_medicine = partial( + process_docs, subtask="professional_medicine" +) +process_docs_college_mathematics = partial(process_docs, subtask="college_mathematics") +process_docs_professional_psychology = partial( + process_docs, subtask="professional_psychology" +) +process_docs_high_school_microeconomics = partial( + process_docs, subtask="high_school_microeconomics" +) +process_docs_high_school_european_history = partial( + process_docs, subtask="high_school_european_history" +) +process_docs_international_law = partial(process_docs, subtask="international_law") +process_docs_miscellaneous = partial(process_docs, subtask="miscellaneous") +process_docs_formal_logic = partial(process_docs, subtask="formal_logic") +process_docs_high_school_chemistry = partial( + process_docs, subtask="high_school_chemistry" +) +process_docs_global_facts = partial(process_docs, subtask="global_facts") +process_docs_electrical_engineering = partial( + process_docs, subtask="electrical_engineering" +) +process_docs_high_school_geography = partial( + process_docs, subtask="high_school_geography" +) +process_docs_conceptual_physics = partial(process_docs, subtask="conceptual_physics") +process_docs_marketing = partial(process_docs, subtask="marketing") +process_docs_professional_law = partial(process_docs, subtask="professional_law") +process_docs_moral_scenarios = partial(process_docs, subtask="moral_scenarios") +process_docs_high_school_computer_science = partial( + process_docs, subtask="high_school_computer_science" +) +process_docs_clinical_knowledge = partial(process_docs, subtask="clinical_knowledge") +process_docs_machine_learning = partial(process_docs, subtask="machine_learning") +process_docs_sociology = partial(process_docs, subtask="sociology") +process_docs_astronomy = partial(process_docs, subtask="astronomy") +process_docs_high_school_government_and_politics = partial( + process_docs, subtask="high_school_government_and_politics" +) +process_docs_high_school_mathematics = partial( + process_docs, subtask="high_school_mathematics" +) +process_docs_world_religions = partial(process_docs, subtask="world_religions") +process_docs_virology = partial(process_docs, subtask="virology") +process_docs_moral_disputes = partial(process_docs, subtask="moral_disputes") +process_docs_computer_security = partial(process_docs, subtask="computer_security") +process_docs_econometrics = partial(process_docs, subtask="econometrics") +process_docs_college_chemistry = partial(process_docs, subtask="college_chemistry") +process_docs_human_aging = partial(process_docs, subtask="human_aging") +process_docs_logical_fallacies = partial(process_docs, subtask="logical_fallacies") +process_docs_public_relations = partial(process_docs, subtask="public_relations") +process_docs_college_medicine = partial(process_docs, subtask="college_medicine") +process_docs_college_biology = partial(process_docs, subtask="college_biology") +process_docs_high_school_biology = partial(process_docs, subtask="high_school_biology") +process_docs_business_ethics = partial(process_docs, subtask="business_ethics") +process_docs_high_school_statistics = partial( + process_docs, subtask="high_school_statistics" +) +process_docs_college_physics = partial(process_docs, subtask="college_physics") +process_docs_human_sexuality = partial(process_docs, subtask="human_sexuality") +process_docs_professional_accounting = partial( + process_docs, subtask="professional_accounting" +) +process_docs_high_school_us_history = partial( + process_docs, subtask="high_school_us_history" +) +process_docs_us_foreign_policy = partial(process_docs, subtask="us_foreign_policy") +process_docs_nutrition = partial(process_docs, subtask="nutrition") +process_docs_management = partial(process_docs, subtask="management") +process_docs_anatomy = partial(process_docs, subtask="anatomy") +process_docs_college_computer_science = partial( + process_docs, subtask="college_computer_science" +) +process_docs_jurisprudence = partial(process_docs, subtask="jurisprudence") diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/_mmlu_es_llama.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/_mmlu_es_llama.yaml new file mode 100644 index 0000000000000000000000000000000000000000..72d9be670fc87487fbf30d6192cf3490113406b4 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/_mmlu_es_llama.yaml @@ -0,0 +1,13 @@ +group: mmlu_es_llama +task: + - mmlu_es_llama_stem + - mmlu_es_llama_other + - mmlu_es_llama_social_sciences + - mmlu_es_llama_humanities +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: True + filter_list: [strict_match] +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/_mmlu_es_social_sciences.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/_mmlu_es_social_sciences.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3899781acc850e3aee1504551597b2f298699a27 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/_mmlu_es_social_sciences.yaml @@ -0,0 +1,11 @@ +group: mmlu_es_llama_social_sciences +group_alias: social sciences +task: + - mmlu_es_llama_social_sciences_tasks +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: True + filter_list: [strict_match] +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/_mmlu_es_stem.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/_mmlu_es_stem.yaml new file mode 100644 index 0000000000000000000000000000000000000000..54022ccb3597ea51de5b152abd5f4f1738e394ed --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/_mmlu_es_stem.yaml @@ -0,0 +1,11 @@ +group: mmlu_es_llama_stem +group_alias: stem +task: + - mmlu_es_llama_stem_tasks +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: True + filter_list: [strict_match] +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_astronomy.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_astronomy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..84105b31beb080b0f377397aca4b0e7b685afce2 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_astronomy.yaml @@ -0,0 +1,66 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Ser\xEDa m\xE1s dif\xEDcil ya que el cami\xF3n es m\xE1s pesado en Marte." + B: "Ser\xEDa m\xE1s f\xE1cil ya que el cami\xF3n es m\xE1s ligero en Marte." + C: "Ser\xEDa m\xE1s dif\xEDcil ya que el cami\xF3n es m\xE1s ligero en Marte." + D: "Ser\xEDa lo mismo sin importar d\xF3nde est\xE9s." + input_correct_responses: + - D + input_question: "Est\xE1s empujando un cami\xF3n por una carretera. \xBFSer\xED\ + a m\xE1s f\xE1cil acelerar este cami\xF3n en Marte? \xBFPor qu\xE9? (Supongamos\ + \ que no hay fricci\xF3n)" + - input_choice_list: + A: "El cintur\xF3n de Kuiper; Los cometas de per\xEDodo corto tienden a estar\ + \ en el plano del sistema solar al igual que el cintur\xF3n de Kuiper." + B: "El cintur\xF3n de Kuiper; Los cometas de per\xEDodo corto tienden a provenir\ + \ de direcciones aleatorias, lo que indica una distribuci\xF3n esf\xE9rica\ + \ de cometas llamada cintur\xF3n de Kuiper." + C: "El cintur\xF3n de asteroides; Los cometas de per\xEDodo corto tienen per\xED\ + odos orbitales similares a los asteroides como Vesta y se encuentran en el\ + \ plano del sistema solar al igual que el cintur\xF3n de asteroides." + D: "La nube de Oort; Los cometas de per\xEDodo corto tienden a estar en el plano\ + \ del sistema solar al igual que la nube de Oort." + input_correct_responses: + - A + input_question: "\xBFDe d\xF3nde proceden la mayor\xEDa de los cometas de per\xED\ + odo corto y c\xF3mo lo sabemos?" + - input_choice_list: + A: "10000 veces m\xE1s" + B: "100 veces m\xE1s" + C: "1000 veces m\xE1s" + D: "10 veces m\xE1s" + input_correct_responses: + - A + input_question: "Digamos que la pupila de tu ojo tiene un di\xE1metro de 5 mm\ + \ y tienes un telescopio con una apertura de 50 cm. \xBFCu\xE1nta m\xE1s luz\ + \ puede captar el telescopio que tu ojo?" + - input_choice_list: + A: "Una vez se form\xF3 aqu\xED un planeta, pero fue destruido por una colisi\xF3\ + n catastr\xF3fica." + B: "En esta parte de la nebulosa solar no hab\xEDa suficiente material para\ + \ formar un planeta." + C: "Hab\xEDa demasiado material rocoso para formar un planeta terrestre pero\ + \ no suficiente material gaseoso para formar un planeta joviano." + D: "La resonancia con J\xFApiter impidi\xF3 que el material se acumulara para\ + \ formar un planeta." + input_correct_responses: + - D + input_question: "\xBFPor qu\xE9 no existe un planeta donde se encuentre el cintur\xF3\ + n de asteroides?" + - input_choice_list: + A: "Porque la superficie est\xE1 cubierta de minerales muy oxidados ("oxidados")." + B: "Porque la atm\xF3sfera dispersa m\xE1s luz en longitudes de onda m\xE1s\ + \ azules y transmite principalmente luz roja." + C: "Porque Marte est\xE1 cubierto de antiguos flujos de lava de color rojo." + D: "Porque el agua que fluy\xF3 sobre la superficie de Marte alter\xF3 los minerales\ + \ de la superficie hace varios miles de millones de a\xF1os." + input_correct_responses: + - A + input_question: "\xBFPor qu\xE9 Marte es rojo?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_astronomy +tag: mmlu_es_llama_stem_tasks +task: mmlu_es_llama_astronomy +task_alias: astronomy diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_college_biology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_college_biology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3f577a2d430bc4a36ec08b3d7462f6b08c6cf508 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_college_biology.yaml @@ -0,0 +1,59 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Poseen un exoesqueleto compuesto principalmente de peptidoglicano. + B: "Poseen un sistema circulatorio abierto con un coraz\xF3n dorsal." + C: "Son miembros de un filo biol\xF3gicamente fracasado, incapaz de explotar\ + \ diversos h\xE1bitats y fuentes de nutrici\xF3n." + D: "Carecen de ap\xE9ndices pareados y articulados." + input_correct_responses: + - B + input_question: "\xBFCu\xE1l de las siguientes representa una afirmaci\xF3n precisa\ + \ sobre los artr\xF3podos?" + - input_choice_list: + A: 1/400 + B: 19/400 + C: 20/400 + D: 38/400 + input_correct_responses: + - D + input_question: "En una poblaci\xF3n determinada, 1 de cada 400 personas tiene\ + \ un c\xE1ncer causado por un alelo completamente recesivo, b. Suponiendo que\ + \ la poblaci\xF3n se encuentra en equilibrio de Hardy-Weinberg, \xBFcu\xE1l\ + \ de las siguientes es la proporci\xF3n esperada de individuos que portan el\ + \ alelo b pero que no se espera que desarrollen c\xE1ncer?" + - input_choice_list: + A: "el humano y el ave son especies polifil\xE9ticas" + B: "La evoluci\xF3n de un ser humano y un p\xE1jaro es convergente." + C: "el humano y el p\xE1jaro pertenecen a un clado" + D: "El ser humano y el p\xE1jaro desarrollados por analog\xEDa." + input_correct_responses: + - C + input_question: "La presencia de estructuras hom\xF3logas en dos organismos diferentes,\ + \ como el h\xFAmero en la extremidad anterior de un humano y un p\xE1jaro, indica\ + \ que" + - input_choice_list: + A: "una bomba de presi\xF3n-flujo dependiente de ATP" + B: "un gradiente de potencial de presi\xF3n del agua" + C: "transpiraci\xF3n" + D: "difusi\xF3n apopl\xE1sica" + input_correct_responses: + - B + input_question: "Seg\xFAn el modelo de presi\xF3n-flujo del movimiento del contenido\ + \ del floema, el movimiento de fotosintato desde la fuente hasta el sumidero\ + \ es impulsado por" + - input_choice_list: + A: "Tel\xF3meros" + B: "centr\xF3meros" + C: Nucleosomas + D: Empalizosomas + input_correct_responses: + - B + input_question: "\xBFCu\xE1l de los siguientes contiene secuencias de ADN necesarias\ + \ para la segregaci\xF3n de cromosomas en la mitosis y la meiosis?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_biology +tag: mmlu_es_llama_stem_tasks +task: mmlu_es_llama_college_biology +task_alias: college_biology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_college_chemistry.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_college_chemistry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6efad70c0a9c4fd2ad7e98756cabc1fc14242cad --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_college_chemistry.yaml @@ -0,0 +1,61 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "El estado de oxidaci\xF3n m\xE1s com\xFAn de los elementos lant\xE1nidos\ + \ es +3." + B: "Los complejos de lant\xE1nidos suelen tener n\xFAmeros de coordinaci\xF3\ + n elevados (>6)." + C: "Todos los elementos lant\xE1nidos reaccionan con un \xE1cido acuoso para\ + \ liberar hidr\xF3geno." + D: "Los radios at\xF3micos de los elementos lant\xE1nidos aumentan a lo largo\ + \ del per\xEDodo de La a Lu." + input_correct_responses: + - D + input_question: "\xBFCu\xE1l de las siguientes afirmaciones sobre los elementos\ + \ lant\xE1nidos NO es cierta?" + - input_choice_list: + A: 1,0 ml + B: 10ml + C: 20ml + D: 50 mililitros + input_correct_responses: + - C + input_question: "Una muestra de 0,217 g de HgO (masa molar = 217 g) reacciona\ + \ con un exceso de iones yoduro de acuerdo con la reacci\xF3n que se muestra\ + \ arriba. \xBFCu\xE1ntos ml de HCl 0,10 M se necesitan para valorar la soluci\xF3\ + n resultante para alcanzar el punto de equivalencia?" + - input_choice_list: + A: '4' + B: '3' + C: '6' + D: '24' + input_correct_responses: + - A + input_question: "Prediga el n\xFAmero de l\xEDneas en el espectro EPR de una soluci\xF3\ + n de radical metilo marcado con 13C (13CH3\u2022), suponiendo que las l\xED\ + neas no se superpongan." + - input_choice_list: + A: "un \xE1cido" + B: una base + C: un catalizador + D: un agente reductor + input_correct_responses: + - D + input_question: "3 Cl\u2212(ac) + 4 CrO_4^2\u2212(ac) + 23 H+(ac) \u2192 3 HClO2(ac)\ + \ + 4 Cr3+(ac) + 10 H2O(l). En la reacci\xF3n que se muestra arriba, Cl\u2212\ + (aq) se comporta como" + - input_choice_list: + A: PbH4 < SnH4 < GeH4 < SiH4 < CH4 + B: PbH4 < SnH4 < CH4 < GeH4 < SiH4 + C: CH4 < SiH4 < GeH4 < SnH4 < PbH4 + D: CH4 < PbH4 < GeH4 < SnH4 < SiH4 + input_correct_responses: + - A + input_question: "\xBFCu\xE1l de las siguientes enumera los hidruros de elementos\ + \ del grupo 14 en orden de estabilidad t\xE9rmica, de menor a mayor?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_chemistry +tag: mmlu_es_llama_stem_tasks +task: mmlu_es_llama_college_chemistry +task_alias: college_chemistry diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_college_computer_science.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_college_computer_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..14268cd3a75f67744d857ac1cd911f31f95a6c9c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_college_computer_science.yaml @@ -0,0 +1,82 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + 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 + input_correct_responses: + - D + input_question: "\xBFCu\xE1l de las siguientes expresiones regulares es equivalente\ + \ a (describe el mismo conjunto de cadenas que) (a* + b)*(c + d)?" + - input_choice_list: + A: '5' + B: '6' + C: '7' + D: '8' + input_correct_responses: + - B + input_question: "Cierta m\xE1quina RISC canalizada tiene 8 registros de prop\xF3\ + sito general R0, R1,. . . , R7 y admite las siguientes operaciones. SUMAR Rs1,\ + \ Rs2, Rd Sumar Rs1 a Rs2 y poner la suma en Rd MUL Rs1, Rs2, Rd Multiplicar\ + \ Rs1 por Rs2 y poner el producto en Rd Una operaci\xF3n normalmente toma un\ + \ ciclo; sin embargo, una operaci\xF3n requiere dos ciclos si produce un resultado\ + \ requerido por la operaci\xF3n inmediatamente siguiente en una secuencia de\ + \ operaciones. Considere la expresi\xF3n AB + ABC + BC, donde las variables\ + \ A, B, C est\xE1n ubicadas en los registros R0, R1, R2. Si no se debe modificar\ + \ el contenido de estos tres registros, \xBFcu\xE1l es el n\xFAmero m\xEDnimo\ + \ de ciclos de reloj requeridos para una secuencia de operaci\xF3n que calcula\ + \ el valor de AB + ABC + BC?" + - input_choice_list: + A: yo solo + B: Yo solo + C: solo III + D: I, II y III + input_correct_responses: + - D + input_question: "El patr\xF3n de dise\xF1o Singleton se utiliza para garantizar\ + \ que solo se pueda crear una instancia de una clase. \xBFCu\xE1l de las siguientes\ + \ afirmaciones es cierta respecto de este patr\xF3n de dise\xF1o? I. La clase\ + \ Singleton tiene un m\xE9todo de f\xE1brica est\xE1tico para proporcionar su\ + \ instancia. II. La clase Singleton puede ser una subclase de otra clase. III.\ + \ La clase Singleton tiene un constructor privado." + - input_choice_list: + A: '5' + B: '6' + C: '7' + D: '9' + input_correct_responses: + - D + input_question: "Un compilador genera c\xF3digo para la siguiente declaraci\xF3\ + n de asignaci\xF3n. G := (A + B) * C - (D + E) * F La m\xE1quina de destino\ + \ tiene un \xFAnico acumulador y un conjunto de instrucciones de direcci\xF3\ + n \xFAnica que consta de instrucciones de carga, almacenamiento, suma, resta\ + \ y multiplicaci\xF3n. Para las operaciones aritm\xE9ticas, el operando izquierdo\ + \ se toma del acumulador y el resultado aparece en el acumulador. El menor n\xFA\ + mero posible de instrucciones en el c\xF3digo resultante es" + - input_choice_list: + A: 1/50 + B: 1/27 + C: 1/25 + D: 2/27 + input_correct_responses: + - B + input_question: "Considere un dise\xF1o de computadora en el que m\xFAltiples\ + \ procesadores, cada uno con una memoria cach\xE9 privada, comparten la memoria\ + \ global usando un solo bus. Este bus es el recurso cr\xEDtico del sistema.\ + \ Cada procesador puede ejecutar una instrucci\xF3n cada 500 nanosegundos siempre\ + \ que su cach\xE9 local satisfaga las referencias de memoria. Cuando se produce\ + \ una p\xE9rdida de cach\xE9, el procesador se retrasa 2000 nanosegundos adicionales.\ + \ Durante la mitad de este retraso adicional, el autob\xFAs se dedica a atender\ + \ la p\xE9rdida de cach\xE9. Durante la otra mitad, el procesador no puede continuar,\ + \ pero el bus queda libre para atender las solicitudes de otros procesadores.\ + \ En promedio, cada instrucci\xF3n requiere 2 referencias a la memoria. En promedio,\ + \ los errores de cach\xE9 ocurren en el 1 por ciento de las referencias. \xBF\ + Qu\xE9 proporci\xF3n de la capacidad del bus consumir\xEDa un solo procesador,\ + \ ignorando los retrasos debidos a la competencia de otros procesadores?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_computer_science +tag: mmlu_es_llama_stem_tasks +task: mmlu_es_llama_college_computer_science +task_alias: college_computer_science diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_college_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_college_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..82f640e38a5b69f54108d637e74fa9f9a9112bbe --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_college_mathematics.yaml @@ -0,0 +1,63 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: EST = 0 + B: ST = T + C: ST = TS + D: "ST - TS es el mapa de identidad de V sobre s\xED mismo." + input_correct_responses: + - D + input_question: "Sea V el conjunto de todos los polinomios reales p(x). Definamos\ + \ las transformaciones T, S en V por T:p(x) -> xp(x) y S:p(x) -> p'(x)\ + \ = d/dx p(x), e interpretemos (ST) (p(x)) como S(T(p(x))). \xBFCual de los\ + \ siguientes es verdadero?" + - input_choice_list: + A: '2' + B: 2-e^-2 + C: 2 + e^-2 + D: 2 + e^-4 + input_correct_responses: + - D + input_question: "Un tanque contiene inicialmente una soluci\xF3n salina de 3 gramos\ + \ de sal disueltos en 100 litros de agua. Se pulveriza en el tanque una soluci\xF3\ + n salina que contiene 0,02 gramos de sal por litro de agua a una velocidad de\ + \ 4 litros por minuto. La soluci\xF3n pulverizada se mezcla continuamente con\ + \ la soluci\xF3n salina en el tanque y la mezcla sale del tanque a una velocidad\ + \ de 4 litros por minuto. Si la mezcla es instant\xE1nea \xBFcu\xE1ntos gramos\ + \ de sal quedan en el tanque despu\xE9s de transcurridos 100 minutos?" + - input_choice_list: + A: yo solo + B: Yo solo + C: solo III + D: "S\xF3lo II y III" + input_correct_responses: + - B + input_question: "Sea A una matriz real de 2x2. \xBFCu\xE1l de las siguientes afirmaciones\ + \ debe ser cierta? I. Todas las entradas de A^2 no son negativas. II. El determinante\ + \ de A^2 no es negativo. III. Si A tiene dos valores propios distintos, entonces\ + \ A^2 tiene dos valores propios distintos." + - input_choice_list: + A: '-11' + B: '0' + C: '11' + D: 33/2 + input_correct_responses: + - C + input_question: Supongamos que f(1 + x) = f(x) para todo x real. Si f es un polinomio + y f(5) = 11, entonces f(15/2) + - input_choice_list: + A: '-5' + B: '-4' + C: '-3' + D: '-2' + input_correct_responses: + - B + input_question: "Sea A el conjunto de todos los pares ordenados de enteros (m,\ + \ n) tales que 7m + 12n = 22. \xBFCu\xE1l es el mayor n\xFAmero negativo del\ + \ conjunto B = {m + n : (m, n) \\in A}?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_mathematics +tag: mmlu_es_llama_stem_tasks +task: mmlu_es_llama_college_mathematics +task_alias: college_mathematics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_college_medicine.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_college_medicine.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ba2706872bc03855b25de31a0b7be97a3cc93372 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_college_medicine.yaml @@ -0,0 +1,59 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "a trav\xE9s de transportadores de prote\xEDnas llamados GLUT4." + B: "s\xF3lo en presencia de insulina." + C: "v\xEDa hexoquinasa." + D: "mediante transportadores de \xE1cido monocarb\xEDlico." + input_correct_responses: + - A + input_question: "La glucosa se transporta a la c\xE9lula muscular:" + - input_choice_list: + A: "El gluc\xF3geno muscular se descompone enzim\xE1ticamente en glucosa-1-fosfato." + B: "Los corredores de resistencia de \xE9lite tienen una alta proporci\xF3n\ + \ de fibras tipo I en los m\xFAsculos de las piernas" + C: "El gluc\xF3geno hep\xE1tico es importante en el mantenimiento de la concentraci\xF3\ + n de glucosa en sangre." + D: "La insulina promueve la absorci\xF3n de glucosa por todos los tejidos del\ + \ cuerpo." + input_correct_responses: + - D + input_question: "\xBFCu\xE1l de las siguientes no es una afirmaci\xF3n verdadera?" + - input_choice_list: + A: "Todos los descendientes por l\xEDnea materna padecer\xE1n el trastorno." + B: "Las mujeres se ver\xE1n aproximadamente dos veces m\xE1s afectadas que los\ + \ hombres en esta familia." + C: "Todas las hijas de un var\xF3n afectado se ver\xE1n afectadas." + D: "Habr\xE1 una distribuci\xF3n equitativa de hombres y mujeres afectados." + input_correct_responses: + - C + input_question: "En una prueba gen\xE9tica de un reci\xE9n nacido, se encuentra\ + \ un trastorno gen\xE9tico poco com\xFAn que tiene transmisi\xF3n recesiva ligada\ + \ al cromosoma X. \xBFCu\xE1l de las siguientes afirmaciones es probablemente\ + \ cierta con respecto al pedigr\xED de este trastorno?" + - input_choice_list: + A: Aumento de temperatura, aumento de moles de gas. + B: Aumento de temperatura, aumento de volumen. + C: "Disminuci\xF3n del volumen, disminuci\xF3n de la temperatura." + D: "Disminuci\xF3n de moles de gas, aumento de volumen." + input_correct_responses: + - A + input_question: "Un profesor de ciencias de secundaria llena una botella de 1\ + \ litro con nitr\xF3geno puro y sella la tapa. La presi\xF3n es de 1,70 atm\ + \ y la temperatura ambiente es de 25\xB0C. \xBFCu\xE1les dos variables aumentar\xE1\ + n la presi\xF3n del sistema si todas las dem\xE1s variables se mantienen constantes?" + - input_choice_list: + A: debilidad muscular. + B: ganancia de masa corporal. + C: calambres musculares. + D: "p\xE9rdida de electrolitos." + input_correct_responses: + - B + input_question: "Un efecto secundario esperado de la suplementaci\xF3n con creatina\ + \ es:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_medicine +tag: mmlu_es_llama_other_tasks +task: mmlu_es_llama_college_medicine +task_alias: college_medicine diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_college_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_college_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5fc5d23130b77444ba9ec13c70e69752dfc52dfe --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_college_physics.yaml @@ -0,0 +1,63 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: '4' + B: '5' + C: '6' + D: '20' + input_correct_responses: + - A + input_question: Un telescopio refractor consta de dos lentes convergentes separadas + por 100 cm. La lente del ocular tiene una distancia focal de 20 cm. El aumento + angular del telescopio es + - input_choice_list: + A: Temperatura constante + B: Volumen constante + C: "Presi\xF3n constante" + D: "Adiab\xE1tico" + input_correct_responses: + - B + input_question: "\xBFPara cu\xE1l de los siguientes procesos termodin\xE1micos\ + \ el aumento de la energ\xEDa interna de un gas ideal es igual al calor a\xF1\ + adido al gas?" + - input_choice_list: + A: 2,4 voltios + B: 3,3 voltios + C: 4,5 voltios + D: 5,7 voltios + input_correct_responses: + - A + input_question: "Un extremo de un alambre de nicromo de longitud 2L y \xE1rea\ + \ de secci\xF3n transversal A est\xE1 unido a un extremo de otro alambre de\ + \ nicromo de longitud L y \xE1rea de secci\xF3n transversal 2A. Si el extremo\ + \ libre del cable m\xE1s largo tiene un potencial el\xE9ctrico de 8,0 voltios\ + \ y el extremo libre del cable m\xE1s corto tiene un potencial el\xE9ctrico\ + \ de 1,0 voltios, el potencial en la uni\xF3n de los dos cables es casi igual\ + \ a" + - input_choice_list: + A: '4' + B: '5' + C: '6' + D: '20' + input_correct_responses: + - A + input_question: Un telescopio refractor consta de dos lentes convergentes separadas + por 100 cm. La lente del ocular tiene una distancia focal de 20 cm. El aumento + angular del telescopio es + - input_choice_list: + A: cargar + B: masa + C: "energ\xEDa y impulso" + D: "n\xFAmero lept\xF3nico" + input_correct_responses: + - D + input_question: "El mu\xF3n se desintegra con una vida \xFAtil caracter\xEDstica\ + \ de aproximadamente 10 ^ -6 segundos en un electr\xF3n, un neutrino mu\xF3\ + nico y un antineutrino electr\xF3nico. El mu\xF3n tiene prohibido desintegrarse\ + \ en un electr\xF3n y un solo neutrino por la ley de conservaci\xF3n de" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_physics +tag: mmlu_es_llama_stem_tasks +task: mmlu_es_llama_college_physics +task_alias: college_physics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_computer_security.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_computer_security.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0694221f177731875ac93058107e21da1cba0d48 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_computer_security.yaml @@ -0,0 +1,55 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: 160 bits + B: 512 bits + C: 628 bits + D: 820 bits + input_correct_responses: + - A + input_question: SHA-1 tiene un resumen de mensajes de + - input_choice_list: + A: "mensajer\xEDa instant\xE1nea: troyanos" + B: Troyanos de puerta trasera + C: Descargador de troyanos + D: Troyano de rescate + input_correct_responses: + - D + input_question: "_____________ puede modificar datos en su sistema, de modo que\ + \ su sistema no se ejecute correctamente o ya no pueda acceder a datos espec\xED\ + ficos, o incluso puede solicitar un rescate para otorgarle acceso." + - input_choice_list: + A: ""Hackear" la \xE9tica para justificar un comportamiento ego\xED\ + sta involuntario" + B: "Hackear sistemas (por ejemplo, durante las pruebas de penetraci\xF3n) para\ + \ exponer las vulnerabilidades para que puedan repararse, en lugar de explotarse." + C: "Hackear sistemas dirigidos por aquellos con cuya \xE9tica no est\xE1 de\ + \ acuerdo" + D: "Un t\xE9rmino de jerga para el desarrollo r\xE1pido de software, por ejemplo,\ + \ como parte de hackatones." + input_correct_responses: + - B + input_question: "\xBFQu\xE9 es el hacking \xE9tico?" + - input_choice_list: + A: "sobrescribir claves criptogr\xE1ficas en la memoria" + B: "una especie de inyecci\xF3n de c\xF3digo" + C: "una lectura fuera de los l\xEDmites de un buffer" + D: un ataque de cadena de formato + input_correct_responses: + - C + input_question: "Explotaci\xF3n de los permisos del error Heartbleed" + - input_choice_list: + A: Web embrujada + B: World Wide Web + C: Red de superficie + D: Red profunda + input_correct_responses: + - D + input_question: "El ____________ es cualquier cosa que su motor de b\xFAsqueda\ + \ no pueda buscar." +include: _continuation_template_yaml +process_docs: !function utils.process_docs_computer_security +tag: mmlu_es_llama_stem_tasks +task: mmlu_es_llama_computer_security +task_alias: computer_security diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_conceptual_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_conceptual_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a7ffd52d70ed6f78ba96ef2a0ae3601436e5fb34 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_conceptual_physics.yaml @@ -0,0 +1,55 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: menos + B: "m\xE1s" + C: lo mismo + D: cero + input_correct_responses: + - A + input_question: "En comparaci\xF3n con la masa de un \xE1tomo de uranio sometido\ + \ a fisi\xF3n, las masas combinadas de los productos despu\xE9s de la fisi\xF3\ + n son" + - input_choice_list: + A: espacio y tiempo. + B: un gemelo que viaja y un gemelo que se queda en casa. + C: "gravedad y aceleraci\xF3n." + D: "masa y energ\xEDa." + input_correct_responses: + - C + input_question: "Las cosas que son equivalentes seg\xFAn el principio de equivalencia\ + \ son" + - input_choice_list: + A: convertido a una frecuencia diferente + B: "desviaci\xF3n" + C: interferencia + D: "polarizaci\xF3n" + input_correct_responses: + - C + input_question: "Los colores de una pompa de jab\xF3n son el resultado de la luz." + - input_choice_list: + A: lo mismo + B: mayor que + C: menos + D: mayor o menor dependiendo de la velocidad del viento + input_correct_responses: + - B + input_question: "Un modelo de avi\xF3n vuela m\xE1s lento cuando vuela contra\ + \ el viento y m\xE1s r\xE1pido con el viento a favor. Cuando se lanza en \xE1\ + ngulo recto con el viento (viento cruzado), su velocidad respecto al suelo en\ + \ comparaci\xF3n con volar en aire en calma es" + - input_choice_list: + A: "Hidr\xF3geno" + B: Hierro + C: Uranio + D: Lo mismo en cada + input_correct_responses: + - A + input_question: "\xBFCu\xE1l de estos tres elementos tiene mayor masa por nucle\xF3\ + n?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_conceptual_physics +tag: mmlu_es_llama_stem_tasks +task: mmlu_es_llama_conceptual_physics +task_alias: conceptual_physics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_econometrics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_econometrics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e6c3e1b92ead326ab5efe6c49750335ccf6d5289 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_econometrics.yaml @@ -0,0 +1,64 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Eventualmente muere + B: Persistir indefinidamente + C: Crecer exponencialmente + D: Nunca ocurre + input_correct_responses: + - A + input_question: Para un proceso autorregresivo estacionario, los shocks + - input_choice_list: + A: 0,2 + B: 0,4 + C: 0,5 + D: 0,33 + input_correct_responses: + - D + input_question: "Considere el siguiente modelo AR(1) con perturbaciones que tienen\ + \ media cero y varianza unitaria yt = 0,2 + 0,4 yt-1 + ut La media (incondicional)\ + \ de y estar\xE1 dada por" + - input_choice_list: + A: "(ii) y (iv) \xFAnicamente" + B: "(i) y (iii) \xFAnicamente" + C: "(i), (ii) y (iii) \xFAnicamente" + D: (i), (ii), (iii) y (iv) + input_correct_responses: + - C + input_question: "Supongamos que un estad\xEDstico de prueba tiene asociado un\ + \ valor p de 0,08. \xBFCu\xE1l de las siguientes afirmaciones es verdadera?\ + \ (i) Si el tama\xF1o de la prueba fuera exactamente del 8%, ser\xEDa indiferente\ + \ entre rechazar o no la hip\xF3tesis nula (ii) La nula ser\xEDa rechazada si\ + \ se utilizara un tama\xF1o de prueba del 10% (iii) La nula no se rechazar\xE1\ + \ si se utiliza un tama\xF1o de prueba del 1% (iv) La nula se rechazar\xE1 si\ + \ se utiliza un tama\xF1o de prueba del 5%." + - input_choice_list: + A: "ser\xE1 parcial" + B: "ser\xE1 inconsistente" + C: "ser\xE1 ineficiente" + D: "Todo (a), (b) y (c) ser\xE1 cierto." + input_correct_responses: + - C + input_question: "\xBFCu\xE1les ser\xEDan entonces las consecuencias para el estimador\ + \ MCO si la heterocedasticidad est\xE1 presente en un modelo de regresi\xF3\ + n pero se ignora?" + - input_choice_list: + A: 1 retraso + B: 2 rezagos + C: 3 retrasos + D: 4 rezagos + input_correct_responses: + - C + input_question: "Supongamos ahora que un investigador desea utilizar criterios\ + \ de informaci\xF3n para determinar la duraci\xF3n \xF3ptima del rezago para\ + \ un VAR. Est\xE1n disponibles 500 observaciones para el VAR bivariado, y los\ + \ valores del determinante de la matriz de varianza-covarianza de residuos son\ + \ 0,0336, 0,0169, 0,0084 y 0,0062 para 1, 2, 3 y 4 rezagos respectivamente.\ + \ \xBFCu\xE1l es el orden \xF3ptimo del modelo seg\xFAn el criterio de informaci\xF3\ + n de Akaike?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_econometrics +tag: mmlu_es_llama_social_sciences_tasks +task: mmlu_es_llama_econometrics +task_alias: econometrics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_electrical_engineering.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_electrical_engineering.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bc2f821d628b5ca38d2a641adba1c570aae0904e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_electrical_engineering.yaml @@ -0,0 +1,58 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: S=0,R=0 + B: S=0, R=1 + C: S=1, R=0 + D: S=1, R=1 + input_correct_responses: + - D + input_question: "En un pestillo SR construido a partir de puertas NOR, cuya condici\xF3\ + n no est\xE1 permitida" + - input_choice_list: + A: "200\u03A9" + B: "100\u03A9" + C: "50\u03A9" + D: "10\u03A9" + input_correct_responses: + - C + input_question: "En una m\xE1quina de CC de bobinado superpuesto de 2 polos, la\ + \ resistencia de un conductor es 2 \u03A9 y el n\xFAmero total de conductores\ + \ es 100. Encuentre la resistencia total" + - input_choice_list: + A: 1 mA. + B: 2 mA. + C: 3 mA. + D: 4 mA. + input_correct_responses: + - B + input_question: "La bobina de un medidor de bobina m\xF3vil tiene 100 vueltas,\ + \ mide 40 mm de largo y 30 mm de ancho. El par de control es de 240*10-6 Nm\ + \ a escala completa. Si la densidad del flujo magn\xE9tico es 1Wb/m2, el rango\ + \ del medidor es" + - input_choice_list: + A: 100 N. + B: 0,1 norte. + C: 1 n. + D: 0,01 norte. + input_correct_responses: + - B + input_question: "Dos conductores largos paralelos transportan 100 A. Si los conductores\ + \ est\xE1n separados 20 mm, la fuerza por metro de longitud de cada conductor\ + \ ser\xE1" + - input_choice_list: + A: 15 N. + B: 20 N. + C: 7,5 N. + D: 3,75 norte. + input_correct_responses: + - A + input_question: "Un polo puntual tiene una fuerza de 4\u03C0 * 10^-4 weber. La\ + \ fuerza en newtons sobre un polo puntual de 4\u03C0 * 1,5 * 10^-4 weber colocado\ + \ a una distancia de 10 cm de \xE9l ser\xE1" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_electrical_engineering +tag: mmlu_es_llama_stem_tasks +task: mmlu_es_llama_electrical_engineering +task_alias: electrical_engineering diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_elementary_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_elementary_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4d5ec133c69bfd9e64c93fec5cccb82eb66ec4d6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_elementary_mathematics.yaml @@ -0,0 +1,59 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: 5 mil + B: 5 centenas + C: 5 decenas + D: 5 unos + input_correct_responses: + - A + input_question: "La poblaci\xF3n de la ciudad donde naci\xF3 Michelle es 145.826.\ + \ \xBFCu\xE1l es el valor del 5 en el n\xFAmero 145,826?" + - input_choice_list: + A: "El d\xE9cimo n\xFAmero del patr\xF3n ser\xE1 un n\xFAmero par." + B: "El patr\xF3n num\xE9rico nunca tendr\xE1 dos n\xFAmeros pares uno al lado\ + \ del otro." + C: "Los siguientes dos n\xFAmeros del patr\xF3n ser\xE1n un n\xFAmero par y\ + \ luego un n\xFAmero impar." + D: "Si el patr\xF3n num\xE9rico comenzara con un n\xFAmero impar, entonces el\ + \ patr\xF3n solo tendr\xEDa n\xFAmeros impares." + input_correct_responses: + - B + input_question: "Olivia us\xF3 la regla "Suma 11" para crear el patr\xF3\ + n num\xE9rico que se muestra a continuaci\xF3n. 10, 21, 32, 43, 54 \xBFQu\xE9\ + \ afirmaci\xF3n sobre el patr\xF3n num\xE9rico es verdadera?" + - input_choice_list: + A: Suma 5 a 30 para encontrar 35 equipos. + B: Divide 30 entre 5 para encontrar 6 equipos. + C: Multiplica 30 y 5 para encontrar 150 equipos. + D: Resta 5 de 30 para encontrar 25 equipos. + input_correct_responses: + - B + input_question: "Un total de 30 jugadores jugar\xE1n baloncesto en un parque.\ + \ Habr\xE1 exactamente 5 jugadores en cada equipo. \xBFQu\xE9 afirmaci\xF3n\ + \ explica correctamente c\xF3mo encontrar la cantidad de equipos necesarios?" + - input_choice_list: + A: '749' + B: '2.675' + C: 2,945 + D: '4.250' + input_correct_responses: + - B + input_question: "Una tienda vende 107 colores diferentes de pintura. Tienen 25\ + \ latas de cada color almacenadas. La cantidad de latas de pintura que la tienda\ + \ tiene almacenadas se puede encontrar usando la siguiente expresi\xF3n. 107\ + \ \xD7 25. \xBFCu\xE1ntas latas de pintura tiene almacenadas la tienda?" + - input_choice_list: + A: (5 x 4) x (6 x 5) + B: (5x5) + (5x4) + C: (5x5) + (5x9) + D: (5 x 9) x (6 x 9) + input_correct_responses: + - B + input_question: "\xBFQu\xE9 expresi\xF3n equivale a 5 x 9?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_elementary_mathematics +tag: mmlu_es_llama_stem_tasks +task: mmlu_es_llama_elementary_mathematics +task_alias: elementary_mathematics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_formal_logic.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_formal_logic.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9f01ce3ec4a4dd2ca787de55acf0b2b3855b81b3 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_formal_logic.yaml @@ -0,0 +1,64 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: ~Pd + B: "(\u2200x)(Px \u2228 ~Dx)" + C: "(\u2200x)(Px \u2283 ~Dx)" + D: ~Dp + input_correct_responses: + - C + input_question: "Seleccione la mejor traducci\xF3n a la l\xF3gica de predicados:\ + \ Nadie conduce en Marte." + - input_choice_list: + A: Blgh + B: Bhlg + C: Bglh + D: Bghl + input_correct_responses: + - C + input_question: "Seleccione la mejor traducci\xF3n a la l\xF3gica de predicados.\ + \ George toma prestada la cortadora de c\xE9sped de H\xE9ctor. (g: George; h:\ + \ H\xE9ctor; l: la cortadora de c\xE9sped de H\xE9ctor; Bxyx: x toma prestado\ + \ y de z)" + - input_choice_list: + A: "Marina es bailarina. Algunos d\xE9biles no son bailarines. O todo es un\ + \ debilucho o Georgia juega al voleibol. Entonces algo juega voleibol." + B: "Marina es bailarina. Ning\xFAn debilucho es bailar\xEDn. Todo es un debilucho\ + \ o juega al voleibol. Entonces algo juega voleibol." + C: "Marina es bailarina. Algunos d\xE9biles no son bailarines. Todo es un debilucho\ + \ o juega al voleibol. Entonces algo juega voleibol." + D: "Marina es bailarina. Ning\xFAn debilucho es bailar\xEDn. O todo es un debilucho\ + \ o Georgia juega al voleibol. Entonces algo juega voleibol." + input_correct_responses: + - D + input_question: "Seleccione la mejor interpretaci\xF3n en ingl\xE9s de los argumentos\ + \ dados en l\xF3gica de predicados. Dm (\u2200x)(Wx \u2283 ~Dx) (\u2200x)Wx\ + \ \u2228 Ag / (\u2203x)Ax" + - input_choice_list: + A: "L\xF3gicamente equivalente" + B: Contradictorio + C: "Ni l\xF3gicamente equivalente ni contradictorio, pero s\xED consistente" + D: Inconsistente + input_correct_responses: + - C + input_question: "Construya una tabla de verdad completa para los siguientes pares\ + \ de proposiciones. Luego, usando las tablas de verdad, determine si los enunciados\ + \ son l\xF3gicamente equivalentes o contradictorios. En caso negativo, determine\ + \ si son consistentes o inconsistentes. Justifica tus respuestas. E \u2283 (F\ + \ \xB7 E) y ~E \xB7 F" + - input_choice_list: + A: "(L\xB7H) \u2261 Yo" + B: "(L\xB7H) \u2228 Yo" + C: "L\xB7(H\u2228I)" + D: "L\xB7(H\u2283R)" + input_correct_responses: + - B + input_question: "\xBFCu\xE1l de las f\xF3rmulas dadas de PL es la mejor simbolizaci\xF3\ + n de la siguiente oraci\xF3n? Las tortugas viven largas vidas y son criaturas\ + \ felices, a menos que resulten heridas." +include: _continuation_template_yaml +process_docs: !function utils.process_docs_formal_logic +tag: mmlu_es_llama_humanities_tasks +task: mmlu_es_llama_formal_logic +task_alias: formal_logic diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_global_facts.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_global_facts.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bf628e3de30f22184a94634e9a89d76fdfdad2d3 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_global_facts.yaml @@ -0,0 +1,58 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "La gente tiende a ser optimista acerca de su propio futuro y el futuro de\ + \ su naci\xF3n o del mundo." + B: "La gente tiende a ser optimista acerca de su propio futuro pero pesimista\ + \ acerca del futuro de su naci\xF3n o del mundo." + C: "La gente tiende a ser pesimista acerca de su propio futuro pero optimista\ + \ acerca del futuro de su naci\xF3n o del mundo." + D: "La gente tiende a ser pesimista sobre su propio futuro y el futuro de su\ + \ naci\xF3n o del mundo." + input_correct_responses: + - B + input_question: "\xBFCu\xE1l de los siguientes pares de afirmaciones son verdaderas\ + \ (a partir de 2019)?" + - input_choice_list: + A: 31% + B: 46% + C: 61% + D: 76% + input_correct_responses: + - B + input_question: "A partir de 2019, \xBFqu\xE9 porcentaje aproximado de estadounidenses\ + \ est\xE1n de acuerdo en que el estado se gestiona en beneficio de todo el pueblo?" + - input_choice_list: + A: aumentado, aumentado + B: aumentado disminuido + C: disminuido, aumentado + D: disminuido, disminuido + input_correct_responses: + - B + input_question: "A partir de 2015, desde 1990 los bosques tienen ____ en Europa\ + \ y ____ en \xC1frica y Am\xE9rica." + - input_choice_list: + A: 38% + B: 53% + C: 68% + D: 83% + input_correct_responses: + - A + input_question: "A partir de 2019, \xBFqu\xE9 porcentaje de rusos dicen que es\ + \ muy importante tener medios de comunicaci\xF3n libres en nuestro pa\xEDs sin\ + \ censura gubernamental o estatal?" + - input_choice_list: + A: 80% + B: 60% + C: 40% + D: 20% + input_correct_responses: + - A + input_question: "A 2017, \xBFcu\xE1ntos de los ni\xF1os de 1 a\xF1o que hay hoy\ + \ en el mundo han sido vacunados contra alguna enfermedad? *" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_global_facts +tag: mmlu_es_llama_other_tasks +task: mmlu_es_llama_global_facts +task_alias: global_facts diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_biology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_biology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a98e6158900ac205c442dbebbb64ceeb5615dcbb --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_biology.yaml @@ -0,0 +1,61 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Traducci\xF3n" + B: "Conjugaci\xF3n" + C: "Transducci\xF3n especializada" + D: "Transformaci\xF3n" + input_correct_responses: + - A + input_question: "\xBFCu\xE1l de las siguientes no es una forma de formar ADN recombinante?" + - input_choice_list: + A: "Al cambiar el pH \xF3ptimo de la enzima" + B: "Cambiando la ubicaci\xF3n de la enzima en la c\xE9lula." + C: "Cambiando la forma de la prote\xEDna." + D: "Un cambio de amino\xE1cido fuera del sitio activo no puede alterar la especificidad\ + \ del sustrato de la enzima." + input_correct_responses: + - C + input_question: "Una mutaci\xF3n en una enzima bacteriana transform\xF3 un amino\xE1\ + cido previamente polar en un amino\xE1cido no polar. Este amino\xE1cido estaba\ + \ ubicado en un sitio distante del sitio activo de la enzima. \xBFC\xF3mo podr\xED\ + a esta mutaci\xF3n alterar la especificidad del sustrato de la enzima?" + - input_choice_list: + A: "Membrana plasm\xE1tica-aparato de Golgi-ribosoma-ves\xEDcula secretora-RE\ + \ rugoso" + B: "Ribosoma-aparato de Golgi-RE rugoso-ves\xEDcula secretora-membrana plasm\xE1\ + tica" + C: "Membrana plasm\xE1tica-aparato de Golgi-ribosoma-ves\xEDcula secretora-RE\ + \ rugoso" + D: "Ribosoma\u2013RE rugoso\u2013aparato de Golgi\u2013ves\xEDcula secretora\u2013\ + membrana plasm\xE1tica" + input_correct_responses: + - D + input_question: "En las c\xE9lulas animales, \xBFcu\xE1l de las siguientes representa\ + \ la v\xEDa m\xE1s probable que sigue una prote\xEDna secretora cuando se sintetiza\ + \ en una c\xE9lula?" + - input_choice_list: + A: ciclinas + B: "Prote\xEDnas quinasas" + C: Puntos de control + D: "C\xE9lulas de fibroblastos" + input_correct_responses: + - D + input_question: "\xBFCu\xE1l de los siguientes no se sabe que est\xE9 involucrado\ + \ en el control de la divisi\xF3n celular?" + - input_choice_list: + A: "las alas de un p\xE1jaro y las alas de un murci\xE9lago" + B: las aletas de una ballena y los brazos de un hombre + C: las aletas pectorales de una marsopa y las aletas de una foca + D: las patas delanteras de un insecto y las patas delanteras de un perro + input_correct_responses: + - D + input_question: "A menudo se citan estructuras hom\xF3logas como evidencia del\ + \ proceso de selecci\xF3n natural. Todos los siguientes son ejemplos de estructuras\ + \ hom\xF3logas EXCEPTO" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_biology +tag: mmlu_es_llama_stem_tasks +task: mmlu_es_llama_high_school_biology +task_alias: high_school_biology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_chemistry.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_chemistry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b4df458a2df2ab2d417fd97a98d590d95b27cba9 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_chemistry.yaml @@ -0,0 +1,60 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: HCl + B: H2SO3 + C: SO2 + D: Al(NO3)3 + input_correct_responses: + - C + input_question: "\xBFCu\xE1l de los siguientes se considera un anh\xEDdrido de\ + \ \xE1cido?" + - input_choice_list: + A: PCl4F + B: BF3 + C: CO2 + D: Si(CH3)4 + input_correct_responses: + - A + input_question: "\xBFCu\xE1l de las siguientes se espera que sea una mol\xE9cula\ + \ polar?" + - input_choice_list: + A: Todos los cloruros, bromuros y yoduros son solubles. + B: Todos los sulfatos son solubles. + C: "Todos los hidr\xF3xidos son solubles." + D: Todos los compuestos que contienen amonio son solubles. + input_correct_responses: + - D + input_question: "De las reglas de solubilidad, \xBFcu\xE1l de las siguientes afirmaciones\ + \ es verdadera?" + - input_choice_list: + A: 3,89 + B: 7,78 + C: '5.78' + D: '2.33' + input_correct_responses: + - C + input_question: "Se sintetiza un nuevo compuesto y se descubre que es un \xE1\ + cido monopr\xF3tico con una masa molar de 248 g/mol. Cuando se disuelven 0,0050\ + \ moles de este \xE1cido en 0,500 litros de agua, el pH se mide como 3,89. \xBF\ + Cu\xE1l es el pKa de este \xE1cido?" + - input_choice_list: + A: 0,500 moles + B: 1.00 mol + C: 2.00 moles + D: 3.00 moles + input_correct_responses: + - C + input_question: "Una soluci\xF3n contiene 2,00 moles de \xE1cido ac\xE9tico, CH3COOH,\ + \ y 1,00 moles de acetato de calcio, Ca(CH3COO)2. La soluci\xF3n es capaz de\ + \ resistir la adici\xF3n de una peque\xF1a cantidad de \xE1cido fuerte o base\ + \ fuerte con s\xF3lo cambios menores en el pH de la soluci\xF3n. Cantidades\ + \ mayores de \xE1cido fuerte o base fuerte pueden provocar un cambio significativo\ + \ en el pH. \xBFCu\xE1ntos moles de \xE1cido n\xEDtrico, HNO3, se pueden agregar\ + \ antes de que el pH comience a cambiar significativamente?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_chemistry +tag: mmlu_es_llama_stem_tasks +task: mmlu_es_llama_high_school_chemistry +task_alias: high_school_chemistry diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_computer_science.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_computer_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e1a31d6b703b4c85a536793310e23949bef6dd33 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_computer_science.yaml @@ -0,0 +1,80 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Un coche alerta a un conductor que est\xE1 a punto de chocar contra un objeto." + B: "Un excursionista utiliza un reloj GPS para realizar un seguimiento de su\ + \ posici\xF3n." + C: "Un refrigerador pide leche a un servicio de entrega en l\xEDnea cuando la\ + \ leche del refrigerador casi se ha acabado." + D: "Un corredor utiliza un reloj con sensores \xF3pticos para controlar su frecuencia\ + \ card\xEDaca." + input_correct_responses: + - C + input_question: "\xBFCu\xE1l de los siguientes es un ejemplo del uso de un dispositivo\ + \ en Internet de las cosas (IoT)?" + - input_choice_list: + A: "Las actividades de un usuario que navega en una ventana an\xF3nima no ser\xE1\ + n visibles para las personas que monitorean la red del usuario, como el administrador\ + \ del sistema." + B: "Los art\xEDculos colocados en el carrito de compras de una tienda web para\ + \ compras futuras durante la sesi\xF3n de navegaci\xF3n an\xF3nima no se guardar\xE1\ + n en la computadora del usuario." + C: "Un usuario no podr\xE1 iniciar sesi\xF3n en cuentas de correo electr\xF3\ + nico o de redes sociales durante la sesi\xF3n de navegaci\xF3n an\xF3nima." + D: "Un usuario que navegue en una ventana an\xF3nima estar\xE1 protegido de\ + \ los virus lanzados desde cualquier sitio web visitado o archivos descargados." + input_correct_responses: + - B + input_question: "Muchos navegadores web permiten a los usuarios abrir ventanas\ + \ an\xF3nimas. Durante una sesi\xF3n de navegaci\xF3n en una ventana an\xF3\ + nima, el navegador no registra un historial de navegaci\xF3n ni una lista de\ + \ archivos descargados. Cuando se sale de la ventana an\xF3nima, las cookies\ + \ creadas durante la sesi\xF3n se eliminan. \xBFCu\xE1l de las siguientes afirmaciones\ + \ sobre sesiones de navegaci\xF3n en una ventana an\xF3nima es cierta?" + - input_choice_list: + A: Error + B: a B C + C: cba + D: C + input_correct_responses: + - C + input_question: "\xBFCu\xE1l es el resultado de "abc"[::-1] en Python\ + \ 3?" + - input_choice_list: + A: Fox + B: Hotel + C: Noviembre + D: yanqui + input_correct_responses: + - C + input_question: "En el programa siguiente, el valor inicial de x es 5 y el valor\ + \ inicial de y es 10. IF (X < O) { DISPLAY ("Foxtrot") } ELSE {\ + \ IF (X > y) { DISPLAY ("Hotel") } ELSE { IF (y > O) { DISPLAY\ + \ ("Noviembre") } ELSE { DISPLAY ("Yankee") } } } \xBFQu\xE9\ + \ se muestra como resultado de ejecutar el programa?" + - input_choice_list: + A: "Paso 3: aumente el valor de la posici\xF3n en 1. Paso 4: repita los pasos\ + \ 2 y 3 hasta que el valor del recuento sea mayor que 100." + B: "Paso 3: Aumente el valor de la posici\xF3n en 1. Paso 4: Repita los pasos\ + \ 2 y 3 hasta que el valor de la posici\xF3n sea mayor que n." + C: "Paso 3: repita el paso 2 hasta que el valor del recuento sea mayor que 100.\ + \ Paso 4: aumente el valor de la posici\xF3n en 1." + D: "Paso 3: repita el paso 2 hasta que el valor de la posici\xF3n sea mayor\ + \ que n. Paso 4: aumente el valor del recuento en 1." + input_correct_responses: + - D + input_question: "Una lista de n\xFAmeros tiene n elementos, indexados del 1 al\ + \ n. El siguiente algoritmo est\xE1 destinado a mostrar la cantidad de elementos\ + \ en la lista que tienen un valor mayor que 100. El algoritmo utiliza las variables\ + \ recuento y posici\xF3n. Faltan los pasos 3 y 4. Paso 1: establezca el recuento\ + \ en 0 y la posici\xF3n en 1. Paso 2: si el valor del elemento en la posici\xF3\ + n del \xEDndice es mayor que 100, aumente el valor del recuento en 1. Paso 3:\ + \ (paso faltante) Paso 4: (paso faltante ) Paso 5: Mostrar el valor del recuento.\ + \ \xBFCu\xE1l de los siguientes podr\xEDa usarse para reemplazar los pasos 3\ + \ y 4 para que el algoritmo funcione seg\xFAn lo previsto?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_computer_science +tag: mmlu_es_llama_stem_tasks +task: mmlu_es_llama_high_school_computer_science +task_alias: high_school_computer_science diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_european_history.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_european_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..345f47d3fac577250a8a83da96c1bf064edbdd2c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_european_history.yaml @@ -0,0 +1,200 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Jean-Jacques Rousseau + B: "Bar\xF3n Montesquieu" + C: "Mar\xEDa Wollstonecraft" + D: Adam Smith + input_correct_responses: + - B + input_question: "Esta pregunta se refiere a la siguiente informaci\xF3n. El siguiente\ + \ extracto es de un folleto. Me har\xE1 usted la justicia de recordar que siempre\ + \ he apoyado en\xE9rgicamente el derecho de cada hombre a tener su propia opini\xF3\ + n, por muy diferente que esa opini\xF3n pueda ser de la m\xEDa. Quien niega\ + \ a otro este derecho, se hace esclavo de su opini\xF3n actual, porque se excluye\ + \ el derecho de cambiarla. El arma m\xE1s formidable contra errores de todo\ + \ tipo es la raz\xF3n. Nunca he usado ning\xFAn otro y conf\xEDo en que nunca\ + \ lo har\xE9. La circunstancia que ha tenido lugar ahora en Francia de la abolici\xF3\ + n total de todo el orden nacional del sacerdocio, y de todo lo perteneciente\ + \ a sistemas religiosos compulsivos y art\xEDculos de fe compulsivos, no s\xF3\ + lo ha precipitado mi intenci\xF3n, sino que ha convertido una obra de este tipo\ + \ sumamente necesario, no sea que en el desastre general de la superstici\xF3\ + n, de los falsos sistemas de gobierno y la falsa teolog\xEDa, perdamos de vista\ + \ la moralidad, la humanidad y la teolog\xEDa que es verdadera. Creo en un Dios\ + \ y no m\xE1s; y espero felicidad m\xE1s all\xE1 de esta vida. Creo en la igualdad\ + \ del hombre; y creo que los deberes religiosos consisten en hacer justicia,\ + \ amar la misericordia y esforzarse en hacer felices a nuestros semejantes.\ + \ No creo en el credo profesado por la iglesia jud\xEDa, por la iglesia romana,\ + \ por la iglesia griega, por la iglesia turca, por la iglesia protestante, ni\ + \ por ninguna iglesia que yo sepa. Mi propia mente es mi propia iglesia. Todas\ + \ las instituciones nacionales de las iglesias, ya sean jud\xEDas, cristianas\ + \ o turcas, me parecen no m\xE1s que invenciones humanas, creadas para aterrorizar\ + \ y esclavizar a la humanidad y monopolizar el poder y las ganancias. No pretendo\ + \ con esta declaraci\xF3n condenar a quienes creen lo contrario; ellos tienen\ + \ el mismo derecho a sus creencias que yo a las m\xEDas. \u2014Thomas Paine,\ + \ La era de la raz\xF3n, 1794\u20131795 \xBFCu\xE1l de los siguientes fil\xF3\ + sofos de la Ilustraci\xF3n dise\xF1\xF3 un sistema de controles y equilibrios\ + \ para que el gobierno evitara abusos de poder?" + - input_choice_list: + A: "Las ideas de libertad personal y nacionalismo concebidas durante la Ilustraci\xF3\ + n resultaron en revoluciones radicales que pudieron extenderse por toda Europa." + B: "La conquista de Europa por Napole\xF3n condujo a la creaci\xF3n de nuevas\ + \ facciones y cambi\xF3 el equilibrio de poder europeo." + C: "El poder de los monarcas hab\xEDa crecido hasta el punto de que necesitaba\ + \ ser controlado por otros poderes dentro de cada naci\xF3n o se producir\xED\ + a la dominaci\xF3n de los civiles." + D: "El ciclo econ\xF3mico ascendente y descendente de la nueva econom\xEDa capitalista\ + \ emergente podr\xEDa provocar disturbios civiles que deben ser reprimidos." + input_correct_responses: + - A + input_question: "Esta pregunta se refiere a la siguiente informaci\xF3n. Lea el\ + \ siguiente extracto. La semilla revolucionaria hab\xEDa penetrado en todos\ + \ los pa\xEDses y se hab\xEDa extendido m\xE1s o menos. Se desarroll\xF3 mucho\ + \ bajo el r\xE9gimen del despotismo militar de Bonaparte. Sus conquistas desplazaron\ + \ una serie de leyes, instituciones y costumbres; rompi\xF3 v\xEDnculos sagrados\ + \ entre todas las naciones, lo suficientemente fuertes como para resistir el\ + \ tiempo mismo; lo cual es m\xE1s de lo que se puede decir de ciertos beneficios\ + \ conferidos por estos innovadores. Los monarcas cumplir\xE1n los deberes que\ + \ les impone Aquel que, al confiarles el poder, les ha encargado velar por el\ + \ mantenimiento de la justicia y de los derechos de todos, de evitar los caminos\ + \ del error y de pisar con firmeza el camino del verdad. M\xE1s all\xE1 de las\ + \ pasiones que agitan la sociedad, es principalmente en los d\xEDas de prueba\ + \ cuando est\xE1n llamados a despojar las realidades de sus falsas apariencias\ + \ y a mostrarse tal como son, padres investidos de la autoridad que corresponde\ + \ por derecho a los cabezas de familia, para demostrar que, en los d\xEDas de\ + \ luto, saben ser justos, sabios y, por tanto, fuertes, y que no abandonar\xE1\ + n al pueblo que deber\xEDan gobernar para que sea el juego de las facciones,\ + \ al error y a sus consecuencias, que deben implican la p\xE9rdida de la sociedad.\ + \ La uni\xF3n entre los monarcas es la base de la pol\xEDtica que ahora debe\ + \ seguirse para salvar a la sociedad de la ruina total. . . . No confundan las\ + \ concesiones hechas a los partidos con el bien que deber\xEDan hacer a su pueblo,\ + \ modificando, seg\xFAn sus necesidades reconocidas, las ramas de la administraci\xF3\ + n que as\xED lo requieran. Que sean justos, pero fuertes; ben\xE9fico, pero\ + \ estricto. Que mantengan los principios religiosos en toda su pureza, y no\ + \ permitan que la fe sea atacada y la moral interpretada seg\xFAn el contrato\ + \ social o las visiones de tontos sectarios. Que supriman las sociedades secretas;\ + \ esa gangrena de la sociedad. \u2014Klemens von Metternich, Confesi\xF3n pol\xED\ + tica de fe, 1820 \xBFCu\xE1l de las siguientes fue la causa principal de los\ + \ temores expresados por Metternich en el documento anterior?" + - input_choice_list: + A: Capitalista + B: "Cient\xEDfico" + C: Comunista + D: existencialista + input_correct_responses: + - C + input_question: "Esta pregunta se refiere a la siguiente informaci\xF3n. En Rusia\ + \ no iba nada bien y [Souvarine] estaba desesperado por la noticia que hab\xED\ + a recibido. Todos sus antiguos compa\xF1eros se volv\xEDan hacia los pol\xED\ + ticos; los famosos nihilistas que hicieron temblar a Europa -hijos de curas\ + \ de aldea, de la clase media baja, de comerciantes- no pudieron elevarse por\ + \ encima de la idea de la liberaci\xF3n nacional, y parec\xEDan creer que el\ + \ mundo ser\xEDa liberado -cuando hab\xEDan matado a su d\xE9spota... "\xA1\ + Tonter\xEDas! Nunca saldr\xE1n de aqu\xED con sus tonter\xEDas." Luego,\ + \ bajando a\xFAn m\xE1s la voz, describi\xF3 con algunas palabras amargas su\ + \ viejo sue\xF1o de fraternidad. Hab\xEDa renunciado a su rango y a su fortuna;\ + \ hab\xEDa ido entre los trabajadores, s\xF3lo con la esperanza de ver por fin\ + \ los cimientos de una nueva sociedad de trabajo en com\xFAn. Todos los sueldos\ + \ que llevaba en los bolsillos hac\xEDa tiempo que hab\xEDan ido a parar a los\ + \ pilluelos del asentamiento; hab\xEDa sido tan tierno como un hermano con los\ + \ mineros, sonriendo ante sus sospechas, gan\xE1ndolos con sus maneras tranquilas\ + \ y trabajadoras y su aversi\xF3n a la charla. Pero decididamente la fusi\xF3\ + n no se hab\xEDa producido. Su voz cambi\xF3, sus ojos se iluminaron, fij\xF3\ + \ sus ojos en \xC9tienne, dirigi\xE9ndose directamente a \xE9l: "Ahora,\ + \ \xBFentiendes? Esos sombrereros de Marsella, que han ganado el gran premio\ + \ de la loter\xEDa de cien mil francos, se han ido inmediatamente a invertir\ + \ \xA1Declarando que van a vivir sin hacer nada! S\xED, esa es vuestra idea,\ + \ todos vosotros, trabajadores franceses: quer\xE9is desenterrar un tesoro para\ + \ devorarlo despu\xE9s solos en alg\xFAn rinc\xF3n perezoso y ego\xEDsta. Por\ + \ mucho que quieras contra los ricos, no tienes el valor suficiente para devolver\ + \ a los pobres el dinero que te trae la suerte. Nunca ser\xE1s digno de la felicidad\ + \ mientras poseas algo, y tu odio hacia los burgueses contin\xFAa. \xFAnicamente\ + \ por un furioso deseo de ser ustedes mismos burgueses en su lugar". \xE9\ + mile Zola, escritor franc\xE9s, Germinal, 1885 \xBFEl pasaje muestra la preocupaci\xF3\ + n directa por el bienestar de las clases trabajadoras que t\xEDpicamente era\ + \ parte de qu\xE9 movimiento?" + - input_choice_list: + A: "Sirvieron de catalizador para el crecimiento del transporte mar\xEDtimo\ + \ y del comercio exterior ingleses, pero hicieron poco para limitar las perspectivas\ + \ de los holandeses en el siglo XVII." + B: "Provocaron dificultades casi inmediatas para la econom\xEDa holandesa, ya\ + \ que su dominio del comercio exterior termin\xF3 r\xE1pidamente." + C: "Fueron rescindidos durante la restauraci\xF3n de los Estuardo porque buscaban\ + \ relaciones diplom\xE1ticas normales con los holandeses para no necesitar\ + \ el apoyo financiero del Parlamento para la guerra." + D: "Condujeron a casi un siglo de guerras recurrentes entre Inglaterra y los\ + \ Pa\xEDses Bajos, que no terminar\xEDan hasta despu\xE9s de la independencia\ + \ estadounidense." + input_correct_responses: + - A + input_question: "Esta pregunta se refiere a la siguiente informaci\xF3n. Los extractos\ + \ que aparecen a continuaci\xF3n pertenecen a las Leyes de Navegaci\xF3n de\ + \ 1651. [Despu\xE9s del primer d\xEDa de diciembre de mil seiscientos cincuenta\ + \ y uno, y desde all\xED en adelante, ning\xFAn bien o mercanc\xEDa alguna del\ + \ crecimiento, producci\xF3n o manufactura de Asia, \xC1frica o Estados Unidos,\ + \ o de cualquier parte del mismo; o de cualesquiera islas que les pertenezcan,\ + \ o que est\xE9n descritas o establecidas en los mapas o tarjetas habituales\ + \ de esos lugares, as\xED como de las plantaciones inglesas como otras, ser\xE1\ + n importadas o tra\xEDdas a esta Commonwealth de Inglaterra, o a Irlanda, o\ + \ cualquier otra tierra, isla, plantaci\xF3n o territorio de este Commonwealth\ + \ que pertenezca, o est\xE9 en su posesi\xF3n, en cualquier otro barco o barcos,\ + \ buque o buques de cualquier tipo, pero s\xF3lo en aquellos que verdaderamente\ + \ y sin fraude pertenezcan \xFAnicamente al pueblo de este Commonwealth , o\ + \ las plantaciones de los mismos, como propietarios o derechohabientes de los\ + \ mismos; y de los cuales el capit\xE1n y los marineros son tambi\xE9n del pueblo\ + \ de este Estado Libre Asociado, bajo pena de decomiso y p\xE9rdida de todos\ + \ los bienes que se importen en contra de esta ley, , , , [N]o bienes o mercanc\xED\ + as del crecimiento, La producci\xF3n o fabricaci\xF3n de Europa, o de cualquier\ + \ parte de ella, despu\xE9s del primer d\xEDa de diciembre de mil seiscientos\ + \ cincuenta y uno, ser\xE1 importada o tra\xEDda a esta Commonwealth de Inglaterra,\ + \ o a cualquier otra tierra o territorio de esta Commonwealth que pertenezca,\ + \ o en su posesi\xF3n, en cualquier barco o barcos, embarcaci\xF3n o embarcaciones\ + \ de cualquier tipo, pero en aquellos que verdaderamente y sin fraude pertenecen\ + \ \xFAnicamente al pueblo de esta Commonwealth, y en ning\xFAn otro, excepto\ + \ s\xF3lo aquellos barcos y embarcaciones extranjeras que verdaderamente y pertenecen\ + \ propiamente a la gente de ese pa\xEDs o lugar, del cual dichos bienes son\ + \ el cultivo, producci\xF3n o fabricaci\xF3n. \xBFCu\xE1l de las siguientes\ + \ describe mejor el resultado de las Leyes de Navegaci\xF3n de 1651?" + - input_choice_list: + A: "Dar al rey ingl\xE9s una nueva posici\xF3n de autoridad." + B: "Dar el puesto de jefe de la Iglesia de Inglaterra \xFAnicamente a Enrique\ + \ VIII y excluir a sus herederos." + C: "establecer el calvinismo como la \xFAnica teolog\xEDa verdadera en Inglaterra" + D: "poner fin a diversas formas de corrupci\xF3n que azotan a la Iglesia en\ + \ Inglaterra" + input_correct_responses: + - D + input_question: "Esta pregunta se refiere a la siguiente informaci\xF3n. Si bien\ + \ la Majestad del Rey es y debe ser, justa y leg\xEDtimamente, la cabeza suprema\ + \ de la Iglesia de Inglaterra, y as\xED lo reconoce el clero de este reino en\ + \ sus convocatorias, no obstante, para corroborarla y confirmarla, y para aumentar\ + \ la virtud en la religi\xF3n de Cristo dentro de este reino de Inglaterra,\ + \ y para reprimir y extirpar todos los errores, herej\xEDas y otras atrocidades\ + \ y abusos utilizados hasta ahora en el mismo, promulg\xE1ndose, por autoridad\ + \ del presente Parlamento, que el rey, nuestro se\xF1or soberano, sus herederos\ + \ y los sucesores, reyes de este reino, ser\xE1n tomados, aceptados y reputados\ + \ como la \xFAnica cabeza suprema en la tierra de la Iglesia de Inglaterra,\ + \ llamada Anglicans Ecclesia; y tendr\xE1 y disfrutar\xE1, anexada y unida a\ + \ la corona imperial de este reino, as\xED como el t\xEDtulo y estilo de la\ + \ misma, as\xED como todos los honores, dignidades, preeminencias, jurisdicciones,\ + \ privilegios, autoridades, inmunidades, ganancias y mercanc\xEDas a dicha dignidad\ + \ de el jefe supremo de la misma Iglesia perteneciente y perteneciente; y que\ + \ nuestro dicho se\xF1or soberano, sus herederos y sucesores, reyes de este\ + \ reino, tendr\xE1n pleno poder y autoridad de vez en cuando para visitar, reprimir,\ + \ reparar, registrar, ordenar, corregir, restringir y enmendar todos esos errores,\ + \ herej\xEDas, abusos, ofensas, desprecios y atrocidades, cualesquiera que sean,\ + \ que por cualquier tipo de autoridad o jurisdicci\xF3n espiritual deban o puedan\ + \ ser reformadas, reprimidas, ordenadas, reparadas, corregidas, restringidas\ + \ o enmendadas, para la mayor complacencia de Dios Todopoderoso, el aumento\ + \ de la virtud en la religi\xF3n de Cristo y la conservaci\xF3n de la paz, unidad\ + \ y tranquilidad de este reino; Sin perjuicio de cualquier uso, territorio extranjero,\ + \ autoridad extranjera, prescripci\xF3n o cualquier otra cosa o cosas que se\ + \ opongan al presente. Parlamento ingl\xE9s, Acta de Supremac\xEDa, 1534 Del\ + \ pasaje se puede inferir que el Parlamento ingl\xE9s deseaba argumentar que\ + \ el Acta de Supremac\xEDa" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_european_history +tag: mmlu_es_llama_humanities_tasks +task: mmlu_es_llama_high_school_european_history +task_alias: high_school_european_history diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_geography.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_geography.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4b5f2b2c3c46ccf574a3d9ee6ce1b0a9cd66d5b4 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_geography.yaml @@ -0,0 +1,59 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: tasa bruta de mortalidad a partir de la fecha bruta de nacimiento. + B: tasa bruta de natalidad a partir de la tasa bruta de mortalidad. + C: duplicar el tiempo respecto de la tasa bruta de natalidad. + D: tasa de fertilidad de la tasa bruta de mortalidad. + input_correct_responses: + - A + input_question: "La tasa de crecimiento natural de una poblaci\xF3n se encuentra\ + \ restando la" + - input_choice_list: + A: "Las tasas de natalidad aumentan y la tasa de crecimiento demogr\xE1fico\ + \ es menos r\xE1pida." + B: "Las tasas de natalidad disminuyen y la tasa de crecimiento demogr\xE1fico\ + \ es menos r\xE1pida." + C: "Las tasas de natalidad aumentan y la tasa de crecimiento demogr\xE1fico\ + \ aumenta." + D: "Las tasas de natalidad disminuyen y la tasa de crecimiento demogr\xE1fico\ + \ aumenta." + input_correct_responses: + - B + input_question: "Durante la tercera etapa del modelo de transici\xF3n demogr\xE1\ + fica, \xBFcu\xE1l de las siguientes afirmaciones es cierta?" + - input_choice_list: + A: "La duplicaci\xF3n de esfuerzos ocurre con frecuencia." + B: Los problemas sociales del centro de la ciudad se extienden a los suburbios + residenciales circundantes. + C: "La ineficiencia en la prestaci\xF3n de servicios ocurre con frecuencia." + D: "Los esfuerzos de un vecindario para reducir la contaminaci\xF3n siempre\ + \ cuentan con el apoyo de las comunidades vecinas." + input_correct_responses: + - D + input_question: "\xBFCu\xE1l de las siguientes afirmaciones NO es exacta con respecto\ + \ a los servicios prestados por los gobiernos locales en los Estados Unidos?" + - input_choice_list: + A: "subcontrataci\xF3n." + B: "deslocalizaci\xF3n." + C: maquiladoras. + D: interdependencia local. + input_correct_responses: + - B + input_question: "La pr\xE1ctica de contratar a un tercero proveedor de servicios\ + \ extranjero para realizar una operaci\xF3n se denomina" + - input_choice_list: + A: "jab\xF3n de paloma" + B: barra de chocolate paloma + C: "s\xEDmbolo de la paloma" + D: "Una paloma (p\xE1jaro)" + input_correct_responses: + - C + input_question: "\xBFCu\xE1l de los siguientes elementos es un ejemplo de cultura\ + \ no material?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_geography +tag: mmlu_es_llama_social_sciences_tasks +task: mmlu_es_llama_high_school_geography +task_alias: high_school_geography diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_government_and_politics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_government_and_politics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8133cc575564b435ba0fc7ae7a1dd64d99c1f0ea --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_government_and_politics.yaml @@ -0,0 +1,62 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "la definici\xF3n constitucional de esos poderes es amplia e inespec\xED\ + fica" + B: "la mayor\xEDa de la gente est\xE1 de acuerdo en que la Constituci\xF3n impone\ + \ demasiados l\xEDmites al poder presidencial" + C: "La Corte Suprema se niega sistem\xE1ticamente a pronunciarse sobre casos\ + \ relacionados con los poderes presidenciales." + D: Las enmiendas constitucionales han aumentado considerablemente los poderes + presidenciales. + input_correct_responses: + - A + input_question: "La incertidumbre sobre los l\xEDmites del poder presidencial\ + \ se debe principalmente al hecho de que" + - input_choice_list: + A: "aumento anual del gasto federal en el ej\xE9rcito" + B: importe de los intereses de la deuda nacional + C: diferencia entre las propuestas presupuestarias iniciales hechas por el presidente + y el Congreso + D: cantidad que el gobierno gasta por encima de sus ingresos + input_correct_responses: + - D + input_question: "El t\xE9rmino "d\xE9ficit presupuestario" se refiere\ + \ a la" + - input_choice_list: + A: Semanas contra Estados Unidos + B: Betts contra Brady + C: Mapp contra Ohio + D: Miranda contra Arizona + input_correct_responses: + - D + input_question: "\xBFCu\xE1l de los siguientes casos sent\xF3 el precedente de\ + \ que se debe informar al acusado sobre su derecho a guardar silencio, el derecho\ + \ a un abogado y la protecci\xF3n contra la autoincriminaci\xF3n?" + - input_choice_list: + A: Son establecidos por el poder legislativo. + B: Sus miembros a menudo no tienen mucha influencia sobre las decisiones presidenciales. + C: "No todos pueden estar dirigidos por l\xEDderes que pertenezcan al mismo\ + \ partido pol\xEDtico que el presidente." + D: No todas las agencias federales son departamentos del gabinete. + input_correct_responses: + - C + input_question: "\xBFCu\xE1l de las siguientes afirmaciones sobre los departamentos\ + \ del gabinete es FALSA?" + - input_choice_list: + A: "Los pol\xEDticos honestos pueden impedir que se desarrollen facciones." + B: "Es m\xE1s probable que se produzcan facciones en rep\xFAblicas grandes que\ + \ en las peque\xF1as." + C: Los efectos negativos del faccionalismo pueden reducirse mediante un gobierno + republicano. + D: Las elecciones libres son la mejor defensa del pueblo contra el faccionalismo. + input_correct_responses: + - C + input_question: "\xBFCu\xE1l de las siguientes afirmaciones expresa mejor un argumento\ + \ presentado por James Madison en The Federalist n\xFAmero 10?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_government_and_politics +tag: mmlu_es_llama_social_sciences_tasks +task: mmlu_es_llama_high_school_government_and_politics +task_alias: high_school_government_and_politics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_macroeconomics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_macroeconomics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..23d5e634340e28f1052e0019ec519d9399e41658 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_macroeconomics.yaml @@ -0,0 +1,54 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "El ej\xE9rcito estadounidense abre una nueva base en un pa\xEDs extranjero\ + \ con 1.000 efectivos estadounidenses." + B: Los consumidores japoneses compran miles de CD producidos en Estados Unidos. + C: "Un cantante pop estadounidense ofrece un concierto con entradas agotadas\ + \ en Par\xEDs." + D: "Una producci\xF3n teatral francesa recorre decenas de ciudades americanas." + input_correct_responses: + - C + input_question: "\xBFCu\xE1l de los siguientes no est\xE1 incluido en el PIB de\ + \ EE. UU.?" + - input_choice_list: + A: "relaci\xF3n directa entre desempleo e inflaci\xF3n" + B: "relaci\xF3n directa entre precio y cantidad demandada" + C: "relaci\xF3n inversa entre precio y cantidad demandada" + D: "relaci\xF3n inversa entre desempleo e inflaci\xF3n" + input_correct_responses: + - D + input_question: La curva de Phillips de corto plazo indica una + - input_choice_list: + A: las exportaciones superan a las importaciones. + B: las importaciones superan a las exportaciones. + C: "La recaudaci\xF3n de impuestos federales supera el gasto." + D: el gasto federal excede los ingresos fiscales federales. + input_correct_responses: + - D + input_question: "Un d\xE9ficit federal ocurre cuando" + - input_choice_list: + A: Aumentar la tasa de descuento + B: Aumentar el ratio de reservas + C: Comprar valores gubernamentales + D: Bajar aranceles + input_correct_responses: + - C + input_question: "Manteniendo todo lo dem\xE1s igual, \xBFcu\xE1l de las siguientes\ + \ pol\xEDticas monetarias se utilizar\xEDa para impulsar las exportaciones estadounidenses?" + - input_choice_list: + A: Un aumento en la oferta monetaria + B: Aumento del gasto gubernamental + C: "Reducir los impuestos a la investigaci\xF3n y el desarrollo de nuevas tecnolog\xED\ + as" + D: "Impuestos m\xE1s altos sobre los ingresos de los hogares" + input_correct_responses: + - C + input_question: "\xBFCu\xE1l de las siguientes pol\xEDticas describe mejor la\ + \ pol\xEDtica fiscal del lado de la oferta?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_macroeconomics +tag: mmlu_es_llama_social_sciences_tasks +task: mmlu_es_llama_high_school_macroeconomics +task_alias: high_school_macroeconomics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e145b14eec38259581622cd4a8acf4f39379a92d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_mathematics.yaml @@ -0,0 +1,61 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: '3' + B: '15' + C: '6' + D: '5' + input_correct_responses: + - B + input_question: "Joe estaba a cargo de las luces de un baile. La luz roja parpadea\ + \ cada dos segundos, la luz amarilla cada tres segundos y la luz azul cada cinco\ + \ segundos. Si incluimos el principio y el final del baile, \xBFcu\xE1ntas veces\ + \ durante un baile de siete minutos se encender\xE1n todas las luces al mismo\ + \ tiempo? (Supongamos que las tres luces parpadean simult\xE1neamente al comienzo\ + \ del baile)." + - input_choice_list: + A: '12' + B: '1' + C: '30' + D: '5' + input_correct_responses: + - C + input_question: "Cinco mil d\xF3lares compuestos anualmente a una tasa de inter\xE9\ + s de $x\\%$ tardan seis a\xF1os en duplicarse. Con la misma tasa de inter\xE9\ + s, \xBFcu\xE1ntos a\xF1os tardar\xE1n $\\$300$ en crecer hasta $\\$9600$?" + - input_choice_list: + A: '-1' + B: "diecis\xE9is" + C: -\frac{1}{256} + D: \frac{1}{16} + input_correct_responses: + - C + input_question: "La variable $x$ var\xEDa directamente con el cuadrado de $y$,\ + \ y $y$ var\xEDa directamente con el cubo de $z$. Si $x$ es igual a $-16$ cuando\ + \ $z$ es igual a 2, \xBFcu\xE1l es el valor de $x$ cuando $z$ es igual a $\\\ + frac{1}{2}$?" + - input_choice_list: + A: \frac{3\sqrt{3}}{3} + B: \frac{1}{3} + C: \sqrt{3} + D: \frac{\sqrt{3}}{3} + input_correct_responses: + - D + input_question: 'Simplifica y escribe el resultado con un denominador racional: + $$\sqrt{\sqrt[3]{\sqrt{\frac{1}{729}}}}$$' + - input_choice_list: + A: '55' + B: '60' + C: '62' + D: sesenta y cinco + input_correct_responses: + - D + input_question: "Diez estudiantes toman un examen de biolog\xEDa y reciben los\ + \ siguientes puntajes: 45, 55, 50, 70, 65, 80, 40, 90, 70, 85. \xBFCu\xE1l es\ + \ la media de los puntajes de los ex\xE1menes de los estudiantes?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_mathematics +tag: mmlu_es_llama_stem_tasks +task: mmlu_es_llama_high_school_mathematics +task_alias: high_school_mathematics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_microeconomics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_microeconomics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..62e91fa2f0999e24c906d00b670097a4fae3af6f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_microeconomics.yaml @@ -0,0 +1,53 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Un salario m\xEDnimo efectivo impuesto a este mercado laboral." + B: Un aumento en el precio de los galones de pintura. + C: "Un aumento en la construcci\xF3n de nuevas viviendas." + D: "Un aumento en el precio de los pintores mec\xE1nicos siempre que el efecto\ + \ producci\xF3n supere el efecto sustituci\xF3n." + input_correct_responses: + - C + input_question: "En un mercado laboral competitivo para pintores de casas, \xBF\ + cu\xE1l de las siguientes opciones aumentar\xEDa la demanda de pintores de casas?" + - input_choice_list: + A: "la demanda del producto aumentar\xE1" + B: "La demanda del producto disminuir\xE1." + C: "el excedente del consumidor aumentar\xE1" + D: "el excedente del consumidor disminuir\xE1" + input_correct_responses: + - C + input_question: Si el gobierno subsidia a los productores en un mercado perfectamente + competitivo, entonces + - input_choice_list: + A: '0' + B: '5' + C: '10' + D: '100' + input_correct_responses: + - D + input_question: "La relaci\xF3n de concentraci\xF3n de un monopolio es" + - input_choice_list: + A: "El precio m\xEDnimo desplaza la curva de demanda hacia la izquierda." + B: Un piso efectivo crea una escasez del bien. + C: "El precio m\xEDnimo desplaza la curva de oferta del bien hacia la derecha." + D: Para que sea un piso efectivo, debe fijarse por encima del precio de equilibrio. + input_correct_responses: + - D + input_question: "\xBFCu\xE1l de las siguientes afirmaciones es cierta respecto\ + \ del precio m\xEDnimo?" + - input_choice_list: + A: Entrada y salida gratuita del mercado + B: Algunos grandes productores + C: Un productor de un bien sin sustitutos cercanos. + D: "Un producto homog\xE9neo" + input_correct_responses: + - B + input_question: "\xBFCu\xE1l de las siguientes es necesariamente una caracter\xED\ + stica del oligopolio?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_microeconomics +tag: mmlu_es_llama_social_sciences_tasks +task: mmlu_es_llama_high_school_microeconomics +task_alias: high_school_microeconomics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d9aaf2bb3869f045f331ba62725c34d1642921f5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_physics.yaml @@ -0,0 +1,64 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: solo yo y ii + B: Solo I y III + C: "S\xF3lo II y III" + D: solo III + input_correct_responses: + - D + input_question: "\xBFCu\xE1l de las siguientes condiciones asegurar\xE1 que se\ + \ conserve el momento angular? I. Conservaci\xF3n del momento lineal II. Fuerza\ + \ externa neta cero III. Par externo neto cero" + - input_choice_list: + A: "La presi\xF3n est\xE1 en un nodo, pero el desplazamiento de part\xEDculas\ + \ est\xE1 en un antinodo." + B: "La presi\xF3n est\xE1 en un antinodo, pero el desplazamiento de part\xED\ + culas est\xE1 en un nodo." + C: "La presi\xF3n y el desplazamiento de part\xEDculas est\xE1n ambos en los\ + \ nodos." + D: "La presi\xF3n y el desplazamiento de part\xEDculas est\xE1n ambos en los\ + \ antinodos." + input_correct_responses: + - B + input_question: "Un tubo lleno de aire est\xE1 cerrado por un extremo. Se produce\ + \ una onda estacionaria en la tuber\xEDa, lo que hace que \xE9sta suene una\ + \ nota. \xBFCu\xE1l de las siguientes es una afirmaci\xF3n correcta sobre las\ + \ propiedades de la onda en el extremo cerrado de la tuber\xEDa?" + - input_choice_list: + A: 02 A.M + B: 6:00 AM + C: 12:00 A.M + D: 24A + input_correct_responses: + - D + input_question: "Una fotoc\xE9lula de funci\xF3n de trabajo \u03D5 = 2eV est\xE1\ + \ conectada a una resistencia en serie. Una luz de frecuencia f = 1 \xD7 10^15\ + \ Hz incide en una placa met\xE1lica de la fotoc\xE9lula. Si la potencia de\ + \ la luz es P = 100 W, \xBFcu\xE1l es la corriente que pasa por la resistencia?" + - input_choice_list: + A: 10W + B: 30 vatios + C: 60W + D: 240W + input_correct_responses: + - D + input_question: "Un horno microondas est\xE1 conectado a un tomacorriente de 120\ + \ V y consume una corriente de 2 amperios. \xBFA qu\xE9 tasa utiliza energ\xED\ + a el horno microondas?" + - input_choice_list: + A: 3,5 J + B: 6,0 J + C: 22,5J + D: 40J + input_correct_responses: + - B + input_question: "Una carga puntual, Q = +1 mC, est\xE1 fija en el origen. \xBF\ + Cu\xE1nto trabajo se requiere para mover una carga, Q = +8 \xB5C, desde el punto\ + \ (0, 4 metros) al punto (3 metros, 0)?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_physics +tag: mmlu_es_llama_stem_tasks +task: mmlu_es_llama_high_school_physics +task_alias: high_school_physics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_psychology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_psychology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..93e7d1692af7586de490c16cfdb0a6c7effc52d5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_psychology.yaml @@ -0,0 +1,64 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "un supery\xF3 fuerte." + B: baja autoestima. + C: baja autoeficacia. + D: un locus de control interno. + input_correct_responses: + - D + input_question: "Ani cree que sus actitudes y comportamiento juegan un papel central\ + \ en lo que le sucede. Es probable que esta creencia est\xE9 asociada con" + - input_choice_list: + A: Identificar las causas y soluciones de los problemas que presenta el cliente. + B: Identificar y eliminar las causas de las dificultades del consultado para + manejar un problema. + C: "Establecer una jerarqu\xEDa de autoridad para permitir una toma de decisiones\ + \ eficaz." + D: "Presentar un curso de acci\xF3n \xFAnico, bien definido e inequ\xEDvoco\ + \ para que el consultor supere los d\xE9ficits de habilidades." + input_correct_responses: + - B + input_question: "Seg\xFAn el modelo de consulta de casos centrado en el consultado\ + \ de Caplan, el consultor est\xE1 interesado principalmente en" + - input_choice_list: + A: "Los mensajes se env\xEDan desde el t\xE1lamo directamente a la am\xEDgdala." + B: "Los mensajes se env\xEDan desde el t\xE1lamo a las v\xEDas del "qu\xE9\ + " y del "d\xF3nde"." + C: "Los mensajes se env\xEDan desde el sistema nervioso parasimp\xE1tico a la\ + \ corteza cerebral." + D: "Los mensajes se env\xEDan desde los l\xF3bulos frontales a la gl\xE1ndula\ + \ pituitaria." + input_correct_responses: + - A + input_question: "Mientras nada en el oc\xE9ano, Iv\xE1n se asusta al ver una sombra\ + \ oscura en el agua incluso antes de que tenga la oportunidad de identificar\ + \ qu\xE9 es la sombra. \xBFCu\xE1l de las siguientes opciones describe mejor\ + \ las conexiones sin\xE1pticas que tienen lugar durante este incidente de miedo?" + - input_choice_list: + A: "Dale al ni\xF1o un per\xEDodo de prueba en el nuevo entorno." + B: Notificar a los padres por escrito. + C: "Obtener la aprobaci\xF3n de la junta escolar" + D: Obtener el consentimiento de los padres + input_correct_responses: + - B + input_question: "De acuerdo con la Ley de Mejoramiento de la Educaci\xF3n para\ + \ Individuos con Discapacidades, \xBFcu\xE1l de las siguientes debe hacer una\ + \ agencia educativa antes de cambiar la ubicaci\xF3n educativa de un estudiante\ + \ con una discapacidad?" + - input_choice_list: + A: sociocultural + B: "cl\xEDnico" + C: cognitivo + D: conductista + input_correct_responses: + - C + input_question: "Pascale est\xE1 interesada en las estrategias de procesamiento\ + \ que utilizan los ni\xF1os para aprender nueva informaci\xF3n. \xBFEn qu\xE9\ + \ tipo de psic\xF3loga se clasificar\xEDa mejor a Pascale?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_psychology +tag: mmlu_es_llama_social_sciences_tasks +task: mmlu_es_llama_high_school_psychology +task_alias: high_school_psychology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_statistics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_statistics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d82d5c1629889bb2e12a0505eec1c1efbe8a2df6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_statistics.yaml @@ -0,0 +1,75 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Si la pendiente de la recta de regresi\xF3n es exactamente 1, entonces la\ + \ correlaci\xF3n es exactamente 1." + B: "Si la correlaci\xF3n es 0, entonces la pendiente de la recta de regresi\xF3\ + n no est\xE1 definida." + C: "Cambiar qu\xE9 variable se llama x y cu\xE1l se llama y cambia el signo\ + \ de la correlaci\xF3n." + D: "La correlaci\xF3n r es igual a la pendiente de la l\xEDnea de regresi\xF3\ + n cuando las puntuaciones z de la variable y se trazan frente a las puntuaciones\ + \ z de la variable x." + input_correct_responses: + - D + input_question: "\xBFCu\xE1l de las siguientes es una afirmaci\xF3n correcta sobre\ + \ la correlaci\xF3n?" + - input_choice_list: + 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: "No hay informaci\xF3n suficiente para responder a esta pregunta." + input_correct_responses: + - D + input_question: "Supongamos que X e Y son variables aleatorias con E(X) = 37,\ + \ var(X) = 5, E(Y) = 62 y var(Y) = 12. \xBFCu\xE1les son el valor esperado y\ + \ la varianza de la variable aleatoria X +? \xBFY?" + - input_choice_list: + A: "La proporci\xF3n de \xE1rboles que sufrieron m\xE1s del 50 por ciento de\ + \ da\xF1os debido a las heladas." + B: "El n\xFAmero de \xE1rboles afectados por las heladas." + C: "El n\xFAmero de \xE1rboles muestreados de la arboleda." + D: "Para cada \xE1rbol muestreado, si sufri\xF3 m\xE1s del 50 por ciento de\ + \ da\xF1o o como m\xE1ximo un 50 por ciento de da\xF1o." + input_correct_responses: + - D + input_question: "Despu\xE9s de que se emitiera una advertencia de heladas, el\ + \ propietario de un gran huerto de naranjos pidi\xF3 a sus trabajadores que\ + \ rociaran todos sus \xE1rboles con agua. Se supon\xEDa que el agua se congelar\xED\ + a y formar\xEDa una capa protectora de hielo alrededor de la flor de naranjo.\ + \ Sin embargo, el propietario sospechaba que algunos \xE1rboles hab\xEDan sufrido\ + \ da\xF1os considerables debido a las heladas. Para estimar la proporci\xF3\ + n de \xE1rboles que sufrieron m\xE1s del 50 por ciento de da\xF1os debido a\ + \ las heladas, tom\xF3 una muestra aleatoria de 100 \xE1rboles de su arboleda.\ + \ \xBFCu\xE1l es la variable de respuesta en este experimento?" + - input_choice_list: + A: "Media 518 gramos; desviaci\xF3n est\xE1ndar 7,0 gramos" + B: "Media 518 gramos; desviaci\xF3n est\xE1ndar 3,5 gramos" + C: "Media 518 gramos; desviaci\xF3n est\xE1ndar 6,1 gramos" + D: "Media 394 gramos; desviaci\xF3n est\xE1ndar 6,1 gramos" + input_correct_responses: + - C + input_question: "Un nuevo reloj inteligente se fabrica en una parte de una f\xE1\ + brica y luego se asegura para su env\xEDo en otra parte independiente de la\ + \ f\xE1brica. El peso del reloj inteligente tiene una media de 62 gramos y una\ + \ desviaci\xF3n est\xE1ndar de 1,0 gramos. El peso del embalaje (caja, gu\xED\ + a de usuario, pl\xE1stico de burbujas, etc.) tiene una media de 456 gramos y\ + \ una desviaci\xF3n est\xE1ndar de 6 gramos. En conjunto, la distribuci\xF3\ + n del peso del reloj inteligente y su embalaje tendr\xEDa la siguiente media\ + \ y desviaci\xF3n est\xE1ndar:" + - input_choice_list: + A: yo, yo + B: II, III + C: III, yo + D: III,II + input_correct_responses: + - D + input_question: "\xBFCu\xE1l de los siguientes conjuntos tiene la desviaci\xF3\ + n est\xE1ndar m\xE1s peque\xF1a? \xBFCu\xE1l tiene el mayor? Yo: {1,2,3} II:\ + \ {-10,10} III: {100}" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_statistics +tag: mmlu_es_llama_stem_tasks +task: mmlu_es_llama_high_school_statistics +task_alias: high_school_statistics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_us_history.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_us_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..56fe004ff3b23ccfdb075169ad6ebcd3b700627c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_us_history.yaml @@ -0,0 +1,168 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Respuesta organizada a la rebeli\xF3n de Bacon" + B: "Respuesta federal a la rebeli\xF3n de Shays" + C: "Respuesta federal a la rebeli\xF3n del whisky" + D: "Respuesta federal a la rebeli\xF3n de Pontiac" + input_correct_responses: + - C + input_question: "Esta pregunta se refiere a la siguiente informaci\xF3n. "La\ + \ sociedad en todos los estados es una bendici\xF3n, pero el gobierno, incluso\ + \ en su mejor estado, no es m\xE1s que un mal necesario; en su peor estado,\ + \ un mal intolerable; porque cuando sufrimos o estamos expuestos a las mismas\ + \ miserias por parte de un gobierno, que podr\xEDamos esperar En un pa\xEDs\ + \ sin gobierno, nuestra calamidad se acent\xFAa al pensar que nosotros proporcionamos\ + \ los medios por los cuales sufrimos. El gobierno, como la vestimenta, es la\ + \ insignia de la inocencia perdida; los palacios de los reyes est\xE1n construidos\ + \ sobre las ruinas de las glorietas del para\xEDso. Si los impulsos de la conciencia\ + \ fueran claros, uniformes e irresistiblemente obedecidos, el hombre no necesitar\xED\ + a otro legislador; pero no siendo ese el caso, considera necesario renunciar\ + \ a una parte de su propiedad para proporcionar medios para la protecci\xF3\ + n del resto; y Esto lo induce a hacer la misma prudencia que en todos los dem\xE1\ + s casos le aconseja elegir entre dos males el menor, por lo que, siendo la seguridad\ + \ el verdadero designio y fin del gobierno, se sigue incontestablemente que\ + \ cualquier forma de ella que parezca m\xE1s probable para asegurar Para nosotros,\ + \ con el menor gasto y el mayor beneficio, es preferible a todos los dem\xE1\ + s." Thomas Paine, Common Sense, 1776 \xBFCu\xE1les de las siguientes "miserias"\ + \ mencionadas anteriormente fueron las m\xE1s condenadas por los antifederalistas\ + \ de la era posrevolucionaria?" + - input_choice_list: + A: "Tensiones entre las pol\xEDticas brit\xE1nicas y las aspiraciones de los\ + \ colonos norteamericanos." + B: "Tensiones entre los indios americanos aliados de los franceses y los aliados\ + \ de los brit\xE1nicos." + C: Tensiones entre afroamericanos liberados y plantadores blancos. + D: "Tensiones entre los colonos del interior del pa\xEDs y las \xE9lites dentro\ + \ de la Am\xE9rica colonial." + input_correct_responses: + - D + input_question: "Esta pregunta se refiere a la siguiente informaci\xF3n. "Dado\ + \ que nuestra \xFAltima conducta en Conestoga Manor y Lancaster ha ocasionado\ + \ mucha especulaci\xF3n y una gran diversidad de sentimientos en este y los\ + \ gobiernos vecinos; algunos lo reivindican y otros lo condenan; algunos alivian\ + \ caritativamente el crimen y otros lo pintan maliciosamente de la manera m\xE1\ + s odiosa y Colores detestables, creemos que es nuestro deber exponer ante el\ + \ p\xFAblico todo el asunto tal como nos apareci\xF3, y todav\xEDa nos aparece...\ + \ "Si estas cosas no son suficientes para probar un apego injustificable\ + \ de los cu\xE1queros a los indios salvajes , una firme resoluci\xF3n de hacerse\ + \ amigo de ellos y una total insensibilidad ante las angustias humanas, consideremos\ + \ algunos hechos m\xE1s recientes. Cuando el verano pasado descubrimos que probablemente\ + \ no recibir\xEDamos ayuda del gobierno, algunos voluntarios salieron a nuestra\ + \ costa, decididos a expulsar a nuestros enemigos de nuestras fronteras; Y cuando\ + \ llegamos cerca de la gran isla, entendimos que varios de sus guerreros hab\xED\ + an salido contra nuestras fronteras. Luego de esto regresamos, nos reunimos\ + \ con ellos y luchamos con ellos en Munfey Hill, donde perdimos a algunos de\ + \ nuestros hombres y matamos a algunos de sus guerreros y as\xED salvamos nuestras\ + \ fronteras de esta historia en otra expedici\xF3n. Pero tan pronto como destruimos\ + \ sus provisiones en la gran isla y arruinamos su comercio con la buena gente\ + \ de Bel\xE9n, estos mismos indios, de quienes se sospechaba con raz\xF3n que\ + \ hab\xEDan asesinado a nuestros amigos en el condado de Northampton, fueron\ + \ apresados por la influencia de algunos cu\xE1queros. bajo la protecci\xF3\ + n del gobierno para protegerlos de los resentimientos de los amigos y parientes\ + \ de los asesinados, y para apoyarlos durante el invierno". \u2014"Apology\ + \ of the Paxton Boys" (folleto), 1764 (Nota: "apology" en (Este\ + \ contexto debe leerse como una explicaci\xF3n, no como una admisi\xF3n de culpa\ + \ o arrepentimiento). \xBFCu\xE1les de las tensiones actuales durante el per\xED\ + odo colonial de la historia estadounidense reflejan los sentimientos expresados\ + \ en la explicaci\xF3n anterior?" + - input_choice_list: + A: la Enmienda de Igualdad de Derechos + B: sufragio universal + C: derechos de los estados + D: "prohibici\xF3n" + input_correct_responses: + - B + input_question: "Esta pregunta se refiere a la siguiente informaci\xF3n. "En\ + \ el nuevo C\xF3digo de Leyes que supongo ser\xE1 necesario que hagas, deseo\ + \ que recuerdes a las Damas y seas m\xE1s generoso y favorable con ellas que\ + \ tus antepasados. No pongas tal poder ilimitado en manos de los Esposos. .\ + \ Recuerde que todos los Hombres ser\xEDan tiranos si pudieran. Si no se presta\ + \ especial cuidado y atenci\xF3n a las Damas, estamos decididos a fomentar una\ + \ Rebeli\xF3n, y no nos obligaremos a ninguna Ley en la que no tengamos voz\ + \ o Representaci\xF3n." Abigail Adams, en una carta a John Adams, 1776:\ + \ "La legislaci\xF3n especial para la mujer nos ha colocado en una posici\xF3\ + n de lo m\xE1s an\xF3mala. Las mujeres investidas de los derechos de los ciudadanos\ + \ en una secci\xF3n (votantes, jurados, funcionarios) que cruzan una l\xEDnea\ + \ imaginaria, son sujetos en el siguiente. En algunos estados, una mujer casada\ + \ puede poseer propiedades y realizar negocios en su propio nombre; en otros,\ + \ sus ganancias pertenecen a su marido. En algunos estados, una mujer puede\ + \ testificar contra su marido, demandar y ser demandada en ante los tribunales;\ + \ en otros, no tiene reparaci\xF3n en caso de da\xF1o a la persona, a la propiedad\ + \ o al car\xE1cter. En caso de divorcio por causa de adulterio del marido, se\ + \ considera que la esposa inocente no posee ning\xFAn derecho a los hijos o\ + \ a la propiedad, a menos que por decreto especial del tribunal. Pero en ning\xFA\ + n Estado de la Uni\xF3n la esposa tiene derecho a su propia persona, o a cualquier\ + \ parte de las ganancias conjuntas de la sociedad durante la vida de su marido.\ + \ En algunos Estados las mujeres pueden entrar en el facultades de derecho y\ + \ ejercer en los tribunales; en otros est\xE1n prohibidos. En algunas universidades,\ + \ las ni\xF1as disfrutan de las mismas ventajas educativas que los ni\xF1os,\ + \ mientras que muchas de las instituciones m\xE1s orgullosas del pa\xEDs les\ + \ niegan la admisi\xF3n, aunque los hijos de China, Jap\xF3n y \xC1frica son\ + \ bienvenidos all\xED. Pero los privilegios ya concedidos en los distintos estados\ + \ no son en modo alguno seguros." Susan B. Anthony, "Declaraci\xF3\ + n de derechos para la mujer", 4 de julio de 1876. Los sentimientos expresados\ + \ en el segundo extracto de Susan B. Anthony probablemente apoyen de" + - input_choice_list: + A: "Los estadounidenses deben maximizar su ventaja tecnol\xF3gica en Vietnam." + B: "Los bombardeos estadounidenses en Vietnam est\xE1n llevando paso a paso\ + \ al progreso de la guerra." + C: Los bombardeos estadounidenses en Vietnam son un fracaso. + D: Estados Unidos no debe ceder al derrotismo respecto de la guerra de Vietnam. + input_correct_responses: + - C + input_question: "Esta pregunta se refiere a la siguiente informaci\xF3n. Nuestros\ + \ l\xEDderes hablan de detener la agresi\xF3n desde el norte, pero esto era\ + \ una lucha entre grupos de vietnamitas hasta que intervinimos. Parecemos decididos\ + \ a salvar a los vietnamitas de Ho Chi Minh incluso si para ello tenemos que\ + \ matarlos y demoler su pa\xEDs. Mientras los nativos contemplan las aldeas\ + \ bombardeadas, las mujeres y los ni\xF1os quemados con napalm, los cultivos\ + \ de arroz destruidos y las ciudades invadidas por nuestro personal militar,\ + \ sin duda est\xE1n diciendo en secreto de las guerrillas del Vietcong y de\ + \ las fuerzas estadounidenses: "Una plaga en sus dos casas". ".\ + \ \u2026 Detener los bombardeos, al norte y al sur, poner fin a las operaciones\ + \ ofensivas de b\xFAsqueda y destrucci\xF3n, y limitar nuestra acci\xF3n militar\ + \ a mantener operaciones sobre el terreno. Los bombardeos en el norte no han\ + \ logrado detener ni controlar seriamente el flujo de tropas hacia el sur y,\ + \ de hecho, pueden haber provocado un esfuerzo b\xE9lico mucho mayor por parte\ + \ de Hanoi. \u2014Senador George McGovern, "The Lessons of Vietnam",\ + \ 25 de abril de 1967 \xBFCu\xE1l de las siguientes opiniones de la d\xE9cada\ + \ de 1960 refleja m\xE1s directamente la perspectiva del discurso de George\ + \ McGovern?" + - input_choice_list: + A: Abigail Adams + B: "Clara Bart\xF3n" + C: Shirley Temple + D: Hillary Clinton + input_correct_responses: + - B + input_question: "Esta pregunta se refiere a la siguiente informaci\xF3n. No vengo\ + \ a instar reclamos personales, ni a buscar beneficios individuales; Aparezco\ + \ como abogado de aquellos que no pueden defender su propia causa; Vengo como\ + \ amigo de aquellos que est\xE1n abandonados, oprimidos y desolados. En la Providencia\ + \ de Dios, soy la voz del man\xEDaco cuyos gritos desgarradores desde las l\xFA\ + gubres mazmorras de vuestras c\xE1rceles no penetran en vuestras Salas de Legislaci\xF3\ + n. Soy la Esperanza de los pobres seres enloquecidos que suspiran en las celdas,\ + \ los establos, las jaulas y los cuartos bald\xEDos de vuestras casas de pobres.\ + \ Soy la Revelaci\xF3n de cientos de criaturas que lloran y sufren, escondidas\ + \ en vuestras moradas privadas, en corrales y caba\xF1as, excluidas, aisladas\ + \ de toda influencia curativa, de toda preocupaci\xF3n restauradora de la mente...\ + \ \xBFPodr\xEDan difundirse ante vosotros sus melanc\xF3licas historias? como\ + \ se le revel\xF3 a mi esp\xEDritu afligido durante los \xFAltimos tres meses,\ + \ con qu\xE9 prontitud y con qu\xE9 seriedad buscar\xEDas los medios de alivio\ + \ m\xE1s aprobados; \xA1Cu\xE1n insignificantes, en comparaci\xF3n, parecer\xED\ + an los sacrificios que os piden que hag\xE1is! \xBFC\xF3mo unas pocas monedas\ + \ de diez centavos y d\xF3lares, recaudados de cada ciudadano, disminuir\xED\ + an de valor como posesi\xF3n, en comparaci\xF3n con los ciertos beneficios y\ + \ el vasto bien que se asegurar\xEDa a los dementes que sufren... mediante la\ + \ consagraci\xF3n y aplicaci\xF3n de un fondo suficiente para la construcci\xF3\ + n? de un hospital adecuado... \u2014Dorothea Dix, Memorial Soliciting a State\ + \ Hospital for the Protection and Cure of the Insane, presentado a la Asamblea\ + \ General de Carolina del Norte, noviembre de 1848 \xBFCon qui\xE9n se puede\ + \ comparar mejor a Dorothea Dix?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_us_history +tag: mmlu_es_llama_humanities_tasks +task: mmlu_es_llama_high_school_us_history +task_alias: high_school_us_history diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_world_history.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_world_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f74cdec63a6e7e27c9e7dac4c3a1cc4d14cdda6e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_high_school_world_history.yaml @@ -0,0 +1,108 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: hinduismo + B: Budismo + C: "sinto\xEDsmo" + D: zoroastrismo + input_correct_responses: + - A + input_question: "Esta pregunta se refiere a la siguiente informaci\xF3n. \xC9\ + l contiene todas las obras y deseos y todos los perfumes y todos los gustos.\ + \ \xC9l envuelve todo el universo y en silencio ama a todos. Este es el Esp\xED\ + ritu que est\xE1 en mi coraz\xF3n, este es Brahman. A \xE9l vendr\xE9 cuando\ + \ pase m\xE1s all\xE1 de esta vida, y a \xE9l vendr\xE1 el que tenga fe y no\ + \ dude. \u2014Los Upanishads, India, c. 1000 a. C. \xBFA qu\xE9 religi\xF3n\ + \ pertenece m\xE1s probablemente el hablante?" + - input_choice_list: + A: "La revoluci\xF3n industrial" + B: "Descolonizaci\xF3n" + C: Asociaciones Regionales de Libre Comercio + D: "autarqu\xEDa" + input_correct_responses: + - B + input_question: "Esta pregunta se refiere a la siguiente informaci\xF3n. "La\ + \ lucha contra el neocolonialismo no tiene como objetivo excluir el capital\ + \ del mundo desarrollado de operar en los pa\xEDses menos desarrollados. Su\ + \ objetivo es impedir que el poder financiero de los pa\xEDses desarrollados\ + \ sea utilizado de tal manera que empobrezca a los menos desarrollados. La no\ + \ alineaci\xF3n, como la practican Ghana y muchos otros pa\xEDses, se basa en\ + \ la cooperaci\xF3n con todos los Estados, ya sean capitalistas, socialistas\ + \ o de econom\xEDa mixta. Por lo tanto, esa pol\xEDtica implica inversiones\ + \ extranjeras de pa\xEDses capitalistas, pero debe invertirse de acuerdo con\ + \ un plan nacional elaborado por el gobierno del Estado no alineado teniendo\ + \ en cuenta sus propios intereses. La cuesti\xF3n no es qu\xE9 rendimiento recibe\ + \ el inversor extranjero sobre sus inversiones... La cuesti\xF3n es de poder.\ + \ Un Estado en Las garras del neocolonialismo no son due\xF1as de su propio\ + \ destino." Kwame Nkrumah, Neocolonialismo, 1965 \xBFCu\xE1l de los siguientes\ + \ proporciona el mejor contexto para los escritos de Nkrumah?" + - input_choice_list: + A: "Aceptaci\xF3n social del trabajo infantil" + B: "Disminuci\xF3n de la esperanza de vida en Alemania" + C: "Cr\xEDticas a los aranceles comerciales alemanes" + D: Efectos negativos atribuidos al capitalismo industrial + input_correct_responses: + - D + input_question: "Esta pregunta se refiere a la siguiente informaci\xF3n. "El\ + \ verdadero agravio del trabajador es la inseguridad de su existencia; no est\xE1\ + \ seguro de que siempre tendr\xE1 trabajo, no est\xE1 seguro de que siempre\ + \ estar\xE1 sano, y prev\xE9 que alg\xFAn d\xEDa ser\xE1 viejo y no apto para\ + \ trabajar. Si cae en la pobreza, aunque s\xF3lo sea a causa de una enfermedad\ + \ prolongada, entonces queda completamente indefenso, se examina a su suerte,\ + \ y la sociedad no reconoce actualmente ninguna obligaci\xF3n real hacia \xE9\ + l m\xE1s all\xE1 de la ayuda habitual a los pobres, incluso si tiene "Trabajamos\ + \ todo el tiempo con mucha fidelidad y diligencia. La ayuda habitual a los pobres,\ + \ sin embargo, deja mucho que desear, especialmente en las grandes ciudades,\ + \ donde es mucho peor que en el campo." Otto von Bismarck, 1884 \xBFProbablemente\ + \ Otto von Bismarck pronunci\xF3 este discurso en reacci\xF3n a cu\xE1l de las\ + \ siguientes cuestiones?" + - input_choice_list: + A: "El mantenimiento de la supremac\xEDa militar a toda costa" + B: Crecientes tensiones entre sectas religiosas + C: Factores que provocaron el colapso del Imperio Otomano + D: "Esfuerzos de paz entre los imperios isl\xE1micos" + input_correct_responses: + - B + input_question: "Esta pregunta se refiere a la siguiente informaci\xF3n. \xAB\ + De hecho, tanto las fatwas de distinguidos [eruditos] que basan su opini\xF3\ + n tanto en la raz\xF3n como en la tradici\xF3n y el consenso de la comunidad\ + \ sunita coinciden en que la antigua obligaci\xF3n de extirpar, exterminar y\ + \ expulsar las innovaciones malignas debe ser el objetivo de nuestra exaltada\ + \ aspiraci\xF3n, porque "El celo religioso es una victoria para la Fe de\ + \ Dios el Compasivo"; luego, de acuerdo con las palabras del Profeta (\xA1\ + la paz sea con \xE9l!) "Quien introduzca innovaciones malignas en nuestra\ + \ orden debe ser expulsado" y "Quien lo haga Todo lo que vaya en contra\ + \ de nuestra orden debe ser expulsado, "la acci\xF3n se ha vuelto necesaria\ + \ y exigente..." Carta del sult\xE1n otomano Selim I al saf\xE1vida Shah\ + \ Ismail I, 1514 \xBFLa carta de Selim I es m\xE1s claramente un ejemplo de\ + \ cu\xE1l de los siguientes?" + - input_choice_list: + A: Una ruptura de las rutas comerciales debido al colapso de la estructura estatal + establecida + B: "Un aumento de la poblaci\xF3n mundial debido a un suministro m\xE1s abundante\ + \ de alimentos." + C: "La difusi\xF3n de los sistemas de creencias chinos e indios en todo el mundo." + D: Un aumento del malestar social + input_correct_responses: + - B + input_question: "Esta pregunta se refiere a la siguiente informaci\xF3n. "Al\ + \ menos una de las sociedades [del mundo] tendr\xEDa que aumentar de alguna\ + \ manera enormemente su productividad [para lograr la hegemon\xEDa global].\ + \ Ese salto cu\xE1ntico tendr\xEDa que darse antes de las diversas revoluciones\ + \ cient\xEDficas, tecnol\xF3gicas, agr\xEDcolas e industriales en las que se\ + \ basan nuestras sociedades. Restos del mundo posterior al salto cu\xE1ntico.\ + \ S\xF3lo podr\xEDa lograrse explotando los ecosistemas, los recursos minerales\ + \ y los activos humanos de continentes enteros fuera de las tierras de la sociedad\ + \ que dio el salto. Europa Occidental hizo precisamente eso por medio de su\ + \ brutalidad, sus armas y sus armas. , m\xE1s importante a\xFAn, por suerte\ + \ geogr\xE1fica y ecol\xF3gica." Copyright \xA9 2015 Cambridge University\ + \ Press. Alfred Crosby, historiador, Imperialismo ecol\xF3gico, 2004 \xBFEl\ + \ "salto cu\xE1ntico" mencionado en el pasaje contribuy\xF3 m\xE1\ + s directamente a cu\xE1l de los siguientes desarrollos en el per\xEDodo 1450-1750\ + \ d.C.?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_world_history +tag: mmlu_es_llama_humanities_tasks +task: mmlu_es_llama_high_school_world_history +task_alias: high_school_world_history diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_human_aging.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_human_aging.yaml new file mode 100644 index 0000000000000000000000000000000000000000..126b6af947d9e82a54e47a391e5a81705b716e81 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_human_aging.yaml @@ -0,0 +1,53 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Un hombre o una mujer asi\xE1tica." + B: un hombre hispano + C: Una mujer afroamericana + D: Un hombre o una mujer blanca. + input_correct_responses: + - C + input_question: "\xBFCu\xE1l de las siguientes personas tiene m\xE1s probabilidades\ + \ de permanecer sola en casa a partir de 2019?" + - input_choice_list: + A: Ventaja de la adolescencia + B: Golpe de memoria + C: monumento conmemorativo + D: "Pico de recuperaci\xF3n cuadr\xE1tica" + input_correct_responses: + - B + input_question: "El hallazgo de que los adultos tienden a recordar mejor los acontecimientos\ + \ de su adolescencia que los de otros per\xEDodos de sus vidas se conoce como" + - input_choice_list: + A: Texas + B: California + C: Hawai + D: Vermont + input_correct_responses: + - A + input_question: "Cuando los adultos mayores se mudan a un nuevo estado despu\xE9\ + s de jubilarse, \xBFcu\xE1l de los siguientes es el destino m\xE1s probable?" + - input_choice_list: + A: Nicotina + B: "Alquitr\xE1n" + C: "Mon\xF3xido de carbono" + D: "Part\xEDculas de humo" + input_correct_responses: + - B + input_question: "\xBFQu\xE9 elemento del humo del tabaco es responsable de los\ + \ c\xE1nceres?" + - input_choice_list: + A: Una mujer hispanoamericana mayor + B: Una mujer afroamericana mayor + C: "Una mujer asi\xE1tica americana mayor" + D: Una mujer nativa americana mayor + input_correct_responses: + - C + input_question: "En igualdad de condiciones, \xBFcu\xE1l de las siguientes personas\ + \ tiene m\xE1s probabilidades de padecer osteoporosis?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_human_aging +tag: mmlu_es_llama_other_tasks +task: mmlu_es_llama_human_aging +task_alias: human_aging diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_human_sexuality.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_human_sexuality.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d0d3810ce43165f0d12db4e0046c29cefe77e95e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_human_sexuality.yaml @@ -0,0 +1,53 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: durante el primer trimestre + B: durante el segundo trimestre + C: durante el tercer trimestre + D: durante todo el embarazo + input_correct_responses: + - A + input_question: "Las n\xE1useas matutinas suelen ser un problema:" + - input_choice_list: + A: un ego fuerte + B: "un supery\xF3 d\xE9bil" + C: "una identificaci\xF3n d\xE9bil" + D: "un supery\xF3 fuerte" + input_correct_responses: + - B + input_question: "Una mujer que sabe que tiene herpes activo y s\xEDfilis no tratada\ + \ pero contin\xFAa teniendo relaciones sexuales sin informar a sus parejas de\ + \ su condici\xF3n tiene, en t\xE9rminos psicoanal\xEDticos:" + - input_choice_list: + A: "el hecho de que no tienen un per\xEDodo refractario." + B: la respuesta de las capas internas de la vagina. + C: tener orgasmos alternos en diferentes lugares. + D: el punto G. + input_correct_responses: + - A + input_question: "La capacidad de las mujeres para tener orgasmos m\xFAltiples\ + \ se debe principalmente a:" + - input_choice_list: + A: relaciones sexuales + B: idiotas circulares + C: exhibicionismo + D: tocarse los genitales el uno al otro + input_correct_responses: + - A + input_question: "\xBFLa naturaleza de las actividades homosexuales que ocurren\ + \ durante la preadolescencia incluye todas menos cu\xE1l de las siguientes?" + - input_choice_list: + A: "eyaculaci\xF3n precoz" + B: "eyaculaci\xF3n inhibida" + C: "trastorno er\xE9ctil" + D: trastorno eyaculatorio + input_correct_responses: + - C + input_question: "El trastorno m\xE1s com\xFAn entre los hombres que buscan terapia\ + \ sexual es:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_human_sexuality +tag: mmlu_es_llama_social_sciences_tasks +task: mmlu_es_llama_human_sexuality +task_alias: human_sexuality diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_international_law.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_international_law.yaml new file mode 100644 index 0000000000000000000000000000000000000000..66cd1ca7fea58239fa6da74cc31733b2cb0f421c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_international_law.yaml @@ -0,0 +1,70 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "El art\xEDculo 2(4) abarca \xFAnicamente la fuerza armada" + B: "El art\xEDculo 2(4) abarca todos los tipos de fuerza, incluidas las sanciones." + C: "El art\xEDculo 2(4) abarca toda injerencia en los asuntos internos de los\ + \ Estados." + D: "El art\xEDculo 2(4) abarca la fuerza dirigida \xFAnicamente contra la integridad\ + \ territorial de un Estado." + input_correct_responses: + - A + input_question: "\xBFQu\xE9 tipos de fuerza proh\xEDbe el art\xEDculo 2(4) de\ + \ la Carta de las Naciones Unidas?" + - input_choice_list: + A: "Si una parte en un caso contencioso ante la CIJ no tiene un juez nacional,\ + \ tiene derecho a nombrar a alguien como juez \xFAnicamente para ese caso,\ + \ con el t\xEDtulo de juez ad hoc." + B: El juez ad hoc es el miembro de la sala de la CIJ con voto de calidad. + C: El juez ad hoc es un juez sustituto, en caso de que un juez sea inhabilitado + o fallezca + D: "El juez ad hoc es el juez que cada parte designar\xE1 siempre en cada caso\ + \ contencioso." + input_correct_responses: + - A + input_question: "\xBFQu\xE9 es el juez ad hoc?" + - input_choice_list: + A: "Esta es una reserva aceptable si la legislaci\xF3n del pa\xEDs que la formula\ + \ emplea una definici\xF3n diferente." + B: "Esta es una reserva inaceptable porque contraviene el objeto y fin del Pacto\ + \ Internacional de Derechos Civiles y Pol\xEDticos." + C: "Esta es una reserva inaceptable porque la definici\xF3n de tortura en el\ + \ PIDCP es consistente con el derecho internacional consuetudinario." + D: "Se trata de una reserva aceptable porque, seg\xFAn el derecho internacional\ + \ general, los Estados tienen derecho a formular reservas a los tratados." + input_correct_responses: + - B + input_question: "\xBFSer\xEDa aceptable en la pr\xE1ctica contempor\xE1nea una\ + \ reserva a la definici\xF3n de tortura del PIDCP?" + - input_choice_list: + A: El consentimiento puede servir como circunstancia excluyente de la ilicitud + siempre que se preste + B: El consentimiento nunca puede servir como circunstancia que excluya la ilicitud + C: "El consentimiento puede servir como circunstancia que excluye la ilicitud,\ + \ siempre que el consentimiento sea v\xE1lido y en la medida en que la conducta\ + \ se mantenga dentro de los l\xEDmites del consentimiento prestado." + D: "El consentimiento siempre puede servir como circunstancia excluyente de\ + \ la ilicitud, cualquiera que sea el \xF3rgano del Estado que lo otorgue." + input_correct_responses: + - C + input_question: "\xBFCu\xE1ndo el "consentimiento" puede servir como\ + \ circunstancia que excluye la ilicitud de una conducta estatal?" + - input_choice_list: + A: "El consentimiento de un Estado en obligarse se expresa \xFAnicamente mediante\ + \ la ratificaci\xF3n." + B: "El consentimiento de un Estado en obligarse por un tratado puede expresarse\ + \ mediante firma, ratificaci\xF3n, aceptaci\xF3n, aprobaci\xF3n o adhesi\xF3\ + n." + C: El consentimiento de un Estado en obligarse se expresa mediante la firma. + D: El consentimiento de un Estado en obligarse se expresa por cualquier medio + que elija + input_correct_responses: + - B + input_question: "\xBFC\xF3mo puede expresarse el consentimiento de un Estado en\ + \ obligarse?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_international_law +tag: mmlu_es_llama_humanities_tasks +task: mmlu_es_llama_international_law +task_alias: international_law diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_jurisprudence.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_jurisprudence.yaml new file mode 100644 index 0000000000000000000000000000000000000000..32d42300d9df36fffc97c4631cf4d78e531590db --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_jurisprudence.yaml @@ -0,0 +1,55 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "El POP elegir\xEDa la igualdad por encima de la libertad." + B: "El POP optar\xEDa por la estrategia 'maximin'." + C: "El POP optar\xEDa por el 'principio de diferencia'." + D: "El POP rechazar\xEDa el "sistema de libertad natural"." + input_correct_responses: + - A + input_question: "\xBFQu\xE9 posici\xF3n, seg\xFAn Rawls, es la que tiene menos\ + \ probabilidades de ser adoptada por el POP (las personas en la posici\xF3n\ + \ original)?" + - input_choice_list: + A: maximizar la libertad individual + B: proporcionando una base para el compromiso + C: manteniendo la paz + D: promover los principios del sistema de libre empresa + input_correct_responses: + - D + input_question: "\xBFLas funciones de la ley incluyen todas menos cu\xE1l de las\ + \ siguientes?" + - input_choice_list: + A: Autoridad. + B: Carisma. + C: "Cooperaci\xF3n." + D: Capitalismo. + input_correct_responses: + - D + input_question: "\xBFQu\xE9 palabra resume mejor la explicaci\xF3n de Weber sobre\ + \ el desarrollo del derecho formalmente racional?" + - input_choice_list: + A: La Ley natural + B: "Anal\xEDtico" + C: "Hist\xF3rico" + D: "Sociol\xF3gico" + input_correct_responses: + - A + input_question: La Escuela ________ de jurisprudencia postula que el derecho se + basa en lo que es "correcto". + - input_choice_list: + A: La carta es una oferta de venta. + B: "No se puede hacer una oferta v\xE1lida por carta." + C: "La carta contiene una oferta v\xE1lida que finalizar\xE1 en un plazo razonable." + D: La carta carece de uno de los elementos esenciales de una oferta. + input_correct_responses: + - D + input_question: "Iverson Jewelers escribi\xF3 una carta a Miller: "Hemos\ + \ recibido un reloj Rolox de cuerda autom\xE1tica excepcionalmente fino que\ + \ le venderemos a un precio muy favorable"." +include: _continuation_template_yaml +process_docs: !function utils.process_docs_jurisprudence +tag: mmlu_es_llama_humanities_tasks +task: mmlu_es_llama_jurisprudence +task_alias: jurisprudence diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_logical_fallacies.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_logical_fallacies.yaml new file mode 100644 index 0000000000000000000000000000000000000000..dc8672a9c3e6800d8092dce74c38d09e1322b76d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_logical_fallacies.yaml @@ -0,0 +1,60 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: tu quoque + B: risa de caballo + C: argumento contra la persona + D: ignorancia elenchi + input_correct_responses: + - C + input_question: "Si alguien ataca el car\xE1cter de un argumentador contrario,\ + \ en lugar de responder a los argumentos de ese oponente, \xBFcu\xE1l de las\ + \ siguientes falacias probablemente ha cometido la primera persona?" + - input_choice_list: + A: "argumentar que algo es inferior simplemente porque no hace algo que nunca\ + \ tuvo la intenci\xF3n de hacer." + B: "incluir m\xE1s de un reclamo en la proposici\xF3n y tratar la prueba de\ + \ un reclamo como prueba de todos los reclamos." + C: "sacar una conclusi\xF3n antes de examinar la evidencia y considerar solo\ + \ la evidencia que respalda esa conclusi\xF3n." + D: "hacer una pregunta que incluya una suposici\xF3n no comprobada o m\xE1s\ + \ de una pregunta, haciendo que una respuesta directa de s\xED o no carezca\ + \ de sentido." + input_correct_responses: + - D + input_question: La falacia de la pregunta compleja consiste en + - input_choice_list: + A: La premisa menor debe negar el antecedente. + B: La premisa mayor debe afirmar la consecuente + C: "El t\xE9rmino medio debe usarse en al menos una premisa en un sentido universal\ + \ o incondicional." + D: Todo lo anterior + input_correct_responses: + - C + input_question: "\xBFCu\xE1l de las siguientes afirmaciones es verdadera para\ + \ un silogismo categ\xF3rico v\xE1lido?" + - input_choice_list: + A: "Divisi\xF3n" + B: "Composici\xF3n" + C: Apelar a la persona + D: Apelar a la ignorancia + input_correct_responses: + - B + input_question: Argumentar que lo que es cierto para las partes debe serlo para + el todo es la falacia de... + - input_choice_list: + A: "pobre esp\xEDritu deportivo" + B: "apelar a la compasi\xF3n" + C: argumento contra la persona + D: "ignorancia de la refutaci\xF3n" + input_correct_responses: + - D + input_question: "Cuando un argumentador causa confusi\xF3n durante la refutaci\xF3\ + n debido a una falta real o fingida de capacidad para participar en la refutaci\xF3\ + n, ese argumentador puede haber cometido la falacia de" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_logical_fallacies +tag: mmlu_es_llama_humanities_tasks +task: mmlu_es_llama_logical_fallacies +task_alias: logical_fallacies diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_machine_learning.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_machine_learning.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e8b822274de9a4f51c9dcb0a1c11d3fb979318ef --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_machine_learning.yaml @@ -0,0 +1,74 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: 2.0/15 + B: 1.0/7 + C: 3.0/16 + D: 1.0/5 + input_correct_responses: + - B + input_question: "Se lanza un dado de 6 caras 15 veces y los resultados son: la\ + \ cara 1 sale 0 veces; lado 2: 1 vez; lado 3: 2 veces; lado 4: 3 veces; lado\ + \ 5: 4 veces; lado 6: 5 veces. Seg\xFAn estos resultados, \xBFcu\xE1l es la\ + \ probabilidad de que aparezca el lado 3 cuando se utiliza el suavizado Add-1?" + - input_choice_list: + A: recorte aleatorio y giro horizontal + B: recorte aleatorio y giro vertical + C: "posterizaci\xF3n" + D: vacilante + input_correct_responses: + - A + input_question: "\xBFQu\xE9 aumento de datos de imagen es m\xE1s com\xFAn para\ + \ im\xE1genes naturales?" + - input_choice_list: + A: "\xA1Mi m\xE9todo logra un error de entrenamiento menor que todos los m\xE9\ + todos anteriores!" + B: "\xA1Mi m\xE9todo logra un error de prueba menor que todos los m\xE9todos\ + \ anteriores! (Nota al pie: cuando el par\xE1metro de regularizaci\xF3n \u03BB\ + \ se elige para minimizar el error de prueba)." + C: "\xA1Mi m\xE9todo logra un error de prueba menor que todos los m\xE9todos\ + \ anteriores! (Nota al pie: cuando el par\xE1metro de regularizaci\xF3n \u03BB\ + \ se elige para minimizar el error de validaci\xF3n cruzada)." + D: "\xA1Mi m\xE9todo logra un error de validaci\xF3n cruzada menor que todos\ + \ los m\xE9todos anteriores! (Nota al pie: cuando el par\xE1metro de regularizaci\xF3\ + n \u03BB se elige para minimizar el error de validaci\xF3n cruzada)." + input_correct_responses: + - C + input_question: "Est\xE1 revisando art\xEDculos para la conferencia de aprendizaje\ + \ autom\xE1tico m\xE1s elegante del mundo y ve env\xEDos con las siguientes\ + \ afirmaciones. \xBFCu\xE1les considerar\xEDas aceptar?" + - input_choice_list: + A: alrededor de 10 ejemplos + B: alrededor de 100 ejemplos + C: entre 100 y 500 ejemplos + D: "m\xE1s de 1000 ejemplos" + input_correct_responses: + - D + input_question: "Para lograr una estimaci\xF3n de p\xE9rdida 0/1 que sea inferior\ + \ al 1 por ciento de la p\xE9rdida 0/1 verdadera (con una probabilidad del 95%),\ + \ seg\xFAn la desigualdad de Hoeffding, \xBFcu\xE1ntos ejemplos debe tener el\ + \ conjunto de pruebas IID?" + - input_choice_list: + A: Es demasiado costoso computacionalmente. + B: "Probablemente dar\xEDa como resultado un \xE1rbol de decisiones con una\ + \ mala puntuaci\xF3n en el conjunto de entrenamiento y en el conjunto de pruebas." + C: "Probablemente dar\xEDa como resultado un \xE1rbol de decisi\xF3n que obtiene\ + \ una buena puntuaci\xF3n en el conjunto de entrenamiento pero mal en un conjunto\ + \ de pruebas." + D: "Probablemente dar\xEDa como resultado un \xE1rbol de decisi\xF3n que obtiene\ + \ una buena puntuaci\xF3n en un conjunto de pruebas pero una mala puntuaci\xF3\ + n en un conjunto de entrenamiento." + input_correct_responses: + - C + input_question: "Tradicionalmente, cuando tenemos un atributo de entrada de valor\ + \ real durante el aprendizaje del \xE1rbol de decisiones, consideramos una divisi\xF3\ + n binaria seg\xFAn si el atributo est\xE1 por encima o por debajo de alg\xFA\ + n umbral. Pat sugiere que, en cambio, deber\xEDamos tener una divisi\xF3n multidireccional\ + \ con una rama para cada uno de los distintos valores del atributo. De la lista\ + \ siguiente, elija el mayor problema con la sugerencia de Pat:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_machine_learning +tag: mmlu_es_llama_stem_tasks +task: mmlu_es_llama_machine_learning +task_alias: machine_learning diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_management.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_management.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b8bb8f05f2dbba36f36d9e608ef9e6dc7f576ebd --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_management.yaml @@ -0,0 +1,51 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Posici\xF3n inicial y posici\xF3n final." + B: Entorno inicial y entorno modificado. + C: Estructura organizacional y condicionamiento. + D: Estructura inicial y consideraciones. + input_correct_responses: + - D + input_question: "\xBFCu\xE1les son las dos dimensiones principales de los Estudios\ + \ de Ohio sobre liderazgo?" + - input_choice_list: + A: Federico Hertzberg + B: DC McClelland + C: Abraham Maslow + D: Douglas McGregor + input_correct_responses: + - A + input_question: "\xBFLos factores de higiene est\xE1n asociados con qu\xE9 escritor?" + - input_choice_list: + A: "S\xEDmbolos" + B: Rituales y rutinas + C: Estructuras de poder + D: Sistemas de control + input_correct_responses: + - A + input_question: "\xBFQu\xE9 elemento de la red cultural forma insignias?" + - input_choice_list: + A: Moral + B: "Innovaci\xF3n" + C: Recurso de crecimiento + D: "Adaptaci\xF3n" + input_correct_responses: + - A + input_question: "\xBFQu\xE9 caracter\xEDstica no es clave en el modelo de gesti\xF3\ + n de los 'sistemas abiertos'?" + - input_choice_list: + A: "Jer\xE1rquico" + B: "Burocr\xE1tico" + C: Departamento + D: Funcional + input_correct_responses: + - C + input_question: "\xBFC\xF3mo se pueden describir las estructuras organizativas\ + \ que se caracterizan por estilos de gesti\xF3n democr\xE1ticos e inclusivos?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_management +tag: mmlu_es_llama_other_tasks +task: mmlu_es_llama_management +task_alias: management diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_marketing.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_marketing.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c5b55d906c716aad127a6ee8d33f1a38a3248477 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_marketing.yaml @@ -0,0 +1,59 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Geodemograf\xEDa" + B: "La diferenciaci\xF3n del producto." + C: Matriz ANSOFF. + D: "Gesti\xF3n de la marca." + input_correct_responses: + - A + input_question: "_____________ es un resultado natural cuando se combinan variables\ + \ demogr\xE1ficas y geogr\xE1ficas." + - input_choice_list: + A: "Unidad de subcontrataci\xF3n." + B: Centro de adquisiciones. + C: Unidad ejecutiva principal. + D: Unidad de toma de decisiones. + input_correct_responses: + - D + input_question: "En una organizaci\xF3n, el grupo de personas encargadas de tomar\ + \ decisiones de compra se denomina _______________." + - input_choice_list: + A: "Las necesidades dependen de la cultura y tambi\xE9n de la clase social." + B: Las necesidades de nivel inferior deben satisfacerse al menos parcialmente + antes de que las necesidades superiores puedan afectar el comportamiento. + C: "Las necesidades no se priorizan ni se organizan en ning\xFAn orden particular." + D: Las necesidades satisfechas son motivadores y surgen nuevas necesidades cuando + las necesidades actuales permanecen insatisfechas. + input_correct_responses: + - B + input_question: "\xBFCu\xE1l de los siguientes es un supuesto en la jerarqu\xED\ + a de necesidades de Maslow?" + - input_choice_list: + A: El consumidor mayor que se siente algo excluido. + B: Las mujeres casadas, muchas de las cuales sienten la necesidad de estabilidad + en sus vidas. + C: Nuevos inmigrantes que realmente quieren asimilarse a su nueva cultura. + D: "Los ni\xF1os, que basan la mayor\xEDa de sus decisiones de compra en influencias\ + \ externas." + input_correct_responses: + - D + input_question: "El \xFAnico grupo dentro de la sociedad que es m\xE1s vulnerable\ + \ a la influencia del grupo de referencia es:" + - input_choice_list: + A: "L\xEDneas de atenci\xF3n." + B: Correo directo. + C: Inserciones. + D: Puerta a puerta. + input_correct_responses: + - D + input_question: "Aunque el contenido y la calidad pueden controlarse tanto como\ + \ el correo directo, las tasas de respuesta de este medio son m\xE1s bajas debido\ + \ a la falta de un mecanismo de direcci\xF3n personal. Este formato de medios\ + \ se conoce como:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_marketing +tag: mmlu_es_llama_other_tasks +task: mmlu_es_llama_marketing +task_alias: marketing diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_medical_genetics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_medical_genetics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f5211f211da3526a819a483ba9dc96fe4d46ec89 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_medical_genetics.yaml @@ -0,0 +1,51 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "reacci\xF3n en cadena de la polimerasa." + B: "An\xE1lisis de polimorfismo conformacional monocatenario." + C: Transferencia del Sur. + D: Transferencia Western. + input_correct_responses: + - C + input_question: 'Las expansiones de repeticiones de tripletes grandes se pueden + detectar mediante:' + - input_choice_list: + A: "Enzima que une fragmentos en la replicaci\xF3n normal del ADN." + B: una enzima de origen bacteriano que corta el ADN en secuencias de bases definidas + C: "una enzima que facilita la transcripci\xF3n de genes espec\xEDficos" + D: Enzima que limita el nivel al que llega un nutriente en particular. + input_correct_responses: + - A + input_question: La ADN ligasa es + - input_choice_list: + A: Tiene ambos alelos expresados independientemente en el heterocigoto. + B: tiene un alelo dominante sobre el otro + C: Tiene alelos estrechamente unidos en el mismo cromosoma. + D: Tiene alelos expresados al mismo tiempo en el desarrollo. + input_correct_responses: + - A + input_question: Un gen que muestra codominancia. + - input_choice_list: + A: "Estenosis pil\xF3rica" + B: Esquizofrenia + C: "Espina b\xEDfida (defectos del tubo neural)" + D: "s\xEDndrome de Marfan" + input_correct_responses: + - D + input_question: "\xBFCu\xE1l de las siguientes condiciones no muestra herencia\ + \ multifactorial?" + - input_choice_list: + A: profase I + B: metafase I + C: profase II + D: metafase II + input_correct_responses: + - A + input_question: 'La etapa de la meiosis en la que los cromosomas se aparean y + se cruzan es:' +include: _continuation_template_yaml +process_docs: !function utils.process_docs_medical_genetics +tag: mmlu_es_llama_other_tasks +task: mmlu_es_llama_medical_genetics +task_alias: medical_genetics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_miscellaneous.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_miscellaneous.yaml new file mode 100644 index 0000000000000000000000000000000000000000..03ccf1af59d63927130d1d347a05bc23300a7b08 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_miscellaneous.yaml @@ -0,0 +1,51 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: uno + B: dos + C: cuatro + D: ocho + input_correct_responses: + - B + input_question: "\xBFCu\xE1ntos ejes tiene un autom\xF3vil est\xE1ndar?" + - input_choice_list: + A: budapest + B: Budokan + C: "But\xE1n" + D: "Breta\xF1a" + input_correct_responses: + - B + input_question: "\xBFQu\xE9 lugar se nombra en el t\xEDtulo del \xE1lbum en vivo\ + \ de 1979 de las leyendas del rock Cheap Trick?" + - input_choice_list: + A: Anthony 'Spud' Webb + B: Michael 'Air' Jordan + C: Tyrone 'Muggsy' Bogues + D: Julius 'Dr. J' Erving + input_correct_responses: + - A + input_question: "\xBFQui\xE9n es el hombre m\xE1s bajo que jam\xE1s haya ganado\ + \ una competencia de mates de la NBA?" + - input_choice_list: + A: "hidr\xF3geno" + B: nylon + C: "ox\xEDgeno" + D: luz + input_correct_responses: + - C + input_question: "\xBFQu\xE9 se produce durante la fotos\xEDntesis?" + - input_choice_list: + A: ''Radio ga ga'' + B: ''Ob-la-di Ob-la-da'' + C: ''De Do Do Do De Da Da Da'' + D: ''En-a-Gadda-Da-Vida'' + input_correct_responses: + - C + input_question: "\xBFCu\xE1l de estas canciones fue un \xE9xito Top 10 de la banda\ + \ de rock The Police?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_miscellaneous +tag: mmlu_es_llama_other_tasks +task: mmlu_es_llama_miscellaneous +task_alias: miscellaneous diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_moral_disputes.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_moral_disputes.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7bfd4c2298ee7f8e8c969c8158a18c50aaf65ade --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_moral_disputes.yaml @@ -0,0 +1,61 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Hasta el momento no est\xE1 claro si la pena capital disuade o no de da\xF1\ + ar a la comunidad." + B: "Hasta el momento no est\xE1 claro si la pena capital disuade o no de da\xF1\ + ar a alguna persona." + C: "El consecuencialismo no est\xE1 respaldado por los valores africanos." + D: "Aunque el consecuencialismo est\xE1 respaldado por los valores africanos,\ + \ no se han ofrecido argumentos consecuencialistas enmarcados en t\xE9rminos\ + \ de valores africanos." + input_correct_responses: + - A + input_question: "Seg\xFAn Metz, \xBFqu\xE9 hay de malo en los argumentos consecuencialistas\ + \ contra la pena capital basados en valores africanos?" + - input_choice_list: + A: un cigoto. + B: "un embri\xF3n." + C: una viabilidad. + D: un blastocisto. + input_correct_responses: + - A + input_question: "Un \xF3vulo fecundado tambi\xE9n se conoce como" + - input_choice_list: + A: estar en la clase alta + B: la capacidad de aprender y resolver problemas + C: "Ser m\xE1s bella que la mayor\xEDa de la poblaci\xF3n." + D: "ser m\xE1s bajo que el promedio" + input_correct_responses: + - B + input_question: "\xBFCu\xE1l de los siguientes es un bien intr\xEDnseco seg\xFA\ + n Singer?" + - input_choice_list: + A: "La SCNT no es un tipo diferente de reproducci\xF3n porque no existen diferencias\ + \ moralmente relevantes entre ella y otros medios de reproducci\xF3n permitidos." + B: "Debido a que existe un bajo riesgo de da\xF1o para el hermanamiento natural,\ + \ habr\xE1 un bajo riesgo de da\xF1o para la SCNT." + C: tanto a como B + D: ni a ni B + input_correct_responses: + - A + input_question: "Pence compara seis casos diferentes de reproducci\xF3n, desde\ + \ la gemelaci\xF3n natural hasta la SCNT. \xBFQu\xE9 conclusi\xF3n saca de esta\ + \ comparaci\xF3n?" + - input_choice_list: + A: "la estupidez de la mayor\xEDa de los ejemplos filos\xF3ficos tradicionales." + B: "una falta general de inteligencia entre las personas con t\xEDtulos avanzados." + C: lo incorrecto de la tortura. + D: "la disposici\xF3n de muchas personas inteligentes a ver la tortura como\ + \ la mejor soluci\xF3n para hacer frente al terrorismo." + input_correct_responses: + - D + input_question: "Baron admite que las versiones hipot\xE9ticas de la bomba de\ + \ tiempo que ella analiza son "sorprendentemente est\xFApidas", pero\ + \ afirma que en realidad son evidencia de" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_moral_disputes +tag: mmlu_es_llama_humanities_tasks +task: mmlu_es_llama_moral_disputes +task_alias: moral_disputes diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_moral_scenarios.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_moral_scenarios.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9b1d5f611acbacc2e97b037be2c7831d11b080c1 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_moral_scenarios.yaml @@ -0,0 +1,71 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Malo malo + B: Mal, no mal + C: "No est\xE1 mal, est\xE1 mal" + D: "No est\xE1 mal, no est\xE1 mal" + input_correct_responses: + - C + input_question: "\xBFEn cu\xE1l de estos dos escenarios el personaje principal\ + \ (que usa yo/m\xED/mi) hace algo claramente moralmente incorrecto, de acuerdo\ + \ con los est\xE1ndares morales comunes en los EE. UU. a partir de 2020? Escenario\ + \ 1 | Realmente amaba a mi beb\xE9 reci\xE9n nacido. Escenario 2 | A la chica\ + \ nueva le da verg\xFCenza vivir en un parque de casas rodantes, as\xED que\ + \ invito a la clase a su casa." + - input_choice_list: + A: Malo malo + B: Mal, no mal + C: "No est\xE1 mal, est\xE1 mal" + D: "No est\xE1 mal, no est\xE1 mal" + input_correct_responses: + - C + input_question: "\xBFEn cu\xE1l de estos dos escenarios el personaje principal\ + \ (que usa yo/m\xED/mi) hace algo claramente moralmente incorrecto, de acuerdo\ + \ con los est\xE1ndares morales comunes en los EE. UU. a partir de 2020? Escenario\ + \ 1 | Le ped\xED un cigarrillo al chico que estaba afuera de la tienda. Escenario\ + \ 2 | Cuando el guardia de seguridad abandon\xF3 su puesto, me guard\xE9 una\ + \ moneda rara." + - input_choice_list: + A: Malo malo + B: Mal, no mal + C: "No est\xE1 mal, est\xE1 mal" + D: "No est\xE1 mal, no est\xE1 mal" + input_correct_responses: + - D + input_question: "\xBFEn cu\xE1l de estos dos escenarios el personaje principal\ + \ (que usa yo/m\xED/mi) hace algo claramente moralmente incorrecto, de acuerdo\ + \ con los est\xE1ndares morales comunes en los EE. UU. a partir de 2020? Escenario\ + \ 1 | Compr\xE9 una vieja camioneta para trabajar. Escenario 2 | Mir\xE9 hacia\ + \ la hermosa cascada y le arroj\xE9 una piedra." + - input_choice_list: + A: Malo malo + B: Mal, no mal + C: "No est\xE1 mal, est\xE1 mal" + D: "No est\xE1 mal, no est\xE1 mal" + input_correct_responses: + - B + input_question: "\xBFEn cu\xE1l de estos dos escenarios el personaje principal\ + \ (que usa yo/m\xED/mi) hace algo claramente moralmente incorrecto, de acuerdo\ + \ con los est\xE1ndares morales comunes en los EE. UU. a partir de 2020? Escenario\ + \ 1 | Durante la demolici\xF3n de la casa, lo empuj\xE9 contra una pared. Escenario\ + \ 2 | Cuando elijo una ni\xF1era para mis sobrinas gemelas, no me importa su\ + \ origen racial." + - input_choice_list: + A: Malo malo + B: Mal, no mal + C: "No est\xE1 mal, est\xE1 mal" + D: "No est\xE1 mal, no est\xE1 mal" + input_correct_responses: + - A + input_question: "\xBFEn cu\xE1l de estos dos escenarios el personaje principal\ + \ (que usa yo/m\xED/mi) hace algo claramente moralmente incorrecto, de acuerdo\ + \ con los est\xE1ndares morales comunes en los EE. UU. a partir de 2020? Escenario\ + \ 1 | Le quit\xE9 la cartera despu\xE9s de que me acosara en el bar. Escenario\ + \ 2 | Le hice el amor a mi beb\xE9 reci\xE9n nacido." +include: _continuation_template_yaml +process_docs: !function utils.process_docs_moral_scenarios +tag: mmlu_es_llama_humanities_tasks +task: mmlu_es_llama_moral_scenarios +task_alias: moral_scenarios diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_nutrition.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_nutrition.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f479c7e3c799f5380d934cf3bf6d4eecb9665a35 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_nutrition.yaml @@ -0,0 +1,68 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Los bebedores de t\xE9 tienen menor riesgo de desarrollar diabetes." + B: "Los bebedores de t\xE9 tienen mayor riesgo de desarrollar diabetes." + C: "Seg\xFAn la informaci\xF3n proporcionada, no podemos decir si la diferencia\ + \ observada en el riesgo de enfermedad es resultado del azar." + D: "El \xEDndice de riesgo es cercano al valor uno, por lo que no hay diferencia\ + \ en el riesgo de enfermedad entre los dos grupos." + input_correct_responses: + - C + input_question: "En un estudio de cohorte, la proporci\xF3n de riesgo de desarrollar\ + \ diabetes fue de 0,86 al comparar a los consumidores de t\xE9 (los expuestos)\ + \ con los que no beb\xEDan t\xE9 (los no expuestos). \xBFCu\xE1l afirmaci\xF3\ + n es correcta (seg\xFAn el conocimiento en 2020)?" + - input_choice_list: + A: Los consumidores con fenilcetonuria deben evitar el consumo del edulcorante + aspartamo + B: Los consumidores con fenilcetonuria deben evitar el consumo del edulcorante + sacarina + C: Los consumidores con fenilcetonuria deben evitar el consumo del edulcorante + sucralosa + D: Los consumidores con fenilcetonuria deben evitar el consumo del edulcorante + acesulfamo K + input_correct_responses: + - A + input_question: "\xBFCu\xE1l de las siguientes afirmaciones es correcta (seg\xFA\ + n conocimiento en 2020)?" + - input_choice_list: + A: "El \xE1cido propi\xF3nico, formado durante la fermentaci\xF3n de la fibra\ + \ del colon, inhibe la s\xEDntesis de \xE1cidos grasos en el h\xEDgado." + B: "El \xE1cido but\xEDrico, formado durante la fermentaci\xF3n de la fibra\ + \ del colon, estimula el "silenciamiento" del gen supresor de tumores\ + \ SLC5A8." + C: Ninguna de estas opciones es correcta + D: "El \xE1cido but\xEDrico, formado durante la fermentaci\xF3n de la fibra\ + \ del colon, estimula las defensas antioxidantes del colon." + input_correct_responses: + - D + input_question: "\xBFCu\xE1l de las siguientes es la explicaci\xF3n m\xE1s plausible\ + \ del efecto protector de la fibra diet\xE9tica contra el c\xE1ncer de colon,\ + \ a partir de 2020?" + - input_choice_list: + A: El 50% de los adultos consume yodo en niveles inferiores al RNI + B: "Los productos l\xE1cteos son una mala fuente de yodo." + C: "El contenido de yodo de la leche org\xE1nica es generalmente menor que el\ + \ nivel de la leche no org\xE1nica." + D: "Los valores de referencia diet\xE9ticos del Reino Unido recomiendan un aumento\ + \ de la ingesta de yodo durante el embarazo" + input_correct_responses: + - C + input_question: "\xBFCu\xE1l de las siguientes afirmaciones sobre el yodo es correcta,\ + \ a partir de 2020?" + - input_choice_list: + A: acarbosa + B: metformina + C: Sulfonilureas + D: Insulina + input_correct_responses: + - B + input_question: "\xBFCu\xE1l es el f\xE1rmaco de primera l\xEDnea para pacientes\ + \ con diabetes tipo 2 y obesidad, a partir de 2020?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_nutrition +tag: mmlu_es_llama_other_tasks +task: mmlu_es_llama_nutrition +task_alias: nutrition diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_philosophy.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_philosophy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..480f90e9daea18b79bc123b9604e749447b44119 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_philosophy.yaml @@ -0,0 +1,53 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "una teor\xEDa \xE9tica sobre c\xF3mo debemos comportarnos." + B: "una generalizaci\xF3n sobre la forma en que las personas tienden a comportarse." + C: "una afirmaci\xF3n sobre la naturaleza humana y las formas en que las personas\ + \ son capaces de comportarse." + D: Ninguna de las anteriores. + input_correct_responses: + - C + input_question: "El ego\xEDsmo psicol\xF3gico es:" + - input_choice_list: + A: placer. + B: felicidad. + C: bien. + D: virtud. + input_correct_responses: + - C + input_question: "Seg\xFAn el \u201Cutilitarismo ideal\u201D de Moore, la acci\xF3\ + n correcta es aquella que produce la mayor cantidad de:" + - input_choice_list: + A: elecciones libres + B: dictados del alma + C: leyes naturales necesarias + D: voluntad indeterminada + input_correct_responses: + - C + input_question: "Seg\xFAn d'Holbach, la gente siempre act\xFAa seg\xFAn _____." + - input_choice_list: + A: optimista + B: satisfecho + C: nominalmente religioso + D: pesimista + input_correct_responses: + - D + input_question: "Antes de la conversi\xF3n cristiana de Tolstoi, \xBFcu\xE1l era\ + \ su perspectiva sobre el significado de la vida?" + - input_choice_list: + A: "metaf\xEDsica" + B: "epistemolog\xEDa" + C: "f\xEDsica cu\xE1ntica" + D: "axiolog\xEDa" + input_correct_responses: + - A + input_question: "El estudio de la realidad en el sentido m\xE1s amplio, una investigaci\xF3\ + n de la naturaleza elemental del universo y las cosas que contiene, se conoce\ + \ como _____." +include: _continuation_template_yaml +process_docs: !function utils.process_docs_philosophy +tag: mmlu_es_llama_humanities_tasks +task: mmlu_es_llama_philosophy +task_alias: philosophy diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_prehistory.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_prehistory.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4895e23a1a2b95dfece34010fc52523a76a945b9 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_prehistory.yaml @@ -0,0 +1,65 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "satisfacer a los poderosos sacerdotes astr\xF3nomos mayas." + B: "mostrar su generosidad hacia la gente com\xFAn, ya que se les permit\xED\ + a vivir en los templos." + C: "ahuyentar a los enemigos, en particular a los espa\xF1oles." + D: legitimar su realeza, ya que su padre no era real. + input_correct_responses: + - D + input_question: "El gran rey maya Pacal construy\xF3 templos en la ciudad de Palenque\ + \ con el fin de:" + - input_choice_list: + A: "un centro de la civilizaci\xF3n del Mississippi con condiciones similares\ + \ al surgimiento de los primeros estados." + B: las limitaciones de la autoridad en una sociedad nativa americana de recolectores + igualitarios. + C: "una jefatura simple o tal vez una jefatura compleja hab\xEDa evolucionado\ + \ hacia el a\xF1o 1500 d.C." + D: "un centro de la civilizaci\xF3n del Mississippi con condiciones similares\ + \ a las sociedades de la costa noroeste de Am\xE9rica del Norte." + input_correct_responses: + - A + input_question: "Seg\xFAn Timothy Pauketat, la evidencia de la estratificaci\xF3\ + n social y el poder pol\xEDtico en Cahokia sugiere:" + - input_choice_list: + A: "un cataclismo de alg\xFAn tipo, como un terremoto, un volc\xE1n o un tsunami." + B: "degradaci\xF3n ecol\xF3gica resultante de las t\xE9cnicas agr\xEDcolas de\ + \ tala y quema." + C: guerras interminables entre ciudades-estado mayas vecinas. + D: "pr\xE1cticas de mestizaje que condujeron a un fuerte aumento de los trastornos\ + \ cong\xE9nitos." + input_correct_responses: + - B + input_question: 'Los investigadores ahora creen que el declive de los mayas fue + causado principalmente por:' + - input_choice_list: + A: "una gran cantidad de diversidad de especies, o una sola especie que exhibi\xF3\ + \ mucha diversidad." + B: "muy poca diversidad de especies durante este per\xEDodo y muy pocos hom\xED\ + nidos." + C: "Disminuci\xF3n de la diversidad de especies debido a una prolongada edad\ + \ de hielo seguida de una grave sequ\xEDa." + D: "Disminuci\xF3n de la diversidad de especies pero aumento del n\xFAmero de\ + \ piedras de martillo y lascas, lo que indica la fabricaci\xF3n de herramientas\ + \ de piedra." + input_correct_responses: + - A + input_question: "Investigaciones recientes sobre especies de hom\xEDnidos que\ + \ datan del Plioceno Medio indican que hubo (a partir de 2020):" + - input_choice_list: + A: menos de 650 cc + B: alrededor de 800 cc + C: poco menos de 1000 cc + D: 1200 cc + input_correct_responses: + - C + input_question: "\xBFCu\xE1l es la capacidad craneal media aproximada del Homo\ + \ erectus?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_prehistory +tag: mmlu_es_llama_humanities_tasks +task: mmlu_es_llama_prehistory +task_alias: prehistory diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_professional_accounting.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_professional_accounting.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c27d15e443e04534ab7e5543b1c2c700d3437667 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_professional_accounting.yaml @@ -0,0 +1,74 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: $70,000 + B: $75,000 + C: $80,000 + D: '100000' + input_correct_responses: + - D + input_question: "Box una organizaci\xF3n no gubernamental sin fines de lucro tuvo\ + \ las siguientes transacciones durante el a\xF1o: Producto de la venta de inversiones\ + \ $80000 Compra de propiedades, planta y equipo $10000 Producto de la deuda\ + \ a largo plazo $100000 P\xE9rdida en la venta de la inversi\xF3n $5000 \xBF\ + Qu\xE9 monto debe declararse como neto? \xBFEl efectivo proporcionado por las\ + \ actividades de financiaci\xF3n en el estado de flujos de efectivo de Box?" + - input_choice_list: + A: $13,000 + B: $600 + C: $15,000 + D: $28,000 + input_correct_responses: + - A + input_question: "Hace cien a\xF1os, su tatarabuela invirti\xF3 $100 al 5% de inter\xE9\ + s anual. \xBFCu\xE1l es el valor de la inversi\xF3n hoy?" + - input_choice_list: + A: $0 + B: $500 + C: $1,650 + D: $16,500 + input_correct_responses: + - A + input_question: "Krete es un contribuyente soltero con ingresos exclusivamente\ + \ provenientes de salarios. Al 31 de diciembre del a\xF1o 1, el empleador de\ + \ Krete hab\xEDa retenido $16,000 en impuestos federales sobre la renta y Krete\ + \ no hab\xEDa realizado pagos de impuestos estimados. El 15 de abril del a\xF1\ + o 2, Krete present\xF3 oportunamente una solicitud de extensi\xF3n para presentar\ + \ su declaraci\xF3n de impuestos individual y pag\xF3 $300 de impuestos adicionales.\ + \ La obligaci\xF3n tributaria del a\xF1o 1 de Krete fue de $16,500 cuando present\xF3\ + \ oportunamente su declaraci\xF3n el 30 de abril del a\xF1o 2 y pag\xF3 el saldo\ + \ restante de la obligaci\xF3n tributaria. \xBFA qu\xE9 monto estar\xEDa sujeto\ + \ la sanci\xF3n por pago insuficiente de impuestos estimados?" + - input_choice_list: + A: $5,000 + B: $13,500 + C: $16,000 + D: $20,000 + input_correct_responses: + - B + input_question: "El 1 de enero del a\xF1o 1, Alpha Co. firm\xF3 un acuerdo de\ + \ mantenimiento anual con un proveedor de software por $15 000 y el per\xED\ + odo de mantenimiento comienza el 1 de marzo del a\xF1o 2. Alpha tambi\xE9n incurri\xF3\ + \ en costos de $5 000 el 1 de enero del a\xF1o 1 relacionados con la modificaci\xF3\ + n del software. solicitudes que aumentar\xE1n la funcionalidad del software.\ + \ Alpha deprecia y amortiza sus activos inform\xE1ticos y de software en cinco\ + \ a\xF1os utilizando el m\xE9todo de l\xEDnea recta. \xBFCu\xE1l es el gasto\ + \ total que Alpha deber\xEDa reconocer relacionado con el acuerdo de mantenimiento\ + \ y las modificaciones de software para el a\xF1o terminado el 31 de diciembre\ + \ del a\xF1o 1?" + - input_choice_list: + A: "Valoraci\xF3n y asignaci\xF3n" + B: Lo completo + C: Derechos y obligaciones + D: "Presentaci\xF3n y divulgaci\xF3n" + input_correct_responses: + - B + input_question: "Un auditor rastrea los n\xFAmeros de serie de los equipos hasta\ + \ el libro auxiliar de un no emisor. \xBFCu\xE1l de las siguientes afirmaciones\ + \ de la gerencia est\xE1 respaldada por esta prueba?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_accounting +tag: mmlu_es_llama_other_tasks +task: mmlu_es_llama_professional_accounting +task_alias: professional_accounting diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_professional_law.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_professional_law.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f2c6005f811f549355c9620240b663e18ea6f676 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_professional_law.yaml @@ -0,0 +1,133 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "el estatuto es nulo por vaguedad seg\xFAn la cl\xE1usula del debido proceso\ + \ de la Decimocuarta Enmienda." + B: "el estatuto es inv\xE1lido porque viola la libertad de expresi\xF3n del\ + \ peticionario bajo la Primera Enmienda." + C: "el estatuto es una limitaci\xF3n de la libertad de expresi\xF3n bajo la\ + \ Primera Enmienda porque hay medios menos restrictivos disponibles para lograr\ + \ el mismo prop\xF3sito." + D: "el estatuto es demasiado amplio y, en consecuencia, inv\xE1lido seg\xFA\ + n las enmiendas primera y decimocuarta." + input_correct_responses: + - D + input_question: "Una legislatura estatal ha promulgado recientemente un estatuto\ + \ que convierte en delito menor maldecir, injuriar o usar lenguaje obsceno u\ + \ oprobio hacia o en referencia a un oficial de polic\xEDa que desempe\xF1a\ + \ sus funciones. Un estudiante de una universidad estatal organiz\xF3 una manifestaci\xF3\ + n en el campus para protestar contra la guerra. A la manifestaci\xF3n asisti\xF3\ + \ un grupo de 50 estudiantes que gritaron mensajes contra la guerra a los coches\ + \ que pasaban. Para mostrar su desprecio por Estados Unidos, el estudiante cosi\xF3\ + \ la bandera estadounidense en la parte trasera de sus jeans. Cuando un oficial\ + \ de polic\xEDa vio la bandera cosida en los jeans del estudiante, se acerc\xF3\ + \ y le dijo que se la quitara o lo arrestar\xEDan. El estudiante se enoj\xF3\ + \ y le grit\xF3 al oficial de polic\xEDa: "Escucha, bastardo, usar\xE9\ + \ este trapo donde quiera". Posteriormente, el estudiante fue arrestado\ + \ y acusado de violar el estatuto estatal. Posteriormente, el estudiante presenta\ + \ una demanda ante un tribunal estatal impugnando la constitucionalidad del\ + \ estatuto. El argumento constitucional m\xE1s fuerte para el estudiante es\ + \ que" + - input_choice_list: + A: "La cl\xE1usula de comercio." + B: "La cl\xE1usula de igual protecci\xF3n de la Decimocuarta Enmienda." + C: "La cl\xE1usula de privilegios e inmunidades del Art\xEDculo IV, Secci\xF3\ + n 2." + D: "La cl\xE1usula del contrato." + input_correct_responses: + - A + input_question: "Un estado ha promulgado recientemente un estatuto que proh\xED\ + be la eliminaci\xF3n de desechos nucleares dentro del estado. Esta ley no contraviene\ + \ ni entra en conflicto con ning\xFAn estatuto federal. Un hombre dirige una\ + \ empresa en el estado que se dedica a la eliminaci\xF3n de desechos nucleares.\ + \ Despu\xE9s de la aprobaci\xF3n del estatuto estatal, el hombre, que a\xFA\ + n no conoc\xEDa la nueva ley, celebr\xF3 contratos con muchas empresas de fuera\ + \ del estado para eliminar sus desechos nucleares en el estado. Sin embargo,\ + \ a causa de esta nueva ley, el hombre no podr\xE1 cumplir estos contratos.\ + \ Supongamos que el hombre tiene capacidad para impugnar esta ley estatal. \xBF\ + Cu\xE1l de los siguientes presenta sus fundamentos constitucionales m\xE1s s\xF3\ + lidos para impugnar la ley estatal que proh\xEDbe la eliminaci\xF3n de desechos\ + \ nucleares dentro del estado?" + - input_choice_list: + A: Hechos indiscutibles. + B: "Hechos que han sido afirmados por organizaciones pol\xEDticas individuales." + C: "Hechos reconocidos como ciertos por el conocimiento com\xFAn." + D: "Hechos susceptibles de verificaci\xF3n cient\xEDfica." + input_correct_responses: + - B + input_question: "El juez tom\xF3 conocimiento judicial de algunos hechos al inicio\ + \ del juicio. \xBFCu\xE1l de los siguientes no es un tipo de hecho apropiado\ + \ para notificaci\xF3n judicial?" + - input_choice_list: + A: "otorgar alivio, porque la cerca violaba la restricci\xF3n de servidumbre." + B: "conceder alivio, porque la invasi\xF3n de la valla violaba la restricci\xF3\ + n del plan original." + C: "denegar el alivio, porque el maestro no hizo cumplir la restricci\xF3n contra\ + \ el jubilado." + D: "negar el alivio, porque la cerca no ser\xEDa interpretada como "una\ + \ estructura" dentro de los t\xE9rminos de la restricci\xF3n." + input_correct_responses: + - B + input_question: "El 1 de octubre de 1980, un promotor inmobiliario, propietario\ + \ de varios cientos de acres en un condado rural, redact\xF3 un plan general\ + \ de desarrollo para la zona. El plan debidamente registrado impon\xEDa limitaciones\ + \ y restricciones elaboradas sobre el terreno en el plan, que iba a ser desarrollado\ + \ como un distrito residencial. Las restricciones se extender\xEDan a todas\ + \ las personas que adquirieran cualquiera de los lotes y a sus herederos, cesionarios\ + \ y arrendatarios. Se dispuso adem\xE1s que todos los propietarios posteriores\ + \ recibir\xEDan la debida notificaci\xF3n de las restricciones. Entre esas restricciones\ + \ en el plan general estaban las siguientes: (22) Se crea un derecho de franquicia\ + \ en una franja de terreno de 10 pies de ancho a lo largo de la parte trasera\ + \ de cada lote para el uso de empresas de servicios p\xFAblicos con derecho\ + \ de entrada y salida. (23) No se construir\xE1 ninguna casa o estructura de\ + \ ning\xFAn tipo en la franja de terreno antes mencionada que corre a trav\xE9\ + s de dichos bloques. En 2000, un jubilado compr\xF3 uno de los lotes, construy\xF3\ + \ una casa y erigi\xF3 una cerca en la parte trasera de su propiedad dentro\ + \ del \xE1rea restringida. En 2004, un maestro compr\xF3 un terreno adyacente\ + \ a la propiedad del jubilado y construy\xF3 una casa nueva. Dos a\xF1os m\xE1\ + s tarde, un bibliotecario compr\xF3 el lote contiguo a la propiedad del maestro.\ + \ Las tres escrituras de esas propiedades conten\xEDan cada una referencias\ + \ al libro de escrituras donde se registr\xF3 el plano general. En 2008, el\ + \ bibliotecario inici\xF3 la construcci\xF3n de una cerca de postes y barandas\ + \ de siete pies a lo largo de la l\xEDnea que divide su lote con el del maestro,\ + \ y a lo largo del centro del \xE1rea sujeta al derecho de franquicia. Aunque\ + \ el maestro se opuso a su construcci\xF3n, la valla se complet\xF3. Si el maestro\ + \ solicita una orden judicial obligatoria para obligar a retirar la cerca del\ + \ bibliotecario, lo m\xE1s probable es que el tribunal" + - input_choice_list: + A: "La promesa del padre y la confianza del acreedor en ella, si se probaban,\ + \ daban lugar a un reclamo v\xE1lido del acreedor contra el padre basado en\ + \ la doctrina del impedimento promisorio." + B: "Como era previsible que la promesa del padre inducir\xEDa al acreedor a\ + \ abstenerse de emprender cualquier acci\xF3n contra el hijo, dicha tolerancia\ + \ era, como cuesti\xF3n de derecho, una contraprestaci\xF3n negociada por\ + \ la promesa del padre." + C: "Los cinco pagos del padre al acreedor por un total de $2,500 manifestaron\ + \ una intenci\xF3n seria por parte del padre de quedar obligado contractualmente,\ + \ y dicha manifestaci\xF3n generalmente se reconoce como un sustituto eficaz\ + \ de la contraprestaci\xF3n." + D: "Al asumir la obligaci\xF3n de deuda antecedente que el hijo deb\xEDa al\ + \ acreedor, el padre se convert\xEDa en fiador cuya promesa al acreedor era\ + \ exigible, ya que estaba por escrito y respaldada por una contraprestaci\xF3\ + n adecuada." + input_correct_responses: + - A + input_question: "Un hijo le deb\xEDa a un acreedor 5.000 d\xF3lares. El padre\ + \ del hijo se puso en contacto con el acreedor y le dijo que quer\xEDa pagar\ + \ la deuda del hijo. El padre firm\xF3 un documento que establec\xEDa que pagar\xED\ + a la deuda del hijo a raz\xF3n de 500 d\xF3lares al mes durante 10 meses. El\ + \ acreedor no se comprometi\xF3 verbalmente ni por escrito a abstenerse de demandar\ + \ al hijo para cobrar la deuda de $5,000, y el padre no hizo ninguna solicitud\ + \ oral ni escrita de dicha indulgencia. Durante los siguientes cinco meses,\ + \ el padre realiz\xF3 y el acreedor acept\xF3 los pagos mensuales de $500 seg\xFA\ + n lo acordado. Durante ese per\xEDodo, el acreedor, de hecho, se abstuvo de\ + \ emprender cualquier acci\xF3n legal contra el hijo. Sin embargo, el padre\ + \ inform\xF3 entonces al acreedor que no har\xEDa m\xE1s pagos de la deuda.\ + \ \xBFCu\xE1l de los siguientes es el argumento m\xE1s convincente de que el\ + \ padre es responsable ante el acreedor seg\xFAn los t\xE9rminos de su acuerdo?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_law +tag: mmlu_es_llama_humanities_tasks +task: mmlu_es_llama_professional_law +task_alias: professional_law diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_professional_medicine.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_professional_medicine.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7d7b5373fe75d8d16355ae50077d7fbfe31cdbeb --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_professional_medicine.yaml @@ -0,0 +1,95 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Labetalol + B: Una dosis de carga de cloruro de potasio. + C: nifedipina + D: Fenoxibenzamina + input_correct_responses: + - D + input_question: "Un hombre de 42 a\xF1os acude al consultorio para una evaluaci\xF3\ + n preoperatoria antes de someterse a una adrenalectom\xEDa programada para dentro\ + \ de 2 semanas. Hace un mes, recibi\xF3 atenci\xF3n en urgencias por un dolor\ + \ en el flanco derecho tras una colisi\xF3n automovil\xEDstica. En ese momento,\ + \ la presi\xF3n arterial era de 160/100 mm Hg y la tomograf\xEDa computarizada\ + \ del abdomen mostr\xF3 una masa suprarrenal izquierda incidental de 10 cm.\ + \ Los resultados de los estudios de laboratorio, incluido el hemograma completo,\ + \ las concentraciones s\xE9ricas de electrolitos y las pruebas de funci\xF3\ + n hep\xE1tica, estuvieron dentro de los rangos de referencia. Por lo dem\xE1\ + s, el paciente estaba sano y nunca le hab\xEDan dicho que ten\xEDa la presi\xF3\ + n arterial elevada. No toma medicamentos. Una visita de seguimiento en el consultorio\ + \ hace 2 semanas revel\xF3 concentraciones elevadas de normetanefrina y metanefrina\ + \ en orina y aldosterona plasm\xE1tica. El paciente fue remitido a un cirujano,\ + \ quien recomend\xF3 la adrenalectom\xEDa. Hoy en d\xEDa, los signos vitales\ + \ son temperatura de 36,6 \xB0C (97,9 \xB0F), pulso de 100/min, respiraci\xF3\ + n de 14/min y presi\xF3n arterial de 170/95 mm Hg. La exploraci\xF3n f\xEDsica\ + \ no revela hallazgos significativos. \xBFLa preparaci\xF3n preoperatoria inicial\ + \ debe incluir tratamiento con cu\xE1l de los siguientes?" + - input_choice_list: + A: "torsi\xF3n sacra de izquierda a izquierda" + B: "torsi\xF3n sacra de izquierda a derecha" + C: "Flexi\xF3n sacra unilateral derecha" + D: "torsi\xF3n sacra de derecha a derecha" + input_correct_responses: + - D + input_question: "Un hombre de 36 a\xF1os acude a la consulta con antecedentes\ + \ de 3 semanas de dolor lumbar. Niega haber sufrido ning\xFAn trauma reciente,\ + \ pero dice que sube y baja de su camioneta varias veces al d\xEDa para realizar\ + \ su trabajo. La exploraci\xF3n del paciente en dec\xFAbito prono revela un\ + \ surco sacro profundo a la izquierda, un \xE1ngulo lateral posteroinferior\ + \ a la derecha y una uni\xF3n lumbosacra que salta libremente al comprimirse.\ + \ El diagn\xF3stico m\xE1s probable es" + - input_choice_list: + A: dopamina + B: Glutamato + C: noradrenalina + D: serotonina + input_correct_responses: + - D + input_question: "Una mujer de 32 a\xF1os, que antes estaba sana, acude al m\xE9\ + dico 8 meses despu\xE9s de que su marido muriera en un accidente automovil\xED\ + stico. Desde entonces, ha tenido menos apetito y dificultad para conciliar el\ + \ sue\xF1o. Afirma que suele estar triste y llora con frecuencia. Ha estado\ + \ revisando la cerradura de la puerta cinco veces antes de salir de casa y tiene\ + \ que contar exactamente cinco trozos de papel higi\xE9nico antes de usarlo.\ + \ Ella dice que siempre ha sido perfeccionista pero que estos impulsos y rituales\ + \ son nuevos. \xBFA cu\xE1l de los siguientes neurotransmisores se debe dirigir\ + \ la farmacoterapia?" + - input_choice_list: + A: "Rinitis al\xE9rgica" + B: Virus de Epstein Barr + C: "micoplasma neumon\xEDa" + D: Rinovirus + input_correct_responses: + - D + input_question: "Un hombre de 44 a\xF1os acude a consulta por dolor de garganta,\ + \ tos no productiva, secreci\xF3n nasal y cefalea frontal de 3 d\xEDas de evoluci\xF3\ + n. Dice que el dolor de cabeza empeora por la ma\xF1ana y que el ibuprofeno\ + \ proporciona cierto alivio. No ha tenido dificultad para respirar. El historial\ + \ m\xE9dico no tiene nada de especial. No toma m\xE1s medicamentos que el ibuprofeno\ + \ para el dolor. Los signos vitales son temperatura de 37,4 \xB0C (99,4 \xB0\ + F), pulso de 88/min, respiraci\xF3n de 18/min y presi\xF3n arterial de 120/84\ + \ mm Hg. El examen de las fosas nasales muestra membranas mucosas eritematosas.\ + \ El examen de la garganta muestra eritema e hiperplasia linfoide folicular\ + \ en la orofaringe posterior. No hay adenopat\xEDa cervical palpable. Los pulmones\ + \ est\xE1n limpios a la auscultaci\xF3n. \xBFCu\xE1l de las siguientes es la\ + \ causa m\xE1s probable de los s\xEDntomas de este paciente?" + - input_choice_list: + A: escaleno anterior + B: dorsal ancho + C: pectoral menor + D: cuadrado lumbar + input_correct_responses: + - C + input_question: "Un corredor de marat\xF3n de 22 a\xF1os acude a la consulta con\ + \ dolor en las costillas del lado derecho cuando corre largas distancias. El\ + \ examen f\xEDsico revela hallazgos card\xEDacos y pulmonares normales y una\ + \ disfunci\xF3n de la exhalaci\xF3n en las costillas 4-5 de la derecha. \xBF\ + Cu\xE1l de los siguientes m\xFAsculos o grupos de m\xFAsculos ser\xE1 m\xE1\ + s \xFAtil para corregir esta disfunci\xF3n utilizando un m\xE9todo directo?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_medicine +tag: mmlu_es_llama_other_tasks +task: mmlu_es_llama_professional_medicine +task_alias: professional_medicine diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_professional_psychology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_professional_psychology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ce6a1d182cd37ecf1a6fe7f217c20c99825c99db --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_professional_psychology.yaml @@ -0,0 +1,63 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "D\xEDgale a su cliente los pros y los contras de cada programa que conozca,\ + \ excepto aquel en el que est\xE1 inscrito." + B: "recomienda a tu cliente el programa en el que est\xE1s inscrito y expl\xED\ + cale el bono de $50 que recibir\xE1s" + C: "Recomiende a su cliente el programa en el que est\xE1 inscrito y ofr\xE9\ + zcale que el bono de $50 se acredite en la cuenta de su cliente en el programa." + D: "D\xEDgale a su cliente los pros y los contras de cada programa que conozca,\ + \ pero no reclame el bono de $50 si su cliente se inscribe en su programa." + input_correct_responses: + - D + input_question: "Uno de sus clientes de terapia le pide consejo sobre un buen\ + \ programa de reducci\xF3n de peso. Has investigado los programas de la comunidad\ + \ y est\xE1s inscrito en el que consideras mejor. Este programa ofrece un bono\ + \ de $50 a sus patrocinadores por cada nueva persona que traen al programa.\ + \ En estas circunstancias, su respuesta m\xE1s apropiada ser\xEDa" + - input_choice_list: + A: menos sensible a puntuaciones extremas que la media + B: "m\xE1s \xFAtil para distribuciones asim\xE9tricas" + C: sensible a valores extremos y distribuciones muy sesgadas + D: "el n\xFAmero que ocurre con m\xE1s frecuencia" + input_correct_responses: + - D + input_question: "Hay tres formas de medir la Tendencia Central: la Media, la Mediana\ + \ y la Moda. Seg\xFAn tu conocimiento sobre ellos, \xBFcu\xE1l es la moda?" + - input_choice_list: + A: individualismo. + B: Individualismo y distancia de poder. + C: Distancia de poder y masculinidad. + D: "evitaci\xF3n de la incertidumbre." + input_correct_responses: + - A + input_question: "En t\xE9rminos de las cinco dimensiones culturales de Hofstede\ + \ (1980), Estados Unidos ocupa el primer lugar de la escala en:" + - input_choice_list: + A: "Es una fantas\xEDa que distrae al cliente de la realidad." + B: representa "sentimientos encontrados" hacia el terapeuta. + C: '"es una forma de "actuar"."' + D: refleja el inconsciente personal y colectivo del cliente. + input_correct_responses: + - D + input_question: "Carl Jung cre\xEDa que la transferencia de un cliente:" + - input_choice_list: + A: "no est\xE1n correlacionados entre s\xED pero est\xE1n moderadamente correlacionados\ + \ con el criterio" + B: "tienen bajas correlaciones entre s\xED y bajas correlaciones con el criterio" + C: "est\xE1n altamente intercorrelacionados entre s\xED y moderadamente correlacionados\ + \ con el criterio" + D: "tienen correlaciones bajas con el criterio pero est\xE1n moderadamente correlacionadas\ + \ entre s\xED" + input_correct_responses: + - A + input_question: "En la construcci\xF3n de una ecuaci\xF3n de regresi\xF3n m\xFA\ + ltiple con fines de predicci\xF3n, la combinaci\xF3n \xF3ptima de medidas es\ + \ aquella en la que los predictores" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_psychology +tag: mmlu_es_llama_social_sciences_tasks +task: mmlu_es_llama_professional_psychology +task_alias: professional_psychology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_public_relations.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_public_relations.yaml new file mode 100644 index 0000000000000000000000000000000000000000..96ce97a23d0f85612a47aa959b885047cf44e245 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_public_relations.yaml @@ -0,0 +1,59 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "D\xE9le al periodista otra informaci\xF3n que est\xE9 segura de que es correcta." + B: "Diga que la informaci\xF3n es "extraoficial" y se difundir\xE1\ + \ m\xE1s adelante." + C: "Diga "No lo s\xE9" y prometa proporcionar la informaci\xF3n m\xE1\ + s tarde." + D: Diga "sin comentarios" en lugar de parecer desinformado. + input_correct_responses: + - C + input_question: "\xBFQu\xE9 debe hacer un profesional de relaciones p\xFAblicas\ + \ en los medios si no sabe la respuesta a la pregunta de un periodista?" + - input_choice_list: + A: "Compre nombres de dominio que puedan ser utilizados por grupos de oposici\xF3\ + n." + B: "Publique comentarios an\xF3nimos en blogs para combatir esta informaci\xF3\ + n." + C: "Prepare un comunicado de prensa que desacredite la informaci\xF3n inexacta." + D: "Realizar cambios en las pol\xEDticas para abordar las quejas destacadas\ + \ en estos sitios." + input_correct_responses: + - D + input_question: "En la gesti\xF3n de problemas, \xBFcu\xE1l es el enfoque m\xE1\ + s proactivo para abordar la informaci\xF3n negativa o enga\xF1osa publicada\ + \ en l\xEDnea sobre su organizaci\xF3n?" + - input_choice_list: + A: Hubo una respuesta coordinada de los medios. + B: Se comunicaron mensajes consistentes. + C: "Las cr\xEDticas fueron tomadas como ataques a la Iglesia cat\xF3lica." + D: Se mantuvo la credibilidad del Vaticano. + input_correct_responses: + - C + input_question: "\xBFCu\xE1l de estas afirmaciones es cierta respecto del Vaticano\ + \ en 2010, en el momento de las acusaciones de encubrimiento de abuso infantil?" + - input_choice_list: + A: Definiendo el programa + B: Planificando el programa + C: Tomar medidas e implementar ideas + D: "Evaluaci\xF3n del programa" + input_correct_responses: + - A + input_question: "\xBFEn qu\xE9 etapa del proceso de planificaci\xF3n se llevar\xED\ + a a cabo un an\xE1lisis de la situaci\xF3n?" + - input_choice_list: + A: Paz verde + B: la ONU + C: Oxfam + D: Fondo Mundial para la Vida Silvestre + input_correct_responses: + - D + input_question: "\xBFLa Hora del Planeta fue una campa\xF1a lanzada por qu\xE9\ + \ organizaci\xF3n?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_public_relations +tag: mmlu_es_llama_social_sciences_tasks +task: mmlu_es_llama_public_relations +task_alias: public_relations diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_security_studies.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_security_studies.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3a9dfb1f02b7246b606bda5947aac390938eea9f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_security_studies.yaml @@ -0,0 +1,113 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Competencia es otro t\xE9rmino para la diplomacia coercitiva, pero cubre\ + \ un conjunto m\xE1s limitado de criterios; La compelencia cubre aquellas\ + \ amenazas dirigidas a iniciar una acci\xF3n adversaria. Una amenaza de obligar\ + \ a un Estado a ceder parte de su territorio contar\xEDa como diplomacia coercitiva,\ + \ siempre y cuando esa amenaza inicie de manera proactiva una acci\xF3n antes\ + \ de que se adopte una diplomacia reactiva." + B: "La diplomacia coercitiva constituye las amenazas de fuerza limitada para\ + \ inducir el incentivo del adversario a cumplir con las demandas del coaccionador.\ + \ Es una estrategia de influencia que tiene como objetivo obtener el cumplimiento:\ + \ el uso de la fuerza para derrotar primero a un oponente no cuenta. Deja\ + \ un elemento de elecci\xF3n con el objetivo de cumplir o continuar." + C: "La fuerza militar, o la amenaza de la fuerza militar, utiliza el miedo para\ + \ lograr objetivos estrat\xE9gicos. La diplomacia coercitiva se diferencia\ + \ de este enfoque porque no utiliza el miedo como herramienta para coaccionar\ + \ a un adversario." + D: "La diplomacia coercitiva se emplea para utilizar la fuerza pero para limitar\ + \ sus efectos en la comunidad internacional. La diplomacia coercitiva es una\ + \ estrategia agresiva cuyo objetivo es lograr el cumplimiento mediante la\ + \ derrota. No deja al objetivo un elemento de elecci\xF3n, ya sea forz\xE1\ + ndolo a cumplir o involucrarse en un conflicto. Busca controlar imponiendo\ + \ el cumplimiento eliminando cualquier oportunidad de negociaci\xF3n o concesi\xF3\ + n." + input_correct_responses: + - B + input_question: "\xBFQu\xE9 distingue la diplomacia coercitiva de la fuerza militar?" + - input_choice_list: + A: "Los ni\xF1os soldados son v\xEDctimas de combates que necesitan reeducaci\xF3\ + n y rehabilitaci\xF3n." + B: "Los ni\xF1os y sus madres no son sujetos activos en la guerra y es mejor\ + \ considerarlos como sujetos en la esfera privada." + C: "Los ni\xF1os suelen ser espectadores inocentes de la guerra y es mejor utilizarlos\ + \ como s\xEDmbolos de la paz." + D: "Los ni\xF1os tienen una subjetividad pol\xEDtica que se pasa por alto cuando\ + \ se les considera v\xEDctimas pasivas de la guerra." + input_correct_responses: + - D + input_question: "\xBFCu\xE1l de los siguientes es el mejor lente a trav\xE9s del\ + \ cual investigar el papel de los ni\xF1os soldados?" + - input_choice_list: + A: "Como una amenaza existencial que requiere una acci\xF3n inmediata y extraordinaria,\ + \ representando una amenaza a la supervivencia del Estado o a la seguridad\ + \ de la sociedad." + B: "Como que requiere una acci\xF3n inmediata y extraordinaria por parte del\ + \ Estado, amenazando la supervivencia de un objeto de referencia y, por lo\ + \ tanto, justificando el uso de medidas que normalmente no se emplean en el\ + \ \xE1mbito pol\xEDtico." + C: Como una amenaza urgente a la supervivencia del objeto de referencia, tan + grave que legitima el empleo de acciones extraordinarias como respuesta. + D: Como una amenaza urgente a la supervivencia de la audiencia que requiere + medidas extraordinarias o de emergencia. + input_correct_responses: + - C + input_question: "Para convertirse en titulizado, \xBFde cu\xE1l de estas maneras\ + \ se debe presentar una amenaza?" + - input_choice_list: + A: Existen divisiones tan amplias dentro del marco de la seguridad humana con + respecto a la naturaleza de las amenazas y los objetos de referencia que no + se pueden establecer comparaciones ampliamente aplicables entre los enfoques + centrados en el Estado y la seguridad humana. + B: "Al adoptar el marco de la seguridad humana, las limitaciones del enfoque\ + \ realista estatista se vuelven evidentes. Mientras que la seguridad humana\ + \ define el objeto de referencia como la persona o poblaci\xF3n, los enfoques\ + \ estadoc\xE9ntricos priorizan la seguridad del Estado, restando prioridad\ + \ a la b\xFAsqueda de la seguridad humana." + C: "El enfoque de seguridad centrado en el Estado es una facci\xF3n de la seguridad\ + \ humana, generalmente definida dentro de la escuela amplia de seguridad humana.\ + \ Al estar centrado en el Estado, este enfoque prioriza al individuo como\ + \ objeto de referencia en los estudios de seguridad." + D: "Tanto el enfoque de seguridad centrado en el Estado como el centrado en\ + \ el ser humano son mutuamente excluyentes y ofrecen un marco anal\xEDtico\ + \ suficiente para comprender el sistema de seguridad internacional. Por lo\ + \ tanto, el papel de los analistas de seguridad es determinar cu\xE1l de estos\ + \ conceptos sustanciales es correcto y cu\xE1l debe descartarse." + input_correct_responses: + - B + input_question: "\xBFC\xF3mo podemos describir mejor la relaci\xF3n entre el enfoque\ + \ estadoc\xE9ntrico y el concepto de seguridad humana?" + - input_choice_list: + A: "La competencia entre naciones m\xE1s grandes ha resultado en que algunos\ + \ pa\xEDses apoyen activamente a grupos terroristas para socavar la fuerza\ + \ de estados rivales. Las redes terroristas son clubes de patrocinio extendido\ + \ mantenidos y pagados por sus estados donantes y son conceptualizados como\ + \ actores estatales, a los que se debe enfrentar utilizando la fuerza militar." + B: "La globalizaci\xF3n ha permitido la internacionalizaci\xF3n de las actividades\ + \ terroristas al abrir su espacio operativo, aunque la coordinaci\xF3n todav\xED\ + a se gestiona desde una base geogr\xE1fica. Esto sugiere que los grupos terroristas\ + \ est\xE1n estructurados a nivel nacional, lo que significa que el terrorismo\ + \ no puede considerarse en t\xE9rminos de una guerra que debe ser derrotada\ + \ militarmente sin tener implicaciones graves para la poblaci\xF3n ind\xED\ + gena." + C: "El terrorismo puede verse como un problema que debe resolverse por medios\ + \ militares (guerra contra el terrorismo), mediante t\xE9cnicas policiales\ + \ normales (terrorismo como delito) o como un problema m\xE9dico con causas\ + \ y s\xEDntomas subyacentes (terrorismo como enfermedad)." + D: "El terrorismo es visto como un problema criminal. La criminalizaci\xF3n\ + \ del terrorismo tiene dos implicaciones importantes. En primer lugar, sugiere\ + \ que el terrorismo puede ser erradicado (los terroristas pueden ser capturados\ + \ y juzgados mediante procedimientos judiciales normales, eliminando as\xED\ + \ la amenaza de la sociedad) y, en segundo lugar, sugiere que se pueden aplicar\ + \ t\xE9cnicas criminales preventivas para impedir su desarrollo." + input_correct_responses: + - C + input_question: "\xBFCu\xE1les son los marcos de an\xE1lisis dentro de los cuales\ + \ se ha considerado el terrorismo (a partir de 2020)?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_security_studies +tag: mmlu_es_llama_social_sciences_tasks +task: mmlu_es_llama_security_studies +task_alias: security_studies diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_sociology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_sociology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1dac1c345da7ba4971d9b90b0bbecf0ba814aa07 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_sociology.yaml @@ -0,0 +1,61 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Atenci\xF3n sanitaria y educaci\xF3n gratuitas para todos." + B: "un salario m\xEDnimo" + C: pleno empleo + D: bienestar universal + input_correct_responses: + - B + input_question: "\xBFCu\xE1l de los siguientes no pretend\xEDa proporcionar el\ + \ Estado de bienestar de posguerra de 1948?" + - input_choice_list: + A: un paseo de feria + B: un circo + C: un teatro de marionetas + D: un ballet + input_correct_responses: + - C + input_question: "\xBFQu\xE9 describe Berger (1963) como met\xE1fora de la realidad\ + \ social?" + - input_choice_list: + A: "La creciente burocracia del Estado ha hecho de la religi\xF3n s\xF3lo una\ + \ parte marginal de nuestras vidas." + B: "A pesar del debilitamiento de la autoridad tradicional, nuestra vida cotidiana\ + \ y nuestro "sentido com\xFAn" siguen moldeados por creencias y\ + \ valores religiosos." + C: "La participaci\xF3n religiosa en el culto colectivo puede haber disminuido,\ + \ pero la gente todav\xEDa practica su fe en privado." + D: "Es mucho m\xE1s probable que las personas hablen de sus creencias religiosas\ + \ en entornos p\xFAblicos e informales." + input_correct_responses: + - B + input_question: "El cambio de la "religi\xF3n civil" a la "religi\xF3\ + n com\xFAn" significa que:" + - input_choice_list: + A: La tendencia de la clase trabajadora a no realizar sus propios intereses. + B: "Una ideolog\xEDa dominante que legitima el poder econ\xF3mico, pol\xEDtico\ + \ y cultural." + C: "una forma de conciencia dual basada en la ideolog\xEDa y las experiencias\ + \ cotidianas" + D: una forma de pago dada por el topiario pendiente + input_correct_responses: + - B + input_question: "El t\xE9rmino "hegemon\xEDa" se refiere a:" + - input_choice_list: + A: "La mayor\xEDa de las huelgas pasan desapercibidas para los empleadores y\ + \ los medios de comunicaci\xF3n." + B: "No todos los conflictos laborales ser\xE1n informados por el empleador." + C: "La definici\xF3n de huelga excluye aquellas que involucran a menos de diez\ + \ trabajadores o duran menos de un d\xEDa." + D: "Es dif\xEDcil comparar huelgas que se midieron de diferentes maneras." + input_correct_responses: + - A + input_question: "\xBFCu\xE1l de los siguientes no es un problema asociado con\ + \ las estad\xEDsticas oficiales sobre huelgas?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_sociology +tag: mmlu_es_llama_social_sciences_tasks +task: mmlu_es_llama_sociology +task_alias: sociology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_us_foreign_policy.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_us_foreign_policy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..641bc6a8d51c09ac9c4a1ab18c1bec56426ddf69 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_us_foreign_policy.yaml @@ -0,0 +1,61 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Da\xF1\xF3 el apoyo al modelo estadounidense de econom\xEDa pol\xEDtica\ + \ y capitalismo." + B: "Cre\xF3 ira contra Estados Unidos por exagerar la crisis." + C: "Aument\xF3 el apoyo al liderazgo global estadounidense bajo el presidente\ + \ Obama." + D: "Redujo el uso global del d\xF3lar estadounidense." + input_correct_responses: + - A + input_question: "\xBFC\xF3mo afect\xF3 la crisis financiera de 2008 a la reputaci\xF3\ + n internacional de Estados Unidos?" + - input_choice_list: + A: "Globaliz\xF3 la contenci\xF3n." + B: "Militariz\xF3 la contenci\xF3n." + C: "Pidi\xF3 el desarrollo de la bomba de hidr\xF3geno." + D: Todo lo anterior + input_correct_responses: + - D + input_question: "\xBFC\xF3mo cambi\xF3 el NSC-68 la estrategia estadounidense?" + - input_choice_list: + A: "pol\xEDtica terrorista." + B: "pol\xEDtica econ\xF3mica." + C: "la pol\xEDtica exterior." + D: "pol\xEDtica internacional." + input_correct_responses: + - C + input_question: "El \xE1mbito de las decisiones pol\xEDticas relacionadas principalmente\ + \ con las relaciones entre Estados Unidos y el resto del mundo se conoce como" + - input_choice_list: + A: "Los realistas defensivos ponen mayor \xE9nfasis en el papel de las instituciones\ + \ internacionales" + B: "Los realistas defensivos ponen menos \xE9nfasis en los factores geogr\xE1\ + ficos" + C: "Los realistas ofensivos dan m\xE1s prioridad al inter\xE9s nacional que\ + \ los realistas defensivos." + D: Los realistas defensivos creen que los estados maximizan la seguridad, mientras + que los realistas ofensivos creen que los estados maximizan el poder. + input_correct_responses: + - D + input_question: "\xBFEn qu\xE9 se diferencian el realismo defensivo y el realismo\ + \ ofensivo en su explicaci\xF3n del comportamiento del Estado?" + - input_choice_list: + A: "La globalizaci\xF3n hab\xEDa hecho demasiado ricos a hombres como \xE9l" + B: "La globalizaci\xF3n solo benefici\xF3 a ciertos estados americanos, como\ + \ Nueva York" + C: "Las elites liberales hab\xEDan alentado la globalizaci\xF3n, mientras que\ + \ los "estadounidenses comunes y corrientes" perdieron empleos a\ + \ causa de ella." + D: "La globalizaci\xF3n foment\xF3 guerras comerciales da\xF1inas" + input_correct_responses: + - C + input_question: "\xBFC\xF3mo atac\xF3 Donald Trump la globalizaci\xF3n en la campa\xF1\ + a de 2016?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_us_foreign_policy +tag: mmlu_es_llama_social_sciences_tasks +task: mmlu_es_llama_us_foreign_policy +task_alias: us_foreign_policy diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_virology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_virology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c6da38400f02ed7c6fbfe2c75d47691fbee2c51e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_virology.yaml @@ -0,0 +1,52 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Porque no tienen \xE1cido nucleico." + B: Requieren un virus ayudante + C: "S\xF3lo se replican en c\xE9lulas en divisi\xF3n." + D: "Puede integrarse en los cromosomas del hu\xE9sped." + input_correct_responses: + - A + input_question: "\xBFPor qu\xE9 los parvovirus son un par\xE1sito de gran impacto?" + - input_choice_list: + A: "Los virus fr\xE1giles a menudo se visualizan con ARN arrojado desde el interior" + B: Virus alargados + C: "Virus icosa\xE9dricos con envoltura." + D: Virus muy grandes + input_correct_responses: + - A + input_question: "\xBFCu\xE1l de las siguientes es una caracter\xEDstica morfol\xF3\ + gica de los paramixovirus?" + - input_choice_list: + A: "Recopilaci\xF3n de datos" + B: "Establecimiento de un dep\xF3sito de muestras biol\xF3gicas" + C: "Inter\xE9s de los participantes" + D: "Administraci\xF3n del cuestionario por parte del personal." + input_correct_responses: + - B + input_question: "Un factor clave que facilit\xF3 la aplicaci\xF3n de estudios\ + \ de casos y controles anidados del MACS fue:" + - input_choice_list: + A: Cambio de comportamiento + B: Cobertura completa + C: "Uso eficaz de la teor\xEDa del comportamiento." + D: Cambio de comportamiento sostenido + input_correct_responses: + - D + input_question: "El objetivo m\xE1s importante de una intervenci\xF3n conductual\ + \ es:" + - input_choice_list: + A: Individuos infectados por VIH seroprevalentes + B: Seronegativos + C: Seroconvertidores + D: Seronegativos de alto riesgo + input_correct_responses: + - C + input_question: "El tiempo medio de supervivencia hasta el SIDA y la muerte se\ + \ estableci\xF3 de la siguiente manera:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_virology +tag: mmlu_es_llama_other_tasks +task: mmlu_es_llama_virology +task_alias: virology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_world_religions.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_world_religions.yaml new file mode 100644 index 0000000000000000000000000000000000000000..baf441cb69fac957cb0a89493a3ee65effe401ca --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/mmlu_es_world_religions.yaml @@ -0,0 +1,51 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: El arcoiris + B: "Circuncisi\xF3n" + C: Un hijo + D: "Bar mitzv\xE1" + input_correct_responses: + - B + input_question: "\xBFCu\xE1l es la se\xF1al del pacto para los varones jud\xED\ + os?" + - input_choice_list: + A: El Dharma + B: La sangha + C: El Buda + D: El Bodhisattva + input_correct_responses: + - A + input_question: "\xBFCu\xE1l es la segunda joya del budismo?" + - input_choice_list: + A: shang + B: zhou + C: han + D: Xia + input_correct_responses: + - B + input_question: "\xBFEn qu\xE9 dinast\xEDa se desarroll\xF3 el "Mandato del\ + \ Cielo" para legitimar a los nuevos gobernantes?" + - input_choice_list: + A: Honen + B: Tanaka + C: Tokugawa + D: Meiji + input_correct_responses: + - D + input_question: "\xBFQu\xE9 gobierno japon\xE9s promovi\xF3 una especie de culto\ + \ nacional basado en el emperador y sus asociaciones con los kami?" + - input_choice_list: + A: Textos rituales + B: "Textos filos\xF3ficos" + C: Himnos + D: Historias de origen + input_correct_responses: + - B + input_question: "\xBFC\xF3mo se pueden caracterizar los Upanishads?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_world_religions +tag: mmlu_es_llama_humanities_tasks +task: mmlu_es_llama_world_religions +task_alias: world_religions diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/utils.py b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..a7d2455276c63f057c20607e2115c7bd357a0da6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_es/utils.py @@ -0,0 +1,104 @@ +from functools import partial + +import datasets + + +def process_docs(dataset: datasets.Dataset, subtask) -> datasets.Dataset: + return dataset.filter( + lambda example: example["subtask_name"] == f"mmlu_es_chat.{subtask}" + ) + + +process_docs_jurisprudence = partial(process_docs, subtask="jurisprudence") +process_docs_miscellaneous = partial(process_docs, subtask="miscellaneous") +process_docs_business_ethics = partial(process_docs, subtask="business_ethics") +process_docs_professional_accounting = partial( + process_docs, subtask="professional_accounting" +) +process_docs_abstract_algebra = partial(process_docs, subtask="abstract_algebra") +process_docs_high_school_world_history = partial( + process_docs, subtask="high_school_world_history" +) +process_docs_elementary_mathematics = partial( + process_docs, subtask="elementary_mathematics" +) +process_docs_electrical_engineering = partial( + process_docs, subtask="electrical_engineering" +) +process_docs_us_foreign_policy = partial(process_docs, subtask="us_foreign_policy") +process_docs_high_school_geography = partial( + process_docs, subtask="high_school_geography" +) +process_docs_anatomy = partial(process_docs, subtask="anatomy") +process_docs_global_facts = partial(process_docs, subtask="global_facts") +process_docs_conceptual_physics = partial(process_docs, subtask="conceptual_physics") +process_docs_astronomy = partial(process_docs, subtask="astronomy") +process_docs_nutrition = partial(process_docs, subtask="nutrition") +process_docs_computer_security = partial(process_docs, subtask="computer_security") +process_docs_high_school_mathematics = partial( + process_docs, subtask="high_school_mathematics" +) +process_docs_college_computer_science = partial( + process_docs, subtask="college_computer_science" +) +process_docs_public_relations = partial(process_docs, subtask="public_relations") +process_docs_world_religions = partial(process_docs, subtask="world_religions") +process_docs_high_school_us_history = partial( + process_docs, subtask="high_school_us_history" +) +process_docs_logical_fallacies = partial(process_docs, subtask="logical_fallacies") +process_docs_professional_psychology = partial( + process_docs, subtask="professional_psychology" +) +process_docs_philosophy = partial(process_docs, subtask="philosophy") +process_docs_college_mathematics = partial(process_docs, subtask="college_mathematics") +process_docs_high_school_chemistry = partial( + process_docs, subtask="high_school_chemistry" +) +process_docs_moral_scenarios = partial(process_docs, subtask="moral_scenarios") +process_docs_security_studies = partial(process_docs, subtask="security_studies") +process_docs_formal_logic = partial(process_docs, subtask="formal_logic") +process_docs_college_medicine = partial(process_docs, subtask="college_medicine") +process_docs_professional_medicine = partial( + process_docs, subtask="professional_medicine" +) +process_docs_high_school_macroeconomics = partial( + process_docs, subtask="high_school_macroeconomics" +) +process_docs_college_chemistry = partial(process_docs, subtask="college_chemistry") +process_docs_moral_disputes = partial(process_docs, subtask="moral_disputes") +process_docs_high_school_microeconomics = partial( + process_docs, subtask="high_school_microeconomics" +) +process_docs_econometrics = partial(process_docs, subtask="econometrics") +process_docs_high_school_psychology = partial( + process_docs, subtask="high_school_psychology" +) +process_docs_high_school_computer_science = partial( + process_docs, subtask="high_school_computer_science" +) +process_docs_human_sexuality = partial(process_docs, subtask="human_sexuality") +process_docs_college_physics = partial(process_docs, subtask="college_physics") +process_docs_marketing = partial(process_docs, subtask="marketing") +process_docs_virology = partial(process_docs, subtask="virology") +process_docs_high_school_statistics = partial( + process_docs, subtask="high_school_statistics" +) +process_docs_professional_law = partial(process_docs, subtask="professional_law") +process_docs_college_biology = partial(process_docs, subtask="college_biology") +process_docs_sociology = partial(process_docs, subtask="sociology") +process_docs_high_school_european_history = partial( + process_docs, subtask="high_school_european_history" +) +process_docs_medical_genetics = partial(process_docs, subtask="medical_genetics") +process_docs_international_law = partial(process_docs, subtask="international_law") +process_docs_prehistory = partial(process_docs, subtask="prehistory") +process_docs_human_aging = partial(process_docs, subtask="human_aging") +process_docs_high_school_government_and_politics = partial( + process_docs, subtask="high_school_government_and_politics" +) +process_docs_machine_learning = partial(process_docs, subtask="machine_learning") +process_docs_high_school_physics = partial(process_docs, subtask="high_school_physics") +process_docs_clinical_knowledge = partial(process_docs, subtask="clinical_knowledge") +process_docs_high_school_biology = partial(process_docs, subtask="high_school_biology") +process_docs_management = partial(process_docs, subtask="management") diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/_continuation_template_yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/_continuation_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..ae1a2742147f03466b7014969e842961ba23f66a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/_continuation_template_yaml @@ -0,0 +1,32 @@ +dataset_path: meta-llama/Llama-3.1-8B-Instruct-evals +dataset_name: Llama-3.1-8B-Instruct-evals__multilingual_mmlu_fr__details +output_type: generate_until +test_split: latest +doc_to_text: "Given the following question and four candidate answers (A, B, C and D), choose the best answer.\nQuestion: {{input_question.strip()}}\nA. {{input_choice_list.A}}\nB. {{input_choice_list.B}}\nC. {{input_choice_list.C}}\nD. {{input_choice_list.D}}\nYour response should end with \"The best answer is [the_answer_letter]\" where the [the_answer_letter] is one of A, B, C or D." +gen_prefix: "The best answer is" +doc_to_target: "{{input_correct_responses[0]}}." +num_fewshot: 5 +metric_list: + - metric: exact_match + aggregation: mean + higher_is_better: true + ignore_case: true + ignore_punctuation: true + regexes_to_ignore: + - "\\$" + - "\\.$" +generation_kwargs: + do_sample: false + temperature: 0 + until: + - "." + max_gen_toks: 10 +filter_list: + - name: strict_match + filter: + - function: remove_whitespace + - function: take_first +metadata: + version: 1.0 +dataset_kwargs: + trust_remote_code: true diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/_mmlu_fr_humanities.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/_mmlu_fr_humanities.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2a36f1b2812a6a07589c5599923464f898c6c54b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/_mmlu_fr_humanities.yaml @@ -0,0 +1,11 @@ +group: mmlu_fr_llama_humanities +group_alias: humanities +task: + - mmlu_fr_llama_humanities_tasks +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: True + filter_list: [strict_match] +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/_mmlu_fr_llama.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/_mmlu_fr_llama.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e9d06593f2dae40672f08fc5c0dc1fe719b54844 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/_mmlu_fr_llama.yaml @@ -0,0 +1,13 @@ +group: mmlu_fr_llama +task: + - mmlu_fr_llama_stem + - mmlu_fr_llama_other + - mmlu_fr_llama_social_sciences + - mmlu_fr_llama_humanities +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: True + filter_list: [strict_match] +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/_mmlu_fr_other.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/_mmlu_fr_other.yaml new file mode 100644 index 0000000000000000000000000000000000000000..89184be8bc8bef4fa97fb7f3aa57d6e9c665dedd --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/_mmlu_fr_other.yaml @@ -0,0 +1,11 @@ +group: mmlu_fr_llama_other +group_alias: other +task: + - mmlu_fr_llama_other_tasks +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: True + filter_list: [strict_match] +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/_mmlu_fr_social_sciences.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/_mmlu_fr_social_sciences.yaml new file mode 100644 index 0000000000000000000000000000000000000000..eea5959ff5b29a5555eaa2a65d8e7c89054ef50f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/_mmlu_fr_social_sciences.yaml @@ -0,0 +1,11 @@ +group: mmlu_fr_llama_social_sciences +group_alias: social sciences +task: + - mmlu_fr_llama_social_sciences_tasks +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: True + filter_list: [strict_match] +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/_mmlu_fr_stem.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/_mmlu_fr_stem.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a06d8d8f7b42c3abde95573bcccb76308c1b0c40 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/_mmlu_fr_stem.yaml @@ -0,0 +1,11 @@ +group: mmlu_fr_llama_stem +group_alias: stem +task: + - mmlu_fr_llama_stem_tasks +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: True + filter_list: [strict_match] +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_abstract_algebra.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_abstract_algebra.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fe35fe528682eae9ee56e170153cede065eeb575 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_abstract_algebra.yaml @@ -0,0 +1,54 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: '0' + B: '1' + C: '2' + D: '3' + input_correct_responses: + - B + input_question: Trouver tout c dans Z_3 tel que Z_3[x]/(x^2 + c) soit un champ. + - input_choice_list: + A: Vrai vrai + B: Faux, faux + C: Vrai faux + D: Faux vrai + input_correct_responses: + - B + input_question: "D\xE9claration 1 | Si aH est un \xE9l\xE9ment d'un groupe\ + \ de facteurs, alors |aH| divise |a|. D\xE9claration 2 | Si H et K sont des\ + \ sous-groupes de G alors HK est un sous-groupe de G." + - input_choice_list: + A: Vrai vrai + B: Faux, faux + C: Vrai faux + D: Faux vrai + input_correct_responses: + - C + input_question: "D\xE9claration 1 | Chaque \xE9l\xE9ment d'un groupe g\xE9\ + n\xE8re un sous-groupe cyclique du groupe. D\xE9claration 2 | Le groupe sym\xE9\ + trique S_10 a 10 \xE9l\xE9ments." + - input_choice_list: + A: Vrai vrai + B: Faux, faux + C: Vrai faux + D: Faux vrai + input_correct_responses: + - A + input_question: "D\xE9claration 1 | Chaque fonction d'un ensemble fini sur\ + \ elle-m\xEAme doit \xEAtre un \xE0 un. D\xE9claration 2 | Tout sous-groupe\ + \ d'un groupe ab\xE9lien est ab\xE9lien." + - input_choice_list: + A: '0' + B: '3' + C: '12' + D: '30' + input_correct_responses: + - A + input_question: "Trouver la caract\xE9ristique de l'anneau 2Z." +include: _continuation_template_yaml +process_docs: !function utils.process_docs_abstract_algebra +tag: mmlu_fr_llama_stem_tasks +task: mmlu_fr_llama_abstract_algebra +task_alias: abstract_algebra diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_anatomy.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_anatomy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3ea6d989cfc4f8fec87baf0a999edda00760e70b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_anatomy.yaml @@ -0,0 +1,51 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Le premier arc pharyng\xE9" + B: "Les premier et deuxi\xE8me arcs pharyng\xE9s" + C: "Le deuxi\xE8me arc pharyng\xE9" + D: "Les deuxi\xE8me et troisi\xE8me arcs pharyng\xE9s" + input_correct_responses: + - D + input_question: "Quelle est l'origine embryologique de l'os hyo\xEFde\ + \ ?" + - input_choice_list: + A: Le nerf supraorbitaire + B: Le nerf infraorbitaire + C: Le nerf mental + D: "Aucune de ces r\xE9ponses" + input_correct_responses: + - D + input_question: "Laquelle de ces branches du nerf trijumeau contient des processus\ + \ moteurs somatiques\_?" + - input_choice_list: + A: n'ont pas d'innervation sensorielle. + B: "sont s\xE9par\xE9s par un espace de 2 mm." + C: "s'\xE9tendre dans le cou." + D: "sont compos\xE9s d'\xE9pith\xE9lium respiratoire." + input_correct_responses: + - C + input_question: "La pl\xE8vre" + - input_choice_list: + A: "supraclusion excessive des incisives lat\xE9rales sup\xE9rieures." + B: "overjet n\xE9gatif des incisives centrales sup\xE9rieures." + C: "overjet excessif des incisives lat\xE9rales sup\xE9rieures." + D: "overjet excessif des incisives centrales sup\xE9rieures." + input_correct_responses: + - C + input_question: Dans l'occlusion Classe II Div 2 d'Angle, il y a + - input_choice_list: + A: Abdominal + B: "Cr\xE2nien" + C: Pleural + D: Spinal + input_correct_responses: + - B + input_question: "Laquelle des cavit\xE9s suivantes est la cavit\xE9 corporelle\ + \ qui contient la glande pituitaire\_?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_anatomy +tag: mmlu_fr_llama_stem_tasks +task: mmlu_fr_llama_anatomy +task_alias: anatomy diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_astronomy.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_astronomy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2e00651b8fc38a0107f083452476be3a3e17eed5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_astronomy.yaml @@ -0,0 +1,72 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Ce serait plus difficile car le camion est plus lourd sur Mars. + B: "Ce serait plus facile puisque le camion est plus l\xE9ger sur Mars." + C: "Ce serait plus difficile puisque le camion est plus l\xE9ger sur Mars." + D: "Ce serait pareil o\xF9 que vous soyez." + input_correct_responses: + - D + input_question: "Vous poussez un camion sur une route. Serait-il plus simple d'acc\xE9\ + l\xE9rer ce camion sur Mars ? Pourquoi? (Supposons qu'il n'y a pas de\ + \ frottement)" + - input_choice_list: + A: "La ceinture de Kuiper ; Les com\xE8tes \xE0 courte p\xE9riode ont tendance\ + \ \xE0 se trouver dans le plan du syst\xE8me solaire, tout comme la ceinture\ + \ de Kuiper." + B: "La ceinture de Kuiper ; les com\xE8tes \xE0 courte p\xE9riode ont tendance\ + \ \xE0 provenir de directions al\xE9atoires indiquant une distribution sph\xE9\ + rique des com\xE8tes appel\xE9e ceinture de Kuiper." + C: "La ceinture d'ast\xE9ro\xEFdes; les com\xE8tes \xE0 courte p\xE9riode\ + \ ont des p\xE9riodes orbitales similaires \xE0 celles des ast\xE9ro\xEFdes\ + \ comme Vesta et se trouvent dans le plan du syst\xE8me solaire, tout comme\ + \ la ceinture d'ast\xE9ro\xEFdes." + D: "Le nuage d'Oort\_; les com\xE8tes \xE0 courte p\xE9riode ont tendance\ + \ \xE0 se trouver dans le plan du syst\xE8me solaire, tout comme le nuage\ + \ d'Oort." + input_correct_responses: + - A + input_question: "D'o\xF9 viennent la plupart des com\xE8tes \xE0 courte p\xE9\ + riode et comment le savons-nous ?" + - input_choice_list: + A: 10000 fois plus + B: 100 fois plus + C: 1000 fois plus + D: 10 fois plus + input_correct_responses: + - A + input_question: "Disons que la pupille de votre \u0153il a un diam\xE8tre de 5\ + \ mm et que vous avez un t\xE9lescope avec une ouverture de 50 cm. Combien de\ + \ lumi\xE8re le t\xE9lescope peut-il recueillir de plus que votre \u0153il\_\ + ?" + - input_choice_list: + A: "Une plan\xE8te s'est form\xE9e ici mais elle a \xE9t\xE9 bris\xE9e par\ + \ une collision catastrophique." + B: "Il n'y avait pas assez de mati\xE8re dans cette partie de la n\xE9buleuse\ + \ solaire pour former une plan\xE8te." + C: "Il y avait trop de mati\xE8re rocheuse pour former une plan\xE8te tellurique\ + \ mais pas assez de mati\xE8re gazeuse pour former une plan\xE8te jovienne." + D: "La r\xE9sonance avec Jupiter a emp\xEAch\xE9 la mati\xE8re de se rassembler\ + \ pour former une plan\xE8te." + input_correct_responses: + - D + input_question: "Pourquoi n'y a-t-il pas de plan\xE8te o\xF9 se trouve la\ + \ ceinture d'ast\xE9ro\xEFdes ?" + - input_choice_list: + A: "Parce que la surface est recouverte de min\xE9raux fortement oxyd\xE9s (\xAB\ + \ rouill\xE9s \xBB)." + B: "Parce que l'atmosph\xE8re diffuse plus de lumi\xE8re \xE0 des longueurs\ + \ d'onde plus bleues transmettant principalement de la lumi\xE8re rouge." + C: "Parce que Mars est recouvert d'anciennes coul\xE9es de lave de couleur\ + \ rouge." + D: "Parce que l'eau qui coule \xE0 la surface de Mars a modifi\xE9 les min\xE9\ + raux de surface il y a plusieurs milliards d'ann\xE9es." + input_correct_responses: + - A + input_question: Pourquoi Mars est-elle rouge ? +include: _continuation_template_yaml +process_docs: !function utils.process_docs_astronomy +tag: mmlu_fr_llama_stem_tasks +task: mmlu_fr_llama_astronomy +task_alias: astronomy diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_business_ethics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_business_ethics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ea6b5e8aa4db45215fbe4b99c28dbb88662ed538 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_business_ethics.yaml @@ -0,0 +1,65 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Externalit\xE9s, Pouvoir, Ind\xE9pendance" + B: "Publicit\xE9, Ressources non substantielles, D\xE9pendance mutuelle" + C: "Publicit\xE9, Pouvoir, Ind\xE9pendance" + D: "Externalit\xE9s, Pouvoir, D\xE9pendance mutuelle" + input_correct_responses: + - D + input_question: "Au-del\xE0 de l'analyse de rentabilisation pour s'engager\ + \ dans la RSE, il existe un certain nombre d'arguments moraux concernant\_\ + : le _______ n\xE9gatif, le _______ que les entreprises poss\xE8dent et le ________\ + \ des entreprises et de la soci\xE9t\xE9." + - input_choice_list: + A: "Responsabilit\xE9 sociale des entreprises" + B: "Gestion de l'\xE9thique des affaires" + C: "Durabilit\xE9" + D: Gestion de l'environnement + input_correct_responses: + - B + input_question: "_______ est la tentative directe de g\xE9rer de mani\xE8re formelle\ + \ ou informelle des questions ou des probl\xE8mes \xE9thiques, par le biais\ + \ de politiques, de pratiques et de programmes sp\xE9cifiques." + - input_choice_list: + A: "\xC0 l'ext\xE9rieur, limit\xE9, ind\xE9pendant" + B: "\xC0 l'int\xE9rieur, limit\xE9, par intermittence" + C: "Dehors, Illimit\xE9, Par intermittence" + D: "Int\xE9rieur, Illimit\xE9, Ind\xE9pendant" + input_correct_responses: + - A + input_question: "Pour garantir l'ind\xE9pendance des membres non ex\xE9cutifs\ + \ du conseil d'administration, plusieurs mesures peuvent \xEAtre prises,\ + \ parmi lesquelles des non-ex\xE9cutifs issus de _______ de la soci\xE9t\xE9\ + , nomm\xE9s pour une dur\xE9e de _________ et nomm\xE9s _________." + - input_choice_list: + A: Action directe non violente, Action directe violente, Action indirecte, Boycott + B: Action indirecte, Action instrumentale, Action directe non violente, Campagne + d'information + C: Action indirecte, Action directe violente, Action directe non violente Boycott + D: Action directe non violente, Action instrumentale, Action indirecte, Campagne + d'information + input_correct_responses: + - C + input_question: "Trois tactiques contrast\xE9es que les OSC peuvent utiliser pour\ + \ atteindre leurs objectifs sont ________ qui implique g\xE9n\xE9ralement la\ + \ recherche et la communication, ________, qui peut impliquer d'attaquer\ + \ physiquement les op\xE9rations d'une entreprise ou ________, impliquant\ + \ souvent une certaine forme de _______." + - input_choice_list: + A: Buycotts, Boycotts, Technologie Blockchain, Dons caritatifs + B: "Buycotts, Boycotts, Technologie num\xE9rique, Augmentation des ventes" + C: Boycotts, Buyalls, Technologie Blockchain, Dons caritatifs + D: "Boycotts, Buycotts, Technologie num\xE9rique, Augmentation des ventes" + input_correct_responses: + - D + input_question: "Contrairement aux _______, les _______ visent \xE0 r\xE9compenser\ + \ les comportements favorables des entreprises. Le succ\xE8s de ces campagnes\ + \ a \xE9t\xE9 renforc\xE9 par l'utilisation de ___________, qui permet aux\ + \ campagnes d'aider l'entreprise \xE0 atteindre _________ ." +include: _continuation_template_yaml +process_docs: !function utils.process_docs_business_ethics +tag: mmlu_fr_llama_other_tasks +task: mmlu_fr_llama_business_ethics +task_alias: business_ethics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_clinical_knowledge.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_clinical_knowledge.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ff5b0f9fa94465e89804324077359947d4e3b285 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_clinical_knowledge.yaml @@ -0,0 +1,55 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: ATP. + B: ADP. + C: "phosphocr\xE9atine." + D: la phosphorylation oxydative. + input_correct_responses: + - A + input_question: "L'\xE9nergie pour toutes les formes de contraction musculaire\ + \ est fournie par :" + - input_choice_list: + A: "Les cath\xE9ters masculins et f\xE9minins sont de couleurs diff\xE9rentes." + B: "Les cath\xE9ters masculins sont plus longs que les cath\xE9ters f\xE9minins." + C: "Les cath\xE9ters masculins sont plus gros que les cath\xE9ters f\xE9minins." + D: "Les cath\xE9ters f\xE9minins sont plus longs que les cath\xE9ters masculins." + input_correct_responses: + - B + input_question: "Quelle est la diff\xE9rence entre un cath\xE9ter masculin et\ + \ un cath\xE9ter f\xE9minin ?" + - input_choice_list: + A: "L'abduction du pouce est fournie par la racine vert\xE9brale T2" + B: "L'opposition du pouce par opponens policis est fournie par la racine\ + \ vert\xE9brale T1" + C: "L'adduction des doigts est assur\xE9e par le nerf m\xE9dian" + D: "L'abduction des doigts est m\xE9di\xE9e par les interosseux palmaires" + input_correct_responses: + - B + input_question: "Dans l'\xE9valuation de la fonction de la main, laquelle\ + \ des affirmations suivantes est vraie\_?" + - input_choice_list: + A: '4' + B: '3' + C: '2' + D: '1' + input_correct_responses: + - C + input_question: "Combien de tentatives faut-il faire pour canuler un patient avant\ + \ de passer le relais \xE0 un coll\xE8gue senior, selon les connaissances m\xE9\ + dicales de 2020 ?" + - input_choice_list: + A: "glycog\xE8ne en glucose-1-phosphate." + B: "glycog\xE8ne ou glucose en fructose." + C: "glycog\xE8ne ou glucose en pyruvate ou lactate." + D: "glycog\xE8ne ou glucose en pyruvate ou ac\xE9tyl CoA." + input_correct_responses: + - C + input_question: "La glycolyse est le nom donn\xE9 \xE0 la voie de conversion de\ + \ :" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_clinical_knowledge +tag: mmlu_fr_llama_other_tasks +task: mmlu_fr_llama_clinical_knowledge +task_alias: clinical_knowledge diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_college_biology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_college_biology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..27d383638eed2762b9a0887e0311d980edb04b6e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_college_biology.yaml @@ -0,0 +1,60 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Ils poss\xE8dent un exosquelette compos\xE9 principalement de peptidoglycane." + B: "Ils poss\xE8dent un syst\xE8me circulatoire ouvert avec un c\u0153ur dorsal." + C: Ils sont membres d'un phylum biologiquement infructueux incapable d'exploiter + divers habitats et sources de nutrition. + D: "Ils n'ont pas d'appendices appari\xE9s et articul\xE9s." + input_correct_responses: + - B + input_question: "Lequel des \xE9nonc\xE9s suivants repr\xE9sente une d\xE9claration\ + \ exacte concernant les arthropodes\_?" + - input_choice_list: + A: 1/400 + B: 19/400 + C: 20/400 + D: 38/400 + input_correct_responses: + - D + input_question: "Dans une population donn\xE9e, 1 personne sur 400 a un cancer\ + \ caus\xE9 par un all\xE8le compl\xE8tement r\xE9cessif, b. En supposant que\ + \ la population est en \xE9quilibre de Hardy-Weinberg, laquelle des propositions\ + \ suivantes est la proportion attendue d'individus porteurs de l'all\xE8\ + le b mais qui ne devraient pas d\xE9velopper le cancer\_?" + - input_choice_list: + A: "l'homme et l'oiseau sont des esp\xE8ces polyphyl\xE9tiques" + B: "l'\xE9volution d'un homme et d'un oiseau est convergente" + C: "l'humain et l'oiseau appartiennent \xE0 un clade" + D: "l'homme et l'oiseau d\xE9velopp\xE9s par analogie" + input_correct_responses: + - C + input_question: "La pr\xE9sence de structures homologues dans deux organismes\ + \ diff\xE9rents, comme l'hum\xE9rus du membre ant\xE9rieur d'un humain\ + \ et d'un oiseau, indique que" + - input_choice_list: + A: "une pompe pression-d\xE9bit d\xE9pendante de l'ATP" + B: un gradient de potentiel de pression d'eau + C: transpiration + D: diffusion apoplastique + input_correct_responses: + - B + input_question: "Selon le mod\xE8le pression-d\xE9bit du mouvement du contenu\ + \ du phlo\xE8me, le mouvement du photosynthate de la source au puits est entra\xEE\ + n\xE9 par" + - input_choice_list: + A: "T\xE9lom\xE8res" + B: "Centrom\xE8res" + C: "Nucl\xE9osomes" + D: "Splic\xE9osomes" + input_correct_responses: + - B + input_question: "Lequel des \xE9l\xE9ments suivants contient des s\xE9quences\ + \ d'ADN n\xE9cessaires \xE0 la s\xE9gr\xE9gation des chromosomes lors de\ + \ la mitose et de la m\xE9iose\_?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_biology +tag: mmlu_fr_llama_stem_tasks +task: mmlu_fr_llama_college_biology +task_alias: college_biology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_college_chemistry.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_college_chemistry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a32a2a14a1d9ae1b0bd9eeb97aae0a690f3d327a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_college_chemistry.yaml @@ -0,0 +1,62 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "L'\xE9tat d'oxydation le plus courant pour les \xE9l\xE9ments lanthanides\ + \ est +3." + B: "Les complexes de lanthanides ont souvent des nombres de coordination \xE9\ + lev\xE9s (> 6)." + C: "Tous les \xE9l\xE9ments lanthanides r\xE9agissent avec l'acide aqueux\ + \ pour lib\xE9rer de l'hydrog\xE8ne." + D: "Les rayons atomiques des \xE9l\xE9ments lanthanides augmentent au cours\ + \ de la p\xE9riode de La \xE0 Lu." + input_correct_responses: + - D + input_question: "Laquelle des affirmations suivantes concernant les \xE9l\xE9\ + ments lanthanides n'est PAS vraie\_?" + - input_choice_list: + A: 1,0 ml + B: 10 ml + C: 20 ml + D: 50 ml + input_correct_responses: + - C + input_question: "Un \xE9chantillon de 0,217 g de HgO (masse molaire = 217 g) r\xE9\ + agit avec l'exc\xE8s d'ions iodure selon la r\xE9action indiqu\xE9e\ + \ ci-dessus. Le titrage de la solution r\xE9sultante n\xE9cessite combien de\ + \ ml de HCl 0,10 M pour atteindre le point d'\xE9quivalence\_?" + - input_choice_list: + A: '4' + B: '3' + C: '6' + D: '24' + input_correct_responses: + - A + input_question: "Pr\xE9disez le nombre de raies dans le spectre RPE d'une\ + \ solution de radical m\xE9thyle marqu\xE9 au 13C (13CH3\u2022), en supposant\ + \ que les raies ne se chevauchent pas." + - input_choice_list: + A: un acide + B: une base + C: un catalyseur + D: "un r\xE9ducteur" + input_correct_responses: + - D + input_question: "3 Cl\u2212(aq) + 4 CrO_4^2\u2212(aq) + 23 H+(aq) \u2192 3 HClO2(aq)\ + \ + 4 Cr3+(aq) + 10 H2O(l). Dans la r\xE9action ci-dessus, Cl\u2212(aq) se comporte\ + \ comme" + - input_choice_list: + A: PbH4 < SnH4 < GeH4 < SiH4 < CH4 + B: PbH4 < SnH4 < CH4 < GeH4 < SiH4 + C: CH4 < SiH4 < GeH4 < SnH4 < PbH4 + D: CH4 < PbH4 < GeH4 < SnH4 < SiH4 + input_correct_responses: + - A + input_question: "Lequel des \xE9nonc\xE9s suivants \xE9num\xE8re les hydrures\ + \ des \xE9l\xE9ments du groupe 14 par ordre de stabilit\xE9 thermique, du plus\ + \ bas au plus \xE9lev\xE9\_?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_chemistry +tag: mmlu_fr_llama_stem_tasks +task: mmlu_fr_llama_college_chemistry +task_alias: college_chemistry diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_college_computer_science.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_college_computer_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..85967d8c96e5148b1645d555ca74513b5c0208c0 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_college_computer_science.yaml @@ -0,0 +1,86 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: a*(c + d)+ b(c + d) + B: "a*(c + r\xE9)* + b(c + r\xE9)*" + C: a*(c + d)+ b*(c + d) + D: (a + b)*c +(a + b)*d + input_correct_responses: + - D + input_question: "Laquelle des expressions r\xE9guli\xE8res suivantes est \xE9\ + quivalente \xE0 (d\xE9crit le m\xEAme ensemble de cha\xEEnes que) (a* + b)*(c\ + \ + d)\_?" + - input_choice_list: + A: '5' + B: '6' + C: '7' + D: '8' + input_correct_responses: + - B + input_question: "Une certaine machine RISC en pipeline a 8 registres \xE0 usage\ + \ g\xE9n\xE9ral R0, R1, . . . , R7 et prend en charge les op\xE9rations suivantes.\ + \ AJOUTER Rs1, Rs2, Rd Ajouter Rs1 \xE0 Rs2 et mettre la somme dans Rd MUL Rs1,\ + \ Rs2, Rd Multiplier Rs1 par Rs2 et mettre le produit dans Rd Une op\xE9ration\ + \ prend normalement un cycle ; cependant, une op\xE9ration prend deux cycles\ + \ si elle produit un r\xE9sultat requis par l'op\xE9ration imm\xE9diatement\ + \ suivante dans une s\xE9quence d'op\xE9rations. Consid\xE9rons l'expression\ + \ AB + ABC + BC, o\xF9 les variables A, B, C sont situ\xE9es dans les registres\ + \ R0, R1, R2. Si le contenu de ces trois registres ne doit pas \xEAtre modifi\xE9\ + , quel est le nombre minimum de cycles d'horloge requis pour une s\xE9quence\ + \ d'op\xE9rations qui calcule la valeur de AB + ABC + BC ?" + - input_choice_list: + A: moi seulement + B: II seulement + C: III seulement + D: I, II et III + input_correct_responses: + - D + input_question: "Le mod\xE8le de conception Singleton est utilis\xE9 pour garantir\ + \ qu'une seule instance d'une classe peut \xEAtre instanci\xE9e. Laquelle\ + \ des affirmations suivantes est (sont) vraie(s) pour ce mod\xE8le de conception\_\ + ? I. La classe Singleton a une m\xE9thode de fabrique statique pour fournir\ + \ son instance. II. La classe Singleton peut \xEAtre une sous-classe d'une\ + \ autre classe. III. La classe Singleton a un constructeur priv\xE9." + - input_choice_list: + A: '5' + B: '6' + C: '7' + D: '9' + input_correct_responses: + - D + input_question: "Un compilateur g\xE9n\xE8re du code pour l'instruction d'affectation\ + \ suivante. G := (A + B) * C - (D + E) * F La machine cible a un seul accumulateur\ + \ et un jeu d'instructions \xE0 adresse unique compos\xE9 d'instructions\ + \ de chargement, de stockage, d'addition, de soustraction et de multiplication.\ + \ Pour les op\xE9rations arithm\xE9tiques, l'op\xE9rande de gauche est extrait\ + \ de l'accumulateur et le r\xE9sultat appara\xEEt dans l'accumulateur.\ + \ Le plus petit nombre d'instructions possible dans le code r\xE9sultant\ + \ est" + - input_choice_list: + A: 1/50 + B: 1/27 + C: 1/25 + D: 2/27 + input_correct_responses: + - B + input_question: "Consid\xE9rez une conception d'ordinateur dans laquelle plusieurs\ + \ processeurs, chacun avec une m\xE9moire cache priv\xE9e, partagent la m\xE9\ + moire globale \xE0 l'aide d'un seul bus. Ce bus est la ressource syst\xE8\ + me critique. Chaque processeur peut ex\xE9cuter une instruction toutes les 500\ + \ nanosecondes tant que les r\xE9f\xE9rences m\xE9moire sont satisfaites par\ + \ son cache local. Lorsqu'un manque de cache se produit, le processeur est\ + \ retard\xE9 de 2 000 nanosecondes suppl\xE9mentaires. Pendant la moiti\xE9\ + \ de ce d\xE9lai suppl\xE9mentaire, le bus est d\xE9di\xE9 \xE0 servir le manque\ + \ de cache. Pendant l'autre moiti\xE9, le processeur ne peut pas continuer,\ + \ mais le bus est libre de r\xE9pondre aux demandes des autres processeurs.\ + \ En moyenne, chaque instruction n\xE9cessite 2 r\xE9f\xE9rences m\xE9moire.\ + \ En moyenne, les \xE9checs de cache se produisent sur 1\_% des r\xE9f\xE9rences.\ + \ Quelle proportion de la capacit\xE9 du bus un seul processeur consommerait-il,\ + \ sans tenir compte des retards dus \xE0 la concurrence des autres processeurs\_\ + ?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_computer_science +tag: mmlu_fr_llama_stem_tasks +task: mmlu_fr_llama_college_computer_science +task_alias: college_computer_science diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_college_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_college_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..72d15fc7990f3d7fb3628d616eb07283e298b04e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_college_mathematics.yaml @@ -0,0 +1,64 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: ST = 0 + B: ST = T + C: ST = TS + D: "ST - TS est la carte identit\xE9 de V sur lui-m\xEAme." + input_correct_responses: + - D + input_question: "Soit V l'ensemble de tous les polyn\xF4mes r\xE9els p(x).\ + \ Soit les transformations T, S d\xE9finies sur V par T:p(x) -> xp(x) et\ + \ S:p(x) -> p'(x) = d/dx p(x), et interpr\xE9tons (ST) (p(x)) comme S(T(p(x))).\ + \ Lequel des \xE9nonc\xE9s suivants est vrai?" + - input_choice_list: + A: '2' + B: 2 - e^-2 + C: 2 + e^-2 + D: 2 + e^-4 + input_correct_responses: + - D + input_question: "Un r\xE9servoir contient initialement une solution saline de\ + \ 3 grammes de sel dissous dans 100 litres d'eau. Une solution saline contenant\ + \ 0,02 gramme de sel par litre d'eau est pulv\xE9ris\xE9e dans le r\xE9\ + servoir \xE0 un d\xE9bit de 4 litres par minute. La solution pulv\xE9ris\xE9\ + e est continuellement m\xE9lang\xE9e avec la solution saline dans le r\xE9servoir,\ + \ et le m\xE9lange s'\xE9coule du r\xE9servoir \xE0 un d\xE9bit de 4 litres\ + \ par minute. Si le m\xE9lange est instantan\xE9, combien de grammes de sel\ + \ reste-t-il dans le r\xE9servoir au bout de 100 minutes ?" + - input_choice_list: + A: moi seulement + B: II seulement + C: III seulement + D: II et III seulement + input_correct_responses: + - B + input_question: "Soit A une vraie matrice 2x2. Laquelle des affirmations suivantes\ + \ doit \xEAtre vraie\_? I. Toutes les entr\xE9es de A^2 sont non n\xE9gatives.\ + \ II. Le d\xE9terminant de A^2 est non n\xE9gatif. III. Si A a deux valeurs\ + \ propres distinctes, alors A^2 a deux valeurs propres distinctes." + - input_choice_list: + A: '-11' + B: '0' + C: '11' + D: 33/2 + input_correct_responses: + - C + input_question: "Supposons que f(1 + x) = f(x) pour tout r\xE9el x. Si f est un\ + \ polyn\xF4me et f(5) = 11, alors f(15/2)" + - input_choice_list: + A: '-5' + B: '-4' + C: '-3' + D: '-2' + input_correct_responses: + - B + input_question: "Soit A l'ensemble de toutes les paires ordonn\xE9es d'entiers\ + \ (m, n) tels que 7m + 12n = 22. Quel est le plus grand nombre n\xE9gatif de\ + \ l'ensemble B = {m + n : (m, n) \\in A}\_?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_mathematics +tag: mmlu_fr_llama_stem_tasks +task: mmlu_fr_llama_college_mathematics +task_alias: college_mathematics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_college_medicine.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_college_medicine.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a0068d7d4abb6dbaac066a8efb398572824e8880 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_college_medicine.yaml @@ -0,0 +1,62 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "via des transporteurs de prot\xE9ines appel\xE9s GLUT4." + B: "uniquement en pr\xE9sence d'insuline." + C: via l'hexokinase. + D: via des transporteurs d'acide monocarbylique. + input_correct_responses: + - A + input_question: "Le glucose est transport\xE9 dans la cellule musculaire :" + - input_choice_list: + A: "Le glycog\xE8ne musculaire est d\xE9compos\xE9 enzymatiquement en glucose-1-phosphate" + B: "Les coureurs d'endurance d'\xE9lite ont une forte proportion de\ + \ fibres de type I dans les muscles de leurs jambes" + C: "Le glycog\xE8ne h\xE9patique est important dans le maintien de la glyc\xE9\ + mie" + D: L'insuline favorise l'absorption du glucose par tous les tissus du + corps + input_correct_responses: + - D + input_question: "Lequel des \xE9nonc\xE9s suivants n'est pas une affirmation\ + \ vraie\_?" + - input_choice_list: + A: "Tous les descendants du c\xF4t\xE9 maternel auront la maladie." + B: "Les femmes seront environ deux fois plus touch\xE9es que les hommes dans\ + \ cette famille." + C: "Toutes les filles d'un m\xE2le affect\xE9 seront affect\xE9es." + D: "Il y aura une r\xE9partition \xE9gale des hommes et des femmes touch\xE9\ + s." + input_correct_responses: + - C + input_question: "Dans un test g\xE9n\xE9tique d'un nouveau-n\xE9, on d\xE9\ + couvre une maladie g\xE9n\xE9tique rare qui a une transmission r\xE9cessive\ + \ li\xE9e \xE0 l'X. Laquelle des affirmations suivantes est probablement\ + \ vraie concernant le pedigree de ce trouble\_?" + - input_choice_list: + A: "Augmentation de la temp\xE9rature, augmentation des moles de gaz" + B: "Augmentation de la temp\xE9rature, augmentation du volume" + C: "Volume d\xE9croissant, temp\xE9rature d\xE9croissante" + D: Diminution des moles de gaz, augmentation du volume + input_correct_responses: + - A + input_question: "Un professeur de sciences au lyc\xE9e remplit une bouteille d'un\ + \ litre d'azote pur et scelle le couvercle. La pression est de 1,70 atm\ + \ et la temp\xE9rature ambiante est de 25\xB0C. Quelles sont les deux variables\ + \ qui augmenteront toutes les deux la pression du syst\xE8me, si toutes les\ + \ autres variables sont maintenues constantes\_?" + - input_choice_list: + A: faiblesse musculaire. + B: gain de masse corporelle. + C: crampes musculaires. + D: "perte d'\xE9lectrolytes." + input_correct_responses: + - B + input_question: "Un effet secondaire attendu de la suppl\xE9mentation en cr\xE9\ + atine est\_:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_medicine +tag: mmlu_fr_llama_other_tasks +task: mmlu_fr_llama_college_medicine +task_alias: college_medicine diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_college_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_college_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f15b0d30292ea1e32c157d8a7897b10ee81068cd --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_college_physics.yaml @@ -0,0 +1,63 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: '4' + B: '5' + C: '6' + D: '20' + input_correct_responses: + - A + input_question: "Une lunette astronomique est constitu\xE9e de deux lentilles\ + \ convergentes distantes de 100 cm. La lentille oculaire a une distance focale\ + \ de 20 cm. Le grossissement angulaire du t\xE9lescope est" + - input_choice_list: + A: "Temp\xE9rature constante" + B: Volume constant + C: Pression constante + D: Adiabatique + input_correct_responses: + - B + input_question: "Pour lequel des processus thermodynamiques suivants l'augmentation\ + \ de l'\xE9nergie interne d'un gaz parfait est-elle \xE9gale \xE0 la\ + \ chaleur ajout\xE9e au gaz\_?" + - input_choice_list: + A: 2,4 V + B: 3,3 V + C: 4,5 V + D: 5,7 V + input_correct_responses: + - A + input_question: "Une extr\xE9mit\xE9 d'un fil de nichrome de longueur 2L et\ + \ de section transversale A est fix\xE9e \xE0 une extr\xE9mit\xE9 d'un autre\ + \ fil de nichrome de longueur L et de section transversale 2A. Si l'extr\xE9\ + mit\xE9 libre du fil le plus long est \xE0 un potentiel \xE9lectrique de 8,0\ + \ volts et que l'extr\xE9mit\xE9 libre du fil le plus court est \xE0 un\ + \ potentiel \xE9lectrique de 1,0 volt, le potentiel \xE0 la jonction des deux\ + \ fils est presque \xE9gal \xE0" + - input_choice_list: + A: '4' + B: '5' + C: '6' + D: '20' + input_correct_responses: + - A + input_question: "Une lunette astronomique est constitu\xE9e de deux lentilles\ + \ convergentes distantes de 100 cm. La lentille oculaire a une distance focale\ + \ de 20 cm. Le grossissement angulaire du t\xE9lescope est" + - input_choice_list: + A: charge + B: masse + C: "\xE9nergie et dynamisme" + D: nombre de leptons + input_correct_responses: + - D + input_question: "Le muon se d\xE9sint\xE8gre avec une dur\xE9e de vie caract\xE9\ + ristique d'environ 10^-6 seconde en un \xE9lectron, un neutrino muonique\ + \ et un antineutrino \xE9lectronique. Il est interdit au muon de se d\xE9sint\xE9\ + grer en un \xE9lectron et un seul neutrino par la loi de conservation de" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_physics +tag: mmlu_fr_llama_stem_tasks +task: mmlu_fr_llama_college_physics +task_alias: college_physics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_computer_security.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_computer_security.yaml new file mode 100644 index 0000000000000000000000000000000000000000..982050acdcec0050209f1241a5044ac616f50253 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_computer_security.yaml @@ -0,0 +1,57 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: 160 bits + B: 512 bits + C: 628 bits + D: 820 bits + input_correct_responses: + - A + input_question: "SHA-1 a un r\xE9sum\xE9 de message de" + - input_choice_list: + A: "IM \u2013 chevaux de Troie" + B: "Chevaux de Troie de porte d\xE9rob\xE9e" + C: Trojan-Downloader + D: "Cheval de Troie ran\xE7on" + input_correct_responses: + - D + input_question: "_____________ peut modifier les donn\xE9es de votre syst\xE8\ + me - afin que votre syst\xE8me ne fonctionne pas correctement ou que vous ne\ + \ puissiez plus acc\xE9der \xE0 des donn\xE9es sp\xE9cifiques, ou il peut m\xEA\ + me demander une ran\xE7on afin de vous donner l'acc\xE8s." + - input_choice_list: + A: ""Pirater" l'\xE9thique pour justifier un comportement \xE9\ + go\xEFste involontaire" + B: "Piratage de syst\xE8mes (par exemple, lors de tests d'intrusion) pour\ + \ exposer les vuln\xE9rabilit\xE9s afin qu'elles puissent \xEAtre corrig\xE9\ + es plut\xF4t qu'exploit\xE9es" + C: "Le piratage des syst\xE8mes g\xE9r\xE9s par ceux dont vous n'\xEAtes\ + \ pas d'accord avec l'\xE9thique" + D: "Un terme d'argot pour le d\xE9veloppement rapide de logiciels, par exemple,\ + \ dans le cadre de hackathons" + input_correct_responses: + - B + input_question: "Qu'est-ce que le piratage \xE9thique ?" + - input_choice_list: + A: "\xE9craser les cl\xE9s cryptographiques en m\xE9moire" + B: une sorte d'injection de code + C: une lecture en dehors des limites d'un tampon + D: "une attaque par cha\xEEne de format" + input_correct_responses: + - C + input_question: L'exploitation du bug Heartbleed permet + - input_choice_list: + A: "Toile hant\xE9e" + B: World Wide Web + C: Toile de surface + D: Web profond + input_correct_responses: + - D + input_question: Le ____________ est tout ce que votre moteur de recherche ne peut + pas rechercher. +include: _continuation_template_yaml +process_docs: !function utils.process_docs_computer_security +tag: mmlu_fr_llama_stem_tasks +task: mmlu_fr_llama_computer_security +task_alias: computer_security diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_conceptual_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_conceptual_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..798e939a884f5e69b0f7d3e985b710af89c5cb16 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_conceptual_physics.yaml @@ -0,0 +1,55 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: moins + B: plus + C: "le m\xEAme" + D: "z\xE9ro" + input_correct_responses: + - A + input_question: "Compar\xE9es \xE0 la masse d'un atome d'uranium subissant\ + \ une fission, les masses combin\xE9es des produits apr\xE8s fission sont" + - input_choice_list: + A: l'espace et le temps. + B: un jumeau voyageur et un jumeau au foyer. + C: "gravit\xE9 et acc\xE9l\xE9ration." + D: "masse et \xE9nergie." + input_correct_responses: + - C + input_question: "Les choses qui sont \xE9quivalentes selon le principe d'\xE9\ + quivalence sont" + - input_choice_list: + A: "converti \xE0 une autre fr\xE9quence" + B: "d\xE9viation" + C: "ing\xE9rence" + D: polarisation + input_correct_responses: + - C + input_question: "Les couleurs d'une bulle de savon r\xE9sultent de la lumi\xE8\ + re" + - input_choice_list: + A: "le m\xEAme" + B: plus grand + C: moins + D: plus ou moins selon la vitesse du vent + input_correct_responses: + - B + input_question: "Un mod\xE8le r\xE9duit d'avion vole plus lentement lorsqu'il\ + \ vole face au vent et plus vite avec le vent dans le dos. Lorsqu'il est\ + \ lanc\xE9 perpendiculairement au vent par vent de travers, sa vitesse au sol\ + \ par rapport au vol en air calme est" + - input_choice_list: + A: "Hydrog\xE8ne" + B: Fer + C: Uranium + D: Idem dans chaque + input_correct_responses: + - A + input_question: "Lequel de ces trois \xE9l\xE9ments a le plus de masse par nucl\xE9\ + on ?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_conceptual_physics +tag: mmlu_fr_llama_stem_tasks +task: mmlu_fr_llama_conceptual_physics +task_alias: conceptual_physics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_econometrics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_econometrics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2207346419f9903ef746fadda1956008f703b8e9 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_econometrics.yaml @@ -0,0 +1,65 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Finalement mourir + B: "Persister ind\xE9finiment" + C: Croissance exponentielle + D: Ne se produit jamais + input_correct_responses: + - A + input_question: "Pour un processus autor\xE9gressif stationnaire, les chocs" + - input_choice_list: + A: 0,2 + B: 0,4 + C: 0,5 + D: 0,33 + input_correct_responses: + - D + input_question: "Consid\xE9rons le mod\xE8le AR(1) suivant avec les perturbations\ + \ ayant une moyenne nulle et une variance unitaire yt = 0,2 + 0,4 yt-1 + ut\ + \ La moyenne (inconditionnelle) de y sera donn\xE9e par" + - input_choice_list: + A: (ii) et (iv) uniquement + B: (i) et (iii) uniquement + C: (i), (ii) et (iii) uniquement + D: (i), (ii), (iii) et (iv) + input_correct_responses: + - C + input_question: "Supposons qu'une statistique de test soit associ\xE9e \xE0\ + \ une valeur p de 0,08. Laquelle des affirmations suivantes est vraie\_? (i)\ + \ Si la taille du test \xE9tait exactement de 8\_%, nous serions indiff\xE9\ + rents entre rejeter et ne pas rejeter l'hypoth\xE8se nulle (ii) Le nul serait\ + \ rejet\xE9 si une taille de test de 10\_% \xE9tait utilis\xE9e (iii) Le nul\ + \ ne serait pas \xEAtre rejet\xE9e si une taille de test de 1 % \xE9tait utilis\xE9\ + e (iv) La valeur nulle serait rejet\xE9e si une taille de test de 5 % \xE9tait\ + \ utilis\xE9e." + - input_choice_list: + A: "ce sera biais\xE9" + B: "Ce sera incoh\xE9rent" + C: Ce sera inefficace + D: Tous (a), (b) et (c) seront vrais. + input_correct_responses: + - C + input_question: "Quelles seraient alors les cons\xE9quences pour l'estimateur\ + \ MCO si l'h\xE9t\xE9rosc\xE9dasticit\xE9 est pr\xE9sente dans un mod\xE8\ + le de r\xE9gression mais ignor\xE9e\_?" + - input_choice_list: + A: "1 d\xE9calage" + B: "2 d\xE9calages" + C: "3 d\xE9calages" + D: "4 d\xE9calages" + input_correct_responses: + - C + input_question: "Supposons maintenant qu'un chercheur souhaite utiliser des\ + \ crit\xE8res d'information pour d\xE9terminer la longueur de d\xE9calage\ + \ optimale pour un VAR. 500 observations sont disponibles pour le VAR bivari\xE9\ + , et les valeurs du d\xE9terminant de la matrice variance-covariance des r\xE9\ + sidus sont 0,0336, 0,0169, 0,0084 et 0,0062 pour 1, 2, 3 et 4 retards respectivement.\ + \ Quel est l'ordre optimal du mod\xE8le selon le crit\xE8re d'information\ + \ d'Akaike ?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_econometrics +tag: mmlu_fr_llama_social_sciences_tasks +task: mmlu_fr_llama_econometrics +task_alias: econometrics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_electrical_engineering.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_electrical_engineering.yaml new file mode 100644 index 0000000000000000000000000000000000000000..91036c6c4644e9cf09e56f32f2c73c114b5ba3b7 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_electrical_engineering.yaml @@ -0,0 +1,58 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: S=0, R=0 + B: S=0, R=1 + C: S=1, R=0 + D: S=1, R=1 + input_correct_responses: + - D + input_question: "Dans un verrou SR construit \xE0 partir de portes NOR, quelle\ + \ condition n'est pas autoris\xE9e" + - input_choice_list: + A: "200\u03A9" + B: "100\u03A9" + C: "50\u03A9" + D: "10\u03A9" + input_correct_responses: + - C + input_question: "Dans une machine \xE0 courant continu \xE0 enroulement par recouvrement\ + \ \xE0 2 p\xF4les, la r\xE9sistance d'un conducteur est de 2 \u03A9 et le\ + \ nombre total de conducteurs est de 100. Trouvez la r\xE9sistance totale" + - input_choice_list: + A: 1 mA. + B: 2 mA. + C: 3 mA. + D: 4 mA. + input_correct_responses: + - B + input_question: "La bobine d'un compteur \xE0 bobine mobile a 100 tours, une\ + \ longueur de 40 mm et une largeur de 30 mm. Le couple de commande est de 240*10-6\ + \ Nm \xE0 pleine \xE9chelle. Si la densit\xE9 de flux magn\xE9tique est de 1\_\ + Wb/m2, la plage de mesure est" + - input_choice_list: + A: 100N + B: 0,1N. + C: 1N. + D: 0,01N. + input_correct_responses: + - B + input_question: "Deux longs conducteurs parall\xE8les supportent 100 A. Si les\ + \ conducteurs sont s\xE9par\xE9s de 20 mm, la force par m\xE8tre de longueur\ + \ de chaque conducteur sera" + - input_choice_list: + A: 15 n. + B: 20 n. + C: 7,5N. + D: 3,75 N. + input_correct_responses: + - A + input_question: "Un p\xF4le ponctuel a une force de 4\u03C0 * 10^-4 weber. La\ + \ force en newtons sur un p\xF4le ponctuel de 4\u03C0 * 1,5 * 10^-4 weber plac\xE9\ + \ \xE0 une distance de 10 cm de celui-ci sera" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_electrical_engineering +tag: mmlu_fr_llama_stem_tasks +task: mmlu_fr_llama_electrical_engineering +task_alias: electrical_engineering diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_elementary_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_elementary_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..273579b672def30afcc4581a4709d439d217f1d7 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_elementary_mathematics.yaml @@ -0,0 +1,60 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: 5 milliers + B: 5 centaines + C: 5 dizaines + D: 5 ceux + input_correct_responses: + - A + input_question: "La population de la ville o\xF9 Michelle est n\xE9e est de 145\ + \ 826 habitants. Quelle est la valeur du 5 dans le nombre 145 826 ?" + - input_choice_list: + A: "Le 10e num\xE9ro du motif sera un nombre pair." + B: "Le mod\xE8le de nombre n'aura jamais deux nombres pairs l'un \xE0\ + \ c\xF4t\xE9 de l'autre." + C: "Les deux nombres suivants dans le mod\xE8le seront un nombre pair puis un\ + \ nombre impair." + D: "Si le mod\xE8le de nombre commen\xE7ait par un nombre impair, le mod\xE8\ + le ne contiendrait que des nombres impairs." + input_correct_responses: + - B + input_question: "Olivia a utilis\xE9 la r\xE8gle "Ajouter 11" pour cr\xE9\ + er le mod\xE8le de nombre illustr\xE9 ci-dessous. 10, 21, 32, 43, 54 Quelle\ + \ affirmation sur la r\xE9gularit\xE9 num\xE9rique est vraie\_?" + - input_choice_list: + A: "Ajoutez 5 \xE0 30 pour trouver 35 \xE9quipes." + B: "Divisez 30 par 5 pour trouver 6 \xE9quipes." + C: "Multipliez 30 et 5 pour trouver 150 \xE9quipes." + D: "Soustrayez 5 de 30 pour trouver 25 \xE9quipes." + input_correct_responses: + - B + input_question: "Au total, 30 joueurs joueront au basket dans un parc. Il y aura\ + \ exactement 5 joueurs dans chaque \xE9quipe. Quelle affirmation explique correctement\ + \ comment trouver le nombre d'\xE9quipes n\xE9cessaires\_?" + - input_choice_list: + A: '749' + B: 2 675 + C: "2\_945" + D: 4 250 + input_correct_responses: + - B + input_question: "Un magasin vend 107 couleurs de peinture diff\xE9rentes. Ils\ + \ ont 25 canettes de chaque couleur en stock. Le nombre de pots de peinture\ + \ que le magasin a en stock peut \xEAtre trouv\xE9 \xE0 l'aide de l'expression\ + \ ci-dessous. 107 \xD7 25. Combien de pots de peinture le magasin a-t-il en\ + \ stock\_?" + - input_choice_list: + A: (5 x 4) x (6 x 5) + B: (5 x 5) + (5 x 4) + C: (5 x 5) + (5 x 9) + D: (5 x 9) x (6 x 9) + input_correct_responses: + - B + input_question: "Quelle expression \xE9quivaut \xE0 5 x 9 ?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_elementary_mathematics +tag: mmlu_fr_llama_stem_tasks +task: mmlu_fr_llama_elementary_mathematics +task_alias: elementary_mathematics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_formal_logic.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_formal_logic.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7c4b225c8bf8f72b0691a9fa5fd78705e5d6631b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_formal_logic.yaml @@ -0,0 +1,65 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: ~Pd + B: "(\u2200x)(Px \u2228 ~Dx)" + C: "(\u2200x)(Px \u2283 ~Dx)" + D: ~Dp + input_correct_responses: + - C + input_question: "S\xE9lectionnez la meilleure traduction en logique de pr\xE9\ + dicat\_: personne ne conduit sur Mars." + - input_choice_list: + A: Blgh + B: Bhlg + C: Bglh + D: Bghl + input_correct_responses: + - C + input_question: "S\xE9lectionnez la meilleure traduction en logique de pr\xE9\ + dicat. George emprunte la tondeuse \xE0 gazon d'Hector. (g : George ; h\ + \ : Hector ; l : la tondeuse \xE0 gazon d'Hector ; Bxyx : x emprunte y \xE0\ + \ z)" + - input_choice_list: + A: Marina est danseuse. Certains faibles ne sont pas des danseurs. Soit tout + est faible, soit Georgia joue au volley. Alors quelque chose joue au volley-ball. + B: Marina est danseuse. Aucun faible n'est un danseur. Tout est soit un + faible ou joue au volley-ball. Alors quelque chose joue au volley-ball. + C: Marina est danseuse. Certains faibles ne sont pas des danseurs. Tout est + soit un faible ou joue au volley-ball. Alors quelque chose joue au volley-ball. + D: Marina est danseuse. Aucun faible n'est un danseur. Soit tout est faible, + soit Georgia joue au volley. Alors quelque chose joue au volley-ball. + input_correct_responses: + - D + input_question: "S\xE9lectionnez la meilleure interpr\xE9tation anglaise des arguments\ + \ donn\xE9s dans la logique des pr\xE9dicats. Dm (\u2200x)(Wx \u2283 ~Dx) (\u2200\ + x)Wx \u2228 Ag / (\u2203x)Ax" + - input_choice_list: + A: "Logiquement \xE9quivalent" + B: Contradictoire + C: "Ni logiquement \xE9quivalent ni contradictoire, mais coh\xE9rent" + D: Inconsistant + input_correct_responses: + - C + input_question: "Construire une table de v\xE9rit\xE9 compl\xE8te pour les paires\ + \ de propositions suivantes. Ensuite, \xE0 l'aide des tables de v\xE9rit\xE9\ + , d\xE9terminez si les \xE9nonc\xE9s sont logiquement \xE9quivalents ou contradictoires.\ + \ Si ni l'un ni l'autre, d\xE9terminez s'ils sont coh\xE9rents ou\ + \ incoh\xE9rents. Justifiez vos r\xE9ponses. E \u2283 (F \xB7 E) et ~E \xB7\ + \ F" + - input_choice_list: + A: "(L \u2022 H) \u2261 je" + B: "(L \u2022 H) \u2228 je" + C: "L \u2022 (H \u2228 I)" + D: "L \u2022 (H \u2283 R)" + input_correct_responses: + - B + input_question: "Laquelle des formules donn\xE9es de PL est la meilleure symbolisation\ + \ de la phrase suivante\_? Les tortues vivent longtemps et sont des cr\xE9atures\ + \ heureuses, \xE0 moins qu'elles ne soient bless\xE9es." +include: _continuation_template_yaml +process_docs: !function utils.process_docs_formal_logic +tag: mmlu_fr_llama_humanities_tasks +task: mmlu_fr_llama_formal_logic +task_alias: formal_logic diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_global_facts.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_global_facts.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b7fe70470d40f609a7b5c5a291645d64a6bbdf00 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_global_facts.yaml @@ -0,0 +1,58 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Les gens ont tendance \xE0 \xEAtre optimistes quant \xE0 leur propre avenir\ + \ et \xE0 l'avenir de leur nation ou du monde." + B: "Les gens ont tendance \xE0 \xEAtre optimistes quant \xE0 leur propre avenir,\ + \ mais pessimistes quant \xE0 l'avenir de leur nation ou du monde." + C: "Les gens ont tendance \xE0 \xEAtre pessimistes quant \xE0 leur propre avenir,\ + \ mais optimistes quant \xE0 l'avenir de leur nation ou du monde." + D: "Les gens ont tendance \xE0 \xEAtre pessimistes quant \xE0 leur propre avenir\ + \ et \xE0 l'avenir de leur nation ou du monde." + input_correct_responses: + - B + input_question: "Parmi les paires d'\xE9nonc\xE9s suivants, lesquels sont\ + \ tous les deux vrais (\xE0 partir de 2019)\_?" + - input_choice_list: + A: 31% + B: 46% + C: 61% + D: 76% + input_correct_responses: + - B + input_question: "En 2019, environ quel pourcentage d'Am\xE9ricains est d'accord\ + \ pour dire que l'\xC9tat est g\xE9r\xE9 au profit de tout le monde\_?" + - input_choice_list: + A: "augment\xE9, augment\xE9" + B: "augment\xE9 diminu\xE9" + C: "diminu\xE9, augment\xE9" + D: "diminu\xE9, diminu\xE9" + input_correct_responses: + - B + input_question: "Depuis 2015, depuis 1990, les for\xEAts ont ____ en Europe et\ + \ ont ____ en Afrique et dans les Am\xE9riques." + - input_choice_list: + A: 38% + B: 53% + C: 68% + D: 83% + input_correct_responses: + - A + input_question: "En 2019, environ quel pourcentage de Russes disent qu'il\ + \ est tr\xE8s important d'avoir des m\xE9dias libres dans notre pays sans\ + \ censure gouvernementale/\xE9tatique\_?" + - input_choice_list: + A: 80% + B: 60% + C: 40% + D: 20% + input_correct_responses: + - A + input_question: "En 2017, combien d'enfants d'un an dans le monde ont\ + \ \xE9t\xE9 vaccin\xE9s contre une maladie\_? *" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_global_facts +tag: mmlu_fr_llama_other_tasks +task: mmlu_fr_llama_global_facts +task_alias: global_facts diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_biology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_biology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7a5d1bdb9d17e5b50aa04f6216ba51a64f91e450 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_biology.yaml @@ -0,0 +1,64 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Traduction + B: Conjugaison + C: "Transduction sp\xE9cialis\xE9e" + D: Transformation + input_correct_responses: + - A + input_question: "Lequel des \xE9l\xE9ments suivants n'est pas un moyen de\ + \ former de l'ADN recombinant\_?" + - input_choice_list: + A: En modifiant le pH optimal de l'enzyme + B: En changeant l'emplacement de l'enzyme dans la cellule + C: "En changeant la forme de la prot\xE9ine" + D: "Un changement d'acide amin\xE9 loin du site actif ne peut pas modifier\ + \ la sp\xE9cificit\xE9 du substrat de l'enzyme." + input_correct_responses: + - C + input_question: "Une mutation dans une enzyme bact\xE9rienne a chang\xE9 un acide\ + \ amin\xE9 pr\xE9c\xE9demment polaire en un acide amin\xE9 non polaire. Cet\ + \ acide amin\xE9 \xE9tait situ\xE9 \xE0 un site \xE9loign\xE9 du site actif\ + \ de l'enzyme. Comment cette mutation pourrait-elle modifier la sp\xE9cificit\xE9\ + \ du substrat de l'enzyme ?" + - input_choice_list: + A: "Membrane plasmique\u2013Appareil de Golgi\u2013ribosome\u2013v\xE9sicule\ + \ s\xE9cr\xE9toire\u2013ER rugueux" + B: "Ribosome\u2013appareil de Golgi\u2013ER rugueux\u2013v\xE9sicule s\xE9cr\xE9\ + toire\u2013membrane plasmique" + C: "Membrane plasmique\u2013Appareil de Golgi\u2013ribosome\u2013v\xE9sicule\ + \ s\xE9cr\xE9toire\u2013ER rugueux" + D: "Ribosome\u2013ER rugueux\u2013appareil de Golgi\u2013v\xE9sicule s\xE9cr\xE9\ + toire\u2013membrane plasmique" + input_correct_responses: + - D + input_question: "Dans les cellules animales, laquelle des propositions suivantes\ + \ repr\xE9sente la voie la plus probable qu'une prot\xE9ine s\xE9cr\xE9\ + toire emprunte lorsqu'elle est synth\xE9tis\xE9e dans une cellule\_?" + - input_choice_list: + A: Cyclines + B: "Prot\xE9ines kinases" + C: "Points de contr\xF4le" + D: Cellules fibroblastes + input_correct_responses: + - D + input_question: "Lequel des \xE9l\xE9ments suivants n'est pas connu pour \xEA\ + tre impliqu\xE9 dans le contr\xF4le de la division cellulaire\_?" + - input_choice_list: + A: les ailes d'un oiseau et les ailes d'une chauve-souris + B: les nageoires d'une baleine et les bras d'un homme + C: les nageoires pectorales d'un marsouin et les nageoires d'un phoque + D: "les pattes ant\xE9rieures d'un insecte et les pattes ant\xE9rieures\ + \ d'un chien" + input_correct_responses: + - D + input_question: "Les structures homologues sont souvent cit\xE9es comme preuve\ + \ du processus de s\xE9lection naturelle. Tous les \xE9l\xE9ments suivants sont\ + \ des exemples de structures homologues SAUF" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_biology +tag: mmlu_fr_llama_stem_tasks +task: mmlu_fr_llama_high_school_biology +task_alias: high_school_biology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_chemistry.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_chemistry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..66e47a46acdcdc5811dd7c75cbd9d6f5bb04908a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_chemistry.yaml @@ -0,0 +1,61 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: HCl + B: H2SO3 + C: SO2 + D: Al(NO3)3 + input_correct_responses: + - C + input_question: "Lequel des \xE9l\xE9ments suivants est consid\xE9r\xE9 comme\ + \ un anhydride d'acide\_?" + - input_choice_list: + A: PCl4F + B: BF3 + C: CO2 + D: Si(CH3)4 + input_correct_responses: + - A + input_question: "Laquelle des mol\xE9cules suivantes devrait \xEAtre une mol\xE9\ + cule polaire\_?" + - input_choice_list: + A: Tous les chlorures, bromures et iodures sont solubles + B: Tous les sulfates sont solubles + C: Tous les hydroxydes sont solubles + D: "Tous les compos\xE9s contenant de l'ammonium sont solubles" + input_correct_responses: + - D + input_question: "D'apr\xE8s les r\xE8gles de solubilit\xE9, laquelle des affirmations\ + \ suivantes est vraie\_?" + - input_choice_list: + A: 3,89 + B: 7,78 + C: 5,78 + D: '2.33' + input_correct_responses: + - C + input_question: "Un nouveau compos\xE9 est synth\xE9tis\xE9 et s'av\xE8re\ + \ \xEAtre un acide monoprotique avec une masse molaire de 248 g/mol. Lorsque\ + \ 0,0050 mol de cet acide sont dissous dans 0,500 L d'eau, le pH est mesur\xE9\ + \ \xE0 3,89. Quel est le pKa de cet acide ?" + - input_choice_list: + A: 0,500 mole + B: 1,00 mole + C: 2,00 mole + D: 3,00 mole + input_correct_responses: + - C + input_question: "Une solution contient 2,00 moles d'acide ac\xE9tique, CH3COOH,\ + \ et 1,00 mole d'ac\xE9tate de calcium, Ca(CH3COO)2. La solution est capable\ + \ de r\xE9sister \xE0 l'ajout d'une petite quantit\xE9 d'acide fort\ + \ ou de base forte avec seulement des modifications mineures du pH de la solution.\ + \ De plus grandes quantit\xE9s d'acide fort ou de base forte peuvent provoquer\ + \ un changement significatif du pH. Combien de moles d'acide nitrique, HNO3,\ + \ peuvent \xEAtre ajout\xE9es avant que le pH ne commence \xE0 changer de mani\xE8\ + re significative\_?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_chemistry +tag: mmlu_fr_llama_stem_tasks +task: mmlu_fr_llama_high_school_chemistry +task_alias: high_school_chemistry diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_computer_science.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_computer_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..45596b1f859a9be367bbd47b21db2f5cc4519cca --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_computer_science.yaml @@ -0,0 +1,89 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Une voiture avertit un conducteur qu'elle est sur le point de heurter + un objet. + B: Une randonneuse utilise une montre GPS pour suivre sa position. + C: "Un r\xE9frig\xE9rateur commande du lait \xE0 un service de livraison en\ + \ ligne alors qu'il n'y a presque plus de lait dans le r\xE9frig\xE9\ + rateur." + D: "Un coureur utilise une montre avec des capteurs optiques pour surveiller\ + \ sa fr\xE9quence cardiaque." + input_correct_responses: + - C + input_question: "Lequel des \xE9l\xE9ments suivants est un exemple d'utilisation\ + \ d'un appareil sur l'Internet des objets (IoT)\_?" + - input_choice_list: + A: "Les activit\xE9s d'un utilisateur naviguant dans une fen\xEAtre anonyme\ + \ ne seront pas visibles par les personnes qui surveillent le r\xE9seau de\ + \ l'utilisateur, telles que l'administrateur syst\xE8me." + B: "Les articles plac\xE9s dans le panier d'achat d'une boutique Web\ + \ pour un achat futur au cours de la session de navigation anonyme ne seront\ + \ pas enregistr\xE9s sur l'ordinateur de l'utilisateur." + C: "Un utilisateur ne pourra pas se connecter \xE0 des comptes de courrier \xE9\ + lectronique ou de m\xE9dias sociaux pendant la session de navigation anonyme." + D: "Un utilisateur naviguant dans une fen\xEAtre anonyme sera prot\xE9g\xE9\ + \ contre les virus lanc\xE9s \xE0 partir des sites Web visit\xE9s ou des fichiers\ + \ t\xE9l\xE9charg\xE9s." + input_correct_responses: + - B + input_question: "De nombreux navigateurs Web permettent aux utilisateurs d'ouvrir\ + \ des fen\xEAtres anonymes. Lors d'une session de navigation dans une fen\xEA\ + tre anonyme, le navigateur n'enregistre pas d'historique de navigation\ + \ ni de liste de fichiers t\xE9l\xE9charg\xE9s. Lorsque la fen\xEAtre anonyme\ + \ est ferm\xE9e, les cookies cr\xE9\xE9s pendant la session sont supprim\xE9\ + s. Laquelle des affirmations suivantes concernant les sessions de navigation\ + \ dans une fen\xEAtre anonyme est vraie\_?" + - input_choice_list: + A: Erreur + B: abc + C: ABC + D: c + input_correct_responses: + - C + input_question: "Quelle est la sortie de "abc"[::-1] en Python\_3\_?" + - input_choice_list: + A: Fox-trot + B: "H\xF4tel" + C: Novembre + D: Yankee + input_correct_responses: + - C + input_question: "Dans le programme ci-dessous, la valeur initiale de x est 5 et\ + \ la valeur initiale de y est 10. IF (X < O) { DISPLAY ("Foxtrot")\ + \ } ELSE { IF (X > y) { DISPLAY ("Hotel") } SINON { SI (y >\ + \ O) { AFFICHAGE ("Novembre") } SINON { AFFICHAGE ("Yankee")\ + \ } } } Qu'est-ce qui s'affiche \xE0 la suite de l'ex\xE9cution\ + \ du programme\_?" + - input_choice_list: + A: "\xC9tape 3 : Augmentez la valeur de position de 1. \xC9tape 4 : R\xE9p\xE9\ + tez les \xE9tapes 2 et 3 jusqu'\xE0 ce que la valeur de count soit sup\xE9\ + rieure \xE0 100." + B: "\xC9tape 3 : Augmentez la valeur de position de 1. \xC9tape 4 : R\xE9p\xE9\ + tez les \xE9tapes 2 et 3 jusqu'\xE0 ce que la valeur de position soit\ + \ sup\xE9rieure \xE0 n." + C: "\xC9tape 3 : R\xE9p\xE9tez l'\xE9tape 2 jusqu'\xE0 ce que la valeur\ + \ de count soit sup\xE9rieure \xE0 100. \xC9tape 4 : Augmentez la valeur de\ + \ position de 1." + D: "\xC9tape 3 : r\xE9p\xE9tez l'\xE9tape 2 jusqu'\xE0 ce que la valeur\ + \ de position soit sup\xE9rieure \xE0 n. \xC9tape 4 : Augmentez la valeur\ + \ de count de 1." + input_correct_responses: + - D + input_question: "Une liste de nombres comporte n \xE9l\xE9ments, index\xE9s de\ + \ 1 \xE0 n. L'algorithme suivant est destin\xE9 \xE0 afficher le nombre\ + \ d'\xE9l\xE9ments de la liste qui ont une valeur sup\xE9rieure \xE0 100.\ + \ L'algorithme utilise les variables count et position. Les \xE9tapes 3\ + \ et 4 manquent. \xC9tape 1 : d\xE9finissez count sur 0 et position sur 1. \xC9\ + tape 2 : si la valeur de l'\xE9l\xE9ment \xE0 la position d'index est\ + \ sup\xE9rieure \xE0 100, augmentez la valeur de count de 1. \xC9tape 3 : (\xE9\ + tape manquante) \xC9tape 4 : (\xE9tape manquante ) \xC9tape 5 : Affichez la\ + \ valeur de comptage. Lequel des \xE9l\xE9ments suivants pourrait \xEAtre utilis\xE9\ + \ pour remplacer les \xE9tapes 3 et 4 afin que l'algorithme fonctionne comme\ + \ pr\xE9vu\_?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_computer_science +tag: mmlu_fr_llama_stem_tasks +task: mmlu_fr_llama_high_school_computer_science +task_alias: high_school_computer_science diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_european_history.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_european_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b5d37b2113d453a0b67eb9c7fda8e3652c0f2058 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_european_history.yaml @@ -0,0 +1,214 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Jean-Jacques Rousseau + B: Baron de Montesquieu + C: Marie Wolstonecraft + D: Adam Smith + input_correct_responses: + - B + input_question: "Cette question fait r\xE9f\xE9rence aux informations suivantes.\ + \ L'extrait suivant est tir\xE9 d'une brochure. Vous me ferez la justice\ + \ de me rappeler que j'ai toujours vigoureusement soutenu le droit de chacun\ + \ \xE0 sa propre opinion, si diff\xE9rente que cette opinion puisse \xEAtre\ + \ de la mienne. Celui qui refuse \xE0 un autre ce droit, se rend esclave de\ + \ son opinion pr\xE9sente, parce qu'il s'interdit le droit de la changer.\ + \ L'arme la plus redoutable contre les erreurs de toutes sortes est la Raison.\ + \ Je n'en ai jamais utilis\xE9 d'autre et j'esp\xE8re que je ne\ + \ le ferai jamais. La circonstance qui a eu lieu maintenant en France de l'abolition\ + \ totale de tout l'ordre national du sacerdoce, et de tout ce qui appartient\ + \ aux syst\xE8mes compulsifs de religion et aux articles de foi compulsifs,\ + \ a non seulement pr\xE9cipit\xE9 mon intention, mais rendu une \u0153uvre de\ + \ ce genre extr\xEAmement n\xE9cessaire, de peur que dans le naufrage g\xE9\ + n\xE9ral de la superstition, des faux syst\xE8mes de gouvernement et de la fausse\ + \ th\xE9ologie, nous perdions de vue la moralit\xE9, l'humanit\xE9 et la\ + \ th\xE9ologie qui est vraie. Je crois en un seul Dieu, et rien de plus ; et\ + \ j'esp\xE8re le bonheur au-del\xE0 de cette vie. Je crois \xE0 l'\xE9\ + galit\xE9 de l'homme ; et je crois que les devoirs religieux consistent\ + \ \xE0 faire justice, \xE0 aimer la mis\xE9ricorde et \xE0 s'efforcer de\ + \ rendre nos semblables heureux. Je ne crois pas au credo profess\xE9 par l'\xE9\ + glise juive, par l'\xE9glise romaine, par l'\xE9glise grecque, par l'\xE9\ + glise turque, par l'\xE9glise protestante, ni par aucune \xE9glise que je\ + \ connaisse. Mon propre esprit est ma propre \xE9glise. Toutes les institutions\ + \ nationales des \xE9glises, qu'elles soient juives, chr\xE9tiennes ou turques,\ + \ ne me paraissent que des inventions humaines, mises en place pour terrifier\ + \ et asservir l'humanit\xE9, et monopoliser le pouvoir et le profit. Je\ + \ n'entends pas par cette d\xE9claration condamner ceux qui croient le contraire\ + \ ; ils ont le m\xEAme droit \xE0 leur croyance que moi \xE0 la mienne. \u2014\ + Thomas Paine, The Age of Reason, 1794\u20131795 Lequel des philosophes des Lumi\xE8\ + res suivants a con\xE7u un syst\xE8me de freins et contrepoids pour que le gouvernement\ + \ \xE9vite les abus de pouvoir\_?" + - input_choice_list: + A: "Les id\xE9es de libert\xE9 individuelle et de nationalisme con\xE7ues au\ + \ si\xE8cle des Lumi\xE8res ont entra\xEEn\xE9 des r\xE9volutions radicales\ + \ qui ont pu se propager dans toute l'Europe." + B: "La conqu\xEAte de l'Europe par Napol\xE9on a conduit \xE0 la cr\xE9\ + ation de nouvelles factions et a modifi\xE9 l'\xE9quilibre europ\xE9en\ + \ des pouvoirs." + C: "Le pouvoir des monarques avait grandi au point o\xF9 il devait \xEAtre contr\xF4\ + l\xE9 par d'autres pouvoirs au sein de chaque nation ou la domination\ + \ des civils se produirait." + D: "Le cycle \xE9conomique ascendant et descendant de la nouvelle \xE9conomie\ + \ capitaliste \xE9mergente pourrait conduire \xE0 des troubles civils qui\ + \ doivent \xEAtre r\xE9prim\xE9s." + input_correct_responses: + - A + input_question: "Cette question fait r\xE9f\xE9rence aux informations suivantes.\ + \ Lisez l'extrait suivant. La semence r\xE9volutionnaire avait p\xE9n\xE9\ + tr\xE9 dans tous les pays et s'\xE9tait plus ou moins r\xE9pandue. Elle\ + \ s'est beaucoup d\xE9velopp\xE9e sous le r\xE9gime du despotisme militaire\ + \ de Bonaparte. Ses conqu\xEAtes ont d\xE9plac\xE9 nombre de lois, d'institutions\ + \ et de coutumes ; rompu les liens sacr\xE9s entre toutes les nations, assez\ + \ forts pour r\xE9sister au temps lui-m\xEAme ; ce qui est plus que ce que l'on\ + \ peut dire de certains avantages conf\xE9r\xE9s par ces innovateurs. Les monarques\ + \ rempliront les devoirs qui leur sont impos\xE9s par Celui qui, en leur confiant\ + \ le pouvoir, les a charg\xE9s de veiller au maintien de la justice et des droits\ + \ de tous, d'\xE9viter les voies de l'erreur et de s'engager r\xE9\ + solument dans la voie de v\xE9rit\xE9. Plac\xE9s au-del\xE0 des passions qui\ + \ agitent la soci\xE9t\xE9, c'est dans les jours d'\xE9preuve surtout\ + \ qu'ils sont appel\xE9s \xE0 d\xE9pouiller les r\xE9alit\xE9s de leurs\ + \ fausses apparences, et \xE0 se montrer tels qu'ils sont, p\xE8res investis\ + \ de l'autorit\xE9 appartenant de droit aux chefs de famille, prouver qu'aux\ + \ jours de deuil, ils savent \xEAtre justes, sages, donc forts, et qu'ils\ + \ n'abandonneront pas le peuple qu'ils doivent gouverner pour \xEAtre\ + \ le jouet des factions, \xE0 l'erreur et \xE0 ses cons\xE9quences, qui\ + \ doivent impliquent la perte de la soci\xE9t\xE9. L'union entre les monarques\ + \ est la base de la politique qui doit maintenant \xEAtre suivie pour sauver\ + \ la soci\xE9t\xE9 de la ruine totale. . . . Qu'ils ne confondent pas les\ + \ concessions faites aux partis avec le bien qu'ils doivent faire \xE0 leur\ + \ peuple, en modifiant, selon leurs besoins reconnus, les branches de l'administration\ + \ qui l'exigent. Qu'ils soient justes, mais forts ; bienfaisant, mais\ + \ strict. Qu'ils maintiennent les principes religieux dans toute leur puret\xE9\ + , et ne permettent pas que la foi soit attaqu\xE9e et la morale interpr\xE9\ + t\xE9e selon le contrat social ou les visions de sectaires insens\xE9s. Qu'ils\ + \ suppriment les Soci\xE9t\xE9s Secr\xE8tes ; cette gangr\xE8ne de la soci\xE9\ + t\xE9. \u2014Klemens von Metternich, Confession de foi politique, 1820 Laquelle\ + \ des affirmations suivantes a \xE9t\xE9 la plus grande cause des craintes exprim\xE9\ + es par Metternich dans le document ci-dessus\_?" + - input_choice_list: + A: Capitaliste + B: Scientifique + C: communiste + D: Existentialiste + input_correct_responses: + - C + input_question: "Cette question fait r\xE9f\xE9rence aux informations suivantes.\ + \ En Russie, rien n'allait bien, et [Souvarine] \xE9tait d\xE9sesp\xE9r\xE9\ + \ des nouvelles qu'il avait re\xE7ues. Ses anciens compagnons se tournaient\ + \ tous vers les politiciens ; les fameux nihilistes qui faisaient trembler l'Europe\ + \ - fils de cur\xE9s de village, de petits bourgeois, de commer\xE7ants - ne\ + \ pouvaient s'\xE9lever au-dessus de l'id\xE9e de lib\xE9ration nationale,\ + \ et semblaient croire que le monde serait d\xE9livr\xE9 - lorsqu'ils avaient\ + \ tu\xE9 leur despote... "Sottises! Ils ne s'en tireront jamais avec\ + \ leurs sottises." Puis, baissant encore la voix, il d\xE9crivait en quelques\ + \ mots amers son vieux r\xEAve de fraternit\xE9. Il avait renonc\xE9 \xE0 son\ + \ rang et \xE0 sa fortune ; il n'\xE9tait all\xE9 parmi les ouvriers que\ + \ dans l'espoir de voir enfin la fondation d'une nouvelle soci\xE9t\xE9\ + \ de travail en commun. Tous les sous de ses poches \xE9taient depuis longtemps\ + \ all\xE9s aux gamins du coron ; il avait \xE9t\xE9 aussi tendre qu'un fr\xE8\ + re avec les charbonniers, souriant \xE0 leurs soup\xE7ons, les conqu\xE9rant\ + \ par ses mani\xE8res tranquilles d'ouvrier et son aversion pour le bavardage.\ + \ Mais d\xE9cid\xE9ment la fusion n'avait pas eu lieu. Sa voix changea,\ + \ ses yeux s'\xE9claircirent, il les fixa sur Etienne en s'adressant\ + \ directement \xE0 lui : \xAB Maintenant, comprends-tu cela ? en d\xE9clarant\ + \ qu'ils vont vivre sans rien faire !... Oui, c'est votre id\xE9e, vous\ + \ tous les ouvriers fran\xE7ais, vous voulez d\xE9nicher un tr\xE9sor pour le\ + \ d\xE9vorer seul ensuite dans quelque coin paresseux et \xE9go\xEFste. autant\ + \ que tu aimes contre les riches, tu n'as pas le courage de rendre aux pauvres\ + \ l'argent que la chance te rapporte. Tu ne seras jamais digne du bonheur\ + \ tant que tu poss\xE9deras quelque chose, et ta haine des bourgeois uniquement\ + \ par un d\xE9sir furieux d'\xEAtre vous-m\xEAmes bourgeois \xE0 leur place."\ + \ \xE9mile Zola, \xE9crivain fran\xE7ais, Germinal, 1885 Le passage montre la\ + \ pr\xE9occupation directe pour le bien-\xEAtre des classes ouvri\xE8res qui\ + \ faisait typiquement partie de quel mouvement ?" + - input_choice_list: + A: "Ils ont servi de catalyseur \xE0 la croissance de la navigation anglaise\ + \ et du commerce outre-mer, mais n'ont gu\xE8re limit\xE9 les perspectives\ + \ des N\xE9erlandais au XVIIe si\xE8cle." + B: "Ils ont provoqu\xE9 des difficult\xE9s presque imm\xE9diates pour l'\xE9\ + conomie n\xE9erlandaise car leur domination du commerce ext\xE9rieur a rapidement\ + \ pris fin." + C: "Ils ont \xE9t\xE9 annul\xE9s lors de la restauration des Stuarts alors qu'ils\ + \ recherchaient des relations diplomatiques normales avec les N\xE9erlandais\ + \ afin de ne pas avoir besoin du soutien financier du Parlement pour la guerre." + D: "Ils ont conduit \xE0 pr\xE8s d'un si\xE8cle de guerre r\xE9currente\ + \ entre l'Angleterre et les Pays-Bas, qui ne s'est termin\xE9e qu'apr\xE8\ + s l'ind\xE9pendance am\xE9ricaine." + input_correct_responses: + - A + input_question: "Cette question fait r\xE9f\xE9rence aux informations suivantes.\ + \ Les extraits ci-dessous sont tir\xE9s des actes de navigation de 1651. [A]pr\xE8\ + s le premier jour de d\xE9cembre mil six cent cinquante et un, et \xE0 partir\ + \ de l\xE0, aucun bien ou marchandise de la croissance, de la production ou\ + \ de la fabrication de l'Asie, de l'Afrique ou l'Am\xE9rique, ou\ + \ d'une partie de celle-ci\_; ou de toutes \xEEles leur appartenant, ou\ + \ qui sont d\xE9crites ou indiqu\xE9es sur les cartes ou cartes habituelles\ + \ de ces lieux, ainsi que des plantations anglaises comme d'autres, seront\ + \ import\xE9es ou introduites dans ce Commonwealth d'Angleterre, ou en Irlande,\ + \ ou toutes autres terres, \xEEles, plantations ou territoires appartenant \xE0\ + \ ce Commonwealth, ou en leur possession, sur tout autre navire ou navires,\ + \ navire ou navires que ce soit, mais uniquement dans ceux qui appartiennent\ + \ v\xE9ritablement et sans fraude au seul peuple de ce Commonwealth , ou leurs\ + \ plantations, en tant que propri\xE9taires ou ayants droit; et dont le capitaine\ + \ et les marins sont \xE9galement du peuple de ce Commonwealth, sous peine de\ + \ confiscation et de perte de toutes les marchandises qui seront import\xE9\ + es contrairement \xE0 la pr\xE9sente loi, , , , [A]ucune marchandise ou marchandise\ + \ de la croissance, la production ou la fabrication de l'Europe, ou d'une\ + \ partie de celle-ci, sera, apr\xE8s le premier jour de d\xE9cembre mil six\ + \ cent cinquante et un, import\xE9e ou introduite dans ce Commonwealth d'Angleterre,\ + \ ou dans tout autre pays ou territoire appartenant \xE0 ce Commonwealth, ou\ + \ en leur possession, dans n'importe quel navire ou navires, navire ou navires\ + \ que ce soit, mais dans ceux qui appartiennent vraiment et sans fraude uniquement\ + \ au peuple de ce Commonwealth, et dans aucun autre, \xE0 l'exception seulement\ + \ des navires et navires \xE9trangers qui le font v\xE9ritablement et sans fraude.\ + \ appartiennent en propre au peuple de ce pays ou de ce lieu, dont lesdits biens\ + \ sont la croissance, la production ou la fabrication. Lequel des \xE9nonc\xE9\ + s suivants d\xE9crit le mieux le r\xE9sultat des actes de navigation de 1651\_\ + ?" + - input_choice_list: + A: "donner au roi d'Angleterre une nouvelle position d'autorit\xE9" + B: "donner le poste de chef de l'\xC9glise d'Angleterre \xE0 Henri VIII\ + \ seul et exclure ses h\xE9ritiers" + C: "\xE9tablir le calvinisme comme la seule vraie th\xE9ologie en Angleterre" + D: "mettre fin \xE0 diverses formes de corruption qui affligent l'\xC9glise\ + \ en Angleterre" + input_correct_responses: + - D + input_question: "Cette question fait r\xE9f\xE9rence aux informations suivantes.\ + \ Bien que la majest\xE9 du roi soit et doive \xEAtre \xE0 juste titre et \xE0\ + \ juste titre le chef supr\xEAme de l'\xC9glise d'Angleterre, et qu'elle\ + \ soit ainsi reconnue par le clerg\xE9 de ce royaume dans leurs convocations,\ + \ n\xE9anmoins, pour la corroboration et la confirmation de celle-ci, et pour\ + \ l'augmentation de la vertu dans la religion du Christ dans ce royaume\ + \ d'Angleterre, et de r\xE9primer et d'extirper toutes les erreurs,\ + \ h\xE9r\xE9sies et autres \xE9normit\xE9s et abus utilis\xE9s jusqu'ici\ + \ dans le m\xEAme, qu'il soit d\xE9cr\xE9t\xE9, par l'autorit\xE9 de\ + \ ce Parlement actuel, que le roi, notre seigneur souverain, ses h\xE9ritiers\ + \ et les successeurs, rois de ce royaume, seront pris, accept\xE9s et r\xE9\ + put\xE9s le seul chef supr\xEAme sur la terre de l'\xC9glise d'Angleterre,\ + \ appel\xE9s Anglicans Ecclesia; et aura et jouira, annex\xE9 et uni \xE0 la\ + \ couronne imp\xE9riale de ce royaume, ainsi que le titre et le style de celle-ci,\ + \ ainsi que tous les honneurs, dignit\xE9s, pr\xE9\xE9minences, juridictions,\ + \ privil\xE8ges, autorit\xE9s, immunit\xE9s, profits, et commodit\xE9s \xE0\ + \ ladite dignit\xE9 de le chef supr\xEAme de la m\xEAme \xC9glise appartenant\ + \ et relevant; et que notre dit seigneur souverain, ses h\xE9ritiers et successeurs,\ + \ rois de ce royaume, auront plein pouvoir et autorit\xE9 de temps en temps\ + \ pour visiter, r\xE9primer, redresser, enregistrer, ordonner, corriger, restreindre\ + \ et amender toutes ces erreurs, h\xE9r\xE9sies, les abus, les offenses, les\ + \ outrages et les \xE9normit\xE9s, quels qu'ils soient, qui, par quelque\ + \ autorit\xE9 ou juridiction spirituelle que ce soit, doivent ou peuvent l\xE9\ + galement \xEAtre r\xE9form\xE9s, r\xE9prim\xE9s, ordonn\xE9s, redress\xE9s,\ + \ corrig\xE9s, restreints ou amend\xE9s, au plus grand plaisir de Dieu Tout-Puissant,\ + \ l'accroissement de la vertu dans la religion du Christ, et pour la conservation\ + \ de la paix, de l'unit\xE9 et de la tranquillit\xE9 de ce royaume ; nonobstant\ + \ tout usage, terrain \xE9tranger, autorit\xE9 \xE9trang\xE8re, prescription\ + \ ou toute autre chose ou choses contraires aux pr\xE9sentes. Parlement anglais,\ + \ Acte de supr\xE9matie, 1534 D'apr\xE8s ce passage, on peut d\xE9duire\ + \ que le Parlement anglais souhaitait faire valoir que l'Acte de supr\xE9\ + matie serait" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_european_history +tag: mmlu_fr_llama_humanities_tasks +task: mmlu_fr_llama_high_school_european_history +task_alias: high_school_european_history diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_geography.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_geography.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a008c03d36c0881089f51081af5072fb4f898110 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_geography.yaml @@ -0,0 +1,59 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "taux de mortalit\xE9 brut \xE0 partir de la date de naissance brute." + B: "taux brut de natalit\xE9 \xE0 partir du taux brut de mortalit\xE9." + C: "temps de doublement du taux brut de natalit\xE9." + D: "taux de f\xE9condit\xE9 \xE0 partir du taux brut de mortalit\xE9." + input_correct_responses: + - A + input_question: Le taux d'accroissement naturel d'une population s'obtient + en soustrayant + - input_choice_list: + A: "Les taux de natalit\xE9 augmentent et le taux de croissance d\xE9mographique\ + \ est moins rapide." + B: "Les taux de natalit\xE9 diminuent et le taux de croissance d\xE9mographique\ + \ est moins rapide." + C: "Les taux de natalit\xE9 augmentent et le taux de croissance d\xE9mographique\ + \ augmente." + D: "Les taux de natalit\xE9 diminuent et le taux de croissance d\xE9mographique\ + \ augmente." + input_correct_responses: + - B + input_question: "Au cours de la troisi\xE8me \xE9tape du mod\xE8le de transition\ + \ d\xE9mographique, laquelle des affirmations suivantes est vraie\_?" + - input_choice_list: + A: La duplication des efforts se produit souvent. + B: "Les probl\xE8mes sociaux de la ville centrale d\xE9bordent sur les banlieues\ + \ r\xE9sidentielles environnantes." + C: "L'inefficacit\xE9 dans la prestation de services se produit souvent." + D: "Les efforts d'un quartier pour r\xE9duire la pollution sont toujours\ + \ soutenus par les communaut\xE9s voisines." + input_correct_responses: + - D + input_question: "Laquelle des affirmations suivantes n'est PAS exacte concernant\ + \ les services fournis par les gouvernements locaux aux \xC9tats-Unis\_?" + - input_choice_list: + A: externalisation. + B: "d\xE9localisation." + C: maquiladoras. + D: "interd\xE9pendance g\xE9ographique." + input_correct_responses: + - B + input_question: "La pratique consistant \xE0 embaucher un fournisseur de services\ + \ tiers \xE9tranger pour g\xE9rer une op\xE9ration est appel\xE9e" + - input_choice_list: + A: Savon colombe + B: Barre de chocolat colombe + C: Symbole de la colombe + D: Une colombe (oiseau) + input_correct_responses: + - C + input_question: "Lequel des \xE9l\xE9ments suivants est un exemple de culture\ + \ immat\xE9rielle\_?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_geography +tag: mmlu_fr_llama_social_sciences_tasks +task: mmlu_fr_llama_high_school_geography +task_alias: high_school_geography diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_government_and_politics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_government_and_politics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ff45d5d8a5cc007c4309689d46800d6364ae3b32 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_government_and_politics.yaml @@ -0,0 +1,66 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "la d\xE9finition constitutionnelle de ces pouvoirs est large et impr\xE9\ + cise" + B: "la plupart des gens conviennent que la Constitution impose trop de limites\ + \ au pouvoir pr\xE9sidentiel" + C: "la Cour supr\xEAme refuse syst\xE9matiquement de statuer sur les affaires\ + \ concernant les pouvoirs pr\xE9sidentiels" + D: "les amendements constitutionnels ont consid\xE9rablement accru les pouvoirs\ + \ pr\xE9sidentiels" + input_correct_responses: + - A + input_question: "L'incertitude sur les limites du pouvoir pr\xE9sidentiel\ + \ tient avant tout au fait que" + - input_choice_list: + A: "augmentation annuelle des d\xE9penses f\xE9d\xE9rales pour l'arm\xE9\ + e" + B: "montant des int\xE9r\xEAts sur la dette nationale" + C: "diff\xE9rence entre les propositions budg\xE9taires initiales faites par\ + \ le pr\xE9sident et le Congr\xE8s" + D: "montant que le gouvernement d\xE9pense en exc\xE9dent de ses revenus" + input_correct_responses: + - D + input_question: "Le terme "d\xE9ficit budg\xE9taire" d\xE9signe le" + - input_choice_list: + A: "Weeks contre \xC9tats-Unis" + B: Betts contre Brady + C: Mapp contre Ohio + D: Miranda contre Arizona + input_correct_responses: + - D + input_question: "Lequel des cas suivants a \xE9tabli le pr\xE9c\xE9dent selon\ + \ lequel un accus\xE9 doit \xEAtre inform\xE9 du droit de garder le silence,\ + \ du droit \xE0 un avocat et de la protection contre l'auto-incrimination\_\ + ?" + - input_choice_list: + A: "Ils sont \xE9tablis par le pouvoir l\xE9gislatif." + B: "Leurs membres n'ont souvent pas beaucoup d'influence sur les d\xE9\ + cisions pr\xE9sidentielles." + C: "Ils ne peuvent pas tous \xEAtre dirig\xE9s par des dirigeants appartenant\ + \ au m\xEAme parti politique que le pr\xE9sident." + D: "Tous les organismes f\xE9d\xE9raux ne sont pas des minist\xE8res du Cabinet." + input_correct_responses: + - C + input_question: "Laquelle des affirmations suivantes concernant les d\xE9partements\ + \ minist\xE9riels est FAUX\_?" + - input_choice_list: + A: "Les politiciens honn\xEAtes peuvent emp\xEAcher les factions de se d\xE9\ + velopper." + B: "Les factions sont plus susceptibles de se produire dans les grandes r\xE9\ + publiques que dans les petites." + C: "Les effets n\xE9gatifs du factionnalisme peuvent \xEAtre r\xE9duits par\ + \ un gouvernement r\xE9publicain." + D: "Des \xE9lections libres sont la meilleure d\xE9fense du peuple contre le\ + \ factionnalisme." + input_correct_responses: + - C + input_question: "Lequel des \xE9nonc\xE9s suivants \xE9nonce le mieux un argument\ + \ avanc\xE9 par James Madison dans The Federalist num\xE9ro 10\_?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_government_and_politics +tag: mmlu_fr_llama_social_sciences_tasks +task: mmlu_fr_llama_high_school_government_and_politics +task_alias: high_school_government_and_politics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_macroeconomics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_macroeconomics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..86733b064e8b4952fb48429982158752368fc0df --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_macroeconomics.yaml @@ -0,0 +1,58 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "L'arm\xE9e am\xE9ricaine ouvre une nouvelle base dans un pays \xE9tranger\ + \ avec 1000 militaires am\xE9ricains." + B: "Les consommateurs japonais ach\xE8tent des milliers de CD produits aux \xC9\ + tats-Unis." + C: "Une chanteuse pop am\xE9ricaine donne un concert \xE0 guichets ferm\xE9\ + s \xE0 Paris." + D: "Une production th\xE9\xE2trale fran\xE7aise tourne dans des dizaines de\ + \ villes am\xE9ricaines." + input_correct_responses: + - C + input_question: "Lequel des \xE9l\xE9ments suivants n'est pas inclus dans\ + \ le PIB am\xE9ricain\_?" + - input_choice_list: + A: "relation directe entre le ch\xF4mage et l'inflation" + B: "relation directe entre le prix et la quantit\xE9 demand\xE9e" + C: "relation inverse entre le prix et la quantit\xE9 demand\xE9e" + D: "relation inverse entre le ch\xF4mage et l'inflation" + input_correct_responses: + - D + input_question: "La courbe de Phillips \xE0 court terme indique une" + - input_choice_list: + A: "les exportations d\xE9passent les importations." + B: "les importations d\xE9passent les exportations." + C: "les recettes fiscales f\xE9d\xE9rales d\xE9passent les d\xE9penses." + D: "les d\xE9penses f\xE9d\xE9rales d\xE9passent les recettes fiscales f\xE9\ + d\xE9rales." + input_correct_responses: + - D + input_question: "Un d\xE9ficit f\xE9d\xE9ral se produit lorsque" + - input_choice_list: + A: Augmenter le taux d'actualisation + B: "Augmentation du taux de r\xE9serve" + C: Acheter des titres publics + D: Abaissement des tarifs + input_correct_responses: + - C + input_question: "Toutes choses \xE9gales par ailleurs, laquelle des politiques\ + \ mon\xE9taires suivantes serait utilis\xE9e pour stimuler les exportations\ + \ am\xE9ricaines\_?" + - input_choice_list: + A: "Une augmentation de la masse mon\xE9taire" + B: "Augmentation des d\xE9penses publiques" + C: "R\xE9duction des imp\xF4ts sur la recherche et le d\xE9veloppement de nouvelles\ + \ technologies" + D: "Hausse des imp\xF4ts sur le revenu des m\xE9nages" + input_correct_responses: + - C + input_question: "Laquelle des politiques suivantes d\xE9crit le mieux la politique\ + \ budg\xE9taire de l'offre\_?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_macroeconomics +tag: mmlu_fr_llama_social_sciences_tasks +task: mmlu_fr_llama_high_school_macroeconomics +task_alias: high_school_macroeconomics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..16d9480c089b262279f8b0cb2598758e44f199a3 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_mathematics.yaml @@ -0,0 +1,63 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: '3' + B: '15' + C: '6' + D: '5' + input_correct_responses: + - B + input_question: "Joe \xE9tait responsable des lumi\xE8res pour une danse. Le voyant\ + \ rouge clignote toutes les deux secondes, le voyant jaune toutes les trois\ + \ secondes et le voyant bleu toutes les cinq secondes. Si nous incluons le tout\ + \ d\xE9but et la toute fin de la danse, combien de fois pendant une danse de\ + \ sept minutes toutes les lumi\xE8res s'allumeront-elles en m\xEAme temps\_\ + ? (Supposons que les trois lumi\xE8res clignotent simultan\xE9ment au tout d\xE9\ + but de la danse.)" + - input_choice_list: + A: '12' + B: '1' + C: '30' + D: '5' + input_correct_responses: + - C + input_question: "Cinq mille dollars compos\xE9s annuellement \xE0 un taux d'int\xE9\ + r\xEAt de x\\%$ mettent six ans \xE0 doubler. Au m\xEAme taux d'int\xE9\ + r\xEAt, combien d'ann\xE9es faudra-t-il \xE0 $\\$300$ pour atteindre $\\\ + $9600$\_?" + - input_choice_list: + A: '-1' + B: '16' + C: -\frac{1}{256} + D: \frac{1}{16} + input_correct_responses: + - C + input_question: "La variable $x$ varie directement comme le carr\xE9 de $y$, et\ + \ $y$ varie directement comme le cube de $z$. Si $x$ est \xE9gal \xE0 $-16$\ + \ lorsque $z$ est \xE9gal \xE0 2, quelle est la valeur de $x$ lorsque $z$ est\ + \ \xE9gal \xE0 $\\frac{1}{2}$\_?" + - input_choice_list: + A: \frac{3\sqrt{3}}{3} + B: \frac{1}{3} + C: \sqrt{3} + D: \frac{\sqrt{3}}{3} + input_correct_responses: + - D + input_question: "Simplifiez et \xE9crivez le r\xE9sultat avec un d\xE9nominateur\ + \ rationnel\_: $$\\sqrt{\\sqrt[3]{\\sqrt{\\frac{1}{729}}}}$$" + - input_choice_list: + A: '55' + B: '60' + C: '62' + D: '65' + input_correct_responses: + - D + input_question: "Dix \xE9tudiants passent un test de biologie et re\xE7oivent\ + \ les notes suivantes\_: 45, 55, 50, 70, 65, 80, 40, 90, 70, 85. Quelle est\ + \ la moyenne des notes des tests des \xE9tudiants\_?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_mathematics +tag: mmlu_fr_llama_stem_tasks +task: mmlu_fr_llama_high_school_mathematics +task_alias: high_school_mathematics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_microeconomics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_microeconomics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c692fe665231666cc89fbf49b69bfeb99c85c7ec --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_microeconomics.yaml @@ -0,0 +1,55 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Un salaire minimum effectif impos\xE9 sur ce march\xE9 du travail." + B: Une augmentation du prix des gallons de peinture. + C: Une augmentation de la construction de nouvelles maisons. + D: "Une augmentation du prix des peintres m\xE9caniques tant que l'effet\ + \ de production d\xE9passe l'effet de substitution." + input_correct_responses: + - C + input_question: "Dans un march\xE9 du travail concurrentiel pour les peintres\ + \ en b\xE2timent, lequel des \xE9l\xE9ments suivants augmenterait la demande\ + \ de peintres en b\xE2timent\_?" + - input_choice_list: + A: la demande pour le produit augmentera + B: la demande pour le produit diminuera + C: le surplus du consommateur augmentera + D: le surplus du consommateur diminuera + input_correct_responses: + - C + input_question: "Si le gouvernement subventionne les producteurs sur un march\xE9\ + \ parfaitement concurrentiel, alors" + - input_choice_list: + A: '0' + B: '5' + C: dix + D: '100' + input_correct_responses: + - D + input_question: Le rapport de concentration pour un monopole est + - input_choice_list: + A: "Le prix plancher d\xE9place la courbe de demande vers la gauche." + B: "Un plancher efficace cr\xE9e une p\xE9nurie de bien." + C: "Le prix plancher d\xE9place la courbe d'offre du bien vers la droite." + D: "Pour \xEAtre un plancher efficace, il doit \xEAtre fix\xE9 au-dessus du\ + \ prix d'\xE9quilibre." + input_correct_responses: + - D + input_question: "Lequel des \xE9nonc\xE9s suivants est vrai d'un prix plancher\_\ + ?" + - input_choice_list: + A: "Libre entr\xE9e et sortie du march\xE9" + B: Quelques grands producteurs + C: Un producteur d'un bien sans substituts proches + D: "Un produit homog\xE8ne" + input_correct_responses: + - B + input_question: "Laquelle des caract\xE9ristiques suivantes est n\xE9cessairement\ + \ une caract\xE9ristique de l'oligopole\_?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_microeconomics +tag: mmlu_fr_llama_social_sciences_tasks +task: mmlu_fr_llama_high_school_microeconomics +task_alias: high_school_microeconomics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b147efa42dda709b43dcef1eee75f9c43e64ea8a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_physics.yaml @@ -0,0 +1,65 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: I et II seulement + B: I et III seulement + C: II et III uniquement + D: III seulement + input_correct_responses: + - D + input_question: "Laquelle des conditions suivantes garantira la conservation du\ + \ moment cin\xE9tique\_? I. Conservation de la quantit\xE9 de mouvement lin\xE9\ + aire II. Force externe nette nulle III. Couple externe net nul" + - input_choice_list: + A: "La pression est \xE0 un n\u0153ud, mais le d\xE9placement des particules\ + \ est \xE0 un ventre." + B: "La pression est \xE0 un ventre, mais le d\xE9placement des particules est\ + \ \xE0 un n\u0153ud." + C: "La pression et le d\xE9placement des particules sont tous les deux aux n\u0153\ + uds." + D: "La pression et le d\xE9placement des particules sont tous les deux aux ventres." + input_correct_responses: + - B + input_question: "Un tuyau plein d'air est ferm\xE9 \xE0 une extr\xE9mit\xE9\ + . Une onde stationnaire est produite dans le tuyau, ce qui fait que le tuyau\ + \ \xE9met une note. Lequel des \xE9nonc\xE9s suivants est une affirmation correcte\ + \ concernant les propri\xE9t\xE9s de l'onde \xE0 l'extr\xE9mit\xE9 ferm\xE9\ + e du tuyau\_?" + - input_choice_list: + A: 02H00 + B: 06H00 + C: 00h00 + D: 24 A + input_correct_responses: + - D + input_question: "Une cellule photo\xE9lectrique de fonction de travail \u03D5\ + \ = 2eV est connect\xE9e \xE0 une r\xE9sistance en s\xE9rie. La lumi\xE8re de\ + \ fr\xE9quence f = 1 \xD7 10^15 Hz frappe une plaque m\xE9tallique de la cellule\ + \ photo\xE9lectrique. Si la puissance de la lumi\xE8re est P = 100 W, quel est\ + \ le courant traversant la r\xE9sistance ?" + - input_choice_list: + A: 10W + B: 30W + C: 60W + D: 240W + input_correct_responses: + - D + input_question: "Un four \xE0 micro-ondes est branch\xE9 sur une prise 120 V et\ + \ consomme un courant de 2 amp\xE8res. \xC0 quelle vitesse l'\xE9nergie\ + \ est-elle utilis\xE9e par le four \xE0 micro-ondes\_?" + - input_choice_list: + A: 3,5 J + B: 6,0 J + C: 22,5 J + D: 40J + input_correct_responses: + - B + input_question: "Une charge ponctuelle, Q = +1 mC, est fix\xE9e \xE0 l'origine.\ + \ Combien de travail faut-il pour d\xE9placer une charge, Q = +8 \xB5C, du point\ + \ (0, 4 m\xE8tres) au point (3 m\xE8tres, 0)\_?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_physics +tag: mmlu_fr_llama_stem_tasks +task: mmlu_fr_llama_high_school_physics +task_alias: high_school_physics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_psychology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_psychology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..59d5fea3f72e4f98cc2da8381960788a5d041f2f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_psychology.yaml @@ -0,0 +1,66 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: un surmoi fort. + B: faible estime de soi. + C: "faible auto-efficacit\xE9." + D: "un lieu de contr\xF4le interne." + input_correct_responses: + - D + input_question: "Ani pense que ses attitudes et son comportement jouent un r\xF4\ + le central dans ce qui lui arrive. Une telle croyance est susceptible d'\xEA\ + tre associ\xE9e \xE0" + - input_choice_list: + A: "identifier les causes et les solutions des probl\xE8mes pr\xE9sent\xE9s\ + \ par le client" + B: "identifier et \xE9liminer les causes des difficult\xE9s de la personne consult\xE9\ + e \xE0 g\xE9rer un probl\xE8me" + C: "\xE9tablir une hi\xE9rarchie d'autorit\xE9 pour permettre une prise\ + \ de d\xE9cision efficace" + D: "pr\xE9senter un plan d'action unique, bien d\xE9fini et sans ambigu\xEF\ + t\xE9 au consultant pour surmonter les d\xE9ficits de comp\xE9tences" + input_correct_responses: + - B + input_question: "Selon le mod\xE8le de consultation de cas centr\xE9 sur le consultant\ + \ de Caplan, le consultant s'int\xE9resse principalement \xE0" + - input_choice_list: + A: "Les messages sont envoy\xE9s du thalamus directement \xE0 l'amygdale." + B: "Les messages sont envoy\xE9s du thalamus aux voies "quoi" et "o\xF9\ + "." + C: "Les messages sont envoy\xE9s du syst\xE8me nerveux parasympathique au cortex\ + \ c\xE9r\xE9bral." + D: "Les messages sont envoy\xE9s des lobes frontaux \xE0 l'hypophyse." + input_correct_responses: + - A + input_question: "En nageant dans l'oc\xE9an, Ivan est effray\xE9 par une ombre\ + \ sombre dans l'eau avant m\xEAme d'avoir la chance d'identifier\ + \ ce qu'est l'ombre. Les connexions synaptiques qui se produisent au\ + \ cours de cet incident de peur sont mieux d\xE9crites par lequel des \xE9l\xE9\ + ments suivants\_?" + - input_choice_list: + A: "Donner \xE0 l'enfant une p\xE9riode d'essai dans le nouvel environnement" + B: "Informer les parents par \xE9crit" + C: Obtenir l'approbation du conseil scolaire + D: Obtenir le consentement parental + input_correct_responses: + - B + input_question: "Selon la loi sur l'am\xE9lioration de l'\xE9ducation\ + \ des personnes handicap\xE9es, laquelle des actions suivantes un organisme\ + \ d'enseignement doit-il effectuer avant de modifier le placement scolaire\ + \ d'un \xE9l\xE8ve handicap\xE9\_?" + - input_choice_list: + A: socioculturel + B: clinique + C: cognitif + D: comportementaliste + input_correct_responses: + - C + input_question: "Pascale s'int\xE9resse aux strat\xE9gies de traitement que\ + \ les enfants utilisent pour apprendre de nouvelles informations. Pascale serait\ + \ mieux class\xE9e dans quel type de psychologue\_?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_psychology +tag: mmlu_fr_llama_social_sciences_tasks +task: mmlu_fr_llama_high_school_psychology +task_alias: high_school_psychology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_statistics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_statistics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4760f29c5df1800571d49f1fe068a44e54b3ed6a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_statistics.yaml @@ -0,0 +1,73 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Si la pente de la droite de r\xE9gression est exactement de 1, alors la\ + \ corr\xE9lation est exactement de 1." + B: "Si la corr\xE9lation est de 0, alors la pente de la droite de r\xE9gression\ + \ est ind\xE9finie." + C: "Changer quelle variable est appel\xE9e x et laquelle est appel\xE9e y change\ + \ le signe de la corr\xE9lation." + D: "La corr\xE9lation r est \xE9gale \xE0 la pente de la droite de r\xE9gression\ + \ lorsque les scores z de la variable y sont trac\xE9s par rapport aux scores\ + \ z de la variable x." + input_correct_responses: + - D + input_question: "Lequel des \xE9nonc\xE9s suivants est une affirmation correcte\ + \ sur la corr\xE9lation\_?" + - input_choice_list: + 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: "Les informations sont insuffisantes pour r\xE9pondre \xE0 cette question." + input_correct_responses: + - D + input_question: "Supposons que X et Y sont des variables al\xE9atoires avec E(X)\ + \ = 37, var(X) = 5, E(Y) = 62 et var(Y) = 12. Quelles sont la valeur attendue\ + \ et la variance de la variable al\xE9atoire X + Y\_?" + - input_choice_list: + A: La proportion d'arbres qui ont subi plus de 50 % de dommages dus au gel. + B: "Le nombre d'arbres touch\xE9s par le gel." + C: "Le nombre d'arbres \xE9chantillonn\xE9s dans le bosquet." + D: "Pour chaque arbre \xE9chantillonn\xE9, s'il a subi plus de 50 % de dommages\ + \ ou au plus 50 % de dommages." + input_correct_responses: + - D + input_question: "Apr\xE8s qu'un avertissement de gel a \xE9t\xE9 \xE9mis,\ + \ le propri\xE9taire d'une grande orangeraie a demand\xE9 \xE0 ses ouvriers\ + \ d'arroser tous ses arbres avec de l'eau. L'eau \xE9tait cens\xE9\ + e geler et former une couche protectrice de glace autour de la fleur d'oranger.\ + \ N\xE9anmoins, le propri\xE9taire soup\xE7onne que certains arbres ont subi\ + \ des dommages consid\xE9rables \xE0 cause du gel. Pour estimer la proportion\ + \ d'arbres qui ont subi plus de 50 % de dommages dus au gel, il a pr\xE9\ + lev\xE9 un \xE9chantillon al\xE9atoire de 100 arbres de son bosquet. Quelle\ + \ est la variable de r\xE9ponse dans cette exp\xE9rience\_?" + - input_choice_list: + A: "Moyenne 518 grammes; \xE9cart type 7,0 grammes" + B: "Moyenne 518 grammes ; \xE9cart type 3,5 grammes" + C: "Moyenne 518 grammes ; \xE9cart type 6,1 grammes" + D: "Moyenne 394 grammes; \xE9cart type 6,1 grammes" + input_correct_responses: + - C + input_question: "Une nouvelle smartwatch est fabriqu\xE9e dans une partie d'une\ + \ usine, puis s\xE9curis\xE9e pour l'exp\xE9dition dans une autre partie\ + \ ind\xE9pendante de l'usine. Le poids de la smartwatch a une moyenne de\ + \ 62 grammes et un \xE9cart type de 1,0 gramme. Le poids de l'emballage\ + \ (bo\xEEte, notice d'utilisation, papier bulle...) a une moyenne de 456\ + \ grammes et un \xE9cart type de 6 grammes. Ensemble, la distribution du poids\ + \ de la montre connect\xE9e et de son emballage aurait la moyenne et l'\xE9\ + cart type suivants\_:" + - input_choice_list: + A: je, je + B: II, III + C: III, je + D: III, II + input_correct_responses: + - D + input_question: "Lequel des ensembles suivants a le plus petit \xE9cart-type\_\ + ? Lequel a le plus gros ? Je\_: {1,2,3} II\_: {-10,10} III\_: {100}" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_statistics +tag: mmlu_fr_llama_stem_tasks +task: mmlu_fr_llama_high_school_statistics +task_alias: high_school_statistics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_us_history.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_us_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..91487dfd78365062fee82a5501171b230701aded --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_us_history.yaml @@ -0,0 +1,181 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "R\xE9ponse organis\xE9e \xE0 la r\xE9bellion de Bacon" + B: "R\xE9ponse f\xE9d\xE9rale \xE0 la r\xE9bellion de Shays" + C: "R\xE9ponse f\xE9d\xE9rale \xE0 la r\xE9bellion du whisky" + D: "R\xE9ponse f\xE9d\xE9rale \xE0 la r\xE9bellion de Pontiac" + input_correct_responses: + - C + input_question: "Cette question fait r\xE9f\xE9rence aux informations suivantes.\ + \ "La soci\xE9t\xE9 dans chaque \xE9tat est une b\xE9n\xE9diction, mais\ + \ le gouvernement, m\xEAme dans son meilleur \xE9tat, n'est qu'un mal\ + \ n\xE9cessaire ; dans son pire \xE9tat, un mal intol\xE9rable ; car lorsque\ + \ nous souffrons ou sommes expos\xE9s aux m\xEAmes mis\xE8res par un gouvernement,\ + \ ce \xE0 quoi nous pourrions nous attendre dans un pays sans gouvernement,\ + \ notre calamit\xE9 s'aggrave en songeant que nous fournissons les moyens\ + \ par lesquels nous souffrons. Le gouvernement, comme l'habillement, est\ + \ l'insigne de l'innocence perdue ; les palais des rois sont b\xE2tis\ + \ sur les ruines des berceaux du paradis. si les impulsions de la conscience\ + \ \xE9taient claires, uniformes et irr\xE9sistiblement ob\xE9ies, l'homme\ + \ n'aurait besoin d'aucun autre l\xE9gislateur\_; mais cela n'\xE9\ + tant pas le cas, il trouve n\xE9cessaire de c\xE9der une partie de ses biens\ + \ pour fournir les moyens de prot\xE9ger le reste\_; et c'est ce qu'il\ + \ est amen\xE9 \xE0 faire par la m\xEAme prudence qui, dans tous les autres\ + \ cas, lui conseille, entre deux maux, de choisir le moindre. pour nous, avec\ + \ le moins de frais et le plus grand b\xE9n\xE9fice, est pr\xE9f\xE9rable \xE0\ + \ tous les autres." Thomas Paine, Common Sense, 1776 Laquelle des "mis\xE8\ + res" suivantes auxquelles il est fait allusion ci-dessus a \xE9t\xE9 la\ + \ plus condamn\xE9e par les anti-f\xE9d\xE9ralistes de l'\xE8re post-r\xE9\ + volutionnaire\_?" + - input_choice_list: + A: "Tensions entre la politique britannique et les aspirations des colons nord-am\xE9\ + ricains." + B: "Tensions entre les Am\xE9rindiens alli\xE9s des Fran\xE7ais et ceux alli\xE9\ + s des Britanniques." + C: "Tensions entre Afro-Am\xE9ricains lib\xE9r\xE9s et planteurs blancs." + D: "Tensions entre les colons de l'arri\xE8re-pays et les \xE9lites de l'Am\xE9\ + rique coloniale." + input_correct_responses: + - D + input_question: "Cette question fait r\xE9f\xE9rence aux informations suivantes.\ + \ "Comme notre derni\xE8re conduite au manoir Conestoga et \xE0 Lancaster\ + \ a occasionn\xE9 beaucoup de sp\xE9culations et une grande diversit\xE9 de\ + \ sentiments dans ce gouvernement et dans les gouvernements voisins\_; certains\ + \ le justifiant et d'autres le condamnant\_; certains att\xE9nuant charitablement\ + \ le crime, et d'autres le peignant malicieusement dans les termes les plus\ + \ odieux et les plus odieux. Couleurs d\xE9testables, nous pensons qu'il\ + \ est de notre devoir de mettre devant le Publick, toute la mati\xE8re telle\ + \ qu'elle nous est apparue et nous appara\xEEt encore... "Si ces choses\ + \ ne suffisent pas \xE0 prouver un attachement injustifiable des Quakers aux\ + \ Indiens sauvages , une r\xE9solution fixe de se lier d'amiti\xE9 avec\ + \ eux et une insensibilit\xE9 totale aux d\xE9tresses humaines, consid\xE9rons\ + \ quelques faits plus r\xE9cents. Lorsque nous avons d\xE9couvert l'\xE9\ + t\xE9 dernier que nous ne recevions probablement aucune aide du gouvernement,\ + \ certains volontaires sont sortis \xE0 nos propres frais, d\xE9termin\xE9s\ + \ \xE0 chasser nos ennemis de nos fronti\xE8res\_; & quand nous approch\xE2\ + mes de la grande \xEEle, nous compr\xEEmes qu'un certain nombre de leurs\ + \ guerriers \xE9taient sortis contre nos fronti\xE8res. Sur cela, nous sommes\ + \ revenus et sommes venus avec eux et nous nous sommes battus avec eux \xE0\ + \ Munfey Hill o\xF9 nous avons perdu certains de nos hommes et tu\xE9 certains\ + \ de leurs guerriers et ainsi sauv\xE9 nos fronti\xE8res de cette histoire dans\ + \ une autre exp\xE9dition. Mais \xE0 peine avions-nous d\xE9truit leurs provisions\ + \ sur la grande \xEEle et ruin\xE9 leur commerce avec le bon peuple \xE0 Bethl\xE9\ + em, mais ces m\xEAmes Indiens, qui \xE9taient \xE0 juste titre soup\xE7onn\xE9\ + s d'avoir assassin\xE9 nos amis dans le comt\xE9 de Northampton, \xE9taient\ + \ par l'influence de certains quakers pris sous la protection du gouvernement\ + \ pour les prot\xE9ger des ressentiments des amis et des parents des assassin\xE9\ + s, et pour les soutenir tout au long de l'hiver. " - "Apology\ + \ of the Paxton Boys" (pamphlet), 1764 ce contexte doit \xEAtre lu comme\ + \ une explication, et non comme un aveu de culpabilit\xE9 ou de regret.) Les\ + \ sentiments exprim\xE9s dans l'explication ci-dessus refl\xE8tent lesquelles\ + \ des tensions en cours pendant la p\xE9riode coloniale de l'histoire am\xE9\ + ricaine\_?" + - input_choice_list: + A: "l'amendement sur l'\xE9galit\xE9 des droits" + B: suffrage universel + C: "droits des \xC9tats" + D: interdiction + input_correct_responses: + - B + input_question: "Cette question fait r\xE9f\xE9rence aux informations suivantes.\ + \ "Dans le nouveau code des lois que je suppose qu'il vous sera n\xE9\ + cessaire de faire, je d\xE9sire que vous vous souveniez des dames et que vous\ + \ leur soyez plus g\xE9n\xE9reux et plus favorable que vos anc\xEAtres. Ne mettez\ + \ pas un tel pouvoir illimit\xE9 entre les mains des maris . Rappelez-vous que\ + \ tous les hommes seraient des tyrans s'ils le pouvaient. Si un soin et\ + \ une attention particuliers ne sont pas accord\xE9s aux dames, nous sommes\ + \ d\xE9termin\xE9s \xE0 fomenter une r\xE9bellion et nous ne nous tiendrons\ + \ pas li\xE9s par des lois dans lesquelles nous n'avons ni voix ni repr\xE9\ + sentation. Abigail Adams, dans une lettre \xE0 John Adams, 1776 "La l\xE9\ + gislation sp\xE9ciale pour la femme nous a plac\xE9s dans une position des plus\ + \ anormales. Les femmes investies des droits des citoyens dans une section -\ + \ \xE9lecteurs, jur\xE9s, titulaires de charge - franchissant une ligne imaginaire,\ + \ sont Dans certains \xC9tats, une femme mari\xE9e peut d\xE9tenir des biens\ + \ et faire des affaires en son propre nom\_; dans d'autres, ses revenus\ + \ appartiennent \xE0 son mari. Dans certains \xC9tats, une femme peut t\xE9\ + moigner contre son mari, poursuivre et \xEAtre poursuivie en justice dans d'autres,\ + \ elle n'a aucun recours en cas d'atteinte \xE0 la personne, aux biens\ + \ ou \xE0 la moralit\xE9. En cas de divorce pour cause d'adult\xE8re du\ + \ mari, l'\xE9pouse innocente est tenue de n'avoir aucun droit sur les\ + \ enfants ou les biens, \xE0 moins que par d\xE9cret sp\xE9cial du tribunal.\ + \ Mais dans aucun \xC9tat de l'Union, la femme n'a droit \xE0 sa propre\ + \ personne, ni \xE0 aucune partie des revenus communs de la co-partenariat pendant\ + \ la vie de son mari. Dans certains \xC9tats, les femmes peuvent entrer dans\ + \ la les \xE9coles de droit et la pratique devant les tribunaux ; dans d'autres,\ + \ elles sont interdites. Dans certaines universit\xE9s, les filles b\xE9n\xE9\ + ficient d'avantages \xE9ducatifs \xE9gaux \xE0 ceux des gar\xE7ons, tandis\ + \ que de nombreuses institutions parmi les plus fi\xE8res du pays leur refusent\ + \ l'admission, bien que les fils de Chine, du Japon et d'Afrique y soient\ + \ les bienvenus. Mais les privil\xE8ges d\xE9j\xE0 accord\xE9s dans les diff\xE9\ + rents \xC9tats ne sont en aucun cas s\xFBrs." Susan B. Anthony, "D\xE9\ + claration des droits des femmes", 4 juillet 1876 Les sentiments exprim\xE9\ + s dans le deuxi\xE8me extrait par Susan B. Anthony sont tr\xE8s probablement\ + \ \xE0 l'appui de" + - input_choice_list: + A: "Les Am\xE9ricains doivent maximiser leur avantage technologique au Vietnam." + B: "Les bombardements am\xE9ricains au Vietnam conduisent \xE9tape par \xE9\ + tape \xE0 des progr\xE8s dans la guerre." + C: "Les bombardements am\xE9ricains au Vietnam sont un \xE9chec." + D: "L'Am\xE9rique ne doit pas c\xE9der au d\xE9faitisme face \xE0 la guerre\ + \ du Vietnam." + input_correct_responses: + - C + input_question: "Cette question fait r\xE9f\xE9rence aux informations suivantes.\ + \ Nos dirigeants parlent d'arr\xEAter l'agression du nord, mais c'\xE9\ + tait une lutte entre des groupes de Vietnamiens jusqu'\xE0 ce que nous intervenions.\ + \ Nous semblons d\xE9termin\xE9s \xE0 sauver les Vietnamiens de Ho Chi Minh\ + \ m\xEAme si nous devons les tuer et d\xE9molir leur pays pour le faire. Alors\ + \ que les indig\xE8nes arpentent les villages bombard\xE9s, les femmes et les\ + \ enfants br\xFBl\xE9s par le napalm, les rizi\xE8res d\xE9truites et les villes\ + \ envahies par nos militaires, ils disent sans doute en secret des gu\xE9rilleros\ + \ vietcongs et des forces am\xE9ricaines : \xAB Une peste sur vos deux maisons\ + \ ." \u2026 Arr\xEAtez les bombardements, au nord et au sud, arr\xEAtez\ + \ les balayages offensifs de recherche et de destruction, et limitez notre action\ + \ militaire \xE0 la tenue d'op\xE9rations sur le terrain. Le bombardement\ + \ du nord n'a pas r\xE9ussi \xE0 arr\xEAter ou \xE0 freiner s\xE9rieusement\ + \ le flux de troupes vers le sud et pourrait, en fait, avoir d\xE9clench\xE9\ + \ un effort de guerre beaucoup plus important de la part de Hano\xEF. \u2014\ + S\xE9nateur George McGovern, \xAB\_Les le\xE7ons du Vietnam\_\xBB, 25 avril\ + \ 1967 Laquelle des opinions suivantes des ann\xE9es 1960 refl\xE8te le plus\ + \ directement la perspective du discours de George McGovern\_?" + - input_choice_list: + A: "Abiga\xEFl Adams" + B: Clara Barton + C: Temple de Shirley + D: Hillary Clinton + input_correct_responses: + - B + input_question: "Cette question fait r\xE9f\xE9rence aux informations suivantes.\ + \ Je ne viens pas pour presser des r\xE9clamations personnelles, ni pour rechercher\ + \ des avantages individuels ; J'apparais comme l'avocat de ceux qui\ + \ ne peuvent plaider leur propre cause ; Je viens comme l'ami de ceux qui\ + \ sont abandonn\xE9s, opprim\xE9s et d\xE9sol\xE9s. Dans la Providence de Dieu,\ + \ je suis la voix du maniaque dont les cris per\xE7ants des sombres cachots\ + \ de vos prisons ne p\xE9n\xE8trent pas dans vos salles de l\xE9gislation. Je\ + \ suis l'Espoir des pauvres fous qui se languissent dans les cellules, et\ + \ les stalles, et les cages, et les salles \xE0 d\xE9chets de vos hospices.\ + \ Je suis la R\xE9v\xE9lation de centaines de cr\xE9atures g\xE9missantes et\ + \ souffrantes, cach\xE9es dans vos habitations priv\xE9es, et dans des enclos\ + \ et des cabanes - ferm\xE9es, coup\xE9es de toutes les influences curatives,\ + \ de tous les soins qui restaurent l'esprit.\u2026 Leurs histoires m\xE9\ + lancoliques pourraient-elles se r\xE9pandre devant vous ? comme cela a \xE9\ + t\xE9 r\xE9v\xE9l\xE9 \xE0 mon esprit afflig\xE9 au cours des trois derniers\ + \ mois, avec quelle rapidit\xE9, avec quel s\xE9rieux chercheriez-vous les moyens\ + \ de soulagement les plus approuv\xE9s\_; combien insignifiants, combien insignifiants,\ + \ en comparaison, para\xEEtraient les sacrifices qu'on vous demande de faire\ + \ ; comment quelques centimes et dollars, recueillis aupr\xE8s de chaque citoyen,\ + \ diminueraient-ils en valeur en tant que possession, par rapport aux certains\ + \ avantages et au vaste bien \xE0 garantir aux ali\xE9n\xE9s souffrants ...\ + \ par la cons\xE9cration et l'application d'un fonds suffisant \xE0\ + \ la construction d'un h\xF4pital convenable.\u2026 \u2014 Dorothea Dix,\ + \ M\xE9morial sollicitant un h\xF4pital d'\xC9tat pour la protection et\ + \ la gu\xE9rison des ali\xE9n\xE9s, soumis \xE0 l'Assembl\xE9e g\xE9n\xE9\ + rale de la Caroline du Nord, novembre 1848 Dorothea Dix peut \xEAtre compar\xE9\ + e au mieux \xE0 qui ?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_us_history +tag: mmlu_fr_llama_humanities_tasks +task: mmlu_fr_llama_high_school_us_history +task_alias: high_school_us_history diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_world_history.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_world_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e8b2f84fc7ad2af970eed76558bf639051e51dad --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_high_school_world_history.yaml @@ -0,0 +1,114 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: hindouisme + B: bouddhisme + C: "shinto\xEFsme" + D: Zoroastrisme + input_correct_responses: + - A + input_question: "Cette question fait r\xE9f\xE9rence aux informations suivantes.\ + \ Il contient toutes les \u0153uvres et tous les d\xE9sirs et tous les parfums\ + \ et tous les go\xFBts. Il enveloppe tout l'univers et dans le silence il\ + \ aime tous. C'est l'Esprit qui est dans mon c\u0153ur, c'est Brahman.\ + \ A lui je viendrai quand j'irai au-del\xE0 de cette vie, et \xE0 lui viendra\ + \ celui qui a la foi et ne doute pas. \u2014Les Upanishads, Inde, v. 1000 avant\ + \ notre \xE8re \xC0 quelle religion le locuteur appartient-il le plus probablement\_\ + ?" + - input_choice_list: + A: "La r\xE9volution industrielle" + B: "D\xE9colonisation" + C: "Associations r\xE9gionales de libre-\xE9change" + D: Autarcie + input_correct_responses: + - B + input_question: "Cette question fait r\xE9f\xE9rence aux informations suivantes.\ + \ "La lutte contre le n\xE9o-colonialisme ne vise pas \xE0 emp\xEAcher\ + \ le capital du monde d\xE9velopp\xE9 d'op\xE9rer dans les pays moins d\xE9\ + velopp\xE9s. Elle vise \xE0 emp\xEAcher que le pouvoir financier des pays d\xE9\ + velopp\xE9s ne soit utilis\xE9 de mani\xE8re \xE0 appauvrir les moins d\xE9\ + velopp\xE9s. Le non-alignement, tel qu'il est pratiqu\xE9 par le Ghana et\ + \ de nombreux autres pays, repose sur la coop\xE9ration avec tous les \xC9tats,\ + \ qu'ils soient capitalistes, socialistes ou \xE0 \xE9conomie mixte. Une\ + \ telle politique implique donc des investissements \xE9trangers en provenance\ + \ des pays capitalistes, mais elle doit \xEAtre investi conform\xE9ment \xE0\ + \ un plan national \xE9labor\xE9 par le gouvernement de l'\xC9tat non align\xE9\ + \ en fonction de ses propres int\xE9r\xEAts. La question n'est pas de savoir\ + \ quel retour l'investisseur \xE9tranger re\xE7oit sur ses investissements...\ + \ La question est une question de pouvoir. Un \xC9tat en l'emprise du n\xE9\ + o-colonialisme n'est pas ma\xEEtre de son destin." Kwame Nkrumah, Neo-Colonialism,\ + \ 1965 Lequel des \xE9nonc\xE9s suivants fournit le meilleur contexte pour les\ + \ \xE9crits de Nkrumah\_?" + - input_choice_list: + A: Acceptation sociale du travail des enfants + B: "Baisse de l'esp\xE9rance de vie en Allemagne" + C: Critiques des tarifs commerciaux allemands + D: "Effets n\xE9gatifs attribu\xE9s au capitalisme industriel" + input_correct_responses: + - D + input_question: "Cette question fait r\xE9f\xE9rence aux informations suivantes.\ + \ \xAB Le vrai grief du travailleur est l'ins\xE9curit\xE9 de son existence\ + \ ; il n'est pas s\xFBr d'avoir toujours du travail, il n'est pas\ + \ s\xFBr d'\xEAtre toujours en bonne sant\xE9, et il pr\xE9voit qu'il\ + \ sera un jour vieux et inapte au travail. S'il tombe dans la pauvret\xE9\ + , ne serait-ce qu'\xE0 cause d'une maladie prolong\xE9e, il est alors\ + \ compl\xE8tement d\xE9muni, examin\xE9 par lui-m\xEAme, et la soci\xE9t\xE9\ + \ ne lui reconna\xEEt actuellement aucune obligation r\xE9elle au-del\xE0 de\ + \ l'aide habituelle aux pauvres, m\xEAme s'il a travaill\xE9 tout le\ + \ temps avec tant de fid\xE9lit\xE9 et de diligence. L'aide habituelle pour\ + \ les pauvres, cependant, laisse beaucoup \xE0 d\xE9sirer, surtout dans les\ + \ grandes villes, o\xF9 elle est bien pire qu'\xE0 la campagne. Otto von\ + \ Bismarck, 1884 Otto von Bismarck a probablement prononc\xE9 ce discours en\ + \ r\xE9action \xE0 laquelle des questions suivantes\_?" + - input_choice_list: + A: "Le maintien de la supr\xE9matie militaire \xE0 tout prix" + B: Les tensions croissantes entre les sectes religieuses + C: "Facteurs qui ont provoqu\xE9 l'effondrement de l'Empire ottoman" + D: Efforts de paix entre les empires islamiques + input_correct_responses: + - B + input_question: "Cette question fait r\xE9f\xE9rence aux informations suivantes.\ + \ "En effet, comme les fatwas d'\xE9minents [\xE9rudits] qui fondent\ + \ leur opinion sur la raison et la tradition et le consensus de la communaut\xE9\ + \ sunnite conviennent que l'ancienne obligation d'extirpation, d'extermination\ + \ et d'expulsion de l'innovation mal\xE9fique doit \xEAtre l'objectif\ + \ de notre exalt\xE9 aspiration, car "le z\xE8le religieux est une victoire\ + \ pour la Foi de Dieu le Bienfaiteur"\_; puis, conform\xE9ment aux paroles\ + \ du Proph\xE8te (paix sur lui\_!) "Quiconque introduit une innovation\ + \ mauvaise dans notre ordre doit \xEAtre expuls\xE9" et "Quiconque\ + \ fait tout ce qui est contraire \xE0 notre ordre doit \xEAtre expuls\xE9",\ + \ l'action est devenue n\xE9cessaire et exigeante\u2026" Lettre du\ + \ sultan ottoman Selim Ier au safavide Shah Ismail Ier, 1514 La lettre de Selim\ + \ Ier est le plus clairement un exemple de laquelle des r\xE9ponses suivantes\_\ + ?" + - input_choice_list: + A: "Une rupture des routes commerciales par l'effondrement de la structure\ + \ \xE9tatique \xE9tablie" + B: "Une augmentation de la population mondiale gr\xE2ce \xE0 des approvisionnements\ + \ alimentaires plus abondants" + C: "La propagation des syst\xE8mes de croyances chinois et indiens \xE0 travers\ + \ le monde" + D: Une augmentation des troubles sociaux + input_correct_responses: + - B + input_question: "Cette question fait r\xE9f\xE9rence aux informations suivantes.\ + \ "Au moins une des soci\xE9t\xE9s [du monde] devrait en quelque sorte\ + \ augmenter \xE9norm\xE9ment sa productivit\xE9 [afin d'atteindre l'h\xE9\ + g\xE9monie mondiale]. Ce saut quantique devrait \xEAtre fait avant les diverses\ + \ r\xE9volutions scientifiques, technologiques, agricoles et industrielles sur\ + \ lesquelles notre monde post-saut quantique. Cela ne pouvait \xEAtre accompli\ + \ qu'en exploitant les \xE9cosyst\xE8mes, les ressources min\xE9rales et\ + \ les ressources humaines de continents entiers en dehors des terres de la soci\xE9\ + t\xE9 effectuant le saut. C'est exactement ce que l'Europe occidentale\ + \ a fait au moyen de sa brutalit\xE9, de ses armes et de ses , plus important,\ + \ par chance g\xE9ographique et \xE9cologique." Copyright \xA9 2015 Cambridge\ + \ University Press. Alfred Crosby, historien, Ecological Imperialism, 2004 Le\ + \ "saut quantique" mentionn\xE9 dans le passage a le plus directement\ + \ contribu\xE9 \xE0 lequel des d\xE9veloppements suivants dans la p\xE9riode\ + \ 1450\u20131750 CE\_?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_world_history +tag: mmlu_fr_llama_humanities_tasks +task: mmlu_fr_llama_high_school_world_history +task_alias: high_school_world_history diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_human_aging.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_human_aging.yaml new file mode 100644 index 0000000000000000000000000000000000000000..980ebb776b273db9216cfe7142860dde4c3e55bd --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_human_aging.yaml @@ -0,0 +1,56 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Un homme ou une femme asiatique + B: Un homme hispanique + C: "Une femme afro-am\xE9ricaine" + D: Un homme ou une femme blanche + input_correct_responses: + - C + input_question: "Laquelle des personnes suivantes est la plus susceptible de rester\ + \ seule \xE0 la maison, \xE0 partir de 2019\_?" + - input_choice_list: + A: "Avantage \xE0 l'adolescence" + B: "Bosse de r\xE9miniscence" + C: "M\xE9morial M\xE9morial" + D: "Pointe de r\xE9cup\xE9ration quadratique" + input_correct_responses: + - B + input_question: "La d\xE9couverte selon laquelle les adultes ont tendance \xE0\ + \ mieux se souvenir des \xE9v\xE9nements de leur adolescence que des autres\ + \ p\xE9riodes de leur vie est appel\xE9e la" + - input_choice_list: + A: Texas + B: Californie + C: Hawaii + D: Vermont + input_correct_responses: + - A + input_question: "Lorsque des personnes \xE2g\xE9es d\xE9m\xE9nagent dans un nouvel\ + \ \xC9tat apr\xE8s leur retraite, laquelle des destinations suivantes est la\ + \ destination la plus probable\_?" + - input_choice_list: + A: Nicotine + B: Le goudron + C: Monoxyde de carbone + D: "Particules de fum\xE9e" + input_correct_responses: + - B + input_question: "Quel \xE9l\xE9ment de la fum\xE9e de tabac est responsable des\ + \ cancers ?" + - input_choice_list: + A: "Une femme hispano-am\xE9ricaine plus \xE2g\xE9e" + B: "Une femme afro-am\xE9ricaine plus \xE2g\xE9e" + C: "Une femme am\xE9ricaine d'origine asiatique plus \xE2g\xE9e" + D: "Une femme am\xE9rindienne plus \xE2g\xE9e" + input_correct_responses: + - C + input_question: "Toutes choses \xE9tant \xE9gales par ailleurs, laquelle des personnes\ + \ suivantes est la plus susceptible d'\xEAtre atteinte d'ost\xE9oporose\_\ + ?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_human_aging +tag: mmlu_fr_llama_other_tasks +task: mmlu_fr_llama_human_aging +task_alias: human_aging diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_human_sexuality.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_human_sexuality.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a7f236e305446b33840c1ec80138fac7029941f0 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_human_sexuality.yaml @@ -0,0 +1,55 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: au cours du premier trimestre + B: "au cours du deuxi\xE8me trimestre" + C: "au cours du troisi\xE8me trimestre" + D: tout au long de la grossesse + input_correct_responses: + - A + input_question: "Les naus\xE9es matinales sont g\xE9n\xE9ralement un probl\xE8\ + me\_:" + - input_choice_list: + A: un ego fort + B: un surmoi faible + C: un identifiant faible + D: un surmoi fort + input_correct_responses: + - B + input_question: "Une femme qui sait qu'elle a un herp\xE8s actif et une syphilis\ + \ non trait\xE9e mais qui continue \xE0 avoir des relations sexuelles sans informer\ + \ ses partenaires de son \xE9tat a, en termes psychanalytiques :" + - input_choice_list: + A: "le fait qu'ils n'ont pas de p\xE9riode r\xE9fractaire." + B: "la r\xE9ponse des couches internes du vagin." + C: "avoir des orgasmes altern\xE9s \xE0 diff\xE9rents endroits." + D: le point G. + input_correct_responses: + - A + input_question: "La capacit\xE9 des femmes \xE0 avoir des orgasmes multiples est\ + \ principalement due \xE0\_:" + - input_choice_list: + A: rapport sexuel + B: secousses de cercle + C: exhibitionnisme + D: "toucher les parties g\xE9nitales de l'autre" + input_correct_responses: + - A + input_question: "La nature des activit\xE9s homosexuelles qui se produisent pendant\ + \ la pr\xE9adolescence comprend tout mais lequel des \xE9l\xE9ments suivants\_\ + ?" + - input_choice_list: + A: "\xE9jaculation pr\xE9coce" + B: "\xE9jaculation inhib\xE9e" + C: "trouble \xE9rectile" + D: "trouble de l'\xE9jaculation" + input_correct_responses: + - C + input_question: "Le trouble le plus courant chez les hommes qui consultent une\ + \ th\xE9rapie sexuelle est\_:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_human_sexuality +tag: mmlu_fr_llama_social_sciences_tasks +task: mmlu_fr_llama_human_sexuality +task_alias: human_sexuality diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_international_law.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_international_law.yaml new file mode 100644 index 0000000000000000000000000000000000000000..71292a3a7d7ec1bdf87e10fa77b17195a21549bc --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_international_law.yaml @@ -0,0 +1,75 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "L'article 2(4) ne couvre que la force arm\xE9e" + B: L'article 2, paragraphe 4, englobe tous les types de force, y compris + les sanctions + C: "L'article 2(4) englobe toute ing\xE9rence dans les affaires int\xE9\ + rieures des \xC9tats" + D: "L'article 2(4) englobe la force dirig\xE9e uniquement contre l'int\xE9\ + grit\xE9 territoriale d'un \xC9tat" + input_correct_responses: + - A + input_question: Quels types de force l'article 2(4) de la Charte des Nations + Unies interdit-il ? + - input_choice_list: + A: "Si une partie \xE0 une affaire contentieuse devant la CIJ n'a pas de\ + \ si\xE8ge national en tant que juge, elle a le droit de nommer quelqu'un\ + \ comme juge uniquement pour cette affaire, avec le titre de juge ad hoc" + B: "Le juge ad hoc est le membre du si\xE8ge de la CIJ avec une voix pr\xE9\ + pond\xE9rante" + C: "Le juge ad hoc est un juge suppl\xE9ant, en cas de disqualification ou de\ + \ d\xE9c\xE8s d'un juge" + D: Le juge ad hoc est le juge que chaque partie nommera toujours dans chaque + affaire contentieuse + input_correct_responses: + - A + input_question: Qu'est-ce que le juge ad hoc ? + - input_choice_list: + A: "Il s'agit d'une r\xE9serve acceptable si la l\xE9gislation du pays\ + \ r\xE9servataire emploie une d\xE9finition diff\xE9rente" + B: "Il s'agit d'une r\xE9serve inacceptable car elle contrevient \xE0\ + \ l'objet et au but du PIDCP" + C: "Il s'agit d'une r\xE9serve inacceptable car la d\xE9finition de\ + \ la torture dans le PIDCP est conforme au droit international coutumier" + D: "Il s'agit d'une r\xE9serve acceptable car, en vertu du droit international\ + \ g\xE9n\xE9ral, les \xC9tats ont le droit de formuler des r\xE9serves aux\ + \ trait\xE9s" + input_correct_responses: + - B + input_question: "Une r\xE9serve \xE0 la d\xE9finition de la torture dans le PIDCP\ + \ serait-elle acceptable dans la pratique contemporaine ?" + - input_choice_list: + A: "Le consentement peut servir de circonstance excluant l'illic\xE9it\xE9\ + \ chaque fois qu'il est donn\xE9" + B: "Le consentement ne peut jamais servir de circonstance excluant l'illic\xE9\ + it\xE9" + C: "Le consentement peut servir de circonstance excluant l'illic\xE9it\xE9\ + , \xE0 condition que le consentement soit valable et dans la mesure o\xF9\ + \ le comportement reste dans les limites du consentement donn\xE9" + D: "Le consentement peut toujours servir de circonstance excluant l'illic\xE9\ + it\xE9, quel que soit l'organe de l'\xC9tat qui le donne" + input_correct_responses: + - C + input_question: "Quand le \xAB consentement \xBB peut-il servir de circonstance\ + \ excluant l'illic\xE9it\xE9 d'un comportement \xE9tatique ?" + - input_choice_list: + A: "Le consentement d'un \xC9tat \xE0 \xEAtre li\xE9 ne s'exprime que\ + \ par la ratification" + B: "Le consentement d'un \xC9tat \xE0 \xEAtre li\xE9 par un trait\xE9 peut\ + \ \xEAtre exprim\xE9 par la signature, la ratification, l'acceptation,\ + \ l'approbation ou l'adh\xE9sion" + C: "Le consentement d'un \xC9tat \xE0 \xEAtre li\xE9 s'exprime par la\ + \ signature" + D: "Le consentement d'un \xC9tat \xE0 \xEAtre li\xE9 s'exprime par le\ + \ moyen de son choix" + input_correct_responses: + - B + input_question: "Comment le consentement \xE0 \xEAtre li\xE9 d'un Etat peut-il\ + \ \xEAtre exprim\xE9 ?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_international_law +tag: mmlu_fr_llama_humanities_tasks +task: mmlu_fr_llama_international_law +task_alias: international_law diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_jurisprudence.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_jurisprudence.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e87df69db409154178d43f605b83b19809f1f585 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_jurisprudence.yaml @@ -0,0 +1,55 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Le POP choisirait l'\xE9galit\xE9 plut\xF4t que la libert\xE9." + B: "Le POP opterait pour la strat\xE9gie du 'maximin'." + C: "Le POP opterait pour le "principe de diff\xE9rence"." + D: "Le POP rejetterait le \xAB syst\xE8me de libert\xE9 naturelle \xBB." + input_correct_responses: + - A + input_question: "Selon Rawls, quelle position est la moins susceptible d'\xEA\ + tre adopt\xE9e par le POP (personnes dans la position d'origine)\_?" + - input_choice_list: + A: "maximiser la libert\xE9 individuelle" + B: fournir une base de compromis + C: maintenir la paix + D: "promouvoir les principes du syst\xE8me de la libre entreprise" + input_correct_responses: + - D + input_question: "Les fonctions de la loi incluent tout mais lequel des \xE9l\xE9\ + ments suivants\_?" + - input_choice_list: + A: "Autorit\xE9." + B: Charisme. + C: "Coop\xE9ration." + D: Capitalisme. + input_correct_responses: + - D + input_question: "Quel mot r\xE9sume le mieux l'explication de Weber du d\xE9\ + veloppement du droit formellement rationnel ?" + - input_choice_list: + A: Loi naturelle + B: Analytique + C: Historique + D: sociologique + input_correct_responses: + - A + input_question: "L'\xC9cole de jurisprudence ________ postule que la loi est\ + \ fond\xE9e sur ce qui est \xAB\_correct\_\xBB." + - input_choice_list: + A: La lettre est une offre de vente + B: "Une offre valable ne peut \xEAtre faite par lettre." + C: "La lettre contient une offre valable qui prendra fin dans un d\xE9lai raisonnable." + D: "Il manque \xE0 la lettre l'un des \xE9l\xE9ments essentiels d'une\ + \ offre." + input_correct_responses: + - D + input_question: "Iverson Jewelers a \xE9crit une lettre \xE0 Miller : \xAB Nous\ + \ avons re\xE7u une montre Rolox \xE0 remontage automatique d'une qualit\xE9\ + \ exceptionnelle que nous vous vendrons \xE0 un prix tr\xE8s avantageux." +include: _continuation_template_yaml +process_docs: !function utils.process_docs_jurisprudence +tag: mmlu_fr_llama_humanities_tasks +task: mmlu_fr_llama_jurisprudence +task_alias: jurisprudence diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_logical_fallacies.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_logical_fallacies.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e8ca9303abd015eb3d792b5c7535ad081cc61f0c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_logical_fallacies.yaml @@ -0,0 +1,62 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: tu quoque + B: rire de cheval + C: argument contre la personne + D: Ignoratio Elenchi + input_correct_responses: + - C + input_question: "Si quelqu'un attaque le caract\xE8re d'un argumentateur\ + \ adverse, au lieu de r\xE9pondre aux arguments de cet adversaire, la premi\xE8\ + re personne a probablement commis laquelle des erreurs suivantes\_?" + - input_choice_list: + A: "faire valoir que quelque chose est inf\xE9rieur simplement parce qu'il\ + \ ne fait pas quelque chose qu'il n'a jamais \xE9t\xE9 destin\xE9\ + \ \xE0 faire." + B: inclure plus d'une revendication dans la proposition et traiter la preuve + d'une revendication comme la preuve de toutes les revendications. + C: "tirer une conclusion avant d'examiner les preuves, et ne consid\xE9\ + rer que les preuves qui \xE9tayent cette conclusion." + D: "poser une question qui comprend soit une hypoth\xE8se non prouv\xE9e, soit\ + \ plus d'une question, rendant ainsi une r\xE9ponse simple oui ou non\ + \ sans signification." + input_correct_responses: + - D + input_question: "Le sophisme de la question complexe consiste \xE0" + - input_choice_list: + A: "La pr\xE9misse mineure doit nier l'ant\xE9c\xE9dent" + B: "La pr\xE9misse majeure doit affirmer la cons\xE9quence" + C: "Le moyen terme doit \xEAtre utilis\xE9 dans au moins une pr\xE9misse dans\ + \ un sens universel ou non qualifi\xE9" + D: "Tout ce qui pr\xE9c\xE8de" + input_correct_responses: + - C + input_question: "Lequel des \xE9nonc\xE9s suivants est vrai d'un syllogisme\ + \ cat\xE9gorique valide\_?" + - input_choice_list: + A: Division + B: Composition + C: "Appel \xE0 la personne" + D: "Appel \xE0 l'ignorance" + input_correct_responses: + - B + input_question: "Pr\xE9tendre que ce qui est vrai des parties doit \xEAtre vrai\ + \ du tout est le sophisme de..." + - input_choice_list: + A: manque d'esprit sportif + B: "appel \xE0 la compassion" + C: argument contre la personne + D: "ignorance de la r\xE9futation" + input_correct_responses: + - D + input_question: "Lorsqu'un argumentateur cause de la confusion pendant la\ + \ r\xE9futation en raison d'un manque r\xE9el ou simul\xE9 de capacit\xE9\ + \ \xE0 s'engager dans la r\xE9futation, cet argumentateur peut avoir commis\ + \ l'erreur de" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_logical_fallacies +tag: mmlu_fr_llama_humanities_tasks +task: mmlu_fr_llama_logical_fallacies +task_alias: logical_fallacies diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_machine_learning.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_machine_learning.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a2927b0b8ed3835b0c7a041f376b4fc0a6c9a800 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_machine_learning.yaml @@ -0,0 +1,80 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: 2.0/15 + B: 1.0/7 + C: 3.0/16 + D: 1.0/5 + input_correct_responses: + - B + input_question: "Un d\xE9 \xE0 6 faces est lanc\xE9 15 fois et les r\xE9sultats\ + \ sont : la face 1 appara\xEEt 0 fois ; face 2\_: 1 fois ; face 3\_: 2 fois\ + \ ; face 4\_: 3 fois ; face 5\_: 4 fois ; face 6\_: 5 fois. Sur la base de ces\ + \ r\xE9sultats, quelle est la probabilit\xE9 que le c\xF4t\xE9 3 apparaisse\ + \ lors de l'utilisation du lissage Add-1\_?" + - input_choice_list: + A: "recadrage al\xE9atoire et retournement horizontal" + B: "recadrage al\xE9atoire et retournement vertical" + C: "post\xE9risation" + D: tramage + input_correct_responses: + - A + input_question: "Quelle augmentation de donn\xE9es d'image est la plus courante\ + \ pour les images naturelles\_?" + - input_choice_list: + A: "Ma m\xE9thode permet d'obtenir une erreur d'apprentissage inf\xE9\ + rieure \xE0 toutes les m\xE9thodes pr\xE9c\xE9dentes\_!" + B: "Ma m\xE9thode obtient une erreur de test inf\xE9rieure \xE0 toutes les m\xE9\ + thodes pr\xE9c\xE9dentes\_! (Note de bas de page\_: Lorsque le param\xE8tre\ + \ de r\xE9gularisation \u03BB est choisi de mani\xE8re \xE0 minimiser l'erreur\ + \ de test.)" + C: "Ma m\xE9thode obtient une erreur de test inf\xE9rieure \xE0 toutes les m\xE9\ + thodes pr\xE9c\xE9dentes\_! (Note de bas de page\_: Lorsque le param\xE8tre\ + \ de r\xE9gularisation \u03BB est choisi de mani\xE8re \xE0 minimiser l'erreur\ + \ de validation crois\xE9e.)" + D: "Ma m\xE9thode obtient une erreur de validation crois\xE9e inf\xE9rieure\ + \ \xE0 toutes les m\xE9thodes pr\xE9c\xE9dentes\_! (Note de bas de page\_\ + : Lorsque le param\xE8tre de r\xE9gularisation \u03BB est choisi de mani\xE8\ + re \xE0 minimiser l'erreur de validation crois\xE9e.)" + input_correct_responses: + - C + input_question: "Vous r\xE9visez des articles pour la World's Fanciest Machine\ + \ Learning Conference, et vous voyez des soumissions avec les affirmations suivantes.\ + \ Lesquelles envisageriez-vous d'accepter\_?" + - input_choice_list: + A: environ 10 exemples + B: environ 100 exemples + C: entre 100 et 500 exemplaires + D: plus de 1000 exemples + input_correct_responses: + - D + input_question: "Pour obtenir une estimation de perte 0/1 inf\xE9rieure \xE0 1\_\ + % de la v\xE9ritable perte 0/1 (avec une probabilit\xE9 de 95\_%), selon l'in\xE9\ + galit\xE9 de Hoeffding, l'ensemble de tests IID doit avoir combien d'exemples\_\ + ?" + - input_choice_list: + A: "C'est trop co\xFBteux en calcul." + B: "Cela se traduirait probablement par un arbre de d\xE9cision qui obtiendrait\ + \ de mauvais r\xE9sultats sur l'ensemble d'apprentissage et sur un\ + \ ensemble de tests." + C: "Cela se traduirait probablement par un arbre de d\xE9cision qui obtiendrait\ + \ de bons r\xE9sultats sur l'ensemble d'apprentissage, mais de mauvais\ + \ r\xE9sultats sur un ensemble de tests." + D: "Cela se traduirait probablement par un arbre de d\xE9cision qui obtient\ + \ de bons r\xE9sultats sur un ensemble de tests, mais de mauvais r\xE9sultats\ + \ sur un ensemble d'apprentissage." + input_correct_responses: + - C + input_question: "Traditionnellement, lorsque nous avons un attribut d'entr\xE9\ + e \xE0 valeur r\xE9elle lors de l'apprentissage de l'arbre de d\xE9\ + cision, nous consid\xE9rons une division binaire selon que l'attribut est\ + \ sup\xE9rieur ou inf\xE9rieur \xE0 un certain seuil. Pat sugg\xE8re qu'\xE0\ + \ la place, nous devrions simplement avoir une division multivoie avec une branche\ + \ pour chacune des valeurs distinctes de l'attribut. Dans la liste ci-dessous,\ + \ choisissez le plus gros probl\xE8me avec la suggestion de Pat\_:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_machine_learning +tag: mmlu_fr_llama_stem_tasks +task: mmlu_fr_llama_machine_learning +task_alias: machine_learning diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_management.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_management.yaml new file mode 100644 index 0000000000000000000000000000000000000000..551843f52a8013c682e42503747e66d45ccea6ea --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_management.yaml @@ -0,0 +1,52 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Position de d\xE9part et position finale" + B: "Environnement initial et environnement modifi\xE9" + C: Structure organisationnelle et conditionnement + D: "Structure initiale et consid\xE9rations" + input_correct_responses: + - D + input_question: "Quelles sont les deux principales dimensions des \xE9tudes de\ + \ l'Ohio sur le leadership\_?" + - input_choice_list: + A: "Fr\xE9d\xE9rick Hertzberg" + B: DC McClelland + C: Abraham Maslow + D: Douglas Mc Gregor + input_correct_responses: + - A + input_question: "Les facteurs d'hygi\xE8ne sont associ\xE9s \xE0 quel \xE9\ + crivain\_?" + - input_choice_list: + A: Symboles + B: Rituels et routines + C: Structures de pouvoir + D: "Syst\xE8mes de contr\xF4le" + input_correct_responses: + - A + input_question: "Quel \xE9l\xE9ment du web culturel forme des insignes ?" + - input_choice_list: + A: Moral + B: Innovation + C: Ressource de croissance + D: Adaptation + input_correct_responses: + - A + input_question: "Quelle caract\xE9ristique n'est pas un \xE9l\xE9ment cl\xE9\ + \ du mod\xE8le de gestion des \xAB syst\xE8mes ouverts \xBB ?" + - input_choice_list: + A: "Hi\xE9rarchique" + B: Bureaucratique + C: Plat + D: Fonctionnel + input_correct_responses: + - C + input_question: "Comment d\xE9crire des structures organisationnelles caract\xE9\ + ris\xE9es par des styles de gestion d\xE9mocratiques et inclusifs ?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_management +tag: mmlu_fr_llama_other_tasks +task: mmlu_fr_llama_management +task_alias: management diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_marketing.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_marketing.yaml new file mode 100644 index 0000000000000000000000000000000000000000..67df79012d30df244ae7d3442db19f1bb97990eb --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_marketing.yaml @@ -0,0 +1,61 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "G\xE9od\xE9mographie" + B: "Diff\xE9renciation de produit." + C: Matrice ANSOFF. + D: Gestion de la marque. + input_correct_responses: + - A + input_question: "_____________ est un r\xE9sultat naturel lorsque l'on combine\ + \ des variables d\xE9mographiques et g\xE9ographiques." + - input_choice_list: + A: "Unit\xE9 d'externalisation." + B: Centre d'approvisionnement. + C: "Unit\xE9 de direction g\xE9n\xE9rale." + D: "Unit\xE9 d\xE9cisionnelle." + input_correct_responses: + - D + input_question: "Dans une organisation, le groupe de personnes charg\xE9es des\ + \ d\xE9cisions d'achat est appel\xE9 _______________." + - input_choice_list: + A: "Les besoins d\xE9pendent de la culture et aussi de la classe sociale." + B: "Les besoins de niveau inf\xE9rieur doivent \xEAtre au moins partiellement\ + \ satisfaits avant que des besoins plus \xE9lev\xE9s puissent affecter le\ + \ comportement." + C: "Les besoins ne sont pas hi\xE9rarchis\xE9s ni class\xE9s dans un ordre particulier." + D: "Les besoins satisfaits sont des facteurs de motivation et de nouveaux besoins\ + \ \xE9mergent lorsque les besoins actuels ne sont pas satisfaits." + input_correct_responses: + - B + input_question: "Lequel des \xE9nonc\xE9s suivants est une hypoth\xE8se dans la\ + \ hi\xE9rarchie des besoins de Maslow\_?" + - input_choice_list: + A: "Le consommateur plus \xE2g\xE9 qui se sent quelque peu exclu." + B: "Les femmes mari\xE9es, dont beaucoup ressentent un besoin de stabilit\xE9\ + \ dans leur vie." + C: "Les nouveaux immigrants qui veulent vraiment s'assimiler \xE0 leur nouvelle\ + \ culture." + D: "Les enfants, qui fondent la plupart de leurs d\xE9cisions d'achat sur\ + \ des influences ext\xE9rieures." + input_correct_responses: + - D + input_question: "Le seul groupe au sein de la soci\xE9t\xE9 qui est le plus vuln\xE9\ + rable \xE0 l'influence du groupe de r\xE9f\xE9rence est\_:" + - input_choice_list: + A: Lignes de soins. + B: Courrier direct. + C: Insertions. + D: "Porte \xE0 porte." + input_correct_responses: + - D + input_question: "Bien que le contenu et la qualit\xE9 puissent \xEAtre aussi contr\xF4\ + l\xE9s que le publipostage, les taux de r\xE9ponse de ce m\xE9dia sont plus\ + \ faibles en raison de l'absence d'un m\xE9canisme d'adresse personnelle.\ + \ Ce format de m\xE9dia est connu sous le nom de\_:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_marketing +tag: mmlu_fr_llama_other_tasks +task: mmlu_fr_llama_marketing +task_alias: marketing diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_medical_genetics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_medical_genetics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..85af7d5ab6e55da48170ef72d2569150d064e10e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_medical_genetics.yaml @@ -0,0 +1,53 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "r\xE9action en cha\xEEne par polym\xE9rase." + B: analyse du polymorphisme conformationnel simple brin. + C: Southern Blot. + D: Western blot. + input_correct_responses: + - C + input_question: "Les grandes expansions r\xE9p\xE9t\xE9es de triplets peuvent\ + \ \xEAtre d\xE9tect\xE9es par\_:" + - input_choice_list: + A: "une enzyme qui joint des fragments dans la r\xE9plication normale de l'ADN" + B: "une enzyme d'origine bact\xE9rienne qui coupe l'ADN \xE0 des s\xE9\ + quences de bases d\xE9finies" + C: "une enzyme qui facilite la transcription de g\xE8nes sp\xE9cifiques" + D: une enzyme qui limite le niveau auquel un nutriment particulier atteint + input_correct_responses: + - A + input_question: L'ADN ligase est + - input_choice_list: + A: "a les deux all\xE8les exprim\xE9s ind\xE9pendamment chez l'h\xE9t\xE9\ + rozygote" + B: "a un all\xE8le dominant l'autre" + C: "a des all\xE8les \xE9troitement li\xE9s sur le m\xEAme chromosome" + D: "a des all\xE8les exprim\xE9s en m\xEAme temps dans le d\xE9veloppement" + input_correct_responses: + - A + input_question: "Un g\xE8ne montrant la codominance" + - input_choice_list: + A: "St\xE9nose pylorique" + B: "Schizophr\xE9nie" + C: Spina bifida (malformations du tube neural) + D: Le syndrome de Marfan + input_correct_responses: + - D + input_question: "Laquelle des conditions suivantes ne montre pas l'h\xE9ritage\ + \ multifactoriel\_?" + - input_choice_list: + A: prophase I + B: "m\xE9taphase I" + C: prophase II + D: "m\xE9taphase II" + input_correct_responses: + - A + input_question: "Le stade de la m\xE9iose au cours duquel les chromosomes s'apparient\ + \ et se croisent est\_:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_medical_genetics +tag: mmlu_fr_llama_other_tasks +task: mmlu_fr_llama_medical_genetics +task_alias: medical_genetics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_miscellaneous.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_miscellaneous.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5511a9ba3115cb8bab4de5ddbbc2f76cb3bb0aff --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_miscellaneous.yaml @@ -0,0 +1,51 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: un + B: deux + C: quatre + D: huit + input_correct_responses: + - B + input_question: "Combien d'essieux une automobile standard a-t-elle\_?" + - input_choice_list: + A: Budapest + B: "Bud\u014Dkan" + C: Bhoutan + D: Grande-Bretagne + input_correct_responses: + - B + input_question: "Quel endroit est nomm\xE9 dans le titre de l'album live de\ + \ 1979 des l\xE9gendes du rock Cheap Trick\_?" + - input_choice_list: + A: Anthony "Spud" Webb + B: Michael "Air" Jordan + C: Tyrone "Muggsy" Bogues + D: Julius 'Dr J' Erving + input_correct_responses: + - A + input_question: "Qui est l'homme le plus petit \xE0 avoir remport\xE9 une\ + \ comp\xE9tition de slam dunk de la NBA ?" + - input_choice_list: + A: "hydrog\xE8ne" + B: nylon + C: "oxyg\xE8ne" + D: "lumi\xE8re" + input_correct_responses: + - C + input_question: "Que produit-on lors de la photosynth\xE8se ?" + - input_choice_list: + A: ''Radio Gaga'' + B: ''Ob-la-di Ob-la-da'' + C: ''De Do Do Do De Da Da Da'' + D: ''In-a-Gadda-Da-Vida'' + input_correct_responses: + - C + input_question: "Laquelle de ces chansons figurait dans le Top 10 du groupe de\ + \ rock The Police\_?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_miscellaneous +tag: mmlu_fr_llama_other_tasks +task: mmlu_fr_llama_miscellaneous +task_alias: miscellaneous diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_moral_disputes.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_moral_disputes.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b343c0614a034b83212e05a0d49d098e6be8d693 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_moral_disputes.yaml @@ -0,0 +1,62 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "On ne sait pas encore si la peine capitale dissuade ou non de nuire \xE0\ + \ la communaut\xE9." + B: "On ne sait pas encore si la peine capitale dissuade ou non de nuire \xE0\ + \ des individus." + C: "Le cons\xE9quentialisme n'est pas soutenu par les valeurs africaines." + D: "M\xEAme si le cons\xE9quentialisme est soutenu par les valeurs africaines,\ + \ aucun argument cons\xE9quentialiste formul\xE9 en termes de valeurs africaines\ + \ n'a \xE9t\xE9 propos\xE9." + input_correct_responses: + - A + input_question: "Selon Metz, qu'est-ce qui ne va pas avec les arguments cons\xE9\ + quentialistes contre la peine capitale bas\xE9s sur les valeurs africaines ?" + - input_choice_list: + A: un zygote. + B: un embryon. + C: "une viabilit\xE9." + D: un blastocyste. + input_correct_responses: + - A + input_question: "Un ovule f\xE9cond\xE9 est \xE9galement appel\xE9" + - input_choice_list: + A: "\xEAtre dans la classe sup\xE9rieure" + B: "la capacit\xE9 d'apprendre et de r\xE9soudre des probl\xE8mes" + C: "\xEAtre plus belle que la plupart de la population" + D: "\xEAtre plus petit que la moyenne" + input_correct_responses: + - B + input_question: "Lequel des \xE9l\xE9ments suivants est un bien intrins\xE8que,\ + \ selon Singer\_?" + - input_choice_list: + A: "Le SCNT n'est pas un type de reproduction diff\xE9rent car il n'y\ + \ a pas de diff\xE9rences moralement pertinentes entre celui-ci et d'autres\ + \ moyens de reproduction autoris\xE9s." + B: "Parce qu'il y a un faible risque de pr\xE9judice pour le jumelage naturel,\ + \ il y aura un faible risque de pr\xE9judice pour le SCNT." + C: les deux, A et B + D: ni A ni B + input_correct_responses: + - A + input_question: "Pence compare six cas diff\xE9rents de reproduction, du jumelage\ + \ naturel au SCNT. Quelle conclusion tire-t-il de cette comparaison ?" + - input_choice_list: + A: "la stupidit\xE9 de la plupart des exemples philosophiques traditionnels." + B: "un manque g\xE9n\xE9ral d'intelligence chez les personnes ayant des\ + \ dipl\xF4mes sup\xE9rieurs." + C: le mal de la torture. + D: "la volont\xE9 de nombreuses personnes intelligentes de consid\xE9rer la\ + \ torture comme la meilleure solution pour faire face au terrorisme." + input_correct_responses: + - D + input_question: "Baron admet que les versions de la bombe \xE0 retardement hypoth\xE9\ + tique dont elle parle sont "incroyablement stupides", mais elle affirme\ + \ que c'est en fait la preuve de" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_moral_disputes +tag: mmlu_fr_llama_humanities_tasks +task: mmlu_fr_llama_moral_disputes +task_alias: moral_disputes diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_moral_scenarios.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_moral_scenarios.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c2fadf2eb9b343804b0a3f240f8b4172da64a7b1 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_moral_scenarios.yaml @@ -0,0 +1,73 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Faux faux + B: Faux, pas faux + C: Pas faux, faux + D: Pas mal, pas mal + input_correct_responses: + - C + input_question: "Pour lequel de ces deux sc\xE9narios le personnage principal\ + \ (qui utilise I/me/my) fait-il quelque chose de clairement moralement r\xE9\ + pr\xE9hensible, selon les normes morales ordinaires aux \xC9tats-Unis en 2020\_\ + ? Sc\xE9nario 1 | J'ai vraiment aim\xE9 mon petit gar\xE7on nouveau-n\xE9\ + . Sc\xE9nario 2 | La nouvelle fille est g\xEAn\xE9e de vivre dans un parc \xE0\ + \ roulottes, alors j'invite la classe chez elle." + - input_choice_list: + A: Faux faux + B: Faux, pas faux + C: Pas faux, faux + D: Pas mal, pas mal + input_correct_responses: + - C + input_question: "Pour lequel de ces deux sc\xE9narios le personnage principal\ + \ (qui utilise I/me/my) fait-il quelque chose de clairement moralement r\xE9\ + pr\xE9hensible, selon les normes morales ordinaires aux \xC9tats-Unis en 2020\_\ + ? Sc\xE9nario 1 | J'ai demand\xE9 une cigarette au gars \xE0 l'ext\xE9\ + rieur du magasin. Sc\xE9nario 2 | Lorsque l'agent de s\xE9curit\xE9 a quitt\xE9\ + \ son poste, j'ai empoch\xE9 une pi\xE8ce rare." + - input_choice_list: + A: Faux faux + B: Faux, pas faux + C: Pas faux, faux + D: Pas mal, pas mal + input_correct_responses: + - D + input_question: "Pour lequel de ces deux sc\xE9narios le personnage principal\ + \ (qui utilise I/me/my) fait-il quelque chose de clairement moralement r\xE9\ + pr\xE9hensible, selon les normes morales ordinaires aux \xC9tats-Unis en 2020\_\ + ? Sc\xE9nario 1 | J'ai achet\xE9 une vieille camionnette pour le travail.\ + \ Sc\xE9nario 2 | J'ai lev\xE9 les yeux vers la magnifique cascade et j'ai\ + \ lanc\xE9 une pierre dessus." + - input_choice_list: + A: Faux faux + B: Faux, pas faux + C: Pas faux, faux + D: Pas mal, pas mal + input_correct_responses: + - B + input_question: "Pour lequel de ces deux sc\xE9narios le personnage principal\ + \ (qui utilise I/me/my) fait-il quelque chose de clairement moralement r\xE9\ + pr\xE9hensible, selon les normes morales ordinaires aux \xC9tats-Unis en 2020\_\ + ? Sc\xE9nario 1 | Pendant la d\xE9molition de la maison, je l'ai pouss\xE9\ + \ contre un mur. Sc\xE9nario 2 | Quand je choisis une baby-sitter pour mes ni\xE8\ + ces jumelles, je me fiche de son origine raciale." + - input_choice_list: + A: Faux faux + B: Faux, pas faux + C: Pas faux, faux + D: Pas mal, pas mal + input_correct_responses: + - A + input_question: "Pour lequel de ces deux sc\xE9narios le personnage principal\ + \ (qui utilise I/me/my) fait-il quelque chose de clairement moralement r\xE9\ + pr\xE9hensible, selon les normes morales ordinaires aux \xC9tats-Unis en 2020\_\ + ? Sc\xE9nario 1 | J'ai pris son portefeuille apr\xE8s qu'il m'ait\ + \ harcel\xE9 au bar. Sc\xE9nario 2 | J'ai fait l'amour avec mon nouveau-n\xE9\ + ." +include: _continuation_template_yaml +process_docs: !function utils.process_docs_moral_scenarios +tag: mmlu_fr_llama_humanities_tasks +task: mmlu_fr_llama_moral_scenarios +task_alias: moral_scenarios diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_nutrition.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_nutrition.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2b303de4a8c6a26f68665d02cba74df6e8b221f7 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_nutrition.yaml @@ -0,0 +1,71 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Les buveurs de th\xE9 ont moins de risque de d\xE9velopper un diab\xE8te." + B: "Les buveurs de th\xE9 ont un risque plus \xE9lev\xE9 de d\xE9velopper un\ + \ diab\xE8te." + C: "Sur la base des informations fournies, nous ne pouvons pas dire si la diff\xE9\ + rence observ\xE9e dans le risque de maladie est le r\xE9sultat du hasard." + D: "Le risque relatif est proche de la valeur un, il n'y a donc pas de diff\xE9\ + rence de risque de maladie entre les deux groupes." + input_correct_responses: + - C + input_question: "Dans une \xE9tude de cohorte, le risque relatif de d\xE9velopper\ + \ un diab\xE8te \xE9tait de 0,86 en comparant les consommateurs de th\xE9 (les\ + \ expos\xE9s) \xE0 ceux qui ne buvaient pas de th\xE9 (les non expos\xE9s).\ + \ Laquelle des affirmations est correcte (selon les connaissances en 2020)\_\ + ?" + - input_choice_list: + A: "Les consommateurs atteints de ph\xE9nylc\xE9tonurie doivent \xE9viter la\ + \ consommation de l'\xE9dulcorant aspartame" + B: "Les consommateurs atteints de ph\xE9nylc\xE9tonurie doivent \xE9viter la\ + \ consommation de l'\xE9dulcorant saccharine" + C: "Les consommateurs atteints de ph\xE9nylc\xE9tonurie doivent \xE9viter la\ + \ consommation de l'\xE9dulcorant sucralose" + D: "Les consommateurs atteints de ph\xE9nylc\xE9tonurie doivent \xE9viter la\ + \ consommation de l'\xE9dulcorant ac\xE9sulfame K" + input_correct_responses: + - A + input_question: "Laquelle des affirmations suivantes est correcte (selon les connaissances\ + \ en 2020)\_?" + - input_choice_list: + A: "L'acide propionique, form\xE9 pendant la fermentation des fibres du\ + \ c\xF4lon, inhibe la synth\xE8se des acides gras du foie" + B: "L'acide butyrique, form\xE9 lors de la fermentation des fibres du c\xF4\ + lon, stimule le "silence" du g\xE8ne suppresseur de tumeur SLC5A8" + C: Aucune de ces options n'est correcte + D: "L'acide butyrique, form\xE9 lors de la fermentation des fibres coliques,\ + \ stimule les d\xE9fenses anti-oxydantes du c\xF4lon" + input_correct_responses: + - D + input_question: "Laquelle des affirmations suivantes est l'explication la\ + \ plus plausible de l'effet protecteur des fibres alimentaires contre le\ + \ cancer du c\xF4lon, \xE0 partir de 2020\_?" + - input_choice_list: + A: "50% des adultes consomment de l'iode \xE0 des niveaux inf\xE9rieurs\ + \ au RNI" + B: Les produits laitiers sont une mauvaise source d'iode + C: "La teneur en iode du lait biologique est g\xE9n\xE9ralement inf\xE9rieure\ + \ \xE0 celle du lait non biologique" + D: "Les valeurs nutritionnelles de r\xE9f\xE9rence du Royaume-Uni recommandent\ + \ une augmentation de l'apport en iode pendant la grossesse" + input_correct_responses: + - C + input_question: "Laquelle des affirmations suivantes sur l'iode est correcte,\ + \ \xE0 partir de 2020\_?" + - input_choice_list: + A: Acarbose + B: Metformine + C: "Sulfonylur\xE9es" + D: Insuline + input_correct_responses: + - B + input_question: "Quel est le m\xE9dicament de premi\xE8re ligne pour les patients\ + \ atteints de diab\xE8te de type 2 et d'ob\xE9sit\xE9, \xE0 partir de 2020\_\ + ?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_nutrition +tag: mmlu_fr_llama_other_tasks +task: mmlu_fr_llama_nutrition +task_alias: nutrition diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_philosophy.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_philosophy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..149dcfa50d9c47624a76f69ec83db86e1da90656 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_philosophy.yaml @@ -0,0 +1,54 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "une th\xE9orie \xE9thique sur la fa\xE7on dont nous devrions nous comporter." + B: "une g\xE9n\xE9ralisation concernant la fa\xE7on dont les gens ont tendance\ + \ \xE0 se comporter." + C: "une revendication sur la nature humaine et les fa\xE7ons dont les gens sont\ + \ capables de se comporter." + D: "Aucune de ces r\xE9ponses." + input_correct_responses: + - C + input_question: "L'\xE9go\xEFsme psychologique est :" + - input_choice_list: + A: plaisir. + B: bonheur. + C: bien. + D: vertu. + input_correct_responses: + - C + input_question: "Selon \xAB l'utilitarisme id\xE9al \xBB de Moore, la bonne\ + \ action est celle qui produit le plus de :" + - input_choice_list: + A: choix libres + B: "diktat de l'\xE2me" + C: "lois naturelles n\xE9cessaires" + D: "volont\xE9 ind\xE9termin\xE9e" + input_correct_responses: + - C + input_question: Selon d'Holbach, les gens agissent toujours selon _____. + - input_choice_list: + A: optimiste + B: satisfait + C: nominalement religieux + D: pessimiste + input_correct_responses: + - D + input_question: "Avant la conversion chr\xE9tienne de Tolsto\xEF, quelle \xE9\ + tait sa perspective sur le sens de la vie ?" + - input_choice_list: + A: "m\xE9taphysique" + B: "\xE9pist\xE9mologie" + C: la physique quantique + D: axiologie + input_correct_responses: + - A + input_question: "L'\xE9tude de la r\xE9alit\xE9 au sens le plus large, une\ + \ enqu\xEAte sur la nature \xE9l\xE9mentaire de l'univers et des choses\ + \ qu'il contient, est connue sous le nom de _____." +include: _continuation_template_yaml +process_docs: !function utils.process_docs_philosophy +tag: mmlu_fr_llama_humanities_tasks +task: mmlu_fr_llama_philosophy +task_alias: philosophy diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_prehistory.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_prehistory.yaml new file mode 100644 index 0000000000000000000000000000000000000000..aa4d7d9f116c5cfc74ebb8f6843de6b38d082ab7 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_prehistory.yaml @@ -0,0 +1,66 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "satisfaire les puissants pr\xEAtres astronomes mayas." + B: "montrer sa g\xE9n\xE9rosit\xE9 envers les gens du commun, puisqu'ils\ + \ ont \xE9t\xE9 autoris\xE9s \xE0 vivre dans les temples." + C: effrayer les ennemis, en particulier les Espagnols. + D: "l\xE9gitimer sa royaut\xE9, puisque son p\xE8re n'\xE9tait pas royal." + input_correct_responses: + - D + input_question: 'Le grand roi maya Pacal a construit des temples dans la ville + de Palenque afin de :' + - input_choice_list: + A: "un centre de la civilisation du Mississippien avec des conditions similaires\ + \ \xE0 la mont\xE9e des premiers \xC9tats." + B: "les limites de l'autorit\xE9 dans une soci\xE9t\xE9 am\xE9rindienne\ + \ de butineurs \xE9galitaires." + C: "une chefferie simple ou peut-\xEAtre une chefferie complexe avait \xE9volu\xE9\ + \ vers 1500 apr\xE8s JC." + D: "un centre de la civilisation du Mississippien avec des conditions similaires\ + \ aux soci\xE9t\xE9s de la c\xF4te nord-ouest de l'Am\xE9rique du Nord." + input_correct_responses: + - A + input_question: "Selon Timothy Pauketat, les preuves de la stratification sociale\ + \ et du pouvoir politique \xE0 Cahokia sugg\xE8rent\_:" + - input_choice_list: + A: un cataclysme quelconque, tel qu'un tremblement de terre, un volcan ou + un tsunami. + B: "d\xE9gradation \xE9cologique r\xE9sultant des techniques d'agriculture\ + \ itin\xE9rante sur br\xFBlis." + C: "des guerres interminables entre cit\xE9s-\xC9tats mayas voisines." + D: "pratiques de m\xE9tissage qui ont conduit \xE0 une forte augmentation des\ + \ maladies cong\xE9nitales." + input_correct_responses: + - B + input_question: "Les chercheurs pensent maintenant que le d\xE9clin des Mayas\ + \ a \xE9t\xE9 caus\xE9 principalement par :" + - input_choice_list: + A: "une grande diversit\xE9 d'esp\xE8ces, ou une seule esp\xE8ce qui pr\xE9\ + sentait une grande diversit\xE9." + B: "tr\xE8s peu de diversit\xE9 d'esp\xE8ces durant cette p\xE9riode et\ + \ tr\xE8s peu d'hominid\xE9s." + C: "diminution de la diversit\xE9 des esp\xE8ces due \xE0 une p\xE9riode glaciaire\ + \ prolong\xE9e suivie d'une grave s\xE9cheresse." + D: "diminution de la diversit\xE9 des esp\xE8ces mais augmentation du nombre\ + \ de percuteurs et d'\xE9clats, indiquant la fabrication d'outils\ + \ en pierre." + input_correct_responses: + - A + input_question: "Des recherches r\xE9centes sur des esp\xE8ces d'hominid\xE9\ + s datant du Plioc\xE8ne moyen indiquent qu'il y avait (en 2020):" + - input_choice_list: + A: moins de 650 cm3 + B: environ 800 cm3 + C: un peu moins de 1000 cm3 + D: 1200 cm3 + input_correct_responses: + - C + input_question: "Quelle est la capacit\xE9 cr\xE2nienne moyenne approximative\ + \ de l'Homo erectus ?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_prehistory +tag: mmlu_fr_llama_humanities_tasks +task: mmlu_fr_llama_prehistory +task_alias: prehistory diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_professional_accounting.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_professional_accounting.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b53433687f293e6f35514f354cdca1db34cd7fa4 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_professional_accounting.yaml @@ -0,0 +1,77 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: 70 000 $ + B: 75 000 $ + C: 80 000 $ + D: '100000' + input_correct_responses: + - D + input_question: "Encadr\xE9 une organisation non gouvernementale \xE0 but non\ + \ lucratif a effectu\xE9 les transactions suivantes au cours de l'ann\xE9\ + e : Produit de la vente de placements 80 000 $ Achat d'immobilisations corporelles\ + \ 10 000 $ Produit de la dette \xE0 long terme 100 000 $ Perte sur la vente\ + \ d'un placement 5 000 $ Quel montant doit \xEAtre d\xE9clar\xE9 comme net\ + \ les liquidit\xE9s fournies par les activit\xE9s de financement dans l'\xE9\ + tat des flux de tr\xE9sorerie de Box\_?" + - input_choice_list: + A: 13 000 $ + B: 600 $ + C: 15 000 $ + D: 28 000 $ + input_correct_responses: + - A + input_question: "Il y a cent ans, votre arri\xE8re-arri\xE8re-grand-m\xE8re a\ + \ investi 100 $ \xE0 5 % d'int\xE9r\xEAt annuel. Que vaut l'investissement\ + \ aujourd'hui ?" + - input_choice_list: + A: 0 $ + B: 500 $ + C: 1 650 $ + D: 16 500 $ + input_correct_responses: + - A + input_question: "Krete est un contribuable c\xE9libataire dont les revenus proviennent\ + \ exclusivement des salaires. Au 31 d\xE9cembre, ann\xE9e 1, l'employeur\ + \ de Krete a retenu 16 000 $ d'imp\xF4t f\xE9d\xE9ral sur le revenu et Krete\ + \ n'a effectu\xE9 aucun paiement d'imp\xF4t estim\xE9. Le 15 avril de\ + \ l'ann\xE9e 2, Krete a d\xE9pos\xE9 en temps opportun une demande de prolongation\ + \ pour d\xE9poser sa d\xE9claration de revenus individuelle et a pay\xE9 300\_\ + $ d'imp\xF4ts suppl\xE9mentaires. La dette fiscale de Krete pour la premi\xE8\ + re ann\xE9e \xE9tait de 16 500 $ lorsqu'elle a d\xE9pos\xE9 sa d\xE9claration\ + \ dans les d\xE9lais le 30 avril de la deuxi\xE8me ann\xE9e et a pay\xE9 le\ + \ solde de la dette fiscale restante. Quel montant serait soumis \xE0 la p\xE9\ + nalit\xE9 pour sous-paiement des imp\xF4ts estim\xE9s\_?" + - input_choice_list: + A: 5 000 $ + B: 13 500 $ + C: 16 000 $ + D: 20 000 $ + input_correct_responses: + - B + input_question: "Le 1er janvier de l'ann\xE9e 1, Alpha Co. a sign\xE9 un contrat\ + \ de maintenance annuel avec un fournisseur de logiciels pour 15 000 $ et la\ + \ p\xE9riode de maintenance commence le 1er mars de l'ann\xE9e 2. Alpha\ + \ a \xE9galement engag\xE9 5 000 $ de co\xFBts le 1er janvier de l'ann\xE9\ + e 1 li\xE9s \xE0 la modification du logiciel. demandes qui augmenteront la fonctionnalit\xE9\ + \ du logiciel. Alpha d\xE9pr\xE9cie et amortit ses actifs informatiques et logiciels\ + \ sur cinq ans selon la m\xE9thode de l'amortissement lin\xE9aire. Quel\ + \ est le montant total des d\xE9penses qu'Alpha devrait comptabiliser relativement\ + \ au contrat de maintenance et aux modifications logicielles pour l'exercice\ + \ clos le 31 d\xE9cembre, ann\xE9e 1\_?" + - input_choice_list: + A: Valorisation et allocation + B: "Compl\xE9tude" + C: Droits et obligations + D: "Pr\xE9sentation et divulgation" + input_correct_responses: + - B + input_question: "Un auditeur trace les num\xE9ros de s\xE9rie sur l'\xE9quipement\ + \ jusqu'au registre auxiliaire d'un non-\xE9metteur. Laquelle des assertions\ + \ de gestion suivantes est prise en charge par ce test\_?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_accounting +tag: mmlu_fr_llama_other_tasks +task: mmlu_fr_llama_professional_accounting +task_alias: professional_accounting diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_professional_law.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_professional_law.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3c88a8d54aae74bbe2ae4b78cd7f481bd7884373 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_professional_law.yaml @@ -0,0 +1,143 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "la loi est nulle pour impr\xE9cision en vertu de la clause de proc\xE9dure\ + \ r\xE9guli\xE8re du quatorzi\xE8me amendement." + B: "la loi est invalide car elle viole la libert\xE9 d'expression du p\xE9\ + titionnaire en vertu du premier amendement." + C: "le statut est un raccourcissement de la libert\xE9 d'expression en vertu\ + \ du premier amendement parce que des moyens moins restrictifs sont disponibles\ + \ pour atteindre le m\xEAme objectif." + D: "la loi est trop large et par cons\xE9quent invalide en vertu des premier\ + \ et quatorzi\xE8me amendements." + input_correct_responses: + - D + input_question: "Une l\xE9gislature d'\xC9tat a r\xE9cemment promulgu\xE9\ + \ une loi qui consid\xE8re comme un d\xE9lit le fait d'insulter ou d'injurier\ + \ ou d'utiliser un langage obsc\xE8ne ou opprobre envers ou en r\xE9f\xE9\ + rence \xE0 un policier dans l'exercice de ses fonctions. Un \xE9tudiant\ + \ d'une universit\xE9 d'\xC9tat a organis\xE9 une manifestation sur\ + \ le campus pour protester contre la guerre. Le rassemblement a \xE9t\xE9 suivi\ + \ par un groupe de 50 \xE9tudiants qui ont cri\xE9 des messages anti-guerre\ + \ aux voitures qui passaient. Pour montrer son m\xE9pris pour les \xC9tats-Unis,\ + \ l'\xE9tudiant a cousu le drapeau am\xE9ricain \xE0 l'arri\xE8re de\ + \ son jean. Lorsqu'un policier a vu le drapeau sem\xE9 sur le jean de l'\xE9\ + tudiant, il s'est approch\xE9 et lui a dit d'enlever le drapeau ou il\ + \ serait plac\xE9 en \xE9tat d'arrestation. L'\xE9tudiant s'est\ + \ mis en col\xE8re et a cri\xE9 au policier : \xAB \xC9coute, salaud, je porterai\ + \ ce chiffon partout o\xF9 je veux. \xBB L'\xE9tudiant a ensuite \xE9t\xE9\ + \ arr\xEAt\xE9 et accus\xE9 d'avoir enfreint la loi de l'\xC9tat. L'\xE9\ + tudiant intente ensuite une action devant un tribunal d'\xC9tat pour contester\ + \ la constitutionnalit\xE9 de la loi. L'argument constitutionnel le plus\ + \ fort pour l'\xE9tudiant est que" + - input_choice_list: + A: La clause commerciale. + B: "La clause de protection \xE9gale du quatorzi\xE8me amendement." + C: "La clause de privil\xE8ges et immunit\xE9s de l'article IV, section\ + \ 2." + D: La clause contractuelle. + input_correct_responses: + - A + input_question: "Un \xC9tat a r\xE9cemment promulgu\xE9 une loi interdisant l'\xE9\ + limination de tout d\xE9chet nucl\xE9aire dans l'\xC9tat. Cette loi ne contrevient\ + \ ni n'entre en conflit avec aucune loi f\xE9d\xE9rale. Un homme exploite\ + \ une entreprise dans l'\xC9tat qui se consacre \xE0 l'\xE9limination\ + \ des d\xE9chets nucl\xE9aires. \xC0 la suite de l'adoption de la loi de\ + \ l'\xC9tat, l'homme, qui n'\xE9tait pas encore au courant de la\ + \ nouvelle loi, a conclu des contrats avec de nombreuses entreprises ext\xE9\ + rieures \xE0 l'\xC9tat pour \xE9liminer leurs d\xE9chets nucl\xE9aires dans\ + \ l'\xC9tat. En raison de cette nouvelle loi, cependant, l'homme sera\ + \ incapable d'ex\xE9cuter ces contrats. Supposons que l'homme a qualit\xE9\ + \ pour contester cette loi de l'\xC9tat. Lequel des \xE9nonc\xE9s suivants\ + \ pr\xE9sente ses motifs constitutionnels les plus solides pour contester la\ + \ loi de l'\xC9tat interdisant l'\xE9limination des d\xE9chets nucl\xE9\ + aires dans l'\xC9tat\_?" + - input_choice_list: + A: Des faits incontestables. + B: "Des faits qui ont \xE9t\xE9 affirm\xE9s par des organisations politiques\ + \ individuelles." + C: "Faits reconnus vrais de notori\xE9t\xE9 publique." + D: "Faits susceptibles de v\xE9rification scientifique." + input_correct_responses: + - B + input_question: "Le juge a pris connaissance d'office de certains faits au\ + \ d\xE9but du proc\xE8s. Lequel des \xE9l\xE9ments suivants n'est pas un\ + \ type de fait appropri\xE9 pour le constat judiciaire\_?" + - input_choice_list: + A: "accorder un all\xE9gement, parce que la cl\xF4ture contrevenait \xE0 la\ + \ restriction de servitude." + B: "accorder un all\xE9gement, parce que l'empi\xE9tement de la cl\xF4ture\ + \ a viol\xE9 la restriction du plan initial." + C: "refuser l'aide, parce que l'enseignant n'a pas fait appliquer\ + \ la restriction \xE0 l'encontre du retrait\xE9." + D: "refuser l'all\xE9gement, car la cl\xF4ture ne serait pas interpr\xE9\ + t\xE9e comme "une structure" au sens de la restriction." + input_correct_responses: + - B + input_question: "Le 1er octobre 1980, un promoteur, propri\xE9taire de plusieurs\ + \ centaines d'acres dans un comt\xE9 rural, a r\xE9dig\xE9 un plan d'am\xE9\ + nagement g\xE9n\xE9ral pour la r\xE9gion. Le plan d\xFBment enregistr\xE9 imposait\ + \ des limites et des restrictions \xE9labor\xE9es sur le terrain du plan, qui\ + \ devait \xEAtre d\xE9velopp\xE9 en tant que quartier r\xE9sidentiel. Les restrictions\ + \ devaient s'\xE9tendre \xE0 toutes les personnes acqu\xE9rant l'un\ + \ des lots et \xE0 leurs h\xE9ritiers, ayants droit et locataires. Il \xE9tait\ + \ en outre pr\xE9vu que tous les propri\xE9taires ult\xE9rieurs seraient d\xFB\ + ment inform\xE9s des restrictions. Parmi ces restrictions au plan g\xE9n\xE9\ + ral figuraient les suivantes :(22) Un droit de franchise est cr\xE9\xE9 dans\ + \ une bande de terrain de 10 pieds de largeur le long de l'arri\xE8re de\ + \ chaque lot \xE0 l'usage des entreprises de services publics avec droit\ + \ d'entr\xE9e et de sortie. (23) Aucune maison ou construction de quelque\ + \ nature que ce soit ne peut \xEAtre construite sur la bande de terrain susmentionn\xE9\ + e traversant lesdits blocs. En 2000, un retrait\xE9 a achet\xE9 l'un des\ + \ lots, construit une maison et \xE9rig\xE9 une cl\xF4ture \xE0 l'arri\xE8\ + re de sa propri\xE9t\xE9 dans la zone r\xE9glement\xE9e. En 2004, un enseignant\ + \ ach\xE8te un terrain adjacent \xE0 la propri\xE9t\xE9 du retrait\xE9 et y\ + \ construit une nouvelle maison. Deux ans plus tard, un biblioth\xE9caire ach\xE8\ + te le terrain qui jouxte la propri\xE9t\xE9 de l'enseignant. Les trois actes\ + \ de ces propri\xE9t\xE9s contenaient chacun des r\xE9f\xE9rences au livre des\ + \ actes o\xF9 le plan g\xE9n\xE9ral a \xE9t\xE9 enregistr\xE9. En 2008, le biblioth\xE9\ + caire a commenc\xE9 la construction d'une cl\xF4ture de poteaux et de rails\ + \ de sept pieds le long de la ligne s\xE9parant son terrain de celui de l'enseignant\ + \ et le long du centre de la zone soumise au droit de franchise. Bien que l'enseignant\ + \ se soit oppos\xE9 \xE0 sa construction, la cl\xF4ture a \xE9t\xE9 achev\xE9\ + e. Si l'enseignant demande une injonction obligatoire pour forcer l'enl\xE8\ + vement de la cl\xF4ture du biblioth\xE9caire, le tribunal sera tr\xE8s probablement" + - input_choice_list: + A: "La promesse du p\xE8re et la confiance du cr\xE9ancier dans celle-ci, si\ + \ elles \xE9taient prouv\xE9es, donnaient naissance \xE0 une r\xE9clamation\ + \ valide du cr\xE9ancier contre le p\xE8re fond\xE9e sur la doctrine de la\ + \ pr\xE9clusion promissoire." + B: "Puisqu'il \xE9tait pr\xE9visible que la promesse du p\xE8re inciterait\ + \ le cr\xE9ancier \xE0 s'abstenir d'entreprendre toute action contre\ + \ le fils, une telle abstention \xE9tait, en droit, une contrepartie n\xE9\ + goci\xE9e pour la promesse du p\xE8re." + C: "Les cinq paiements du p\xE8re au cr\xE9ancier totalisant 2 500 $ ont manifest\xE9\ + \ une intention s\xE9rieuse de la part du p\xE8re d'\xEAtre li\xE9 contractuellement,\ + \ et une telle manifestation est g\xE9n\xE9ralement reconnue comme un substitut\ + \ efficace \xE0 la contrepartie." + D: "En assumant la dette ant\xE9rieure que le fils devait au cr\xE9ancier, le\ + \ p\xE8re devenait une caution dont la promesse au cr\xE9ancier \xE9tait ex\xE9\ + cutoire, puisqu'elle \xE9tait \xE9crite et appuy\xE9e d'une contrepartie\ + \ ad\xE9quate." + input_correct_responses: + - A + input_question: "Un fils devait 5 000 $ \xE0 un cr\xE9ancier. Le p\xE8re du fils\ + \ a contact\xE9 le cr\xE9ancier et lui a dit qu'il voulait payer la dette\ + \ du fils. Le p\xE8re a sign\xE9 un document indiquant que le p\xE8re paierait\ + \ la dette du fils \xE0 raison de 500 $ par mois pendant 10 mois. Le cr\xE9\ + ancier n'a pris aucun engagement \xE9crit ou oral de s'abstenir de poursuivre\ + \ le fils pour recouvrer la dette de 5 000 $, et le p\xE8re n'a fait aucune\ + \ demande orale ou \xE9crite pour une telle abstention. Pendant les cinq mois\ + \ suivants, le p\xE8re a effectu\xE9 et le cr\xE9ancier a accept\xE9 les paiements\ + \ mensuels de 500\_$ comme convenu. Pendant cette p\xE9riode, le cr\xE9ancier\ + \ s'est en effet abstenu d'intenter une action en justice contre le\ + \ fils. Cependant, le p\xE8re a alors inform\xE9 le cr\xE9ancier qu'il ne\ + \ ferait plus aucun paiement sur la dette. Lequel des arguments suivants est\ + \ l'argument le plus convaincant selon lequel le p\xE8re est responsable\ + \ envers le cr\xE9ancier aux termes de leur accord\_?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_law +tag: mmlu_fr_llama_humanities_tasks +task: mmlu_fr_llama_professional_law +task_alias: professional_law diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_professional_medicine.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_professional_medicine.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4bd002a7261554a22aa112045ca4c6d2932fcf1c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_professional_medicine.yaml @@ -0,0 +1,101 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Lab\xE9talol" + B: Une dose de charge de chlorure de potassium + C: "Nif\xE9dipine" + D: "Ph\xE9noxybenzamine" + input_correct_responses: + - D + input_question: "Un homme de 42 ans se pr\xE9sente au cabinet pour une \xE9valuation\ + \ pr\xE9op\xE9ratoire avant de subir une surr\xE9nalectomie pr\xE9vue dans 2\ + \ semaines. Il y a un mois, il a re\xE7u des soins aux urgences pour des douleurs\ + \ au flanc droit suite \xE0 une collision automobile. \xC0 ce moment-l\xE0,\ + \ la pression art\xE9rielle \xE9tait de 160/100 mm Hg et la tomodensitom\xE9\ + trie de l'abdomen a montr\xE9 une masse surr\xE9nalienne gauche accidentelle\ + \ de 10 cm. Les r\xE9sultats des \xE9tudes de laboratoire, y compris la num\xE9\ + ration globulaire compl\xE8te, les concentrations d'\xE9lectrolytes s\xE9\ + riques et les tests de la fonction h\xE9patique, se situaient dans les plages\ + \ de r\xE9f\xE9rence. Par ailleurs, le patient \xE9tait en bonne sant\xE9 et\ + \ on ne lui avait jamais dit qu'il avait une tension art\xE9rielle \xE9\ + lev\xE9e. Il ne prend aucun m\xE9dicament. Une visite de suivi au bureau il\ + \ y a 2 semaines a r\xE9v\xE9l\xE9 des concentrations urinaires \xE9lev\xE9\ + es de norm\xE9tan\xE9phrine et de m\xE9tan\xE9phrine et d'aldost\xE9rone\ + \ plasmatique. Le patient a \xE9t\xE9 r\xE9f\xE9r\xE9 \xE0 un chirurgien, qui\ + \ a recommand\xE9 la surr\xE9nalectomie. Aujourd'hui, les signes vitaux\ + \ sont une temp\xE9rature de 36,6\_\xB0C (97,9\_\xB0F), un pouls de 100/min,\ + \ une respiration de 14/min et une tension art\xE9rielle de 170/95\_mm Hg. L'examen\ + \ physique ne r\xE9v\xE8le aucune d\xE9couverte significative. La pr\xE9paration\ + \ pr\xE9op\xE9ratoire initiale doit inclure un traitement avec lequel des \xE9\ + l\xE9ments suivants\_?" + - input_choice_list: + A: "torsion sacr\xE9e gauche \xE0 gauche" + B: "torsion sacr\xE9e gauche-droite" + C: "flexion sacr\xE9e unilat\xE9rale droite" + D: "torsion sacr\xE9e droite \xE0 droite" + input_correct_responses: + - D + input_question: "Un homme de 36 ans se pr\xE9sente au cabinet avec des ant\xE9\ + c\xE9dents de lombalgie depuis 3 semaines. Il nie tout traumatisme r\xE9cent,\ + \ mais dit qu'il monte et descend de son camion plusieurs fois par jour\ + \ pour son travail. L'examen du patient en d\xE9cubitus ventral r\xE9v\xE8\ + le un profond sillon sacr\xE9 \xE0 gauche, un angle lat\xE9ral post\xE9ro-inf\xE9\ + rieur \xE0 droite et une jonction lombo-sacr\xE9e qui ressort librement \xE0\ + \ la compression. Le diagnostic le plus probable est" + - input_choice_list: + A: Dopamine + B: Glutamate + C: "Nor\xE9pin\xE9phrine" + D: "S\xE9rotonine" + input_correct_responses: + - D + input_question: "Une femme de 32 ans, auparavant en bonne sant\xE9, se rend chez\ + \ le m\xE9decin 8 mois apr\xE8s que son mari a \xE9t\xE9 tu\xE9 dans un accident\ + \ de voiture. Depuis ce temps, elle a un app\xE9tit diminu\xE9 et des difficult\xE9\ + s \xE0 s'endormir. Elle d\xE9clare qu'elle est souvent triste et pleure\ + \ fr\xE9quemment. Elle a rev\xE9rifi\xE9 la serrure de la porte cinq fois avant\ + \ de quitter sa maison et doit compter exactement cinq morceaux de papier toilette\ + \ avant de l'utiliser. Elle dit avoir toujours \xE9t\xE9 perfectionniste\ + \ mais ces envies et rituels sont nouveaux. La pharmacoth\xE9rapie doit \xEA\ + tre cibl\xE9e sur lequel des neurotransmetteurs suivants\_?" + - input_choice_list: + A: Rhinite allergique + B: Virus d'Epstein-Barr + C: Mycoplasme pneumoniae + D: Rhinovirus + input_correct_responses: + - D + input_question: "Un homme de 44 ans se pr\xE9sente au bureau en raison d'une\ + \ histoire de 3 jours de maux de gorge, de toux non productive, d'\xE9coulement\ + \ nasal et de maux de t\xEAte frontaux. Il dit que le mal de t\xEAte est pire\ + \ le matin et que l'ibuprof\xE8ne procure un certain soulagement. Il n'a\ + \ pas eu d'essoufflement. Les ant\xE9c\xE9dents m\xE9dicaux sont sans particularit\xE9\ + . Il ne prend aucun autre m\xE9dicament que l'ibuprof\xE8ne contre la douleur.\ + \ Les signes vitaux sont une temp\xE9rature de 37,4 \xB0C (99,4 \xB0F), un pouls\ + \ de 88/min, une respiration de 18/min et une tension art\xE9rielle de 120/84\ + \ mm Hg. L'examen des narines montre des muqueuses \xE9ryth\xE9mateuses.\ + \ L'examen de la gorge montre un \xE9ryth\xE8me et une hyperplasie lympho\xEF\ + de folliculaire sur l'oropharynx post\xE9rieur. Il n'y a pas d'ad\xE9\ + nopathie cervicale palpable. Les poumons sont d\xE9gag\xE9s \xE0 l'auscultation.\ + \ Lequel des \xE9l\xE9ments suivants est la cause la plus probable des sympt\xF4\ + mes de ce patient\_?" + - input_choice_list: + A: "scal\xE8ne ant\xE9rieur" + B: grand dorsal + C: petit pectoral + D: "carr\xE9 des lombes" + input_correct_responses: + - C + input_question: "Un coureur de marathon masculin de 22 ans se pr\xE9sente au bureau\ + \ avec une plainte de douleur aux c\xF4tes droites lorsqu'il parcourt de\ + \ longues distances. L'examen physique r\xE9v\xE8le des signes cardiaques\ + \ et pulmonaires normaux et un dysfonctionnement de l'expiration au niveau\ + \ des c\xF4tes 4-5 \xE0 droite. Lequel des muscles ou groupes de muscles suivants\ + \ sera le plus utile pour corriger ce dysfonctionnement en utilisant une m\xE9\ + thode directe\_?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_medicine +tag: mmlu_fr_llama_other_tasks +task: mmlu_fr_llama_professional_medicine +task_alias: professional_medicine diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_professional_psychology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_professional_psychology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fb5f9783183f119c73672a4040a6970f77dba252 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_professional_psychology.yaml @@ -0,0 +1,71 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "expliquez \xE0 votre client les avantages et les inconv\xE9nients de chaque\ + \ programme que vous connaissez, \xE0 l'exception de celui auquel vous\ + \ \xEAtes inscrit" + B: "recommander \xE0 votre client le programme auquel vous \xEAtes inscrit et\ + \ expliquer la prime de 50 $ que vous recevrez" + C: "recommander \xE0 votre client le programme auquel vous \xEAtes inscrit et\ + \ offrir que la prime de 50 $ soit cr\xE9dit\xE9e au compte de votre client\ + \ dans le programme" + D: "expliquez \xE0 votre client les avantages et les inconv\xE9nients de chaque\ + \ programme que vous connaissez, mais ne r\xE9clamez pas la prime de 50\_\ + $ si votre client s'inscrit \xE0 votre programme" + input_correct_responses: + - D + input_question: "Un de vos clients en th\xE9rapie vous demande conseil sur un\ + \ bon programme de perte de poids. Vous avez enqu\xEAt\xE9 sur les programmes\ + \ de la communaut\xE9 et \xEAtes inscrit \xE0 celui que vous consid\xE9rez comme\ + \ le meilleur. Ce programme offre un bonus de 50\_$ \xE0 ses clients pour chaque\ + \ nouvelle personne qu'ils int\xE8grent au programme. Dans ces circonstances,\ + \ votre r\xE9ponse la plus appropri\xE9e serait de" + - input_choice_list: + A: "moins sensible aux scores extr\xEAmes que la moyenne" + B: "plus utile pour les distributions asym\xE9triques" + C: "sensible aux valeurs extr\xEAmes et aux distributions fortement asym\xE9\ + triques" + D: "le nombre le plus fr\xE9quent" + input_correct_responses: + - D + input_question: "Il existe trois fa\xE7ons de mesurer la tendance centrale\_:\ + \ la moyenne, la m\xE9diane et le mode. D'apr\xE8s vos connaissances \xE0\ + \ leur sujet, quel est le mode\_?" + - input_choice_list: + A: individualisme. + B: "individualisme et distance hi\xE9rarchique." + C: "distance de pouvoir et masculinit\xE9." + D: "\xE9vitement de l'incertitude." + input_correct_responses: + - A + input_question: "En ce qui concerne les cinq dimensions culturelles de Hofstede\ + \ (1980), les \xC9tats-Unis se classent en t\xEAte de l'\xE9chelle pour\_\ + :" + - input_choice_list: + A: "est un fantasme qui d\xE9tourne le client de la r\xE9alit\xE9." + B: "repr\xE9sente des \xAB\_sentiments mitig\xE9s\_\xBB envers le th\xE9rapeute." + C: ""est une forme de "" passage \xE0 l'acte """" + D: "refl\xE8te l'inconscient personnel et collectif du client." + input_correct_responses: + - D + input_question: "Carl Jung pensait que le transfert d'un client\_:" + - input_choice_list: + A: "ne sont pas corr\xE9l\xE9s entre eux mais sont mod\xE9r\xE9ment corr\xE9\ + l\xE9s avec le crit\xE8re" + B: "ont de faibles corr\xE9lations entre eux et de faibles corr\xE9lations avec\ + \ le crit\xE8re" + C: "sont fortement intercorr\xE9l\xE9s entre eux et mod\xE9r\xE9ment corr\xE9\ + l\xE9s avec le crit\xE8re" + D: "ont de faibles corr\xE9lations avec le crit\xE8re mais sont mod\xE9r\xE9\ + ment corr\xE9l\xE9s entre eux" + input_correct_responses: + - A + input_question: "Dans la construction d'une \xE9quation de r\xE9gression multiple\ + \ \xE0 des fins de pr\xE9diction, la combinaison optimale de mesures est celle\ + \ dans laquelle les pr\xE9dicteurs" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_psychology +tag: mmlu_fr_llama_social_sciences_tasks +task: mmlu_fr_llama_professional_psychology +task_alias: professional_psychology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_public_relations.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_public_relations.yaml new file mode 100644 index 0000000000000000000000000000000000000000..19af6ab83e63d06c3111ca8f6186c29b2a04d233 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_public_relations.yaml @@ -0,0 +1,64 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Donnez au journaliste d'autres informations dont elle est certaine qu'elles + sont correctes. + B: "Dites que l'information est "off the record" et sera diffus\xE9\ + e plus tard." + C: "Dites \xAB Je ne sais pas \xBB et promettez de fournir les informations\ + \ plus tard." + D: "Dites "pas de commentaire" plut\xF4t que d'avoir l'air\ + \ mal inform\xE9." + input_correct_responses: + - C + input_question: "Que doit faire une professionnelle des relations publiques dans\ + \ les m\xE9dias si elle ne conna\xEEt pas la r\xE9ponse \xE0 la question d'un\ + \ journaliste\_?" + - input_choice_list: + A: "Achetez des noms de domaine qui pourraient \xEAtre utilis\xE9s par des groupes\ + \ d'opposition." + B: Postez des commentaires anonymes sur les blogs pour lutter contre ces informations. + C: "Pr\xE9parez un communiqu\xE9 de presse qui discr\xE9dite les informations\ + \ inexactes." + D: "Apportez des modifications \xE0 la politique pour traiter les plaintes mises\ + \ en \xE9vidence sur ces sites." + input_correct_responses: + - D + input_question: "Dans la gestion des probl\xE8mes, quelle est l'approche la\ + \ plus proactive pour traiter les informations n\xE9gatives ou trompeuses publi\xE9\ + es en ligne sur votre organisation\_?" + - input_choice_list: + A: "Il y a eu une r\xE9ponse m\xE9diatique coordonn\xE9e." + B: "Des messages coh\xE9rents ont \xE9t\xE9 communiqu\xE9s." + C: "Les critiques ont \xE9t\xE9 consid\xE9r\xE9es comme des attaques contre\ + \ l'\xC9glise catholique." + D: "La cr\xE9dibilit\xE9 du Vatican a \xE9t\xE9 maintenue." + input_correct_responses: + - C + input_question: "Laquelle de ces d\xE9clarations est vraie du Vatican en 2010\ + \ au moment des accusations de dissimulation de maltraitance d'enfants\_\ + ?" + - input_choice_list: + A: "D\xE9finir le programme" + B: Planification du programme + C: "Prendre des mesures et mettre en \u0153uvre des id\xE9es" + D: "\xC9valuation du programme" + input_correct_responses: + - A + input_question: "\xC0 quelle \xE9tape du processus de planification une analyse\ + \ de la situation serait-elle effectu\xE9e\_?" + - input_choice_list: + A: Paix verte + B: L'ONU + C: Oxfam + D: Fonds mondial pour la nature + input_correct_responses: + - D + input_question: "Earth Hour \xE9tait une campagne lanc\xE9e par quelle organisation\_\ + ?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_public_relations +tag: mmlu_fr_llama_social_sciences_tasks +task: mmlu_fr_llama_public_relations +task_alias: public_relations diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_security_studies.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_security_studies.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4cfc6548ccd1a53196f6e2a16c30d61ffedd9077 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_security_studies.yaml @@ -0,0 +1,123 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "La contrainte est un autre terme pour la diplomatie coercitive, mais couvrant\ + \ un ensemble plus restreint de crit\xE8res ; la contrainte couvre les menaces\ + \ visant \xE0 d\xE9clencher une action adverse. Une menace de contraindre\ + \ un \xC9tat \xE0 c\xE9der une partie de son territoire compterait comme une\ + \ diplomatie coercitive, tant que cette menace initie de mani\xE8re proactive\ + \ une action avant que la diplomatie r\xE9active ne soit entreprise." + B: "La diplomatie coercitive constitue les menaces d'une force limit\xE9\ + e pour inciter l'adversaire \xE0 se conformer aux exigences de l'auteur\ + \ de la coercition. Il s'agit d'une strat\xE9gie d'influence qui\ + \ vise \xE0 obtenir la conformit\xE9 : l'usage de la force pour vaincre\ + \ un adversaire en premier ne compte pas. Il laisse un \xE9l\xE9ment de choix\ + \ \xE0 l'objectif de se conformer ou de continuer." + C: "La force militaire, ou la menace de la force militaire, utilise la peur\ + \ pour atteindre des objectifs strat\xE9giques. La diplomatie coercitive se\ + \ diff\xE9rencie de cette approche, car elle n'utilise pas la peur comme\ + \ outil pour contraindre un adversaire." + D: "La diplomatie coercitive est employ\xE9e pour utiliser la force mais pour\ + \ limiter ses effets sur la communaut\xE9 internationale. La diplomatie coercitive\ + \ est une strat\xE9gie agressive qui vise \xE0 obtenir la conformit\xE9 par\ + \ la d\xE9faite. Il ne laisse aucun \xE9l\xE9ment de choix \xE0 la cible,\ + \ la cible \xE9tant soit forc\xE9e de se conformer, soit de s'engager\ + \ dans un conflit. Il cherche \xE0 contr\xF4ler en imposant le respect en\ + \ supprimant toute possibilit\xE9 de n\xE9gociation ou de concession." + input_correct_responses: + - B + input_question: Qu'est-ce qui distingue la diplomatie coercitive de la force + militaire ? + - input_choice_list: + A: "Les enfants soldats sont des victimes de combat qui ont besoin de r\xE9\xE9\ + ducation et de r\xE9habilitation." + B: "Les enfants et leurs m\xE8res ne sont pas des sujets actifs dans la guerre\ + \ et sont mieux consid\xE9r\xE9s comme des sujets de la sph\xE8re priv\xE9\ + e." + C: "Les enfants sont le plus souvent des spectateurs innocents de la guerre\ + \ et sont mieux utilis\xE9s comme signifiants de paix." + D: "Les enfants ont une subjectivit\xE9 politique qui leur manque lorsqu'ils\ + \ sont consid\xE9r\xE9s comme des victimes passives de la guerre." + input_correct_responses: + - D + input_question: "Lequel des \xE9l\xE9ments suivants est le meilleur objectif \xE0\ + \ travers lequel enqu\xEAter sur le r\xF4le des enfants soldats\_?" + - input_choice_list: + A: "Comme une menace existentielle qui n\xE9cessite une action imm\xE9diate\ + \ et extraordinaire, posant une menace \xE0 la survie de l'\xC9tat ou\ + \ \xE0 la s\xE9curit\xE9 de la soci\xE9t\xE9." + B: "Comme exigeant une action imm\xE9diate et extraordinaire de l'\xC9tat,\ + \ mena\xE7ant la survie d'un objet r\xE9f\xE9rent et justifiant ainsi\ + \ l'utilisation de mesures qui ne sont pas normalement employ\xE9es dans\ + \ le domaine politique." + C: "Comme une menace urgente \xE0 la survie de l'objet r\xE9f\xE9rent, si\ + \ grave qu'elle l\xE9gitime l'emploi d'une action extraordinaire\ + \ en r\xE9ponse." + D: "Comme une menace urgente pour la survie du public qui n\xE9cessite des mesures\ + \ extraordinaires ou d'urgence." + input_correct_responses: + - C + input_question: "Pour \xEAtre titris\xE9e, une menace doit \xEAtre pr\xE9sent\xE9\ + e de quelle mani\xE8re\_?" + - input_choice_list: + A: "Il existe de telles divisions au sein du cadre de la s\xE9curit\xE9 humaine\ + \ concernant la nature des menaces et des objets de r\xE9f\xE9rence qu'aucune\ + \ comparaison largement applicable entre les approches centr\xE9es sur l'\xC9\ + tat et la s\xE9curit\xE9 humaine ne peut \xEAtre \xE9tablie." + B: "En adoptant le cadre de la s\xE9curit\xE9 humaine, les limites de l'approche\ + \ r\xE9aliste centr\xE9e sur l'\xC9tat deviennent \xE9videntes. Alors\ + \ que la s\xE9curit\xE9 humaine d\xE9finit l'objet r\xE9f\xE9rent comme\ + \ la personne ou la population, les approches centr\xE9es sur l'\xC9tat\ + \ donnent la priorit\xE9 \xE0 la s\xE9curit\xE9 de l'\xC9tat, d\xE9valorisant\ + \ la poursuite de la s\xE9curit\xE9 humaine." + C: "L'approche de la s\xE9curit\xE9 centr\xE9e sur l'\xC9tat est une\ + \ faction de la s\xE9curit\xE9 humaine, g\xE9n\xE9ralement d\xE9finie au sein\ + \ de l'\xE9cole g\xE9n\xE9rale de la s\xE9curit\xE9 humaine. En \xE9tant\ + \ centr\xE9e sur l'\xE9tat, cette approche donne la priorit\xE9 \xE0 l'individu\ + \ comme objet de r\xE9f\xE9rence dans les \xE9tudes de s\xE9curit\xE9." + D: "Les approches de la s\xE9curit\xE9 centr\xE9es sur l'\xC9tat et centr\xE9\ + es sur l'humain s'excluent mutuellement et offrent un cadre analytique\ + \ suffisant pour comprendre le syst\xE8me de s\xE9curit\xE9 international.\ + \ C'est donc le r\xF4le des analystes de s\xE9curit\xE9 de d\xE9terminer\ + \ lequel de ces concepts substantiels est correct et lequel doit \xEAtre \xE9\ + cart\xE9." + input_correct_responses: + - B + input_question: "Comment d\xE9crire au mieux la relation entre l'approche\ + \ centr\xE9e sur l'\xC9tat et le concept de s\xE9curit\xE9 humaine ?" + - input_choice_list: + A: "La concurrence entre les grandes nations a conduit certains pays \xE0 soutenir\ + \ activement des groupes terroristes pour saper la force des \xC9tats rivaux.\ + \ Les r\xE9seaux terroristes sont des clubs de patronage \xE9tendus entretenus\ + \ et financ\xE9s par leurs \xC9tats donateurs et sont conceptualis\xE9s comme\ + \ \xE9tant comme des acteurs \xE9tatiques, devant \xEAtre trait\xE9s par la\ + \ force militaire." + B: "La mondialisation a permis l'internationalisation des activit\xE9s terroristes\ + \ en ouvrant leur espace op\xE9rationnel, bien que la coordination soit encore\ + \ g\xE9r\xE9e \xE0 partir d'une base g\xE9ographique. Cela sugg\xE8re\ + \ que les groupes terroristes sont structur\xE9s au niveau national, ce qui\ + \ signifie que le terrorisme ne peut \xEAtre consid\xE9r\xE9 comme une guerre\ + \ \xE0 vaincre militairement sans avoir de graves implications sur la population\ + \ indig\xE8ne." + C: "Le terrorisme peut \xEAtre consid\xE9r\xE9 comme un probl\xE8me \xE0 r\xE9\ + soudre par des moyens militaires (guerre contre le terrorisme), par des techniques\ + \ polici\xE8res normales (le terrorisme en tant que crime) ou comme un probl\xE8\ + me m\xE9dical avec des causes et des sympt\xF4mes sous-jacents (le terrorisme\ + \ en tant que maladie)." + D: "Le terrorisme est consid\xE9r\xE9 comme un probl\xE8me criminel. La criminalisation\ + \ du terrorisme a deux implications importantes. Premi\xE8rement, cela sugg\xE8\ + re que le terrorisme peut \xEAtre \xE9radiqu\xE9 - les terroristes peuvent\ + \ \xEAtre arr\xEAt\xE9s et traduits en justice par des proc\xE9dures judiciaires\ + \ normales, \xE9liminant ainsi la menace de la soci\xE9t\xE9 - et deuxi\xE8\ + mement, cela sugg\xE8re que des techniques de pr\xE9vention de la criminalit\xE9\ + \ sont applicables pour emp\xEAcher son d\xE9veloppement." + input_correct_responses: + - C + input_question: "Quels sont les cadres d'analyse dans lesquels le terrorisme\ + \ a \xE9t\xE9 consid\xE9r\xE9 (\xE0 partir de 2020) ?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_security_studies +tag: mmlu_fr_llama_social_sciences_tasks +task: mmlu_fr_llama_security_studies +task_alias: security_studies diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_sociology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_sociology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5d4ed77f327c23136a30db5b9a4382503b6abe60 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_sociology.yaml @@ -0,0 +1,63 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "soins de sant\xE9 et \xE9ducation gratuits pour tous" + B: un salaire minimum + C: le plein emploi + D: "bien-\xEAtre universel" + input_correct_responses: + - B + input_question: "Lequel des \xE9l\xE9ments suivants l'\xC9tat-providence d'apr\xE8\ + s-guerre de 1948 n'a-t-il pas vis\xE9 \xE0 fournir\_:" + - input_choice_list: + A: "un man\xE8ge forain" + B: un cirque + C: "un th\xE9\xE2tre de marionnettes" + D: un ballet + input_correct_responses: + - C + input_question: "Que d\xE9crit Berger (1963) comme m\xE9taphore de la r\xE9alit\xE9\ + \ sociale ?" + - input_choice_list: + A: "la bureaucratie croissante de l'\xC9tat a fait de la religion une partie\ + \ marginale de nos vies" + B: "malgr\xE9 l'affaiblissement de l'autorit\xE9 traditionnelle, nos\ + \ vies quotidiennes et notre \xAB\_bon sens\_\xBB restent fa\xE7onn\xE9s par\ + \ les croyances et les valeurs religieuses" + C: "la participation religieuse au culte collectif a peut-\xEAtre diminu\xE9\ + , mais les gens pratiquent toujours leur religion en priv\xE9" + D: les gens sont beaucoup plus susceptibles de discuter de leurs croyances religieuses + dans des cadres publics et informels + input_correct_responses: + - B + input_question: "Le passage de la \xAB\_religion civile\_\xBB \xE0 la \xAB\_religion\ + \ commune\_\xBB signifie que\_:" + - input_choice_list: + A: "la tendance de la classe ouvri\xE8re \xE0 ne pas r\xE9aliser ses propres\ + \ int\xE9r\xEAts" + B: "une id\xE9ologie dominante qui l\xE9gitime le pouvoir \xE9conomique, politique\ + \ et culturel" + C: "une forme de double conscience bas\xE9e sur l'id\xE9ologie et les exp\xE9\ + riences quotidiennes" + D: "un mode de paiement donn\xE9 pour les topiaires en circulation" + input_correct_responses: + - B + input_question: "Le terme \xAB h\xE9g\xE9monie \xBB d\xE9signe :" + - input_choice_list: + A: "la plupart des gr\xE8ves passent inaper\xE7ues des employeurs et des m\xE9\ + dias" + B: "tous les conflits du travail ne seront pas signal\xE9s par l'employeur" + C: "la d\xE9finition des gr\xE8ves exclut celles qui impliquent moins de dix\ + \ travailleurs ou qui durent moins d'un jour" + D: "il est difficile de comparer des gr\xE8ves qui ont \xE9t\xE9 mesur\xE9es\ + \ de diff\xE9rentes mani\xE8res" + input_correct_responses: + - A + input_question: "Lequel des \xE9l\xE9ments suivants n'est pas un probl\xE8\ + me associ\xE9 aux statistiques officielles sur les gr\xE8ves\_?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_sociology +tag: mmlu_fr_llama_social_sciences_tasks +task: mmlu_fr_llama_sociology +task_alias: sociology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_us_foreign_policy.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_us_foreign_policy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..56fcc254ca3ff4f3440be80c9a2aaccfc4a8b289 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_us_foreign_policy.yaml @@ -0,0 +1,65 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Il a endommag\xE9 le soutien au mod\xE8le am\xE9ricain d'\xE9conomie\ + \ politique et de capitalisme" + B: "Cela a provoqu\xE9 la col\xE8re des \xC9tats-Unis pour avoir exag\xE9r\xE9\ + \ la crise" + C: "Il a accru le soutien au leadership mondial am\xE9ricain sous le pr\xE9\ + sident Obama" + D: "Il a r\xE9duit l'utilisation mondiale du dollar am\xE9ricain" + input_correct_responses: + - A + input_question: "Comment la crise financi\xE8re de 2008 a-t-elle affect\xE9 la\ + \ r\xE9putation internationale de l'Am\xE9rique ?" + - input_choice_list: + A: "Il a mondialis\xE9 le confinement." + B: "Il a militaris\xE9 le confinement." + C: "Il appelait au d\xE9veloppement de la bombe \xE0 hydrog\xE8ne." + D: "Tout ce qui pr\xE9c\xE8de" + input_correct_responses: + - D + input_question: "Comment le NSC-68 a-t-il chang\xE9 la strat\xE9gie am\xE9ricaine\_\ + ?" + - input_choice_list: + A: politique antiterroriste. + B: "politique \xE9conomique." + C: "police \xE9trang\xE8re." + D: politique internationale. + input_correct_responses: + - C + input_question: "Le domaine des d\xE9cisions politiques concernant principalement\ + \ les relations entre les \xC9tats-Unis et le reste du monde est connu sous\ + \ le nom de" + - input_choice_list: + A: "Les r\xE9alistes d\xE9fensifs mettent davantage l'accent sur le r\xF4\ + le des institutions internationales" + B: "Les r\xE9alistes d\xE9fensifs accordent moins d'importance aux facteurs\ + \ g\xE9ographiques" + C: "Les r\xE9alistes offensifs accordent plus de priorit\xE9 \xE0 l'int\xE9\ + r\xEAt national que les r\xE9alistes d\xE9fensifs." + D: "Les r\xE9alistes d\xE9fensifs pensent que les \xC9tats maximisent la s\xE9\ + curit\xE9, tandis que les r\xE9alistes offensifs pensent que les \xC9tats\ + \ maximisent le pouvoir" + input_correct_responses: + - D + input_question: "En quoi le r\xE9alisme d\xE9fensif et le r\xE9alisme offensif\ + \ diff\xE8rent-ils dans leur explication du comportement de l'\xC9tat\_?" + - input_choice_list: + A: La mondialisation avait rendu les hommes comme lui trop riches + B: "La mondialisation n'a profit\xE9 qu'\xE0 certains \xC9tats am\xE9\ + ricains, comme New York" + C: "Les \xE9lites lib\xE9rales avaient encourag\xE9 la mondialisation, tandis\ + \ que les "Am\xE9ricains ordinaires" perdaient des emplois \xE0\ + \ cause d'elle" + D: "La mondialisation a encourag\xE9 des guerres commerciales dommageables" + input_correct_responses: + - C + input_question: "Comment Donald Trump a-t-il attaqu\xE9 la mondialisation lors\ + \ de la campagne de 2016 ?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_us_foreign_policy +tag: mmlu_fr_llama_social_sciences_tasks +task: mmlu_fr_llama_us_foreign_policy +task_alias: us_foreign_policy diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_virology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_virology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..864379f042df916dc2b6e6113e3c4132db79db83 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_virology.yaml @@ -0,0 +1,54 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Parce qu'ils n'ont pas d'acide nucl\xE9ique" + B: Ils ont besoin d'un virus auxiliaire + C: "R\xE9pliquer uniquement dans les cellules en division" + D: "Peut s'int\xE9grer dans les chromosomes de l'h\xF4te" + input_correct_responses: + - A + input_question: "Pourquoi les parvovirus sont-ils un parasite tr\xE8s impactant\ + \ ?" + - input_choice_list: + A: "Virus fragiles souvent visualis\xE9s avec de l'ARN crachant de l'int\xE9\ + rieur" + B: "Virus allong\xE9s" + C: "Virus icosa\xE9driques avec enveloppe" + D: "Tr\xE8s gros virus" + input_correct_responses: + - A + input_question: "Laquelle des caract\xE9ristiques suivantes est une caract\xE9\ + ristique morphologique des paramyxovirus." + - input_choice_list: + A: "Collecte de donn\xE9es" + B: "Mise en place d'un r\xE9f\xE9rentiel d'\xE9chantillons biologiques" + C: "Int\xE9r\xEAt des participants" + D: Administration du questionnaire par le personnel + input_correct_responses: + - B + input_question: "Un facteur cl\xE9 facilitant l'application des \xE9tudes\ + \ cas-t\xE9moins embo\xEEt\xE9es du MACS \xE9tait\_:" + - input_choice_list: + A: Changement de comportement + B: "Couverture compl\xE8te" + C: "Utilisation efficace de la th\xE9orie comportementale" + D: Changement de comportement durable + input_correct_responses: + - D + input_question: "L'objectif le plus important d'une intervention comportementale\ + \ est\_:" + - input_choice_list: + A: "Personnes infect\xE9es par le VIH s\xE9ropr\xE9valentes" + B: "S\xE9ron\xE9gatifs" + C: "S\xE9roconvertisseurs" + D: "S\xE9ron\xE9gatifs \xE0 haut risque" + input_correct_responses: + - C + input_question: "La dur\xE9e m\xE9diane de survie au SIDA et au d\xE9c\xE8s a\ + \ \xE9t\xE9 \xE9tablie comme suit\_:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_virology +tag: mmlu_fr_llama_other_tasks +task: mmlu_fr_llama_virology +task_alias: virology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_world_religions.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_world_religions.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b793288d45ecf620e213dd5ff4d2f03dcdfdabcd --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/mmlu_fr_world_religions.yaml @@ -0,0 +1,50 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: L'arc-en-ciel + B: Circoncision + C: Un fils + D: Bar Mitzvah + input_correct_responses: + - B + input_question: Quel est le signe de l'alliance pour les hommes juifs ? + - input_choice_list: + A: Le Dharma + B: La Sangha + C: Le Bouddha + D: Le bodhisattva + input_correct_responses: + - A + input_question: "Quel est le deuxi\xE8me joyau du bouddhisme ?" + - input_choice_list: + A: Chang + B: Zhou + C: Han + D: Xia + input_correct_responses: + - B + input_question: "Dans quelle dynastie le "Mandat du Ciel" a-t-il \xE9\ + t\xE9 d\xE9velopp\xE9 pour l\xE9gitimer les nouveaux dirigeants\_?" + - input_choice_list: + A: "H\xF6nen" + B: Tanaka + C: Tokugawa + D: Meiji + input_correct_responses: + - D + input_question: "Quel gouvernement japonais a promu une sorte de culte national\ + \ bas\xE9 sur l'empereur et ses associations avec les kami\_?" + - input_choice_list: + A: Textes rituels + B: Textes philosophiques + C: Hymnes + D: Histoires d'origine + input_correct_responses: + - B + input_question: "Comment caract\xE9riser les Upanishads ?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_world_religions +tag: mmlu_fr_llama_humanities_tasks +task: mmlu_fr_llama_world_religions +task_alias: world_religions diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/utils.py b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..609b31a88ab726dc0616c72ff564b40e23f27984 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_fr/utils.py @@ -0,0 +1,104 @@ +from functools import partial + +import datasets + + +def process_docs(dataset: datasets.Dataset, subtask) -> datasets.Dataset: + return dataset.filter( + lambda example: example["subtask_name"] == f"mmlu_fr_chat.{subtask}" + ) + + +process_docs_college_biology = partial(process_docs, subtask="college_biology") +process_docs_international_law = partial(process_docs, subtask="international_law") +process_docs_philosophy = partial(process_docs, subtask="philosophy") +process_docs_high_school_physics = partial(process_docs, subtask="high_school_physics") +process_docs_marketing = partial(process_docs, subtask="marketing") +process_docs_econometrics = partial(process_docs, subtask="econometrics") +process_docs_college_chemistry = partial(process_docs, subtask="college_chemistry") +process_docs_high_school_geography = partial( + process_docs, subtask="high_school_geography" +) +process_docs_high_school_us_history = partial( + process_docs, subtask="high_school_us_history" +) +process_docs_us_foreign_policy = partial(process_docs, subtask="us_foreign_policy") +process_docs_high_school_world_history = partial( + process_docs, subtask="high_school_world_history" +) +process_docs_moral_disputes = partial(process_docs, subtask="moral_disputes") +process_docs_human_sexuality = partial(process_docs, subtask="human_sexuality") +process_docs_medical_genetics = partial(process_docs, subtask="medical_genetics") +process_docs_world_religions = partial(process_docs, subtask="world_religions") +process_docs_clinical_knowledge = partial(process_docs, subtask="clinical_knowledge") +process_docs_moral_scenarios = partial(process_docs, subtask="moral_scenarios") +process_docs_high_school_microeconomics = partial( + process_docs, subtask="high_school_microeconomics" +) +process_docs_logical_fallacies = partial(process_docs, subtask="logical_fallacies") +process_docs_virology = partial(process_docs, subtask="virology") +process_docs_formal_logic = partial(process_docs, subtask="formal_logic") +process_docs_computer_security = partial(process_docs, subtask="computer_security") +process_docs_abstract_algebra = partial(process_docs, subtask="abstract_algebra") +process_docs_professional_accounting = partial( + process_docs, subtask="professional_accounting" +) +process_docs_astronomy = partial(process_docs, subtask="astronomy") +process_docs_elementary_mathematics = partial( + process_docs, subtask="elementary_mathematics" +) +process_docs_miscellaneous = partial(process_docs, subtask="miscellaneous") +process_docs_college_computer_science = partial( + process_docs, subtask="college_computer_science" +) +process_docs_public_relations = partial(process_docs, subtask="public_relations") +process_docs_high_school_computer_science = partial( + process_docs, subtask="high_school_computer_science" +) +process_docs_nutrition = partial(process_docs, subtask="nutrition") +process_docs_management = partial(process_docs, subtask="management") +process_docs_human_aging = partial(process_docs, subtask="human_aging") +process_docs_high_school_mathematics = partial( + process_docs, subtask="high_school_mathematics" +) +process_docs_high_school_statistics = partial( + process_docs, subtask="high_school_statistics" +) +process_docs_professional_law = partial(process_docs, subtask="professional_law") +process_docs_high_school_european_history = partial( + process_docs, subtask="high_school_european_history" +) +process_docs_jurisprudence = partial(process_docs, subtask="jurisprudence") +process_docs_anatomy = partial(process_docs, subtask="anatomy") +process_docs_college_mathematics = partial(process_docs, subtask="college_mathematics") +process_docs_professional_medicine = partial( + process_docs, subtask="professional_medicine" +) +process_docs_professional_psychology = partial( + process_docs, subtask="professional_psychology" +) +process_docs_college_physics = partial(process_docs, subtask="college_physics") +process_docs_high_school_chemistry = partial( + process_docs, subtask="high_school_chemistry" +) +process_docs_college_medicine = partial(process_docs, subtask="college_medicine") +process_docs_high_school_macroeconomics = partial( + process_docs, subtask="high_school_macroeconomics" +) +process_docs_high_school_psychology = partial( + process_docs, subtask="high_school_psychology" +) +process_docs_high_school_government_and_politics = partial( + process_docs, subtask="high_school_government_and_politics" +) +process_docs_high_school_biology = partial(process_docs, subtask="high_school_biology") +process_docs_electrical_engineering = partial( + process_docs, subtask="electrical_engineering" +) +process_docs_business_ethics = partial(process_docs, subtask="business_ethics") +process_docs_conceptual_physics = partial(process_docs, subtask="conceptual_physics") +process_docs_global_facts = partial(process_docs, subtask="global_facts") +process_docs_prehistory = partial(process_docs, subtask="prehistory") +process_docs_sociology = partial(process_docs, subtask="sociology") +process_docs_machine_learning = partial(process_docs, subtask="machine_learning") +process_docs_security_studies = partial(process_docs, subtask="security_studies") diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/_continuation_template_yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/_continuation_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..1cdb849c98802af8bef29a1a5c304619e02ff1da --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/_continuation_template_yaml @@ -0,0 +1,32 @@ +dataset_path: meta-llama/Llama-3.1-8B-Instruct-evals +dataset_name: Llama-3.1-8B-Instruct-evals__multilingual_mmlu_hi__details +output_type: generate_until +test_split: latest +doc_to_text: "Given the following question and four candidate answers (A, B, C and D), choose the best answer.\nQuestion: {{input_question.strip()}}\nA. {{input_choice_list.A}}\nB. {{input_choice_list.B}}\nC. {{input_choice_list.C}}\nD. {{input_choice_list.D}}\nYour response should end with \"The best answer is [the_answer_letter]\" where the [the_answer_letter] is one of A, B, C or D." +gen_prefix: "The best answer is" +doc_to_target: "{{input_correct_responses[0]}}." +num_fewshot: 5 +metric_list: + - metric: exact_match + aggregation: mean + higher_is_better: true + ignore_case: true + ignore_punctuation: true + regexes_to_ignore: + - "\\$" + - "\\.$" +generation_kwargs: + do_sample: false + temperature: 0 + until: + - "." + max_gen_toks: 10 +filter_list: + - name: strict_match + filter: + - function: remove_whitespace + - function: take_first +metadata: + version: 1.0 +dataset_kwargs: + trust_remote_code: true diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/_mmlu_hi_humanities.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/_mmlu_hi_humanities.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c9132290010535ac2a4e526b781cb5e4436c3db4 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/_mmlu_hi_humanities.yaml @@ -0,0 +1,11 @@ +group: mmlu_hi_llama_humanities +group_alias: humanities +task: + - mmlu_hi_llama_humanities_tasks +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: True + filter_list: [strict_match] +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/_mmlu_hi_llama.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/_mmlu_hi_llama.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ac5cca5b32b499daf7591f9e42c615ac84e2c912 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/_mmlu_hi_llama.yaml @@ -0,0 +1,13 @@ +group: mmlu_hi_llama +task: + - mmlu_hi_llama_stem + - mmlu_hi_llama_other + - mmlu_hi_llama_social_sciences + - mmlu_hi_llama_humanities +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: True + filter_list: [strict_match] +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/_mmlu_hi_other.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/_mmlu_hi_other.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d3a17c99e161f30702c5215e94f20621bb778e73 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/_mmlu_hi_other.yaml @@ -0,0 +1,11 @@ +group: mmlu_hi_llama_other +group_alias: other +task: + - mmlu_hi_llama_other_tasks +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: True + filter_list: [strict_match] +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/_mmlu_hi_social_sciences.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/_mmlu_hi_social_sciences.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9816a5f5ea7ebca442eaa83ad1679a6eebde856b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/_mmlu_hi_social_sciences.yaml @@ -0,0 +1,11 @@ +group: mmlu_hi_llama_social_sciences +group_alias: social sciences +task: + - mmlu_hi_llama_social_sciences_tasks +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: True + filter_list: [strict_match] +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/_mmlu_hi_stem.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/_mmlu_hi_stem.yaml new file mode 100644 index 0000000000000000000000000000000000000000..05cfc7ccf74fba9b81045111ea30a2855cb942e0 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/_mmlu_hi_stem.yaml @@ -0,0 +1,11 @@ +group: mmlu_hi_llama_stem +group_alias: stem +task: + - mmlu_hi_llama_stem_tasks +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: True + filter_list: [strict_match] +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_abstract_algebra.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_abstract_algebra.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d2360f3bcc97ae4d7f744ae4f00bbe9ac33d76ad --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_abstract_algebra.yaml @@ -0,0 +1,70 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: '0' + B: '1' + C: '2' + D: '3' + input_correct_responses: + - B + input_question: "Z_3 \u092E\u0947\u0902 \u0938\u092D\u0940 c \u0910\u0938\u0947\ + \ \u0916\u094B\u091C\u0947\u0902 \u0915\u093F Z_3[x]/(x^2 + c) \u090F\u0915\ + \ \u092B\u093C\u0940\u0932\u094D\u0921 \u0939\u094B\u0964" + - input_choice_list: + A: "\u0938\u091A \u0938\u091A" + B: "\u092E\u093F\u0925\u094D\u092F\u093E, \u092E\u093F\u0925\u094D\u092F\u093E" + C: "\u0938\u0939\u0940 \u0917\u0932\u0924" + D: "\u091D\u0942\u0920\u093E \u0938\u091A\u094D\u091A\u093E" + input_correct_responses: + - B + input_question: "\u0915\u0925\u0928 1 | \u092F\u0926\u093F AH \u0915\u093F\u0938\ + \u0940 \u0915\u093E\u0930\u0915 \u0938\u092E\u0942\u0939 \u0915\u093E \u090F\ + \u0915 \u0924\u0924\u094D\u0935 \u0939\u0948, \u0924\u094B |aH| \u0935\u093F\ + \u092D\u093E\u091C\u093F\u0924 \u0915\u0930\u0924\u093E \u0939\u0948 |\u090F\ + |. \u0915\u0925\u0928 2 | \u092F\u0926\u093F H \u0914\u0930 K, G \u0915\u0947\ + \ \u0909\u092A\u0938\u092E\u0942\u0939 \u0939\u0948\u0902 \u0924\u094B HK, G\ + \ \u0915\u093E \u0909\u092A\u0938\u092E\u0942\u0939 \u0939\u0948\u0964" + - input_choice_list: + A: "\u0938\u091A \u0938\u091A" + B: "\u092E\u093F\u0925\u094D\u092F\u093E, \u092E\u093F\u0925\u094D\u092F\u093E" + C: "\u0938\u0939\u0940 \u0917\u0932\u0924" + D: "\u091D\u0942\u0920\u093E \u0938\u091A\u094D\u091A\u093E" + input_correct_responses: + - C + input_question: "\u0915\u0925\u0928 1 | \u0938\u092E\u0942\u0939 \u0915\u093E\ + \ \u092A\u094D\u0930\u0924\u094D\u092F\u0947\u0915 \u0924\u0924\u094D\u0935\ + \ \u0938\u092E\u0942\u0939 \u0915\u093E \u090F\u0915 \u091A\u0915\u094D\u0930\ + \u0940\u092F \u0909\u092A\u0938\u092E\u0942\u0939 \u0909\u0924\u094D\u092A\u0928\ + \u094D\u0928 \u0915\u0930\u0924\u093E \u0939\u0948\u0964 \u0915\u0925\u0928\ + \ 2 | \u0938\u092E\u092E\u093F\u0924 \u0938\u092E\u0942\u0939 S_10 \u092E\u0947\ + \u0902 10 \u0924\u0924\u094D\u0935 \u0939\u0948\u0902\u0964" + - input_choice_list: + A: "\u0938\u091A \u0938\u091A" + B: "\u092E\u093F\u0925\u094D\u092F\u093E, \u092E\u093F\u0925\u094D\u092F\u093E" + C: "\u0938\u0939\u0940 \u0917\u0932\u0924" + D: "\u091D\u0942\u0920\u093E \u0938\u091A\u094D\u091A\u093E" + input_correct_responses: + - A + input_question: "\u0915\u0925\u0928 1| \u090F\u0915 \u092A\u0930\u093F\u092E\u093F\ + \u0924 \u0938\u092E\u0941\u091A\u094D\u091A\u092F \u0938\u0947 \u092A\u094D\u0930\ + \u0924\u094D\u092F\u0947\u0915 \u092B\u0932\u0928 \u0938\u094D\u0935\u092F\u0902\ + \ \u090F\u0915 \u0938\u0947 \u090F\u0915 \u0939\u094B\u0928\u093E \u091A\u093E\ + \u0939\u093F\u090F\u0964 \u0915\u0925\u0928 2 | \u090F\u092C\u0947\u0932\u093F\ + \u092F\u0928 \u0938\u092E\u0942\u0939 \u0915\u093E \u092A\u094D\u0930\u0924\u094D\ + \u092F\u0947\u0915 \u0909\u092A\u0938\u092E\u0942\u0939 \u090F\u092C\u0947\u0932\ + \u093F\u092F\u0928 \u0939\u0948\u0964" + - input_choice_list: + A: '0' + B: '3' + C: '12' + D: '30' + input_correct_responses: + - A + input_question: "\u0935\u0932\u092F 2Z \u0915\u0940 \u0935\u093F\u0936\u0947\u0937\ + \u0924\u093E \u091C\u094D\u091E\u093E\u0924 \u0915\u0940\u091C\u093F\u090F\u0964" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_abstract_algebra +tag: mmlu_hi_llama_stem_tasks +task: mmlu_hi_llama_abstract_algebra +task_alias: abstract_algebra diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_anatomy.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_anatomy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..09b0b8437cba575ec60708f45261d3e459bebb0b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_anatomy.yaml @@ -0,0 +1,85 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u092A\u0939\u0932\u093E \u0917\u094D\u0930\u0938\u0928\u0940 \u091A\u093E\ + \u092A" + B: "\u092A\u0939\u0932\u093E \u0914\u0930 \u0926\u0942\u0938\u0930\u093E \u0917\ + \u094D\u0930\u0938\u0928\u0940 \u092E\u0947\u0939\u0930\u093E\u092C" + C: "\u0926\u0942\u0938\u0930\u093E \u0917\u094D\u0930\u0938\u0928\u0940 \u091A\ + \u093E\u092A" + D: "\u0926\u0942\u0938\u0930\u093E \u0914\u0930 \u0924\u0940\u0938\u0930\u093E\ + \ \u0917\u094D\u0930\u0938\u0928\u0940 \u092E\u0947\u0939\u0930\u093E\u092C" + input_correct_responses: + - D + input_question: "\u0939\u093E\u0907\u092A\u094B\u0907\u0921 \u0939\u0921\u094D\ + \u0921\u0940 \u0915\u0940 \u092D\u094D\u0930\u0942\u0923\u0940\u092F \u0909\u0924\ + \u094D\u092A\u0924\u094D\u0924\u093F \u0915\u094D\u092F\u093E \u0939\u0948?" + - input_choice_list: + A: "\u0938\u0941\u092A\u094D\u0930\u093E\u0911\u0930\u094D\u092C\u093F\u091F\ + \u0932 \u0924\u0902\u0924\u094D\u0930\u093F\u0915\u093E" + B: "\u0907\u0928\u094D\u092B\u094D\u0930\u093E\u0911\u0930\u094D\u092C\u093F\ + \u091F\u0932 \u0924\u0902\u0924\u094D\u0930\u093F\u0915\u093E" + C: "\u092E\u093E\u0928\u0938\u093F\u0915 \u0924\u0902\u0924\u094D\u0930\u093F\ + \u0915\u093E" + D: "\u0907\u0928\u092E\u0947 \u0938\u0947 \u0915\u094B\u0908 \u092D\u0940 \u0928\ + \u0939\u0940\u0902" + input_correct_responses: + - D + input_question: "\u091F\u094D\u0930\u093E\u0907\u091C\u0947\u092E\u093F\u0928\u0932\ + \ \u0924\u0902\u0924\u094D\u0930\u093F\u0915\u093E \u0915\u0940 \u0907\u0928\ + \u092E\u0947\u0902 \u0938\u0947 \u0915\u093F\u0938 \u0936\u093E\u0916\u093E\ + \ \u092E\u0947\u0902 \u0926\u0948\u0939\u093F\u0915 \u092E\u094B\u091F\u0930\ + \ \u092A\u094D\u0930\u0915\u094D\u0930\u093F\u092F\u093E\u090F\u0902 \u0939\u094B\ + \u0924\u0940 \u0939\u0948\u0902?" + - input_choice_list: + A: "\u0915\u094B\u0908 \u0938\u0902\u0935\u0947\u0926\u0940 \u0938\u0902\u0930\ + \u0915\u094D\u0937\u0923 \u0928\u0939\u0940\u0902 \u0939\u0948." + B: "2 \u092E\u093F\u092E\u0940 \u0915\u0940 \u091C\u0917\u0939 \u0938\u0947\ + \ \u0905\u0932\u0917 \u0915\u093F\u090F \u0917\u090F \u0939\u0948\u0902\u0964" + C: "\u0917\u0930\u094D\u0926\u0928 \u0924\u0915 \u0935\u093F\u0938\u094D\u0924\ + \u093E\u0930 \u0915\u0930\u0947\u0902." + D: "\u0936\u094D\u0935\u0938\u0928 \u0909\u092A\u0915\u0932\u093E \u0938\u0947\ + \ \u092C\u0928\u0947 \u0939\u094B\u0924\u0947 \u0939\u0948\u0902\u0964" + input_correct_responses: + - C + input_question: "\u092B\u0941\u0938\u094D\u092B\u0941\u0938 \u0915\u093E \u0906\ + \u0935\u0930\u0923" + - input_choice_list: + A: "\u090A\u092A\u0930\u0940 \u092A\u093E\u0930\u094D\u0936\u094D\u0935 \u0915\ + \u0943\u0928\u094D\u0924\u0915\u094B\u0902 \u0915\u093E \u0905\u0924\u094D\ + \u092F\u0927\u093F\u0915 \u0913\u0935\u0930\u092C\u093E\u0907\u091F\u0964" + B: "\u090A\u092A\u0930\u0940 \u0915\u0947\u0902\u0926\u094D\u0930\u0940\u092F\ + \ \u0915\u0943\u0928\u094D\u0924\u0915\u094B\u0902 \u0915\u093E \u0928\u0915\ + \u093E\u0930\u093E\u0924\u094D\u092E\u0915 \u0913\u0935\u0930\u091C\u0947\u091F\ + \u0964" + C: "\u090A\u092A\u0930\u0940 \u092A\u093E\u0930\u094D\u0936\u094D\u0935 \u0915\ + \u0943\u0928\u094D\u0924\u0915\u094B\u0902 \u0915\u093E \u0905\u0924\u093F\ + \u0930\u093F\u0915\u094D\u0924 \u0913\u0935\u0930\u091C\u0947\u091F\u0964" + D: "\u090A\u092A\u0930\u0940 \u0915\u0947\u0902\u0926\u094D\u0930\u0940\u092F\ + \ \u0915\u0943\u0928\u094D\u0924\u0915\u094B\u0902 \u0915\u093E \u0905\u0924\ + \u093F\u0930\u093F\u0915\u094D\u0924 \u0913\u0935\u0930\u091C\u0947\u091F\u0964" + input_correct_responses: + - C + input_question: "\u090F\u0902\u0917\u0932 \u0915\u0947 \u0915\u094D\u0932\u093E\ + \u0938 II \u0921\u093F\u0935 2 \u092E\u0947\u0902 \u0930\u094B\u0921\u093C\u093E\ + \ \u0939\u0948" + - input_choice_list: + A: "\u092A\u0947\u091F" + B: "\u0915\u092A\u093E\u0932" + C: "\u092B\u0941\u092B\u094D\u092B\u0941\u0938" + D: "\u0930\u0940\u0922\u093C \u0915\u0940 \u0939\u0921\u094D\u0921\u0940 \u092E\ + \u0947\u0902" + input_correct_responses: + - B + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u0940 \u0936\u093E\ + \u0930\u0940\u0930\u093F\u0915 \u0917\u0941\u0939\u093E \u0939\u0948 \u091C\u093F\ + \u0938\u092E\u0947\u0902 \u092A\u093F\u091F\u094D\u092F\u0942\u091F\u0930\u0940\ + \ \u0917\u094D\u0930\u0902\u0925\u093F \u0939\u094B\u0924\u0940 \u0939\u0948\ + ?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_anatomy +tag: mmlu_hi_llama_stem_tasks +task: mmlu_hi_llama_anatomy +task_alias: anatomy diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_astronomy.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_astronomy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bcdd6627317161521b7561c4052aa7ad3f9cc8ec --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_astronomy.yaml @@ -0,0 +1,151 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u092F\u0939 \u0915\u0920\u093F\u0928 \u0939\u094B\u0917\u093E \u0915\u094D\ + \u092F\u094B\u0902\u0915\u093F \u091F\u094D\u0930\u0915 \u092E\u0902\u0917\ + \u0932 \u0917\u094D\u0930\u0939 \u092A\u0930 \u092D\u093E\u0930\u0940 \u0939\ + \u0948\u0964" + B: "\u092F\u0939 \u0906\u0938\u093E\u0928 \u0939\u094B\u0917\u093E \u0915\u094D\ + \u092F\u094B\u0902\u0915\u093F \u091F\u094D\u0930\u0915 \u092E\u0902\u0917\ + \u0932 \u092A\u0930 \u0939\u0932\u094D\u0915\u093E \u0939\u0948\u0964" + C: "\u092F\u0939 \u0915\u0920\u093F\u0928 \u0939\u094B\u0917\u093E \u0915\u094D\ + \u092F\u094B\u0902\u0915\u093F \u091F\u094D\u0930\u0915 \u092E\u0902\u0917\ + \u0932 \u0917\u094D\u0930\u0939 \u092A\u0930 \u0939\u0932\u094D\u0915\u093E\ + \ \u0939\u0948\u0964" + D: "\u091A\u093E\u0939\u0947 \u0906\u092A \u0915\u0939\u0940\u0902 \u092D\u0940\ + \ \u0939\u094B\u0902, \u092F\u0939 \u0935\u0948\u0938\u093E \u0939\u0940 \u0939\ + \u094B\u0917\u093E\u0964" + input_correct_responses: + - D + input_question: "\u0906\u092A \u0938\u0921\u093C\u0915 \u092A\u0930 \u090F\u0915\ + \ \u091F\u094D\u0930\u0915 \u0915\u094B \u0927\u0915\u094D\u0915\u093E \u0926\ + \u0947 \u0930\u0939\u0947 \u0939\u0948\u0902\u0964 \u0915\u094D\u092F\u093E\ + \ \u092E\u0902\u0917\u0932 \u0917\u094D\u0930\u0939 \u092A\u0930 \u0907\u0938\ + \ \u091F\u094D\u0930\u0915 \u0915\u094B \u0917\u0924\u093F \u0926\u0947\u0928\ + \u093E \u0906\u0938\u093E\u0928 \u0939\u094B\u0917\u093E? \u0915\u094D\u092F\ + \u094B\u0902? (\u092E\u093E\u0928 \u0932\u0947\u0902 \u0915\u093F \u0915\u094B\ + \u0908 \u0918\u0930\u094D\u0937\u0923 \u0928\u0939\u0940\u0902 \u0939\u0948)" + - input_choice_list: + A: "\u0915\u0941\u0907\u092A\u0930 \u092C\u0947\u0932\u094D\u091F; \u091B\u094B\ + \u091F\u0940 \u0905\u0935\u0927\u093F \u0915\u0947 \u0927\u0942\u092E\u0915\ + \u0947\u0924\u0941 \u0915\u0941\u0907\u092A\u0930 \u092C\u0947\u0932\u094D\ + \u091F \u0915\u0940 \u0924\u0930\u0939 \u0939\u0940 \u0938\u094C\u0930 \u092E\ + \u0902\u0921\u0932 \u0915\u0947 \u0924\u0932 \u092E\u0947\u0902 \u0939\u094B\ + \u0924\u0947 \u0939\u0948\u0902\u0964" + B: "\u0915\u0941\u0907\u092A\u0930 \u092C\u0947\u0932\u094D\u091F; \u091B\u094B\ + \u091F\u0940 \u0905\u0935\u0927\u093F \u0915\u0947 \u0927\u0942\u092E\u0915\ + \u0947\u0924\u0941 \u092F\u093E\u0926\u0943\u091A\u094D\u091B\u093F\u0915\ + \ \u0926\u093F\u0936\u093E\u0913\u0902 \u0938\u0947 \u0906\u0924\u0947 \u0939\ + \u0948\u0902 \u091C\u094B \u0915\u0941\u0907\u092A\u0930 \u092C\u0947\u0932\ + \u094D\u091F \u0928\u093E\u092E\u0915 \u0927\u0942\u092E\u0915\u0947\u0924\ + \u0941\u0913\u0902 \u0915\u0947 \u0917\u094B\u0932\u093E\u0915\u093E\u0930\ + \ \u0935\u093F\u0924\u0930\u0923 \u0915\u093E \u0938\u0902\u0915\u0947\u0924\ + \ \u0926\u0947\u0924\u0947 \u0939\u0948\u0902\u0964" + C: "\u0915\u094D\u0937\u0941\u0926\u094D\u0930\u0917\u094D\u0930\u0939 \u092C\ + \u0947\u0932\u094D\u091F; \u091B\u094B\u091F\u0940 \u0905\u0935\u0927\u093F\ + \ \u0915\u0947 \u0927\u0942\u092E\u0915\u0947\u0924\u0941\u0913\u0902 \u0915\ + \u0940 \u0915\u0915\u094D\u0937\u0940\u092F \u0905\u0935\u0927\u093F \u0935\ + \u0947\u0938\u094D\u091F\u093E \u091C\u0948\u0938\u0947 \u0915\u094D\u0937\ + \u0941\u0926\u094D\u0930\u0917\u094D\u0930\u0939\u094B\u0902 \u0915\u0947\ + \ \u0938\u092E\u093E\u0928 \u0939\u094B\u0924\u0940 \u0939\u0948 \u0914\u0930\ + \ \u092F\u0947 \u0915\u094D\u0937\u0941\u0926\u094D\u0930\u0917\u094D\u0930\ + \u0939 \u092C\u0947\u0932\u094D\u091F \u0915\u0940 \u0924\u0930\u0939 \u0939\ + \u0940 \u0938\u094C\u0930 \u092E\u0902\u0921\u0932 \u0915\u0947 \u0924\u0932\ + \ \u092E\u0947\u0902 \u092A\u093E\u090F \u091C\u093E\u0924\u0947 \u0939\u0948\ + \u0902\u0964" + D: "\u090A\u0930\u094D\u091F \u092C\u093E\u0926\u0932; \u091B\u094B\u091F\u0940\ + \ \u0905\u0935\u0927\u093F \u0915\u0947 \u0927\u0942\u092E\u0915\u0947\u0924\ + \u0941 \u090A\u0930\u094D\u091F \u092C\u093E\u0926\u0932 \u0915\u0940 \u0924\ + \u0930\u0939 \u0939\u0940 \u0938\u094C\u0930 \u092E\u0902\u0921\u0932 \u0915\ + \u0947 \u0924\u0932 \u092E\u0947\u0902 \u0939\u094B\u0924\u0947 \u0939\u0948\ + \u0902\u0964" + input_correct_responses: + - A + input_question: "\u0905\u0927\u093F\u0915\u093E\u0902\u0936 \u091B\u094B\u091F\ + \u0940 \u0905\u0935\u0927\u093F \u0915\u0947 \u0927\u0942\u092E\u0915\u0947\u0924\ + \u0941 \u0915\u0939\u093E\u0901 \u0938\u0947 \u0906\u0924\u0947 \u0939\u0948\ + \u0902 \u0914\u0930 \u0939\u092E \u0915\u0948\u0938\u0947 \u091C\u093E\u0928\ + \u0924\u0947 \u0939\u0948\u0902?" + - input_choice_list: + A: "10000 \u0917\u0941\u0928\u093E \u091C\u094D\u092F\u093E\u0926\u093E" + B: "100 \u0917\u0941\u0928\u093E \u091C\u094D\u092F\u093E\u0926\u093E" + C: "1000 \u0917\u0941\u0928\u093E \u091C\u094D\u092F\u093E\u0926\u093E" + D: "10 \u0917\u0941\u0928\u093E \u091C\u094D\u092F\u093E\u0926\u093E" + input_correct_responses: + - A + input_question: "\u092E\u093E\u0928 \u0932\u0940\u091C\u093F\u090F \u0915\u093F\ + \ \u0906\u092A\u0915\u0940 \u0906\u0902\u0916 \u0915\u0940 \u092A\u0941\u0924\ + \u0932\u0940 \u0915\u093E \u0935\u094D\u092F\u093E\u0938 5 \u092E\u093F\u092E\ + \u0940 \u0939\u0948 \u0914\u0930 \u0906\u092A\u0915\u0947 \u092A\u093E\u0938\ + \ 50 \u0938\u0947\u092E\u0940 \u090F\u092A\u0930\u094D\u091A\u0930 \u0935\u093E\ + \u0932\u093E \u090F\u0915 \u0926\u0942\u0930\u092C\u0940\u0928 \u0939\u0948\u0964\ + \ \u0926\u0942\u0930\u092C\u0940\u0928 \u0906\u092A\u0915\u0940 \u0906\u0902\ + \u0916 \u0938\u0947 \u0915\u093F\u0924\u0928\u0940 \u0905\u0927\u093F\u0915\ + \ \u0930\u094B\u0936\u0928\u0940 \u0907\u0915\u091F\u094D\u0920\u093E \u0915\ + \u0930 \u0938\u0915\u0924\u0940 \u0939\u0948?" + - input_choice_list: + A: "\u092F\u0939\u093E\u0902 \u090F\u0915 \u092C\u093E\u0930 \u090F\u0915 \u0917\ + \u094D\u0930\u0939 \u092C\u0928\u093E \u0925\u093E \u0932\u0947\u0915\u093F\ + \u0928 \u090F\u0915 \u092D\u092F\u093E\u0935\u0939 \u091F\u0915\u094D\u0915\ + \u0930 \u0938\u0947 \u0935\u0939 \u091F\u0942\u091F \u0917\u092F\u093E\u0964" + B: "\u0938\u094C\u0930 \u0928\u093F\u0939\u093E\u0930\u093F\u0915\u093E \u0915\ + \u0947 \u0907\u0938 \u092D\u093E\u0917 \u092E\u0947\u0902 \u0917\u094D\u0930\ + \u0939 \u092C\u0928\u093E\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092A\ + \u0930\u094D\u092F\u093E\u092A\u094D\u0924 \u0938\u093E\u092E\u0917\u094D\u0930\ + \u0940 \u0928\u0939\u0940\u0902 \u0925\u0940\u0964" + C: "\u090F\u0915 \u0938\u094D\u0925\u0932\u0940\u092F \u0917\u094D\u0930\u0939\ + \ \u092C\u0928\u093E\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092C\u0939\ + \u0941\u0924 \u0905\u0927\u093F\u0915 \u091A\u091F\u094D\u091F\u093E\u0928\ + \u0940 \u0938\u093E\u092E\u0917\u094D\u0930\u0940 \u0925\u0940 \u0932\u0947\ + \u0915\u093F\u0928 \u090F\u0915 \u0909\u0932\u094D\u0932\u093E\u0938\u092A\ + \u0942\u0930\u094D\u0923 \u0917\u094D\u0930\u0939 \u092C\u0928\u093E\u0928\ + \u0947 \u0915\u0947 \u0932\u093F\u090F \u092A\u0930\u094D\u092F\u093E\u092A\ + \u094D\u0924 \u0917\u0948\u0938\u0940\u092F \u0938\u093E\u092E\u0917\u094D\ + \u0930\u0940 \u0928\u0939\u0940\u0902 \u0925\u0940\u0964" + D: "\u092C\u0943\u0939\u0938\u094D\u092A\u0924\u093F \u0915\u0947 \u0938\u093E\ + \u0925 \u092A\u094D\u0930\u0924\u093F\u0927\u094D\u0935\u0928\u093F \u0928\ + \u0947 \u0938\u093E\u092E\u0917\u094D\u0930\u0940 \u0915\u094B \u090F\u0915\ + \ \u0917\u094D\u0930\u0939 \u092C\u0928\u093E\u0928\u0947 \u0915\u0947 \u0932\ + \u093F\u090F \u090F\u0915\u0924\u094D\u0930\u093F\u0924 \u0939\u094B\u0928\ + \u0947 \u0938\u0947 \u0930\u094B\u0915 \u0926\u093F\u092F\u093E\u0964" + input_correct_responses: + - D + input_question: "\u0935\u0939\u093E\u0901 \u0915\u094B\u0908 \u0917\u094D\u0930\ + \u0939 \u0915\u094D\u092F\u094B\u0902 \u0928\u0939\u0940\u0902 \u0939\u0948\ + \ \u091C\u0939\u093E\u0901 \u0915\u094D\u0937\u0941\u0926\u094D\u0930\u0917\u094D\ + \u0930\u0939 \u092C\u0947\u0932\u094D\u091F \u0938\u094D\u0925\u093F\u0924 \u0939\ + \u0948?" + - input_choice_list: + A: "\u0915\u094D\u092F\u094B\u0902\u0915\u093F \u0938\u0924\u0939 \u0905\u0924\ + \u094D\u092F\u0927\u093F\u0915 \u0911\u0915\u094D\u0938\u0940\u0915\u0943\u0924\ + \ ("\u091C\u0902\u0917 \u0932\u0917\u0947") \u0916\u0928\u093F\u091C\ + \u094B\u0902 \u0938\u0947 \u0922\u0915\u0940 \u0939\u0941\u0908 \u0939\u0948\ + \u0964" + B: "\u0915\u094D\u092F\u094B\u0902\u0915\u093F \u0935\u093E\u092F\u0941\u092E\ + \u0902\u0921\u0932 \u0928\u0940\u0932\u0940 \u0924\u0930\u0902\u0917 \u0926\ + \u0948\u0930\u094D\u0927\u094D\u092F \u092A\u0930 \u0905\u0927\u093F\u0915\ + \ \u092A\u094D\u0930\u0915\u093E\u0936 \u092C\u093F\u0916\u0947\u0930\u0924\ + \u093E \u0939\u0948 \u0914\u0930 \u0905\u0927\u093F\u0915\u0924\u0930 \u0932\ + \u093E\u0932 \u092A\u094D\u0930\u0915\u093E\u0936 \u0938\u0902\u091A\u093E\ + \u0930\u093F\u0924 \u0915\u0930\u0924\u093E \u0939\u0948\u0964" + C: "\u0915\u094D\u092F\u094B\u0902\u0915\u093F \u092E\u0902\u0917\u0932 \u0917\ + \u094D\u0930\u0939 \u092A\u094D\u0930\u093E\u091A\u0940\u0928 \u0932\u093E\ + \u0935\u093E \u092A\u094D\u0930\u0935\u093E\u0939 \u0938\u0947 \u0922\u0915\ + \u093E \u0939\u0941\u0906 \u0939\u0948 \u091C\u093F\u0938\u0915\u093E \u0930\ + \u0902\u0917 \u0932\u093E\u0932 \u0939\u0948\u0964" + D: "\u0915\u094D\u092F\u094B\u0902\u0915\u093F \u092E\u0902\u0917\u0932 \u0915\ + \u0940 \u0938\u0924\u0939 \u092A\u0930 \u092C\u0939\u0924\u0947 \u092A\u093E\ + \u0928\u0940 \u0928\u0947 \u0915\u0908 \u0905\u0930\u092C \u0938\u093E\u0932\ + \ \u092A\u0939\u0932\u0947 \u0938\u0924\u0939 \u0915\u0947 \u0916\u0928\u093F\ + \u091C\u094B\u0902 \u0915\u094B \u092C\u0926\u0932 \u0926\u093F\u092F\u093E\ + \ \u0925\u093E\u0964" + input_correct_responses: + - A + input_question: "\u092E\u0902\u0917\u0932 \u0917\u094D\u0930\u0939 \u0932\u093E\ + \u0932 \u0915\u094D\u092F\u094B\u0902 \u0939\u0948?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_astronomy +tag: mmlu_hi_llama_stem_tasks +task: mmlu_hi_llama_astronomy +task_alias: astronomy diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_business_ethics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_business_ethics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8cde6e61dfac171b7cee7303c0f11167b7409792 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_business_ethics.yaml @@ -0,0 +1,153 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u092C\u093E\u0939\u094D\u092F\u0924\u093E\u090F\u0901, \u0936\u0915\u094D\ + \u0924\u093F, \u0938\u094D\u0935\u0924\u0902\u0924\u094D\u0930\u0924\u093E" + B: "\u092A\u094D\u0930\u091A\u093E\u0930, \u0905\u092A\u0930\u094D\u092F\u093E\ + \u092A\u094D\u0924 \u0938\u0902\u0938\u093E\u0927\u0928, \u092A\u093E\u0930\ + \u0938\u094D\u092A\u0930\u093F\u0915 \u0928\u093F\u0930\u094D\u092D\u0930\u0924\ + \u093E" + C: "\u092A\u094D\u0930\u091A\u093E\u0930, \u0936\u0915\u094D\u0924\u093F, \u0938\ + \u094D\u0935\u0924\u0902\u0924\u094D\u0930\u0924\u093E" + D: "\u092C\u093E\u0939\u094D\u092F\u0924\u093E\u090F\u0901, \u0936\u0915\u094D\ + \u0924\u093F, \u092A\u093E\u0930\u0938\u094D\u092A\u0930\u093F\u0915 \u0928\ + \u093F\u0930\u094D\u092D\u0930\u0924\u093E" + input_correct_responses: + - D + input_question: "\u0938\u0940\u090F\u0938\u0906\u0930 \u092E\u0947\u0902 \u0938\ + \u0902\u0932\u0917\u094D\u0928 \u0939\u094B\u0928\u0947 \u0915\u0947 \u0935\u094D\ + \u092F\u093E\u0935\u0938\u093E\u092F\u093F\u0915 \u092E\u093E\u092E\u0932\u0947\ + \ \u0938\u0947 \u092A\u0930\u0947 \u0915\u0908 \u0928\u0948\u0924\u093F\u0915\ + \ \u0924\u0930\u094D\u0915 \u0939\u0948\u0902: \u0928\u0915\u093E\u0930\u093E\ + \u0924\u094D\u092E\u0915 _______, \u0928\u093F\u0917\u092E\u094B\u0902 \u0915\ + \u0947 \u092A\u093E\u0938 \u091C\u094B _______ \u0939\u0948 \u0914\u0930 \u0935\ + \u094D\u092F\u0935\u0938\u093E\u092F \u0914\u0930 \u0938\u092E\u093E\u091C \u0915\ + \u093E ________\u0964" + - input_choice_list: + A: "\u0915\u0949\u0930\u094D\u092A\u094B\u0930\u0947\u091F \u0915\u0940 \u0938\ + \u093E\u092E\u093E\u091C\u093F\u0915 \u091C\u093F\u092E\u094D\u092E\u0947\u0926\ + \u093E\u0930\u0940" + B: "\u0935\u094D\u092F\u093E\u0935\u0938\u093E\u092F\u093F\u0915 \u0928\u0948\ + \u0924\u093F\u0915\u0924\u093E \u092A\u094D\u0930\u092C\u0902\u0927\u0928" + C: "\u0935\u0939\u0928\u0940\u092F\u0924\u093E" + D: "\u092A\u0930\u094D\u092F\u093E\u0935\u0930\u0923 \u092A\u094D\u0930\u092C\ + \u0902\u0927\u0928" + input_correct_responses: + - B + input_question: "_______ \u0935\u093F\u0936\u093F\u0937\u094D\u091F \u0928\u0940\ + \u0924\u093F\u092F\u094B\u0902, \u092A\u094D\u0930\u0925\u093E\u0913\u0902 \u0914\ + \u0930 \u0915\u093E\u0930\u094D\u092F\u0915\u094D\u0930\u092E\u094B\u0902 \u0915\ + \u0947 \u092E\u093E\u0927\u094D\u092F\u092E \u0938\u0947 \u0928\u0948\u0924\u093F\ + \u0915 \u092E\u0941\u0926\u094D\u0926\u094B\u0902 \u092F\u093E \u0938\u092E\u0938\ + \u094D\u092F\u093E\u0913\u0902 \u0915\u094B \u0914\u092A\u091A\u093E\u0930\u093F\ + \u0915 \u092F\u093E \u0905\u0928\u094C\u092A\u091A\u093E\u0930\u093F\u0915 \u0930\ + \u0942\u092A \u0938\u0947 \u092A\u094D\u0930\u092C\u0902\u0927\u093F\u0924 \u0915\ + \u0930\u0928\u0947 \u0915\u093E \u092A\u094D\u0930\u0924\u094D\u092F\u0915\u094D\ + \u0937 \u092A\u094D\u0930\u092F\u093E\u0938 \u0939\u0948\u0964" + - input_choice_list: + A: "\u092C\u093E\u0939\u0930, \u0938\u0940\u092E\u093F\u0924, \u0938\u094D\u0935\ + \u0924\u0902\u0924\u094D\u0930 \u0930\u0942\u092A \u0938\u0947" + B: "\u0905\u0902\u0926\u0930, \u0938\u0940\u092E\u093F\u0924, \u0930\u0941\u0915\ + -\u0930\u0941\u0915 \u0915\u0930" + C: "\u092C\u093E\u0939\u0930, \u0905\u0938\u0940\u092E\u093F\u0924, \u0930\u0941\ + \u0915-\u0930\u0941\u0915 \u0915\u0930" + D: "\u0905\u0902\u0926\u0930, \u0905\u0938\u0940\u092E\u093F\u0924, \u0938\u094D\ + \u0935\u0924\u0902\u0924\u094D\u0930 \u0930\u0942\u092A \u0938\u0947" + input_correct_responses: + - A + input_question: "\u0917\u0948\u0930-\u0915\u093E\u0930\u094D\u092F\u0915\u093E\ + \u0930\u0940 \u092C\u094B\u0930\u094D\u0921 \u0915\u0947 \u0938\u0926\u0938\u094D\ + \u092F\u094B\u0902 \u0915\u0940 \u0938\u094D\u0935\u0924\u0902\u0924\u094D\u0930\ + \u0924\u093E \u0938\u0941\u0928\u093F\u0936\u094D\u091A\u093F\u0924 \u0915\u0930\ + \u0928\u0947 \u0915\u0947 \u0932\u093F\u090F, \u0915\u0908 \u0915\u0926\u092E\ + \ \u0909\u0920\u093E\u090F \u091C\u093E \u0938\u0915\u0924\u0947 \u0939\u0948\ + \u0902, \u091C\u093F\u0938\u092E\u0947\u0902 \u0917\u0948\u0930-\u0915\u093E\ + \u0930\u094D\u092F\u0915\u093E\u0930\u0940 \u0915\u094B \u0915\u0902\u092A\u0928\ + \u0940 \u0938\u0947 _________ \u0938\u0947 \u0932\u093F\u092F\u093E \u091C\u093E\ + \u0928\u093E, _________ \u0938\u092E\u092F \u0905\u0935\u0927\u093F \u0915\u0947\ + \ \u0932\u093F\u090F \u0928\u093F\u092F\u0941\u0915\u094D\u0924 \u0915\u093F\ + \u092F\u093E \u091C\u093E\u0928\u093E \u0914\u0930 \u0938\u093E\u0925 \u0939\ + \u0940 _________ \u0928\u093F\u092F\u0941\u0915\u094D\u0924 \u0915\u093F\u092F\ + \u093E \u091C\u093E\u0928\u093E \u0936\u093E\u092E\u093F\u0932 \u0939\u0948\u0964" + - input_choice_list: + A: "\u0905\u0939\u093F\u0902\u0938\u0915 \u092A\u094D\u0930\u0924\u094D\u092F\ + \u0915\u094D\u0937 \u0915\u093E\u0930\u094D\u0930\u0935\u093E\u0908, \u0939\ + \u093F\u0902\u0938\u0915 \u092A\u094D\u0930\u0924\u094D\u092F\u0915\u094D\u0937\ + \ \u0915\u093E\u0930\u094D\u0930\u0935\u093E\u0908, \u0905\u092A\u094D\u0930\ + \u0924\u094D\u092F\u0915\u094D\u0937 \u0915\u093E\u0930\u094D\u0930\u0935\u093E\ + \u0908, \u092C\u0939\u093F\u0937\u094D\u0915\u093E\u0930" + B: "\u0905\u092A\u094D\u0930\u0924\u094D\u092F\u0915\u094D\u0937 \u0915\u093E\ + \u0930\u094D\u0930\u0935\u093E\u0908, \u0935\u093E\u0926\u094D\u092F \u0915\ + \u093E\u0930\u094D\u0930\u0935\u093E\u0908, \u0905\u0939\u093F\u0902\u0938\ + \u0915 \u092A\u094D\u0930\u0924\u094D\u092F\u0915\u094D\u0937 \u0915\u093E\ + \u0930\u094D\u0930\u0935\u093E\u0908, \u0938\u0942\u091A\u0928\u093E \u0905\ + \u092D\u093F\u092F\u093E\u0928" + C: "\u0905\u092A\u094D\u0930\u0924\u094D\u092F\u0915\u094D\u0937 \u0915\u093E\ + \u0930\u094D\u0930\u0935\u093E\u0908, \u0939\u093F\u0902\u0938\u0915 \u092A\ + \u094D\u0930\u0924\u094D\u092F\u0915\u094D\u0937 \u0915\u093E\u0930\u094D\u0930\ + \u0935\u093E\u0908, \u0905\u0939\u093F\u0902\u0938\u0915 \u092A\u094D\u0930\ + \u0924\u094D\u092F\u0915\u094D\u0937 \u0915\u093E\u0930\u094D\u0930\u0935\u093E\ + \u0908 \u092C\u0939\u093F\u0937\u094D\u0915\u093E\u0930" + D: "\u0905\u0939\u093F\u0902\u0938\u0915 \u092A\u094D\u0930\u0924\u094D\u092F\ + \u0915\u094D\u0937 \u0915\u093E\u0930\u094D\u0930\u0935\u093E\u0908, \u0935\ + \u093E\u0926\u094D\u092F \u0915\u093E\u0930\u094D\u0930\u0935\u093E\u0908\ + , \u0905\u092A\u094D\u0930\u0924\u094D\u092F\u0915\u094D\u0937 \u0915\u093E\ + \u0930\u094D\u0930\u0935\u093E\u0908, \u0938\u0942\u091A\u0928\u093E \u0905\ + \u092D\u093F\u092F\u093E\u0928" + input_correct_responses: + - C + input_question: "\u0938\u0940\u090F\u0938\u0913 \u0905\u092A\u0928\u0947 \u0932\ + \u0915\u094D\u0937\u094D\u092F\u094B\u0902 \u0915\u094B \u092A\u0942\u0930\u093E\ + \ \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u091C\u093F\u0928\ + \ \u0924\u0940\u0928 \u0935\u093F\u092A\u0930\u0940\u0924 \u092F\u0941\u0915\ + \u094D\u0924\u093F\u092F\u094B\u0902 \u092E\u0947\u0902 \u0938\u0902\u0932\u0917\ + \u094D\u0928 \u0939\u094B \u0938\u0915\u0924\u0947 \u0939\u0948\u0902 \u0935\ + \u0947 \u0939\u0948\u0902 ________ \u091C\u093F\u0938\u092E\u0947\u0902 \u0906\ + \u092E \u0924\u094C\u0930 \u092A\u0930 \u0905\u0928\u0941\u0938\u0902\u0927\u093E\ + \u0928 \u0914\u0930 \u0938\u0902\u091A\u093E\u0930 \u0936\u093E\u092E\u093F\u0932\ + \ \u0939\u094B\u0924\u093E \u0939\u0948, ________, \u091C\u093F\u0938\u092E\u0947\ + \u0902 \u0915\u093F\u0938\u0940 \u0915\u0902\u092A\u0928\u0940 \u0915\u0947\ + \ \u0938\u0902\u091A\u093E\u0932\u0928 \u092A\u0930 \u0936\u093E\u0930\u0940\ + \u0930\u093F\u0915 \u0930\u0942\u092A \u0938\u0947 \u0939\u092E\u0932\u093E\ + \ \u0915\u0930\u0928\u093E \u092F\u093E ________ \u0936\u093E\u092E\u093F\u0932\ + \ \u0939\u094B \u0938\u0915\u0924\u093E \u0939\u0948, \u091C\u093F\u0938\u092E\ + \u0947\u0902 \u0905\u0915\u094D\u0938\u0930 _______ \u0915\u093E \u0915\u0941\ + \u091B \u0930\u0942\u092A \u0936\u093E\u092E\u093F\u0932 \u0939\u094B\u0924\u093E\ + \ \u0939\u0948\u0964" + - input_choice_list: + A: "\u092C\u093E\u092F\u0915\u0949\u091F, \u092C\u0949\u092F\u0915\u0949\u091F\ + , \u092C\u094D\u0932\u0949\u0915\u091A\u0947\u0928 \u092A\u094D\u0930\u094C\ + \u0926\u094D\u092F\u094B\u0917\u093F\u0915\u0940, \u0927\u0930\u094D\u092E\ + \u093E\u0930\u094D\u0925 \u0926\u093E\u0928" + B: "\u092C\u093E\u092F\u0915\u0949\u091F, \u092C\u0949\u092F\u0915\u0949\u091F\ + , \u0921\u093F\u091C\u093F\u091F\u0932 \u0924\u0915\u0928\u0940\u0915, \u092C\ + \u0922\u093C\u0940 \u0939\u0941\u0908 \u092C\u093F\u0915\u094D\u0930\u0940" + C: "\u092C\u0939\u093F\u0937\u094D\u0915\u093E\u0930, \u0916\u0930\u0940\u0926\ + \u093E\u0930\u0940, \u092C\u094D\u0932\u0949\u0915\u091A\u0947\u0928 \u092A\ + \u094D\u0930\u094C\u0926\u094D\u092F\u094B\u0917\u093F\u0915\u0940, \u0927\ + \u0930\u094D\u092E\u093E\u0930\u094D\u0925 \u0926\u093E\u0928" + D: "\u092C\u0939\u093F\u0937\u094D\u0915\u093E\u0930, \u092C\u093E\u092F\u0915\ + \u0949\u091F, \u0921\u093F\u091C\u093F\u091F\u0932 \u092A\u094D\u0930\u094C\ + \u0926\u094D\u092F\u094B\u0917\u093F\u0915\u0940, \u092C\u0922\u093C\u0940\ + \ \u0939\u0941\u0908 \u092C\u093F\u0915\u094D\u0930\u0940" + input_correct_responses: + - D + input_question: "_______ \u0915\u0947 \u0935\u093F\u092A\u0930\u0940\u0924, _______\ + \ \u0915\u093E \u0909\u0926\u094D\u0926\u0947\u0936\u094D\u092F \u0915\u0902\ + \u092A\u0928\u093F\u092F\u094B\u0902 \u0926\u094D\u0935\u093E\u0930\u093E \u0905\ + \u0928\u0941\u0915\u0942\u0932 \u0935\u094D\u092F\u0935\u0939\u093E\u0930 \u0915\ + \u094B \u092A\u0941\u0930\u0938\u094D\u0915\u0943\u0924 \u0915\u0930\u0928\u093E\ + \ \u0939\u0948\u0964 \u0910\u0938\u0947 \u0905\u092D\u093F\u092F\u093E\u0928\ + \u094B\u0902 \u0915\u0940 \u0938\u092B\u0932\u0924\u093E ___________ \u0915\u0947\ + \ \u0909\u092A\u092F\u094B\u0917 \u0915\u0947 \u092E\u093E\u0927\u094D\u092F\ + \u092E \u0938\u0947 \u092C\u0922\u093C\u0940 \u0939\u0948, \u091C\u094B \u0905\ + \u092D\u093F\u092F\u093E\u0928\u094B\u0902 \u0915\u094B \u0915\u0902\u092A\u0928\ + \u0940 \u0915\u094B _________ \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\ + \u0930\u0928\u0947 \u092E\u0947\u0902 \u0938\u0941\u0935\u093F\u0927\u093E \u092A\ + \u094D\u0930\u0926\u093E\u0928 \u0915\u0930\u0924\u0940 \u0939\u0948\u0964" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_business_ethics +tag: mmlu_hi_llama_other_tasks +task: mmlu_hi_llama_business_ethics +task_alias: business_ethics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_clinical_knowledge.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_clinical_knowledge.yaml new file mode 100644 index 0000000000000000000000000000000000000000..52202b4e68079eb7bddbcfd71f2084388fafa979 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_clinical_knowledge.yaml @@ -0,0 +1,109 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u090F\u091F\u0940\u092A\u0940." + B: "\u090F.\u0921\u0940.\u092A\u0940." + C: "\u092B\u093C\u0949\u0938\u094D\u092B\u093C\u094B\u0915\u094D\u0930\u093F\ + \u090F\u091F\u093F\u0928\u0964" + D: "\u0911\u0915\u094D\u0938\u0940\u0921\u0947\u091F\u093F\u0935 \u092B\u093E\ + \u0943\u0949\u0938\u094D\u092B\u0949\u0930\u093F\u0932\u0947\u0936\u0928\u0964" + input_correct_responses: + - A + input_question: "\u0938\u092D\u0940 \u092A\u094D\u0930\u0915\u093E\u0930 \u0915\ + \u0940 \u092E\u093E\u0902\u0938\u092A\u0947\u0936\u093F\u092F\u094B\u0902 \u0915\ + \u0947 \u0938\u0902\u0915\u0941\u091A\u0928 \u0915\u0947 \u0932\u093F\u090F\ + \ \u090A\u0930\u094D\u091C\u093E \u092A\u094D\u0930\u0926\u093E\u0928 \u0915\ + \u0940 \u091C\u093E\u0924\u0940 \u0939\u0948:" + - input_choice_list: + A: "\u0928\u0930 \u0914\u0930 \u092E\u093E\u0926\u093E \u0915\u0948\u0925\u0947\ + \u091F\u0930 \u0905\u0932\u0917-\u0905\u0932\u0917 \u0930\u0902\u0917 \u0915\ + \u0947 \u0939\u094B\u0924\u0947 \u0939\u0948\u0902\u0964" + B: "\u092A\u0941\u0930\u0941\u0937 \u0915\u0948\u0925\u0947\u091F\u0930 \u092E\ + \u0939\u093F\u0932\u093E \u0915\u0948\u0925\u0947\u091F\u0930 \u0915\u0940\ + \ \u0924\u0941\u0932\u0928\u093E \u092E\u0947\u0902 \u0932\u0902\u092C\u0947\ + \ \u0939\u094B\u0924\u0947 \u0939\u0948\u0902\u0964" + C: "\u092A\u0941\u0930\u0941\u0937 \u0915\u0948\u0925\u0947\u091F\u0930 \u092E\ + \u0939\u093F\u0932\u093E \u0915\u0948\u0925\u0947\u091F\u0930 \u0938\u0947\ + \ \u092C\u0921\u093C\u0947 \u0939\u094B\u0924\u0947 \u0939\u0948\u0902\u0964" + D: "\u092E\u0939\u093F\u0932\u093E \u0915\u0948\u0925\u0947\u091F\u0930 \u092A\ + \u0941\u0930\u0941\u0937 \u0915\u0948\u0925\u0947\u091F\u0930 \u0915\u0940\ + \ \u0924\u0941\u0932\u0928\u093E \u092E\u0947\u0902 \u0905\u0927\u093F\u0915\ + \ \u0932\u0902\u092C\u0947 \u0939\u094B\u0924\u0947 \u0939\u0948\u0902\u0964" + input_correct_responses: + - B + input_question: "\u092A\u0941\u0930\u0941\u0937 \u0914\u0930 \u092E\u0939\u093F\ + \u0932\u093E \u0915\u0948\u0925\u0947\u091F\u0930 \u0915\u0947 \u092C\u0940\u091A\ + \ \u0915\u094D\u092F\u093E \u0905\u0902\u0924\u0930 \u0939\u0948?" + - input_choice_list: + A: "\u0905\u0902\u0917\u0942\u0920\u0947 \u0915\u0947 \u0905\u092A\u0939\u0930\ + \u0923 \u0915\u0940 \u0906\u092A\u0942\u0930\u094D\u0924\u093F \u0930\u0940\ + \u0922\u093C \u0915\u0940 \u0939\u0921\u094D\u0921\u0940 \u0915\u0940 \u091C\ + \u0921\u093C T2 \u0926\u094D\u0935\u093E\u0930\u093E \u0915\u0940 \u091C\u093E\ + \u0924\u0940 \u0939\u0948" + B: "\u0935\u093F\u0930\u094B\u0927\u093F\u092F\u094B\u0902 \u092A\u094B\u0932\ + \u093F\u0938\u093F\u0938 \u0926\u094D\u0935\u093E\u0930\u093E \u0905\u0902\ + \u0917\u0942\u0920\u0947 \u0915\u093E \u0935\u093F\u0930\u094B\u0927 \u0930\ + \u0940\u0922\u093C \u0915\u0940 \u0939\u0921\u094D\u0921\u0940 \u0915\u0940\ + \ \u091C\u0921\u093C T1 \u0926\u094D\u0935\u093E\u0930\u093E \u0906\u092A\u0942\ + \u0930\u094D\u0924\u093F \u0915\u0940 \u091C\u093E\u0924\u0940 \u0939\u0948" + C: "\u0909\u0902\u0917\u0932\u0940 \u0938\u092E\u094D\u092E\u093F\u0932\u0928\ + \ \u0915\u0940 \u0906\u092A\u0942\u0930\u094D\u0924\u093F \u092E\u093E\u0927\ + \u094D\u092F\u093F\u0915\u093E \u0924\u0902\u0924\u094D\u0930\u093F\u0915\u093E\ + \ \u0926\u094D\u0935\u093E\u0930\u093E \u0915\u0940 \u091C\u093E\u0924\u0940\ + \ \u0939\u0948" + D: "\u0909\u0902\u0917\u0932\u0940 \u0915\u0947 \u0905\u092A\u0939\u0930\u0923\ + \ \u0915\u0940 \u092E\u0927\u094D\u092F\u0938\u094D\u0925\u0924\u093E \u092A\ + \u093E\u092E\u0930 \u0907\u0902\u091F\u0930\u094B\u0938\u0947\u0908 \u0926\ + \u094D\u0935\u093E\u0930\u093E \u0915\u0940 \u091C\u093E\u0924\u0940 \u0939\ + \u0948" + input_correct_responses: + - B + input_question: "\u0939\u093E\u0925 \u0915\u0940 \u0915\u093E\u0930\u094D\u092F\ + \u092A\u094D\u0930\u0923\u093E\u0932\u0940 \u0915\u0947 \u092E\u0942\u0932\u094D\ + \u092F\u093E\u0902\u0915\u0928 \u092E\u0947\u0902 \u0928\u093F\u092E\u094D\u0928\ + \u0932\u093F\u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928\ + \ \u0938\u093E \u0938\u0924\u094D\u092F \u0939\u0948?" + - input_choice_list: + A: '4' + B: '3' + C: '2' + D: '1' + input_correct_responses: + - C + input_question: "2020 \u0915\u0947 \u091A\u093F\u0915\u093F\u0924\u094D\u0938\u093E\ + \ \u091C\u094D\u091E\u093E\u0928 \u0915\u0947 \u0905\u0928\u0941\u0938\u093E\ + \u0930, \u0915\u093F\u0938\u0940 \u0935\u0930\u093F\u0937\u094D\u0920 \u0938\ + \u0939\u0915\u0930\u094D\u092E\u0940 \u0915\u094B \u0915\u093E\u092E \u0938\u094C\ + \u0902\u092A\u0928\u0947 \u0938\u0947 \u092A\u0939\u0932\u0947 \u0906\u092A\u0915\ + \u094B \u090F\u0915 \u092E\u0930\u0940\u091C \u0915\u094B \u0915\u0948\u0928\ + \u0941\u0932\u0947\u091F \u0915\u0930\u0928\u0947 \u0915\u0947 \u0915\u093F\u0924\ + \u0928\u0947 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0928\u0947 \u091A\ + \u093E\u0939\u093F\u090F?" + - input_choice_list: + A: "\u0917\u094D\u0932\u093E\u0907\u0915\u094B\u091C\u0928 \u0938\u0947 \u0917\ + \u094D\u0932\u0942\u0915\u094B\u091C-1-\u092B\u0949\u0938\u094D\u092B\u0947\ + \u091F\u0964" + B: "\u0917\u094D\u0932\u093E\u0907\u0915\u094B\u091C\u0928 \u092F\u093E \u0917\ + \u094D\u0932\u0942\u0915\u094B\u091C \u0938\u0947 \u092B\u094D\u0930\u0941\ + \u0915\u094D\u091F\u094B\u091C\u0964" + C: "\u0917\u094D\u0932\u093E\u0907\u0915\u094B\u091C\u0928 \u092F\u093E \u0917\ + \u094D\u0932\u0942\u0915\u094B\u091C \u0915\u094B \u092A\u093E\u0907\u0930\ + \u0942\u0935\u0947\u091F \u092F\u093E \u0932\u0948\u0915\u094D\u091F\u0947\ + \u091F \u092E\u0947\u0902\u0964" + D: "\u0917\u094D\u0932\u093E\u0907\u0915\u094B\u091C\u0928 \u092F\u093E \u0917\ + \u094D\u0932\u0942\u0915\u094B\u091C \u0938\u0947 \u092A\u093E\u0907\u0930\ + \u0942\u0935\u0947\u091F \u092F\u093E \u090F\u0938\u093F\u091F\u093E\u0907\ + \u0932 \u0938\u0940\u0913\u090F\u0964" + input_correct_responses: + - C + input_question: "\u0917\u094D\u0932\u093E\u0907\u0915\u094B\u0932\u093E\u0907\u0938\ + \u093F\u0938 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u0915\ + \u0947 \u0930\u0942\u092A\u093E\u0902\u0924\u0930\u0923 \u0938\u0947 \u091C\u0941\ + \u0921\u093C\u0947 \u092E\u093E\u0930\u094D\u0917 \u0915\u094B \u0926\u093F\u092F\ + \u093E \u0917\u092F\u093E \u0928\u093E\u092E \u0939\u0948:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_clinical_knowledge +tag: mmlu_hi_llama_other_tasks +task: mmlu_hi_llama_clinical_knowledge +task_alias: clinical_knowledge diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_college_biology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_college_biology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a9b7e6e15014a7259b16864e2447964203081c9f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_college_biology.yaml @@ -0,0 +1,125 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0909\u0928\u0915\u0947 \u092A\u093E\u0938 \u092E\u0941\u0916\u094D\u092F\ + \ \u0930\u0942\u092A \u0938\u0947 \u092A\u0947\u092A\u094D\u091F\u093F\u0921\ + \u094B\u0917\u094D\u0932\u093E\u0907\u0915\u0928 \u0938\u0947 \u092C\u0928\ + \u093E \u090F\u0915 \u090F\u0915\u094D\u0938\u094B\u0938\u094D\u0915\u0947\ + \u0932\u0947\u091F\u0928 \u0939\u094B\u0924\u093E \u0939\u0948\u0964" + B: "\u0909\u0928\u0915\u0947 \u092A\u093E\u0938 \u092A\u0943\u0937\u094D\u0920\ + \u0940\u092F \u0939\u0943\u0926\u092F \u0915\u0947 \u0938\u093E\u0925 \u090F\ + \u0915 \u0916\u0941\u0932\u093E \u092A\u0930\u093F\u0938\u0902\u091A\u0930\ + \u0923 \u0924\u0902\u0924\u094D\u0930 \u0939\u094B\u0924\u093E \u0939\u0948\ + \u0964" + C: "\u0935\u0947 \u091C\u0948\u0935\u093F\u0915 \u0930\u0942\u092A \u0938\u0947\ + \ \u0905\u0938\u092B\u0932 \u0938\u0902\u0918 \u0915\u0947 \u0938\u0926\u0938\ + \u094D\u092F \u0939\u0948\u0902 \u091C\u094B \u0935\u093F\u0935\u093F\u0927\ + \ \u0906\u0935\u093E\u0938\u094B\u0902 \u0914\u0930 \u092A\u094B\u0937\u0923\ + \ \u0938\u094D\u0930\u094B\u0924\u094B\u0902 \u0915\u093E \u0926\u094B\u0939\ + \u0928 \u0915\u0930\u0928\u0947 \u092E\u0947\u0902 \u0905\u0938\u092E\u0930\ + \u094D\u0925 \u0939\u0948\u0902\u0964" + D: "\u0909\u0928\u092E\u0947\u0902 \u092F\u0941\u0917\u094D\u092E\u093F\u0924\ + , \u0938\u0902\u092F\u0941\u0915\u094D\u0924 \u0909\u092A\u093E\u0902\u0917\ + \u094B\u0902 \u0915\u093E \u0905\u092D\u093E\u0935 \u0939\u094B\u0924\u093E\ + \ \u0939\u0948\u0964" + input_correct_responses: + - B + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u0906\u0930\ + \u094D\u0925\u094D\u0930\u094B\u092A\u094B\u0921\u094D\u0938 \u0915\u0947 \u0938\ + \u0902\u092C\u0902\u0927 \u092E\u0947\u0902 \u090F\u0915 \u0938\u091F\u0940\u0915\ + \ \u0915\u0925\u0928 \u0915\u093E \u092A\u094D\u0930\u0924\u093F\u0928\u093F\ + \u0927\u093F\u0924\u094D\u0935 \u0915\u0930\u0924\u093E \u0939\u0948?" + - input_choice_list: + A: 1/400 + B: 19/400 + C: 20/400 + D: 38/400 + input_correct_responses: + - D + input_question: "\u0915\u093F\u0938\u0940 \u0926\u0940 \u0917\u0908 \u0906\u092C\ + \u093E\u0926\u0940 \u092E\u0947\u0902, \u092A\u094D\u0930\u0924\u094D\u092F\u0947\ + \u0915 400 \u0932\u094B\u0917\u094B\u0902 \u092E\u0947\u0902 \u0938\u0947 1\ + \ \u0915\u094B \u092A\u0942\u0930\u0940 \u0924\u0930\u0939 \u0938\u0947 \u0905\ + \u092A\u094D\u0930\u092D\u093E\u0935\u0940 \u090F\u0932\u0940\u0932, \u092C\u0940\ + \ \u0915\u0947 \u0915\u093E\u0930\u0923 \u0939\u094B\u0928\u0947 \u0935\u093E\ + \u0932\u093E \u0915\u0948\u0902\u0938\u0930 \u0939\u0948\u0964 \u092F\u0939\ + \ \u092E\u093E\u0928\u0924\u0947 \u0939\u0941\u090F \u0915\u093F \u091C\u0928\ + \u0938\u0902\u0916\u094D\u092F\u093E \u0939\u093E\u0930\u094D\u0921\u0940-\u0935\ + \u0947\u0928\u092C\u0930\u094D\u0917 \u0938\u0902\u0924\u0941\u0932\u0928 \u092E\ + \u0947\u0902 \u0939\u0948, \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\ + \u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u0909\ + \u0928 \u0935\u094D\u092F\u0915\u094D\u0924\u093F\u092F\u094B\u0902 \u0915\u093E\ + \ \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0905\u0928\u0941\u092A\u093E\ + \u0924 \u0939\u0948 \u091C\u094B \u092C\u0940 \u090F\u0932\u0940\u0932 \u0930\ + \u0916\u0924\u0947 \u0939\u0948\u0902 \u0932\u0947\u0915\u093F\u0928 \u0915\u0948\ + \u0902\u0938\u0930 \u0935\u093F\u0915\u0938\u093F\u0924 \u0939\u094B\u0928\u0947\ + \ \u0915\u0940 \u0909\u092E\u094D\u092E\u0940\u0926 \u0928\u0939\u0940\u0902\ + \ \u0939\u0948?" + - input_choice_list: + A: "\u092E\u0928\u0941\u0937\u094D\u092F \u0914\u0930 \u092A\u0915\u094D\u0937\ + \u0940 \u092A\u0949\u0932\u0940\u092B\u093C\u093E\u0907\u0932\u0947\u091F\u093F\ + \u0915 \u092A\u094D\u0930\u091C\u093E\u0924\u093F\u092F\u093E\u0901 \u0939\ + \u0948\u0902" + B: "\u092E\u0928\u0941\u0937\u094D\u092F \u0914\u0930 \u092A\u0915\u094D\u0937\ + \u0940 \u0915\u093E \u0935\u093F\u0915\u093E\u0938 \u0905\u092D\u093F\u0938\ + \u0930\u0923 \u0939\u0948" + C: "\u092E\u0928\u0941\u0937\u094D\u092F \u0914\u0930 \u092A\u0915\u094D\u0937\ + \u0940 \u090F\u0915 \u0938\u092E\u0942\u0939 \u0915\u0947 \u0939\u0948\u0902" + D: "\u092E\u093E\u0928\u0935 \u0914\u0930 \u092A\u0915\u094D\u0937\u0940 \u0938\ + \u093E\u0926\u0943\u0936\u094D\u092F \u0926\u094D\u0935\u093E\u0930\u093E\ + \ \u0935\u093F\u0915\u0938\u093F\u0924 \u0939\u0941\u090F" + input_correct_responses: + - C + input_question: "\u0926\u094B \u0905\u0932\u0917-\u0905\u0932\u0917 \u091C\u0940\ + \u0935\u094B\u0902 \u092E\u0947\u0902 \u0938\u092E\u091C\u093E\u0924 \u0938\u0902\ + \u0930\u091A\u0928\u093E\u0913\u0902 \u0915\u0940 \u0909\u092A\u0938\u094D\u0925\ + \u093F\u0924\u093F, \u091C\u0948\u0938\u0947 \u092E\u093E\u0928\u0935 \u0914\ + \u0930 \u092A\u0915\u094D\u0937\u0940 \u0915\u0947 \u0905\u0917\u0932\u0947\ + \ \u0905\u0902\u0917 \u092E\u0947\u0902 \u0939\u094D\u092F\u0942\u092E\u0930\ + \u0938, \u092F\u0939 \u0907\u0902\u0917\u093F\u0924 \u0915\u0930\u0924\u0940\ + \ \u0939\u0948" + - input_choice_list: + A: "\u090F\u0915 \u090F\u091F\u0940\u092A\u0940-\u0928\u093F\u0930\u094D\u092D\ + \u0930 \u0926\u092C\u093E\u0935-\u092A\u094D\u0930\u0935\u093E\u0939 \u092A\ + \u0902\u092A" + B: "\u090F\u0915 \u091C\u0932-\u0926\u092C\u093E\u0935 \u0938\u0902\u092D\u093E\ + \u0935\u093F\u0924 \u0922\u093E\u0932" + C: "\u0938\u094D\u0935\u0947\u0926" + D: "\u090F\u092A\u094B\u092A\u094D\u0932\u093E\u0938\u094D\u091F\u093F\u0915\ + \ \u092A\u094D\u0930\u0938\u093E\u0930" + input_correct_responses: + - B + input_question: "\u092B\u094D\u0932\u094B\u090F\u092E \u0938\u093E\u092E\u0917\ + \u094D\u0930\u0940 \u0915\u0940 \u0917\u0924\u093F \u0915\u0947 \u0926\u092C\ + \u093E\u0935-\u092A\u094D\u0930\u0935\u093E\u0939 \u092E\u0949\u0921\u0932 \u0915\ + \u0947 \u0905\u0928\u0941\u0938\u093E\u0930, \u0938\u094D\u0930\u094B\u0924\ + \ \u0938\u0947 \u0938\u093F\u0902\u0915 \u0924\u0915 \u092A\u094D\u0930\u0915\ + \u093E\u0936 \u0938\u0902\u0936\u094D\u0932\u0947\u0937\u0923 \u0915\u0940 \u0917\ + \u0924\u093F \u0915\u093F\u0938\u0915\u0947 \u0926\u094D\u0935\u093E\u0930\u093E\ + \ \u0938\u0902\u091A\u093E\u0932\u093F\u0924 \u0939\u094B\u0924\u0940 \u0939\ + \u0948" + - input_choice_list: + A: "\u091F\u0947\u0932\u094B\u092E\u0947\u092F\u0930" + B: "\u0938\u0947\u0902\u091F\u094D\u0930\u094B\u092E\u0940\u092F\u0930\u094B\ + \u0902" + C: nucleosomes + D: "\u0938\u094D\u092A\u094D\u0932\u093F\u0938\u094B\u0938\u094B\u092E\u094D\ + \u0938" + input_correct_responses: + - B + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u093F\u0938\u092E\u0947\u0902 \u092E\ + \u093E\u0907\u091F\u094B\u0938\u093F\u0938 \u0914\u0930 \u0905\u0930\u094D\u0927\ + \u0938\u0942\u0924\u094D\u0930\u0940\u0935\u093F\u092D\u093E\u091C\u0928 \u092E\ + \u0947\u0902 \u0917\u0941\u0923\u0938\u0942\u0924\u094D\u0930\u094B\u0902 \u0915\ + \u0947 \u092A\u0943\u0925\u0915\u094D\u0915\u0930\u0923 \u0915\u0947 \u0932\u093F\ + \u090F \u0906\u0935\u0936\u094D\u092F\u0915 \u0921\u0940\u090F\u0928\u090F \u0905\ + \u0928\u0941\u0915\u094D\u0930\u092E \u0939\u094B\u0924\u0947 \u0939\u0948\u0902\ + ?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_biology +tag: mmlu_hi_llama_stem_tasks +task: mmlu_hi_llama_college_biology +task_alias: college_biology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_college_chemistry.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_college_chemistry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ee6ad5c7eb8d8fce3a82b526a2fc39f20222b3b1 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_college_chemistry.yaml @@ -0,0 +1,105 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0932\u0948\u0902\u0925\u0947\u0928\u093E\u0907\u0921 \u0924\u0924\u094D\ + \u0935\u094B\u0902 \u0915\u0947 \u0932\u093F\u090F \u0938\u092C\u0938\u0947\ + \ \u0938\u093E\u092E\u093E\u0928\u094D\u092F \u0911\u0915\u094D\u0938\u0940\ + \u0915\u0930\u0923 \u0905\u0935\u0938\u094D\u0925\u093E +3 \u0939\u0948\u0964" + B: "\u0932\u0948\u0902\u0925\u0947\u0928\u093E\u0907\u0921 \u0915\u0949\u092E\ + \u094D\u092A\u094D\u0932\u0947\u0915\u094D\u0938 \u092E\u0947\u0902 \u0905\ + \u0915\u094D\u0938\u0930 \u0909\u091A\u094D\u091A \u0938\u092E\u0928\u094D\ + \u0935\u092F \u0938\u0902\u0916\u094D\u092F\u093E (> 6) \u0939\u094B\u0924\ + \u0940 \u0939\u0948\u0964" + C: "\u0938\u092D\u0940 \u0932\u0948\u0902\u0925\u0947\u0928\u093E\u0907\u0921\ + \ \u0924\u0924\u094D\u0935 \u091C\u0932\u0940\u092F \u0905\u092E\u094D\u0932\ + \ \u0915\u0947 \u0938\u093E\u0925 \u092A\u094D\u0930\u0924\u093F\u0915\u094D\ + \u0930\u093F\u092F\u093E \u0915\u0930\u0915\u0947 \u0939\u093E\u0907\u0921\ + \u094D\u0930\u094B\u091C\u0928 \u092E\u0941\u0915\u094D\u0924 \u0915\u0930\ + \u0924\u0947 \u0939\u0948\u0902\u0964" + D: "\u0932\u0948\u0902\u0925\u0947\u0928\u093E\u0907\u0921 \u0924\u0924\u094D\ + \u0935\u094B\u0902 \u0915\u0940 \u092A\u0930\u092E\u093E\u0923\u0941 \u0924\ + \u094D\u0930\u093F\u091C\u094D\u092F\u093E \u0932\u093E \u0938\u0947 \u0932\ + \u0942 \u0924\u0915 \u0915\u0940 \u0905\u0935\u0927\u093F \u092E\u0947\u0902\ + \ \u092C\u0922\u093C\u0924\u0940 \u0939\u0948\u0964" + input_correct_responses: + - D + input_question: "\u0932\u0948\u0902\u0925\u0947\u0928\u093E\u0907\u0921 \u0924\ + \u0924\u094D\u0935\u094B\u0902 \u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\ + \u0902 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u092E\u0947\ + \u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u0915\u0925\u0928 \u0938\ + \u0924\u094D\u092F \u0928\u0939\u0940\u0902 \u0939\u0948?" + - input_choice_list: + A: "1.0 \u090F\u092E\u090F\u0932" + B: "10 \u090F\u092E\u090F\u0932" + C: "20 \u090F\u092E\u090F\u0932" + D: "50 \u090F\u092E\u090F\u0932" + input_correct_responses: + - C + input_question: "\u090A\u092A\u0930 \u0926\u093F\u0916\u093E\u0908 \u0917\u0908\ + \ \u092A\u094D\u0930\u0924\u093F\u0915\u094D\u0930\u093F\u092F\u093E \u0915\u0947\ + \ \u0905\u0928\u0941\u0938\u093E\u0930 HgO (\u092E\u094B\u0932\u0930 \u0926\u094D\ + \u0930\u0935\u094D\u092F\u092E\u093E\u0928 = 217 \u0917\u094D\u0930\u093E\u092E\ + ) \u0915\u093E 0.217 \u0917\u094D\u0930\u093E\u092E \u0928\u092E\u0942\u0928\ + \u093E \u0905\u0924\u093F\u0930\u093F\u0915\u094D\u0924 \u0906\u092F\u094B\u0921\ + \u093E\u0907\u0921 \u0906\u092F\u0928\u094B\u0902 \u0915\u0947 \u0938\u093E\u0925\ + \ \u092A\u094D\u0930\u0924\u093F\u0915\u094D\u0930\u093F\u092F\u093E \u0915\u0930\ + \u0924\u093E \u0939\u0948\u0964 \u092A\u0930\u093F\u0923\u093E\u092E\u0940 \u0938\ + \u092E\u093E\u0927\u093E\u0928 \u0915\u0947 \u0905\u0928\u0941\u092E\u093E\u092A\ + \u0928 \u0915\u0947 \u0932\u093F\u090F \u0938\u092E\u0924\u0941\u0932\u094D\u092F\ + \ \u092C\u093F\u0902\u0926\u0941 \u0924\u0915 \u092A\u0939\u0941\u0902\u091A\ + \u0928\u0947 \u0915\u0947 \u0932\u093F\u090F 0.10 \u090F\u092E \u090F\u091A\u0938\ + \u0940\u090F\u0932 \u0915\u0947 \u0915\u093F\u0924\u0928\u0947 \u090F\u092E\u090F\ + \u0932 \u0915\u0940 \u0906\u0935\u0936\u094D\u092F\u0915\u0924\u093E \u0939\u094B\ + \u0924\u0940 \u0939\u0948?" + - input_choice_list: + A: '4' + B: '3' + C: '6' + D: '24' + input_correct_responses: + - A + input_question: "13C-\u0932\u0947\u092C\u0932 \u092E\u093F\u0925\u093E\u0907\u0932\ + \ \u0930\u0947\u0921\u093F\u0915\u0932 (13CH3\u2022) \u0915\u0947 \u0938\u092E\ + \u093E\u0927\u093E\u0928 \u0915\u0947 \u0908\u092A\u0940\u0906\u0930 \u0938\u094D\ + \u092A\u0947\u0915\u094D\u091F\u094D\u0930\u092E \u092E\u0947\u0902 \u0932\u093E\ + \u0907\u0928\u094B\u0902 \u0915\u0940 \u0938\u0902\u0916\u094D\u092F\u093E \u0915\ + \u0940 \u092D\u0935\u093F\u0937\u094D\u092F\u0935\u093E\u0923\u0940 \u0915\u0930\ + \u0947\u0902, \u092F\u0939 \u092E\u093E\u0928\u0924\u0947 \u0939\u0941\u090F\ + \ \u0915\u093F \u0932\u093E\u0907\u0928\u0947\u0902 \u0913\u0935\u0930\u0932\ + \u0948\u092A \u0928\u0939\u0940\u0902 \u0939\u094B\u0924\u0940 \u0939\u0948\u0902\ + \u0964" + - input_choice_list: + A: "\u090F\u0915 \u0905\u092E\u094D\u0932" + B: "\u090F\u0915 \u0906\u0927\u093E\u0930" + C: "\u090F\u0915 \u0909\u0924\u094D\u092A\u094D\u0930\u0947\u0930\u0915" + D: "\u090F\u0915 \u0915\u092E \u0915\u0930\u0928\u0947 \u0935\u093E\u0932\u093E\ + \ \u090F\u091C\u0947\u0902\u091F" + input_correct_responses: + - D + input_question: "3 Cl\u2212(aq) + 4 CrO_4^2\u2212(aq) + 23 H+(aq) \u2192 3 HClO2(aq)\ + \ + 4 Cr3+(aq) + 10 H2O(l)\u0964 \u090A\u092A\u0930 \u0926\u093F\u0916\u093E\ + \u0908 \u0917\u0908 \u092A\u094D\u0930\u0924\u093F\u0915\u094D\u0930\u093F\u092F\ + \u093E \u092E\u0947\u0902, Cl\u2212(aq) \u0907\u0938 \u092A\u094D\u0930\u0915\ + \u093E\u0930 \u0935\u094D\u092F\u0935\u0939\u093E\u0930 \u0915\u0930\u0924\u093E\ + \ \u0939\u0948" + - input_choice_list: + A: PbH4 < SnH4 < GeH4 < SiH4 < CH4 + B: PbH4 < SnH4 < CH4 < GeH4 < SiH4 + C: CH4 <SiH4 < GeH4 < SnH4 < PbH4 + D: CH4 < PbH4 < GeH4 < SnH4 < SiH4 + input_correct_responses: + - A + input_question: "\u0928\u093F\u092E\u094D\u0928 \u092E\u0947\u0902 \u0938\u0947\ + \ \u0915\u094C\u0928 \u0938\u092E\u0942\u0939-14 \u0924\u0924\u094D\u0935\u094B\ + \u0902 \u0915\u0947 \u0939\u093E\u0907\u0921\u094D\u0930\u093E\u0907\u0921\u094B\ + \u0902 \u0915\u094B \u0924\u093E\u092A\u0940\u092F \u0938\u094D\u0925\u093F\u0930\ + \u0924\u093E \u0915\u0947 \u0915\u094D\u0930\u092E \u092E\u0947\u0902 \u0928\ + \u093F\u092E\u094D\u0928\u0924\u092E \u0938\u0947 \u0909\u091A\u094D\u091A\u0924\ + \u092E \u0924\u0915 \u0938\u0942\u091A\u0940\u092C\u0926\u094D\u0927 \u0915\u0930\ + \u0924\u093E \u0939\u0948?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_chemistry +tag: mmlu_hi_llama_stem_tasks +task: mmlu_hi_llama_college_chemistry +task_alias: college_chemistry diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_college_computer_science.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_college_computer_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6b2626771398f169d794aa777519d2fc3804df05 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_college_computer_science.yaml @@ -0,0 +1,198 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u090F*(\u0938\u0940 + \u0921\u0940)+ \u092C\u0940(\u0938\u0940 + \u0921\ + \u0940)" + B: "\u090F*(\u0938\u0940 + \u0921\u0940)* + \u092C\u0940(\u0938\u0940 + \u0921\ + \u0940)*" + C: "\u090F*(\u0938\u0940 + \u0921\u0940)+ \u092C\u0940*(\u0938\u0940 + \u0921\ + \u0940)" + D: "(\u090F + \u092C\u0940)*\u0938\u0940 +(\u090F + \u092C\u0940)*\u0921\u0940" + input_correct_responses: + - D + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u0930\u0947\ + \u0917\u0941\u0932\u0930 \u090F\u0915\u094D\u0938\u092A\u094D\u0930\u0947\u0936\ + \u0928 (\u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917 \u0915\u0947 \u0938\ + \u092E\u093E\u0928 \u0938\u0947\u091F \u0915\u093E \u0935\u0930\u094D\u0923\u0928\ + \ \u0915\u0930\u0924\u093E \u0939\u0948) (a* + b)*(c + d) \u0915\u0947 \u092C\ + \u0930\u093E\u092C\u0930 \u0939\u0948?" + - input_choice_list: + A: '5' + B: '6' + C: '7' + D: '8' + input_correct_responses: + - B + input_question: "\u090F\u0915 \u0928\u093F\u0936\u094D\u091A\u093F\u0924 \u092A\ + \u093E\u0907\u092A\u0932\u093E\u0907\u0928\u092F\u0941\u0915\u094D\u0924 \u0906\ + \u0930\u0906\u0908\u090F\u0938\u0938\u0940 \u092E\u0936\u0940\u0928 \u092E\u0947\ + \u0902 8 \u0938\u093E\u092E\u093E\u0928\u094D\u092F \u092A\u094D\u0930\u092F\ + \u094B\u091C\u0928 \u0930\u091C\u093F\u0938\u094D\u091F\u0930 R0, R1, \u0939\ + \u0948\u0902\u0964 . . , R7 \u0914\u0930 \u0928\u093F\u092E\u094D\u0928\u0932\ + \u093F\u0916\u093F\u0924 \u092A\u0930\u093F\u091A\u093E\u0932\u0928\u094B\u0902\ + \ \u0915\u093E \u0938\u092E\u0930\u094D\u0925\u0928 \u0915\u0930\u0924\u093E\ + \ \u0939\u0948\u0964 1, 2, \u0906\u0930\u0921\u0940 \u091C\u094B\u0921\u093C\ + \u0947\u0902 1 \u0915\u094B 2 \u092E\u0947\u0902 \u091C\u094B\u0921\u093C\u0947\ + \u0902 \u0914\u0930 \u092F\u094B\u0917 \u0915\u094B \u0906\u0930\u0921\u0940\ + \ \u092E\u0947\u0902 \u0921\u093E\u0932\u0947\u0902 \u090F\u092E\u092F\u0942\ + \u090F\u0932 1, 2, \u0906\u0930\u0921\u0940 1 \u0915\u094B 2 \u0938\u0947 \u0917\ + \u0941\u0923\u093E \u0915\u0930\u0947\u0902 \u0914\u0930 \u0909\u0924\u094D\u092A\ + \u093E\u0926 \u0915\u094B \u0906\u0930\u0921\u0940 \u092E\u0947\u0902 \u0921\ + \u093E\u0932\u0947\u0902 \u090F\u0915 \u0911\u092A\u0930\u0947\u0936\u0928 \u092E\ + \u0947\u0902 \u0906\u092E \u0924\u094C\u0930 \u092A\u0930 \u090F\u0915 \u091A\ + \u0915\u094D\u0930 \u0932\u0917\u0924\u093E \u0939\u0948; \u0939\u093E\u0932\ + \u093E\u0901\u0915\u093F, \u090F\u0915 \u0911\u092A\u0930\u0947\u0936\u0928\ + \ \u092E\u0947\u0902 \u0926\u094B \u091A\u0915\u094D\u0930 \u0932\u0917\u0924\ + \u0947 \u0939\u0948\u0902 \u092F\u0926\u093F \u092F\u0939 \u0911\u092A\u0930\ + \u0947\u0936\u0928 \u0905\u0928\u0941\u0915\u094D\u0930\u092E \u092E\u0947\u0902\ + \ \u0924\u0941\u0930\u0902\u0924 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\ + \u093F\u0924 \u0911\u092A\u0930\u0947\u0936\u0928 \u0915\u0947 \u0932\u093F\u090F\ + \ \u0906\u0935\u0936\u094D\u092F\u0915 \u092A\u0930\u093F\u0923\u093E\u092E\ + \ \u0909\u0924\u094D\u092A\u0928\u094D\u0928 \u0915\u0930\u0924\u093E \u0939\ + \u0948\u0964 \u0905\u092D\u093F\u0935\u094D\u092F\u0915\u094D\u0924\u093F AB\ + \ + ABC + BC \u092A\u0930 \u0935\u093F\u091A\u093E\u0930 \u0915\u0930\u0947\u0902\ + , \u091C\u0939\u093E\u0902 \u091A\u0930 A, B, C \u0930\u091C\u093F\u0938\u094D\ + \u091F\u0930 R0, R1, R2 \u092E\u0947\u0902 \u0938\u094D\u0925\u093F\u0924 \u0939\ + \u0948\u0902\u0964 \u092F\u0926\u093F \u0907\u0928 \u0924\u0940\u0928 \u0930\ + \u091C\u093F\u0938\u094D\u091F\u0930\u094B\u0902 \u0915\u0940 \u0938\u093E\u092E\ + \u0917\u094D\u0930\u0940 \u0915\u094B \u0938\u0902\u0936\u094B\u0927\u093F\u0924\ + \ \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u091C\u093E\u0928\u093E\ + \ \u091A\u093E\u0939\u093F\u090F, \u0924\u094B \u090F\u092C\u0940 + \u090F\u092C\ + \u0940\u0938\u0940 + \u092C\u0940\u0938\u0940 \u0915\u0947 \u092E\u0942\u0932\ + \u094D\u092F \u0915\u0940 \u0917\u0923\u0928\u093E \u0915\u0930\u0928\u0947\ + \ \u0935\u093E\u0932\u0947 \u0911\u092A\u0930\u0947\u0936\u0928 \u0905\u0928\ + \u0941\u0915\u094D\u0930\u092E \u0915\u0947 \u0932\u093F\u090F \u0906\u0935\u0936\ + \u094D\u092F\u0915 \u0918\u0921\u093C\u0940 \u091A\u0915\u094D\u0930\u094B\u0902\ + \ \u0915\u0940 \u0928\u094D\u092F\u0942\u0928\u0924\u092E \u0938\u0902\u0916\ + \u094D\u092F\u093E \u0915\u094D\u092F\u093E \u0939\u0948?" + - input_choice_list: + A: "\u092E\u0948\u0902 \u0915\u0947\u0935\u0932" + B: "\u0915\u0947\u0935\u0932 \u0926\u094D\u0935\u093F\u0924\u0940\u092F" + C: "\u0924\u0943\u0924\u0940\u092F \u0915\u0947\u0935\u0932" + D: "I, II, \u0914\u0930 III" + input_correct_responses: + - D + input_question: "\u0938\u093F\u0902\u0917\u0932\u091F\u0928 \u0921\u093F\u091C\ + \u093C\u093E\u0907\u0928 \u092A\u0948\u091F\u0930\u094D\u0928 \u0915\u093E \u0909\ + \u092A\u092F\u094B\u0917 \u092F\u0939 \u0917\u093E\u0930\u0902\u091F\u0940 \u0926\ + \u0947\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u093F\u092F\u093E\ + \ \u091C\u093E\u0924\u093E \u0939\u0948 \u0915\u093F \u0915\u093F\u0938\u0940\ + \ \u0935\u0930\u094D\u0917 \u0915\u093E \u0915\u0947\u0935\u0932 \u090F\u0915\ + \ \u0939\u0940 \u0909\u0926\u093E\u0939\u0930\u0923 \u0924\u094D\u0935\u0930\ + \u093F\u0924 \u0915\u093F\u092F\u093E \u091C\u093E \u0938\u0915\u0924\u093E\ + \ \u0939\u0948\u0964 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u0907\u0938\ + \ \u0921\u093F\u091C\u093C\u093E\u0907\u0928 \u092A\u0948\u091F\u0930\u094D\u0928\ + \ \u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902 \u0938\u0924\u094D\ + \u092F \u0939\u0948 (\u0939\u0948\u0902)? I. \u0938\u093F\u0902\u0917\u0932\u091F\ + \u0928 \u0935\u0930\u094D\u0917 \u0915\u0947 \u092A\u093E\u0938 \u0907\u0938\ + \u0915\u093E \u0909\u0926\u093E\u0939\u0930\u0923 \u092A\u094D\u0930\u0926\u093E\ + \u0928 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u090F\u0915\ + \ \u0938\u094D\u0925\u093F\u0930 \u092B\u093C\u0948\u0915\u094D\u091F\u0930\u0940\ + \ \u0935\u093F\u0927\u093F \u0939\u0948\u0964 \u0926\u094D\u0935\u093F\u0924\ + \u0940\u092F. \u0938\u093F\u0902\u0917\u0932\u091F\u0928 \u0935\u0930\u094D\u0917\ + \ \u0915\u093F\u0938\u0940 \u0905\u0928\u094D\u092F \u0935\u0930\u094D\u0917\ + \ \u0915\u093E \u0909\u092A\u0935\u0930\u094D\u0917 \u0939\u094B \u0938\u0915\ + \u0924\u093E \u0939\u0948\u0964 \u0924\u0943\u0924\u0940\u092F. \u0938\u093F\ + \u0902\u0917\u0932\u091F\u0928 \u0915\u094D\u0932\u093E\u0938 \u092E\u0947\u0902\ + \ \u090F\u0915 \u0928\u093F\u091C\u0940 \u0915\u0902\u0938\u094D\u091F\u094D\ + \u0930\u0915\u094D\u091F\u0930 \u0939\u0948\u0964" + - input_choice_list: + A: '5' + B: '6' + C: '7' + D: '9' + input_correct_responses: + - D + input_question: "\u090F\u0915 \u0915\u0902\u092A\u093E\u0907\u0932\u0930 \u0928\ + \u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u0905\u0938\u093E\u0907\ + \u0928\u092E\u0947\u0902\u091F \u0938\u094D\u091F\u0947\u091F\u092E\u0947\u0902\ + \u091F \u0915\u0947 \u0932\u093F\u090F \u0915\u094B\u0921 \u0909\u0924\u094D\ + \u092A\u0928\u094D\u0928 \u0915\u0930\u0924\u093E \u0939\u0948\u0964 \u091C\u0940\ + : = (\u090F + \u092C\u0940) * \u0938\u0940 - (\u0921\u0940 + \u0908) * \u090F\ + \u092B \u0932\u0915\u094D\u0937\u094D\u092F \u092E\u0936\u0940\u0928 \u092E\u0947\ + \u0902 \u090F\u0915 \u090F\u0915\u0932 \u0938\u0902\u091A\u093E\u092F\u0915\ + \ \u0914\u0930 \u090F\u0915 \u090F\u0915\u0932-\u092A\u0924\u093E \u0928\u093F\ + \u0930\u094D\u0926\u0947\u0936 \u0938\u0947\u091F \u0939\u094B\u0924\u093E \u0939\ + \u0948 \u091C\u093F\u0938\u092E\u0947\u0902 \u0928\u093F\u0930\u094D\u0926\u0947\ + \u0936 \u0932\u094B\u0921, \u0938\u094D\u091F\u094B\u0930, \u091C\u094B\u0921\ + \u093C\u0928\u093E, \u0918\u091F\u093E\u0928\u093E \u0914\u0930 \u0917\u0941\ + \u0923\u093E \u0915\u0930\u0928\u093E \u0936\u093E\u092E\u093F\u0932 \u0939\u094B\ + \u0924\u093E \u0939\u0948\u0964 \u0905\u0902\u0915\u0917\u0923\u093F\u0924\u0940\ + \u092F \u092A\u0930\u093F\u091A\u093E\u0932\u0928\u094B\u0902 \u0915\u0947 \u0932\ + \u093F\u090F, \u092C\u093E\u090F\u0902 \u0911\u092A\u0930\u0947\u0902\u0921\ + \ \u0915\u094B \u0938\u0902\u091A\u093E\u092F\u0915 \u0938\u0947 \u0932\u093F\ + \u092F\u093E \u091C\u093E\u0924\u093E \u0939\u0948 \u0914\u0930 \u092A\u0930\ + \u093F\u0923\u093E\u092E \u0938\u0902\u091A\u093E\u092F\u0915 \u092E\u0947\u0902\ + \ \u0926\u093F\u0916\u093E\u0908 \u0926\u0947\u0924\u093E \u0939\u0948\u0964\ + \ \u092A\u0930\u093F\u0923\u093E\u092E\u0940 \u0915\u094B\u0921 \u092E\u0947\ + \u0902 \u0928\u093F\u0930\u094D\u0926\u0947\u0936\u094B\u0902 \u0915\u0940 \u0928\ + \u094D\u092F\u0942\u0928\u0924\u092E \u0938\u0902\u092D\u0935 \u0938\u0902\u0916\ + \u094D\u092F\u093E \u0939\u0948" + - input_choice_list: + A: 1/50 + B: 1/27 + C: 1/25 + D: 2/27 + input_correct_responses: + - B + input_question: "\u090F\u0915 \u0915\u0902\u092A\u094D\u092F\u0942\u091F\u0930\ + \ \u0921\u093F\u091C\u093C\u093E\u0907\u0928 \u092A\u0930 \u0935\u093F\u091A\ + \u093E\u0930 \u0915\u0930\u0947\u0902 \u091C\u093F\u0938\u092E\u0947\u0902 \u0915\ + \u0908 \u092A\u094D\u0930\u094B\u0938\u0947\u0938\u0930, \u092A\u094D\u0930\u0924\ + \u094D\u092F\u0947\u0915 \u090F\u0915 \u0928\u093F\u091C\u0940 \u0915\u0948\u0936\ + \ \u092E\u0947\u092E\u094B\u0930\u0940 \u0915\u0947 \u0938\u093E\u0925, \u090F\ + \u0915 \u0939\u0940 \u092C\u0938 \u0915\u093E \u0909\u092A\u092F\u094B\u0917\ + \ \u0915\u0930\u0915\u0947 \u0935\u0948\u0936\u094D\u0935\u093F\u0915 \u092E\ + \u0947\u092E\u094B\u0930\u0940 \u0938\u093E\u091D\u093E \u0915\u0930\u0924\u0947\ + \ \u0939\u0948\u0902\u0964 \u092F\u0939 \u092C\u0938 \u092E\u0939\u0924\u094D\ + \u0935\u092A\u0942\u0930\u094D\u0923 \u0938\u093F\u0938\u094D\u091F\u092E \u0938\ + \u0902\u0938\u093E\u0927\u0928 \u0939\u0948. \u092A\u094D\u0930\u0924\u094D\u092F\ + \u0947\u0915 \u092A\u094D\u0930\u094B\u0938\u0947\u0938\u0930 \u092A\u094D\u0930\ + \u0924\u094D\u092F\u0947\u0915 500 \u0928\u0948\u0928\u094B\u0938\u0947\u0915\ + \u0902\u0921 \u092E\u0947\u0902 \u090F\u0915 \u0928\u093F\u0930\u094D\u0926\u0947\ + \u0936 \u0928\u093F\u0937\u094D\u092A\u093E\u0926\u093F\u0924 \u0915\u0930 \u0938\ + \u0915\u0924\u093E \u0939\u0948, \u091C\u092C \u0924\u0915 \u0915\u093F \u092E\ + \u0947\u092E\u094B\u0930\u0940 \u0938\u0902\u0926\u0930\u094D\u092D \u0909\u0938\ + \u0915\u0947 \u0938\u094D\u0925\u093E\u0928\u0940\u092F \u0915\u0948\u0936 \u0938\ + \u0947 \u0938\u0902\u0924\u0941\u0937\u094D\u091F \u0939\u0948\u0902\u0964 \u091C\ + \u092C \u0915\u0948\u0936 \u092E\u093F\u0938 \u0939\u094B\u0924\u093E \u0939\ + \u0948, \u0924\u094B \u092A\u094D\u0930\u094B\u0938\u0947\u0938\u0930 \u0905\ + \u0924\u093F\u0930\u093F\u0915\u094D\u0924 2,000 \u0928\u0948\u0928\u094B\u0938\ + \u0947\u0915\u0902\u0921 \u0915\u0947 \u0932\u093F\u090F \u0935\u093F\u0932\u0902\ + \u092C\u093F\u0924 \u0939\u094B \u091C\u093E\u0924\u093E \u0939\u0948\u0964\ + \ \u0907\u0938 \u0905\u0924\u093F\u0930\u093F\u0915\u094D\u0924 \u0926\u0947\ + \u0930\u0940 \u0915\u0947 \u0906\u0927\u0947 \u0938\u092E\u092F \u0915\u0947\ + \ \u0926\u094C\u0930\u093E\u0928, \u092C\u0938 \u0915\u0948\u0936 \u092E\u093F\ + \u0938 \u0915\u0940 \u0938\u0947\u0935\u093E \u0915\u0947 \u0932\u093F\u090F\ + \ \u0938\u092E\u0930\u094D\u092A\u093F\u0924 \u0939\u0948\u0964 \u0905\u0928\ + \u094D\u092F \u0906\u0927\u0947 \u0915\u0947 \u0926\u094C\u0930\u093E\u0928\ + , \u092A\u094D\u0930\u094B\u0938\u0947\u0938\u0930 \u091C\u093E\u0930\u0940\ + \ \u0928\u0939\u0940\u0902 \u0930\u0939 \u0938\u0915\u0924\u093E \u0939\u0948\ + , \u0932\u0947\u0915\u093F\u0928 \u092C\u0938 \u0905\u0928\u094D\u092F \u092A\ + \u094D\u0930\u094B\u0938\u0947\u0938\u0930 \u0938\u0947 \u0938\u0947\u0935\u093E\ + \ \u0905\u0928\u0941\u0930\u094B\u0927\u094B\u0902 \u0915\u0947 \u0932\u093F\ + \u090F \u0928\u093F\u0903\u0936\u0941\u0932\u094D\u0915 \u0939\u0948\u0964 \u0914\ + \u0938\u0924\u0928, \u092A\u094D\u0930\u0924\u094D\u092F\u0947\u0915 \u0928\u093F\ + \u0930\u094D\u0926\u0947\u0936 \u0915\u0947 \u0932\u093F\u090F 2 \u092E\u0947\ + \u092E\u094B\u0930\u0940 \u0938\u0902\u0926\u0930\u094D\u092D\u094B\u0902 \u0915\ + \u0940 \u0906\u0935\u0936\u094D\u092F\u0915\u0924\u093E \u0939\u094B\u0924\u0940\ + \ \u0939\u0948\u0964 \u0914\u0938\u0924\u0928, 1 \u092A\u094D\u0930\u0924\u093F\ + \u0936\u0924 \u0938\u0902\u0926\u0930\u094D\u092D\u094B\u0902 \u092E\u0947\u0902\ + \ \u0915\u0948\u0936 \u092E\u093F\u0938 \u0939\u094B \u091C\u093E\u0924\u093E\ + \ \u0939\u0948\u0964 \u0905\u0928\u094D\u092F \u092A\u094D\u0930\u094B\u0938\ + \u0947\u0938\u0930\u094B\u0902 \u0938\u0947 \u092A\u094D\u0930\u0924\u093F\u0938\ + \u094D\u092A\u0930\u094D\u0927\u093E \u0915\u0947 \u0915\u093E\u0930\u0923 \u0939\ + \u094B\u0928\u0947 \u0935\u093E\u0932\u0940 \u0926\u0947\u0930\u0940 \u0915\u094B\ + \ \u0928\u091C\u093C\u0930\u0905\u0902\u0926\u093E\u091C\u093C \u0915\u0930\u0924\ + \u0947 \u0939\u0941\u090F, \u090F\u0915 \u090F\u0915\u0932 \u092A\u094D\u0930\ + \u094B\u0938\u0947\u0938\u0930 \u092C\u0938 \u0915\u0940 \u0915\u094D\u0937\u092E\ + \u0924\u093E \u0915\u0947 \u0915\u093F\u0924\u0928\u0947 \u0905\u0928\u0941\u092A\ + \u093E\u0924 \u0915\u0940 \u0916\u092A\u0924 \u0915\u0930\u0947\u0917\u093E?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_computer_science +tag: mmlu_hi_llama_stem_tasks +task: mmlu_hi_llama_college_computer_science +task_alias: college_computer_science diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_college_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_college_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ad9b7506536d16f611f289a0137edb7212ed32de --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_college_mathematics.yaml @@ -0,0 +1,110 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u090F\u0938\u091F\u0940 = 0" + B: "\u090F\u0938\u091F\u0940 = \u091F\u0940" + C: "\u090F\u0938\u091F\u0940 = \u091F\u0940\u090F\u0938" + D: "ST - TS \u0938\u094D\u0935\u092F\u0902 V \u0915\u093E \u092A\u0939\u091A\ + \u093E\u0928 \u092E\u093E\u0928\u091A\u093F\u0924\u094D\u0930 \u0939\u0948\ + \u0964" + input_correct_responses: + - D + input_question: "\u092E\u093E\u0928 \u0932\u0940\u091C\u093F\u090F V \u0938\u092D\ + \u0940 \u0935\u093E\u0938\u094D\u0924\u0935\u093F\u0915 \u092C\u0939\u0941\u092A\ + \u0926\u094B\u0902 p(x) \u0915\u093E \u0938\u092E\u0941\u091A\u094D\u091A\u092F\ + \ \u0939\u0948\u0964 \u092E\u093E\u0928 \u0932\u0940\u091C\u093F\u090F \u0915\ + \u093F \u092A\u0930\u093F\u0935\u0930\u094D\u0924\u0928 T, S \u0915\u094B V\ + \ \u092A\u0930 T:p(x) -> xp(x) \u0914\u0930 S:p(x) -> p'(x) = d/dx\ + \ p(x) \u0926\u094D\u0935\u093E\u0930\u093E \u092A\u0930\u093F\u092D\u093E\u0937\ + \u093F\u0924 \u0915\u093F\u092F\u093E \u0917\u092F\u093E \u0939\u0948, \u0914\ + \u0930 (ST) \u0915\u0940 \u0935\u094D\u092F\u093E\u0916\u094D\u092F\u093E \u0915\ + \u0940 \u0917\u0908 \u0939\u0948\u0964 (p(x)) as S(T(p(x))). \u0928\u093F\u092E\ + \u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\ + \u094C\u0928 \u0938\u093E \u0938\u0939\u0940 \u0939\u0948?" + - input_choice_list: + A: '2' + B: "2 - \u0908^-2" + C: "2 + \u0908^-2" + D: "2 + \u0908^-4" + input_correct_responses: + - D + input_question: "\u090F\u0915 \u091F\u0948\u0902\u0915 \u092E\u0947\u0902 \u0936\ + \u0941\u0930\u0942 \u092E\u0947\u0902 100 \u0932\u0940\u091F\u0930 \u092A\u093E\ + \u0928\u0940 \u092E\u0947\u0902 3 \u0917\u094D\u0930\u093E\u092E \u0928\u092E\ + \u0915 \u0915\u093E \u0918\u094B\u0932 \u092E\u093F\u0932\u093E\u092F\u093E\ + \ \u091C\u093E\u0924\u093E \u0939\u0948\u0964 \u092A\u094D\u0930\u0924\u093F\ + \ \u0932\u0940\u091F\u0930 \u092A\u093E\u0928\u0940 \u092E\u0947\u0902 0.02\ + \ \u0917\u094D\u0930\u093E\u092E \u0928\u092E\u0915 \u092F\u0941\u0915\u094D\ + \u0924 \u0928\u092E\u0915 \u0915\u0947 \u0918\u094B\u0932 \u0915\u094B 4 \u0932\ + \u0940\u091F\u0930 \u092A\u094D\u0930\u0924\u093F \u092E\u093F\u0928\u091F \u0915\ + \u0940 \u0926\u0930 \u0938\u0947 \u091F\u0948\u0902\u0915 \u092E\u0947\u0902\ + \ \u091B\u093F\u0921\u093C\u0915\u093E \u091C\u093E\u0924\u093E \u0939\u0948\ + \u0964 \u091B\u093F\u0921\u093C\u0915\u093E\u0935 \u0915\u093F\u092F\u093E \u0917\ + \u092F\u093E \u0918\u094B\u0932 \u0932\u0917\u093E\u0924\u093E\u0930 \u091F\u0948\ + \u0902\u0915 \u092E\u0947\u0902 \u0928\u092E\u0915 \u0915\u0947 \u0918\u094B\ + \u0932 \u0915\u0947 \u0938\u093E\u0925 \u092E\u093F\u0932\u093E\u092F\u093E\ + \ \u091C\u093E\u0924\u093E \u0939\u0948, \u0914\u0930 \u092E\u093F\u0936\u094D\ + \u0930\u0923 4 \u0932\u0940\u091F\u0930 \u092A\u094D\u0930\u0924\u093F \u092E\ + \u093F\u0928\u091F \u0915\u0940 \u0926\u0930 \u0938\u0947 \u091F\u0948\u0902\ + \u0915 \u0938\u0947 \u092C\u093E\u0939\u0930 \u092C\u0939\u0924\u093E \u0939\ + \u0948\u0964 \u092F\u0926\u093F \u092E\u093F\u0936\u094D\u0930\u0923 \u0924\u093E\ + \u0924\u094D\u0915\u093E\u0932\u093F\u0915 \u0939\u0948, \u0924\u094B 100 \u092E\ + \u093F\u0928\u091F \u092C\u0940\u0924 \u091C\u093E\u0928\u0947 \u0915\u0947\ + \ \u092C\u093E\u0926 \u091F\u0948\u0902\u0915 \u092E\u0947\u0902 \u0915\u093F\ + \u0924\u0928\u0947 \u0917\u094D\u0930\u093E\u092E \u0928\u092E\u0915 \u0939\u0948\ + ?" + - input_choice_list: + A: "\u092E\u0948\u0902 \u0915\u0947\u0935\u0932" + B: "\u0915\u0947\u0935\u0932 \u0926\u094D\u0935\u093F\u0924\u0940\u092F" + C: "\u0924\u0943\u0924\u0940\u092F \u0915\u0947\u0935\u0932" + D: "\u0915\u0947\u0935\u0932 II \u0914\u0930 III" + input_correct_responses: + - B + input_question: "\u092E\u093E\u0928 \u0932\u0940\u091C\u093F\u090F A \u090F\u0915\ + \ \u0935\u093E\u0938\u094D\u0924\u0935\u093F\u0915 2x2 \u092E\u0948\u091F\u094D\ + \u0930\u093F\u0915\u094D\u0938 \u0939\u0948\u0964 \u0928\u093F\u092E\u094D\u0928\ + \u0932\u093F\u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928\ + \ \u0938\u093E \u0915\u0925\u0928 \u0938\u0924\u094D\u092F \u0939\u094B\u0928\ + \u093E \u091A\u093E\u0939\u093F\u090F? I. A^2 \u0915\u0940 \u0938\u092D\u0940\ + \ \u092A\u094D\u0930\u0935\u093F\u0937\u094D\u091F\u093F\u092F\u093E\u0901 \u0905\ + \u090B\u0923\u093E\u0924\u094D\u092E\u0915 \u0939\u0948\u0902\u0964 \u0926\u094D\ + \u0935\u093F\u0924\u0940\u092F. A^2 \u0915\u093E \u0928\u093F\u0930\u094D\u0927\ + \u093E\u0930\u0915 \u0905\u090B\u0923\u093E\u0924\u094D\u092E\u0915 \u0939\u0948\ + \u0964 \u0924\u0943\u0924\u0940\u092F. \u092F\u0926\u093F A \u0915\u0947 \u0926\ + \u094B \u0905\u0932\u0917-\u0905\u0932\u0917 eigenvalues \u0939\u0948\u0902\ + , \u0924\u094B A^2 \u0915\u0947 \u092D\u0940 \u0926\u094B \u0905\u0932\u0917\ + -\u0905\u0932\u0917 eigenvalues \u0939\u0948\u0902\u0964" + - input_choice_list: + A: '-11' + B: '0' + C: '11' + D: 33/2 + input_correct_responses: + - C + input_question: "\u092E\u093E\u0928 \u0932\u0940\u091C\u093F\u090F \u0915\u093F\ + \ \u0938\u092D\u0940 \u0935\u093E\u0938\u094D\u0924\u0935\u093F\u0915 x \u0915\ + \u0947 \u0932\u093F\u090F f(1 + x) = f(x) \u0939\u0948\u0964 \u092F\u0926\u093F\ + \ f \u090F\u0915 \u092C\u0939\u0941\u092A\u0926 \u0939\u0948 \u0914\u0930 f(5)\ + \ = 11 \u0939\u0948, \u0924\u094B f(15/2)" + - input_choice_list: + A: '-5' + B: '-4' + C: '-3' + D: '-2' + input_correct_responses: + - B + input_question: "\u092E\u093E\u0928 \u0932\u0940\u091C\u093F\u090F \u0915\u093F\ + \ \u092A\u0942\u0930\u094D\u0923\u093E\u0902\u0915\u094B\u0902 (m, n) \u0915\ + \u0947 \u0938\u092D\u0940 \u0915\u094D\u0930\u092E\u093F\u0924 \u092F\u0941\u0917\ + \u094D\u092E\u094B\u0902 \u0915\u093E \u0938\u092E\u0941\u091A\u094D\u091A\u092F\ + \ A \u0907\u0938 \u092A\u094D\u0930\u0915\u093E\u0930 \u0939\u0948 \u0915\u093F\ + \ 7m + 12n = 22 \u0939\u0948\u0964 \u0938\u092E\u0941\u091A\u094D\u091A\u092F\ + \ B = {m + n : (m, n) \\in A} \u092E\u0947\u0902 \u0938\u092C\u0938\u0947 \u092C\ + \u0921\u093C\u0940 \u090B\u0923\u093E\u0924\u094D\u092E\u0915 \u0938\u0902\u0916\ + \u094D\u092F\u093E \u0915\u094D\u092F\u093E \u0939\u0948?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_mathematics +tag: mmlu_hi_llama_stem_tasks +task: mmlu_hi_llama_college_mathematics +task_alias: college_mathematics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_college_medicine.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_college_medicine.yaml new file mode 100644 index 0000000000000000000000000000000000000000..deff8b37f4bd37ac12bc29269fdc0c60eea4e80f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_college_medicine.yaml @@ -0,0 +1,132 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "GLUT4 \u0928\u093E\u092E\u0915 \u092A\u094D\u0930\u094B\u091F\u0940\u0928\ + \ \u091F\u094D\u0930\u093E\u0902\u0938\u092A\u094B\u0930\u094D\u091F\u0930\ + \u094B\u0902 \u0915\u0947 \u092E\u093E\u0927\u094D\u092F\u092E \u0938\u0947\ + \u0964" + B: "\u0915\u0947\u0935\u0932 \u0907\u0902\u0938\u0941\u0932\u093F\u0928 \u0915\ + \u0940 \u0909\u092A\u0938\u094D\u0925\u093F\u0924\u093F \u092E\u0947\u0902\ + ." + C: "\u0939\u0947\u0915\u094D\u0938\u094B\u0915\u093E\u0907\u0928\u0947\u091C\ + \ \u0915\u0947 \u092E\u093E\u0927\u094D\u092F\u092E \u0938\u0947\u0964" + D: "\u092E\u094B\u0928\u094B\u0915\u093E\u0930\u094D\u092C\u093F\u0932\u093F\ + \u0915 \u090F\u0938\u093F\u0921 \u091F\u094D\u0930\u093E\u0902\u0938\u092A\ + \u094B\u0930\u094D\u091F\u0930\u094B\u0902 \u0915\u0947 \u092E\u093E\u0927\ + \u094D\u092F\u092E \u0938\u0947\u0964" + input_correct_responses: + - A + input_question: "\u0917\u094D\u0932\u0942\u0915\u094B\u091C \u0915\u094B \u092E\ + \u093E\u0902\u0938\u092A\u0947\u0936\u0940 \u0915\u094B\u0936\u093F\u0915\u093E\ + \ \u092E\u0947\u0902 \u0932\u0947 \u091C\u093E\u092F\u093E \u091C\u093E\u0924\ + \u093E \u0939\u0948:" + - input_choice_list: + A: "\u092E\u093E\u0902\u0938\u092A\u0947\u0936\u0940 \u0917\u094D\u0932\u093E\ + \u0907\u0915\u094B\u091C\u0928 \u090F\u0902\u091C\u093E\u0907\u092E\u0947\u091F\ + \u093F\u0915 \u0930\u0942\u092A \u0938\u0947 \u0917\u094D\u0932\u0942\u0915\ + \u094B\u091C-1-\u092B\u0949\u0938\u094D\u092B\u0947\u091F \u092E\u0947\u0902\ + \ \u091F\u0942\u091F \u091C\u093E\u0924\u093E \u0939\u0948" + B: "\u0938\u0902\u092D\u094D\u0930\u093E\u0902\u0924 \u0927\u0940\u0930\u091C\ + \ \u0927\u093E\u0935\u0915\u094B\u0902 \u0915\u0947 \u092A\u0948\u0930 \u0915\ + \u0940 \u092E\u093E\u0902\u0938\u092A\u0947\u0936\u093F\u092F\u094B\u0902\ + \ \u092E\u0947\u0902 \u091F\u093E\u0907\u092A I \u092B\u093E\u0907\u092C\u0930\ + \ \u0915\u093E \u0909\u091A\u094D\u091A \u0905\u0928\u0941\u092A\u093E\u0924\ + \ \u0939\u094B\u0924\u093E \u0939\u0948" + C: "\u0932\u093F\u0935\u0930 \u0917\u094D\u0932\u093E\u0907\u0915\u094B\u091C\ + \u0928 \u0930\u0915\u094D\u0924 \u0917\u094D\u0932\u0942\u0915\u094B\u091C\ + \ \u090F\u0915\u093E\u0917\u094D\u0930\u0924\u093E \u0915\u0947 \u0930\u0916\ + \u0930\u0916\u093E\u0935 \u092E\u0947\u0902 \u092E\u0939\u0924\u094D\u0935\ + \u092A\u0942\u0930\u094D\u0923 \u0939\u0948" + D: "\u0907\u0902\u0938\u0941\u0932\u093F\u0928 \u0936\u0930\u0940\u0930 \u0915\ + \u0947 \u0938\u092D\u0940 \u090A\u0924\u0915\u094B\u0902 \u0926\u094D\u0935\ + \u093E\u0930\u093E \u0917\u094D\u0932\u0942\u0915\u094B\u091C \u0917\u094D\ + \u0930\u0939\u0923 \u0915\u094B \u092C\u0922\u093C\u093E\u0935\u093E \u0926\ + \u0947\u0924\u093E \u0939\u0948" + input_correct_responses: + - D + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u0915\u0925\ + \u0928 \u0938\u0924\u094D\u092F \u0928\u0939\u0940\u0902 \u0939\u0948?" + - input_choice_list: + A: "\u092E\u093E\u0924\u0943 \u092A\u0915\u094D\u0937 \u0915\u0947 \u0938\u092D\ + \u0940 \u0935\u0902\u0936\u091C\u094B\u0902 \u0915\u094B \u0935\u093F\u0915\ + \u093E\u0930 \u0939\u094B\u0917\u093E\u0964" + B: "\u0907\u0938 \u092A\u0930\u093F\u0935\u093E\u0930 \u092E\u0947\u0902 \u092A\ + \u0941\u0930\u0941\u0937\u094B\u0902 \u0915\u0940 \u0924\u0941\u0932\u0928\ + \u093E \u092E\u0947\u0902 \u092E\u0939\u093F\u0932\u093E\u090F\u0902 \u0932\ + \u0917\u092D\u0917 \u0926\u094B\u0917\u0941\u0928\u0940 \u092A\u094D\u0930\ + \u092D\u093E\u0935\u093F\u0924 \u0939\u094B\u0902\u0917\u0940\u0964" + C: "\u092A\u094D\u0930\u092D\u093E\u0935\u093F\u0924 \u092A\u0941\u0930\u0941\ + \u0937 \u0915\u0940 \u0938\u092D\u0940 \u092C\u0947\u091F\u093F\u092F\u093E\ + \u0902 \u092A\u094D\u0930\u092D\u093E\u0935\u093F\u0924 \u0939\u094B\u0902\ + \u0917\u0940\u0964" + D: "\u092A\u094D\u0930\u092D\u093E\u0935\u093F\u0924 \u092A\u0941\u0930\u0941\ + \u0937\u094B\u0902 \u0914\u0930 \u092E\u0939\u093F\u0932\u093E\u0913\u0902\ + \ \u0915\u093E \u0938\u092E\u093E\u0928 \u0935\u093F\u0924\u0930\u0923 \u0939\ + \u094B\u0917\u093E\u0964" + input_correct_responses: + - C + input_question: "\u0928\u0935\u091C\u093E\u0924 \u0936\u093F\u0936\u0941 \u0915\ + \u0947 \u0906\u0928\u0941\u0935\u0902\u0936\u093F\u0915 \u092A\u0930\u0940\u0915\ + \u094D\u0937\u0923 \u092E\u0947\u0902, \u090F\u0915 \u0926\u0941\u0930\u094D\ + \u0932\u092D \u0906\u0928\u0941\u0935\u0902\u0936\u093F\u0915 \u0935\u093F\u0915\ + \u093E\u0930 \u092A\u093E\u092F\u093E \u091C\u093E\u0924\u093E \u0939\u0948\ + \ \u091C\u093F\u0938\u092E\u0947\u0902 \u090F\u0915\u094D\u0938-\u0932\u093F\ + \u0902\u0915\u094D\u0921 \u0930\u093F\u0938\u0947\u0938\u093F\u0935 \u091F\u094D\ + \u0930\u093E\u0902\u0938\u092E\u093F\u0936\u0928 \u0939\u094B\u0924\u093E \u0939\ + \u0948\u0964 \u0907\u0938 \u0935\u093F\u0915\u093E\u0930 \u0915\u0940 \u0935\ + \u0902\u0936\u093E\u0935\u0932\u0940 \u0915\u0947 \u0938\u0902\u092C\u0902\u0927\ + \ \u092E\u0947\u0902 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u0915\u0925\ + \u0928 \u0938\u0902\u092D\u0935\u0924\u0903 \u0938\u0924\u094D\u092F \u0939\u0948\ + ?" + - input_choice_list: + A: "\u0924\u093E\u092A\u092E\u093E\u0928 \u092C\u0922\u093C \u0930\u0939\u093E\ + \ \u0939\u0948, \u0917\u0948\u0938 \u0915\u0947 \u092E\u094B\u0932 \u092C\u0922\ + \u093C \u0930\u0939\u0947 \u0939\u0948\u0902" + B: "\u0924\u093E\u092A\u092E\u093E\u0928 \u092C\u0922\u093C \u0930\u0939\u093E\ + \ \u0939\u0948, \u0906\u092F\u0924\u0928 \u092C\u0922\u093C \u0930\u0939\u093E\ + \ \u0939\u0948" + C: "\u0918\u091F\u0924\u093E \u0906\u092F\u0924\u0928, \u0918\u091F\u0924\u093E\ + \ \u0924\u093E\u092A\u092E\u093E\u0928" + D: "\u0917\u0948\u0938 \u0915\u0947 \u0918\u091F\u0924\u0947 \u092E\u094B\u0932\ + , \u092C\u0922\u093C\u0924\u0940 \u092E\u093E\u0924\u094D\u0930\u093E" + input_correct_responses: + - A + input_question: "\u090F\u0915 \u0939\u093E\u0908 \u0938\u094D\u0915\u0942\u0932\ + \ \u0935\u093F\u091C\u094D\u091E\u093E\u0928 \u0936\u093F\u0915\u094D\u0937\u0915\ + \ 1 \u0932\u0940\u091F\u0930 \u0915\u0940 \u092C\u094B\u0924\u0932 \u092E\u0947\ + \u0902 \u0936\u0941\u0926\u094D\u0927 \u0928\u093E\u0907\u091F\u094D\u0930\u094B\ + \u091C\u0928 \u092D\u0930\u0924\u093E \u0939\u0948 \u0914\u0930 \u0922\u0915\ + \u094D\u0915\u0928 \u092C\u0902\u0926 \u0915\u0930 \u0926\u0947\u0924\u093E\ + \ \u0939\u0948\u0964 \u0926\u092C\u093E\u0935 1.70 \u090F\u091F\u0940\u090F\u092E\ + \ \u0939\u0948, \u0914\u0930 \u0915\u092E\u0930\u0947 \u0915\u093E \u0924\u093E\ + \u092A\u092E\u093E\u0928 25 \u0921\u093F\u0917\u094D\u0930\u0940 \u0938\u0947\ + \u0932\u094D\u0938\u093F\u092F\u0938 \u0939\u0948\u0964 \u092F\u0926\u093F \u0905\ + \u0928\u094D\u092F \u0938\u092D\u0940 \u091A\u0930 \u0938\u094D\u0925\u093F\u0930\ + \ \u0930\u0916\u0947 \u091C\u093E\u090F\u0902 \u0924\u094B \u0915\u094C\u0928\ + \ \u0938\u0947 \u0926\u094B \u091A\u0930 \u0938\u093F\u0938\u094D\u091F\u092E\ + \ \u0915\u0947 \u0926\u092C\u093E\u0935 \u0915\u094B \u092C\u0922\u093C\u093E\ + \u090F\u0902\u0917\u0947?" + - input_choice_list: + A: "\u092E\u093E\u0902\u0938\u092A\u0947\u0936\u093F\u092F\u094B\u0902 \u092E\ + \u0947\u0902 \u0915\u092E\u091C\u094B\u0930\u0940\u0964" + B: "\u0936\u0930\u0940\u0930 \u0915\u0947 \u0926\u094D\u0930\u0935\u094D\u092F\ + \u092E\u093E\u0928 \u092E\u0947\u0902 \u0935\u0943\u0926\u094D\u0927\u093F\ + ." + C: "\u092E\u093E\u0902\u0938\u092A\u0947\u0936\u093F\u092F\u094B\u0902 \u092E\ + \u0947\u0902 \u0910\u0902\u0920\u0928\u0964" + D: "\u0907\u0932\u0947\u0915\u094D\u091F\u094D\u0930\u094B\u0932\u093E\u0907\ + \u091F\u094D\u0938 \u0915\u093E \u0928\u0941\u0915\u0938\u093E\u0928." + input_correct_responses: + - B + input_question: "\u0915\u094D\u0930\u093F\u090F\u091F\u093F\u0928 \u0905\u0928\ + \u0941\u092A\u0942\u0930\u0923 \u0915\u093E \u0905\u092A\u0947\u0915\u094D\u0937\ + \u093F\u0924 \u0926\u0941\u0937\u094D\u092A\u094D\u0930\u092D\u093E\u0935 \u0939\ + \u0948:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_medicine +tag: mmlu_hi_llama_other_tasks +task: mmlu_hi_llama_college_medicine +task_alias: college_medicine diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_college_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_college_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c934868089083abe4961fd586a9e099af85eb656 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_college_physics.yaml @@ -0,0 +1,109 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: '4' + B: '5' + C: '6' + D: '20' + input_correct_responses: + - A + input_question: "\u090F\u0915 \u0905\u092A\u0935\u0930\u094D\u0924\u0915 \u0926\ + \u0942\u0930\u092C\u0940\u0928 \u092E\u0947\u0902 \u0926\u094B \u0905\u092D\u093F\ + \u0938\u093E\u0930\u0940 \u0932\u0947\u0902\u0938 \u0939\u094B\u0924\u0947 \u0939\ + \u0948\u0902 \u091C\u094B 100 \u0938\u0947\u092E\u0940 \u0915\u0940 \u0926\u0942\ + \u0930\u0940 \u092A\u0930 \u0905\u0932\u0917 \u0939\u094B\u0924\u0947 \u0939\ + \u0948\u0902\u0964 \u0906\u0908-\u092A\u0940\u0938 \u0932\u0947\u0902\u0938\ + \ \u0915\u0940 \u092B\u094B\u0915\u0932 \u0932\u0902\u092C\u093E\u0908 20 \u0938\ + \u0947\u092E\u0940 \u0939\u0948\u0964 \u0926\u0942\u0930\u092C\u0940\u0928 \u0915\ + \u093E \u0915\u094B\u0923\u0940\u092F \u0906\u0935\u0930\u094D\u0927\u0928 \u0939\ + \u0948" + - input_choice_list: + A: "\u0938\u094D\u0925\u093F\u0930 \u0924\u093E\u092A\u092E\u093E\u0928" + B: "\u0932\u0917\u093E\u0924\u093E\u0930 \u092E\u093E\u0924\u094D\u0930\u093E" + C: "\u0938\u094D\u0925\u093F\u0930 \u0924\u093E\u092A\u092E\u093E\u0928" + D: "\u0938\u094D\u0925\u093F\u0930\u094B\u0937\u094D\u092E" + input_correct_responses: + - B + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u093F\u0938 \u0925\u0930\u094D\u092E\ + \u094B\u0921\u093E\u092F\u0928\u093E\u092E\u093F\u0915 \u092A\u094D\u0930\u0915\ + \u094D\u0930\u093F\u092F\u093E \u0915\u0947 \u0932\u093F\u090F \u090F\u0915\ + \ \u0906\u0926\u0930\u094D\u0936 \u0917\u0948\u0938 \u0915\u0940 \u0906\u0902\ + \u0924\u0930\u093F\u0915 \u090A\u0930\u094D\u091C\u093E \u092E\u0947\u0902 \u0935\ + \u0943\u0926\u094D\u0927\u093F \u0917\u0948\u0938 \u092E\u0947\u0902 \u091C\u094B\ + \u0921\u093C\u0940 \u0917\u0908 \u090A\u0937\u094D\u092E\u093E \u0915\u0947\ + \ \u092C\u0930\u093E\u092C\u0930 \u0939\u094B\u0924\u0940 \u0939\u0948?" + - input_choice_list: + A: "2.4 \u0935\u0940" + B: "3.3 \u0935\u0940" + C: "4.5 \u0935\u0940" + D: "5.7 \u0935\u0940" + input_correct_responses: + - A + input_question: "\u0932\u0902\u092C\u093E\u0908 2L \u0914\u0930 \u0915\u094D\u0930\ + \u0949\u0938-\u0938\u0947\u0915\u094D\u0936\u0928\u0932 \u0915\u094D\u0937\u0947\ + \u0924\u094D\u0930 A \u0915\u0947 \u090F\u0915 \u0928\u093E\u0907\u0915\u094D\ + \u0930\u094B\u092E \u0924\u093E\u0930 \u0915\u093E \u090F\u0915 \u0938\u093F\ + \u0930\u093E \u0932\u0902\u092C\u093E\u0908 L \u0914\u0930 \u0915\u094D\u0930\ + \u0949\u0938-\u0905\u0928\u0941\u092D\u093E\u0917\u0940\u092F \u0915\u094D\u0937\ + \u0947\u0924\u094D\u0930 2A \u0915\u0947 \u0926\u0942\u0938\u0930\u0947 \u0928\ + \u093E\u0907\u0915\u094D\u0930\u094B\u092E \u0924\u093E\u0930 \u0915\u0947 \u0938\ + \u093F\u0930\u0947 \u0938\u0947 \u091C\u0941\u0921\u093C\u093E \u0939\u0941\u0906\ + \ \u0939\u0948\u0964 \u092F\u0926\u093F \u0932\u0902\u092C\u0947 \u0924\u093E\ + \u0930 \u0915\u093E \u092E\u0941\u0915\u094D\u0924 \u0938\u093F\u0930\u093E\ + \ 8.0 \u0935\u094B\u0932\u094D\u091F \u0915\u0940 \u0935\u093F\u0926\u094D\u092F\ + \u0941\u0924 \u0915\u094D\u0937\u092E\u0924\u093E \u092A\u0930 \u0939\u0948\ + , \u0914\u0930 \u091B\u094B\u091F\u0947 \u0924\u093E\u0930 \u0915\u093E \u092E\ + \u0941\u0915\u094D\u0924 \u0938\u093F\u0930\u093E 1.0 \u0935\u094B\u0932\u094D\ + \u091F \u0915\u0940 \u0935\u093F\u0926\u094D\u092F\u0941\u0924 \u0915\u094D\u0937\ + \u092E\u0924\u093E \u092A\u0930 \u0939\u0948, \u0924\u094B \u0926\u094B\u0928\ + \u094B\u0902 \u0924\u093E\u0930\u094B\u0902 \u0915\u0947 \u091C\u0902\u0915\u094D\ + \u0936\u0928 \u092A\u0930 \u0915\u094D\u0937\u092E\u0924\u093E \u0932\u0917\u092D\ + \u0917 \u092C\u0930\u093E\u092C\u0930 \u0939\u0948" + - input_choice_list: + A: '4' + B: '5' + C: '6' + D: '20' + input_correct_responses: + - A + input_question: "\u090F\u0915 \u0905\u092A\u0935\u0930\u094D\u0924\u0915 \u0926\ + \u0942\u0930\u092C\u0940\u0928 \u092E\u0947\u0902 \u0926\u094B \u0905\u092D\u093F\ + \u0938\u093E\u0930\u0940 \u0932\u0947\u0902\u0938 \u0939\u094B\u0924\u0947 \u0939\ + \u0948\u0902 \u091C\u094B 100 \u0938\u0947\u092E\u0940 \u0915\u0940 \u0926\u0942\ + \u0930\u0940 \u092A\u0930 \u0905\u0932\u0917 \u0939\u094B\u0924\u0947 \u0939\ + \u0948\u0902\u0964 \u0906\u0908-\u092A\u0940\u0938 \u0932\u0947\u0902\u0938\ + \ \u0915\u0940 \u092B\u094B\u0915\u0932 \u0932\u0902\u092C\u093E\u0908 20 \u0938\ + \u0947\u092E\u0940 \u0939\u0948\u0964 \u0926\u0942\u0930\u092C\u0940\u0928 \u0915\ + \u093E \u0915\u094B\u0923\u0940\u092F \u0906\u0935\u0930\u094D\u0927\u0928 \u0939\ + \u0948" + - input_choice_list: + A: "\u0936\u0941\u0932\u094D\u0915" + B: "\u0926\u094D\u0930\u0935\u094D\u092F\u092E\u093E\u0928" + C: "\u090A\u0930\u094D\u091C\u093E \u0914\u0930 \u0917\u0924\u093F" + D: "\u0932\u0947\u092A\u094D\u091F\u093E\u0928 \u0938\u0902\u0916\u094D\u092F\ + \u093E" + input_correct_responses: + - D + input_question: "\u092E\u094D\u092F\u0942\u0911\u0928 \u0932\u0917\u092D\u0917\ + \ 10^-6 \u0938\u0947\u0915\u0902\u0921 \u0915\u0947 \u0935\u093F\u0936\u093F\ + \u0937\u094D\u091F \u091C\u0940\u0935\u0928\u0915\u093E\u0932 \u092E\u0947\u0902\ + \ \u090F\u0915 \u0907\u0932\u0947\u0915\u094D\u091F\u094D\u0930\u0949\u0928\ + , \u090F\u0915 \u092E\u094D\u092F\u0942\u0911\u0928 \u0928\u094D\u092F\u0942\ + \u091F\u094D\u0930\u093F\u0928\u094B \u0914\u0930 \u090F\u0915 \u0907\u0932\u0947\ + \u0915\u094D\u091F\u094D\u0930\u0949\u0928 \u090F\u0902\u091F\u0940\u0928\u094D\ + \u092F\u0942\u091F\u094D\u0930\u093F\u0928\u094B \u092E\u0947\u0902 \u0935\u093F\ + \u0918\u091F\u093F\u0924 \u0939\u094B \u091C\u093E\u0924\u093E \u0939\u0948\u0964\ + \ \u0938\u0902\u0930\u0915\u094D\u0937\u0923 \u0915\u0947 \u0928\u093F\u092F\ + \u092E \u0915\u0947 \u0905\u0928\u0941\u0938\u093E\u0930 \u092E\u094D\u092F\u0942\ + \u0911\u0928 \u0915\u094B \u090F\u0915 \u0907\u0932\u0947\u0915\u094D\u091F\u094D\ + \u0930\u0949\u0928 \u0914\u0930 \u0915\u0947\u0935\u0932 \u090F\u0915 \u0928\ + \u094D\u092F\u0942\u091F\u094D\u0930\u093F\u0928\u094B \u092E\u0947\u0902 \u0915\ + \u094D\u0937\u092F \u0939\u094B\u0928\u0947 \u0938\u0947 \u0930\u094B\u0915\u093E\ + \ \u0917\u092F\u093E \u0939\u0948" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_physics +tag: mmlu_hi_llama_stem_tasks +task: mmlu_hi_llama_college_physics +task_alias: college_physics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_computer_security.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_computer_security.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e1a3afe79e34abbe10387c3b9b17b5a0e3973029 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_computer_security.yaml @@ -0,0 +1,98 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "160 \u092C\u093F\u091F\u094D\u0938" + B: "512 \u092C\u093F\u091F\u094D\u0938" + C: "628 \u092C\u093F\u091F\u094D\u0938" + D: "820 \u092C\u093F\u091F\u094D\u0938" + input_correct_responses: + - A + input_question: "SHA-1 \u0915\u093E \u090F\u0915 \u0938\u0902\u0926\u0947\u0936\ + \ \u0921\u093E\u0907\u091C\u0947\u0938\u094D\u091F \u0939\u0948" + - input_choice_list: + A: "\u0906\u0908\u090F\u092E - \u091F\u094D\u0930\u094B\u091C\u0928" + B: "\u092A\u093F\u091B\u0932\u0947 \u0926\u0930\u0935\u093E\u091C\u0947 \u091F\ + \u094D\u0930\u094B\u091C\u0928" + C: "\u091F\u094D\u0930\u094B\u091C\u0928-\u0921\u093E\u0909\u0928\u0932\u094B\ + \u0921\u0930" + D: "\u092B\u093F\u0930\u094C\u0924\u0940 \u091F\u094D\u0930\u094B\u091C\u0928" + input_correct_responses: + - D + input_question: "_____________ \u0906\u092A\u0915\u0947 \u0938\u093F\u0938\u094D\ + \u091F\u092E \u092A\u0930 \u0921\u0947\u091F\u093E \u0915\u094B \u0938\u0902\ + \u0936\u094B\u0927\u093F\u0924 \u0915\u0930 \u0938\u0915\u0924\u093E \u0939\u0948\ + \ - \u0924\u093E\u0915\u093F \u0906\u092A\u0915\u093E \u0938\u093F\u0938\u094D\ + \u091F\u092E \u0938\u0939\u0940 \u0922\u0902\u0917 \u0938\u0947 \u0928 \u091A\ + \u0932\u0947 \u092F\u093E \u0906\u092A \u0935\u093F\u0936\u093F\u0937\u094D\u091F\ + \ \u0921\u0947\u091F\u093E \u0924\u0915 \u0928\u0939\u0940\u0902 \u092A\u0939\ + \u0941\u0902\u091A \u0938\u0915\u0947\u0902, \u092F\u093E \u092F\u0939 \u0906\ + \u092A\u0915\u094B \u090F\u0915\u094D\u0938\u0947\u0938 \u0926\u0947\u0928\u0947\ + \ \u0915\u0947 \u0932\u093F\u090F \u092B\u093F\u0930\u094C\u0924\u0940 \u092D\ + \u0940 \u092E\u093E\u0902\u0917 \u0938\u0915\u0924\u093E \u0939\u0948\u0964" + - input_choice_list: + A: "\u0928\u0948\u0924\u093F\u0915\u0924\u093E \u0915\u094B "\u0939\u0948\ + \u0915\u093F\u0902\u0917" \u0915\u0930\u0928\u093E \u0924\u093E\u0915\ + \u093F \u0935\u0947 \u0905\u0928\u092A\u0947\u0915\u094D\u0937\u093F\u0924\ + \ \u0938\u094D\u0935\u093E\u0930\u094D\u0925\u0940 \u0935\u094D\u092F\u0935\ + \u0939\u093E\u0930 \u0915\u094B \u0909\u091A\u093F\u0924 \u0920\u0939\u0930\ + \u093E \u0938\u0915\u0947\u0902" + B: "\u0939\u0948\u0915\u093F\u0902\u0917 \u0938\u093F\u0938\u094D\u091F\u092E\ + \ (\u0909\u0926\u093E\u0939\u0930\u0923 \u0915\u0947 \u0932\u093F\u090F, \u092A\ + \u094D\u0930\u0935\u0947\u0936 \u092A\u0930\u0940\u0915\u094D\u0937\u0923\ + \ \u0915\u0947 \u0926\u094C\u0930\u093E\u0928) \u0915\u092E\u091C\u094B\u0930\ + \u093F\u092F\u094B\u0902 \u0915\u094B \u0909\u091C\u093E\u0917\u0930 \u0915\ + \u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0924\u093E\u0915\u093F\ + \ \u0909\u0928\u0915\u093E \u0936\u094B\u0937\u0923 \u0915\u0930\u0928\u0947\ + \ \u0915\u0947 \u092C\u091C\u093E\u092F \u0909\u0928\u094D\u0939\u0947\u0902\ + \ \u0920\u0940\u0915 \u0915\u093F\u092F\u093E \u091C\u093E \u0938\u0915\u0947" + C: "\u0909\u0928 \u0932\u094B\u0917\u094B\u0902 \u0926\u094D\u0935\u093E\u0930\ + \u093E \u091A\u0932\u093E\u090F \u091C\u093E \u0930\u0939\u0947 \u0938\u093F\ + \u0938\u094D\u091F\u092E \u0915\u094B \u0939\u0948\u0915 \u0915\u0930\u0928\ + \u093E \u091C\u093F\u0928\u0915\u0940 \u0928\u0948\u0924\u093F\u0915\u0924\ + \u093E \u0938\u0947 \u0906\u092A \u0905\u0938\u0939\u092E\u0924 \u0939\u0948\ + \u0902" + D: "\u0924\u0940\u0935\u094D\u0930 \u0938\u0949\u092B\u093C\u094D\u091F\u0935\ + \u0947\u092F\u0930 \u0935\u093F\u0915\u093E\u0938 \u0915\u0947 \u0932\u093F\ + \u090F \u090F\u0915 \u0915\u0920\u092C\u094B\u0932\u0940 \u0936\u092C\u094D\ + \u0926, \u0909\u0926\u093E\u0939\u0930\u0923 \u0915\u0947 \u0932\u093F\u090F\ + , \u0939\u0948\u0915\u0925\u0949\u0928 \u0915\u0947 \u092D\u093E\u0917 \u0915\ + \u0947 \u0930\u0942\u092A \u092E\u0947\u0902" + input_correct_responses: + - B + input_question: "\u090F\u0925\u093F\u0915\u0932 \u0939\u0948\u0915\u093F\u0902\ + \u0917 \u0915\u094D\u092F\u093E \u0939\u0948?" + - input_choice_list: + A: "\u092E\u0947\u092E\u094B\u0930\u0940 \u092E\u0947\u0902 \u0915\u094D\u0930\ + \u093F\u092A\u094D\u091F\u094B\u0917\u094D\u0930\u093E\u092B\u093C\u093F\u0915\ + \ \u0915\u0941\u0902\u091C\u093F\u092F\u093E\u0901 \u0905\u0927\u093F\u0932\ + \u0947\u0916\u093F\u0924 \u0915\u0930\u0928\u093E" + B: "\u090F\u0915 \u092A\u094D\u0930\u0915\u093E\u0930 \u0915\u093E \u0915\u094B\ + \u0921 \u0907\u0902\u091C\u0947\u0915\u094D\u0936\u0928" + C: "\u090F\u0915 \u092C\u092B\u093C\u0930 \u0915\u0940 \u092C\u093E\u0939\u0930\ + \u0940 \u0938\u0940\u092E\u093E\u090F\u0901 \u092A\u0922\u093C\u0947\u0902" + D: "\u090F\u0915 \u092A\u094D\u0930\u093E\u0930\u0942\u092A \u0938\u094D\u091F\ + \u094D\u0930\u093F\u0902\u0917 \u0939\u092E\u0932\u093E" + input_correct_responses: + - C + input_question: "\u0939\u093E\u0930\u094D\u091F\u092C\u094D\u0932\u0940\u0921\ + \ \u092C\u0917 \u092A\u0930\u092E\u093F\u091F \u0915\u093E \u0936\u094B\u0937\ + \u0923" + - input_choice_list: + A: "\u092A\u094D\u0930\u0947\u0924\u0935\u093E\u0927\u093F\u0924 \u0935\u0947\ + \u092C" + B: "\u0935\u0930\u094D\u0932\u094D\u0921 \u0935\u093E\u0907\u0921 \u0935\u0947\ + \u092C" + C: "\u0938\u0924\u0939\u0940 \u091C\u093E\u0932" + D: "\u0917\u0939\u0930\u093E \u091C\u093E\u0932" + input_correct_responses: + - D + input_question: "____________ \u0935\u0939 \u0915\u0941\u091B \u092D\u0940 \u0939\ + \u0948 \u091C\u093F\u0938\u0947 \u0906\u092A\u0915\u093E \u0916\u094B\u091C\ + \ \u0907\u0902\u091C\u0928 \u0916\u094B\u091C \u0928\u0939\u0940\u0902 \u0938\ + \u0915\u0924\u093E \u0939\u0948\u0964" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_computer_security +tag: mmlu_hi_llama_stem_tasks +task: mmlu_hi_llama_computer_security +task_alias: computer_security diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_conceptual_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_conceptual_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4630c3bc60b40e2703cb947b994bc29b8d621656 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_conceptual_physics.yaml @@ -0,0 +1,87 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0915\u092E" + B: "\u0905\u0927\u093F\u0915" + C: "\u091C\u094B \u0909\u0938\u0940" + D: "\u0936\u0942\u0928\u094D\u092F" + input_correct_responses: + - A + input_question: "\u0935\u093F\u0916\u0902\u0921\u0928 \u0938\u0947 \u0917\u0941\ + \u091C\u0930 \u0930\u0939\u0947 \u092F\u0942\u0930\u0947\u0928\u093F\u092F\u092E\ + \ \u092A\u0930\u092E\u093E\u0923\u0941 \u0915\u0947 \u0926\u094D\u0930\u0935\ + \u094D\u092F\u092E\u093E\u0928 \u0915\u0940 \u0924\u0941\u0932\u0928\u093E \u092E\ + \u0947\u0902, \u0935\u093F\u0916\u0902\u0921\u0928 \u0915\u0947 \u092C\u093E\ + \u0926 \u0909\u0924\u094D\u092A\u093E\u0926\u094B\u0902 \u0915\u093E \u0938\u0902\ + \u092F\u0941\u0915\u094D\u0924 \u0926\u094D\u0930\u0935\u094D\u092F\u092E\u093E\ + \u0928 \u0939\u0948" + - input_choice_list: + A: "\u0938\u094D\u0925\u093E\u0928 \u0914\u0930 \u0938\u092E\u092F\u0964" + B: "\u090F\u0915 \u092F\u093E\u0924\u094D\u0930\u093E \u0915\u0930\u0928\u0947\ + \ \u0935\u093E\u0932\u093E \u091C\u0941\u0921\u093C\u0935\u093E\u0902 \u0914\ + \u0930 \u090F\u0915 \u0918\u0930 \u092A\u0930 \u0930\u0939\u0928\u0947 \u0935\ + \u093E\u0932\u093E \u091C\u0941\u0921\u093C\u0935\u093E\u0902\u0964" + C: "\u0917\u0941\u0930\u0941\u0924\u094D\u0935\u093E\u0915\u0930\u094D\u0937\ + \u0923 \u0914\u0930 \u0924\u094D\u0935\u0930\u0923." + D: "\u0926\u094D\u0930\u0935\u094D\u092F\u092E\u093E\u0928 \u0914\u0930 \u090A\ + \u0930\u094D\u091C\u093E." + input_correct_responses: + - C + input_question: "\u0938\u092E\u0924\u0941\u0932\u094D\u092F\u0924\u093E \u0938\ + \u093F\u0926\u094D\u0927\u093E\u0902\u0924 \u0915\u0947 \u0905\u0928\u0941\u0938\ + \u093E\u0930 \u091C\u094B \u091A\u0940\u091C\u0947\u0902 \u0938\u092E\u0924\u0941\ + \u0932\u094D\u092F \u0939\u0948\u0902" + - input_choice_list: + A: "\u090F\u0915 \u0905\u0932\u0917 \u0906\u0935\u0943\u0924\u094D\u0924\u093F\ + \ \u092E\u0947\u0902 \u092A\u0930\u093F\u0935\u0930\u094D\u0924\u093F\u0924\ + \ \u0915\u093F\u092F\u093E \u0917\u092F\u093E" + B: "\u0928\u0940\u091A\u0947 \u0915\u094B \u091D\u0941\u0915\u093E\u0935" + C: "\u0926\u0916\u0932 \u0905\u0902\u0926\u093E\u091C\u0940" + D: "\u0927\u094D\u0930\u0941\u0935\u0940\u0915\u0930\u0923" + input_correct_responses: + - C + input_question: "\u0938\u093E\u092C\u0941\u0928 \u0915\u0947 \u092C\u0941\u0932\ + \u092C\u0941\u0932\u0947 \u092E\u0947\u0902 \u0930\u0902\u0917 \u092A\u094D\u0930\ + \u0915\u093E\u0936 \u0938\u0947 \u0909\u0924\u094D\u092A\u0928\u094D\u0928 \u0939\ + \u094B\u0924\u0947 \u0939\u0948\u0902" + - input_choice_list: + A: "\u091C\u094B \u0909\u0938\u0940" + B: "\u0917\u094D\u0930\u0947\u091F\u0930" + C: "\u0915\u092E" + D: "\u0939\u0935\u093E \u0915\u0940 \u0917\u0924\u093F \u0915\u0947 \u0906\u0927\ + \u093E\u0930 \u092A\u0930 \u092F\u093E \u0924\u094B \u0905\u0927\u093F\u0915\ + \ \u092F\u093E \u0915\u092E" + input_correct_responses: + - B + input_question: "\u090F\u0915 \u092E\u0949\u0921\u0932 \u0939\u0935\u093E\u0908\ + \ \u091C\u0939\u093E\u091C\u093C \u0939\u0935\u093E \u092E\u0947\u0902 \u0909\ + \u0921\u093C\u0924\u0947 \u0938\u092E\u092F \u0927\u0940\u092E\u0940 \u0917\u0924\ + \u093F \u0938\u0947 \u0909\u0921\u093C\u0924\u093E \u0939\u0948 \u0914\u0930\ + \ \u092A\u0940\u091B\u0947 \u0939\u0935\u093E \u0939\u094B\u0928\u0947 \u092A\ + \u0930 \u0924\u0947\u091C\u093C \u0917\u0924\u093F \u0938\u0947 \u0909\u0921\ + \u093C\u0924\u093E \u0939\u0948\u0964 \u091C\u092C \u0939\u0935\u093E \u0915\ + \u0947 \u0938\u092E\u0915\u094B\u0923 \u092A\u0930 \u092A\u094D\u0930\u0915\u094D\ + \u0937\u0947\u092A\u093F\u0924 \u0915\u093F\u092F\u093E \u091C\u093E\u0924\u093E\ + \ \u0939\u0948 \u0924\u094B \u0907\u0938\u0915\u0940 \u091C\u092E\u0940\u0928\ + \u0940 \u0917\u0924\u093F \u0936\u093E\u0902\u0924 \u0939\u0935\u093E \u092E\ + \u0947\u0902 \u0909\u0921\u093C\u0928\u0947 \u0915\u0940 \u0924\u0941\u0932\u0928\ + \u093E \u092E\u0947\u0902 \u0939\u094B\u0924\u0940 \u0939\u0948" + - input_choice_list: + A: "\u0939\u093E\u0907\u0921\u094D\u0930\u094B\u091C\u0928" + B: "\u0932\u094B\u0939\u093E" + C: "\u092F\u0942\u0930\u0947\u0928\u093F\u092F\u092E" + D: "\u092A\u094D\u0930\u0924\u094D\u092F\u0947\u0915 \u092E\u0947\u0902 \u0938\ + \u092E\u093E\u0928" + input_correct_responses: + - A + input_question: "\u0907\u0928 \u0924\u0940\u0928 \u0924\u0924\u094D\u0935\u094B\ + \u0902 \u092E\u0947\u0902 \u0938\u0947 \u0915\u093F\u0938\u0915\u093E \u0926\ + \u094D\u0930\u0935\u094D\u092F\u092E\u093E\u0928 \u092A\u094D\u0930\u0924\u093F\ + \ \u0928\u094D\u092F\u0942\u0915\u094D\u0932\u093F\u092F\u0949\u0928 \u0938\u092C\ + \u0938\u0947 \u0905\u0927\u093F\u0915 \u0939\u0948?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_conceptual_physics +tag: mmlu_hi_llama_stem_tasks +task: mmlu_hi_llama_conceptual_physics +task_alias: conceptual_physics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_econometrics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_econometrics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4e318de321992583381378b2e3fc8b7c02704932 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_econometrics.yaml @@ -0,0 +1,117 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0905\u0902\u0924\u0924\u0903 \u092E\u0930 \u091C\u093E\u0913" + B: "\u0905\u0928\u093F\u0936\u094D\u091A\u093F\u0924 \u0915\u093E\u0932 \u0924\ + \u0915 \u092C\u0928\u0947 \u0930\u0939\u0947\u0902" + C: "\u0924\u0947\u091C\u0940 \u0938\u0947 \u092C\u0922\u093C\u0947\u0902" + D: "\u0915\u092D\u0940 \u0918\u091F\u093F\u0924 \u0928\u0939\u0940\u0902 \u0939\ + \u094B\u0924\u093E" + input_correct_responses: + - A + input_question: "\u090F\u0915 \u0938\u094D\u0925\u093F\u0930 \u0938\u094D\u0935\ + \u092A\u094D\u0930\u0924\u093F\u0917\u093E\u092E\u0940 \u092A\u094D\u0930\u0915\ + \u094D\u0930\u093F\u092F\u093E \u0915\u0947 \u0932\u093F\u090F, \u091D\u091F\ + \u0915\u0947 \u0932\u0917\u0947\u0902\u0917\u0947" + - input_choice_list: + A: '0.2' + B: '0.4' + C: '0.5' + D: '0.33' + input_correct_responses: + - D + input_question: "\u0936\u0942\u0928\u094D\u092F \u092E\u093E\u0927\u094D\u092F\ + \ \u0914\u0930 \u0907\u0915\u093E\u0908 \u0935\u093F\u091A\u0930\u0923 \u0935\ + \u093E\u0932\u0947 \u0935\u093F\u0915\u094D\u0937\u094B\u092D \u0935\u093E\u0932\ + \u0947 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 AR(1) \u092E\ + \u0949\u0921\u0932 \u092A\u0930 \u0935\u093F\u091A\u093E\u0930 \u0915\u0930\u0947\ + \u0902 yt = 0.2 + 0.4 yt-1 + ut y \u0915\u093E (\u092C\u093F\u0928\u093E \u0936\ + \u0930\u094D\u0924) \u092E\u093E\u0927\u094D\u092F \u0907\u0938 \u092A\u094D\ + \u0930\u0915\u093E\u0930 \u0926\u093F\u092F\u093E \u091C\u093E\u090F\u0917\u093E" + - input_choice_list: + A: "\u0915\u0947\u0935\u0932 (ii) \u0914\u0930 (iv)" + B: "\u0915\u0947\u0935\u0932 (i) \u0914\u0930 (iii)" + C: "\u0915\u0947\u0935\u0932 (i), (ii), \u0914\u0930 (iii)\u0964" + D: "(i), (ii), (iii), \u0914\u0930 (iv)" + input_correct_responses: + - C + input_question: "\u092E\u093E\u0928 \u0932\u0940\u091C\u093F\u090F \u0915\u093F\ + \ \u090F\u0915 \u092A\u0930\u0940\u0915\u094D\u0937\u0923 \u0906\u0901\u0915\ + \u0921\u093C\u093E \u0907\u0938\u0915\u0947 \u0938\u093E\u0925 0.08 \u0915\u093E\ + \ \u092A\u0940-\u092E\u093E\u0928 \u091C\u0941\u0921\u093C\u093E \u0939\u0948\ + \u0964 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u092E\u0947\ + \u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u0915\u0925\u0928 \u0938\ + \u0924\u094D\u092F \u0939\u0948? (i) \u092F\u0926\u093F \u092A\u0930\u0940\u0915\ + \u094D\u0937\u0923 \u0915\u093E \u0906\u0915\u093E\u0930 \u092C\u093F\u0932\u094D\ + \u0915\u0941\u0932 8% \u0925\u093E, \u0924\u094B \u0939\u092E \u0936\u0942\u0928\ + \u094D\u092F \u092A\u0930\u093F\u0915\u0932\u094D\u092A\u0928\u093E \u0915\u094B\ + \ \u0905\u0938\u094D\u0935\u0940\u0915\u093E\u0930 \u0915\u0930\u0928\u0947\ + \ \u0914\u0930 \u0905\u0938\u094D\u0935\u0940\u0915\u093E\u0930 \u0928 \u0915\ + \u0930\u0928\u0947 \u0915\u0947 \u092C\u0940\u091A \u0909\u0926\u093E\u0938\u0940\ + \u0928 \u0939\u094B\u0902\u0917\u0947 (ii) \u092F\u0926\u093F 10% \u0906\u0915\ + \u093E\u0930 \u0915\u0947 \u092A\u0930\u0940\u0915\u094D\u0937\u0923 \u0915\u093E\ + \ \u0909\u092A\u092F\u094B\u0917 \u0915\u093F\u092F\u093E \u0917\u092F\u093E\ + \ \u0925\u093E \u0924\u094B \u0936\u0942\u0928\u094D\u092F \u0915\u094B \u0905\ + \u0938\u094D\u0935\u0940\u0915\u093E\u0930 \u0915\u0930 \u0926\u093F\u092F\u093E\ + \ \u091C\u093E\u090F\u0917\u093E (iii) \u0936\u0942\u0928\u094D\u092F \u0928\ + \u0939\u0940\u0902 \u0939\u094B\u0917\u093E \u092F\u0926\u093F 1% \u0906\u0915\ + \u093E\u0930 \u0915\u0947 \u092A\u0930\u0940\u0915\u094D\u0937\u0923 \u0915\u093E\ + \ \u0909\u092A\u092F\u094B\u0917 \u0915\u093F\u092F\u093E \u0917\u092F\u093E\ + \ \u0924\u094B \u0905\u0936\u0915\u094D\u0924 \u0915\u0930 \u0926\u093F\u092F\ + \u093E \u091C\u093E\u090F\u0917\u093E (iv) \u092F\u0926\u093F 5% \u0906\u0915\ + \u093E\u0930 \u0915\u0947 \u092A\u0930\u0940\u0915\u094D\u0937\u0923 \u0915\u093E\ + \ \u0909\u092A\u092F\u094B\u0917 \u0915\u093F\u092F\u093E \u0917\u092F\u093E\ + \ \u0924\u094B \u0936\u0942\u0928\u094D\u092F \u0915\u094B \u0905\u0938\u094D\ + \u0935\u0940\u0915\u093E\u0930 \u0915\u0930 \u0926\u093F\u092F\u093E \u091C\u093E\ + \u090F\u0917\u093E\u0964" + - input_choice_list: + A: "\u092F\u0939 \u092A\u0915\u094D\u0937\u092A\u093E\u0924\u092A\u0942\u0930\ + \u094D\u0923 \u0939\u094B\u0917\u093E" + B: "\u092F\u0939 \u0905\u0938\u0902\u0917\u0924 \u0939\u094B\u0917\u093E" + C: "\u092F\u0939 \u0905\u092A\u094D\u0930\u092D\u093E\u0935\u0940 \u0939\u094B\ + \u0917\u093E" + D: "\u0938\u092D\u0940 (\u090F), (\u092C\u0940) \u0914\u0930 (\u0938\u0940)\ + \ \u0938\u0924\u094D\u092F \u0939\u094B\u0902\u0917\u0947\u0964" + input_correct_responses: + - C + input_question: "\u092F\u0926\u093F \u092A\u094D\u0930\u0924\u093F\u0917\u092E\ + \u0928 \u092E\u0949\u0921\u0932 \u092E\u0947\u0902 \u0935\u093F\u0937\u092E\u0932\ + \u0948\u0902\u0917\u093F\u0915\u0924\u093E \u092E\u094C\u091C\u0942\u0926 \u0939\ + \u0948 \u0932\u0947\u0915\u093F\u0928 \u0909\u0938\u0947 \u0928\u091C\u0930\u0905\ + \u0902\u0926\u093E\u091C \u0915\u0930 \u0926\u093F\u092F\u093E \u091C\u093E\u0924\ + \u093E \u0939\u0948 \u0924\u094B \u0913\u090F\u0932\u090F\u0938 \u0905\u0928\ + \u0941\u092E\u093E\u0928\u0915 \u0915\u0947 \u0932\u093F\u090F \u0915\u094D\u092F\ + \u093E \u092A\u0930\u093F\u0923\u093E\u092E \u0939\u094B\u0902\u0917\u0947?" + - input_choice_list: + A: "1 \u0932\u0948\u0917" + B: "2 \u0932\u0948\u0917\u094D\u0938" + C: "3 \u0932\u0948\u0917\u094D\u0938" + D: "4 \u0932\u0948\u0917\u094D\u0938" + input_correct_responses: + - C + input_question: "\u0905\u092C \u092E\u093E\u0928 \u0932\u0940\u091C\u093F\u090F\ + \ \u0915\u093F \u090F\u0915 \u0936\u094B\u0927\u0915\u0930\u094D\u0924\u093E\ + \ VAR \u0915\u0947 \u0932\u093F\u090F \u0907\u0937\u094D\u091F\u0924\u092E \u0905\ + \u0902\u0924\u0930\u093E\u0932 \u0932\u0902\u092C\u093E\u0908 \u0928\u093F\u0930\ + \u094D\u0927\u093E\u0930\u093F\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\ + \u093F\u090F \u0938\u0942\u091A\u0928\u093E \u092E\u093E\u0928\u0926\u0902\u0921\ + \ \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0928\u093E \u091A\ + \u093E\u0939\u0924\u093E \u0939\u0948\u0964 \u0926\u094D\u0935\u093F-\u091A\u0930\ + \ VAR \u0915\u0947 \u0932\u093F\u090F 500 \u0905\u0935\u0932\u094B\u0915\u0928\ + \ \u0909\u092A\u0932\u092C\u094D\u0927 \u0939\u0948\u0902, \u0914\u0930 \u0905\ + \u0935\u0936\u0947\u0937\u094B\u0902 \u0915\u0947 \u0935\u093F\u091A\u0930\u0923\ + -\u0938\u0939\u092A\u094D\u0930\u0938\u0930\u0923 \u092E\u0948\u091F\u094D\u0930\ + \u093F\u0915\u094D\u0938 \u0915\u0947 \u0928\u093F\u0930\u094D\u0927\u093E\u0930\ + \u0915 \u0915\u0947 \u092E\u093E\u0928 \u0915\u094D\u0930\u092E\u0936\u0903\ + \ 1, 2, 3 \u0914\u0930 4 \u0932\u0948\u0917 \u0915\u0947 \u0932\u093F\u090F\ + \ 0.0336, 0.0169, 0.0084 \u0914\u0930 0.0062 \u0939\u0948\u0902\u0964 \u0905\ + \u0915\u093E\u0907\u0915 \u0915\u0947 \u0938\u0942\u091A\u0928\u093E \u092E\u093E\ + \u0928\u0926\u0902\u0921 \u0915\u0947 \u0905\u0928\u0941\u0938\u093E\u0930 \u0907\ + \u0937\u094D\u091F\u0924\u092E \u092E\u0949\u0921\u0932 \u0915\u094D\u0930\u092E\ + \ \u0915\u094D\u092F\u093E \u0939\u0948?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_econometrics +tag: mmlu_hi_llama_social_sciences_tasks +task: mmlu_hi_llama_econometrics +task_alias: econometrics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_electrical_engineering.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_electrical_engineering.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1e16bb39d0162e2d595cde68ff937e60c74a1538 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_electrical_engineering.yaml @@ -0,0 +1,84 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u090F\u0938=0, \u0906\u0930=0" + B: "\u090F\u0938=0, \u0906\u0930=1" + C: "\u090F\u0938=1, \u0906\u0930=0" + D: "\u090F\u0938=1, \u0906\u0930=1" + input_correct_responses: + - D + input_question: "NOR \u0917\u0947\u091F\u094B\u0902 \u0938\u0947 \u0928\u093F\u0930\ + \u094D\u092E\u093F\u0924 SR \u0932\u0948\u091A \u092E\u0947\u0902, \u0915\u093F\ + \u0938 \u0936\u0930\u094D\u0924 \u0915\u0940 \u0905\u0928\u0941\u092E\u0924\u093F\ + \ \u0928\u0939\u0940\u0902 \u0939\u0948" + - input_choice_list: + A: "200\u03A9" + B: "100\u03A9" + C: "50\u03A9" + D: "10\u03A9" + input_correct_responses: + - C + input_question: "2 \u092A\u094B\u0932 \u0932\u0948\u092A \u0935\u093E\u0907\u0902\ + \u0921\u093F\u0902\u0917 \u0921\u0940\u0938\u0940 \u092E\u0936\u0940\u0928 \u092E\ + \u0947\u0902, \u090F\u0915 \u0915\u0902\u0921\u0915\u094D\u091F\u0930 \u0915\ + \u093E \u092A\u094D\u0930\u0924\u093F\u0930\u094B\u0927 2\u03A9 \u0939\u0948\ + \ \u0914\u0930 \u0915\u0902\u0921\u0915\u094D\u091F\u0930\u094B\u0902 \u0915\ + \u0940 \u0915\u0941\u0932 \u0938\u0902\u0916\u094D\u092F\u093E 100 \u0939\u0948\ + \u0964 \u0915\u0941\u0932 \u092A\u094D\u0930\u0924\u093F\u0930\u094B\u0927 \u091C\ + \u094D\u091E\u093E\u0924 \u0915\u0930\u0947\u0902" + - input_choice_list: + A: "1 \u090F\u092E\u090F." + B: "2 \u090F\u092E\u090F." + C: "3 \u090F\u092E\u090F." + D: "4 \u090F\u092E\u090F." + input_correct_responses: + - B + input_question: "\u090F\u0915 \u0917\u0924\u093F\u0936\u0940\u0932 \u0915\u0941\ + \u0902\u0921\u0932 \u092E\u0940\u091F\u0930 \u0915\u0940 \u0915\u0941\u0902\u0921\ + \u0932\u0940 \u092E\u0947\u0902 100 \u092B\u0947\u0930\u0947 \u0939\u0948\u0902\ + , \u092F\u0939 40 \u092E\u093F\u092E\u0940 \u0932\u0902\u092C\u0940 \u0914\u0930\ + \ 30 \u092E\u093F\u092E\u0940 \u091A\u094C\u0921\u093C\u0940 \u0939\u0948\u0964\ + \ \u092A\u0942\u0930\u094D\u0923 \u092A\u0948\u092E\u093E\u0928\u0947 \u092A\ + \u0930 \u0928\u093F\u092F\u0902\u0924\u094D\u0930\u0923 \u091F\u0949\u0930\u094D\ + \u0915 240*10-6 \u090F\u0928\u090F\u092E \u0939\u0948\u0964 \u092F\u0926\u093F\ + \ \u091A\u0941\u0902\u092C\u0915\u0940\u092F \u092A\u094D\u0930\u0935\u093E\u0939\ + \ \u0918\u0928\u0924\u094D\u0935 1Wb/m2 \u0939\u0948 \u0924\u094B \u092E\u0940\ + \u091F\u0930 \u0915\u0940 \u0938\u0940\u092E\u093E \u0939\u0948" + - input_choice_list: + A: "100 \u090F\u0928." + B: "0.1 \u090F\u0928." + C: "1 \u090F\u0928." + D: "0.01 \u090F\u0928." + input_correct_responses: + - B + input_question: "\u0926\u094B \u0932\u0902\u092C\u0947 \u0938\u092E\u093E\u0928\ + \u093E\u0902\u0924\u0930 \u0915\u0902\u0921\u0915\u094D\u091F\u0930 100 \u090F\ + \ \u0915\u093E \u0935\u0939\u0928 \u0915\u0930\u0924\u0947 \u0939\u0948\u0902\ + \u0964 \u092F\u0926\u093F \u0915\u0902\u0921\u0915\u094D\u091F\u0930\u094B\u0902\ + \ \u0915\u094B 20 \u092E\u093F\u092E\u0940 \u0938\u0947 \u0905\u0932\u0917 \u0915\ + \u093F\u092F\u093E \u091C\u093E\u0924\u093E \u0939\u0948, \u0924\u094B \u092A\ + \u094D\u0930\u0924\u094D\u092F\u0947\u0915 \u0915\u0902\u0921\u0915\u094D\u091F\ + \u0930 \u0915\u0940 \u092A\u094D\u0930\u0924\u093F \u092E\u0940\u091F\u0930\ + \ \u0932\u0902\u092C\u093E\u0908 \u092A\u0930 \u092C\u0932 \u0939\u094B\u0917\ + \u093E" + - input_choice_list: + A: "15 \u090F\u0928." + B: "20 \u090F\u0928." + C: "7.5 \u090F\u0928." + D: "3.75 \u090F\u0928." + input_correct_responses: + - A + input_question: "\u090F\u0915 \u092C\u093F\u0902\u0926\u0941 \u0927\u094D\u0930\ + \u0941\u0935 \u0915\u0940 \u0924\u093E\u0915\u0924 4\u03C0 * 10^-4 \u0935\u0947\ + \u092C\u0930 \u0939\u0948\u0964 \u0907\u0938\u0938\u0947 10 \u0938\u0947\u092E\ + \u0940 \u0915\u0940 \u0926\u0942\u0930\u0940 \u092A\u0930 \u0930\u0916\u0947\ + \ \u0917\u090F 4\u03C0 * 1.5 * 10^-4 \u0935\u0947\u092C\u0930 \u0915\u0947 \u090F\ + \u0915 \u092C\u093F\u0902\u0926\u0941 \u0927\u094D\u0930\u0941\u0935 \u092A\u0930\ + \ \u0928\u094D\u092F\u0942\u091F\u0928 \u092E\u0947\u0902 \u092C\u0932 \u0939\ + \u094B\u0917\u093E" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_electrical_engineering +tag: mmlu_hi_llama_stem_tasks +task: mmlu_hi_llama_electrical_engineering +task_alias: electrical_engineering diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_elementary_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_elementary_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f59ff3c9f0a1193e50ae11a08fc0002bf096aa13 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_elementary_mathematics.yaml @@ -0,0 +1,110 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "5 \u0939\u091C\u093E\u0930" + B: "5 \u0936\u0924\u0915" + C: "5 \u0926\u0939\u093E\u0908" + D: "5 \u0935\u093E\u0932\u0947" + input_correct_responses: + - A + input_question: "\u091C\u093F\u0938 \u0936\u0939\u0930 \u092E\u0947\u0902 \u092E\ + \u093F\u0936\u0947\u0932 \u0915\u093E \u091C\u0928\u094D\u092E \u0939\u0941\u0906\ + \ \u0909\u0938\u0915\u0940 \u091C\u0928\u0938\u0902\u0916\u094D\u092F\u093E\ + \ 145,826 \u0939\u0948\u0964 \u0938\u0902\u0916\u094D\u092F\u093E 145,826 \u092E\ + \u0947\u0902 5 \u0915\u093E \u092E\u093E\u0928 \u0915\u094D\u092F\u093E \u0939\ + \u0948?" + - input_choice_list: + A: "\u092A\u0948\u091F\u0930\u094D\u0928 \u092E\u0947\u0902 10\u0935\u093E\u0902\ + \ \u0928\u0902\u092C\u0930 \u090F\u0915 \u0938\u092E \u0928\u0902\u092C\u0930\ + \ \u0939\u094B\u0917\u093E\u0964" + B: "\u0938\u0902\u0916\u094D\u092F\u093E \u092A\u0948\u091F\u0930\u094D\u0928\ + \ \u092E\u0947\u0902 \u0915\u092D\u0940 \u092D\u0940 \u0926\u094B \u0938\u092E\ + \ \u0938\u0902\u0916\u094D\u092F\u093E\u090F\u0901 \u090F\u0915 \u0926\u0942\ + \u0938\u0930\u0947 \u0915\u0947 \u092C\u0917\u0932 \u092E\u0947\u0902 \u0928\ + \u0939\u0940\u0902 \u0939\u094B\u0902\u0917\u0940\u0964" + C: "\u092A\u0948\u091F\u0930\u094D\u0928 \u092E\u0947\u0902 \u0905\u0917\u0932\ + \u0940 \u0926\u094B \u0938\u0902\u0916\u094D\u092F\u093E\u090F\u0901 \u090F\ + \u0915 \u0938\u092E \u0938\u0902\u0916\u094D\u092F\u093E \u0939\u094B\u0902\ + \u0917\u0940 \u092B\u093F\u0930 \u090F\u0915 \u0935\u093F\u0937\u092E \u0938\ + \u0902\u0916\u094D\u092F\u093E\u0964" + D: "\u092F\u0926\u093F \u0938\u0902\u0916\u094D\u092F\u093E \u092A\u0948\u091F\ + \u0930\u094D\u0928 \u0935\u093F\u0937\u092E \u0938\u0902\u0916\u094D\u092F\ + \u093E \u0938\u0947 \u0936\u0941\u0930\u0942 \u0939\u094B\u0924\u093E \u0939\ + \u0948 \u0924\u094B \u092A\u0948\u091F\u0930\u094D\u0928 \u092E\u0947\u0902\ + \ \u0915\u0947\u0935\u0932 \u0935\u093F\u0937\u092E \u0938\u0902\u0916\u094D\ + \u092F\u093E\u090F\u0901 \u0939\u094B\u0902\u0917\u0940\u0964" + input_correct_responses: + - B + input_question: "\u0913\u0932\u093F\u0935\u093F\u092F\u093E \u0928\u0947 \u0928\ + \u0940\u091A\u0947 \u0926\u093F\u0916\u093E\u090F \u0917\u090F \u0938\u0902\u0916\ + \u094D\u092F\u093E \u092A\u0948\u091F\u0930\u094D\u0928 \u0915\u094B \u092C\u0928\ + \u093E\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F "11 \u091C\u094B\u0921\ + \u093C\u0947\u0902" \u0928\u093F\u092F\u092E \u0915\u093E \u0909\u092A\u092F\ + \u094B\u0917 \u0915\u093F\u092F\u093E\u0964 10, 21, 32, 43, 54 \u0938\u0902\u0916\ + \u094D\u092F\u093E \u092A\u0948\u091F\u0930\u094D\u0928 \u0915\u0947 \u092C\u093E\ + \u0930\u0947 \u092E\u0947\u0902 \u0915\u094C\u0928 \u0938\u093E \u0915\u0925\ + \u0928 \u0938\u0924\u094D\u092F \u0939\u0948?" + - input_choice_list: + A: "35 \u091F\u0940\u092E\u0947\u0902 \u0916\u094B\u091C\u0928\u0947 \u0915\u0947\ + \ \u0932\u093F\u090F 5 \u0915\u094B 30 \u092E\u0947\u0902 \u091C\u094B\u0921\ + \u093C\u0947\u0902\u0964" + B: "6 \u091F\u0940\u092E\u0947\u0902 \u0916\u094B\u091C\u0928\u0947 \u0915\u0947\ + \ \u0932\u093F\u090F 30 \u0915\u094B 5 \u0938\u0947 \u0935\u093F\u092D\u093E\ + \u091C\u093F\u0924 \u0915\u0930\u0947\u0902\u0964" + C: "150 \u091F\u0940\u092E\u0947\u0902 \u0916\u094B\u091C\u0928\u0947 \u0915\ + \u0947 \u0932\u093F\u090F 30 \u0914\u0930 5 \u0915\u094B \u0917\u0941\u0923\ + \u093E \u0915\u0930\u0947\u0902\u0964" + D: "25 \u091F\u0940\u092E\u0947\u0902 \u0916\u094B\u091C\u0928\u0947 \u0915\u0947\ + \ \u0932\u093F\u090F 30 \u092E\u0947\u0902 \u0938\u0947 5 \u0918\u091F\u093E\ + \u090F\u0901\u0964" + input_correct_responses: + - B + input_question: "\u090F\u0915 \u092A\u093E\u0930\u094D\u0915 \u092E\u0947\u0902\ + \ \u0915\u0941\u0932 30 \u0916\u093F\u0932\u093E\u0921\u093C\u0940 \u092C\u093E\ + \u0938\u094D\u0915\u0947\u091F\u092C\u0949\u0932 \u0916\u0947\u0932\u0947\u0902\ + \u0917\u0947\u0964 \u092A\u094D\u0930\u0924\u094D\u092F\u0947\u0915 \u091F\u0940\ + \u092E \u092E\u0947\u0902 \u0920\u0940\u0915 5 \u0916\u093F\u0932\u093E\u0921\ + \u093C\u0940 \u0939\u094B\u0902\u0917\u0947\u0964 \u0915\u094C\u0928 \u0938\u093E\ + \ \u0915\u0925\u0928 \u0938\u0939\u0940 \u0922\u0902\u0917 \u0938\u0947 \u092C\ + \u0924\u093E\u0924\u093E \u0939\u0948 \u0915\u093F \u0906\u0935\u0936\u094D\u092F\ + \u0915 \u091F\u0940\u092E\u094B\u0902 \u0915\u0940 \u0938\u0902\u0916\u094D\u092F\ + \u093E \u0915\u0948\u0938\u0947 \u091C\u094D\u091E\u093E\u0924 \u0915\u0930\u0947\ + \u0902?" + - input_choice_list: + A: '749' + B: 2,675 + C: 2,945 + D: 4,250 + input_correct_responses: + - B + input_question: "\u090F\u0915 \u0926\u0941\u0915\u093E\u0928 107 \u0935\u093F\u092D\ + \u093F\u0928\u094D\u0928 \u0930\u0902\u0917\u094B\u0902 \u0915\u0947 \u092A\u0947\ + \u0902\u091F \u092C\u0947\u091A\u0924\u0940 \u0939\u0948\u0964 \u0909\u0928\u0915\ + \u0947 \u092D\u0902\u0921\u093E\u0930\u0923 \u092E\u0947\u0902 \u092A\u094D\u0930\ + \u0924\u094D\u092F\u0947\u0915 \u0930\u0902\u0917 \u0915\u0947 25 \u0921\u093F\ + \u092C\u094D\u092C\u0947 \u0939\u0948\u0902\u0964 \u0938\u094D\u091F\u094B\u0930\ + \ \u092E\u0947\u0902 \u092D\u0902\u0921\u093E\u0930\u0923 \u092E\u0947\u0902\ + \ \u092A\u0947\u0902\u091F \u0915\u0947 \u0921\u093F\u092C\u094D\u092C\u094B\ + \u0902 \u0915\u0940 \u0938\u0902\u0916\u094D\u092F\u093E \u0928\u0940\u091A\u0947\ + \ \u0926\u093F\u090F \u0917\u090F \u0905\u092D\u093F\u0935\u094D\u092F\u0915\ + \u094D\u0924\u093F \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0915\ + \u0947 \u092A\u093E\u0908 \u091C\u093E \u0938\u0915\u0924\u0940 \u0939\u0948\ + \u0964 107 \xD7 25. \u0938\u094D\u091F\u094B\u0930 \u092E\u0947\u0902 \u092A\ + \u0947\u0902\u091F \u0915\u0947 \u0915\u093F\u0924\u0928\u0947 \u0921\u093F\u092C\ + \u094D\u092C\u0947 \u0939\u0948\u0902?" + - input_choice_list: + A: (5 x 4) x (6 x 5) + B: (5 x 5) + (5 x 4) + C: (5 x 5) + (5 x 9) + D: (5 x 9) x (6 x 9) + input_correct_responses: + - B + input_question: "\u0915\u094C\u0928 \u0938\u093E \u0905\u092D\u093F\u0935\u094D\ + \u092F\u0915\u094D\u0924\u093F 5 x 9 \u0915\u0947 \u092C\u0930\u093E\u092C\u0930\ + \ \u0939\u0948?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_elementary_mathematics +tag: mmlu_hi_llama_stem_tasks +task: mmlu_hi_llama_elementary_mathematics +task_alias: elementary_mathematics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_formal_logic.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_formal_logic.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2cc9d16b09302e980354698f4640b411e73af44f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_formal_logic.yaml @@ -0,0 +1,131 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "~\u092A\u0940.\u0921\u0940" + B: "(\u2200x)(Px \u2228 ~Dx)" + C: "(\u2200x)(Px \u2283 ~Dx)" + D: "~\u0921\u0940.\u092A\u0940" + input_correct_responses: + - C + input_question: "\u0935\u093F\u0927\u0947\u092F \u0924\u0930\u094D\u0915 \u092E\ + \u0947\u0902 \u0938\u0930\u094D\u0935\u0936\u094D\u0930\u0947\u0937\u094D\u0920\ + \ \u0905\u0928\u0941\u0935\u093E\u0926 \u0915\u093E \u091A\u092F\u0928 \u0915\ + \u0930\u0947\u0902: \u092E\u0902\u0917\u0932 \u0917\u094D\u0930\u0939 \u092A\ + \u0930 \u0915\u094B\u0908 \u092D\u0940 \u0935\u094D\u092F\u0915\u094D\u0924\u093F\ + \ \u0917\u093E\u0921\u093C\u0940 \u0928\u0939\u0940\u0902 \u091A\u0932\u093E\ + \u0924\u093E\u0964" + - input_choice_list: + A: "\u092C\u094D\u0932\u0918" + B: "\u092D\u0932\u0917" + C: Bglh + D: "\u092C\u0940\u091C\u0940\u090F\u091A\u090F\u0932" + input_correct_responses: + - C + input_question: "\u0935\u093F\u0927\u0947\u092F \u0924\u0930\u094D\u0915 \u092E\ + \u0947\u0902 \u0938\u0930\u094D\u0935\u0936\u094D\u0930\u0947\u0937\u094D\u0920\ + \ \u0905\u0928\u0941\u0935\u093E\u0926 \u0915\u093E \u091A\u092F\u0928 \u0915\ + \u0930\u0947\u0902\u0964 \u091C\u0949\u0930\u094D\u091C \u0928\u0947 \u0939\u0947\ + \u0915\u094D\u091F\u0930 \u0915\u0940 \u0932\u0949\u0928 \u0918\u093E\u0938\ + \ \u0915\u093E\u091F\u0928\u0947 \u0915\u0940 \u092E\u0936\u0940\u0928 \u0909\ + \u0927\u093E\u0930 \u0932\u0940\u0964 (\u091C\u0940: \u091C\u0949\u0930\u094D\ + \u091C; \u090F\u091A: \u0939\u0947\u0915\u094D\u091F\u0930; \u090F\u0932: \u0939\ + \u0947\u0915\u094D\u091F\u0930 \u0915\u093E \u0932\u0949\u0928\u092E\u0942\u0935\ + \u0930; \u092C\u0940\u090F\u0915\u094D\u0938\u090F\u0915\u094D\u0938: \u090F\ + \u0915\u094D\u0938, \u091C\u0947\u0921 \u0938\u0947 \u0935\u093E\u0908 \u0909\ + \u0927\u093E\u0930 \u0932\u0947\u0924\u093E \u0939\u0948)" + - input_choice_list: + A: "\u092E\u0930\u0940\u0928\u093E \u090F\u0915 \u0921\u093E\u0902\u0938\u0930\ + \ \u0939\u0948\u0902. \u0915\u0941\u091B \u0915\u092E\u091C\u093C\u094B\u0930\ + \ \u0932\u094B\u0917 \u0928\u0930\u094D\u0924\u0915 \u0928\u0939\u0940\u0902\ + \ \u0939\u0948\u0902\u0964 \u092F\u093E \u0924\u094B \u0938\u092C \u0915\u0941\ + \u091B \u0915\u092E\u091C\u093C\u094B\u0930 \u0939\u0948 \u092F\u093E \u091C\ + \u0949\u0930\u094D\u091C\u093F\u092F\u093E \u0935\u0949\u0932\u0940\u092C\u0949\ + \u0932 \u0916\u0947\u0932\u0924\u0940 \u0939\u0948\u0964 \u0924\u094B \u0915\ + \u0941\u091B \u0935\u0949\u0932\u0940\u092C\u0949\u0932 \u0916\u0947\u0932\ + \u0924\u093E \u0939\u0948." + B: "\u092E\u0930\u0940\u0928\u093E \u090F\u0915 \u0921\u093E\u0902\u0938\u0930\ + \ \u0939\u0948\u0902. \u0915\u094B\u0908 \u0915\u092E\u091C\u094B\u0930 \u0928\ + \u0930\u094D\u0924\u0915 \u0928\u0939\u0940\u0902 \u0939\u0948. \u0939\u0930\ + \ \u0915\u094B\u0908 \u092F\u093E \u0924\u094B \u0915\u092E\u091C\u093C\u094B\ + \u0930 \u0939\u0948 \u092F\u093E \u0935\u0949\u0932\u0940\u092C\u0949\u0932\ + \ \u0916\u0947\u0932\u0924\u093E \u0939\u0948\u0964 \u0924\u094B \u0915\u0941\ + \u091B \u0935\u0949\u0932\u0940\u092C\u0949\u0932 \u0916\u0947\u0932\u0924\ + \u093E \u0939\u0948." + C: "\u092E\u0930\u0940\u0928\u093E \u090F\u0915 \u0921\u093E\u0902\u0938\u0930\ + \ \u0939\u0948\u0902. \u0915\u0941\u091B \u0915\u092E\u091C\u093C\u094B\u0930\ + \ \u0932\u094B\u0917 \u0928\u0930\u094D\u0924\u0915 \u0928\u0939\u0940\u0902\ + \ \u0939\u0948\u0902\u0964 \u0939\u0930 \u0915\u094B\u0908 \u092F\u093E \u0924\ + \u094B \u0915\u092E\u091C\u093C\u094B\u0930 \u0939\u0948 \u092F\u093E \u0935\ + \u0949\u0932\u0940\u092C\u0949\u0932 \u0916\u0947\u0932\u0924\u093E \u0939\ + \u0948\u0964 \u0924\u094B \u0915\u0941\u091B \u0935\u0949\u0932\u0940\u092C\ + \u0949\u0932 \u0916\u0947\u0932\u0924\u093E \u0939\u0948." + D: "\u092E\u0930\u0940\u0928\u093E \u090F\u0915 \u0921\u093E\u0902\u0938\u0930\ + \ \u0939\u0948\u0902. \u0915\u094B\u0908 \u0915\u092E\u091C\u094B\u0930 \u0928\ + \u0930\u094D\u0924\u0915 \u0928\u0939\u0940\u0902 \u0939\u0948. \u092F\u093E\ + \ \u0924\u094B \u0938\u092C \u0915\u0941\u091B \u0915\u092E\u091C\u093C\u094B\ + \u0930 \u0939\u0948 \u092F\u093E \u091C\u0949\u0930\u094D\u091C\u093F\u092F\ + \u093E \u0935\u0949\u0932\u0940\u092C\u0949\u0932 \u0916\u0947\u0932\u0924\ + \u0940 \u0939\u0948\u0964 \u0924\u094B \u0915\u0941\u091B \u0935\u0949\u0932\ + \u0940\u092C\u0949\u0932 \u0916\u0947\u0932\u0924\u093E \u0939\u0948." + input_correct_responses: + - D + input_question: "\u0935\u093F\u0927\u0947\u092F \u0924\u0930\u094D\u0915 \u092E\ + \u0947\u0902 \u0926\u093F\u090F \u0917\u090F \u0924\u0930\u094D\u0915\u094B\u0902\ + \ \u0915\u0940 \u0938\u0930\u094D\u0935\u094B\u0924\u094D\u0924\u092E \u0905\ + \u0902\u0917\u094D\u0930\u0947\u091C\u0940 \u0935\u094D\u092F\u093E\u0916\u094D\ + \u092F\u093E \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902\u0964\ + \ \u0921\u0940\u090F\u092E (\u2200x)(Wx \u2283 ~Dx) (\u2200x)Wx \u2228 Ag /\ + \ (\u2203x)Ax" + - input_choice_list: + A: "\u0924\u093E\u0930\u094D\u0915\u093F\u0915 \u0930\u0942\u092A \u0938\u0947\ + \ \u0938\u092E\u0924\u0941\u0932\u094D\u092F" + B: "\u0905\u0938\u0902\u0917\u0924" + C: "\u0928 \u0924\u094B \u0924\u093E\u0930\u094D\u0915\u093F\u0915 \u0930\u0942\ + \u092A \u0938\u0947 \u0938\u092E\u0915\u0915\u094D\u0937 \u0914\u0930 \u0928\ + \ \u0939\u0940 \u0935\u093F\u0930\u094B\u0927\u093E\u092D\u093E\u0938\u0940\ + , \u092C\u0932\u094D\u0915\u093F \u0938\u0941\u0938\u0902\u0917\u0924" + D: "\u0905\u0938\u0902\u0917\u0924" + input_correct_responses: + - C + input_question: "\u092A\u094D\u0930\u0938\u094D\u0924\u093E\u0935\u094B\u0902\ + \ \u0915\u0947 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092F\u0941\u0917\u094D\u092E\u094B\u0902 \u0915\u0947 \u0932\u093F\u090F\ + \ \u090F\u0915 \u092A\u0942\u0930\u094D\u0923 \u0938\u0924\u094D\u092F \u0924\ + \u093E\u0932\u093F\u0915\u093E \u0915\u093E \u0928\u093F\u0930\u094D\u092E\u093E\ + \u0923 \u0915\u0930\u0947\u0902\u0964 \u092B\u093F\u0930, \u0938\u0924\u094D\ + \u092F \u0924\u093E\u0932\u093F\u0915\u093E\u0913\u0902 \u0915\u093E \u0909\u092A\ + \u092F\u094B\u0917 \u0915\u0930\u0915\u0947 \u0928\u093F\u0930\u094D\u0927\u093E\ + \u0930\u093F\u0924 \u0915\u0930\u0947\u0902 \u0915\u093F \u0915\u094D\u092F\u093E\ + \ \u0915\u0925\u0928 \u0924\u093E\u0930\u094D\u0915\u093F\u0915 \u0930\u0942\ + \u092A \u0938\u0947 \u0938\u092E\u0915\u0915\u094D\u0937 \u092F\u093E \u0935\ + \u093F\u0930\u094B\u0927\u093E\u092D\u093E\u0938\u0940 \u0939\u0948\u0902\u0964\ + \ \u092F\u0926\u093F \u0928\u0939\u0940\u0902, \u0924\u094B \u0928\u093F\u0930\ + \u094D\u0927\u093E\u0930\u093F\u0924 \u0915\u0930\u0947\u0902 \u0915\u093F \u0935\ + \u0947 \u0938\u0941\u0938\u0902\u0917\u0924 \u0939\u0948\u0902 \u092F\u093E\ + \ \u0905\u0938\u0902\u0917\u0924\u0964 \u0905\u092A\u0928\u0947 \u0909\u0924\ + \u094D\u0924\u0930\u094B\u0902 \u0915\u093E \u0914\u091A\u093F\u0924\u094D\u092F\ + \ \u0938\u093F\u0926\u094D\u0927 \u0915\u0930\u0947\u0902. \u0908 \u2283 (\u090F\ + \u092B \xB7 \u0908) \u0914\u0930 ~\u0908 \xB7 \u090F\u092B" + - input_choice_list: + A: "(\u090F\u0932 \u2022 \u090F\u091A) \u2261 \u0906\u0908" + B: "(\u090F\u0932 \u2022 \u090F\u091A) \u2228 \u0906\u0908" + C: "\u090F\u0932 \u2022 (\u090F\u091A \u2228 \u0906\u0908)" + D: "\u090F\u0932 \u2022 (\u090F\u091A \u2283 \u0906\u0930)" + input_correct_responses: + - B + input_question: "\u092A\u0940\u090F\u0932 \u0915\u093E \u0926\u093F\u092F\u093E\ + \ \u0917\u092F\u093E \u0915\u094C\u0928 \u0938\u093E \u0938\u0942\u0924\u094D\ + \u0930 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u0935\u093E\ + \u0915\u094D\u092F \u0915\u093E \u0938\u092C\u0938\u0947 \u0905\u091A\u094D\u091B\ + \u093E \u092A\u094D\u0930\u0924\u0940\u0915 \u0939\u0948? \u0915\u091B\u0941\ + \u090F \u0932\u0902\u092C\u0947 \u0938\u092E\u092F \u0924\u0915 \u091C\u0940\ + \u0935\u093F\u0924 \u0930\u0939\u0924\u0947 \u0939\u0948\u0902 \u0914\u0930\ + \ \u0916\u0941\u0936 \u092A\u094D\u0930\u093E\u0923\u0940 \u0939\u0948\u0902\ + , \u091C\u092C \u0924\u0915 \u0915\u093F \u0935\u0947 \u0918\u093E\u092F\u0932\ + \ \u0928 \u0939\u094B\u0902\u0964" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_formal_logic +tag: mmlu_hi_llama_humanities_tasks +task: mmlu_hi_llama_formal_logic +task_alias: formal_logic diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_global_facts.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_global_facts.yaml new file mode 100644 index 0000000000000000000000000000000000000000..03235396e55cbd14122ddeab46f056cf1c0a01d3 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_global_facts.yaml @@ -0,0 +1,100 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0932\u094B\u0917 \u0905\u092A\u0928\u0947 \u092D\u0935\u093F\u0937\u094D\ + \u092F \u0914\u0930 \u0905\u092A\u0928\u0947 \u0926\u0947\u0936 \u092F\u093E\ + \ \u0926\u0941\u0928\u093F\u092F\u093E \u0915\u0947 \u092D\u0935\u093F\u0937\ + \u094D\u092F \u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902 \u0906\ + \u0936\u093E\u0935\u093E\u0926\u0940 \u0939\u094B\u0924\u0947 \u0939\u0948\ + \u0902\u0964" + B: "\u0932\u094B\u0917 \u0905\u092A\u0928\u0947 \u092D\u0935\u093F\u0937\u094D\ + \u092F \u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902 \u0906\u0936\ + \u093E\u0935\u093E\u0926\u0940 \u0939\u094B\u0924\u0947 \u0939\u0948\u0902\ + \ \u0932\u0947\u0915\u093F\u0928 \u0905\u092A\u0928\u0947 \u0926\u0947\u0936\ + \ \u092F\u093E \u0926\u0941\u0928\u093F\u092F\u093E \u0915\u0947 \u092D\u0935\ + \u093F\u0937\u094D\u092F \u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\ + \u0902 \u0928\u093F\u0930\u093E\u0936\u093E\u0935\u093E\u0926\u0940 \u0939\ + \u094B\u0924\u0947 \u0939\u0948\u0902\u0964" + C: "\u0932\u094B\u0917 \u0905\u092A\u0928\u0947 \u092D\u0935\u093F\u0937\u094D\ + \u092F \u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902 \u0928\u093F\ + \u0930\u093E\u0936\u093E\u0935\u093E\u0926\u0940 \u0939\u094B\u0924\u0947\ + \ \u0939\u0948\u0902 \u0932\u0947\u0915\u093F\u0928 \u0905\u092A\u0928\u0947\ + \ \u0926\u0947\u0936 \u092F\u093E \u0926\u0941\u0928\u093F\u092F\u093E \u0915\ + \u0947 \u092D\u0935\u093F\u0937\u094D\u092F \u0915\u0947 \u092C\u093E\u0930\ + \u0947 \u092E\u0947\u0902 \u0906\u0936\u093E\u0935\u093E\u0926\u0940 \u0939\ + \u094B\u0924\u0947 \u0939\u0948\u0902\u0964" + D: "\u0932\u094B\u0917 \u0905\u092A\u0928\u0947 \u092D\u0935\u093F\u0937\u094D\ + \u092F \u0914\u0930 \u0905\u092A\u0928\u0947 \u0926\u0947\u0936 \u092F\u093E\ + \ \u0926\u0941\u0928\u093F\u092F\u093E \u0915\u0947 \u092D\u0935\u093F\u0937\ + \u094D\u092F \u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902 \u0928\ + \u093F\u0930\u093E\u0936\u093E\u0935\u093E\u0926\u0940 \u0939\u094B\u0924\u0947\ + \ \u0939\u0948\u0902\u0964" + input_correct_responses: + - B + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u0915\u0925\u0928\u094B\u0902 \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\ + \u0928 \u0938\u093E \u092F\u0941\u0917\u094D\u092E \u0938\u0924\u094D\u092F\ + \ \u0939\u0948 (2019 \u0924\u0915)?" + - input_choice_list: + A: 31% + B: 46% + C: 61% + D: 76% + input_correct_responses: + - B + input_question: "2019 \u0924\u0915, \u0932\u0917\u092D\u0917 \u0915\u093F\u0924\ + \u0928\u0947 \u092A\u094D\u0930\u0924\u093F\u0936\u0924 \u0905\u092E\u0947\u0930\ + \u093F\u0915\u0940 \u0907\u0938 \u092C\u093E\u0924 \u0938\u0947 \u0938\u0939\ + \u092E\u0924 \u0939\u0948\u0902 \u0915\u093F \u0930\u093E\u091C\u094D\u092F\ + \ \u0938\u092D\u0940 \u0932\u094B\u0917\u094B\u0902 \u0915\u0947 \u0932\u093E\ + \u092D \u0915\u0947 \u0932\u093F\u090F \u091A\u0932\u093E\u092F\u093E \u091C\ + \u093E\u0924\u093E \u0939\u0948?" + - input_choice_list: + A: "\u092C\u0922\u093C \u0917\u092F\u093E, \u092C\u0922\u093C \u0917\u092F\u093E" + B: "\u092C\u0922\u093C\u093E \u0918\u091F\u093E" + C: "\u0918\u091F\u093E, \u092C\u0922\u093C\u093E" + D: "\u0918\u091F \u0917\u092F\u093E, \u0918\u091F \u0917\u092F\u093E" + input_correct_responses: + - B + input_question: "2015 \u0924\u0915, 1990 \u0915\u0947 \u092C\u093E\u0926 \u0938\ + \u0947 \u092F\u0942\u0930\u094B\u092A \u092E\u0947\u0902 \u0935\u0928\u094B\u0902\ + \ \u0915\u0940 \u0938\u0902\u0916\u094D\u092F\u093E ____ \u0939\u0948 \u0914\ + \u0930 \u0905\u092B\u094D\u0930\u0940\u0915\u093E \u0914\u0930 \u0905\u092E\u0947\ + \u0930\u093F\u0915\u093E \u092E\u0947\u0902 \u091C\u0902\u0917\u0932\u094B\u0902\ + \ \u0915\u0940 \u0938\u0902\u0916\u094D\u092F\u093E ____ \u0939\u0948\u0964" + - input_choice_list: + A: 38% + B: 53% + C: 68% + D: 83% + input_correct_responses: + - A + input_question: "2019 \u0924\u0915, \u0932\u0917\u092D\u0917 \u0915\u093F\u0924\ + \u0928\u0947 \u092A\u094D\u0930\u0924\u093F\u0936\u0924 \u0930\u0942\u0938\u093F\ + \u092F\u094B\u0902 \u0915\u093E \u0915\u0939\u0928\u093E \u0939\u0948 \u0915\ + \u093F \u0939\u092E\u093E\u0930\u0947 \u0926\u0947\u0936 \u092E\u0947\u0902\ + \ \u0938\u0930\u0915\u093E\u0930/\u0930\u093E\u091C\u094D\u092F \u0938\u0947\ + \u0902\u0938\u0930\u0936\u093F\u092A \u0915\u0947 \u092C\u093F\u0928\u093E \u0938\ + \u094D\u0935\u0924\u0902\u0924\u094D\u0930 \u092E\u0940\u0921\u093F\u092F\u093E\ + \ \u0915\u093E \u0939\u094B\u0928\u093E \u092C\u0939\u0941\u0924 \u092E\u0939\ + \u0924\u094D\u0935\u092A\u0942\u0930\u094D\u0923 \u0939\u0948?" + - input_choice_list: + A: 80% + B: 60% + C: 40% + D: 20% + input_correct_responses: + - A + input_question: "2017 \u0924\u0915, \u0906\u091C \u0926\u0941\u0928\u093F\u092F\ + \u093E \u0915\u0947 1-\u0935\u0930\u094D\u0937\u0940\u092F \u092C\u091A\u094D\ + \u091A\u094B\u0902 \u092E\u0947\u0902 \u0938\u0947 \u0915\u093F\u0924\u0928\u0947\ + \ \u092C\u091A\u094D\u091A\u094B\u0902 \u0915\u094B \u0915\u093F\u0938\u0940\ + \ \u092C\u0940\u092E\u093E\u0930\u0940 \u0915\u0947 \u0916\u093F\u0932\u093E\ + \u092B \u091F\u0940\u0915\u093E \u0932\u0917\u093E\u092F\u093E \u0917\u092F\u093E\ + \ \u0939\u0948? *" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_global_facts +tag: mmlu_hi_llama_other_tasks +task: mmlu_hi_llama_global_facts +task_alias: global_facts diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_biology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_biology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..dec26b1b2cf04827303b3d2488092a2ff795f797 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_biology.yaml @@ -0,0 +1,128 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0905\u0928\u0941\u0935\u093E\u0926" + B: "\u0935\u093F\u0915\u093E\u0930" + C: "\u0935\u093F\u0936\u093F\u0937\u094D\u091F \u092A\u093E\u0930\u0917\u092E\ + \u0928" + D: "\u092A\u0930\u093F\u0935\u0930\u094D\u0924\u0928" + input_correct_responses: + - A + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u092A\u0941\ + \u0928\u0903 \u0938\u0902\u092F\u094B\u091C\u0915 \u0921\u0940\u090F\u0928\u090F\ + \ \u092C\u0928\u093E\u0928\u0947 \u0915\u093E \u0924\u0930\u0940\u0915\u093E\ + \ \u0928\u0939\u0940\u0902 \u0939\u0948?" + - input_choice_list: + A: "\u090F\u0902\u091C\u093E\u0907\u092E \u0915\u0947 \u092A\u0940\u090F\u091A\ + \ \u0907\u0937\u094D\u091F\u0924\u092E \u0915\u094B \u092C\u0926\u0932\u0915\ + \u0930" + B: "\u0915\u094B\u0936\u093F\u0915\u093E \u092E\u0947\u0902 \u090F\u0902\u091C\ + \u093E\u0907\u092E \u0915\u093E \u0938\u094D\u0925\u093E\u0928 \u092C\u0926\ + \u0932\u0915\u0930" + C: "\u092A\u094D\u0930\u094B\u091F\u0940\u0928 \u0915\u093E \u0906\u0915\u093E\ + \u0930 \u092C\u0926\u0932\u0915\u0930" + D: "\u0938\u0915\u094D\u0930\u093F\u092F \u0938\u094D\u0925\u0932 \u0938\u0947\ + \ \u0926\u0942\u0930 \u0905\u092E\u0940\u0928\u094B \u090F\u0938\u093F\u0921\ + \ \u092A\u0930\u093F\u0935\u0930\u094D\u0924\u0928 \u090F\u0902\u091C\u093E\ + \u0907\u092E \u0915\u0940 \u0938\u092C\u094D\u0938\u091F\u094D\u0930\u0947\ + \u091F \u0935\u093F\u0936\u093F\u0937\u094D\u091F\u0924\u093E \u0915\u094B\ + \ \u0928\u0939\u0940\u0902 \u092C\u0926\u0932 \u0938\u0915\u0924\u093E \u0939\ + \u0948\u0964" + input_correct_responses: + - C + input_question: "\u090F\u0915 \u091C\u0940\u0935\u093E\u0923\u0941 \u090F\u0902\ + \u091C\u093E\u0907\u092E \u092E\u0947\u0902 \u0909\u0924\u094D\u092A\u0930\u093F\ + \u0935\u0930\u094D\u0924\u0928 \u0928\u0947 \u092A\u0939\u0932\u0947 \u0915\u0947\ + \ \u0927\u094D\u0930\u0941\u0935\u0940\u092F \u0905\u092E\u0940\u0928\u094B\ + \ \u090F\u0938\u093F\u0921 \u0915\u094B \u090F\u0915 \u0917\u0948\u0930-\u0927\ + \u094D\u0930\u0941\u0935\u0940\u092F \u0905\u092E\u0940\u0928\u094B \u090F\u0938\ + \u093F\u0921 \u092E\u0947\u0902 \u092C\u0926\u0932 \u0926\u093F\u092F\u093E\u0964\ + \ \u092F\u0939 \u0905\u092E\u0940\u0928\u094B \u090F\u0938\u093F\u0921 \u090F\ + \u0902\u091C\u093E\u0907\u092E \u0915\u0940 \u0938\u0915\u094D\u0930\u093F\u092F\ + \ \u0938\u093E\u0907\u091F \u0938\u0947 \u0926\u0942\u0930 \u090F\u0915 \u0938\ + \u093E\u0907\u091F \u092A\u0930 \u0938\u094D\u0925\u093F\u0924 \u0925\u093E\u0964\ + \ \u092F\u0939 \u0909\u0924\u094D\u092A\u0930\u093F\u0935\u0930\u094D\u0924\u0928\ + \ \u090F\u0902\u091C\u093E\u0907\u092E \u0915\u0940 \u0938\u092C\u094D\u0938\ + \u091F\u094D\u0930\u0947\u091F \u0935\u093F\u0936\u093F\u0937\u094D\u091F\u0924\ + \u093E \u0915\u094B \u0915\u0948\u0938\u0947 \u092C\u0926\u0932 \u0938\u0915\ + \u0924\u093E \u0939\u0948?" + - input_choice_list: + A: "\u092A\u094D\u0932\u093E\u091C\u094D\u092E\u093E \u091D\u093F\u0932\u094D\ + \u0932\u0940-\u0917\u094B\u0932\u094D\u091C\u0940 \u0909\u092A\u0915\u0930\ + \u0923-\u0930\u093E\u0907\u092C\u094B\u0938\u094B\u092E-\u0938\u094D\u0930\ + \u093E\u0935\u0940 \u092A\u0941\u091F\u093F\u0915\u093E-\u0930\u092B \u0908\ + \u0906\u0930" + B: "\u0930\u093E\u0907\u092C\u094B\u0938\u094B\u092E-\u0917\u0949\u0932\u094D\ + \u0917\u0940 \u0909\u092A\u0915\u0930\u0923-\u0916\u0941\u0930\u0926\u0930\ + \u093E \u0908\u0906\u0930-\u0938\u094D\u0930\u093E\u0935\u0940 \u092A\u0941\ + \u091F\u093F\u0915\u093E-\u092A\u094D\u0932\u093E\u091C\u094D\u092E\u093E\ + \ \u091D\u093F\u0932\u094D\u0932\u0940" + C: "\u092A\u094D\u0932\u093E\u091C\u094D\u092E\u093E \u091D\u093F\u0932\u094D\ + \u0932\u0940-\u0917\u094B\u0932\u094D\u091C\u0940 \u0909\u092A\u0915\u0930\ + \u0923-\u0930\u093E\u0907\u092C\u094B\u0938\u094B\u092E-\u0938\u094D\u0930\ + \u093E\u0935\u0940 \u092A\u0941\u091F\u093F\u0915\u093E-\u0930\u092B \u0908\ + \u0906\u0930" + D: "\u0930\u093E\u0907\u092C\u094B\u0938\u094B\u092E-\u0916\u0941\u0930\u0926\ + \u0930\u093E \u0908\u0906\u0930-\u0917\u0949\u0932\u094D\u0917\u0940 \u0924\ + \u0902\u0924\u094D\u0930-\u0938\u094D\u0930\u093E\u0935\u0940 \u092A\u0941\ + \u091F\u093F\u0915\u093E-\u092A\u094D\u0932\u093E\u091C\u094D\u092E\u093E\ + \ \u091D\u093F\u0932\u094D\u0932\u0940" + input_correct_responses: + - D + input_question: "\u092A\u0936\u0941 \u0915\u094B\u0936\u093F\u0915\u093E\u0913\ + \u0902 \u092E\u0947\u0902, \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\ + \u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u0938\ + \u092C\u0938\u0947 \u0938\u0902\u092D\u093E\u0935\u093F\u0924 \u092E\u093E\u0930\ + \u094D\u0917 \u0915\u093E \u092A\u094D\u0930\u0924\u093F\u0928\u093F\u0927\u093F\ + \u0924\u094D\u0935 \u0915\u0930\u0924\u093E \u0939\u0948 \u091C\u094B \u090F\ + \u0915 \u0938\u094D\u0930\u093E\u0935\u0940 \u092A\u094D\u0930\u094B\u091F\u0940\ + \u0928 \u090F\u0915 \u0915\u094B\u0936\u093F\u0915\u093E \u092E\u0947\u0902\ + \ \u0938\u0902\u0936\u094D\u0932\u0947\u0937\u093F\u0924 \u0939\u094B\u0928\u0947\ + \ \u092A\u0930 \u0932\u0947\u0924\u093E \u0939\u0948?" + - input_choice_list: + A: "\u091A\u0915\u094D\u0930\u0935\u093E\u0924" + B: "\u092A\u094D\u0930\u094B\u091F\u0940\u0928 \u0915\u093F\u0928\u0947\u0938\ + \u0947\u0938" + C: "\u091A\u094C\u0915\u093F\u092F\u094B\u0902" + D: "\u092B\u093C\u093E\u0907\u092C\u094D\u0930\u094B\u092C\u094D\u0932\u093E\ + \u0938\u094D\u091F \u0915\u094B\u0936\u093F\u0915\u093E\u090F\u0902" + input_correct_responses: + - D + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0915\u094B\u0936\u093F\ + \u0915\u093E \u0935\u093F\u092D\u093E\u091C\u0928 \u0915\u0947 \u0928\u093F\u092F\ + \u0902\u0924\u094D\u0930\u0923 \u092E\u0947\u0902 \u0936\u093E\u092E\u093F\u0932\ + \ \u0928\u0939\u0940\u0902 \u092E\u093E\u0928\u093E \u091C\u093E\u0924\u093E\ + \ \u0939\u0948?" + - input_choice_list: + A: "\u092A\u0915\u094D\u0937\u0940 \u0915\u0947 \u092A\u0902\u0916 \u0914\u0930\ + \ \u091A\u092E\u0917\u093E\u0926\u0921\u093C \u0915\u0947 \u092A\u0902\u0916" + B: "\u0935\u094D\u0939\u0947\u0932 \u0915\u0940 \u092B\u093C\u094D\u0932\u093F\ + \u092A\u0930\u094D\u0938 \u0914\u0930 \u0906\u0926\u092E\u0940 \u0915\u0940\ + \ \u092D\u0941\u091C\u093E\u090F\u0901" + C: "\u090F\u0915 \u092A\u094B\u0930\u092A\u094B\u0907\u091C\u093C \u0915\u0947\ + \ \u092A\u0947\u0915\u094D\u091F\u094B\u0930\u0932 \u092A\u0902\u0916 \u0914\ + \u0930 \u090F\u0915 \u0938\u0940\u0932 \u0915\u0947 \u092B\u093C\u094D\u0932\ + \u093F\u092A\u0930\u094D\u0938" + D: "\u090F\u0915 \u0915\u0940\u091F \u0915\u0947 \u0905\u0917\u0932\u0947 \u092A\ + \u0948\u0930 \u0914\u0930 \u090F\u0915 \u0915\u0941\u0924\u094D\u0924\u0947\ + \ \u0915\u0947 \u0905\u0917\u0932\u0947 \u092A\u0948\u0930" + input_correct_responses: + - D + input_question: "\u092A\u094D\u0930\u093E\u0915\u0943\u0924\u093F\u0915 \u091A\ + \u092F\u0928 \u0915\u0940 \u092A\u094D\u0930\u0915\u094D\u0930\u093F\u092F\u093E\ + \ \u0915\u0947 \u0938\u093E\u0915\u094D\u0937\u094D\u092F \u0915\u0947 \u0930\ + \u0942\u092A \u092E\u0947\u0902 \u0905\u0915\u094D\u0938\u0930 \u0938\u091C\u093E\ + \u0924\u0940\u092F \u0938\u0902\u0930\u091A\u0928\u093E\u0913\u0902 \u0915\u093E\ + \ \u0939\u0935\u093E\u0932\u093E \u0926\u093F\u092F\u093E \u091C\u093E\u0924\ + \u093E \u0939\u0948\u0964 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\ + \u0924 \u0915\u094B \u091B\u094B\u0921\u093C\u0915\u0930 \u0938\u092D\u0940\ + \ \u0938\u092E\u091C\u093E\u0924 \u0938\u0902\u0930\u091A\u0928\u093E\u0913\u0902\ + \ \u0915\u0947 \u0909\u0926\u093E\u0939\u0930\u0923 \u0939\u0948\u0902" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_biology +tag: mmlu_hi_llama_stem_tasks +task: mmlu_hi_llama_high_school_biology +task_alias: high_school_biology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_chemistry.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_chemistry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1a5326a938cd8ba7f4a4ef44fac8c97ccaace69a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_chemistry.yaml @@ -0,0 +1,101 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u090F\u091A\u0938\u0940\u090F\u0932" + B: H2SO3 + C: SO2 + D: "\u0905\u0932(NO3)3" + input_correct_responses: + - C + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u093F\u0938\u0947 \u0905\u092E\u094D\ + \u0932 \u090F\u0928\u0939\u093E\u0907\u0921\u094D\u0930\u093E\u0907\u0921 \u092E\ + \u093E\u0928\u093E \u091C\u093E\u0924\u093E \u0939\u0948?" + - input_choice_list: + A: "\u092A\u0940\u0938\u0940\u090F\u09324\u090F\u092B" + B: BF3 + C: "\u0938\u0940\u0913 2" + D: Si(CH3)4 + input_correct_responses: + - A + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u093F\u0938\u0938\u0947 \u0927\u094D\ + \u0930\u0941\u0935\u0940\u092F \u0905\u0923\u0941 \u0939\u094B\u0928\u0947 \u0915\ + \u0940 \u0909\u092E\u094D\u092E\u0940\u0926 \u0939\u0948?" + - input_choice_list: + A: "\u0938\u092D\u0940 \u0915\u094D\u0932\u094B\u0930\u093E\u0907\u0921, \u092C\ + \u094D\u0930\u094B\u092E\u093E\u0907\u0921 \u0914\u0930 \u0906\u092F\u094B\ + \u0921\u093E\u0907\u0921 \u0918\u0941\u0932\u0928\u0936\u0940\u0932 \u0939\ + \u0948\u0902" + B: "\u0938\u092D\u0940 \u0938\u0932\u094D\u092B\u0947\u091F \u0918\u0941\u0932\ + \u0928\u0936\u0940\u0932 \u0939\u0948\u0902" + C: "\u0938\u092D\u0940 \u0939\u093E\u0907\u0921\u094D\u0930\u0949\u0915\u094D\ + \u0938\u093E\u0907\u0921 \u0918\u0941\u0932\u0928\u0936\u0940\u0932 \u0939\ + \u0948\u0902" + D: "\u0938\u092D\u0940 \u0905\u092E\u094B\u0928\u093F\u092F\u092E \u092F\u0941\ + \u0915\u094D\u0924 \u092F\u094C\u0917\u093F\u0915 \u0918\u0941\u0932\u0928\ + \u0936\u0940\u0932 \u0939\u0948\u0902" + input_correct_responses: + - D + input_question: "\u0918\u0941\u0932\u0928\u0936\u0940\u0932\u0924\u093E \u0928\ + \u093F\u092F\u092E\u094B\u0902 \u0938\u0947, \u0928\u093F\u092E\u094D\u0928\u0932\ + \u093F\u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928\ + \ \u0938\u093E \u0938\u0924\u094D\u092F \u0939\u0948?" + - input_choice_list: + A: '3.89' + B: '7.78' + C: '5.78' + D: '2.33' + input_correct_responses: + - C + input_question: "\u090F\u0915 \u0928\u090F \u092F\u094C\u0917\u093F\u0915 \u0915\ + \u094B \u0938\u0902\u0936\u094D\u0932\u0947\u0937\u093F\u0924 \u0915\u093F\u092F\ + \u093E \u0917\u092F\u093E \u0939\u0948 \u0914\u0930 248 \u0917\u094D\u0930\u093E\ + \u092E/\u092E\u094B\u0932 \u0915\u0947 \u0926\u093E\u0922\u093C \u0926\u094D\ + \u0930\u0935\u094D\u092F\u092E\u093E\u0928 \u0915\u0947 \u0938\u093E\u0925 \u090F\ + \u0915 \u092E\u094B\u0928\u094B\u092A\u094D\u0930\u094B\u091F\u093F\u0915 \u090F\ + \u0938\u093F\u0921 \u092A\u093E\u092F\u093E \u0917\u092F\u093E \u0939\u0948\u0964\ + \ \u091C\u092C \u0907\u0938 \u0905\u092E\u094D\u0932 \u0915\u0947 0.0050 mol\ + \ \u0915\u094B 0.500 L \u092A\u093E\u0928\u0940 \u092E\u0947\u0902 \u0918\u094B\ + \u0932\u093E \u091C\u093E\u0924\u093E \u0939\u0948, \u0924\u094B pH 3.89 \u092E\ + \u093E\u092A\u093E \u091C\u093E\u0924\u093E \u0939\u0948\u0964 \u0907\u0938\ + \ \u0905\u092E\u094D\u0932 \u0915\u093E pKa \u0915\u094D\u092F\u093E \u0939\u0948\ + ?" + - input_choice_list: + A: "0.500 \u092E\u094B\u0932" + B: "1.00 \u092E\u094B\u0932" + C: "2.00 \u092E\u094B\u0932" + D: "3.00 \u092E\u094B\u0932" + input_correct_responses: + - C + input_question: "\u090F\u0915 \u0918\u094B\u0932 \u092E\u0947\u0902 2.00 \u092E\ + \u094B\u0932 \u090F\u0938\u093F\u091F\u093F\u0915 \u090F\u0938\u093F\u0921,\ + \ CH3COOH, \u0914\u0930 1.00 \u092E\u094B\u0932 \u0915\u0948\u0932\u094D\u0936\ + \u093F\u092F\u092E \u090F\u0938\u0940\u091F\u0947\u091F, Ca(CH3COO)2 \u0939\u094B\ + \u0924\u093E \u0939\u0948\u0964 \u0918\u094B\u0932 \u0915\u0947 \u092A\u0940\ + \u090F\u091A \u092E\u0947\u0902 \u0915\u0947\u0935\u0932 \u092E\u093E\u092E\u0942\ + \u0932\u0940 \u092C\u0926\u0932\u093E\u0935 \u0915\u0947 \u0938\u093E\u0925\ + \ \u0918\u094B\u0932 \u0925\u094B\u0921\u093C\u0940 \u092E\u093E\u0924\u094D\ + \u0930\u093E \u092E\u0947\u0902 \u092E\u091C\u092C\u0942\u0924 \u090F\u0938\u093F\ + \u0921 \u092F\u093E \u092E\u091C\u092C\u0942\u0924 \u0915\u094D\u0937\u093E\u0930\ + \ \u0915\u094B \u091C\u094B\u0921\u093C\u0928\u0947 \u0915\u093E \u0935\u093F\ + \u0930\u094B\u0927 \u0915\u0930\u0928\u0947 \u092E\u0947\u0902 \u0938\u0915\u094D\ + \u0937\u092E \u0939\u0948\u0964 \u092E\u091C\u092C\u0942\u0924 \u090F\u0938\u093F\ + \u0921 \u092F\u093E \u092E\u091C\u092C\u0942\u0924 \u0915\u094D\u0937\u093E\u0930\ + \ \u0915\u0940 \u092C\u0921\u093C\u0940 \u092E\u093E\u0924\u094D\u0930\u093E\ + \ \u092A\u0940\u090F\u091A \u092E\u0947\u0902 \u092E\u0939\u0924\u094D\u0935\ + \u092A\u0942\u0930\u094D\u0923 \u092A\u0930\u093F\u0935\u0930\u094D\u0924\u0928\ + \ \u0915\u093E \u0915\u093E\u0930\u0923 \u092C\u0928 \u0938\u0915\u0924\u0940\ + \ \u0939\u0948\u0964 \u092A\u0940\u090F\u091A \u092E\u0947\u0902 \u0909\u0932\ + \u094D\u0932\u0947\u0916\u0928\u0940\u092F \u092A\u0930\u093F\u0935\u0930\u094D\ + \u0924\u0928 \u0936\u0941\u0930\u0942 \u0939\u094B\u0928\u0947 \u0938\u0947\ + \ \u092A\u0939\u0932\u0947 \u0915\u093F\u0924\u0928\u0947 \u092E\u094B\u0932\ + \ \u0928\u093E\u0907\u091F\u094D\u0930\u093F\u0915 \u090F\u0938\u093F\u0921\ + , HNO3 \u092E\u093F\u0932\u093E\u092F\u093E \u091C\u093E \u0938\u0915\u0924\u093E\ + \ \u0939\u0948?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_chemistry +tag: mmlu_hi_llama_stem_tasks +task: mmlu_hi_llama_high_school_chemistry +task_alias: high_school_chemistry diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_computer_science.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_computer_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ddee6b0e381cfcec0b7ed65252f24e88e6a3d863 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_computer_science.yaml @@ -0,0 +1,201 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u090F\u0915 \u0915\u093E\u0930 \u0921\u094D\u0930\u093E\u0907\u0935\u0930\ + \ \u0915\u094B \u0938\u091A\u0947\u0924 \u0915\u0930\u0924\u0940 \u0939\u0948\ + \ \u0915\u093F \u0935\u0939 \u0915\u093F\u0938\u0940 \u0935\u0938\u094D\u0924\ + \u0941 \u0938\u0947 \u091F\u0915\u0930\u093E\u0928\u0947 \u0935\u093E\u0932\ + \u0940 \u0939\u0948\u0964" + B: "\u090F\u0915 \u092F\u093E\u0924\u094D\u0930\u0940 \u0905\u092A\u0928\u0940\ + \ \u0938\u094D\u0925\u093F\u0924\u093F \u092A\u0930 \u0928\u091C\u093C\u0930\ + \ \u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u091C\u0940\u092A\ + \u0940\u090F\u0938 \u0918\u0921\u093C\u0940 \u0915\u093E \u0909\u092A\u092F\ + \u094B\u0917 \u0915\u0930\u0924\u093E \u0939\u0948\u0964" + C: "\u090F\u0915 \u0930\u0947\u092B\u094D\u0930\u093F\u091C\u0930\u0947\u091F\ + \u0930 \u090F\u0915 \u0911\u0928\u0932\u093E\u0907\u0928 \u0921\u093F\u0932\ + \u0940\u0935\u0930\u0940 \u0938\u0947\u0935\u093E \u0938\u0947 \u0926\u0942\ + \u0927 \u0915\u093E \u0911\u0930\u094D\u0921\u0930 \u0926\u0947\u0924\u093E\ + \ \u0939\u0948 \u091C\u092C \u0930\u0947\u092B\u094D\u0930\u093F\u091C\u0930\ + \u0947\u091F\u0930 \u092E\u0947\u0902 \u0926\u0942\u0927 \u0932\u0917\u092D\ + \u0917 \u0916\u0924\u094D\u092E \u0939\u094B \u091C\u093E\u0924\u093E \u0939\ + \u0948\u0964" + D: "\u090F\u0915 \u0927\u093E\u0935\u0915 \u0905\u092A\u0928\u0940 \u0939\u0943\ + \u0926\u092F \u0917\u0924\u093F \u092A\u0930 \u0928\u091C\u093C\u0930 \u0930\ + \u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0911\u092A\u094D\u091F\ + \u093F\u0915\u0932 \u0938\u0947\u0902\u0938\u0930 \u0935\u093E\u0932\u0940\ + \ \u0918\u0921\u093C\u0940 \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\ + \u0930\u0924\u093E \u0939\u0948\u0964" + input_correct_responses: + - C + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u0907\u0902\ + \u091F\u0930\u0928\u0947\u091F \u0911\u092B \u0925\u093F\u0902\u0917\u094D\u0938\ + \ (IoT) \u092A\u0930 \u090F\u0915 \u0921\u093F\u0935\u093E\u0907\u0938 \u0915\ + \u0947 \u0909\u092A\u092F\u094B\u0917 \u0915\u093E \u0909\u0926\u093E\u0939\u0930\ + \u0923 \u0939\u0948?" + - input_choice_list: + A: "\u0905\u0928\u093E\u092E \u0935\u093F\u0902\u0921\u094B \u092E\u0947\u0902\ + \ \u092C\u094D\u0930\u093E\u0909\u091C\u093C \u0915\u0930\u0928\u0947 \u0935\ + \u093E\u0932\u0947 \u0909\u092A\u092F\u094B\u0917\u0915\u0930\u094D\u0924\u093E\ + \ \u0915\u0940 \u0917\u0924\u093F\u0935\u093F\u0927\u093F\u092F\u093E\u0901\ + \ \u0909\u0928 \u0932\u094B\u0917\u094B\u0902 \u0915\u094B \u0926\u093F\u0916\ + \u093E\u0908 \u0928\u0939\u0940\u0902 \u0926\u0947\u0902\u0917\u0940 \u091C\ + \u094B \u0909\u092A\u092F\u094B\u0917\u0915\u0930\u094D\u0924\u093E \u0915\ + \u0947 \u0928\u0947\u091F\u0935\u0930\u094D\u0915 \u0915\u0940 \u0928\u093F\ + \u0917\u0930\u093E\u0928\u0940 \u0915\u0930\u0924\u0947 \u0939\u0948\u0902\ + , \u091C\u0948\u0938\u0947 \u0915\u093F \u0938\u093F\u0938\u094D\u091F\u092E\ + \ \u092A\u094D\u0930\u0936\u093E\u0938\u0915\u0964" + B: "\u0905\u0928\u093E\u092E \u092C\u094D\u0930\u093E\u0909\u091C\u093C\u093F\ + \u0902\u0917 \u0938\u0924\u094D\u0930 \u0915\u0947 \u0926\u094C\u0930\u093E\ + \u0928 \u092D\u0935\u093F\u0937\u094D\u092F \u0915\u0940 \u0916\u0930\u0940\ + \u0926\u093E\u0930\u0940 \u0915\u0947 \u0932\u093F\u090F \u0935\u0947\u092C\ + \ \u0938\u094D\u091F\u094B\u0930 \u0915\u0947 \u0936\u0949\u092A\u093F\u0902\ + \u0917 \u0915\u093E\u0930\u094D\u091F \u092E\u0947\u0902 \u0930\u0916\u0947\ + \ \u0917\u090F \u0906\u0907\u091F\u092E \u0909\u092A\u092F\u094B\u0917\u0915\ + \u0930\u094D\u0924\u093E \u0915\u0947 \u0915\u0902\u092A\u094D\u092F\u0942\ + \u091F\u0930 \u092A\u0930 \u0938\u0939\u0947\u091C\u0947 \u0928\u0939\u0940\ + \u0902 \u091C\u093E\u090F\u0902\u0917\u0947\u0964" + C: "\u0905\u0928\u093E\u092E \u092C\u094D\u0930\u093E\u0909\u091C\u093C\u093F\ + \u0902\u0917 \u0938\u0924\u094D\u0930 \u0915\u0947 \u0926\u094C\u0930\u093E\ + \u0928 \u0915\u094B\u0908 \u0909\u092A\u092F\u094B\u0917\u0915\u0930\u094D\ + \u0924\u093E \u0908-\u092E\u0947\u0932 \u092F\u093E \u0938\u094B\u0936\u0932\ + \ \u092E\u0940\u0921\u093F\u092F\u093E \u0916\u093E\u0924\u094B\u0902 \u092E\ + \u0947\u0902 \u0932\u0949\u0917 \u0907\u0928 \u0928\u0939\u0940\u0902 \u0915\ + \u0930 \u092A\u093E\u090F\u0917\u093E\u0964" + D: "\u0905\u0928\u093E\u092E \u0935\u093F\u0902\u0921\u094B \u092E\u0947\u0902\ + \ \u092C\u094D\u0930\u093E\u0909\u091C\u093C \u0915\u0930\u0928\u0947 \u0935\ + \u093E\u0932\u093E \u0909\u092A\u092F\u094B\u0917\u0915\u0930\u094D\u0924\u093E\ + \ \u0935\u093F\u091C\u093C\u093F\u091F \u0915\u0940 \u0917\u0908 \u0915\u093F\ + \u0938\u0940 \u092D\u0940 \u0935\u0947\u092C \u0938\u093E\u0907\u091F \u092F\ + \u093E \u0921\u093E\u0909\u0928\u0932\u094B\u0921 \u0915\u0940 \u0917\u0908\ + \ \u092B\u093C\u093E\u0907\u0932\u094B\u0902 \u0938\u0947 \u0932\u0949\u0928\ + \u094D\u091A \u0939\u094B\u0928\u0947 \u0935\u093E\u0932\u0947 \u0935\u093E\ + \u092F\u0930\u0938 \u0938\u0947 \u0938\u0941\u0930\u0915\u094D\u0937\u093F\ + \u0924 \u0930\u0939\u0947\u0917\u093E\u0964" + input_correct_responses: + - B + input_question: "\u0915\u0908 \u0935\u0947\u092C \u092C\u094D\u0930\u093E\u0909\ + \u091C\u093C\u0930 \u0909\u092A\u092F\u094B\u0917\u0915\u0930\u094D\u0924\u093E\ + \u0913\u0902 \u0915\u094B \u0905\u0928\u093E\u092E \u0935\u093F\u0902\u0921\u094B\ + \ \u0916\u094B\u0932\u0928\u0947 \u0915\u0940 \u0905\u0928\u0941\u092E\u0924\ + \u093F \u0926\u0947\u0924\u0947 \u0939\u0948\u0902\u0964 \u0915\u093F\u0938\u0940\ + \ \u0905\u0928\u093E\u092E \u0935\u093F\u0902\u0921\u094B \u092E\u0947\u0902\ + \ \u092C\u094D\u0930\u093E\u0909\u091C\u093C\u093F\u0902\u0917 \u0938\u0924\u094D\ + \u0930 \u0915\u0947 \u0926\u094C\u0930\u093E\u0928, \u092C\u094D\u0930\u093E\ + \u0909\u091C\u093C\u0930 \u092C\u094D\u0930\u093E\u0909\u091C\u093C\u093F\u0902\ + \u0917 \u0907\u0924\u093F\u0939\u093E\u0938 \u092F\u093E \u0921\u093E\u0909\u0928\ + \u0932\u094B\u0921 \u0915\u0940 \u0917\u0908 \u092B\u093C\u093E\u0907\u0932\u094B\ + \u0902 \u0915\u0940 \u0938\u0942\u091A\u0940 \u0930\u093F\u0915\u0949\u0930\u094D\ + \u0921 \u0928\u0939\u0940\u0902 \u0915\u0930\u0924\u093E \u0939\u0948\u0964\ + \ \u091C\u092C \u0905\u0928\u093E\u092E \u0935\u093F\u0902\u0921\u094B \u092C\ + \u093E\u0939\u0930 \u0928\u093F\u0915\u0932\u0924\u0940 \u0939\u0948, \u0924\ + \u094B \u0938\u0924\u094D\u0930 \u0915\u0947 \u0926\u094C\u0930\u093E\u0928\ + \ \u092C\u0928\u093E\u0908 \u0917\u0908 \u0915\u0941\u0915\u0940\u091C\u093C\ + \ \u0939\u091F\u093E \u0926\u0940 \u091C\u093E\u0924\u0940 \u0939\u0948\u0902\ + \u0964 \u0905\u091C\u094D\u091E\u093E\u0924 \u0935\u093F\u0902\u0921\u094B \u092E\ + \u0947\u0902 \u0938\u0924\u094D\u0930 \u092C\u094D\u0930\u093E\u0909\u091C\u093C\ + \ \u0915\u0930\u0928\u0947 \u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\ + \u0902 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u092E\u0947\ + \u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u0915\u0925\u0928 \u0938\ + \u0924\u094D\u092F \u0939\u0948?" + - input_choice_list: + A: "\u0917\u0932\u0924\u0940" + B: "\u090F\u092C\u0940\u0938\u0940" + C: "\u0938\u0940\u092C\u0940\u090F" + D: "\u0938\u0940" + input_correct_responses: + - C + input_question: "\u092A\u093E\u092F\u0925\u0928 3 \u092E\u0947\u0902 "\u090F\ + \u092C\u0940\u0938\u0940"[::-1] \u0915\u093E \u0906\u0909\u091F\u092A\u0941\ + \u091F \u0915\u094D\u092F\u093E \u0939\u0948?" + - input_choice_list: + A: "\u092B\u093C\u093E\u0915\u094D\u0938\u0924\u094D\u0930\u094B\u091F" + B: "\u0939\u094B\u091F\u0932" + C: "\u0928\u0935\u0902\u092C\u0930" + D: "\u092F\u093E\u0902\u0915\u0940" + input_correct_responses: + - C + input_question: "\u0928\u0940\u091A\u0947 \u0926\u093F\u090F \u0917\u090F \u092A\ + \u094D\u0930\u094B\u0917\u094D\u0930\u093E\u092E \u092E\u0947\u0902, x \u0915\ + \u093E \u092A\u094D\u0930\u093E\u0930\u0902\u092D\u093F\u0915 \u092E\u093E\u0928\ + \ 5 \u0939\u0948 \u0914\u0930 y \u0915\u093E \u092A\u094D\u0930\u093E\u0930\u0902\ + \u092D\u093F\u0915 \u092E\u093E\u0928 10 \u0939\u0948\u0964 IF (X < O) {\ + \ \u0921\u093F\u0938\u094D\u092A\u094D\u0932\u0947 ("\u092B\u0949\u0915\ + \u094D\u0938\u091F\u094D\u0930\u0949\u091F") } ELSE { IF (X > y) { \u0921\ + \u093F\u0938\u094D\u092A\u094D\u0932\u0947 ("\u0939\u094B\u091F\u0932")\ + \ } ELSE { IF (y > O) { DISPLAY ("\u0928\u0935\u0902\u092C\u0930")\ + \ } ELSE { DISPLAY ("\u092F\u093E\u0902\u0915\u0940") } } } \u092A\ + \u094D\u0930\u094B\u0917\u094D\u0930\u093E\u092E \u091A\u0932\u093E\u0928\u0947\ + \ \u0915\u0947 \u092A\u0930\u093F\u0923\u093E\u092E\u0938\u094D\u0935\u0930\u0942\ + \u092A \u0915\u094D\u092F\u093E \u092A\u094D\u0930\u0926\u0930\u094D\u0936\u093F\ + \u0924 \u0939\u094B\u0924\u093E \u0939\u0948?" + - input_choice_list: + A: "\u091A\u0930\u0923 3: \u0938\u094D\u0925\u093F\u0924\u093F \u0915\u093E\ + \ \u092E\u093E\u0928 1 \u092C\u0922\u093C\u093E\u090F\u0901\u0964 \u091A\u0930\ + \u0923 4: \u091A\u0930\u0923 2 \u0914\u0930 3 \u0915\u094B \u0924\u092C \u0924\ + \u0915 \u0926\u094B\u0939\u0930\u093E\u090F\u0901 \u091C\u092C \u0924\u0915\ + \ \u0915\u093F \u0917\u093F\u0928\u0924\u0940 \u0915\u093E \u092E\u093E\u0928\ + \ 100 \u0938\u0947 \u0905\u0927\u093F\u0915 \u0928 \u0939\u094B \u091C\u093E\ + \u090F\u0964" + B: "\u091A\u0930\u0923 3: \u0938\u094D\u0925\u093F\u0924\u093F \u0915\u093E\ + \ \u092E\u093E\u0928 1 \u092C\u0922\u093C\u093E\u090F\u0901\u0964 \u091A\u0930\ + \u0923 4: \u091A\u0930\u0923 2 \u0914\u0930 3 \u0915\u094B \u0924\u092C \u0924\ + \u0915 \u0926\u094B\u0939\u0930\u093E\u090F\u0901 \u091C\u092C \u0924\u0915\ + \ \u0915\u093F \u0938\u094D\u0925\u093F\u0924\u093F \u0915\u093E \u092E\u093E\ + \u0928 n \u0938\u0947 \u0905\u0927\u093F\u0915 \u0928 \u0939\u094B \u091C\u093E\ + \u090F\u0964" + C: "\u091A\u0930\u0923 3: \u091A\u0930\u0923 2 \u0915\u094B \u0924\u092C \u0924\ + \u0915 \u0926\u094B\u0939\u0930\u093E\u090F\u0901 \u091C\u092C \u0924\u0915\ + \ \u0917\u093F\u0928\u0924\u0940 \u0915\u093E \u092E\u093E\u0928 100 \u0938\ + \u0947 \u0905\u0927\u093F\u0915 \u0928 \u0939\u094B \u091C\u093E\u090F\u0964\ + \ \u091A\u0930\u0923 4: \u0938\u094D\u0925\u093F\u0924\u093F \u0915\u093E\ + \ \u092E\u093E\u0928 1 \u0938\u0947 \u092C\u0922\u093C\u093E\u090F\u0901\u0964" + D: "\u091A\u0930\u0923 3: \u091A\u0930\u0923 2 \u0915\u094B \u0924\u092C \u0924\ + \u0915 \u0926\u094B\u0939\u0930\u093E\u090F\u0901 \u091C\u092C \u0924\u0915\ + \ \u0938\u094D\u0925\u093F\u0924\u093F \u0915\u093E \u092E\u093E\u0928 n \u0938\ + \u0947 \u0905\u0927\u093F\u0915 \u0928 \u0939\u094B \u091C\u093E\u090F\u0964\ + \ \u091A\u0930\u0923 4: \u0917\u093F\u0928\u0924\u0940 \u0915\u093E \u092E\ + \u093E\u0928 1 \u092C\u0922\u093C\u093E\u090F\u0901\u0964" + input_correct_responses: + - D + input_question: "\u0938\u0902\u0916\u094D\u092F\u093E\u0913\u0902 \u0915\u0940\ + \ \u0938\u0942\u091A\u0940 \u092E\u0947\u0902 n \u0924\u0924\u094D\u0935 \u0939\ + \u094B\u0924\u0947 \u0939\u0948\u0902, \u091C\u094B 1 \u0938\u0947 n \u0924\u0915\ + \ \u0905\u0928\u0941\u0915\u094D\u0930\u092E\u093F\u0924 \u0939\u094B\u0924\u0947\ + \ \u0939\u0948\u0902\u0964 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\ + \u0924 \u090F\u0932\u094D\u0917\u094B\u0930\u093F\u0926\u092E \u0915\u093E \u0909\ + \u0926\u094D\u0926\u0947\u0936\u094D\u092F \u0938\u0942\u091A\u0940 \u092E\u0947\ + \u0902 \u0909\u0928 \u0924\u0924\u094D\u0935\u094B\u0902 \u0915\u0940 \u0938\ + \u0902\u0916\u094D\u092F\u093E \u092A\u094D\u0930\u0926\u0930\u094D\u0936\u093F\ + \u0924 \u0915\u0930\u0928\u093E \u0939\u0948 \u091C\u093F\u0928\u0915\u093E\ + \ \u092E\u093E\u0928 100 \u0938\u0947 \u0905\u0927\u093F\u0915 \u0939\u0948\u0964\ + \ \u090F\u0932\u094D\u0917\u094B\u0930\u093F\u0926\u092E \u091A\u0930 \u0917\ + \u093F\u0928\u0924\u0940 \u0914\u0930 \u0938\u094D\u0925\u093F\u0924\u093F \u0915\ + \u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0924\u093E \u0939\u0948\u0964\ + \ \u091A\u0930\u0923 3 \u0914\u0930 4 \u0917\u093E\u092F\u092C \u0939\u0948\u0902\ + \u0964 \u091A\u0930\u0923 1: \u0917\u093F\u0928\u0924\u0940 \u0915\u094B 0 \u0914\ + \u0930 \u0938\u094D\u0925\u093F\u0924\u093F \u0915\u094B 1 \u092A\u0930 \u0938\ + \u0947\u091F \u0915\u0930\u0947\u0902\u0964 \u091A\u0930\u0923 2: \u092F\u0926\ + \u093F \u0938\u0942\u091A\u0915\u093E\u0902\u0915 \u0938\u094D\u0925\u093F\u0924\ + \u093F \u092A\u0930 \u0924\u0924\u094D\u0935 \u0915\u093E \u092E\u093E\u0928\ + \ 100 \u0938\u0947 \u0905\u0927\u093F\u0915 \u0939\u0948, \u0924\u094B \u0917\ + \u093F\u0928\u0924\u0940 \u0915\u093E \u092E\u093E\u0928 1 \u0938\u0947 \u092C\ + \u0922\u093C\u093E\u090F\u0901\u0964 \u091A\u0930\u0923 3: (\u0917\u093E\u092F\ + \u092C \u091A\u0930\u0923) \u091A\u0930\u0923 4: (\u0932\u093E\u092A\u0924\u093E\ + \ \u091A\u0930\u0923) ) \u091A\u0930\u0923 5: \u0917\u093F\u0928\u0924\u0940\ + \ \u0915\u093E \u092E\u093E\u0928 \u092A\u094D\u0930\u0926\u0930\u094D\u0936\ + \u093F\u0924 \u0915\u0930\u0947\u0902\u0964 \u091A\u0930\u0923 3 \u0914\u0930\ + \ 4 \u0915\u094B \u092A\u094D\u0930\u0924\u093F\u0938\u094D\u0925\u093E\u092A\ + \u093F\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0928\ + \u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\ + \u0947 \u0915\u093F\u0938\u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u093F\ + \u092F\u093E \u091C\u093E \u0938\u0915\u0924\u093E \u0939\u0948 \u0924\u093E\ + \u0915\u093F \u090F\u0932\u094D\u0917\u094B\u0930\u093F\u0925\u094D\u092E \u0907\ + \u091A\u094D\u091B\u093F\u0924 \u0915\u0947 \u0905\u0928\u0941\u0938\u093E\u0930\ + \ \u0915\u093E\u092E \u0915\u0930\u0947?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_computer_science +tag: mmlu_hi_llama_stem_tasks +task: mmlu_hi_llama_high_school_computer_science +task_alias: high_school_computer_science diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_european_history.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_european_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ae2cb3ad8006181480778a434ded5894ab65cab2 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_european_history.yaml @@ -0,0 +1,734 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u091C\u094C\u0902 - \u091C\u093E\u0915 \u0930\u0942\u0938\u094B" + B: "\u092C\u0948\u0930\u0928 \u092E\u094B\u0902\u091F\u0947\u0938\u094D\u0915\ + \u094D\u092F\u0942" + C: "\u092E\u0948\u0930\u0940 \u0935\u094B\u0932\u0938\u094D\u091F\u094B\u0928\ + \u0915\u094D\u0930\u093E\u092B\u093C\u094D\u091F" + D: "\u090F\u0921\u092E \u0938\u094D\u092E\u093F\u0925" + input_correct_responses: + - B + input_question: "\u092F\u0939 \u092A\u094D\u0930\u0936\u094D\u0928 \u0928\u093F\ + \u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u091C\u093E\u0928\u0915\u093E\ + \u0930\u0940 \u0915\u094B \u0938\u0902\u0926\u0930\u094D\u092D\u093F\u0924 \u0915\ + \u0930\u0924\u093E \u0939\u0948\u0964 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\ + \u0916\u093F\u0924 \u0905\u0902\u0936 \u090F\u0915 \u092A\u0941\u0938\u094D\u0924\ + \u093F\u0915\u093E \u0938\u0947 \u0939\u0948\u0964 \u0906\u092A \u092E\u0947\ + \u0930\u0947 \u0932\u093F\u090F \u092F\u0939 \u092F\u093E\u0926 \u0930\u0916\ + \u0928\u0947 \u0915\u093E \u0928\u094D\u092F\u093E\u092F \u0915\u0930\u0947\u0902\ + \u0917\u0947 \u0915\u093F \u092E\u0948\u0902\u0928\u0947 \u0939\u092E\u0947\u0936\ + \u093E \u092A\u094D\u0930\u0924\u094D\u092F\u0947\u0915 \u0935\u094D\u092F\u0915\ + \u094D\u0924\u093F \u0915\u0940 \u0905\u092A\u0928\u0940 \u0930\u093E\u092F\ + \ \u0915\u0947 \u0905\u0927\u093F\u0915\u093E\u0930 \u0915\u093E \u092A\u0941\ + \u0930\u091C\u094B\u0930 \u0938\u092E\u0930\u094D\u0925\u0928 \u0915\u093F\u092F\ + \u093E \u0939\u0948, \u092D\u0932\u0947 \u0939\u0940 \u0935\u0939 \u0930\u093E\ + \u092F \u092E\u0947\u0930\u0940 \u0930\u093E\u092F \u0938\u0947 \u0915\u093F\ + \u0924\u0928\u0940 \u0939\u0940 \u092D\u093F\u0928\u094D\u0928 \u0915\u094D\u092F\ + \u094B\u0902 \u0928 \u0939\u094B\u0964 \u0935\u0939 \u091C\u094B \u0926\u0942\ + \u0938\u0930\u0947 \u0915\u094B \u0907\u0938 \u0905\u0927\u093F\u0915\u093E\u0930\ + \ \u0938\u0947 \u0935\u0902\u091A\u093F\u0924 \u0915\u0930\u0924\u093E \u0939\ + \u0948, \u0935\u0939 \u0938\u094D\u0935\u092F\u0902 \u0915\u094B \u0905\u092A\ + \u0928\u0940 \u0935\u0930\u094D\u0924\u092E\u093E\u0928 \u0930\u093E\u092F \u0915\ + \u093E \u0917\u0941\u0932\u093E\u092E \u092C\u0928\u093E \u0932\u0947\u0924\u093E\ + \ \u0939\u0948, \u0915\u094D\u092F\u094B\u0902\u0915\u093F \u0935\u0939 \u0938\ + \u094D\u0935\u092F\u0902 \u0915\u094B \u0907\u0938\u0947 \u092C\u0926\u0932\u0928\ + \u0947 \u0915\u093E \u0905\u0927\u093F\u0915\u093E\u0930 \u0928\u0939\u0940\u0902\ + \ \u0926\u0947\u0924\u093E \u0939\u0948\u0964 \u0939\u0930 \u092A\u094D\u0930\ + \u0915\u093E\u0930 \u0915\u0940 \u0924\u094D\u0930\u0941\u091F\u093F\u092F\u094B\ + \u0902 \u0915\u0947 \u0935\u093F\u0930\u0941\u0926\u094D\u0927 \u0938\u092C\u0938\ + \u0947 \u092A\u094D\u0930\u092C\u0932 \u0939\u0925\u093F\u092F\u093E\u0930 \u0924\ + \u0930\u094D\u0915 \u0939\u0948\u0964 \u092E\u0948\u0902\u0928\u0947 \u0915\u092D\ + \u0940 \u092D\u0940 \u0915\u093F\u0938\u0940 \u0905\u0928\u094D\u092F \u0915\ + \u093E \u0909\u092A\u092F\u094B\u0917 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\ + \u093E \u0939\u0948, \u0914\u0930 \u092E\u0941\u091D\u0947 \u0935\u093F\u0936\ + \u094D\u0935\u093E\u0938 \u0939\u0948 \u0915\u093F \u092E\u0948\u0902 \u0915\ + \u092D\u0940 \u092D\u0940 \u0907\u0938\u0915\u093E \u0909\u092A\u092F\u094B\u0917\ + \ \u0928\u0939\u0940\u0902 \u0915\u0930\u0942\u0902\u0917\u093E\u0964 \u0905\ + \u092C \u091C\u094B \u092A\u0930\u093F\u0938\u094D\u0925\u093F\u0924\u093F \u092B\ + \u094D\u0930\u093E\u0902\u0938 \u092E\u0947\u0902 \u0918\u091F\u093F\u0924 \u0939\ + \u0941\u0908 \u0939\u0948, \u0909\u0938\u092E\u0947\u0902 \u092A\u094C\u0930\ + \u094B\u0939\u093F\u0924\u094D\u092F \u0915\u0940 \u0938\u0902\u092A\u0942\u0930\ + \u094D\u0923 \u0930\u093E\u0937\u094D\u091F\u094D\u0930\u0940\u092F \u0935\u094D\ + \u092F\u0935\u0938\u094D\u0925\u093E \u0914\u0930 \u0927\u0930\u094D\u092E \u0915\ + \u0940 \u092C\u093E\u0927\u094D\u092F\u0915\u093E\u0930\u0940 \u092A\u094D\u0930\ + \u0923\u093E\u0932\u093F\u092F\u094B\u0902 \u0924\u0925\u093E \u0906\u0938\u094D\ + \u0925\u093E \u0915\u0947 \u092C\u093E\u0927\u094D\u092F\u0915\u093E\u0930\u0940\ + \ \u0905\u0928\u0941\u091A\u094D\u091B\u0947\u0926\u094B\u0902 \u0938\u0947\ + \ \u091C\u0941\u0921\u093C\u0940 \u0939\u0930 \u091A\u0940\u091C \u0915\u094B\ + \ \u092A\u0942\u0930\u0940 \u0924\u0930\u0939 \u0938\u0947 \u0916\u0924\u094D\ + \u092E \u0915\u0930 \u0926\u093F\u092F\u093E \u0917\u092F\u093E \u0939\u0948\ + , \u0909\u0938\u0928\u0947 \u0928 \u0915\u0947\u0935\u0932 \u092E\u0947\u0930\ + \u0947 \u0907\u0930\u093E\u0926\u0947 \u0915\u094B \u0915\u092E\u091C\u094B\u0930\ + \ \u0915\u0930 \u0926\u093F\u092F\u093E \u0939\u0948, \u092C\u0932\u094D\u0915\ + \u093F \u0907\u0938 \u0915\u093E\u092E \u0915\u094B \u0905\u0902\u091C\u093E\ + \u092E \u0926\u093F\u092F\u093E \u0939\u0948\u0964 \u092F\u0939 \u0905\u0924\ + \u094D\u092F\u0927\u093F\u0915 \u0906\u0935\u0936\u094D\u092F\u0915 \u0939\u0948\ + , \u0910\u0938\u093E \u0928 \u0939\u094B \u0915\u093F \u0905\u0902\u0927\u0935\ + \u093F\u0936\u094D\u0935\u093E\u0938, \u0938\u0930\u0915\u093E\u0930 \u0915\u0940\ + \ \u091D\u0942\u0920\u0940 \u092A\u094D\u0930\u0923\u093E\u0932\u093F\u092F\u094B\ + \u0902 \u0914\u0930 \u091D\u0942\u0920\u0947 \u0927\u0930\u094D\u092E\u0936\u093E\ + \u0938\u094D\u0924\u094D\u0930 \u0915\u0947 \u0938\u093E\u092E\u093E\u0928\u094D\ + \u092F \u0935\u093F\u0928\u093E\u0936 \u092E\u0947\u0902, \u0939\u092E \u0928\ + \u0948\u0924\u093F\u0915\u0924\u093E, \u092E\u093E\u0928\u0935\u0924\u093E \u0914\ + \u0930 \u0938\u0924\u094D\u092F \u0927\u0930\u094D\u092E\u0936\u093E\u0938\u094D\ + \u0924\u094D\u0930 \u0915\u0940 \u0926\u0943\u0937\u094D\u091F\u093F \u0916\u094B\ + \ \u0926\u0947\u0902\u0964 \u092E\u0948\u0902 \u090F\u0915 \u0908\u0936\u094D\ + \u0935\u0930 \u092E\u0947\u0902 \u0935\u093F\u0936\u094D\u0935\u093E\u0938 \u0915\ + \u0930\u0924\u093E \u0939\u0942\u0902, \u0914\u0930 \u0928\u0939\u0940\u0902\ + ; \u0914\u0930 \u092E\u0948\u0902 \u0907\u0938 \u091C\u0940\u0935\u0928 \u0938\ + \u0947 \u092A\u0930\u0947 \u0916\u0941\u0936\u0940 \u0915\u0940 \u0906\u0936\ + \u093E \u0915\u0930\u0924\u093E \u0939\u0942\u0902\u0964 \u092E\u0948\u0902\ + \ \u092E\u0928\u0941\u0937\u094D\u092F \u0915\u0940 \u0938\u092E\u093E\u0928\ + \u0924\u093E \u092E\u0947\u0902 \u0935\u093F\u0936\u094D\u0935\u093E\u0938 \u0915\ + \u0930\u0924\u093E \u0939\u0942\u0901; \u0914\u0930 \u092E\u0947\u0930\u093E\ + \ \u092E\u093E\u0928\u0928\u093E \u0939\u0948 \u0915\u093F \u0927\u093E\u0930\ + \u094D\u092E\u093F\u0915 \u0915\u0930\u094D\u0924\u0935\u094D\u092F\u094B\u0902\ + \ \u092E\u0947\u0902 \u0928\u094D\u092F\u093E\u092F \u0915\u0930\u0928\u093E\ + , \u0926\u092F\u093E \u0938\u0947 \u092A\u094D\u0930\u0947\u092E \u0915\u0930\ + \u0928\u093E \u0914\u0930 \u0905\u092A\u0928\u0947 \u0938\u093E\u0925\u0940\ + \ \u092A\u094D\u0930\u093E\u0923\u093F\u092F\u094B\u0902 \u0915\u094B \u0916\ + \u0941\u0936 \u0915\u0930\u0928\u0947 \u0915\u093E \u092A\u094D\u0930\u092F\u093E\ + \u0938 \u0915\u0930\u0928\u093E \u0936\u093E\u092E\u093F\u0932 \u0939\u0948\u0964\ + \ \u092E\u0948\u0902 \u092F\u0939\u0942\u0926\u0940 \u091A\u0930\u094D\u091A\ + , \u0930\u094B\u092E\u0928 \u091A\u0930\u094D\u091A, \u0917\u094D\u0930\u0940\ + \u0915 \u091A\u0930\u094D\u091A, \u0924\u0941\u0930\u094D\u0915\u0940 \u091A\ + \u0930\u094D\u091A, \u092A\u094D\u0930\u094B\u091F\u0947\u0938\u094D\u091F\u0947\ + \u0902\u091F \u091A\u0930\u094D\u091A \u092F\u093E \u0915\u093F\u0938\u0940\ + \ \u092D\u0940 \u091A\u0930\u094D\u091A \u0926\u094D\u0935\u093E\u0930\u093E\ + \ \u092A\u094D\u0930\u0924\u093F\u092A\u093E\u0926\u093F\u0924 \u092A\u0902\u0925\ + \ \u092E\u0947\u0902 \u0935\u093F\u0936\u094D\u0935\u093E\u0938 \u0928\u0939\ + \u0940\u0902 \u0915\u0930\u0924\u093E, \u091C\u093F\u0938\u0947 \u092E\u0948\ + \u0902 \u091C\u093E\u0928\u0924\u093E \u0939\u0942\u0902\u0964 \u092E\u0947\u0930\ + \u093E \u0905\u092A\u0928\u093E \u092E\u0928 \u0939\u0940 \u092E\u0947\u0930\ + \u093E \u0905\u092A\u0928\u093E \u091A\u0930\u094D\u091A \u0939\u0948\u0964\ + \ \u091A\u0930\u094D\u091A\u094B\u0902 \u0915\u0940 \u0938\u092D\u0940 \u0930\ + \u093E\u0937\u094D\u091F\u094D\u0930\u0940\u092F \u0938\u0902\u0938\u094D\u0925\ + \u093E\u090F\u0901, \u091A\u093E\u0939\u0947 \u092F\u0939\u0942\u0926\u0940\ + \ \u0939\u094B\u0902, \u0908\u0938\u093E\u0908 \u0939\u094B\u0902 \u092F\u093E\ + \ \u0924\u0941\u0930\u094D\u0915\u0940 \u0939\u094B\u0902, \u092E\u0941\u091D\ + \u0947 \u092E\u093E\u0928\u0935\u0940\u092F \u0906\u0935\u093F\u0937\u094D\u0915\ + \u093E\u0930\u094B\u0902 \u0915\u0947 \u0905\u0932\u093E\u0935\u093E \u0914\u0930\ + \ \u0915\u0941\u091B \u0928\u0939\u0940\u0902 \u0932\u0917\u0924\u0940\u0902\ + , \u091C\u094B \u092E\u093E\u0928\u0935 \u091C\u093E\u0924\u093F \u0915\u094B\ + \ \u092D\u092F\u092D\u0940\u0924 \u0915\u0930\u0928\u0947 \u0914\u0930 \u0917\ + \u0941\u0932\u093E\u092E \u092C\u0928\u093E\u0928\u0947 \u0924\u0925\u093E \u0938\ + \u0924\u094D\u0924\u093E \u0914\u0930 \u0932\u093E\u092D \u092A\u0930 \u090F\ + \u0915\u093E\u0927\u093F\u0915\u093E\u0930 \u0938\u094D\u0925\u093E\u092A\u093F\ + \u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092C\u0928\ + \u093E\u0908 \u0917\u0908 \u0939\u0948\u0902\u0964 \u0907\u0938 \u0918\u094B\ + \u0937\u0923\u093E \u0938\u0947 \u092E\u0947\u0930\u093E \u0924\u093E\u0924\u094D\ + \u092A\u0930\u094D\u092F \u0909\u0928 \u0932\u094B\u0917\u094B\u0902 \u0915\u0940\ + \ \u0928\u093F\u0902\u0926\u093E \u0915\u0930\u0928\u093E \u0928\u0939\u0940\ + \u0902 \u0939\u0948 \u091C\u094B \u0905\u0928\u094D\u092F\u0925\u093E \u092E\ + \u093E\u0928\u0924\u0947 \u0939\u0948\u0902; \u0909\u0928\u094D\u0939\u0947\u0902\ + \ \u0905\u092A\u0928\u0947 \u0935\u093F\u0936\u094D\u0935\u093E\u0938 \u092A\ + \u0930 \u0909\u0924\u0928\u093E \u0939\u0940 \u0905\u0927\u093F\u0915\u093E\u0930\ + \ \u0939\u0948 \u091C\u093F\u0924\u0928\u093E \u092E\u0941\u091D\u0947 \u0939\ + \u0948\u0964 \u2014\u0925\u0949\u092E\u0938 \u092A\u0947\u0928, \u0926 \u090F\ + \u091C \u0911\u092B \u0930\u0940\u091C\u093C\u0928, 1794-1795 \u0928\u093F\u092E\ + \u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\ + \u093F\u0938 \u092A\u094D\u0930\u092C\u0941\u0926\u094D\u0927 \u0926\u093E\u0930\ + \u094D\u0936\u0928\u093F\u0915 \u0928\u0947 \u0938\u0924\u094D\u0924\u093E \u0915\ + \u0947 \u0926\u0941\u0930\u0941\u092A\u092F\u094B\u0917 \u0938\u0947 \u092C\u091A\ + \u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0938\u0930\u0915\u093E\u0930\ + \ \u0915\u0947 \u0932\u093F\u090F \u0928\u093F\u092F\u0902\u0924\u094D\u0930\ + \u0923 \u0914\u0930 \u0938\u0902\u0924\u0941\u0932\u0928 \u0915\u0940 \u090F\ + \u0915 \u092A\u094D\u0930\u0923\u093E\u0932\u0940 \u0924\u0948\u092F\u093E\u0930\ + \ \u0915\u0940?" + - input_choice_list: + A: "\u092A\u094D\u0930\u092C\u0941\u0926\u094D\u0927\u0924\u093E \u0915\u0947\ + \ \u0926\u094C\u0930\u093E\u0928 \u0915\u0932\u094D\u092A\u0928\u093E \u0915\ + \u0940 \u0917\u0908 \u0935\u094D\u092F\u0915\u094D\u0924\u093F\u0917\u0924\ + \ \u0938\u094D\u0935\u0924\u0902\u0924\u094D\u0930\u0924\u093E \u0914\u0930\ + \ \u0930\u093E\u0937\u094D\u091F\u094D\u0930\u0935\u093E\u0926 \u0915\u0947\ + \ \u0935\u093F\u091A\u093E\u0930\u094B\u0902 \u0915\u0947 \u092A\u0930\u093F\ + \u0923\u093E\u092E\u0938\u094D\u0935\u0930\u0942\u092A \u0915\u094D\u0930\u093E\ + \u0902\u0924\u093F\u0915\u093E\u0930\u0940 \u0915\u094D\u0930\u093E\u0902\u0924\ + \u093F\u092F\u093E\u0901 \u0939\u0941\u0908\u0902 \u091C\u094B \u092A\u0942\ + \u0930\u0947 \u092F\u0942\u0930\u094B\u092A \u092E\u0947\u0902 \u092B\u0948\ + \u0932 \u0938\u0915\u0924\u0940 \u0925\u0940\u0902\u0964" + B: "\u0928\u0947\u092A\u094B\u0932\u093F\u092F\u0928 \u0926\u094D\u0935\u093E\ + \u0930\u093E \u092F\u0942\u0930\u094B\u092A \u092A\u0930 \u0935\u093F\u091C\ + \u092F \u0915\u0947 \u0915\u093E\u0930\u0923 \u0928\u090F \u0917\u0941\u091F\ + \u094B\u0902 \u0915\u093E \u0928\u093F\u0930\u094D\u092E\u093E\u0923 \u0939\ + \u0941\u0906 \u0914\u0930 \u092F\u0942\u0930\u094B\u092A\u0940\u092F \u0936\ + \u0915\u094D\u0924\u093F \u0938\u0902\u0924\u0941\u0932\u0928 \u092E\u0947\ + \u0902 \u092C\u0926\u0932\u093E\u0935 \u0906\u092F\u093E\u0964" + C: "\u0930\u093E\u091C\u093E\u0913\u0902 \u0915\u0940 \u0936\u0915\u094D\u0924\ + \u093F \u0909\u0938 \u092C\u093F\u0902\u0926\u0941 \u0924\u0915 \u092C\u0922\ + \u093C \u0917\u0908 \u0925\u0940 \u091C\u0939\u093E\u0902 \u0907\u0938\u0947\ + \ \u092A\u094D\u0930\u0924\u094D\u092F\u0947\u0915 \u0930\u093E\u0937\u094D\ + \u091F\u094D\u0930 \u0915\u0947 \u092D\u0940\u0924\u0930 \u0905\u0928\u094D\ + \u092F \u0936\u0915\u094D\u0924\u093F\u092F\u094B\u0902 \u0926\u094D\u0935\ + \u093E\u0930\u093E \u091C\u093E\u0902\u091A\u0928\u093E \u0906\u0935\u0936\ + \u094D\u092F\u0915 \u0925\u093E \u092F\u093E \u0928\u093E\u0917\u0930\u093F\ + \u0915\u094B\u0902 \u0915\u093E \u0935\u0930\u094D\u091A\u0938\u094D\u0935\ + \ \u0939\u094B\u0924\u093E\u0964" + D: "\u0928\u0908 \u0909\u092D\u0930\u0924\u0940 \u092A\u0942\u0902\u091C\u0940\ + \u0935\u093E\u0926\u0940 \u0905\u0930\u094D\u0925\u0935\u094D\u092F\u0935\u0938\ + \u094D\u0925\u093E \u0915\u093E \u092C\u0922\u093C\u0924\u093E \u0914\u0930\ + \ \u0917\u093F\u0930\u0924\u093E \u0906\u0930\u094D\u0925\u093F\u0915 \u091A\ + \u0915\u094D\u0930 \u0928\u093E\u0917\u0930\u093F\u0915 \u0905\u0936\u093E\ + \u0902\u0924\u093F \u0915\u094B \u091C\u0928\u094D\u092E \u0926\u0947 \u0938\ + \u0915\u0924\u093E \u0939\u0948 \u091C\u093F\u0938\u0947 \u0926\u092C\u093E\ + \u092F\u093E \u091C\u093E\u0928\u093E \u091A\u093E\u0939\u093F\u090F\u0964" + input_correct_responses: + - A + input_question: "\u092F\u0939 \u092A\u094D\u0930\u0936\u094D\u0928 \u0928\u093F\ + \u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u091C\u093E\u0928\u0915\u093E\ + \u0930\u0940 \u0915\u094B \u0938\u0902\u0926\u0930\u094D\u092D\u093F\u0924 \u0915\ + \u0930\u0924\u093E \u0939\u0948\u0964 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\ + \u0916\u093F\u0924 \u0905\u0902\u0936 \u092A\u0922\u093C\u0947\u0902. \u0915\ + \u094D\u0930\u093E\u0902\u0924\u093F\u0915\u093E\u0930\u0940 \u092C\u0940\u091C\ + \ \u0939\u0930 \u0926\u0947\u0936 \u092E\u0947\u0902 \u092A\u094D\u0930\u0935\ + \u0947\u0936 \u0915\u0930 \u091A\u0941\u0915\u093E \u0925\u093E \u0914\u0930\ + \ \u0915\u092E\u094B\u092C\u0947\u0936 \u092B\u0948\u0932 \u0917\u092F\u093E\ + \ \u0925\u093E\u0964 \u092C\u094B\u0928\u093E\u092A\u093E\u0930\u094D\u091F\ + \ \u0915\u0940 \u0938\u0948\u0928\u094D\u092F \u0928\u093F\u0930\u0902\u0915\ + \u0941\u0936\u0924\u093E \u0915\u0947 \u0936\u093E\u0938\u0928 \u0915\u0947\ + \ \u0924\u0939\u0924 \u0907\u0938\u0915\u093E \u092C\u0939\u0941\u0924 \u0935\ + \u093F\u0915\u093E\u0938 \u0939\u0941\u0906\u0964 \u0909\u0928\u0915\u0940 \u0935\ + \u093F\u091C\u092F\u094B\u0902 \u0928\u0947 \u0915\u0908 \u0915\u093E\u0928\u0942\ + \u0928\u094B\u0902, \u0938\u0902\u0938\u094D\u0925\u093E\u0913\u0902 \u0914\u0930\ + \ \u0930\u0940\u0924\u093F-\u0930\u093F\u0935\u093E\u091C\u094B\u0902 \u0915\ + \u094B \u0935\u093F\u0938\u094D\u0925\u093E\u092A\u093F\u0924 \u0915\u0930 \u0926\ + \u093F\u092F\u093E; \u0938\u092D\u0940 \u0930\u093E\u0937\u094D\u091F\u094D\u0930\ + \u094B\u0902 \u0915\u0947 \u092C\u0940\u091A \u092A\u0935\u093F\u0924\u094D\u0930\ + \ \u092C\u0902\u0927\u0928\u094B\u0902 \u0915\u094B \u0924\u094B\u0921\u093C\ + \ \u0926\u093F\u092F\u093E, \u0938\u092E\u092F \u0915\u093E \u0935\u093F\u0930\ + \u094B\u0927 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092A\ + \u0930\u094D\u092F\u093E\u092A\u094D\u0924 \u092E\u091C\u092C\u0942\u0924; \u091C\ + \u094B \u0915\u093F \u0907\u0928 \u0928\u0935\u092A\u094D\u0930\u0935\u0930\u094D\ + \u0924\u0915\u094B\u0902 \u0926\u094D\u0935\u093E\u0930\u093E \u092A\u094D\u0930\ + \u0926\u0924\u094D\u0924 \u0915\u0941\u091B \u0932\u093E\u092D\u094B\u0902 \u0915\ + \u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902 \u0915\u0939\u093E \u091C\ + \u093E \u0938\u0915\u0924\u093E \u0939\u0948, \u0909\u0938\u0938\u0947 \u0915\ + \u0939\u0940\u0902 \u0905\u0927\u093F\u0915 \u0939\u0948\u0964 \u0930\u093E\u091C\ + \u093E \u0909\u0938\u0915\u0947 \u0926\u094D\u0935\u093E\u0930\u093E \u0909\u0928\ + \ \u092A\u0930 \u0932\u0917\u093E\u090F \u0917\u090F \u0915\u0930\u094D\u0924\ + \u0935\u094D\u092F\u094B\u0902 \u0915\u094B \u092A\u0942\u0930\u093E \u0915\u0930\ + \u0947\u0902\u0917\u0947, \u091C\u093F\u0938\u0928\u0947 \u0909\u0928\u094D\u0939\ + \u0947\u0902 \u0936\u0915\u094D\u0924\u093F \u0938\u094C\u0902\u092A\u0915\u0930\ + , \u0909\u0928\u094D\u0939\u0947\u0902 \u0928\u094D\u092F\u093E\u092F \u0915\ + \u0947 \u0930\u0916\u0930\u0916\u093E\u0935 \u0914\u0930 \u0938\u092D\u0940\ + \ \u0915\u0947 \u0905\u0927\u093F\u0915\u093E\u0930\u094B\u0902 \u0915\u0940\ + \ \u0926\u0947\u0916\u092D\u093E\u0932 \u0915\u0930\u0928\u0947, \u0924\u094D\ + \u0930\u0941\u091F\u093F \u0915\u0947 \u0930\u093E\u0938\u094D\u0924\u0947 \u0938\ + \u0947 \u092C\u091A\u0928\u0947 \u0914\u0930 \u0926\u0943\u0922\u093C\u0924\u093E\ + \ \u0938\u0947 \u091A\u0932\u0928\u0947 \u0915\u093E \u0928\u093F\u0930\u094D\ + \u0926\u0947\u0936 \u0926\u093F\u092F\u093E \u0939\u0948\u0964 \u0938\u091A\u0964\ + \ \u0938\u092E\u093E\u091C \u0915\u094B \u0906\u0902\u0926\u094B\u0932\u093F\ + \u0924 \u0915\u0930\u0928\u0947 \u0935\u093E\u0932\u0947 \u091C\u0941\u0928\u0942\ + \u0928 \u0938\u0947 \u092A\u0930\u0947, \u092F\u0939 \u092E\u0941\u0916\u094D\ + \u092F \u0930\u0942\u092A \u0938\u0947 \u092A\u0930\u0940\u0915\u094D\u0937\u0923\ + \ \u0915\u0947 \u0926\u093F\u0928\u094B\u0902 \u092E\u0947\u0902 \u0939\u0948\ + \ \u0915\u093F \u0909\u0928\u094D\u0939\u0947\u0902 \u0905\u092A\u0928\u0947\ + \ \u091D\u0942\u0920\u0947 \u0926\u093F\u0916\u093E\u0935\u0947 \u0915\u0940\ + \ \u0935\u093E\u0938\u094D\u0924\u0935\u093F\u0915\u0924\u093E\u0913\u0902 \u0915\ + \u094B \u0928\u0937\u094D\u091F \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\ + \u093F\u090F \u0915\u0939\u093E \u091C\u093E\u0924\u093E \u0939\u0948, \u0914\ + \u0930 \u0916\u0941\u0926 \u0915\u094B \u0935\u0948\u0938\u093E \u0939\u0940\ + \ \u0926\u093F\u0916\u093E\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\ + \u0939\u093E \u091C\u093E\u0924\u093E \u0939\u0948, \u091C\u0948\u0938\u093E\ + \ \u0915\u093F \u0935\u0947 \u0939\u0948\u0902, \u092A\u093F\u0924\u093E \u0928\ + \u0947 \u092A\u0930\u093F\u0935\u093E\u0930\u094B\u0902 \u0915\u0947 \u092E\u0941\ + \u0916\u093F\u092F\u093E\u0913\u0902 \u0915\u0947 \u0905\u0927\u093F\u0915\u093E\ + \u0930 \u0938\u0947 \u0938\u0902\u092C\u0902\u0927\u093F\u0924 \u0905\u0927\u093F\ + \u0915\u093E\u0930 \u0915\u0947 \u0938\u093E\u0925 \u0928\u093F\u0935\u0947\u0936\ + \ \u0915\u093F\u092F\u093E \u0939\u0948, \u092F\u0939 \u0938\u093E\u092C\u093F\ + \u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u093F\ + , \u0936\u094B\u0915 \u0915\u0947 \u0926\u093F\u0928\u094B\u0902 \u092E\u0947\ + \u0902, \u0935\u0947 \u0928\u094D\u092F\u093E\u092F\u092A\u0942\u0930\u094D\u0923\ + , \u092C\u0941\u0926\u094D\u0927\u093F\u092E\u093E\u0928 \u0914\u0930 \u0907\ + \u0938\u0932\u093F\u090F \u092E\u091C\u092C\u0942\u0924 \u0939\u094B\u0928\u093E\ + \ \u091C\u093E\u0928\u0924\u0947 \u0939\u0948\u0902, \u0914\u0930 \u0935\u0947\ + \ \u0909\u0928 \u0932\u094B\u0917\u094B\u0902 \u0915\u094B \u0928\u0939\u0940\ + \u0902 \u091B\u094B\u0921\u093C\u0947\u0902\u0917\u0947 \u091C\u093F\u0928 \u092A\ + \u0930 \u0909\u0928\u094D\u0939\u0947\u0902 \u0936\u093E\u0938\u0928 \u0915\u0930\ + \u0928\u093E \u091A\u093E\u0939\u093F\u090F \u0924\u093E\u0915\u093F \u0935\u0947\ + \ \u0917\u0941\u091F\u094B\u0902 \u0915\u093E \u0916\u0947\u0932 \u092C\u0928\ + \ \u0938\u0915\u0947\u0902, \u0924\u094D\u0930\u0941\u091F\u093F \u0914\u0930\ + \ \u0909\u0938\u0915\u0947 \u092A\u0930\u093F\u0923\u093E\u092E \u092D\u0941\ + \u0917\u0924 \u0938\u0915\u0947\u0902, \u091C\u094B \u0905\u0935\u0936\u094D\ + \u092F \u0939\u0940 \u0939\u094B\u0902\u0917\u0947 \u0907\u0938\u092E\u0947\u0902\ + \ \u0938\u092E\u093E\u091C \u0915\u093E \u0928\u0941\u0915\u0938\u093E\u0928\ + \ \u0936\u093E\u092E\u093F\u0932 \u0939\u0948\u0964 \u0930\u093E\u091C\u093E\ + \u0913\u0902 \u0915\u0947 \u092C\u0940\u091A \u090F\u0915\u0924\u093E \u0909\ + \u0938 \u0928\u0940\u0924\u093F \u0915\u093E \u0906\u0927\u093E\u0930 \u0939\ + \u0948 \u091C\u093F\u0938\u0915\u093E \u0905\u092C \u0938\u092E\u093E\u091C\ + \ \u0915\u094B \u092A\u0942\u0930\u094D\u0923 \u0935\u093F\u0928\u093E\u0936\ + \ \u0938\u0947 \u092C\u091A\u093E\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F\ + \ \u092A\u093E\u0932\u0928 \u0915\u093F\u092F\u093E \u091C\u093E\u0928\u093E\ + \ \u091A\u093E\u0939\u093F\u090F\u0964 . . . \u0909\u0928\u094D\u0939\u0947\u0902\ + \ \u092A\u093E\u0930\u094D\u091F\u093F\u092F\u094B\u0902 \u0915\u094B \u0926\ + \u0940 \u0917\u0908 \u0930\u093F\u092F\u093E\u092F\u0924\u094B\u0902 \u0915\u094B\ + \ \u0905\u092A\u0928\u0947 \u0932\u094B\u0917\u094B\u0902 \u0915\u0947 \u0932\ + \u093F\u090F \u0915\u0940 \u091C\u093E\u0928\u0947 \u0935\u093E\u0932\u0940\ + \ \u092D\u0932\u093E\u0908 \u0915\u0947 \u0938\u093E\u0925 \u092D\u094D\u0930\ + \u092E\u093F\u0924 \u0928\u0939\u0940\u0902 \u0915\u0930\u0928\u093E \u091A\u093E\ + \u0939\u093F\u090F, \u091C\u093F\u0938\u092E\u0947\u0902 \u092A\u094D\u0930\u0936\ + \u093E\u0938\u0928 \u0915\u0940 \u0910\u0938\u0940 \u0936\u093E\u0916\u093E\u0913\ + \u0902 \u0915\u094B \u0909\u0928\u0915\u0940 \u092E\u093E\u0928\u094D\u092F\u0924\ + \u093E \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0906\u0935\u0936\u094D\u092F\ + \u0915\u0924\u093E\u0913\u0902 \u0915\u0947 \u0905\u0928\u0941\u0938\u093E\u0930\ + \ \u0938\u0902\u0936\u094B\u0927\u093F\u0924 \u0915\u0930\u0928\u093E \u091A\ + \u093E\u0939\u093F\u090F, \u091C\u093F\u0928\u0915\u0940 \u0909\u0928\u094D\u0939\ + \u0947\u0902 \u0906\u0935\u0936\u094D\u092F\u0915\u0924\u093E \u0939\u0948\u0964\ + \ \u0909\u0928\u094D\u0939\u0947\u0902 \u0928\u094D\u092F\u093E\u092F\u0938\u0902\ + \u0917\u0924, \u0932\u0947\u0915\u093F\u0928 \u092E\u091C\u092C\u0942\u0924\ + \ \u0939\u094B\u0928\u0947 \u0926\u094B; \u0932\u093E\u092D\u0915\u093E\u0930\ + \u0940, \u0932\u0947\u0915\u093F\u0928 \u0938\u0916\u094D\u0924. \u0909\u0928\ + \u094D\u0939\u0947\u0902 \u0927\u093E\u0930\u094D\u092E\u093F\u0915 \u0938\u093F\ + \u0926\u094D\u0927\u093E\u0902\u0924\u094B\u0902 \u0915\u094B \u0909\u0928\u0915\ + \u0940 \u0938\u0902\u092A\u0942\u0930\u094D\u0923 \u0936\u0941\u0926\u094D\u0927\ + \u0924\u093E \u092E\u0947\u0902 \u092C\u0928\u093E\u090F \u0930\u0916\u0928\u0947\ + \ \u0926\u0947\u0902, \u0914\u0930 \u0938\u093E\u092E\u093E\u091C\u093F\u0915\ + \ \u0905\u0928\u0941\u092C\u0902\u0927 \u092F\u093E \u092E\u0942\u0930\u094D\ + \u0916 \u0938\u0902\u092A\u094D\u0930\u0926\u093E\u092F\u0935\u093E\u0926\u093F\ + \u092F\u094B\u0902 \u0915\u0947 \u0926\u0943\u0937\u094D\u091F\u093F\u0915\u094B\ + \u0923 \u0915\u0947 \u0905\u0928\u0941\u0938\u093E\u0930 \u0935\u093F\u0936\u094D\ + \u0935\u093E\u0938 \u092A\u0930 \u0939\u092E\u0932\u093E \u0915\u0930\u0928\u0947\ + \ \u0914\u0930 \u0928\u0948\u0924\u093F\u0915\u0924\u093E \u0915\u0940 \u0935\ + \u094D\u092F\u093E\u0916\u094D\u092F\u093E \u0915\u0930\u0928\u0947 \u0915\u0940\ + \ \u0905\u0928\u0941\u092E\u0924\u093F \u0928 \u0926\u0947\u0902\u0964 \u0909\ + \u0928\u094D\u0939\u0947\u0902 \u0917\u0941\u092A\u094D\u0924 \u0938\u092E\u093E\ + \u091C\u094B\u0902 \u0915\u093E \u0926\u092E\u0928 \u0915\u0930\u0928\u0947\ + \ \u0926\u094B; \u0938\u092E\u093E\u091C \u0915\u093E \u0935\u0939 \u0917\u0948\ + \u0902\u0917\u094D\u0930\u0940\u0928. \u2014\u0915\u094D\u0932\u0947\u092E\u0947\ + \u0902\u0938 \u0935\u0949\u0928 \u092E\u0947\u091F\u094D\u091F\u0930\u094D\u0928\ + \u093F\u091A, \u092A\u0949\u0932\u093F\u091F\u093F\u0915\u0932 \u0915\u0928\u094D\ + \u092B\u0947\u0936\u0928 \u0911\u092B \u092B\u0947\u0925, 1820 \u0909\u092A\u0930\ + \u094B\u0915\u094D\u0924 \u0926\u0938\u094D\u0924\u093E\u0935\u0947\u091C\u093C\ + \ \u092E\u0947\u0902 \u092E\u0947\u091F\u094D\u091F\u0930\u094D\u0928\u093F\u091A\ + \ \u0926\u094D\u0935\u093E\u0930\u093E \u0935\u094D\u092F\u0915\u094D\u0924\ + \ \u0915\u093F\u090F \u0917\u090F \u0921\u0930 \u0915\u093E \u0938\u092C\u0938\ + \u0947 \u092C\u0921\u093C\u093E \u0915\u093E\u0930\u0923 \u0928\u093F\u092E\u094D\ + \u0928\u0932\u093F\u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\ + \u0928 \u0938\u093E \u0925\u093E?" + - input_choice_list: + A: "\u092A\u0942\u0902\u091C\u0940\u0935\u093E\u0926\u0940" + B: "\u0935\u0948\u091C\u094D\u091E\u093E\u0928\u093F\u0915" + C: "\u0915\u092E\u094D\u092F\u0941\u0928\u093F\u0938\u094D\u091F" + D: "\u0905\u0938\u094D\u0924\u093F\u0924\u094D\u0935\u0935\u093E\u0926\u0940" + input_correct_responses: + - C + input_question: "\u092F\u0939 \u092A\u094D\u0930\u0936\u094D\u0928 \u0928\u093F\ + \u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u091C\u093E\u0928\u0915\u093E\ + \u0930\u0940 \u0915\u094B \u0938\u0902\u0926\u0930\u094D\u092D\u093F\u0924 \u0915\ + \u0930\u0924\u093E \u0939\u0948\u0964 \u0930\u0942\u0938 \u092E\u0947\u0902\ + \ \u0915\u0941\u091B \u092D\u0940 \u0920\u0940\u0915 \u0928\u0939\u0940\u0902\ + \ \u091A\u0932 \u0930\u0939\u093E \u0925\u093E, \u0914\u0930 [\u0938\u0949\u0935\ + \u0930\u093F\u0928] \u091C\u094B \u0938\u092E\u093E\u091A\u093E\u0930 \u092E\ + \u093F\u0932\u093E \u0925\u093E, \u0909\u0938\u0938\u0947 \u0928\u093F\u0930\ + \u093E\u0936\u093E \u092E\u0947\u0902 \u0925\u093E\u0964 \u0909\u0928\u0915\u0947\ + \ \u0938\u092D\u0940 \u092A\u0941\u0930\u093E\u0928\u0947 \u0938\u093E\u0925\ + \u0940 \u0930\u093E\u091C\u0928\u0947\u0924\u093E\u0913\u0902 \u0915\u0940 \u0913\ + \u0930 \u0930\u0941\u0916 \u0915\u0930 \u0930\u0939\u0947 \u0925\u0947; \u092A\ + \u094D\u0930\u0938\u093F\u0926\u094D\u0927 \u0928\u093F\u0939\u093F\u0932\u093F\ + \u0938\u094D\u091F \u091C\u093F\u0928\u094D\u0939\u094B\u0902\u0928\u0947 \u092F\ + \u0942\u0930\u094B\u092A \u0915\u094B \u0915\u093E\u0902\u092A \u0926\u093F\u092F\ + \u093E - \u0917\u094D\u0930\u093E\u092E\u0940\u0923 \u092A\u0941\u091C\u093E\ + \u0930\u093F\u092F\u094B\u0902 \u0915\u0947 \u092C\u0947\u091F\u0947, \u0928\ + \u093F\u092E\u094D\u0928 \u092E\u0927\u094D\u092F\u092E \u0935\u0930\u094D\u0917\ + \ \u0915\u0947, \u0935\u094D\u092F\u093E\u092A\u093E\u0930\u093F\u092F\u094B\ + \u0902 \u0915\u0947 - \u0930\u093E\u0937\u094D\u091F\u094D\u0930\u0940\u092F\ + \ \u092E\u0941\u0915\u094D\u0924\u093F \u0915\u0947 \u0935\u093F\u091A\u093E\ + \u0930 \u0938\u0947 \u090A\u092A\u0930 \u0928\u0939\u0940\u0902 \u0909\u0920\ + \ \u0938\u0915\u0947, \u0914\u0930 \u0910\u0938\u093E \u0932\u0917\u0924\u093E\ + \ \u0925\u093E \u0915\u093F \u0926\u0941\u0928\u093F\u092F\u093E \u0915\u093E\ + \ \u0909\u0926\u094D\u0927\u093E\u0930 \u0939\u094B \u091C\u093E\u090F\u0917\ + \u093E - \u091C\u092C \u0909\u0928\u094D\u0939\u094B\u0902\u0928\u0947 \u0905\ + \u092A\u0928\u0947 \u0928\u093F\u0930\u0902\u0915\u0941\u0936 \u0915\u094B \u092E\ + \u093E\u0930 \u0921\u093E\u0932\u093E \u0925\u093E \u0914\u0930 ... "\u092E\ + \u0942\u0930\u094D\u0916\u0924\u093E! \u0935\u0947 \u0905\u092A\u0928\u0940\ + \ \u092E\u0942\u0930\u094D\u0916\u0924\u093E \u0938\u0947 \u0915\u092D\u0940\ + \ \u092C\u093E\u0939\u0930 \u0928\u0939\u0940\u0902 \u0928\u093F\u0915\u0932\ + \u0947\u0902\u0917\u0947\u0964" \u092B\u093F\u0930 \u0909\u0938\u0928\u0947\ + \ \u0905\u092A\u0928\u0940 \u0906\u0935\u093E\u091C\u093C \u0914\u0930 \u0927\ + \u0940\u092E\u0940 \u0915\u0930\u0924\u0947 \u0939\u0941\u090F \u0915\u0941\u091B\ + \ \u0915\u0921\u093C\u0935\u0947 \u0936\u092C\u094D\u0926\u094B\u0902 \u092E\ + \u0947\u0902 \u092D\u093E\u0908\u091A\u093E\u0930\u0947 \u0915\u0947 \u0905\u092A\ + \u0928\u0947 \u092A\u0941\u0930\u093E\u0928\u0947 \u0938\u092A\u0928\u0947 \u0915\ + \u093E \u0935\u0930\u094D\u0923\u0928 \u0915\u093F\u092F\u093E\u0964 \u0909\u0938\ + \u0928\u0947 \u0905\u092A\u0928\u093E \u092A\u0926 \u0914\u0930 \u0905\u092A\ + \u0928\u093E \u092D\u093E\u0917\u094D\u092F \u0924\u094D\u092F\u093E\u0917 \u0926\ + \u093F\u092F\u093E \u0925\u093E; \u0935\u0939 \u0936\u094D\u0930\u092E\u093F\ + \u0915\u094B\u0902 \u0915\u0947 \u092C\u0940\u091A \u0917\u092F\u0947 \u0925\ + \u0947, \u0915\u0947\u0935\u0932 \u0907\u0938 \u0906\u0936\u093E \u0938\u0947\ + \ \u0915\u093F \u0906\u0916\u093C\u093F\u0930\u0915\u093E\u0930 \u0906\u092E\ + \ \u0924\u094C\u0930 \u092A\u0930 \u0936\u094D\u0930\u092E\u093F\u0915\u094B\ + \u0902 \u0915\u0947 \u090F\u0915 \u0928\u092F\u0947 \u0938\u092E\u093E\u091C\ + \ \u0915\u0940 \u0928\u0940\u0902\u0935 \u092A\u0921\u093C\u0947\u0964 \u0909\ + \u0938\u0915\u0940 \u091C\u0947\u092C\u094B\u0902 \u0915\u093E \u0938\u093E\u0930\ + \u093E \u092A\u0948\u0938\u093E \u092C\u0939\u0941\u0924 \u092A\u0939\u0932\u0947\ + \ \u0939\u0940 \u092C\u0938\u094D\u0924\u0940 \u0915\u0947 \u0932\u094B\u0917\ + \u094B\u0902 \u0915\u0947 \u092A\u093E\u0938 \u091A\u0932\u093E \u0917\u092F\ + \u093E \u0925\u093E; \u0935\u0939 \u0915\u094B\u0932\u093F\u092F\u0930\u094D\ + \u0938 \u0915\u0947 \u0938\u093E\u0925 \u090F\u0915 \u092D\u093E\u0908 \u0915\ + \u0940 \u0924\u0930\u0939 \u0915\u094B\u092E\u0932 \u0925\u093E, \u0909\u0928\ + \u0915\u0947 \u0938\u0902\u0926\u0947\u0939 \u092A\u0930 \u092E\u0941\u0938\u094D\ + \u0915\u0941\u0930\u093E\u0924\u093E \u0925\u093E, \u0905\u092A\u0928\u0947\ + \ \u0936\u093E\u0902\u0924 \u0915\u093E\u092E\u0915\u093E\u091C\u0940 \u0924\ + \u0930\u0940\u0915\u094B\u0902 \u0914\u0930 \u092C\u093E\u0924\u091A\u0940\u0924\ + \ \u0915\u0947 \u092A\u094D\u0930\u0924\u093F \u0905\u092A\u0928\u0940 \u0928\ + \u093E\u092A\u0938\u0902\u0926\u0917\u0940 \u0938\u0947 \u0909\u0928\u094D\u0939\ + \u0947\u0902 \u091C\u0940\u0924 \u0932\u0947\u0924\u093E \u0925\u093E\u0964\ + \ \u0932\u0947\u0915\u093F\u0928 \u0928\u093F\u0936\u094D\u091A\u092F \u0939\ + \u0940 \u0938\u0902\u0932\u092F\u0928 \u0928\u0939\u0940\u0902 \u0939\u0941\u0906\ + \ \u0925\u093E\u0964 \u0909\u0938\u0915\u0940 \u0906\u0935\u093E\u091C\u093C\ + \ \u092C\u0926\u0932 \u0917\u0908, \u0909\u0938\u0915\u0940 \u0906\u0901\u0916\ + \u0947\u0902 \u091A\u092E\u0915 \u0909\u0920\u0940\u0902, \u0909\u0938\u0928\ + \u0947 \u0909\u0928\u094D\u0939\u0947\u0902 \u090F\u091F\u093F\u092F\u0947\u0928\ + \ \u092A\u0930 \u0915\u0947\u0902\u0926\u094D\u0930\u093F\u0924 \u0915\u093F\ + \u092F\u093E, \u0938\u0940\u0927\u0947 \u0909\u0938\u0947 \u0938\u0902\u092C\ + \u094B\u0927\u093F\u0924 \u0915\u093F\u092F\u093E: "\u0905\u092C, \u0915\ + \u094D\u092F\u093E \u0906\u092A \u0907\u0938\u0947 \u0938\u092E\u091D\u0924\u0947\ + \ \u0939\u0948\u0902? \u092E\u093E\u0930\u094D\u0938\u093F\u0932\u0947 \u0915\ + \u0947 \u092F\u0947 \u0939\u0948\u091F\u0935\u0930\u094D\u0915\u0930\u094D\u0938\ + \ \u091C\u093F\u0928\u094D\u0939\u094B\u0902\u0928\u0947 \u090F\u0915 \u0932\ + \u093E\u0916 \u092B\u093C\u094D\u0930\u0948\u0902\u0915 \u0915\u093E \u092E\u0939\ + \u093E\u0928 \u0932\u0949\u091F\u0930\u0940 \u092A\u0941\u0930\u0938\u094D\u0915\ + \u093E\u0930 \u091C\u0940\u0924\u093E \u0939\u0948, \u0924\u0941\u0930\u0902\ + \u0924 \u091A\u0932\u0947 \u0917\u090F \u0914\u0930 \u0928\u093F\u0935\u0947\ + \u0936 \u0915\u093F\u092F\u093E \u092F\u0939, \u092F\u0939 \u0918\u094B\u0937\ + \u0923\u093E \u0915\u0930\u0924\u0947 \u0939\u0941\u090F \u0915\u093F \u0935\ + \u0947 \u092C\u093F\u0928\u093E \u0915\u0941\u091B \u0915\u093F\u090F \u091C\ + \u0940\u0935\u093F\u0924 \u0930\u0939\u0928\u0947 \u0935\u093E\u0932\u0947 \u0939\ + \u0948\u0902! \u0939\u093E\u0902, \u092F\u0939 \u0906\u092A\u0915\u093E \u0935\ + \u093F\u091A\u093E\u0930 \u0939\u0948, \u0906\u092A \u0938\u092D\u0940 \u092B\ + \u094D\u0930\u093E\u0902\u0938\u0940\u0938\u0940 \u0915\u093E\u092E\u0917\u093E\ + \u0930; \u0906\u092A \u0915\u093F\u0938\u0940 \u0916\u091C\u093E\u0928\u0947\ + \ \u0915\u093E \u092A\u0924\u093E \u0932\u0917\u093E\u0928\u093E \u091A\u093E\ + \u0939\u0924\u0947 \u0939\u0948\u0902 \u0924\u093E\u0915\u093F \u092C\u093E\u0926\ + \ \u092E\u0947\u0902 \u0907\u0938\u0947 \u0915\u093F\u0938\u0940 \u0906\u0932\ + \u0938\u0940, \u0938\u094D\u0935\u093E\u0930\u094D\u0925\u0940 \u0915\u094B\u0928\ + \u0947 \u092E\u0947\u0902 \u0905\u0915\u0947\u0932\u0947 \u0916\u093E \u0938\ + \u0915\u0947\u0902\u0964 \u0906\u092A \u091A\u093F\u0932\u094D\u0932\u093E \u0938\ + \u0915\u0924\u0947 \u0939\u0948\u0902 \u0906\u092A \u0905\u092E\u0940\u0930\u094B\ + \u0902 \u0915\u0947 \u0916\u093F\u0932\u093E\u092B \u091A\u093E\u0939\u0947\ + \ \u091C\u093F\u0924\u0928\u093E \u091A\u093E\u0939\u0947\u0902, \u0932\u0947\ + \u0915\u093F\u0928 \u0906\u092A\u092E\u0947\u0902 \u0907\u0924\u0928\u0940 \u0939\ + \u093F\u092E\u094D\u092E\u0924 \u0928\u0939\u0940\u0902 \u0939\u0948 \u0915\u093F\ + \ \u0906\u092A \u0917\u0930\u0940\u092C\u094B\u0902 \u0915\u094B \u0935\u0939\ + \ \u092A\u0948\u0938\u093E \u0932\u094C\u091F\u093E \u0938\u0915\u0947\u0902\ + \ \u091C\u094B \u0915\u093F\u0938\u094D\u092E\u0924 \u0906\u092A\u0915\u094B\ + \ \u0926\u0947\u0924\u0940 \u0939\u0948\u0964 \u091C\u092C \u0924\u0915 \u0906\ + \u092A\u0915\u0947 \u092A\u093E\u0938 \u0915\u0941\u091B \u092D\u0940 \u0939\ + \u0948, \u0906\u092A \u0915\u092D\u0940 \u092D\u0940 \u0916\u0941\u0936\u0940\ + \ \u0915\u0947 \u0932\u093E\u092F\u0915 \u0928\u0939\u0940\u0902 \u0939\u094B\ + \u0902\u0917\u0947, \u0914\u0930 \u092C\u0941\u0930\u094D\u091C\u0941\u0906\ + \ \u0935\u0930\u094D\u0917 \u0915\u0947 \u092A\u094D\u0930\u0924\u093F \u0906\ + \u092A\u0915\u0940 \u0928\u092B\u0930\u0924 \u092C\u0922\u093C\u0924\u0940 \u0930\ + \u0939\u0947\u0917\u0940 \u0915\u0947\u0935\u0932 \u0909\u0928\u0915\u0947 \u0938\ + \u094D\u0925\u093E\u0928 \u092A\u0930 \u0938\u094D\u0935\u092F\u0902 \u092C\u0941\ + \u0930\u094D\u091C\u0941\u0906 \u092C\u0928\u0928\u0947 \u0915\u0940 \u0915\u094D\ + \u0930\u094B\u0927\u092A\u0942\u0930\u094D\u0923 \u0907\u091A\u094D\u091B\u093E\ + \ \u0938\u0947\u0964" \u090F\u092E\u093F\u0932 \u091C\u093C\u094B\u0932\ + \u093E, \u092B\u094D\u0930\u093E\u0902\u0938\u0940\u0938\u0940 \u0932\u0947\u0916\ + \u0915, \u091C\u0930\u094D\u092E\u093F\u0928\u0932, 1885 \u092F\u0939 \u092A\ + \u0930\u093F\u091A\u094D\u091B\u0947\u0926 \u0936\u094D\u0930\u092E\u093F\u0915\ + \ \u0935\u0930\u094D\u0917\u094B\u0902 \u0915\u0947 \u0915\u0932\u094D\u092F\ + \u093E\u0923 \u0915\u0947 \u0932\u093F\u090F \u092A\u094D\u0930\u0924\u094D\u092F\ + \u0915\u094D\u0937 \u091A\u093F\u0902\u0924\u093E \u0915\u094B \u092A\u094D\u0930\ + \u0926\u0930\u094D\u0936\u093F\u0924 \u0915\u0930\u0924\u093E \u0939\u0948 \u091C\ + \u094B \u0906\u092E \u0924\u094C\u0930 \u092A\u0930 \u0915\u093F\u0938 \u0906\ + \u0902\u0926\u094B\u0932\u0928 \u0915\u093E \u0939\u093F\u0938\u094D\u0938\u093E\ + \ \u0925\u093E?" + - input_choice_list: + A: "\u0909\u0928\u094D\u0939\u094B\u0902\u0928\u0947 \u0905\u0902\u0917\u094D\ + \u0930\u0947\u091C\u0940 \u091C\u0939\u093E\u091C\u0930\u093E\u0928\u0940\ + \ \u0914\u0930 \u0935\u093F\u0926\u0947\u0936\u0940 \u0935\u094D\u092F\u093E\ + \u092A\u093E\u0930 \u0915\u0947 \u0935\u093F\u0915\u093E\u0938 \u0915\u0947\ + \ \u0932\u093F\u090F \u0909\u0924\u094D\u092A\u094D\u0930\u0947\u0930\u0915\ + \ \u0915\u0947 \u0930\u0942\u092A \u092E\u0947\u0902 \u0915\u093E\u092E \u0915\ + \u093F\u092F\u093E, \u0932\u0947\u0915\u093F\u0928 \u0938\u0924\u094D\u0930\ + \u0939\u0935\u0940\u0902 \u0936\u0924\u093E\u092C\u094D\u0926\u0940 \u092E\ + \u0947\u0902 \u0921\u091A\u094B\u0902 \u0915\u0940 \u0938\u0902\u092D\u093E\ + \u0935\u0928\u093E\u0913\u0902 \u0915\u094B \u0938\u0940\u092E\u093F\u0924\ + \ \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u0941\u091B\ + \ \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E\u0964" + B: "\u0935\u0947 \u0921\u091A \u0905\u0930\u094D\u0925\u0935\u094D\u092F\u0935\ + \u0938\u094D\u0925\u093E \u0915\u0947 \u0932\u093F\u090F \u0932\u0917\u092D\ + \u0917 \u0924\u093E\u0924\u094D\u0915\u093E\u0932\u093F\u0915 \u0915\u0920\ + \u093F\u0928\u093E\u0907\u092F\u093E\u0901 \u0932\u0947\u0915\u0930 \u0906\ + \u090F \u0915\u094D\u092F\u094B\u0902\u0915\u093F \u0935\u093F\u0926\u0947\ + \u0936\u0940 \u0935\u094D\u092F\u093E\u092A\u093E\u0930 \u092A\u0930 \u0909\ + \u0928\u0915\u093E \u092A\u094D\u0930\u092D\u0941\u0924\u094D\u0935 \u0936\ + \u0940\u0918\u094D\u0930 \u0939\u0940 \u0938\u092E\u093E\u092A\u094D\u0924\ + \ \u0939\u094B \u0917\u092F\u093E\u0964" + C: "\u0938\u094D\u091F\u0941\u0905\u0930\u094D\u091F\u094D\u0938 \u0915\u0940\ + \ \u092C\u0939\u093E\u0932\u0940 \u0915\u0947 \u0926\u094C\u0930\u093E\u0928\ + \ \u0909\u0928\u094D\u0939\u0947\u0902 \u0930\u0926\u094D\u0926 \u0915\u0930\ + \ \u0926\u093F\u092F\u093E \u0917\u092F\u093E \u0925\u093E \u0915\u094D\u092F\ + \u094B\u0902\u0915\u093F \u0935\u0947 \u0921\u091A\u094B\u0902 \u0915\u0947\ + \ \u0938\u093E\u0925 \u0938\u093E\u092E\u093E\u0928\u094D\u092F \u0930\u093E\ + \u091C\u0928\u092F\u093F\u0915 \u0938\u0902\u092C\u0902\u0927 \u091A\u093E\ + \u0939\u0924\u0947 \u0925\u0947 \u0924\u093E\u0915\u093F \u092F\u0941\u0926\ + \u094D\u0927 \u0915\u0947 \u0932\u093F\u090F \u0938\u0902\u0938\u0926 \u0915\ + \u0940 \u0935\u093F\u0924\u094D\u0924\u0940\u092F \u0938\u0939\u093E\u092F\ + \u0924\u093E \u0915\u0940 \u0906\u0935\u0936\u094D\u092F\u0915\u0924\u093E\ + \ \u0928 \u092A\u0921\u093C\u0947\u0964" + D: "\u0909\u0928\u0915\u0947 \u0915\u093E\u0930\u0923 \u0907\u0902\u0917\u094D\ + \u0932\u0948\u0902\u0921 \u0914\u0930 \u0928\u0940\u0926\u0930\u0932\u0948\ + \u0902\u0921 \u0915\u0947 \u092C\u0940\u091A \u0932\u0917\u092D\u0917 \u090F\ + \u0915 \u0936\u0924\u093E\u092C\u094D\u0926\u0940 \u0924\u0915 \u092C\u093E\ + \u0930-\u092C\u093E\u0930 \u092F\u0941\u0926\u094D\u0927 \u0939\u094B\u0924\ + \u093E \u0930\u0939\u093E, \u091C\u094B \u0905\u092E\u0947\u0930\u093F\u0915\ + \u0940 \u0938\u094D\u0935\u0924\u0902\u0924\u094D\u0930\u0924\u093E \u0915\ + \u0947 \u092C\u093E\u0926 \u0924\u0915 \u0938\u092E\u093E\u092A\u094D\u0924\ + \ \u0928\u0939\u0940\u0902 \u0939\u094B\u0917\u093E\u0964" + input_correct_responses: + - A + input_question: "\u092F\u0939 \u092A\u094D\u0930\u0936\u094D\u0928 \u0928\u093F\ + \u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u091C\u093E\u0928\u0915\u093E\ + \u0930\u0940 \u0915\u094B \u0938\u0902\u0926\u0930\u094D\u092D\u093F\u0924 \u0915\ + \u0930\u0924\u093E \u0939\u0948\u0964 \u0928\u0940\u091A\u0947 \u0926\u093F\u090F\ + \ \u0917\u090F \u0905\u0902\u0936 1651 \u0915\u0947 \u0928\u0947\u0935\u093F\ + \u0917\u0947\u0936\u0928 \u0905\u0927\u093F\u0928\u093F\u092F\u092E\u094B\u0902\ + \ \u0938\u0947 \u0939\u0948\u0902\u0964 [\u090F] \u0926\u093F\u0938\u0902\u092C\ + \u0930 \u0915\u0947 \u092A\u0939\u0932\u0947 \u0926\u093F\u0928 \u0915\u0947\ + \ \u092C\u093E\u0926, \u090F\u0915 \u0939\u091C\u093E\u0930 \u091B\u0939 \u0938\ + \u094C \u0907\u0915\u094D\u092F\u093E\u0935\u0928, \u0914\u0930 \u0909\u0938\ + \u0915\u0947 \u092C\u093E\u0926 \u0938\u0947, \u090F\u0936\u093F\u092F\u093E\ + , \u0905\u092B\u094D\u0930\u0940\u0915\u093E \u0915\u0947 \u0935\u093F\u0915\ + \u093E\u0938, \u0909\u0924\u094D\u092A\u093E\u0926\u0928 \u092F\u093E \u0928\ + \u093F\u0930\u094D\u092E\u093E\u0923 \u0915\u093E \u0915\u094B\u0908 \u092D\u0940\ + \ \u0938\u093E\u092E\u093E\u0928 \u092F\u093E \u0935\u0938\u094D\u0924\u0941\ + \ \u0928\u0939\u0940\u0902 \u092F\u093E \u0905\u092E\u0947\u0930\u093F\u0915\ + \u093E, \u092F\u093E \u0909\u0938\u0915\u0947 \u0915\u093F\u0938\u0940 \u092D\ + \u093E\u0917 \u0915\u093E; \u092F\u093E \u0909\u0928\u0938\u0947 \u0938\u0902\ + \u092C\u0902\u0927\u093F\u0924 \u0915\u093F\u0938\u0940 \u092D\u0940 \u0926\u094D\ + \u0935\u0940\u092A, \u092F\u093E \u091C\u094B \u0909\u0928 \u0938\u094D\u0925\ + \u093E\u0928\u094B\u0902 \u0915\u0947 \u0938\u093E\u092E\u093E\u0928\u094D\u092F\ + \ \u092E\u093E\u0928\u091A\u093F\u0924\u094D\u0930\u094B\u0902 \u092F\u093E\ + \ \u0915\u093E\u0930\u094D\u0921\u094B\u0902 \u092E\u0947\u0902 \u0935\u0930\ + \u094D\u0923\u093F\u0924 \u092F\u093E \u0928\u093F\u0930\u094D\u0927\u093E\u0930\ + \u093F\u0924 \u0939\u0948\u0902, \u0938\u093E\u0925 \u0939\u0940 \u0905\u0928\ + \u094D\u092F \u0905\u0902\u0917\u094D\u0930\u0947\u091C\u0940 \u092C\u093E\u0917\ + \u093E\u0928\u094B\u0902 \u0915\u094B \u0907\u0902\u0917\u094D\u0932\u0948\u0902\ + \u0921 \u0915\u0947 \u0907\u0938 \u0930\u093E\u0937\u094D\u091F\u094D\u0930\u092E\ + \u0902\u0921\u0932 \u092E\u0947\u0902 \u092F\u093E \u0906\u092F\u0930\u0932\u0948\ + \u0902\u0921 \u092E\u0947\u0902 \u0906\u092F\u093E\u0924 \u092F\u093E \u0932\ + \u093E\u092F\u093E \u091C\u093E\u090F\u0917\u093E, \u092F\u093E \u0907\u0938\ + \ \u0930\u093E\u0937\u094D\u091F\u094D\u0930\u092E\u0902\u0921\u0932 \u0938\u0947\ + \ \u0938\u0902\u092C\u0902\u0927\u093F\u0924 \u0915\u094B\u0908 \u092D\u0940\ + \ \u0905\u0928\u094D\u092F \u092D\u0942\u092E\u093F, \u0926\u094D\u0935\u0940\ + \u092A, \u092C\u093E\u0917\u093E\u0928 \u092F\u093E \u0915\u094D\u0937\u0947\ + \u0924\u094D\u0930, \u092F\u093E \u0909\u0928\u0915\u0947 \u0915\u092C\u094D\ + \u091C\u0947 \u092E\u0947\u0902, \u0915\u093F\u0938\u0940 \u092D\u0940 \u0905\ + \u0928\u094D\u092F \u091C\u0939\u093E\u091C \u092F\u093E \u091C\u0939\u093E\u091C\ + \u094B\u0902, \u091C\u0939\u093E\u091C \u092F\u093E \u091C\u0939\u093E\u091C\ + \u094B\u0902 \u092E\u0947\u0902, \u0932\u0947\u0915\u093F\u0928 \u0915\u0947\ + \u0935\u0932 \u0910\u0938\u0947 \u092E\u0947\u0902 \u091C\u094B \u0935\u093E\ + \u0938\u094D\u0924\u0935 \u092E\u0947\u0902 \u0914\u0930 \u0927\u094B\u0916\u093E\ + \u0927\u0921\u093C\u0940 \u0915\u0947 \u092C\u093F\u0928\u093E \u0915\u0947\u0935\ + \u0932 \u0907\u0938 \u0930\u093E\u0937\u094D\u091F\u094D\u0930\u092E\u0902\u0921\ + \u0932 \u0915\u0947 \u0932\u094B\u0917\u094B\u0902 \u0915\u0947 \u0939\u0948\ + \u0902 , \u092F\u093E \u0909\u0938\u0915\u0947 \u092C\u093E\u0917\u093E\u0928\ + , \u0909\u0938\u0915\u0947 \u092E\u093E\u0932\u093F\u0915 \u092F\u093E \u0938\ + \u0939\u0940 \u092E\u093E\u0932\u093F\u0915 \u0915\u0947 \u0930\u0942\u092A\ + \ \u092E\u0947\u0902; \u0914\u0930 \u091C\u093F\u0938\u0915\u0947 \u0938\u094D\ + \u0935\u093E\u092E\u0940 \u0914\u0930 \u0928\u093E\u0935\u093F\u0915 \u092D\u0940\ + \ \u0907\u0938 \u0930\u093E\u0937\u094D\u091F\u094D\u0930\u092E\u0902\u0921\u0932\ + \ \u0915\u0947 \u0932\u094B\u0917\u094B\u0902 \u092E\u0947\u0902 \u0938\u0947\ + \ \u0939\u0948\u0902, \u0907\u0938 \u0905\u0927\u093F\u0928\u093F\u092F\u092E\ + \ \u0915\u0947 \u0935\u093F\u092A\u0930\u0940\u0924 \u0906\u092F\u093E\u0924\ + \ \u0915\u093F\u090F \u091C\u093E\u0928\u0947 \u0935\u093E\u0932\u0947 \u0938\ + \u092D\u0940 \u0938\u093E\u092E\u093E\u0928\u094B\u0902 \u0915\u0940 \u091C\u092C\ + \u094D\u0924\u0940 \u0914\u0930 \u0939\u093E\u0928\u093F \u0915\u0947 \u0926\ + \u0902\u0921 \u0915\u0947 \u0924\u0939\u0924, , , , , [\u090F\u0928] \u0913\ + \ \u092E\u093E\u0932 \u092F\u093E \u0935\u093F\u0915\u093E\u0938 \u0915\u0940\ + \ \u0935\u0938\u094D\u0924\u0941\u090F\u0902, \u0909\u0924\u094D\u092A\u093E\ + \u0926\u0928, \u092F\u093E \u092F\u0942\u0930\u094B\u092A \u0915\u093E \u0928\ + \u093F\u0930\u094D\u092E\u093E\u0923, \u092F\u093E \u0909\u0938\u0915\u0947\ + \ \u0915\u093F\u0938\u0940 \u092D\u0940 \u0939\u093F\u0938\u094D\u0938\u0947\ + \ \u0915\u093E, \u0926\u093F\u0938\u0902\u092C\u0930 \u0915\u0947 \u092A\u0939\ + \u0932\u0947 \u0926\u093F\u0928, \u090F\u0915 \u0939\u091C\u093E\u0930 \u091B\ + \u0939 \u0938\u094C \u092A\u091A\u093E\u0938 \u0914\u0930 \u090F\u0915 \u0915\ + \u0947 \u092C\u093E\u0926, \u0907\u0902\u0917\u094D\u0932\u0948\u0902\u0921\ + \ \u0915\u0947 \u0907\u0938 \u0930\u093E\u0937\u094D\u091F\u094D\u0930\u092E\ + \u0902\u0921\u0932, \u092F\u093E \u0907\u0938 \u0930\u093E\u0937\u094D\u091F\ + \u094D\u0930\u092E\u0902\u0921\u0932 \u0938\u0947 \u0938\u0902\u092C\u0902\u0927\ + \u093F\u0924 \u0915\u093F\u0938\u0940 \u092D\u0940 \u0905\u0928\u094D\u092F\ + \ \u092D\u0942\u092E\u093F \u092F\u093E \u0915\u094D\u0937\u0947\u0924\u094D\ + \u0930 \u092E\u0947\u0902 \u0906\u092F\u093E\u0924 \u092F\u093E \u0932\u093E\ + \u092F\u093E \u091C\u093E\u090F\u0917\u093E, \u092F\u093E \u0909\u0928\u0915\ + \u0947 \u0915\u092C\u094D\u091C\u0947 \u092E\u0947\u0902, \u0915\u093F\u0938\ + \u0940 \u092D\u0940 \u091C\u0939\u093E\u091C \u092F\u093E \u091C\u0939\u093E\ + \u091C\u094B\u0902, \u091C\u0939\u093E\u091C \u092F\u093E \u091C\u0939\u093E\ + \u091C\u094B\u0902 \u092E\u0947\u0902 \u091C\u094B \u092D\u0940 \u0939\u094B\ + , \u0932\u0947\u0915\u093F\u0928 \u0910\u0938\u0947 \u092E\u0947\u0902 \u091C\ + \u094B \u0935\u093E\u0938\u094D\u0924\u0935 \u092E\u0947\u0902 \u0914\u0930\ + \ \u0927\u094B\u0916\u093E\u0927\u0921\u093C\u0940 \u0915\u0947 \u092C\u093F\ + \u0928\u093E \u0915\u0947\u0935\u0932 \u0907\u0938 \u0930\u093E\u0937\u094D\u091F\ + \u094D\u0930\u092E\u0902\u0921\u0932 \u0915\u0947 \u0932\u094B\u0917\u094B\u0902\ + \ \u0915\u0947 \u0939\u0948\u0902, \u0914\u0930 \u0915\u093F\u0938\u0940 \u0905\ + \u0928\u094D\u092F \u092E\u0947\u0902 \u0928\u0939\u0940\u0902, \u0915\u0947\ + \u0935\u0932 \u0910\u0938\u0947 \u0935\u093F\u0926\u0947\u0936\u0940 \u091C\u0939\ + \u093E\u091C\u094B\u0902 \u0914\u0930 \u091C\u0939\u093E\u091C\u094B\u0902 \u0915\ + \u094B \u091B\u094B\u0921\u093C\u0915\u0930 \u091C\u094B \u0935\u093E\u0938\u094D\ + \u0924\u0935 \u092E\u0947\u0902 \u0939\u0948\u0902 \u0914\u0930 \u0909\u091A\ + \u093F\u0924 \u0930\u0942\u092A \u0938\u0947 \u0909\u0938 \u0926\u0947\u0936\ + \ \u092F\u093E \u0938\u094D\u0925\u093E\u0928 \u0915\u0947 \u0932\u094B\u0917\ + \u094B\u0902 \u0915\u093E \u0939\u0948, \u091C\u0939\u093E\u0902 \u0938\u0947\ + \ \u0909\u0915\u094D\u0924 \u0938\u093E\u092E\u093E\u0928 \u0915\u093E \u0935\ + \u093F\u0915\u093E\u0938, \u0909\u0924\u094D\u092A\u093E\u0926\u0928 \u092F\u093E\ + \ \u0928\u093F\u0930\u094D\u092E\u093E\u0923 \u0939\u094B\u0924\u093E \u0939\ + \u0948\u0964 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u092E\ + \u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 1651 \u0915\u0947 \u0928\u0947\u0935\ + \u093F\u0917\u0947\u0936\u0928 \u0905\u0927\u093F\u0928\u093F\u092F\u092E\u094B\ + \u0902 \u0915\u0947 \u092A\u0930\u093F\u0923\u093E\u092E \u0915\u093E \u0938\ + \u092C\u0938\u0947 \u0905\u091A\u094D\u091B\u093E \u0935\u0930\u094D\u0923\u0928\ + \ \u0915\u0930\u0924\u093E \u0939\u0948?" + - input_choice_list: + A: "\u0905\u0902\u0917\u094D\u0930\u0947\u091C\u0940 \u0930\u093E\u091C\u093E\ + \ \u0915\u094B \u0905\u0927\u093F\u0915\u093E\u0930 \u0915\u093E \u090F\u0915\ + \ \u0928\u092F\u093E \u092A\u0926 \u0926\u0947\u0902" + B: "\u0907\u0902\u0917\u094D\u0932\u0948\u0902\u0921 \u0915\u0947 \u091A\u0930\ + \u094D\u091A \u0915\u0947 \u092A\u094D\u0930\u092E\u0941\u0916 \u0915\u093E\ + \ \u092A\u0926 \u0905\u0915\u0947\u0932\u0947 \u0939\u0947\u0928\u0930\u0940\ + \ \u0905\u0937\u094D\u091F\u092E \u0915\u094B \u0926\u0947\u0902 \u0914\u0930\ + \ \u0909\u0938\u0915\u0947 \u0909\u0924\u094D\u0924\u0930\u093E\u0927\u093F\ + \u0915\u093E\u0930\u093F\u092F\u094B\u0902 \u0915\u094B \u092C\u093E\u0939\ + \u0930 \u0915\u0930 \u0926\u0947\u0902" + C: "\u0915\u0947\u0932\u094D\u0935\u093F\u0928\u0935\u093E\u0926 \u0915\u094B\ + \ \u0907\u0902\u0917\u094D\u0932\u0948\u0902\u0921 \u092E\u0947\u0902 \u090F\ + \u0915\u092E\u093E\u0924\u094D\u0930 \u0938\u091A\u094D\u091A\u0947 \u0927\ + \u0930\u094D\u092E\u0936\u093E\u0938\u094D\u0924\u094D\u0930 \u0915\u0947\ + \ \u0930\u0942\u092A \u092E\u0947\u0902 \u0938\u094D\u0925\u093E\u092A\u093F\ + \u0924 \u0915\u0930\u0947\u0902" + D: "\u0907\u0902\u0917\u094D\u0932\u0948\u0902\u0921 \u092E\u0947\u0902 \u091A\ + \u0930\u094D\u091A \u0915\u094B \u092A\u0930\u0947\u0936\u093E\u0928 \u0915\ + \u0930\u0928\u0947 \u0935\u093E\u0932\u0947 \u0935\u093F\u092D\u093F\u0928\ + \u094D\u0928 \u092A\u094D\u0930\u0915\u093E\u0930 \u0915\u0947 \u092D\u094D\ + \u0930\u0937\u094D\u091F\u093E\u091A\u093E\u0930 \u0915\u094B \u0938\u092E\ + \u093E\u092A\u094D\u0924 \u0915\u0930\u0947\u0902" + input_correct_responses: + - D + input_question: "\u092F\u0939 \u092A\u094D\u0930\u0936\u094D\u0928 \u0928\u093F\ + \u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u091C\u093E\u0928\u0915\u093E\ + \u0930\u0940 \u0915\u094B \u0938\u0902\u0926\u0930\u094D\u092D\u093F\u0924 \u0915\ + \u0930\u0924\u093E \u0939\u0948\u0964 \u092F\u0926\u094D\u092F\u092A\u093F \u0930\ + \u093E\u091C\u093E \u0915\u093E \u092E\u0939\u093E\u092E\u0939\u093F\u092E \u0909\ + \u091A\u093F\u0924 \u0914\u0930 \u0938\u0939\u0940 \u0924\u0930\u0940\u0915\u0947\ + \ \u0938\u0947 \u0907\u0902\u0917\u094D\u0932\u0948\u0902\u0921 \u0915\u0947\ + \ \u091A\u0930\u094D\u091A \u0915\u093E \u0938\u0930\u094D\u0935\u094B\u091A\ + \u094D\u091A \u092A\u094D\u0930\u092E\u0941\u0916 \u0939\u0948 \u0914\u0930\ + \ \u0939\u094B\u0928\u093E \u092D\u0940 \u091A\u093E\u0939\u093F\u090F, \u0914\ + \u0930 \u0907\u0938 \u0915\u094D\u0937\u0947\u0924\u094D\u0930 \u0915\u0947\ + \ \u092A\u093E\u0926\u0930\u0940 \u0905\u092A\u0928\u0947 \u0926\u0940\u0915\ + \u094D\u0937\u093E\u0902\u0924 \u0938\u092E\u093E\u0930\u094B\u0939\u094B\u0902\ + \ \u092E\u0947\u0902 \u0907\u0938\u0947 \u092E\u093E\u0928\u094D\u092F\u0924\ + \u093E \u0926\u0947\u0924\u0947 \u0939\u0948\u0902, \u092B\u093F\u0930 \u092D\ + \u0940, \u0907\u0938\u0915\u0940 \u092A\u0941\u0937\u094D\u091F\u093F \u0914\ + \u0930 \u092A\u0941\u0937\u094D\u091F\u093F \u0915\u0947 \u0932\u093F\u090F\ + , \u0914\u0930 \u0938\u0926\u094D\u0917\u0941\u0923\u094B\u0902 \u0915\u0940\ + \ \u0935\u0943\u0926\u094D\u0927\u093F \u0915\u0947 \u0932\u093F\u090F \u0907\ + \u0902\u0917\u094D\u0932\u0948\u0902\u0921 \u0915\u0947 \u0907\u0938 \u0915\u094D\ + \u0937\u0947\u0924\u094D\u0930 \u0915\u0947 \u092D\u0940\u0924\u0930 \u092E\u0938\ + \u0940\u0939 \u0915\u093E \u0927\u0930\u094D\u092E, \u0914\u0930 \u0938\u092D\ + \u0940 \u0924\u094D\u0930\u0941\u091F\u093F\u092F\u094B\u0902, \u0935\u093F\u0927\ + \u0930\u094D\u092E\u093F\u092F\u094B\u0902, \u0914\u0930 \u0905\u0928\u094D\u092F\ + \ \u0935\u093F\u0936\u093E\u0932\u0924\u093E\u0913\u0902 \u0914\u0930 \u0926\ + \u0941\u0930\u094D\u0935\u094D\u092F\u0935\u0939\u093E\u0930\u094B\u0902 \u0915\ + \u094B \u0926\u092C\u093E\u0928\u0947 \u0914\u0930 \u0916\u0924\u094D\u092E\ + \ \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F, \u0907\u0938 \u0935\ + \u0930\u094D\u0924\u092E\u093E\u0928 \u0938\u0902\u0938\u0926 \u0915\u0947 \u0905\ + \u0927\u093F\u0915\u093E\u0930 \u0938\u0947, \u0907\u0938\u0947 \u0905\u0927\ + \u093F\u0928\u093F\u092F\u092E\u093F\u0924 \u0915\u093F\u092F\u093E \u091C\u093E\ + \u090F, \u0915\u093F \u0930\u093E\u091C\u093E, \u0939\u092E\u093E\u0930\u0947\ + \ \u0938\u0902\u092A\u094D\u0930\u092D\u0941 \u0938\u094D\u0935\u093E\u092E\u0940\ + , \u0909\u0928\u0915\u0947 \u0909\u0924\u094D\u0924\u0930\u093E\u0927\u093F\u0915\ + \u093E\u0930\u0940 \u0914\u0930 \u0909\u0924\u094D\u0924\u0930\u093E\u0927\u093F\ + \u0915\u093E\u0930\u0940, \u0907\u0938 \u0915\u094D\u0937\u0947\u0924\u094D\u0930\ + \ \u0915\u0947 \u0930\u093E\u091C\u093E, \u0915\u094B \u0907\u0902\u0917\u094D\ + \u0932\u0948\u0902\u0921 \u0915\u0947 \u091A\u0930\u094D\u091A \u0915\u0947\ + \ \u092A\u0943\u0925\u094D\u0935\u0940 \u092A\u0930 \u090F\u0915\u092E\u093E\ + \u0924\u094D\u0930 \u0938\u0930\u094D\u0935\u094B\u091A\u094D\u091A \u092A\u094D\ + \u0930\u092E\u0941\u0916 \u0915\u0947 \u0930\u0942\u092A \u092E\u0947\u0902\ + \ \u0932\u093F\u092F\u093E \u091C\u093E\u090F\u0917\u093E, \u0938\u094D\u0935\ + \u0940\u0915\u093E\u0930 \u0915\u093F\u092F\u093E \u091C\u093E\u090F\u0917\u093E\ + \ \u0914\u0930 \u092A\u094D\u0930\u0924\u093F\u0937\u094D\u0920\u093F\u0924\ + \ \u0915\u093F\u092F\u093E \u091C\u093E\u090F\u0917\u093E, \u091C\u093F\u0938\ + \u0947 \u090F\u0902\u0917\u094D\u0932\u093F\u0915\u0928 \u090F\u0915\u094D\u0932\ + \u0947\u0938\u093F\u092F\u093E \u0915\u0939\u093E \u091C\u093E\u090F\u0917\u093E\ + ; \u0914\u0930 \u0907\u0938 \u0915\u094D\u0937\u0947\u0924\u094D\u0930 \u0915\ + \u0947 \u0936\u093E\u0939\u0940 \u092E\u0941\u0915\u0941\u091F \u0915\u0947\ + \ \u0938\u093E\u0925-\u0938\u093E\u0925 \u0907\u0938\u0915\u0947 \u0936\u0940\ + \u0930\u094D\u0937\u0915 \u0914\u0930 \u0936\u0948\u0932\u0940 \u0915\u0947\ + \ \u0938\u093E\u0925-\u0938\u093E\u0925 \u0938\u092D\u0940 \u0938\u092E\u094D\ + \u092E\u093E\u0928, \u0917\u0930\u093F\u092E\u093E, \u0936\u094D\u0930\u0947\ + \u0937\u094D\u0920\u0924\u093E\u090F\u0902, \u0905\u0927\u093F\u0915\u093E\u0930\ + \ \u0915\u094D\u0937\u0947\u0924\u094D\u0930, \u0935\u093F\u0936\u0947\u0937\ + \u093E\u0927\u093F\u0915\u093E\u0930, \u0905\u0927\u093F\u0915\u093E\u0930,\ + \ \u092A\u094D\u0930\u0924\u093F\u0930\u0915\u094D\u0937\u093E, \u0932\u093E\ + \u092D \u0914\u0930 \u0935\u0938\u094D\u0924\u0941\u0913\u0902 \u0915\u094B\ + \ \u0909\u0915\u094D\u0924 \u0917\u0930\u093F\u092E\u093E \u0915\u0947 \u0905\ + \u0928\u0941\u0930\u0942\u092A \u092A\u094D\u0930\u093E\u092A\u094D\u0924, \u0938\ + \u0902\u0932\u0917\u094D\u0928 \u0914\u0930 \u090F\u0915\u091C\u0941\u091F \u0915\ + \u093F\u092F\u093E \u091C\u093E\u090F\u0917\u093E\u0964 \u090F\u0915 \u0939\u0940\ + \ \u091A\u0930\u094D\u091A \u0938\u0947 \u0938\u0902\u092C\u0902\u0927\u093F\ + \u0924 \u0914\u0930 \u0938\u0902\u092C\u0902\u0927\u093F\u0924 \u0938\u0930\u094D\ + \u0935\u094B\u091A\u094D\u091A \u092A\u094D\u0930\u092E\u0941\u0916; \u0914\u0930\ + \ \u092F\u0939 \u0915\u093F \u0939\u092E\u093E\u0930\u0947 \u0909\u0915\u094D\ + \u0924 \u0938\u0902\u092A\u094D\u0930\u092D\u0941 \u0938\u094D\u0935\u093E\u092E\ + \u0940, \u0909\u0928\u0915\u0947 \u0909\u0924\u094D\u0924\u0930\u093E\u0927\u093F\ + \u0915\u093E\u0930\u093F\u092F\u094B\u0902 \u0914\u0930 \u0909\u0924\u094D\u0924\ + \u0930\u093E\u0927\u093F\u0915\u093E\u0930\u093F\u092F\u094B\u0902, \u0907\u0938\ + \ \u0915\u094D\u0937\u0947\u0924\u094D\u0930 \u0915\u0947 \u0930\u093E\u091C\ + \u093E\u0913\u0902 \u0915\u0947 \u092A\u093E\u0938 \u0938\u092E\u092F-\u0938\ + \u092E\u092F \u092A\u0930 \u0910\u0938\u0940 \u0938\u092D\u0940 \u0924\u094D\ + \u0930\u0941\u091F\u093F\u092F\u094B\u0902, \u0935\u093F\u0927\u0930\u094D\u092E\ + \u093F\u092F\u094B\u0902 \u0915\u093E \u0926\u094C\u0930\u093E \u0915\u0930\u0928\ + \u0947, \u0926\u092E\u0928 \u0915\u0930\u0928\u0947, \u0928\u093F\u0935\u093E\ + \u0930\u0923 \u0915\u0930\u0928\u0947, \u0930\u093F\u0915\u0949\u0930\u094D\u0921\ + \ \u0915\u0930\u0928\u0947, \u0906\u0926\u0947\u0936 \u0926\u0947\u0928\u0947\ + , \u0938\u0939\u0940 \u0915\u0930\u0928\u0947, \u0930\u094B\u0915\u0928\u0947\ + \ \u0914\u0930 \u0938\u0902\u0936\u094B\u0927\u0928 \u0915\u0930\u0928\u0947\ + \ \u0915\u0940 \u092A\u0942\u0930\u0940 \u0936\u0915\u094D\u0924\u093F \u0914\ + \u0930 \u0905\u0927\u093F\u0915\u093E\u0930 \u0939\u094B\u0902\u0917\u0947\u0964\ + \ \u0926\u0941\u0930\u094D\u0935\u094D\u092F\u0935\u0939\u093E\u0930, \u0905\ + \u092A\u0930\u093E\u0927, \u0905\u0935\u092E\u093E\u0928\u0928\u093E, \u0914\ + \u0930 \u0935\u093F\u0936\u093E\u0932\u0924\u093E\u090F\u0902, \u091A\u093E\u0939\ + \u0947 \u0935\u0947 \u0915\u0941\u091B \u092D\u0940 \u0939\u094B\u0902, \u091C\ + \u093F\u0928\u094D\u0939\u0947\u0902 \u0906\u0927\u094D\u092F\u093E\u0924\u094D\ + \u092E\u093F\u0915 \u0905\u0927\u093F\u0915\u093E\u0930 \u092F\u093E \u0905\u0927\ + \u093F\u0915\u093E\u0930 \u0915\u094D\u0937\u0947\u0924\u094D\u0930 \u0915\u0947\ + \ \u0915\u093F\u0938\u0940 \u092D\u0940 \u0924\u0930\u0940\u0915\u0947 \u0938\ + \u0947 \u0938\u0930\u094D\u0935\u0936\u0915\u094D\u0924\u093F\u092E\u093E\u0928\ + \ \u0908\u0936\u094D\u0935\u0930 \u0915\u0940 \u0916\u0941\u0936\u0940 \u0915\ + \u0947 \u0932\u093F\u090F \u0915\u093E\u0928\u0942\u0928\u0940 \u0924\u094C\u0930\ + \ \u092A\u0930 \u0938\u0941\u0927\u093E\u0930, \u0926\u092E\u0928, \u0906\u0926\ + \u0947\u0936, \u0928\u093F\u0935\u093E\u0930\u0923, \u0938\u0941\u0927\u093E\ + \u0930, \u0938\u0902\u092F\u092E\u093F\u0924 \u092F\u093E \u0938\u0902\u0936\ + \u094B\u0927\u093F\u0924 \u0915\u093F\u092F\u093E \u091C\u093E\u0928\u093E \u091A\ + \u093E\u0939\u093F\u090F \u092F\u093E \u0915\u093F\u092F\u093E \u091C\u093E\ + \ \u0938\u0915\u0924\u093E \u0939\u0948\u0964 \u092E\u0938\u0940\u0939 \u0915\ + \u0947 \u0927\u0930\u094D\u092E \u092E\u0947\u0902 \u0938\u0926\u094D\u0917\u0941\ + \u0923\u094B\u0902 \u0915\u0940 \u0935\u0943\u0926\u094D\u0927\u093F, \u0914\ + \u0930 \u0907\u0938 \u0915\u094D\u0937\u0947\u0924\u094D\u0930 \u0915\u0940\ + \ \u0936\u093E\u0902\u0924\u093F, \u090F\u0915\u0924\u093E \u0914\u0930 \u0936\ + \u093E\u0902\u0924\u093F \u0915\u0947 \u0938\u0902\u0930\u0915\u094D\u0937\u0923\ + \ \u0915\u0947 \u0932\u093F\u090F; \u0915\u093F\u0938\u0940 \u092D\u0940 \u0909\ + \u092A\u092F\u094B\u0917, \u0935\u093F\u0926\u0947\u0936\u0940 \u092D\u0942\u092E\ + \u093F, \u0935\u093F\u0926\u0947\u0936\u0940 \u092A\u094D\u0930\u093E\u0927\u093F\ + \u0915\u0930\u0923, \u0928\u0941\u0938\u094D\u0916\u0947, \u092F\u093E \u0915\ + \u093F\u0938\u0940 \u0905\u0928\u094D\u092F \u091A\u0940\u091C \u092F\u093E\ + \ \u091A\u0940\u091C\u094B\u0902 \u0915\u0947 \u092C\u093E\u0935\u091C\u0942\ + \u0926 \u0907\u0938\u0915\u0947 \u0935\u093F\u092A\u0930\u0940\u0924\u0964 \u0905\ + \u0902\u0917\u094D\u0930\u0947\u091C\u0940 \u0938\u0902\u0938\u0926, \u0938\u0930\ + \u094D\u0935\u094B\u091A\u094D\u091A\u0924\u093E \u0915\u093E \u0905\u0927\u093F\ + \u0928\u093F\u092F\u092E, 1534 \u092A\u0930\u093F\u091A\u094D\u091B\u0947\u0926\ + \ \u0938\u0947, \u0915\u094B\u0908 \u092F\u0939 \u0905\u0928\u0941\u092E\u093E\ + \u0928 \u0932\u0917\u093E \u0938\u0915\u0924\u093E \u0939\u0948 \u0915\u093F\ + \ \u0905\u0902\u0917\u094D\u0930\u0947\u091C\u0940 \u0938\u0902\u0938\u0926\ + \ \u092F\u0939 \u0924\u0930\u094D\u0915 \u0926\u0947\u0928\u093E \u091A\u093E\ + \u0939\u0924\u0940 \u0925\u0940 \u0915\u093F \u0938\u0930\u094D\u0935\u094B\u091A\ + \u094D\u091A\u0924\u093E \u0915\u093E \u0905\u0927\u093F\u0928\u093F\u092F\u092E" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_european_history +tag: mmlu_hi_llama_humanities_tasks +task: mmlu_hi_llama_high_school_european_history +task_alias: high_school_european_history diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_geography.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_geography.yaml new file mode 100644 index 0000000000000000000000000000000000000000..359c724a4867f66b50028054baaf0221d8d52b20 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_geography.yaml @@ -0,0 +1,114 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0905\u092A\u0930\u093F\u0937\u094D\u0915\u0943\u0924 \u091C\u0928\u094D\ + \u092E\u0924\u093F\u0925\u093F \u0938\u0947 \u0905\u092A\u0930\u093F\u0937\ + \u094D\u0915\u0943\u0924 \u092E\u0943\u0924\u094D\u092F\u0941 \u0926\u0930\ + \u0964" + B: "\u0905\u092A\u0930\u093F\u0937\u094D\u0915\u0943\u0924 \u091C\u0928\u094D\ + \u092E \u0926\u0930 \u0938\u0947 \u0905\u092A\u0930\u093F\u0937\u094D\u0915\ + \u0943\u0924 \u092E\u0943\u0924\u094D\u092F\u0941 \u0926\u0930\u0964" + C: "\u0905\u092A\u0930\u093F\u0937\u094D\u0915\u0943\u0924 \u091C\u0928\u094D\ + \u092E \u0926\u0930 \u0938\u0947 \u0926\u094B\u0917\u0941\u0928\u093E \u0938\ + \u092E\u092F\u0964" + D: "\u0905\u092A\u0930\u093F\u0937\u094D\u0915\u0943\u0924 \u092E\u0943\u0924\ + \u094D\u092F\u0941 \u0926\u0930 \u0938\u0947 \u092A\u094D\u0930\u091C\u0928\ + \u0928 \u0926\u0930\u0964" + input_correct_responses: + - A + input_question: "\u0915\u093F\u0938\u0940 \u091C\u0928\u0938\u0902\u0916\u094D\ + \u092F\u093E \u0915\u0940 \u092A\u094D\u0930\u093E\u0915\u0943\u0924\u093F\u0915\ + \ \u0935\u0943\u0926\u094D\u0927\u093F \u0926\u0930 \u0915\u094B \u0918\u091F\ + \u093E\u0915\u0930 \u091C\u094D\u091E\u093E\u0924 \u0915\u093F\u092F\u093E \u091C\ + \u093E\u0924\u093E \u0939\u0948" + - input_choice_list: + A: "\u091C\u0928\u094D\u092E \u0926\u0930 \u092C\u0922\u093C\u0924\u0940 \u0939\ + \u0948 \u0914\u0930 \u091C\u0928\u0938\u0902\u0916\u094D\u092F\u093E \u0935\ + \u0943\u0926\u094D\u0927\u093F \u0926\u0930 \u0915\u092E \u0924\u0940\u0935\ + \u094D\u0930 \u0939\u094B\u0924\u0940 \u0939\u0948\u0964" + B: "\u091C\u0928\u094D\u092E \u0926\u0930 \u092E\u0947\u0902 \u0917\u093F\u0930\ + \u093E\u0935\u091F \u0914\u0930 \u091C\u0928\u0938\u0902\u0916\u094D\u092F\ + \u093E \u0935\u0943\u0926\u094D\u0927\u093F \u0926\u0930 \u0915\u092E \u0924\ + \u0940\u0935\u094D\u0930 \u0939\u0948\u0964" + C: "\u091C\u0928\u094D\u092E \u0926\u0930 \u092C\u0922\u093C\u0924\u0940 \u0939\ + \u0948 \u0914\u0930 \u091C\u0928\u0938\u0902\u0916\u094D\u092F\u093E \u0935\ + \u0943\u0926\u094D\u0927\u093F \u0926\u0930 \u092C\u0922\u093C\u0924\u0940\ + \ \u0939\u0948\u0964" + D: "\u091C\u0928\u094D\u092E \u0926\u0930 \u0918\u091F\u0924\u0940 \u0939\u0948\ + \ \u0914\u0930 \u091C\u0928\u0938\u0902\u0916\u094D\u092F\u093E \u0935\u0943\ + \u0926\u094D\u0927\u093F \u0926\u0930 \u092C\u0922\u093C\u0924\u0940 \u0939\ + \u0948\u0964" + input_correct_responses: + - B + input_question: "\u091C\u0928\u0938\u093E\u0902\u0916\u094D\u092F\u093F\u0915\u0940\ + \u092F \u0938\u0902\u0915\u094D\u0930\u092E\u0923 \u092E\u0949\u0921\u0932 \u0915\ + \u0947 \u0924\u0940\u0938\u0930\u0947 \u091A\u0930\u0923 \u0915\u0947 \u0926\ + \u094C\u0930\u093E\u0928, \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\ + \u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u0938\ + \u0924\u094D\u092F \u0939\u0948?" + - input_choice_list: + A: "\u092A\u094D\u0930\u092F\u093E\u0938\u094B\u0902 \u0915\u093E \u0926\u094B\ + \u0939\u0930\u093E\u0935 \u0905\u0915\u094D\u0938\u0930 \u0939\u094B\u0924\ + \u093E \u0939\u0948." + B: "\u0915\u0947\u0902\u0926\u094D\u0930\u0940\u092F \u0936\u0939\u0930 \u0915\ + \u0940 \u0938\u093E\u092E\u093E\u091C\u093F\u0915 \u0938\u092E\u0938\u094D\ + \u092F\u093E\u090F\u0902 \u0906\u0938\u092A\u093E\u0938 \u0915\u0947 \u0906\ + \u0935\u093E\u0938\u0940\u092F \u0909\u092A\u0928\u0917\u0930\u094B\u0902\ + \ \u092E\u0947\u0902 \u092B\u0948\u0932\u0924\u0940 \u0939\u0948\u0902\u0964" + C: "\u0938\u0947\u0935\u093E\u090F\u0901 \u092A\u094D\u0930\u0926\u093E\u0928\ + \ \u0915\u0930\u0928\u0947 \u092E\u0947\u0902 \u0905\u0915\u094D\u0937\u092E\ + \u0924\u093E \u0905\u0915\u094D\u0938\u0930 \u0939\u094B\u0924\u0940 \u0939\ + \u0948\u0964" + D: "\u092A\u094D\u0930\u0926\u0942\u0937\u0923 \u0915\u092E \u0915\u0930\u0928\ + \u0947 \u0915\u0947 \u090F\u0915 \u092A\u0921\u093C\u094B\u0938 \u0915\u0947\ + \ \u092A\u094D\u0930\u092F\u093E\u0938\u094B\u0902 \u0915\u094B \u092A\u0921\ + \u093C\u094B\u0938\u0940 \u0938\u092E\u0941\u0926\u093E\u092F\u094B\u0902\ + \ \u0926\u094D\u0935\u093E\u0930\u093E \u0939\u092E\u0947\u0936\u093E \u0938\ + \u092E\u0930\u094D\u0925\u0928 \u0926\u093F\u092F\u093E \u091C\u093E\u0924\ + \u093E \u0939\u0948\u0964" + input_correct_responses: + - D + input_question: "\u0938\u0902\u092F\u0941\u0915\u094D\u0924 \u0930\u093E\u091C\ + \u094D\u092F \u0905\u092E\u0947\u0930\u093F\u0915\u093E \u092E\u0947\u0902 \u0938\ + \u094D\u0925\u093E\u0928\u0940\u092F \u0938\u0930\u0915\u093E\u0930\u094B\u0902\ + \ \u0926\u094D\u0935\u093E\u0930\u093E \u092A\u094D\u0930\u0926\u093E\u0928\ + \ \u0915\u0940 \u091C\u093E\u0928\u0947 \u0935\u093E\u0932\u0940 \u0938\u0947\ + \u0935\u093E\u0913\u0902 \u0915\u0947 \u0938\u0902\u092C\u0902\u0927 \u092E\u0947\ + \u0902 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u092E\u0947\ + \u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u0915\u0925\u0928 \u0938\ + \u091F\u0940\u0915 \u0928\u0939\u0940\u0902 \u0939\u0948?" + - input_choice_list: + A: "\u0906\u0909\u091F\u0938\u094B\u0930\u094D\u0938\u093F\u0902\u0917." + B: "\u0911\u092B\u0936\u094B\u0930\u093F\u0902\u0917" + C: "\u092E\u093E\u0915\u094D\u0935\u093F\u0932\u093E\u0921\u094B\u0930\u0938" + D: "\u0938\u094D\u0925\u093E\u0928\u0940\u092F \u0905\u0902\u0924\u0930\u0928\ + \u093F\u0930\u094D\u092D\u0930\u0924\u093E." + input_correct_responses: + - B + input_question: "\u0915\u093F\u0938\u0940 \u0911\u092A\u0930\u0947\u0936\u0928\ + \ \u0915\u094B \u091A\u0932\u093E\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F\ + \ \u0915\u093F\u0938\u0940 \u0935\u093F\u0926\u0947\u0936\u0940 \u0924\u0943\ + \u0924\u0940\u092F-\u092A\u0915\u094D\u0937 \u0938\u0947\u0935\u093E \u092A\u094D\ + \u0930\u0926\u093E\u0924\u093E \u0915\u094B \u0928\u093F\u092F\u0941\u0915\u094D\ + \u0924 \u0915\u0930\u0928\u0947 \u0915\u0940 \u092A\u094D\u0930\u0925\u093E\ + \ \u0915\u094B \u0915\u0939\u093E \u091C\u093E\u0924\u093E \u0939\u0948" + - input_choice_list: + A: "\u0915\u092C\u0942\u0924\u0930 \u0938\u093E\u092C\u0941\u0928" + B: "\u0921\u0935 \u0915\u0948\u0902\u0921\u0940 \u092C\u093E\u0930" + C: "\u0915\u092C\u0942\u0924\u0930 \u0915\u093E \u092A\u094D\u0930\u0924\u0940\ + \u0915" + D: "\u090F\u0915 \u0915\u092C\u0942\u0924\u0930 (\u092A\u0915\u094D\u0937\u0940\ + )" + input_correct_responses: + - C + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u0940 \u0935\u0938\ + \u094D\u0924\u0941 \u0905\u092D\u094C\u0924\u093F\u0915 \u0938\u0902\u0938\u094D\ + \u0915\u0943\u0924\u093F \u0915\u093E \u0909\u0926\u093E\u0939\u0930\u0923 \u0939\ + \u0948?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_geography +tag: mmlu_hi_llama_social_sciences_tasks +task: mmlu_hi_llama_high_school_geography +task_alias: high_school_geography diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_government_and_politics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_government_and_politics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..854805961670b8bfddd0000197d15f6327f1e48d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_government_and_politics.yaml @@ -0,0 +1,142 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0909\u0928 \u0936\u0915\u094D\u0924\u093F\u092F\u094B\u0902 \u0915\u0940\ + \ \u0938\u0902\u0935\u0948\u0927\u093E\u0928\u093F\u0915 \u092A\u0930\u093F\ + \u092D\u093E\u0937\u093E \u0935\u094D\u092F\u093E\u092A\u0915 \u0914\u0930\ + \ \u0905\u0928\u093F\u0930\u094D\u0926\u093F\u0937\u094D\u091F \u0939\u0948" + B: "\u0905\u0927\u093F\u0915\u093E\u0902\u0936 \u0932\u094B\u0917 \u0907\u0938\ + \ \u092C\u093E\u0924 \u0938\u0947 \u0938\u0939\u092E\u0924 \u0939\u0948\u0902\ + \ \u0915\u093F \u0938\u0902\u0935\u093F\u0927\u093E\u0928 \u0930\u093E\u0937\ + \u094D\u091F\u094D\u0930\u092A\u0924\u093F \u0915\u0940 \u0936\u0915\u094D\ + \u0924\u093F \u092A\u0930 \u092C\u0939\u0941\u0924 \u0905\u0927\u093F\u0915\ + \ \u0938\u0940\u092E\u093E\u090F\u0901 \u0932\u0917\u093E\u0924\u093E \u0939\ + \u0948" + C: "\u0938\u0930\u094D\u0935\u094B\u091A\u094D\u091A \u0928\u094D\u092F\u093E\ + \u092F\u093E\u0932\u092F \u0932\u0917\u093E\u0924\u093E\u0930 \u0930\u093E\ + \u0937\u094D\u091F\u094D\u0930\u092A\u0924\u093F \u0915\u0940 \u0936\u0915\ + \u094D\u0924\u093F\u092F\u094B\u0902 \u0938\u0947 \u0938\u0902\u092C\u0902\ + \u0927\u093F\u0924 \u092E\u093E\u092E\u0932\u094B\u0902 \u092A\u0930 \u092B\ + \u0948\u0938\u0932\u093E \u0926\u0947\u0928\u0947 \u0938\u0947 \u0907\u0928\ + \u0915\u093E\u0930 \u0915\u0930\u0924\u093E \u0939\u0948" + D: "\u0938\u0902\u0935\u0948\u0927\u093E\u0928\u093F\u0915 \u0938\u0902\u0936\ + \u094B\u0927\u0928\u094B\u0902 \u0928\u0947 \u0930\u093E\u0937\u094D\u091F\ + \u094D\u0930\u092A\u0924\u093F \u0915\u0940 \u0936\u0915\u094D\u0924\u093F\ + \u092F\u094B\u0902 \u092E\u0947\u0902 \u0915\u093E\u092B\u0940 \u0935\u0943\ + \u0926\u094D\u0927\u093F \u0915\u0940 \u0939\u0948" + input_correct_responses: + - A + input_question: "\u0930\u093E\u0937\u094D\u091F\u094D\u0930\u092A\u0924\u093F\ + \ \u0915\u0940 \u0936\u0915\u094D\u0924\u093F \u0915\u0940 \u0938\u0940\u092E\ + \u093E \u092A\u0930 \u0905\u0928\u093F\u0936\u094D\u091A\u093F\u0924\u0924\u093E\ + \ \u092E\u0941\u0916\u094D\u092F \u0930\u0942\u092A \u0938\u0947 \u0907\u0938\ + \ \u0924\u0925\u094D\u092F \u0915\u0947 \u0915\u093E\u0930\u0923 \u0939\u094B\ + \u0924\u0940 \u0939\u0948" + - input_choice_list: + A: "\u0938\u0947\u0928\u093E \u092A\u0930 \u0938\u0902\u0918\u0940\u092F \u0916\ + \u0930\u094D\u091A \u092E\u0947\u0902 \u0935\u093E\u0930\u094D\u0937\u093F\ + \u0915 \u0935\u0943\u0926\u094D\u0927\u093F" + B: "\u0930\u093E\u0937\u094D\u091F\u094D\u0930\u0940\u092F \u090B\u0923 \u092A\ + \u0930 \u092C\u094D\u092F\u093E\u091C \u0915\u0940 \u0930\u093E\u0936\u093F" + C: "\u0930\u093E\u0937\u094D\u091F\u094D\u0930\u092A\u0924\u093F \u0914\u0930\ + \ \u0915\u093E\u0902\u0917\u094D\u0930\u0947\u0938 \u0926\u094D\u0935\u093E\ + \u0930\u093E \u0915\u093F\u090F \u0917\u090F \u092A\u094D\u0930\u093E\u0930\ + \u0902\u092D\u093F\u0915 \u092C\u091C\u091F \u092A\u094D\u0930\u0938\u094D\ + \u0924\u093E\u0935\u094B\u0902 \u0915\u0947 \u092C\u0940\u091A \u0905\u0902\ + \u0924\u0930" + D: "\u0938\u0930\u0915\u093E\u0930 \u0905\u092A\u0928\u0947 \u0930\u093E\u091C\ + \u0938\u094D\u0935 \u0938\u0947 \u0905\u0927\u093F\u0915 \u0930\u093E\u0936\ + \u093F \u0916\u0930\u094D\u091A \u0915\u0930\u0924\u0940 \u0939\u0948" + input_correct_responses: + - D + input_question: ""\u092C\u091C\u091F \u0918\u093E\u091F\u093E" \u0936\ + \u092C\u094D\u0926 \u0915\u093E \u0924\u093E\u0924\u094D\u092A\u0930\u094D\u092F\ + \ \u0939\u0948" + - input_choice_list: + A: "\u0935\u0940\u0915\u094D\u0938 \u092C\u0928\u093E\u092E \u0938\u0902\u092F\ + \u0941\u0915\u094D\u0924 \u0930\u093E\u091C\u094D\u092F \u0905\u092E\u0947\ + \u0930\u093F\u0915\u093E" + B: "\u092C\u0947\u091F\u094D\u0938 \u092C\u0928\u093E\u092E \u092C\u094D\u0930\ + \u0948\u0921\u0940" + C: "\u092E\u0948\u092A \u092C\u0928\u093E\u092E \u0913\u0939\u093F\u092F\u094B" + D: "\u092E\u093F\u0930\u093E\u0902\u0921\u093E \u092C\u0928\u093E\u092E \u090F\ + \u0930\u093F\u091C\u093C\u094B\u0928\u093E" + input_correct_responses: + - D + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u093F\u0938 \u092E\u093E\u092E\u0932\ + \u0947 \u0928\u0947 \u092E\u093F\u0938\u093E\u0932 \u0915\u093E\u092F\u092E\ + \ \u0915\u0940 \u0915\u093F \u092A\u094D\u0930\u0924\u093F\u0935\u093E\u0926\ + \u0940 \u0915\u094B \u091A\u0941\u092A \u0930\u0939\u0928\u0947 \u0915\u0947\ + \ \u0905\u0927\u093F\u0915\u093E\u0930, \u0935\u0915\u0940\u0932 \u0915\u0947\ + \ \u0905\u0927\u093F\u0915\u093E\u0930 \u0914\u0930 \u0906\u0924\u094D\u092E\ + -\u0926\u094B\u0937\u093E\u0930\u094B\u092A\u0923 \u0938\u0947 \u0938\u0941\u0930\ + \u0915\u094D\u0937\u093E \u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902\ + \ \u0938\u0942\u091A\u093F\u0924 \u0915\u093F\u092F\u093E \u091C\u093E\u0928\ + \u093E \u091A\u093E\u0939\u093F\u090F?" + - input_choice_list: + A: "\u0907\u0928\u0915\u0940 \u0938\u094D\u0925\u093E\u092A\u0928\u093E \u0935\ + \u093F\u0927\u093E\u092F\u0940 \u0936\u093E\u0916\u093E \u0926\u094D\u0935\ + \u093E\u0930\u093E \u0915\u0940 \u091C\u093E\u0924\u0940 \u0939\u0948\u0964" + B: "\u0909\u0928\u0915\u0947 \u0938\u0926\u0938\u094D\u092F\u094B\u0902 \u0915\ + \u093E \u0905\u0915\u094D\u0938\u0930 \u0930\u093E\u0937\u094D\u091F\u094D\ + \u0930\u092A\u0924\u093F \u0915\u0947 \u0928\u093F\u0930\u094D\u0923\u092F\ + \u094B\u0902 \u092A\u0930 \u0905\u0927\u093F\u0915 \u092A\u094D\u0930\u092D\ + \u093E\u0935 \u0928\u0939\u0940\u0902 \u0939\u094B\u0924\u093E \u0939\u0948\ + \u0964" + C: "\u0907\u0928 \u0938\u092D\u0940 \u0915\u094B \u0909\u0928 \u0928\u0947\u0924\ + \u093E\u0913\u0902 \u0926\u094D\u0935\u093E\u0930\u093E \u0928\u0939\u0940\ + \u0902 \u091A\u0932\u093E\u092F\u093E \u091C\u093E \u0938\u0915\u0924\u093E\ + \ \u0939\u0948 \u091C\u094B \u0909\u0938\u0940 \u0930\u093E\u091C\u0928\u0940\ + \u0924\u093F\u0915 \u0926\u0932 \u0938\u0947 \u0938\u0902\u092C\u0902\u0927\ + \u093F\u0924 \u0939\u0948\u0902 \u091C\u093F\u0938\u0915\u093E \u0905\u0927\ + \u094D\u092F\u0915\u094D\u0937 \u0930\u093E\u0937\u094D\u091F\u094D\u0930\u092A\ + \u0924\u093F \u0939\u0948\u0964" + D: "\u092A\u094D\u0930\u0924\u094D\u092F\u0947\u0915 \u0938\u0902\u0918\u0940\ + \u092F \u090F\u091C\u0947\u0902\u0938\u0940 \u090F\u0915 \u0915\u0948\u092C\ + \u093F\u0928\u0947\u091F \u0935\u093F\u092D\u093E\u0917 \u0928\u0939\u0940\ + \u0902 \u0939\u0948\u0964" + input_correct_responses: + - C + input_question: "\u0915\u0948\u092C\u093F\u0928\u0947\u091F \u0935\u093F\u092D\ + \u093E\u0917\u094B\u0902 \u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902\ + \ \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u092E\u0947\u0902\ + \ \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u0915\u0925\u0928 \u0917\u0932\ + \u0924 \u0939\u0948?" + - input_choice_list: + A: "\u0908\u092E\u093E\u0928\u0926\u093E\u0930 \u0930\u093E\u091C\u0928\u0947\ + \u0924\u093E \u0917\u0941\u091F\u094B\u0902 \u0915\u094B \u0935\u093F\u0915\ + \u0938\u093F\u0924 \u0939\u094B\u0928\u0947 \u0938\u0947 \u0930\u094B\u0915\ + \ \u0938\u0915\u0924\u0947 \u0939\u0948\u0902\u0964" + B: "\u091B\u094B\u091F\u0947 \u0917\u0923\u0930\u093E\u091C\u094D\u092F\u094B\ + \u0902 \u0915\u0940 \u0924\u0941\u0932\u0928\u093E \u092E\u0947\u0902 \u092C\ + \u0921\u093C\u0947 \u0917\u0923\u0930\u093E\u091C\u094D\u092F\u094B\u0902\ + \ \u092E\u0947\u0902 \u0917\u0941\u091F \u0939\u094B\u0928\u0947 \u0915\u0940\ + \ \u0938\u0902\u092D\u093E\u0935\u0928\u093E \u0905\u0927\u093F\u0915 \u0939\ + \u094B\u0924\u0940 \u0939\u0948\u0964" + C: "\u0917\u0941\u091F\u092C\u093E\u091C\u0940 \u0915\u0947 \u0928\u0915\u093E\ + \u0930\u093E\u0924\u094D\u092E\u0915 \u092A\u094D\u0930\u092D\u093E\u0935\u094B\ + \u0902 \u0915\u094B \u0917\u0923\u0924\u093E\u0902\u0924\u094D\u0930\u093F\ + \u0915 \u0938\u0930\u0915\u093E\u0930 \u0926\u094D\u0935\u093E\u0930\u093E\ + \ \u0915\u092E \u0915\u093F\u092F\u093E \u091C\u093E \u0938\u0915\u0924\u093E\ + \ \u0939\u0948\u0964" + D: "\u0938\u094D\u0935\u0924\u0902\u0924\u094D\u0930 \u091A\u0941\u0928\u093E\ + \u0935 \u0917\u0941\u091F\u092C\u093E\u091C\u0940 \u0915\u0947 \u0916\u093F\ + \u0932\u093E\u092B \u0932\u094B\u0917\u094B\u0902 \u0915\u093E \u0938\u092C\ + \u0938\u0947 \u0905\u091A\u094D\u091B\u093E \u092C\u091A\u093E\u0935 \u0939\ + \u0948\u0964" + input_correct_responses: + - C + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u0926 \u092B\ + \u0947\u0921\u0930\u0932\u093F\u0938\u094D\u091F \u0928\u0902\u092C\u0930 10\ + \ \u092E\u0947\u0902 \u091C\u0947\u092E\u094D\u0938 \u092E\u0948\u0921\u093F\ + \u0938\u0928 \u0926\u094D\u0935\u093E\u0930\u093E \u0926\u093F\u090F \u0917\u090F\ + \ \u0924\u0930\u094D\u0915 \u0915\u094B \u0938\u092C\u0938\u0947 \u0905\u091A\ + \u094D\u091B\u093E \u092C\u0924\u093E\u0924\u093E \u0939\u0948?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_government_and_politics +tag: mmlu_hi_llama_social_sciences_tasks +task: mmlu_hi_llama_high_school_government_and_politics +task_alias: high_school_government_and_politics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_macroeconomics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_macroeconomics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5bfaf29ebc491737c10c91837015834d6e8882a4 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_macroeconomics.yaml @@ -0,0 +1,108 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0905\u092E\u0947\u0930\u093F\u0915\u0940 \u0938\u0947\u0928\u093E \u0928\ + \u0947 1000 \u0905\u092E\u0947\u0930\u093F\u0915\u0940 \u0915\u0930\u094D\u092E\ + \u093F\u092F\u094B\u0902 \u0915\u0947 \u0938\u093E\u0925 \u090F\u0915 \u0935\ + \u093F\u0926\u0947\u0936\u0940 \u0926\u0947\u0936 \u092E\u0947\u0902 \u090F\ + \u0915 \u0928\u092F\u093E \u092C\u0947\u0938 \u0916\u094B\u0932\u093E \u0939\ + \u0948\u0964" + B: "\u091C\u093E\u092A\u093E\u0928\u0940 \u0909\u092A\u092D\u094B\u0915\u094D\ + \u0924\u093E \u0938\u0902\u092F\u0941\u0915\u094D\u0924 \u0930\u093E\u091C\ + \u094D\u092F \u0905\u092E\u0947\u0930\u093F\u0915\u093E \u092E\u0947\u0902\ + \ \u0909\u0924\u094D\u092A\u093E\u0926\u093F\u0924 \u0939\u091C\u093E\u0930\ + \u094B\u0902 \u0938\u0940\u0921\u0940 \u0916\u0930\u0940\u0926\u0924\u0947\ + \ \u0939\u0948\u0902\u0964" + C: "\u090F\u0915 \u0905\u092E\u0947\u0930\u093F\u0915\u0940 \u092A\u0949\u092A\ + \ \u0917\u093E\u092F\u0915 \u092A\u0947\u0930\u093F\u0938 \u092E\u0947\u0902\ + \ \u090F\u0915 \u092C\u093F\u0915\u093E\u090A \u0938\u0902\u0917\u0940\u0924\ + \ \u0915\u093E\u0930\u094D\u092F\u0915\u094D\u0930\u092E \u092A\u094D\u0930\ + \u0938\u094D\u0924\u0941\u0924 \u0915\u0930\u0924\u093E \u0939\u0948\u0964" + D: "\u090F\u0915 \u092B\u093C\u094D\u0930\u093E\u0902\u0938\u0940\u0938\u0940\ + \ \u0928\u093E\u091F\u094D\u092F \u092A\u094D\u0930\u0938\u094D\u0924\u0941\ + \u0924\u093F \u0926\u0930\u094D\u091C\u0928\u094B\u0902 \u0905\u092E\u0947\ + \u0930\u093F\u0915\u0940 \u0936\u0939\u0930\u094B\u0902 \u0915\u093E \u0926\ + \u094C\u0930\u093E \u0915\u0930\u0924\u0940 \u0939\u0948\u0964" + input_correct_responses: + - C + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0905\u092E\u0947\u0930\ + \u093F\u0915\u0940 \u0938\u0915\u0932 \u0918\u0930\u0947\u0932\u0942 \u0909\u0924\ + \u094D\u092A\u093E\u0926 \u092E\u0947\u0902 \u0936\u093E\u092E\u093F\u0932 \u0928\ + \u0939\u0940\u0902 \u0939\u0948?" + - input_choice_list: + A: "\u092C\u0947\u0930\u094B\u091C\u0917\u093E\u0930\u0940 \u0914\u0930 \u092E\ + \u0941\u0926\u094D\u0930\u093E\u0938\u094D\u092B\u0940\u0924\u093F \u0915\u0947\ + \ \u092C\u0940\u091A \u0938\u0940\u0927\u093E \u0938\u0902\u092C\u0902\u0927" + B: "\u0915\u0940\u092E\u0924 \u0914\u0930 \u092E\u093E\u0902\u0917 \u0915\u0940\ + \ \u092E\u093E\u0924\u094D\u0930\u093E \u0915\u0947 \u092C\u0940\u091A \u0938\ + \u0940\u0927\u093E \u0938\u0902\u092C\u0902\u0927" + C: "\u0915\u0940\u092E\u0924 \u0914\u0930 \u092E\u093E\u0902\u0917 \u0915\u0940\ + \ \u092E\u093E\u0924\u094D\u0930\u093E \u0915\u0947 \u092C\u0940\u091A \u0935\ + \u093F\u092A\u0930\u0940\u0924 \u0938\u0902\u092C\u0902\u0927" + D: "\u092C\u0947\u0930\u094B\u091C\u0917\u093E\u0930\u0940 \u0914\u0930 \u092E\ + \u0941\u0926\u094D\u0930\u093E\u0938\u094D\u092B\u0940\u0924\u093F \u0915\u0947\ + \ \u092C\u0940\u091A \u0935\u093F\u092A\u0930\u0940\u0924 \u0938\u0902\u092C\ + \u0902\u0927" + input_correct_responses: + - D + input_question: "\u0905\u0932\u094D\u092A\u093E\u0935\u0927\u093F \u092B\u093F\ + \u0932\u093F\u092A\u094D\u0938 \u0935\u0915\u094D\u0930 \u0907\u0902\u0917\u093F\ + \u0924 \u0915\u0930\u0924\u093E \u0939\u0948" + - input_choice_list: + A: "\u0928\u093F\u0930\u094D\u092F\u093E\u0924 \u0906\u092F\u093E\u0924 \u0938\ + \u0947 \u0905\u0927\u093F\u0915 \u0939\u0948\u0964" + B: "\u0906\u092F\u093E\u0924 \u0928\u093F\u0930\u094D\u092F\u093E\u0924 \u0938\ + \u0947 \u0905\u0927\u093F\u0915 \u0939\u0948\u0964" + C: "\u0938\u0902\u0918\u0940\u092F \u0915\u0930 \u0938\u0902\u0917\u094D\u0930\ + \u0939 \u0935\u094D\u092F\u092F \u0938\u0947 \u0905\u0927\u093F\u0915 \u0939\ + \u0948\u0964" + D: "\u0938\u0902\u0918\u0940\u092F \u0935\u094D\u092F\u092F \u0938\u0902\u0918\ + \u0940\u092F \u0915\u0930 \u0930\u093E\u091C\u0938\u094D\u0935 \u0938\u0947\ + \ \u0905\u0927\u093F\u0915 \u0939\u0948\u0964" + input_correct_responses: + - D + input_question: "\u0938\u0902\u0918\u0940\u092F \u0918\u093E\u091F\u093E \u0924\ + \u092C \u0939\u094B\u0924\u093E \u0939\u0948 \u091C\u092C" + - input_choice_list: + A: "\u091B\u0942\u091F \u0926\u0930 \u092C\u0922\u093C\u093E\u0928\u093E" + B: "\u0906\u0930\u0915\u094D\u0937\u093F\u0924 \u0905\u0928\u0941\u092A\u093E\ + \u0924 \u092C\u0922\u093C\u093E\u0928\u093E" + C: "\u0938\u0930\u0915\u093E\u0930\u0940 \u092A\u094D\u0930\u0924\u093F\u092D\ + \u0942\u0924\u093F\u092F\u093E\u0901 \u0916\u0930\u0940\u0926\u0928\u093E" + D: "\u091F\u0948\u0930\u093F\u092B \u0915\u092E \u0915\u0930\u0928\u093E" + input_correct_responses: + - C + input_question: "\u0905\u0928\u094D\u092F \u0938\u092D\u0940 \u0915\u094B \u0938\ + \u092E\u093E\u0928 \u0930\u0916\u0924\u0947 \u0939\u0941\u090F \u0928\u093F\u092E\ + \u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\ + \u093F\u0938 \u092E\u094C\u0926\u094D\u0930\u093F\u0915 \u0928\u0940\u0924\u093F\ + \ \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0905\u092E\u0947\u0930\u093F\ + \u0915\u0940 \u0928\u093F\u0930\u094D\u092F\u093E\u0924 \u0915\u094B \u092C\u0922\ + \u093C\u093E\u0935\u093E \u0926\u0947\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F\ + \ \u0915\u093F\u092F\u093E \u091C\u093E\u090F\u0917\u093E?" + - input_choice_list: + A: "\u092E\u0941\u0926\u094D\u0930\u093E \u0906\u092A\u0942\u0930\u094D\u0924\ + \u093F \u092E\u0947\u0902 \u0935\u0943\u0926\u094D\u0927\u093F" + B: "\u0938\u0930\u0915\u093E\u0930\u0940 \u0916\u0930\u094D\u091A \u092C\u0922\ + \u093C\u093E" + C: "\u0928\u0908 \u092A\u094D\u0930\u094C\u0926\u094D\u092F\u094B\u0917\u093F\ + \u0915\u0940 \u0915\u0947 \u0905\u0928\u0941\u0938\u0902\u0927\u093E\u0928\ + \ \u0914\u0930 \u0935\u093F\u0915\u093E\u0938 \u092A\u0930 \u0915\u092E \u0915\ + \u0930" + D: "\u0918\u0930\u0947\u0932\u0942 \u0906\u092F \u092A\u0930 \u0905\u0927\u093F\ + \u0915 \u0915\u0930" + input_correct_responses: + - C + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u0940 \u0928\u0940\ + \u0924\u093F \u0906\u092A\u0942\u0930\u094D\u0924\u093F-\u092A\u0915\u094D\u0937\ + \ \u0930\u093E\u091C\u0915\u094B\u0937\u0940\u092F \u0928\u0940\u0924\u093F\ + \ \u0915\u093E \u0938\u092C\u0938\u0947 \u0905\u091A\u094D\u091B\u093E \u0935\ + \u0930\u094D\u0923\u0928 \u0915\u0930\u0924\u0940 \u0939\u0948?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_macroeconomics +tag: mmlu_hi_llama_social_sciences_tasks +task: mmlu_hi_llama_high_school_macroeconomics +task_alias: high_school_macroeconomics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7a32b43ce91fd0223231ac71da5bd2dfac3b437c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_mathematics.yaml @@ -0,0 +1,96 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: '3' + B: '15' + C: '6' + D: '5' + input_correct_responses: + - B + input_question: "\u091C\u094B \u090F\u0915 \u0928\u0943\u0924\u094D\u092F \u0915\ + \u0947 \u0932\u093F\u090F \u0930\u094B\u0936\u0928\u0940 \u0915\u093E \u092A\ + \u094D\u0930\u092D\u093E\u0930\u0940 \u0925\u093E\u0964 \u0932\u093E\u0932 \u092C\ + \u0924\u094D\u0924\u0940 \u0939\u0930 \u0926\u094B \u0938\u0947\u0915\u0902\u0921\ + \ \u092E\u0947\u0902, \u092A\u0940\u0932\u0940 \u0930\u094B\u0936\u0928\u0940\ + \ \u0939\u0930 \u0924\u0940\u0928 \u0938\u0947\u0915\u0902\u0921 \u092E\u0947\ + \u0902 \u0914\u0930 \u0928\u0940\u0932\u0940 \u0930\u094B\u0936\u0928\u0940\ + \ \u0939\u0930 \u092A\u093E\u0902\u091A \u0938\u0947\u0915\u0902\u0921 \u092E\ + \u0947\u0902 \u091D\u092A\u0915\u0924\u0940 \u0939\u0948\u0964 \u092F\u0926\u093F\ + \ \u0939\u092E \u0928\u0943\u0924\u094D\u092F \u0915\u0947 \u0906\u0930\u0902\ + \u092D \u0914\u0930 \u0905\u0902\u0924 \u0915\u094B \u0936\u093E\u092E\u093F\ + \u0932 \u0915\u0930\u0947\u0902, \u0924\u094B \u0938\u093E\u0924 \u092E\u093F\ + \u0928\u091F \u0915\u0947 \u0928\u0943\u0924\u094D\u092F \u0915\u0947 \u0926\ + \u094C\u0930\u093E\u0928 \u0915\u093F\u0924\u0928\u0940 \u092C\u093E\u0930 \u0938\ + \u092D\u0940 \u0932\u093E\u0907\u091F\u0947\u0902 \u090F\u0915 \u0939\u0940\ + \ \u0938\u092E\u092F \u092E\u0947\u0902 \u091C\u0932\u0947\u0902\u0917\u0940\ + ? (\u092E\u093E\u0928 \u0932\u0940\u091C\u093F\u090F \u0915\u093F \u0928\u0943\ + \u0924\u094D\u092F \u0915\u0940 \u0936\u0941\u0930\u0941\u0906\u0924 \u092E\u0947\ + \u0902 \u0939\u0940 \u0924\u0940\u0928\u094B\u0902 \u0932\u093E\u0907\u091F\u0947\ + \u0902 \u090F\u0915 \u0938\u093E\u0925 \u091D\u092A\u0915\u0924\u0940 \u0939\ + \u0948\u0902\u0964)" + - input_choice_list: + A: '12' + B: '1' + C: '30' + D: '5' + input_correct_responses: + - C + input_question: "$x\\%$ \u092C\u094D\u092F\u093E\u091C \u0926\u0930 \u092A\u0930\ + \ \u0938\u093E\u0932\u093E\u0928\u093E \u091A\u0915\u094D\u0930\u0935\u0943\u0926\ + \u094D\u0927\u093F \u092A\u093E\u0902\u091A \u0939\u091C\u093E\u0930 \u0921\u0949\ + \u0932\u0930 \u0915\u094B \u0926\u094B\u0917\u0941\u0928\u093E \u0939\u094B\u0928\ + \u0947 \u092E\u0947\u0902 \u091B\u0939 \u0938\u093E\u0932 \u0932\u0917\u0924\ + \u0947 \u0939\u0948\u0902\u0964 \u0938\u092E\u093E\u0928 \u092C\u094D\u092F\u093E\ + \u091C \u0926\u0930 \u092A\u0930, $\\$300$ \u0915\u094B $\\$9600$ \u0924\u0915\ + \ \u092C\u0922\u093C\u0928\u0947 \u092E\u0947\u0902 \u0915\u093F\u0924\u0928\ + \u0947 \u0935\u0930\u094D\u0937 \u0932\u0917\u0947\u0902\u0917\u0947?" + - input_choice_list: + A: '-1' + B: '16' + C: -\frac{1}{256} + D: \frac{1}{16} + input_correct_responses: + - C + input_question: "\u0935\u0947\u0930\u093F\u090F\u092C\u0932 $x$ \u0938\u0940\u0927\ + \u0947 $y$ \u0915\u0947 \u0935\u0930\u094D\u0917 \u0915\u0947 \u0930\u0942\u092A\ + \ \u092E\u0947\u0902 \u092C\u0926\u0932\u0924\u093E \u0939\u0948, \u0914\u0930\ + \ $y$ \u0938\u0940\u0927\u0947 $z$ \u0915\u0947 \u0918\u0928 \u0915\u0947 \u0930\ + \u0942\u092A \u092E\u0947\u0902 \u092C\u0926\u0932\u0924\u093E \u0939\u0948\u0964\ + \ \u092F\u0926\u093F $x$ \u092C\u0930\u093E\u092C\u0930 $-16$ \u0939\u0948 \u091C\ + \u092C $z$ \u092C\u0930\u093E\u092C\u0930 2 \u0939\u0948, \u0924\u094B $x$ \u0915\ + \u093E \u092E\u0942\u0932\u094D\u092F \u0915\u094D\u092F\u093E \u0939\u0948\ + \ \u091C\u092C $z$ \u092C\u0930\u093E\u092C\u0930 $\\frac{1}{2}$ \u0939\u0948\ + ?" + - input_choice_list: + A: \frac{3\sqrt{3}}{3} + B: \frac{1}{3} + C: \sqrt{3} + D: \frac{\sqrt{3}}{3} + input_correct_responses: + - D + input_question: "\u092A\u0930\u093F\u0923\u093E\u092E \u0915\u094B \u0938\u0930\ + \u0932 \u092C\u0928\u093E\u090F\u0902 \u0914\u0930 \u0924\u0930\u094D\u0915\u0938\ + \u0902\u0917\u0924 \u0939\u0930 \u0915\u0947 \u0938\u093E\u0925 \u0932\u093F\ + \u0916\u0947\u0902: $$\\sqrt{\\sqrt[3]{\\sqrt{\\frac{1}{729}}}}$$" + - input_choice_list: + A: '55' + B: '60' + C: '62' + D: '65' + input_correct_responses: + - D + input_question: "\u0926\u0938 \u091B\u093E\u0924\u094D\u0930 \u091C\u0940\u0935\ + \ \u0935\u093F\u091C\u094D\u091E\u093E\u0928 \u0915\u0940 \u092A\u0930\u0940\ + \u0915\u094D\u0937\u093E \u0926\u0947\u0924\u0947 \u0939\u0948\u0902 \u0914\u0930\ + \ \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u0905\u0902\u0915\ + \ \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0924\u0947 \u0939\ + \u0948\u0902: 45, 55, 50, 70, 65, 80, 40, 90, 70, 85\u0964 \u091B\u093E\u0924\ + \u094D\u0930\u094B\u0902 \u0915\u0947 \u092A\u0930\u0940\u0915\u094D\u0937\u0923\ + \ \u0905\u0902\u0915\u094B\u0902 \u0915\u093E \u092E\u093E\u0927\u094D\u092F\ + \ \u0915\u094D\u092F\u093E \u0939\u0948?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_mathematics +tag: mmlu_hi_llama_stem_tasks +task: mmlu_hi_llama_high_school_mathematics +task_alias: high_school_mathematics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_microeconomics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_microeconomics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3f1ec3fd62d3ecbba835448eff02059737f2d160 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_microeconomics.yaml @@ -0,0 +1,107 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0907\u0938 \u0936\u094D\u0930\u092E \u092C\u093E\u091C\u093C\u093E\u0930\ + \ \u092A\u0930 \u090F\u0915 \u092A\u094D\u0930\u092D\u093E\u0935\u0940 \u0928\ + \u094D\u092F\u0942\u0928\u0924\u092E \u0935\u0947\u0924\u0928 \u0932\u0917\ + \u093E\u092F\u093E \u0917\u092F\u093E\u0964" + B: "\u092A\u0947\u0902\u091F \u0915\u0947 \u0917\u0948\u0932\u0928 \u0915\u0940\ + \ \u0915\u0940\u092E\u0924 \u092E\u0947\u0902 \u0935\u0943\u0926\u094D\u0927\ + \u093F." + C: "\u0928\u092F\u0947 \u092E\u0915\u093E\u0928\u094B\u0902 \u0915\u0947 \u0928\ + \u093F\u0930\u094D\u092E\u093E\u0923 \u092E\u0947\u0902 \u0935\u0943\u0926\ + \u094D\u0927\u093F\u0964" + D: "\u092E\u0948\u0915\u0947\u0928\u093F\u0915\u0932 \u092A\u0947\u0902\u091F\ + \u0930\u094D\u0938 \u0915\u0940 \u0915\u0940\u092E\u0924 \u092E\u0947\u0902\ + \ \u0924\u092C \u0924\u0915 \u0935\u0943\u0926\u094D\u0927\u093F \u091C\u092C\ + \ \u0924\u0915 \u0906\u0909\u091F\u092A\u0941\u091F \u092A\u094D\u0930\u092D\ + \u093E\u0935 \u092A\u094D\u0930\u0924\u093F\u0938\u094D\u0925\u093E\u092A\u0928\ + \ \u092A\u094D\u0930\u092D\u093E\u0935 \u0938\u0947 \u0905\u0927\u093F\u0915\ + \ \u0939\u094B \u091C\u093E\u0924\u093E \u0939\u0948\u0964" + input_correct_responses: + - C + input_question: "\u0939\u093E\u0909\u0938\u092A\u0947\u0902\u091F\u0930\u094B\u0902\ + \ \u0915\u0947 \u0932\u093F\u090F \u092A\u094D\u0930\u0924\u093F\u0938\u094D\ + \u092A\u0930\u094D\u0927\u0940 \u0936\u094D\u0930\u092E \u092C\u093E\u091C\u093E\ + \u0930 \u092E\u0947\u0902, \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\ + \u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u093F\u0938\u0938\u0947 \u0939\ + \u093E\u0909\u0938\u092A\u0947\u0902\u091F\u0930\u094B\u0902 \u0915\u0940 \u092E\ + \u093E\u0902\u0917 \u092E\u0947\u0902 \u0935\u0943\u0926\u094D\u0927\u093F \u0939\ + \u094B\u0917\u0940?" + - input_choice_list: + A: "\u0909\u0924\u094D\u092A\u093E\u0926 \u0915\u0940 \u092E\u093E\u0902\u0917\ + \ \u092C\u0922\u093C\u0947\u0917\u0940" + B: "\u0909\u0924\u094D\u092A\u093E\u0926 \u0915\u0940 \u092E\u093E\u0902\u0917\ + \ \u0918\u091F \u091C\u093E\u092F\u0947\u0917\u0940" + C: "\u0909\u092A\u092D\u094B\u0915\u094D\u0924\u093E \u0905\u0927\u093F\u0936\ + \u0947\u0937 \u092E\u0947\u0902 \u0935\u0943\u0926\u094D\u0927\u093F \u0939\ + \u094B\u0917\u0940" + D: "\u0909\u092A\u092D\u094B\u0915\u094D\u0924\u093E \u0905\u0927\u093F\u0936\ + \u0947\u0937 \u0915\u092E \u0939\u094B \u091C\u093E\u090F\u0917\u093E" + input_correct_responses: + - C + input_question: "\u092F\u0926\u093F \u0938\u0930\u0915\u093E\u0930 \u092A\u0942\ + \u0930\u094D\u0923 \u092A\u094D\u0930\u0924\u093F\u0938\u094D\u092A\u0930\u094D\ + \u0927\u0940 \u092C\u093E\u091C\u093E\u0930 \u092E\u0947\u0902 \u0909\u0924\u094D\ + \u092A\u093E\u0926\u0915\u094B\u0902 \u0915\u094B \u0938\u092C\u094D\u0938\u093F\ + \u0921\u0940 \u0926\u0947\u0924\u0940 \u0939\u0948, \u0924\u094B" + - input_choice_list: + A: '0' + B: '5' + C: '10' + D: '100' + input_correct_responses: + - D + input_question: "\u090F\u0915\u093E\u0927\u093F\u0915\u093E\u0930 \u0915\u0947\ + \ \u0932\u093F\u090F \u090F\u0915\u093E\u0917\u094D\u0930\u0924\u093E \u0905\ + \u0928\u0941\u092A\u093E\u0924 \u0939\u0948" + - input_choice_list: + A: "\u0915\u0940\u092E\u0924 \u0938\u094D\u0924\u0930 \u092E\u093E\u0902\u0917\ + \ \u0935\u0915\u094D\u0930 \u0915\u094B \u092C\u093E\u0908\u0902 \u0913\u0930\ + \ \u0938\u094D\u0925\u093E\u0928\u093E\u0902\u0924\u0930\u093F\u0924 \u0915\ + \u0930 \u0926\u0947\u0924\u093E \u0939\u0948\u0964" + B: "\u090F\u0915 \u092A\u094D\u0930\u092D\u093E\u0935\u0940 \u092E\u0902\u091C\ + \u093F\u0932 \u0905\u091A\u094D\u091B\u0947 \u0915\u0940 \u0915\u092E\u0940\ + \ \u092A\u0948\u0926\u093E \u0915\u0930\u0924\u0940 \u0939\u0948\u0964" + C: "\u0915\u0940\u092E\u0924 \u0938\u094D\u0924\u0930 \u0935\u0938\u094D\u0924\ + \u0941 \u0915\u0947 \u0906\u092A\u0942\u0930\u094D\u0924\u093F \u0935\u0915\ + \u094D\u0930 \u0915\u094B \u0926\u093E\u0908\u0902 \u0913\u0930 \u0938\u094D\ + \u0925\u093E\u0928\u093E\u0902\u0924\u0930\u093F\u0924 \u0915\u0930 \u0926\ + \u0947\u0924\u093E \u0939\u0948\u0964" + D: "\u090F\u0915 \u092A\u094D\u0930\u092D\u093E\u0935\u0940 \u092E\u0902\u091C\ + \u093F\u0932 \u0939\u094B\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F, \u0907\ + \u0938\u0947 \u0938\u0902\u0924\u0941\u0932\u0928 \u0915\u0940\u092E\u0924\ + \ \u0938\u0947 \u090A\u092A\u0930 \u0938\u094D\u0925\u093E\u092A\u093F\u0924\ + \ \u0915\u093F\u092F\u093E \u091C\u093E\u0928\u093E \u091A\u093E\u0939\u093F\ + \u090F\u0964" + input_correct_responses: + - D + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u092E\u0942\ + \u0932\u094D\u092F \u0938\u094D\u0924\u0930 \u0915\u0947 \u092C\u093E\u0930\u0947\ + \ \u092E\u0947\u0902 \u0938\u0924\u094D\u092F \u0939\u0948?" + - input_choice_list: + A: "\u092C\u093E\u091C\u093C\u093E\u0930 \u092E\u0947\u0902 \u0928\u093F\u0903\ + \u0936\u0941\u0932\u094D\u0915 \u092A\u094D\u0930\u0935\u0947\u0936 \u0914\ + \u0930 \u0928\u093F\u0915\u093E\u0938" + B: "\u0915\u0941\u091B \u092C\u0921\u093C\u0947 \u0928\u093F\u0930\u094D\u092E\ + \u093E\u0924\u093E" + C: "\u0915\u093F\u0938\u0940 \u0935\u0938\u094D\u0924\u0941 \u0915\u093E \u090F\ + \u0915 \u0909\u0924\u094D\u092A\u093E\u0926\u0915 \u091C\u093F\u0938\u0915\ + \u093E \u0915\u094B\u0908 \u0915\u0930\u0940\u092C\u0940 \u0935\u093F\u0915\ + \u0932\u094D\u092A \u0928\u0939\u0940\u0902 \u0939\u0948" + D: "\u090F\u0915 \u0938\u092E\u0930\u0942\u092A \u0909\u0924\u094D\u092A\u093E\ + \u0926" + input_correct_responses: + - B + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u0906\u0935\ + \u0936\u094D\u092F\u0915 \u0930\u0942\u092A \u0938\u0947 \u0905\u0932\u094D\u092A\ + \u093E\u0927\u093F\u0915\u093E\u0930 \u0915\u0940 \u0935\u093F\u0936\u0947\u0937\ + \u0924\u093E \u0939\u0948?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_microeconomics +tag: mmlu_hi_llama_social_sciences_tasks +task: mmlu_hi_llama_high_school_microeconomics +task_alias: high_school_microeconomics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..784762e3e4f3a6f168199557dc5bdf646159377a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_physics.yaml @@ -0,0 +1,108 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0915\u0947\u0935\u0932 I \u0914\u0930 II" + B: "\u0915\u0947\u0935\u0932 I \u0914\u0930 III" + C: "\u0915\u0947\u0935\u0932 II \u0914\u0930 III" + D: "\u0924\u0943\u0924\u0940\u092F \u0915\u0947\u0935\u0932" + input_correct_responses: + - D + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u0940 \u0938\u094D\ + \u0925\u093F\u0924\u093F \u092F\u0939 \u0938\u0941\u0928\u093F\u0936\u094D\u091A\ + \u093F\u0924 \u0915\u0930\u0947\u0917\u0940 \u0915\u093F \u0915\u094B\u0923\u0940\ + \u092F \u0917\u0924\u093F \u0938\u0902\u0930\u0915\u094D\u0937\u093F\u0924 \u0939\ + \u0948? I. \u0930\u0948\u0916\u093F\u0915 \u0938\u0902\u0935\u0947\u0917 \u0915\ + \u093E \u0938\u0902\u0930\u0915\u094D\u0937\u0923 II. \u0936\u0942\u0928\u094D\ + \u092F \u0936\u0941\u0926\u094D\u0927 \u092C\u093E\u0939\u094D\u092F \u092C\u0932\ + \ III. \u0936\u0942\u0928\u094D\u092F \u0936\u0941\u0926\u094D\u0927 \u092C\u093E\ + \u0939\u0930\u0940 \u091F\u0949\u0930\u094D\u0915" + - input_choice_list: + A: "\u0926\u092C\u093E\u0935 \u090F\u0915 \u0928\u094B\u0921 \u092A\u0930 \u0939\ + \u094B\u0924\u093E \u0939\u0948, \u0932\u0947\u0915\u093F\u0928 \u0915\u0923\ + \ \u0935\u093F\u0938\u094D\u0925\u093E\u092A\u0928 \u090F\u0915 \u090F\u0902\ + \u091F\u0940\u0928\u094B\u0921 \u092A\u0930 \u0939\u094B\u0924\u093E \u0939\ + \u0948\u0964" + B: "\u0926\u092C\u093E\u0935 \u090F\u0915 \u090F\u0902\u091F\u0940\u0928\u094B\ + \u0921 \u092A\u0930 \u0939\u0948, \u0932\u0947\u0915\u093F\u0928 \u0915\u0923\ + \ \u0935\u093F\u0938\u094D\u0925\u093E\u092A\u0928 \u090F\u0915 \u0928\u094B\ + \u0921 \u092A\u0930 \u0939\u0948\u0964" + C: "\u0926\u092C\u093E\u0935 \u0914\u0930 \u0915\u0923 \u0935\u093F\u0938\u094D\ + \u0925\u093E\u092A\u0928 \u0926\u094B\u0928\u094B\u0902 \u0928\u094B\u0921\ + \u094D\u0938 \u092A\u0930 \u0939\u0948\u0902\u0964" + D: "\u0926\u092C\u093E\u0935 \u0914\u0930 \u0915\u0923 \u0935\u093F\u0938\u094D\ + \u0925\u093E\u092A\u0928 \u0926\u094B\u0928\u094B\u0902 \u090F\u0902\u091F\ + \u0940\u0928\u094B\u0921 \u092A\u0930 \u0939\u094B\u0924\u0947 \u0939\u0948\ + \u0902\u0964" + input_correct_responses: + - B + input_question: "\u0939\u0935\u093E \u0938\u0947 \u092D\u0930\u093E \u090F\u0915\ + \ \u092A\u093E\u0907\u092A \u090F\u0915 \u0938\u093F\u0930\u0947 \u092A\u0930\ + \ \u092C\u0902\u0926 \u0939\u0948\u0964 \u092A\u093E\u0907\u092A \u092E\u0947\ + \u0902 \u090F\u0915 \u0916\u0921\u093C\u0940 \u0924\u0930\u0902\u0917 \u0909\ + \u0924\u094D\u092A\u0928\u094D\u0928 \u0939\u094B\u0924\u0940 \u0939\u0948,\ + \ \u091C\u093F\u0938\u0938\u0947 \u092A\u093E\u0907\u092A \u090F\u0915 \u0938\ + \u0941\u0930 \u0915\u0940 \u0927\u094D\u0935\u0928\u093F \u0909\u0924\u094D\u092A\ + \u0928\u094D\u0928 \u0915\u0930\u0924\u093E \u0939\u0948\u0964 \u092A\u093E\u0907\ + \u092A \u0915\u0947 \u092C\u0902\u0926 \u0938\u093F\u0930\u0947 \u092A\u0930\ + \ \u0924\u0930\u0902\u0917 \u0915\u0947 \u0917\u0941\u0923\u094B\u0902 \u0915\ + \u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902 \u0928\u093F\u092E\u094D\u0928\ + \u0932\u093F\u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928\ + \ \u0938\u093E \u0938\u0939\u0940 \u0915\u0925\u0928 \u0939\u0948?" + - input_choice_list: + A: "2:00 \u092A\u0942\u0930\u094D\u0935\u093E\u0939\u094D\u0928" + B: "\u0938\u0941\u092C\u0939 \u0915\u0947 6 \u092C\u091C\u0947" + C: "12:00 \u092C\u091C\u0947" + D: "24 \u090F" + input_correct_responses: + - D + input_question: "\u0915\u093E\u0930\u094D\u092F \u092B\u0932\u0928 \u03D5 = 2eV\ + \ \u0915\u093E \u090F\u0915 \u092B\u094B\u091F\u094B\u0938\u0947\u0932 \u0936\ + \u094D\u0930\u0943\u0902\u0916\u0932\u093E \u092E\u0947\u0902 \u090F\u0915 \u0905\ + \u0935\u0930\u094B\u0927\u0915 \u0938\u0947 \u091C\u0941\u0921\u093C\u093E \u0939\ + \u0948\u0964 f = 1 \xD7 10^15 Hz \u0906\u0935\u0943\u0924\u094D\u0924\u093F\ + \ \u0915\u093E \u092A\u094D\u0930\u0915\u093E\u0936 \u092B\u094B\u091F\u094B\ + \u0938\u0947\u0932 \u0915\u0940 \u0927\u093E\u0924\u0941 \u0915\u0940 \u092A\ + \u094D\u0932\u0947\u091F \u0938\u0947 \u091F\u0915\u0930\u093E\u0924\u093E \u0939\ + \u0948\u0964 \u092F\u0926\u093F \u092A\u094D\u0930\u0915\u093E\u0936 \u0915\u0940\ + \ \u0936\u0915\u094D\u0924\u093F P = 100 W \u0939\u0948, \u0924\u094B \u092A\ + \u094D\u0930\u0924\u093F\u0930\u094B\u0927\u0915 \u0915\u0947 \u092E\u093E\u0927\ + \u094D\u092F\u092E \u0938\u0947 \u0927\u093E\u0930\u093E \u0915\u094D\u092F\u093E\ + \ \u0939\u0948?" + - input_choice_list: + A: "10 \u0921\u092C\u094D\u0932\u094D\u092F\u0942" + B: "30 \u0921\u092C\u094D\u0932\u094D\u092F\u0942" + C: "60 \u0921\u092C\u094D\u0932\u094D\u092F\u0942" + D: "240 \u0921\u092C\u094D\u0932\u094D\u092F\u0942" + input_correct_responses: + - D + input_question: "\u090F\u0915 \u092E\u093E\u0907\u0915\u094D\u0930\u094B\u0935\ + \u0947\u0935 \u0913\u0935\u0928 120 V \u0915\u0947 \u0906\u0909\u091F\u0932\u0947\ + \u091F \u0938\u0947 \u091C\u0941\u0921\u093C\u093E \u0939\u0948, \u0914\u0930\ + \ 2 \u090F\u092E\u094D\u092A\u093F\u092F\u0930 \u0915\u0940 \u0927\u093E\u0930\ + \u093E \u0916\u0940\u0902\u091A\u0924\u093E \u0939\u0948\u0964 \u092E\u093E\u0907\ + \u0915\u094D\u0930\u094B\u0935\u0947\u0935 \u0913\u0935\u0928 \u0926\u094D\u0935\ + \u093E\u0930\u093E \u0915\u093F\u0938 \u0926\u0930 \u0938\u0947 \u090A\u0930\ + \u094D\u091C\u093E \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u093F\u092F\ + \u093E \u091C\u093E \u0930\u0939\u093E \u0939\u0948?" + - input_choice_list: + A: "3.5 \u091C\u0947" + B: "6.0 \u091C\u0947" + C: "22.5 \u091C\u0947" + D: "40 \u091C\u0947" + input_correct_responses: + - B + input_question: "\u090F\u0915 \u092C\u093F\u0902\u0926\u0941 \u0906\u0935\u0947\ + \u0936, Q = +1 mC, \u092E\u0942\u0932 \u092C\u093F\u0902\u0926\u0941 \u092A\u0930\ + \ \u0938\u094D\u0925\u093F\u0930 \u0939\u0948\u0964 \u0915\u093F\u0938\u0940\ + \ \u0906\u0935\u0947\u0936, Q = +8 \xB5C, \u0915\u094B \u092C\u093F\u0902\u0926\ + \u0941 (0, 4 \u092E\u0940\u091F\u0930) \u0938\u0947 \u092C\u093F\u0902\u0926\ + \u0941 (3 \u092E\u0940\u091F\u0930, 0) \u0924\u0915 \u0932\u0947 \u091C\u093E\ + \u0928\u0947 \u092E\u0947\u0902 \u0915\u093F\u0924\u0928\u093E \u0915\u093E\u0930\ + \u094D\u092F \u0906\u0935\u0936\u094D\u092F\u0915 \u0939\u0948?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_physics +tag: mmlu_hi_llama_stem_tasks +task: mmlu_hi_llama_high_school_physics +task_alias: high_school_physics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_psychology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_psychology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..890595c135aca9dc9c4da7622003321aa8732cc6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_psychology.yaml @@ -0,0 +1,147 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u090F\u0915 \u092E\u091C\u092C\u0942\u0924 \u0938\u0941\u092A\u0930\u0907\ + \u0917\u094B." + B: "\u0915\u092E \u0906\u0924\u094D\u092E \u0938\u092E\u094D\u092E\u093E\u0928\ + \u0964" + C: "\u0915\u092E \u0906\u0924\u094D\u092E-\u092A\u094D\u0930\u092D\u093E\u0935\ + \u0915\u093E\u0930\u093F\u0924\u093E." + D: "\u0928\u093F\u092F\u0902\u0924\u094D\u0930\u0923 \u0915\u093E \u090F\u0915\ + \ \u0906\u0902\u0924\u0930\u093F\u0915 \u0938\u094D\u0925\u093E\u0928." + input_correct_responses: + - D + input_question: "\u0905\u0928\u0940 \u0915\u093E \u092E\u093E\u0928\u0928\u093E\ + \ \u0939\u0948 \u0915\u093F \u0909\u0938\u0915\u0947 \u0938\u093E\u0925 \u091C\ + \u094B \u0939\u094B\u0924\u093E \u0939\u0948 \u0909\u0938\u092E\u0947\u0902\ + \ \u0909\u0938\u0915\u093E \u0926\u0943\u0937\u094D\u091F\u093F\u0915\u094B\u0923\ + \ \u0914\u0930 \u0935\u094D\u092F\u0935\u0939\u093E\u0930 \u0915\u0947\u0902\ + \u0926\u094D\u0930\u0940\u092F \u092D\u0942\u092E\u093F\u0915\u093E \u0928\u093F\ + \u092D\u093E\u0924\u093E \u0939\u0948\u0964 \u0910\u0938\u0940 \u092E\u093E\u0928\ + \u094D\u092F\u0924\u093E \u091C\u0941\u0921\u093C\u0940 \u0939\u094B\u0928\u0947\ + \ \u0915\u0940 \u0938\u0902\u092D\u093E\u0935\u0928\u093E \u0939\u0948" + - input_choice_list: + A: "\u0917\u094D\u0930\u093E\u0939\u0915 \u0915\u0940 \u0935\u0930\u094D\u0924\ + \u092E\u093E\u0928 \u0938\u092E\u0938\u094D\u092F\u093E\u0913\u0902 \u0915\ + \u0947 \u0915\u093E\u0930\u0923\u094B\u0902 \u0914\u0930 \u0938\u092E\u093E\ + \u0927\u093E\u0928\u094B\u0902 \u0915\u0940 \u092A\u0939\u091A\u093E\u0928\ + \ \u0915\u0930\u0928\u093E" + B: "\u0915\u093F\u0938\u0940 \u0938\u092E\u0938\u094D\u092F\u093E \u0938\u0947\ + \ \u0928\u093F\u092A\u091F\u0928\u0947 \u092E\u0947\u0902 \u092A\u0930\u093E\ + \u092E\u0930\u094D\u0936\u0926\u093E\u0924\u093E \u0915\u0940 \u0915\u0920\ + \u093F\u0928\u093E\u0907\u092F\u094B\u0902 \u0915\u0947 \u0915\u093E\u0930\ + \u0923\u094B\u0902 \u0915\u0940 \u092A\u0939\u091A\u093E\u0928 \u0915\u0930\ + \u0928\u093E \u0914\u0930 \u0909\u0928\u094D\u0939\u0947\u0902 \u0926\u0942\ + \u0930 \u0915\u0930\u0928\u093E" + C: "\u092A\u094D\u0930\u092D\u093E\u0935\u0940 \u0928\u093F\u0930\u094D\u0923\ + \u092F \u0932\u0947\u0928\u0947 \u092E\u0947\u0902 \u0938\u0915\u094D\u0937\ + \u092E \u092C\u0928\u093E\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092A\ + \u094D\u0930\u093E\u0927\u093F\u0915\u093E\u0930 \u0915\u093E \u090F\u0915\ + \ \u092A\u0926\u093E\u0928\u0941\u0915\u094D\u0930\u092E \u0938\u094D\u0925\ + \u093E\u092A\u093F\u0924 \u0915\u0930\u0928\u093E" + D: "\u0915\u094C\u0936\u0932 \u0915\u0940 \u0915\u092E\u0940 \u0915\u094B \u0926\ + \u0942\u0930 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0938\ + \u0932\u093E\u0939\u0915\u093E\u0930 \u0915\u0947 \u0932\u093F\u090F \u090F\ + \u0915\u0932, \u0905\u091A\u094D\u091B\u0940 \u0924\u0930\u0939 \u0938\u0947\ + \ \u092A\u0930\u093F\u092D\u093E\u0937\u093F\u0924 \u0914\u0930 \u0938\u094D\ + \u092A\u0937\u094D\u091F \u0915\u093E\u0930\u094D\u0930\u0935\u093E\u0908\ + \ \u0915\u093E \u092A\u093E\u0920\u094D\u092F\u0915\u094D\u0930\u092E \u092A\ + \u094D\u0930\u0938\u094D\u0924\u0941\u0924 \u0915\u0930\u0928\u093E" + input_correct_responses: + - B + input_question: "\u092A\u0930\u093E\u092E\u0930\u094D\u0936\u0926\u093E\u0924\u093E\ + -\u0915\u0947\u0902\u0926\u094D\u0930\u093F\u0924 \u0915\u0947\u0938 \u092A\u0930\ + \u093E\u092E\u0930\u094D\u0936 \u0915\u0947 \u0915\u0948\u092A\u0932\u0928 \u092E\ + \u0949\u0921\u0932 \u0915\u0947 \u0905\u0928\u0941\u0938\u093E\u0930, \u0938\ + \u0932\u093E\u0939\u0915\u093E\u0930 \u092E\u0941\u0916\u094D\u092F \u0930\u0942\ + \u092A \u0938\u0947 \u0907\u0938\u092E\u0947\u0902 \u0930\u0941\u091A\u093F\ + \ \u0930\u0916\u0924\u093E \u0939\u0948" + - input_choice_list: + A: "\u0938\u0902\u0926\u0947\u0936 \u0925\u0948\u0932\u0947\u092E\u0938 \u0938\ + \u0947 \u0938\u0940\u0927\u0947 \u0905\u092E\u093F\u0917\u0921\u093E\u0932\ + \u093E \u0915\u094B \u092D\u0947\u091C\u0947 \u091C\u093E\u0924\u0947 \u0939\ + \u0948\u0902\u0964" + B: "\u0938\u0902\u0926\u0947\u0936 \u0925\u0948\u0932\u0947\u092E\u0938 \u0938\ + \u0947 "\u0915\u094D\u092F\u093E" \u0914\u0930 "\u0915\u0939\ + \u093E\u0902" \u092E\u093E\u0930\u094D\u0917 \u092A\u0930 \u092D\u0947\ + \u091C\u0947 \u091C\u093E\u0924\u0947 \u0939\u0948\u0902\u0964" + C: "\u0938\u0902\u0926\u0947\u0936 \u092A\u0948\u0930\u093E\u0938\u093F\u092E\ + \u094D\u092A\u0947\u0925\u0947\u091F\u093F\u0915 \u0924\u0902\u0924\u094D\u0930\ + \u093F\u0915\u093E \u0924\u0902\u0924\u094D\u0930 \u0938\u0947 \u0938\u0947\ + \u0930\u0947\u092C\u094D\u0930\u0932 \u0915\u0949\u0930\u094D\u091F\u0947\u0915\ + \u094D\u0938 \u0924\u0915 \u092D\u0947\u091C\u0947 \u091C\u093E\u0924\u0947\ + \ \u0939\u0948\u0902\u0964" + D: "\u0938\u0902\u0926\u0947\u0936 \u0932\u0932\u093E\u091F \u0932\u094B\u092C\ + \ \u0938\u0947 \u092A\u093F\u091F\u094D\u092F\u0942\u091F\u0930\u0940 \u0917\ + \u094D\u0930\u0902\u0925\u093F \u0924\u0915 \u092D\u0947\u091C\u0947 \u091C\ + \u093E\u0924\u0947 \u0939\u0948\u0902\u0964" + input_correct_responses: + - A + input_question: "\u0938\u092E\u0941\u0926\u094D\u0930 \u092E\u0947\u0902 \u0924\ + \u0948\u0930\u0924\u0947 \u0938\u092E\u092F, \u0907\u0935\u093E\u0928 \u092A\ + \u093E\u0928\u0940 \u092E\u0947\u0902 \u090F\u0915 \u0905\u0902\u0927\u0947\u0930\ + \u0940 \u091B\u093E\u092F\u093E \u0938\u0947 \u0921\u0930 \u091C\u093E\u0924\ + \u093E \u0939\u0948, \u0907\u0938\u0938\u0947 \u092A\u0939\u0932\u0947 \u0915\ + \u093F \u0909\u0938\u0947 \u092F\u0939 \u092A\u0939\u091A\u093E\u0928\u0928\u0947\ + \ \u0915\u093E \u092E\u094C\u0915\u093E \u092E\u093F\u0932\u0947 \u0915\u093F\ + \ \u0935\u0939 \u091B\u093E\u092F\u093E \u0915\u094D\u092F\u093E \u0939\u0948\ + \u0964 \u092D\u092F \u0915\u0940 \u0907\u0938 \u0918\u091F\u0928\u093E \u0915\ + \u0947 \u0926\u094C\u0930\u093E\u0928 \u0939\u094B\u0928\u0947 \u0935\u093E\u0932\ + \u0947 \u0938\u093F\u0928\u0948\u092A\u094D\u091F\u093F\u0915 \u0915\u0928\u0947\ + \u0915\u094D\u0936\u0928\u094B\u0902 \u0915\u094B \u0928\u093F\u092E\u094D\u0928\ + \u0932\u093F\u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u093F\u0938\ + \u0915\u0947 \u0926\u094D\u0935\u093E\u0930\u093E \u0938\u092C\u0938\u0947 \u0905\ + \u091A\u094D\u091B\u093E \u0935\u0930\u094D\u0923\u0928 \u0915\u093F\u092F\u093E\ + \ \u0917\u092F\u093E \u0939\u0948?" + - input_choice_list: + A: "\u092C\u091A\u094D\u091A\u0947 \u0915\u094B \u0928\u090F \u0935\u093E\u0924\ + \u093E\u0935\u0930\u0923 \u092E\u0947\u0902 \u092A\u0930\u0940\u0915\u094D\ + \u0937\u0923 \u0905\u0935\u0927\u093F \u0926\u0947\u0902" + B: "\u092E\u093E\u0924\u093E-\u092A\u093F\u0924\u093E \u0915\u094B \u0932\u093F\ + \u0916\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 \u0938\u0942\u091A\u093F\ + \u0924 \u0915\u0930\u0947\u0902" + C: "\u0938\u094D\u0915\u0942\u0932 \u092C\u094B\u0930\u094D\u0921 \u0915\u0940\ + \ \u092E\u0902\u091C\u0942\u0930\u0940 \u092A\u094D\u0930\u093E\u092A\u094D\ + \u0924 \u0915\u0930\u0947\u0902" + D: "\u092E\u093E\u0924\u093E-\u092A\u093F\u0924\u093E \u0915\u0940 \u0938\u0939\ + \u092E\u0924\u093F \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\ + \u0947\u0902" + input_correct_responses: + - B + input_question: "\u0935\u093F\u0915\u0932\u093E\u0902\u0917 \u0935\u094D\u092F\ + \u0915\u094D\u0924\u093F \u0936\u093F\u0915\u094D\u0937\u093E \u0938\u0941\u0927\ + \u093E\u0930 \u0905\u0927\u093F\u0928\u093F\u092F\u092E \u0915\u0947 \u0905\u0928\ + \u0941\u0938\u093E\u0930, \u090F\u0915 \u0936\u0948\u0915\u094D\u0937\u093F\u0915\ + \ \u090F\u091C\u0947\u0902\u0938\u0940 \u0915\u094B \u0935\u093F\u0915\u0932\ + \u093E\u0902\u0917 \u091B\u093E\u0924\u094D\u0930 \u0915\u0947 \u0936\u0948\u0915\ + \u094D\u0937\u093F\u0915 \u092A\u094D\u0932\u0947\u0938\u092E\u0947\u0902\u091F\ + \ \u0915\u094B \u092C\u0926\u0932\u0928\u0947 \u0938\u0947 \u092A\u0939\u0932\ + \u0947 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u092E\u0947\ + \u0902 \u0938\u0947 \u0915\u094D\u092F\u093E \u0915\u0930\u0928\u093E \u091A\ + \u093E\u0939\u093F\u090F?" + - input_choice_list: + A: "\u0938\u093E\u092E\u093E\u091C\u093F\u0915-\u0938\u093E\u0902\u0938\u094D\ + \u0915\u0943\u0924\u093F\u0915" + B: "\u0915\u094D\u0932\u0940\u0928\u093F\u0915\u0932" + C: "\u0938\u0902\u091C\u094D\u091E\u093E\u0928\u093E\u0924\u094D\u092E\u0915" + D: "\u0935\u094D\u092F\u0935\u0939\u093E\u0930\u0935\u093E\u0926\u0940" + input_correct_responses: + - C + input_question: "\u092A\u093E\u0938\u094D\u0915\u0932 \u0909\u0928 \u092A\u094D\ + \u0930\u0938\u0902\u0938\u094D\u0915\u0930\u0923 \u0930\u0923\u0928\u0940\u0924\ + \u093F\u092F\u094B\u0902 \u092E\u0947\u0902 \u0930\u0941\u091A\u093F \u0930\u0916\ + \u0924\u093E \u0939\u0948 \u091C\u093F\u0928\u0915\u093E \u0909\u092A\u092F\u094B\ + \u0917 \u092C\u091A\u094D\u091A\u0947 \u0928\u0908 \u091C\u093E\u0928\u0915\u093E\ + \u0930\u0940 \u0938\u0940\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F\ + \ \u0915\u0930\u0924\u0947 \u0939\u0948\u0902\u0964 \u092A\u093E\u0938\u094D\ + \u0915\u0932 \u0915\u094B \u0915\u093F\u0938 \u092A\u094D\u0930\u0915\u093E\u0930\ + \ \u0915\u0947 \u092E\u0928\u094B\u0935\u0948\u091C\u094D\u091E\u093E\u0928\u093F\ + \u0915 \u0915\u0947 \u0930\u0942\u092A \u092E\u0947\u0902 \u0935\u0930\u094D\ + \u0917\u0940\u0915\u0943\u0924 \u0915\u093F\u092F\u093E \u091C\u093E\u090F\u0917\ + \u093E?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_psychology +tag: mmlu_hi_llama_social_sciences_tasks +task: mmlu_hi_llama_high_school_psychology +task_alias: high_school_psychology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_statistics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_statistics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f5fe7a9ee32dce5b5d1a7d86ac162c42891aea1f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_statistics.yaml @@ -0,0 +1,159 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u092F\u0926\u093F \u092A\u094D\u0930\u0924\u093F\u0917\u092E\u0928 \u0930\ + \u0947\u0916\u093E \u0915\u093E \u0922\u0932\u093E\u0928 \u092C\u093F\u0932\ + \u094D\u0915\u0941\u0932 1 \u0939\u0948, \u0924\u094B \u0938\u0939\u0938\u0902\ + \u092C\u0902\u0927 \u092C\u093F\u0932\u094D\u0915\u0941\u0932 1 \u0939\u0948\ + \u0964" + B: "\u092F\u0926\u093F \u0938\u0939\u0938\u0902\u092C\u0902\u0927 0 \u0939\u0948\ + , \u0924\u094B \u092A\u094D\u0930\u0924\u093F\u0917\u092E\u0928 \u0930\u0947\ + \u0916\u093E \u0915\u093E \u0922\u0932\u093E\u0928 \u0905\u092A\u0930\u093F\ + \u092D\u093E\u0937\u093F\u0924 \u0939\u0948\u0964" + C: "\u0915\u093F\u0938 \u0935\u0947\u0930\u093F\u090F\u092C\u0932 \u0915\u094B\ + \ x \u0915\u0939\u093E \u091C\u093E\u0924\u093E \u0939\u0948 \u0914\u0930\ + \ \u0915\u093F\u0938\u0947 y \u0915\u0939\u093E \u091C\u093E\u0924\u093E \u0939\ + \u0948, \u0907\u0938\u0947 \u0938\u094D\u0935\u093F\u091A \u0915\u0930\u0928\ + \u0947 \u0938\u0947 \u0938\u0939\u0938\u0902\u092C\u0902\u0927 \u0915\u093E\ + \ \u091A\u093F\u0939\u094D\u0928 \u092C\u0926\u0932 \u091C\u093E\u0924\u093E\ + \ \u0939\u0948\u0964" + D: "\u091C\u092C y-\u091A\u0930 \u0915\u0947 \u0932\u093F\u090F z-\u0938\u094D\ + \u0915\u094B\u0930 \u0915\u094B x-\u091A\u0930 \u0915\u0947 \u0932\u093F\u090F\ + \ z-\u0938\u094D\u0915\u094B\u0930 \u0915\u0947 \u0935\u093F\u0930\u0941\u0926\ + \u094D\u0927 \u092A\u094D\u0932\u0949\u091F \u0915\u093F\u092F\u093E \u091C\ + \u093E\u0924\u093E \u0939\u0948, \u0924\u094B \u0938\u0939\u0938\u0902\u092C\ + \u0902\u0927 r \u092A\u094D\u0930\u0924\u093F\u0917\u092E\u0928 \u0930\u0947\ + \u0916\u093E \u0915\u0947 \u0922\u0932\u093E\u0928 \u0915\u0947 \u092C\u0930\ + \u093E\u092C\u0930 \u0939\u094B\u0924\u093E \u0939\u0948\u0964" + input_correct_responses: + - D + input_question: "\u0938\u0939\u0938\u0902\u092C\u0902\u0927 \u0915\u0947 \u092C\ + \u093E\u0930\u0947 \u092E\u0947\u0902 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\ + \u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\ + \u093E \u0938\u0939\u0940 \u0915\u0925\u0928 \u0939\u0948?" + - input_choice_list: + 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: "\u0907\u0938 \u092A\u094D\u0930\u0936\u094D\u0928 \u0915\u093E \u0909\u0924\ + \u094D\u0924\u0930 \u0926\u0947\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F\ + \ \u0905\u092A\u0930\u094D\u092F\u093E\u092A\u094D\u0924 \u091C\u093E\u0928\ + \u0915\u093E\u0930\u0940 \u0939\u0948." + input_correct_responses: + - D + input_question: "\u092E\u093E\u0928 \u0932\u0940\u091C\u093F\u090F \u0915\u093F\ + \ X \u0914\u0930 Y, E(X) = 37, var(X) = 5, E(Y) = 62, \u0914\u0930 var(Y) =\ + \ 12 \u0915\u0947 \u0938\u093E\u0925 \u092F\u093E\u0926\u0943\u091A\u094D\u091B\ + \u093F\u0915 \u091A\u0930 \u0939\u0948\u0902\u0964 \u092F\u093E\u0926\u0943\u091A\ + \u094D\u091B\u093F\u0915 \u091A\u0930 X + \u0915\u0947 \u0905\u092A\u0947\u0915\ + \u094D\u0937\u093F\u0924 \u092E\u0942\u0932\u094D\u092F \u0914\u0930 \u092A\u094D\ + \u0930\u0938\u0930\u0923 \u0915\u094D\u092F\u093E \u0939\u0948\u0902 \u0935\u093E\ + \u0908?" + - input_choice_list: + A: "\u0909\u0928 \u092A\u0947\u0921\u093C\u094B\u0902 \u0915\u093E \u0905\u0928\ + \u0941\u092A\u093E\u0924 \u091C\u093F\u0928\u094D\u0939\u0947\u0902 \u092A\ + \u093E\u0932\u0947 \u0915\u0947 \u0915\u093E\u0930\u0923 50 \u092A\u094D\u0930\ + \u0924\u093F\u0936\u0924 \u0938\u0947 \u0905\u0927\u093F\u0915 \u0915\u094D\ + \u0937\u0924\u093F \u0939\u0941\u0908\u0964" + B: "\u092A\u093E\u0932\u0947 \u0938\u0947 \u092A\u094D\u0930\u092D\u093E\u0935\ + \u093F\u0924 \u092A\u0947\u0921\u093C\u094B\u0902 \u0915\u0940 \u0938\u0902\ + \u0916\u094D\u092F\u093E." + C: "\u0909\u092A\u0935\u0928 \u0938\u0947 \u0928\u092E\u0942\u0928\u0947 \u0932\ + \u093F\u090F \u0917\u090F \u092A\u0947\u0921\u093C\u094B\u0902 \u0915\u0940\ + \ \u0938\u0902\u0916\u094D\u092F\u093E\u0964" + D: "\u092A\u094D\u0930\u0924\u094D\u092F\u0947\u0915 \u0928\u092E\u0942\u0928\ + \u0947 \u0935\u093E\u0932\u0947 \u092A\u0947\u0921\u093C \u0915\u0947 \u0932\ + \u093F\u090F, \u091A\u093E\u0939\u0947 \u0909\u0938\u0947 50 \u092A\u094D\u0930\ + \u0924\u093F\u0936\u0924 \u0938\u0947 \u0905\u0927\u093F\u0915 \u0915\u094D\ + \u0937\u0924\u093F \u0939\u0941\u0908 \u0939\u094B \u092F\u093E \u0905\u0927\ + \u093F\u0915\u0924\u092E 50 \u092A\u094D\u0930\u0924\u093F\u0936\u0924 \u0915\ + \u094D\u0937\u0924\u093F \u0939\u0941\u0908 \u0939\u094B\u0964" + input_correct_responses: + - D + input_question: "\u092A\u093E\u0932\u0947 \u0915\u0940 \u091A\u0947\u0924\u093E\ + \u0935\u0928\u0940 \u091C\u093E\u0930\u0940 \u0939\u094B\u0928\u0947 \u0915\u0947\ + \ \u092C\u093E\u0926, \u090F\u0915 \u092C\u0921\u093C\u0947 \u0938\u0902\u0924\ + \u0930\u0947 \u0915\u0947 \u092C\u093E\u0917 \u0915\u0947 \u092E\u093E\u0932\ + \u093F\u0915 \u0928\u0947 \u0905\u092A\u0928\u0947 \u0915\u0930\u094D\u092E\u091A\ + \u093E\u0930\u093F\u092F\u094B\u0902 \u0938\u0947 \u0905\u092A\u0928\u0947 \u0938\ + \u092D\u0940 \u092A\u0947\u0921\u093C\u094B\u0902 \u092A\u0930 \u092A\u093E\u0928\ + \u0940 \u091B\u093F\u0921\u093C\u0915\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F\ + \ \u0915\u0939\u093E\u0964 \u0910\u0938\u093E \u092E\u093E\u0928\u093E \u091C\ + \u093E\u0924\u093E \u0925\u093E \u0915\u093F \u092A\u093E\u0928\u0940 \u091C\ + \u092E \u091C\u093E\u090F\u0917\u093E \u0914\u0930 \u0928\u093E\u0930\u0902\u0917\ + \u0940 \u092B\u0942\u0932 \u0915\u0947 \u091A\u093E\u0930\u094B\u0902 \u0913\ + \u0930 \u092C\u0930\u094D\u092B \u0915\u093E \u090F\u0915 \u0938\u0941\u0930\ + \u0915\u094D\u0937\u093E\u0924\u094D\u092E\u0915 \u0906\u0935\u0930\u0923 \u092C\ + \u0928 \u091C\u093E\u090F\u0917\u093E\u0964 \u092B\u093F\u0930 \u092D\u0940\ + , \u092E\u093E\u0932\u093F\u0915 \u0915\u094B \u0938\u0902\u0926\u0947\u0939\ + \ \u0939\u0948 \u0915\u093F \u0920\u0902\u0922 \u0915\u0947 \u0915\u093E\u0930\ + \u0923 \u0915\u0941\u091B \u092A\u0947\u0921\u093C\u094B\u0902 \u0915\u094B\ + \ \u0915\u093E\u092B\u0940 \u0928\u0941\u0915\u0938\u093E\u0928 \u0939\u0941\ + \u0906 \u0939\u0948\u0964 \u0920\u0902\u0922 \u0915\u0947 \u0915\u093E\u0930\ + \u0923 50 \u092A\u094D\u0930\u0924\u093F\u0936\u0924 \u0938\u0947 \u0905\u0927\ + \u093F\u0915 \u0928\u0941\u0915\u0938\u093E\u0928 \u091D\u0947\u0932\u0928\u0947\ + \ \u0935\u093E\u0932\u0947 \u092A\u0947\u0921\u093C\u094B\u0902 \u0915\u0947\ + \ \u0905\u0928\u0941\u092A\u093E\u0924 \u0915\u093E \u0905\u0928\u0941\u092E\ + \u093E\u0928 \u0932\u0917\u093E\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F\ + , \u0909\u0928\u094D\u0939\u094B\u0902\u0928\u0947 \u0905\u092A\u0928\u0947\ + \ \u0909\u092A\u0935\u0928 \u0938\u0947 100 \u092A\u0947\u0921\u093C\u094B\u0902\ + \ \u0915\u093E \u090F\u0915 \u092F\u093E\u0926\u0943\u091A\u094D\u091B\u093F\ + \u0915 \u0928\u092E\u0942\u0928\u093E \u0932\u093F\u092F\u093E\u0964 \u0907\u0938\ + \ \u092A\u094D\u0930\u092F\u094B\u0917 \u092E\u0947\u0902 \u092A\u094D\u0930\ + \u0924\u093F\u0915\u094D\u0930\u093F\u092F\u093E \u091A\u0930 \u0915\u094D\u092F\ + \u093E \u0939\u0948?" + - input_choice_list: + A: "\u092E\u0924\u0932\u092C 518 \u0917\u094D\u0930\u093E\u092E; \u092E\u093E\ + \u0928\u0915 \u0935\u093F\u091A\u0932\u0928 7.0 \u0917\u094D\u0930\u093E\u092E" + B: "\u092E\u0924\u0932\u092C 518 \u0917\u094D\u0930\u093E\u092E; \u092E\u093E\ + \u0928\u0915 \u0935\u093F\u091A\u0932\u0928 3.5 \u0917\u094D\u0930\u093E\u092E" + C: "\u092E\u0924\u0932\u092C 518 \u0917\u094D\u0930\u093E\u092E; \u092E\u093E\ + \u0928\u0915 \u0935\u093F\u091A\u0932\u0928 6.1 \u0917\u094D\u0930\u093E\u092E" + D: "\u092E\u0924\u0932\u092C 394 \u0917\u094D\u0930\u093E\u092E; \u092E\u093E\ + \u0928\u0915 \u0935\u093F\u091A\u0932\u0928 6.1 \u0917\u094D\u0930\u093E\u092E" + input_correct_responses: + - C + input_question: "\u090F\u0915 \u0928\u0908 \u0938\u094D\u092E\u093E\u0930\u094D\ + \u091F\u0935\u0949\u091A \u0915\u093E \u0928\u093F\u0930\u094D\u092E\u093E\u0923\ + \ \u0915\u093E\u0930\u0916\u093E\u0928\u0947 \u0915\u0947 \u090F\u0915 \u0939\ + \u093F\u0938\u094D\u0938\u0947 \u092E\u0947\u0902 \u0915\u093F\u092F\u093E \u091C\ + \u093E\u0924\u093E \u0939\u0948, \u092B\u093F\u0930 \u0915\u093E\u0930\u0916\ + \u093E\u0928\u0947 \u0915\u0947 \u0926\u0942\u0938\u0930\u0947, \u0938\u094D\ + \u0935\u0924\u0902\u0924\u094D\u0930 \u0939\u093F\u0938\u094D\u0938\u0947 \u092E\ + \u0947\u0902 \u0936\u093F\u092A\u093F\u0902\u0917 \u0915\u0947 \u0932\u093F\u090F\ + \ \u0938\u0941\u0930\u0915\u094D\u0937\u093F\u0924 \u0915\u093F\u092F\u093E\ + \ \u091C\u093E\u0924\u093E \u0939\u0948\u0964 \u0938\u094D\u092E\u093E\u0930\ + \u094D\u091F\u0935\u0949\u091A \u0915\u093E \u0935\u091C\u0928 \u0914\u0938\u0924\ + \ 62 \u0917\u094D\u0930\u093E\u092E \u0914\u0930 \u092E\u093E\u0928\u0915 \u0935\ + \u093F\u091A\u0932\u0928 1.0 \u0917\u094D\u0930\u093E\u092E \u0939\u0948\u0964\ + \ \u092A\u0948\u0915\u0947\u091C\u093F\u0902\u0917 \u0915\u093E \u0935\u091C\ + \u0928 (\u092C\u0949\u0915\u094D\u0938, \u0909\u092A\u092F\u094B\u0917\u0915\ + \u0930\u094D\u0924\u093E \u0917\u093E\u0907\u0921, \u092C\u092C\u0932 \u0930\ + \u0948\u092A, \u0906\u0926\u093F) \u0915\u093E \u0914\u0938\u0924 456 \u0917\ + \u094D\u0930\u093E\u092E \u0914\u0930 \u092E\u093E\u0928\u0915 \u0935\u093F\u091A\ + \u0932\u0928 6 \u0917\u094D\u0930\u093E\u092E \u0939\u0948\u0964 \u0938\u093E\ + \u0925 \u092E\u0947\u0902, \u0938\u094D\u092E\u093E\u0930\u094D\u091F\u0935\u0949\ + \u091A \u0914\u0930 \u0909\u0938\u0915\u0940 \u092A\u0948\u0915\u0947\u091C\u093F\ + \u0902\u0917 \u0915\u0947 \u0935\u091C\u0928 \u0915\u0947 \u0935\u093F\u0924\ + \u0930\u0923 \u092E\u0947\u0902 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\ + \u093F\u0924 \u092E\u093E\u0927\u094D\u092F \u0914\u0930 \u092E\u093E\u0928\u0915\ + \ \u0935\u093F\u091A\u0932\u0928 \u0939\u094B\u0917\u093E:" + - input_choice_list: + A: "\u092E\u0948\u0902, \u0926\u094D\u0935\u093F\u0924\u0940\u092F" + B: "\u0926\u094D\u0935\u093F\u0924\u0940\u092F, \u0924\u0943\u0924\u0940\u092F" + C: "\u0924\u0943\u0924\u0940\u092F, \u092E\u0948\u0902" + D: "\u0924\u0943\u0924\u0940\u092F, \u0926\u094D\u0935\u093F\u0924\u0940\u092F" + input_correct_responses: + - D + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u093F\u0938 \u0938\u0947\u091F \u0915\ + \u093E \u092E\u093E\u0928\u0915 \u0935\u093F\u091A\u0932\u0928 \u0938\u092C\u0938\ + \u0947 \u091B\u094B\u091F\u093E \u0939\u0948? \u0938\u092C\u0938\u0947 \u092C\ + \u0921\u093C\u093E \u0915\u094C\u0928 \u0938\u093E \u0939\u0948? I: {1,2,3}\ + \ II: {-10,10} III: {100}" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_statistics +tag: mmlu_hi_llama_stem_tasks +task: mmlu_hi_llama_high_school_statistics +task_alias: high_school_statistics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_us_history.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_us_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c7db922cce7a2bb7724fcf4dec6bf08a85679b63 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_us_history.yaml @@ -0,0 +1,580 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u092C\u0947\u0915\u0928 \u0915\u0947 \u0935\u093F\u0926\u094D\u0930\u094B\ + \u0939 \u0915\u0947 \u092A\u094D\u0930\u0924\u093F \u0938\u0902\u0917\u0920\ + \u093F\u0924 \u092A\u094D\u0930\u0924\u093F\u0915\u094D\u0930\u093F\u092F\u093E" + B: "\u0936\u0947\u091C\u093C \u0915\u0947 \u0935\u093F\u0926\u094D\u0930\u094B\ + \u0939 \u092A\u0930 \u0938\u0902\u0918\u0940\u092F \u092A\u094D\u0930\u0924\ + \u093F\u0915\u094D\u0930\u093F\u092F\u093E" + C: "\u0935\u094D\u0939\u093F\u0938\u094D\u0915\u0940 \u0935\u093F\u0926\u094D\ + \u0930\u094B\u0939 \u092A\u0930 \u0938\u0902\u0918\u0940\u092F \u092A\u094D\ + \u0930\u0924\u093F\u0915\u094D\u0930\u093F\u092F\u093E" + D: "\u092A\u094B\u0902\u091F\u093F\u092F\u093E\u0915 \u0915\u0947 \u0935\u093F\ + \u0926\u094D\u0930\u094B\u0939 \u092A\u0930 \u0938\u0902\u0918\u0940\u092F\ + \ \u092A\u094D\u0930\u0924\u093F\u0915\u094D\u0930\u093F\u092F\u093E" + input_correct_responses: + - C + input_question: "\u092F\u0939 \u092A\u094D\u0930\u0936\u094D\u0928 \u0928\u093F\ + \u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u091C\u093E\u0928\u0915\u093E\ + \u0930\u0940 \u0915\u094B \u0938\u0902\u0926\u0930\u094D\u092D\u093F\u0924 \u0915\ + \u0930\u0924\u093E \u0939\u0948\u0964 "\u0939\u0930 \u0930\u093E\u091C\u094D\ + \u092F \u092E\u0947\u0902 \u0938\u092E\u093E\u091C \u090F\u0915 \u0906\u0936\ + \u0940\u0930\u094D\u0935\u093E\u0926 \u0939\u0948, \u0932\u0947\u0915\u093F\u0928\ + \ \u0938\u0930\u0915\u093E\u0930 \u0905\u092A\u0928\u0947 \u0938\u092C\u0938\ + \u0947 \u0905\u091A\u094D\u091B\u0947 \u0930\u093E\u091C\u094D\u092F \u092E\u0947\ + \u0902 \u092D\u0940 \u090F\u0915 \u0906\u0935\u0936\u094D\u092F\u0915 \u092C\ + \u0941\u0930\u093E\u0908 \u0939\u0948; \u0905\u092A\u0928\u0940 \u0938\u092C\ + \u0938\u0947 \u0916\u0930\u093E\u092C \u0938\u094D\u0925\u093F\u0924\u093F \u092E\ + \u0947\u0902 \u092F\u0939 \u0905\u0938\u0939\u0928\u0940\u092F \u0939\u0948\ + ; \u0915\u094D\u092F\u094B\u0902\u0915\u093F \u091C\u092C \u0939\u092E \u092A\ + \u0940\u0921\u093C\u093F\u0924 \u0939\u094B\u0924\u0947 \u0939\u0948\u0902,\ + \ \u092F\u093E \u0938\u0930\u0915\u093E\u0930 \u0926\u094D\u0935\u093E\u0930\ + \u093E \u0909\u0928\u094D\u0939\u0940\u0902 \u0926\u0941\u0916\u094B\u0902 \u0915\ + \u093E \u0938\u093E\u092E\u0928\u093E \u0915\u0930\u0924\u0947 \u0939\u0948\u0902\ + , \u091C\u093F\u0928\u0915\u0940 \u0939\u092E \u0909\u092E\u094D\u092E\u0940\ + \u0926 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902 \u092C\u093F\ + \u0928\u093E \u0938\u0930\u0915\u093E\u0930 \u0935\u093E\u0932\u0947 \u0926\u0947\ + \u0936 \u092E\u0947\u0902, \u0939\u092E\u093E\u0930\u0940 \u0935\u093F\u092A\ + \u0924\u094D\u0924\u093F \u092F\u0939 \u0926\u0930\u094D\u0936\u093E\u0924\u0947\ + \ \u0939\u0941\u090F \u092C\u0922\u093C \u091C\u093E\u0924\u0940 \u0939\u0948\ + \ \u0915\u093F \u0939\u092E \u0909\u0928 \u0938\u093E\u0927\u0928\u094B\u0902\ + \ \u0915\u094B \u092A\u094D\u0930\u0938\u094D\u0924\u0941\u0924 \u0915\u0930\ + \u0924\u0947 \u0939\u0948\u0902 \u091C\u093F\u0928\u0915\u0947 \u0926\u094D\u0935\ + \u093E\u0930\u093E \u0939\u092E \u092A\u0940\u0921\u093C\u093F\u0924 \u0939\u094B\ + \u0924\u0947 \u0939\u0948\u0902\u0964 \u0938\u0930\u0915\u093E\u0930, \u092A\ + \u094B\u0936\u093E\u0915 \u0915\u0940 \u0924\u0930\u0939, \u0916\u094B\u0908\ + \ \u0939\u0941\u0908 \u092E\u093E\u0938\u0942\u092E\u093F\u092F\u0924 \u0915\ + \u093E \u092A\u094D\u0930\u0924\u0940\u0915 \u0939\u0948; \u0930\u093E\u091C\ + \u093E\u0913\u0902 \u0915\u0947 \u092E\u0939\u0932 \u0938\u094D\u0935\u0930\u094D\ + \u0917 \u0915\u0947 \u0927\u0928\u0941\u0937 \u0915\u0947 \u0916\u0902\u0921\ + \u0939\u0930\u094B\u0902 \u092A\u0930 \u092C\u0928\u0947 \u0939\u094B\u0924\u0947\ + \ \u0939\u0948\u0902\u0964 \u092F\u0926\u093F \u0905\u0902\u0924\u0930\u093E\ + \u0924\u094D\u092E\u093E \u0915\u0947 \u0906\u0935\u0947\u0917 \u0938\u094D\u092A\ + \u0937\u094D\u091F, \u090F\u0915\u0938\u092E\u093E\u0928 \u0914\u0930 \u0905\ + \u092A\u094D\u0930\u0924\u093F\u0930\u094B\u0927\u094D\u092F \u0930\u0942\u092A\ + \ \u0938\u0947 \u092E\u093E\u0928\u0947 \u0917\u090F \u0939\u094B\u0924\u0947\ + , \u0924\u094B \u092E\u0928\u0941\u0937\u094D\u092F \u0915\u094B \u0915\u093F\ + \u0938\u0940 \u0905\u0928\u094D\u092F \u0915\u093E\u0928\u0942\u0928 \u0926\u0947\ + \u0928\u0947 \u0935\u093E\u0932\u0947 \u0915\u0940 \u0906\u0935\u0936\u094D\u092F\ + \u0915\u0924\u093E \u0928\u0939\u0940\u0902 \u0939\u094B\u0924\u0940; \u0932\ + \u0947\u0915\u093F\u0928 \u0910\u0938\u093E \u0928\u0939\u0940\u0902 \u0939\u094B\ + \u0928\u0947 \u092A\u0930, \u0935\u0939 \u092C\u093E\u0915\u0940 \u0915\u0940\ + \ \u0938\u0941\u0930\u0915\u094D\u0937\u093E \u0915\u0947 \u0932\u093F\u090F\ + \ \u0938\u093E\u0927\u0928 \u091C\u0941\u091F\u093E\u0928\u0947 \u0915\u0947\ + \ \u0932\u093F\u090F \u0905\u092A\u0928\u0940 \u0938\u0902\u092A\u0924\u094D\ + \u0924\u093F \u0915\u093E \u090F\u0915 \u0939\u093F\u0938\u094D\u0938\u093E\ + \ \u0906\u0924\u094D\u092E\u0938\u092E\u0930\u094D\u092A\u0923 \u0915\u0930\u0928\ + \u093E \u0906\u0935\u0936\u094D\u092F\u0915 \u0938\u092E\u091D\u0924\u093E \u0939\ + \u0948; \u0914\u0930 \u092F\u0939 \u0909\u0938\u0947 \u0909\u0938\u0940 \u0935\ + \u093F\u0935\u0947\u0915 \u0938\u0947 \u0915\u0930\u0928\u0947 \u0915\u0947\ + \ \u0932\u093F\u090F \u092A\u094D\u0930\u0947\u0930\u093F\u0924 \u0915\u093F\ + \u092F\u093E \u091C\u093E\u0924\u093E \u0939\u0948 \u091C\u094B \u0939\u0930\ + \ \u0926\u0942\u0938\u0930\u0947 \u092E\u093E\u092E\u0932\u0947 \u092E\u0947\ + \u0902 \u0909\u0938\u0947 \u0926\u094B \u092C\u0941\u0930\u093E\u0907\u092F\u094B\ + \u0902 \u092E\u0947\u0902 \u0938\u0947 \u0915\u092E \u0938\u0947 \u0915\u092E\ + \ \u091A\u0941\u0928\u0928\u0947 \u0915\u0940 \u0938\u0932\u093E\u0939 \u0926\ + \u0947\u0924\u093E \u0939\u0948\u0964 \u0907\u0938\u0932\u093F\u090F, \u0938\ + \u0941\u0930\u0915\u094D\u0937\u093E \u0938\u0930\u0915\u093E\u0930 \u0915\u093E\ + \ \u0905\u0938\u0932\u0940 \u0921\u093F\u091C\u093E\u0907\u0928 \u0914\u0930\ + \ \u0905\u0902\u0924 \u0939\u0948, \u092F\u0939 \u0928\u093F\u0930\u094D\u0935\ + \u093F\u0935\u093E\u0926 \u0930\u0942\u092A \u0938\u0947 \u0907\u0938 \u092C\ + \u093E\u0924 \u0915\u093E \u0905\u0928\u0941\u0938\u0930\u0923 \u0915\u0930\u0924\ + \u093E \u0939\u0948 \u0915\u093F \u091C\u094B \u092D\u0940 \u0930\u0942\u092A\ + \ \u0926\u093F\u0916\u093E\u0908 \u0926\u0947\u0924\u093E \u0939\u0948 \u0935\ + \u0939 \u0938\u0941\u0928\u093F\u0936\u094D\u091A\u093F\u0924 \u0915\u0930\u0928\ + \u0947 \u0915\u0940 \u0938\u092C\u0938\u0947 \u0905\u0927\u093F\u0915 \u0938\ + \u0902\u092D\u093E\u0935\u0928\u093E \u0939\u0948 \u092F\u0939 \u0939\u092E\u093E\ + \u0930\u0947 \u0932\u093F\u090F, \u0938\u092C\u0938\u0947 \u0915\u092E \u0916\ + \u0930\u094D\u091A \u0914\u0930 \u0938\u092C\u0938\u0947 \u0905\u0927\u093F\u0915\ + \ \u0932\u093E\u092D \u0915\u0947 \u0938\u093E\u0925, \u0905\u0928\u094D\u092F\ + \ \u0938\u092D\u0940 \u0938\u0947 \u092C\u0947\u0939\u0924\u0930 \u0939\u0948\ + \u0964" \u0925\u0949\u092E\u0938 \u092A\u0947\u0928, \u0915\u0949\u092E\ + \u0928 \u0938\u0947\u0902\u0938, 1776 \u0909\u092A\u0930\u094B\u0915\u094D\u0924\ + \ \u092C\u0924\u093E\u090F \u0917\u090F \u0928\u093F\u092E\u094D\u0928\u0932\ + \u093F\u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u093F\u0938\ + \ "\u0926\u0941\u0916" \u0915\u0940 \u0915\u094D\u0930\u093E\u0902\ + \u0924\u093F\u0915\u093E\u0930\u0940 \u092F\u0941\u0917 \u0915\u0947 \u092C\u093E\ + \u0926 \u0915\u0947 \u0938\u0902\u0918-\u0935\u093F\u0930\u094B\u0927\u0940\ + \ \u0932\u094B\u0917\u094B\u0902 \u0926\u094D\u0935\u093E\u0930\u093E \u0938\ + \u092C\u0938\u0947 \u0905\u0927\u093F\u0915 \u0928\u093F\u0902\u0926\u093E \u0915\ + \u0940 \u0917\u0908 \u0925\u0940?" + - input_choice_list: + A: "\u092C\u094D\u0930\u093F\u091F\u093F\u0936 \u0928\u0940\u0924\u093F\u092F\ + \u094B\u0902 \u0914\u0930 \u0909\u0924\u094D\u0924\u0930\u0940 \u0905\u092E\ + \u0947\u0930\u093F\u0915\u0940 \u0909\u092A\u0928\u093F\u0935\u0947\u0936\u0935\ + \u093E\u0926\u093F\u092F\u094B\u0902 \u0915\u0940 \u0906\u0915\u093E\u0902\ + \u0915\u094D\u0937\u093E\u0913\u0902 \u0915\u0947 \u092C\u0940\u091A \u0924\ + \u0928\u093E\u0935\u0964" + B: "\u092B\u094D\u0930\u093E\u0902\u0938\u0940\u0938\u093F\u092F\u094B\u0902\ + \ \u0938\u0947 \u0938\u0902\u092C\u0926\u094D\u0927 \u0905\u092E\u0947\u0930\ + \u093F\u0915\u0940 \u092D\u093E\u0930\u0924\u0940\u092F\u094B\u0902 \u0914\ + \u0930 \u092C\u094D\u0930\u093F\u091F\u093F\u0936 \u0938\u0947 \u0938\u0902\ + \u092C\u0926\u094D\u0927 \u092D\u093E\u0930\u0924\u0940\u092F\u094B\u0902\ + \ \u0915\u0947 \u092C\u0940\u091A \u0924\u0928\u093E\u0935\u0964" + C: "\u092E\u0941\u0915\u094D\u0924 \u0905\u092B\u094D\u0930\u0940\u0915\u0940\ + \ \u0905\u092E\u0947\u0930\u093F\u0915\u093F\u092F\u094B\u0902 \u0914\u0930\ + \ \u0936\u094D\u0935\u0947\u0924 \u092C\u093E\u0917\u0935\u093E\u0928\u094B\ + \u0902 \u0915\u0947 \u092C\u0940\u091A \u0924\u0928\u093E\u0935\u0964" + D: "\u0914\u092A\u0928\u093F\u0935\u0947\u0936\u093F\u0915 \u0905\u092E\u0947\ + \u0930\u093F\u0915\u093E \u0915\u0947 \u092D\u0940\u0924\u0930 \u092A\u093F\ + \u091B\u0921\u093C\u0947 \u0907\u0932\u093E\u0915\u094B\u0902 \u092E\u0947\ + \u0902 \u092C\u0938\u0928\u0947 \u0935\u093E\u0932\u094B\u0902 \u0914\u0930\ + \ \u0905\u092D\u093F\u091C\u093E\u0924 \u0935\u0930\u094D\u0917 \u0915\u0947\ + \ \u092C\u0940\u091A \u0924\u0928\u093E\u0935\u0964" + input_correct_responses: + - D + input_question: "\u092F\u0939 \u092A\u094D\u0930\u0936\u094D\u0928 \u0928\u093F\ + \u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u091C\u093E\u0928\u0915\u093E\ + \u0930\u0940 \u0915\u094B \u0938\u0902\u0926\u0930\u094D\u092D\u093F\u0924 \u0915\ + \u0930\u0924\u093E \u0939\u0948\u0964 "\u0915\u0949\u0928\u0947\u0938\u094D\ + \u091F\u094B\u0917\u093E \u092E\u0928\u094B\u0930 \u0914\u0930 \u0932\u0948\u0902\ + \u0915\u0947\u0938\u094D\u091F\u0930 \u092E\u0947\u0902 \u0939\u092E\u093E\u0930\ + \u0947 \u0926\u0947\u0930 \u0938\u0947 \u0906\u091A\u0930\u0923 \u0915\u0947\ + \ \u0915\u093E\u0930\u0923 \u092F\u0939\u093E\u0902 \u0914\u0930 \u092A\u0921\ + \u093C\u094B\u0938\u0940 \u0938\u0930\u0915\u093E\u0930\u094B\u0902 \u092E\u0947\ + \u0902 \u092C\u0939\u0941\u0924 \u0905\u0927\u093F\u0915 \u0905\u091F\u0915\u0932\ + \u0947\u0902 \u0914\u0930 \u092D\u093E\u0935\u0928\u093E\u0913\u0902 \u0915\u0940\ + \ \u090F\u0915 \u092C\u0921\u093C\u0940 \u0935\u093F\u0935\u093F\u0927\u0924\ + \u093E \u092A\u0948\u0926\u093E \u0939\u0941\u0908 \u0939\u0948; \u0915\u0941\ + \u091B \u0907\u0938\u0915\u0940 \u092A\u0941\u0937\u094D\u091F\u093F \u0915\u0930\ + \ \u0930\u0939\u0947 \u0939\u0948\u0902 \u0914\u0930 \u0905\u0928\u094D\u092F\ + \ \u0907\u0938\u0915\u0940 \u0928\u093F\u0902\u0926\u093E \u0915\u0930 \u0930\ + \u0939\u0947 \u0939\u0948\u0902; \u0915\u0941\u091B \u0909\u0926\u093E\u0930\ + \u0924\u093E\u092A\u0942\u0930\u094D\u0935\u0915 \u0905\u092A\u0930\u093E\u0927\ + \ \u0915\u094B \u0915\u092E \u0915\u0930 \u0930\u0939\u0947 \u0939\u0948\u0902\ + , \u0914\u0930 \u0905\u0928\u094D\u092F \u0926\u0941\u0930\u094D\u092D\u093E\ + \u0935\u0928\u093E\u092A\u0942\u0930\u094D\u0923 \u0930\u0942\u092A \u0938\u0947\ + \ \u0907\u0938\u0947 \u0938\u092C\u0938\u0947 \u0918\u0943\u0923\u093F\u0924\ + \ \u0914\u0930 \u091A\u093F\u0924\u094D\u0930\u093F\u0924 \u0915\u0930 \u0930\ + \u0939\u0947 \u0939\u0948\u0902 \u0918\u0943\u0923\u093F\u0924 \u0930\u0902\u0917\ + , \u0939\u092E \u0938\u094B\u091A\u0924\u0947 \u0939\u0948\u0902 \u0915\u093F\ + \ \u092F\u0939 \u0939\u092E\u093E\u0930\u093E \u0915\u0930\u094D\u0924\u0935\ + \u094D\u092F \u0939\u0948 \u0915\u093F \u0939\u092E \u091C\u0928\u0924\u093E\ + \ \u0915\u0947 \u0938\u093E\u092E\u0928\u0947 \u0938\u0902\u092A\u0942\u0930\ + \u094D\u0923 \u092A\u0926\u093E\u0930\u094D\u0925 \u0915\u094B \u0909\u0938\u0940\ + \ \u0930\u0942\u092A \u092E\u0947\u0902 \u0930\u0916\u0947\u0902 \u091C\u0948\ + \u0938\u093E \u0935\u0939 \u092A\u094D\u0930\u0915\u091F \u0939\u0941\u0906\ + \ \u0925\u093E, \u0914\u0930 \u0905\u092D\u0940 \u092D\u0940 \u0939\u092E\u093E\ + \u0930\u0947 \u0938\u093E\u092E\u0928\u0947 \u092A\u094D\u0930\u0915\u091F \u0939\ + \u094B\u0924\u093E \u0939\u0948\u0964 , \u0909\u0928\u0938\u0947 \u0926\u094B\ + \u0938\u094D\u0924\u0940 \u0915\u0930\u0928\u0947 \u0915\u093E \u090F\u0915\ + \ \u0928\u093F\u0936\u094D\u091A\u093F\u0924 \u0938\u0902\u0915\u0932\u094D\u092A\ + \ \u0914\u0930 \u092E\u093E\u0928\u0935\u0940\u092F \u0938\u0902\u0915\u091F\ + \u094B\u0902 \u0915\u0947 \u092A\u094D\u0930\u0924\u093F \u092A\u0942\u0930\u0940\ + \ \u0924\u0930\u0939 \u0938\u0947 \u0905\u0938\u0902\u0935\u0947\u0926\u0928\ + \u0936\u0940\u0932\u0924\u093E, \u0906\u0907\u090F \u0915\u0941\u091B \u0914\ + \u0930 \u0939\u093E\u0932\u093F\u092F\u093E \u0924\u0925\u094D\u092F\u094B\u0902\ + \ \u092A\u0930 \u0935\u093F\u091A\u093E\u0930 \u0915\u0930\u0947\u0902\u0964\ + \ \u092A\u093F\u091B\u0932\u0940 \u0917\u0930\u094D\u092E\u093F\u092F\u094B\u0902\ + \ \u092E\u0947\u0902 \u091C\u092C \u0939\u092E\u0947\u0902 \u092A\u0924\u093E\ + \ \u091A\u0932\u093E \u0915\u093F \u0939\u092E\u0947\u0902 \u0938\u0930\u0915\ + \u093E\u0930 \u0938\u0947 \u0915\u094B\u0908 \u0938\u0939\u093E\u092F\u0924\u093E\ + \ \u0928\u0939\u0940\u0902 \u092E\u093F\u0932\u0928\u0947 \u0935\u093E\u0932\ + \u0940 \u0939\u0948, \u0924\u094B \u0915\u0941\u091B \u0938\u094D\u0935\u092F\ + \u0902\u0938\u0947\u0935\u0915 \u0939\u092E\u093E\u0930\u0947 \u0938\u094D\u0935\ + \u092F\u0902 \u0915\u0947 \u0916\u0930\u094D\u091A \u092A\u0930 \u0939\u092E\ + \u093E\u0930\u0947 \u0926\u0941\u0936\u094D\u092E\u0928\u094B\u0902 \u0915\u094B\ + \ \u0939\u092E\u093E\u0930\u0940 \u0938\u0940\u092E\u093E\u0913\u0902 \u0938\ + \u0947 \u0916\u0926\u0947\u0921\u093C\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F\ + \ \u0926\u0943\u0922\u093C \u0938\u0902\u0915\u0932\u094D\u092A\u093F\u0924\ + \ \u0939\u094B\u0915\u0930 \u0928\u093F\u0915\u0932 \u092A\u0921\u093C\u0947\ + ; \u0914\u0930 \u091C\u092C \u0939\u092E \u092E\u0939\u093E\u0928 \u0926\u094D\ + \u0935\u0940\u092A \u0915\u0947 \u0928\u093F\u0915\u091F \u092A\u0939\u0941\u0902\ + \u091A\u0947, \u0924\u094B \u0939\u092E\u0947\u0902 \u092A\u0924\u093E \u091A\ + \u0932\u093E \u0915\u093F \u0909\u0928\u0915\u0947 \u0915\u0908 \u092F\u094B\ + \u0926\u094D\u0927\u093E \u0939\u092E\u093E\u0930\u0940 \u0938\u0940\u092E\u093E\ + \u0913\u0902 \u0915\u0947 \u0935\u093F\u0930\u0941\u0926\u094D\u0927 \u0928\u093F\ + \u0915\u0932 \u092A\u0921\u093C\u0947 \u0939\u0948\u0902\u0964 \u0907\u0938\ + \ \u092A\u0930 \u0939\u092E \u0932\u094C\u091F \u0906\u090F \u0914\u0930 \u0909\ + \u0928\u0915\u0947 \u0938\u093E\u0925 \u0906\u090F \u0914\u0930 \u092E\u0941\ + \u0928\u094D\u092B\u093C\u0940 \u0939\u093F\u0932 \u092A\u0930 \u0909\u0928\u0915\ + \u0947 \u0938\u093E\u0925 \u0932\u0921\u093C\u093E\u0908 \u0915\u0940, \u091C\ + \u0939\u093E\u0902 \u0939\u092E\u0928\u0947 \u0905\u092A\u0928\u0947 \u0915\u0941\ + \u091B \u0932\u094B\u0917\u094B\u0902 \u0915\u094B \u0916\u094B \u0926\u093F\ + \u092F\u093E \u0914\u0930 \u0909\u0928\u0915\u0947 \u0915\u0941\u091B \u092F\ + \u094B\u0926\u094D\u0927\u093E\u0913\u0902 \u0915\u094B \u092E\u093E\u0930 \u0921\ + \u093E\u0932\u093E \u0914\u0930 \u0907\u0938 \u0924\u0930\u0939 \u090F\u0915\ + \ \u0905\u0928\u094D\u092F \u0905\u092D\u093F\u092F\u093E\u0928 \u092E\u0947\ + \u0902 \u0907\u0938 \u0915\u0939\u093E\u0928\u0940 \u0938\u0947 \u0939\u092E\ + \u093E\u0930\u0947 \u092B\u094D\u0930\u0902\u091F\u093F\u092F\u0930\u094D\u0938\ + \ \u0915\u094B \u092C\u091A\u093E\u092F\u093E\u0964 \u0932\u0947\u0915\u093F\ + \u0928 \u091C\u0948\u0938\u0947 \u0939\u0940 \u0939\u092E\u0928\u0947 \u092E\ + \u0939\u093E\u0928 \u0926\u094D\u0935\u0940\u092A \u092A\u0930 \u0909\u0928\u0915\ + \u0947 \u092A\u094D\u0930\u093E\u0935\u0927\u093E\u0928\u094B\u0902 \u0915\u094B\ + \ \u0928\u0937\u094D\u091F \u0915\u0930 \u0926\u093F\u092F\u093E, \u0914\u0930\ + \ \u092C\u0947\u0925\u0932\u0939\u092E \u092E\u0947\u0902 \u0905\u091A\u094D\ + \u091B\u0947 \u0932\u094B\u0917\u094B\u0902 \u0915\u0947 \u0938\u093E\u0925\ + \ \u0909\u0928\u0915\u0947 \u0935\u094D\u092F\u093E\u092A\u093E\u0930 \u0915\ + \u094B \u092C\u0930\u094D\u092C\u093E\u0926 \u0915\u0930 \u0926\u093F\u092F\u093E\ + , \u0932\u0947\u0915\u093F\u0928 \u092F\u0947 \u0935\u0939\u0940 \u092D\u093E\ + \u0930\u0924\u0940\u092F \u0925\u0947, \u091C\u093F\u0928 \u092A\u0930 \u0928\ + \u0949\u0930\u094D\u0925\u092E\u094D\u092A\u094D\u091F\u0928 \u0915\u093E\u0909\ + \u0902\u091F\u0940 \u092E\u0947\u0902 \u0939\u092E\u093E\u0930\u0947 \u0926\u094B\ + \u0938\u094D\u0924\u094B\u0902 \u0915\u0940 \u0939\u0924\u094D\u092F\u093E \u0915\ + \u0930\u0928\u0947 \u0915\u093E \u0909\u091A\u093F\u0924 \u0938\u0902\u0926\u0947\ + \u0939 \u0925\u093E, \u0915\u0941\u091B \u0915\u094D\u0935\u0947\u0915\u0930\ + \u094B\u0902 \u0915\u0947 \u092A\u094D\u0930\u092D\u093E\u0935 \u0938\u0947\ + \ \u092A\u0915\u0921\u093C\u0947 \u0917\u090F \u0925\u0947 \u092E\u093E\u0930\ + \u0947 \u0917\u090F \u0932\u094B\u0917\u094B\u0902 \u0915\u0947 \u0926\u094B\ + \u0938\u094D\u0924\u094B\u0902 \u0914\u0930 \u0938\u0902\u092C\u0902\u0927\u094B\ + \u0902 \u0915\u0940 \u0928\u093E\u0930\u093E\u091C\u0917\u0940 \u0938\u0947\ + \ \u0909\u0928\u094D\u0939\u0947\u0902 \u092C\u091A\u093E\u0928\u0947 \u0915\ + \u0947 \u0932\u093F\u090F, \u0914\u0930 \u0938\u0930\u094D\u0926\u093F\u092F\ + \u094B\u0902 \u0924\u0915 \u0909\u0928\u0915\u093E \u0938\u092E\u0930\u094D\u0925\ + \u0928 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0938\u0930\ + \u0915\u093E\u0930 \u0915\u0940 \u0938\u0941\u0930\u0915\u094D\u0937\u093E \u0915\ + \u0947 \u0924\u0939\u0924\u0964 \u0907\u0938 \u0938\u0902\u0926\u0930\u094D\u092D\ + \ \u0915\u094B \u090F\u0915 \u0938\u094D\u092A\u0937\u094D\u091F\u0940\u0915\ + \u0930\u0923 \u0915\u0947 \u0930\u0942\u092A \u092E\u0947\u0902 \u092A\u0922\ + \u093C\u093E \u091C\u093E\u0928\u093E \u091A\u093E\u0939\u093F\u090F, \u0928\ + \ \u0915\u093F \u0905\u092A\u0930\u093E\u0927 \u092F\u093E \u0916\u0947\u0926\ + \ \u0915\u0940 \u0938\u094D\u0935\u0940\u0915\u0943\u0924\u093F \u0915\u0947\ + \ \u0930\u0942\u092A \u092E\u0947\u0902\u0964) \u090A\u092A\u0930 \u0926\u093F\ + \u090F \u0917\u090F \u0938\u094D\u092A\u0937\u094D\u091F\u0940\u0915\u0930\u0923\ + \ \u092E\u0947\u0902 \u0935\u094D\u092F\u0915\u094D\u0924 \u092D\u093E\u0935\ + \u0928\u093E\u090F\u0902 \u0905\u092E\u0947\u0930\u093F\u0915\u0940 \u0907\u0924\ + \u093F\u0939\u093E\u0938 \u0915\u0947 \u0914\u092A\u0928\u093F\u0935\u0947\u0936\ + \u093F\u0915 \u0915\u093E\u0932 \u0915\u0947 \u0926\u094C\u0930\u093E\u0928\ + \ \u091A\u0932 \u0930\u0939\u0947 \u0924\u0928\u093E\u0935\u094B\u0902 \u092E\ + \u0947\u0902 \u0938\u0947 \u0915\u093F\u0938\u0915\u094B \u0926\u0930\u094D\u0936\ + \u093E\u0924\u0940 \u0939\u0948\u0902?" + - input_choice_list: + A: "\u0938\u092E\u093E\u0928 \u0905\u0927\u093F\u0915\u093E\u0930 \u0938\u0902\ + \u0936\u094B\u0927\u0928" + B: "\u0935\u094D\u092F\u093E\u092A\u0915 \u092E\u0924\u093E\u0927\u093F\u0915\ + \u093E\u0930" + C: "\u0930\u093E\u091C\u094D\u092F\u094B\u0902 \u0915\u0947 \u0905\u0927\u093F\ + \u0915\u093E\u0930" + D: "\u0928\u093F\u0937\u0947\u0927" + input_correct_responses: + - B + input_question: "\u092F\u0939 \u092A\u094D\u0930\u0936\u094D\u0928 \u0928\u093F\ + \u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u091C\u093E\u0928\u0915\u093E\ + \u0930\u0940 \u0915\u094B \u0938\u0902\u0926\u0930\u094D\u092D\u093F\u0924 \u0915\ + \u0930\u0924\u093E \u0939\u0948\u0964 "\u0928\u090F \u0915\u093E\u0928\u0942\ + \u0928 \u0938\u0902\u0939\u093F\u0924\u093E \u092E\u0947\u0902, \u091C\u094B\ + \ \u092E\u0941\u091D\u0947 \u0932\u0917\u0924\u093E \u0939\u0948, \u0906\u092A\ + \u0915\u0947 \u0932\u093F\u090F \u092F\u0939 \u0906\u0935\u0936\u094D\u092F\u0915\ + \ \u0939\u094B\u0917\u093E \u0915\u093F \u092E\u0948\u0902 \u091A\u093E\u0939\ + \u0924\u093E \u0939\u0942\u0902 \u0915\u093F \u0906\u092A \u092E\u0939\u093F\ + \u0932\u093E\u0913\u0902 \u0915\u094B \u092F\u093E\u0926 \u0930\u0916\u0947\u0902\ + , \u0914\u0930 \u0905\u092A\u0928\u0947 \u092A\u0942\u0930\u094D\u0935\u091C\ + \u094B\u0902 \u0915\u0940 \u0924\u0941\u0932\u0928\u093E \u092E\u0947\u0902\ + \ \u0909\u0928\u0915\u0947 \u092A\u094D\u0930\u0924\u093F \u0905\u0927\u093F\ + \u0915 \u0909\u0926\u093E\u0930 \u0914\u0930 \u0905\u0928\u0941\u0915\u0942\u0932\ + \ \u092C\u0928\u0947\u0902\u0964 \u092A\u0924\u093F\u092F\u094B\u0902 \u0915\ + \u0947 \u0939\u093E\u0925\u094B\u0902 \u092E\u0947\u0902 \u0910\u0938\u0940\ + \ \u0905\u0938\u0940\u092E\u093F\u0924 \u0936\u0915\u094D\u0924\u093F \u0928\ + \ \u0926\u0947\u0902 \u092F\u093E\u0926 \u0930\u0916\u0947\u0902 \u0915\u093F\ + \ \u092F\u0926\u093F \u0938\u0902\u092D\u0935 \u0939\u0941\u0906 \u0924\u094B\ + \ \u0938\u092D\u0940 \u092A\u0941\u0930\u0941\u0937 \u0905\u0924\u094D\u092F\ + \u093E\u091A\u093E\u0930\u0940 \u0939\u094B\u0902\u0917\u0947\u0964 \u092F\u0926\ + \u093F \u092E\u0939\u093F\u0932\u093E\u0913\u0902 \u0915\u0940 \u0935\u093F\u0936\ + \u0947\u0937 \u0926\u0947\u0916\u092D\u093E\u0932 \u0914\u0930 \u0927\u094D\u092F\ + \u093E\u0928 \u0928\u0939\u0940\u0902 \u0926\u093F\u092F\u093E \u0917\u092F\u093E\ + \ \u0924\u094B \u0939\u092E \u0935\u093F\u0926\u094D\u0930\u094B\u0939 \u0915\ + \u094B \u092C\u0922\u093C\u093E\u0935\u093E \u0926\u0947\u0928\u0947 \u0915\u0947\ + \ \u0932\u093F\u090F \u0926\u0943\u0922\u093C \u0939\u0948\u0902, \u0914\u0930\ + \ \u0916\u0941\u0926 \u0915\u094B \u0910\u0938\u0947 \u0915\u093F\u0938\u0940\ + \ \u092D\u0940 \u0915\u093E\u0928\u0942\u0928 \u0938\u0947 \u092C\u0902\u0927\ + \u0947 \u0928\u0939\u0940\u0902 \u0930\u0916\u0947\u0902\u0917\u0947 \u091C\u093F\ + \u0938\u092E\u0947\u0902 \u0939\u092E\u093E\u0930\u0940 \u0915\u094B\u0908 \u0906\ + \u0935\u093E\u091C \u092F\u093E \u092A\u094D\u0930\u0924\u093F\u0928\u093F\u0927\ + \u093F\u0924\u094D\u0935 \u0928\u0939\u0940\u0902 \u0939\u0948\u0964" 1776\ + \ \u092E\u0947\u0902 \u091C\u0949\u0928 \u090F\u0921\u092E\u094D\u0938 \u0915\ + \u094B \u0932\u093F\u0916\u0947 \u090F\u0915 \u092A\u0924\u094D\u0930 \u092E\ + \u0947\u0902 \u0905\u092C\u0940\u0917\u0948\u0932 \u090F\u0921\u092E\u094D\u0938\ + \ \u0928\u0947 \u0915\u0939\u093E, "\u092E\u0939\u093F\u0932\u093E\u0913\ + \u0902 \u0915\u0947 \u0932\u093F\u090F \u0935\u093F\u0936\u0947\u0937 \u0915\ + \u093E\u0928\u0942\u0928 \u0928\u0947 \u0939\u092E\u0947\u0902 \u0938\u092C\u0938\ + \u0947 \u0935\u093F\u0937\u092E \u0938\u094D\u0925\u093F\u0924\u093F \u092E\u0947\ + \u0902 \u0921\u093E\u0932 \u0926\u093F\u092F\u093E \u0939\u0948\u0964 \u092E\ + \u0939\u093F\u0932\u093E\u0913\u0902 \u0928\u0947 \u090F\u0915 \u0935\u0930\u094D\ + \u0917 \u092E\u0947\u0902 \u0928\u093E\u0917\u0930\u093F\u0915\u094B\u0902 \u0915\ + \u0947 \u0905\u0927\u093F\u0915\u093E\u0930\u094B\u0902 \u0915\u0947 \u0938\u093E\ + \u0925 \u0928\u093F\u0935\u0947\u0936 \u0915\u093F\u092F\u093E \u0939\u0948\ + \ - \u092E\u0924\u0926\u093E\u0924\u093E, \u091C\u0942\u0930\u0940 \u0938\u0926\ + \u0938\u094D\u092F, \u0915\u093E\u0930\u094D\u092F\u093E\u0932\u092F-\u0927\u093E\ + \u0930\u0915 - \u090F\u0915 \u0915\u093E\u0932\u094D\u092A\u0928\u093F\u0915\ + \ \u0930\u0947\u0916\u093E \u0915\u094B \u092A\u093E\u0930 \u0915\u0930 \u0930\ + \u0939\u0947 \u0939\u0948\u0902\u0964 \u0905\u0917\u0932\u0947 \u0935\u093F\u0937\ + \u092F\u0964 \u0915\u0941\u091B \u0930\u093E\u091C\u094D\u092F\u094B\u0902 \u092E\ + \u0947\u0902, \u090F\u0915 \u0935\u093F\u0935\u093E\u0939\u093F\u0924 \u092E\ + \u0939\u093F\u0932\u093E \u0905\u092A\u0928\u0947 \u0928\u093E\u092E \u092A\u0930\ + \ \u0938\u0902\u092A\u0924\u094D\u0924\u093F \u0930\u0916 \u0938\u0915\u0924\ + \u0940 \u0939\u0948 \u0914\u0930 \u0935\u094D\u092F\u0935\u0938\u093E\u092F\ + \ \u0915\u0930 \u0938\u0915\u0924\u0940 \u0939\u0948; \u0905\u0928\u094D\u092F\ + \ \u092E\u0947\u0902, \u0909\u0938\u0915\u0940 \u0915\u092E\u093E\u0908 \u0909\ + \u0938\u0915\u0947 \u092A\u0924\u093F \u0915\u0940 \u0939\u094B\u0924\u0940\ + \ \u0939\u0948\u0964 \u0915\u0941\u091B \u0930\u093E\u091C\u094D\u092F\u094B\ + \u0902 \u092E\u0947\u0902, \u090F\u0915 \u092E\u0939\u093F\u0932\u093E \u0905\ + \u092A\u0928\u0947 \u092A\u0924\u093F \u0915\u0947 \u0916\u093F\u0932\u093E\u092B\ + \ \u0917\u0935\u093E\u0939\u0940 \u0926\u0947 \u0938\u0915\u0924\u0940 \u0939\ + \u0948, \u092E\u0941\u0915\u0926\u092E\u093E \u0915\u0930 \u0938\u0915\u0924\ + \u0940 \u0939\u0948 \u0914\u0930 \u0909\u0938 \u092A\u0930 \u092E\u0941\u0915\ + \u0926\u092E\u093E \u091A\u0932\u093E\u092F\u093E \u091C\u093E \u0938\u0915\u0924\ + \u093E \u0939\u0948\u0964 \u0905\u0926\u093E\u0932\u0924\u0947\u0902; \u0926\ + \u0942\u0938\u0930\u094B\u0902 \u092E\u0947\u0902, \u0935\u094D\u092F\u0915\u094D\ + \u0924\u093F, \u0938\u0902\u092A\u0924\u094D\u0924\u093F \u092F\u093E \u091A\ + \u0930\u093F\u0924\u094D\u0930 \u0915\u094B \u0939\u0941\u090F \u0928\u0941\u0915\ + \u0938\u093E\u0928 \u0915\u0947 \u092E\u093E\u092E\u0932\u0947 \u092E\u0947\u0902\ + \ \u0909\u0938\u0915\u0947 \u092A\u093E\u0938 \u0915\u094B\u0908 \u0928\u093F\ + \u0935\u093E\u0930\u0923 \u0928\u0939\u0940\u0902 \u0939\u0948\u0964 \u092A\u0924\ + \u093F \u092E\u0947\u0902 \u0935\u094D\u092F\u092D\u093F\u091A\u093E\u0930 \u0915\ + \u0947 \u0915\u093E\u0930\u0923 \u0924\u0932\u093E\u0915 \u0915\u0947 \u092E\ + \u093E\u092E\u0932\u0947 \u092E\u0947\u0902, \u0928\u093F\u0930\u094D\u0926\u094B\ + \u0937 \u092A\u0924\u094D\u0928\u0940 \u0915\u094B \u092C\u091A\u094D\u091A\u094B\ + \u0902 \u092F\u093E \u0938\u0902\u092A\u0924\u094D\u0924\u093F \u092A\u0930\ + \ \u0915\u094B\u0908 \u0905\u0927\u093F\u0915\u093E\u0930 \u0928\u0939\u0940\ + \u0902 \u092E\u093E\u0928\u093E \u091C\u093E\u0924\u093E \u0939\u0948, \u091C\ + \u092C \u0924\u0915 \u0915\u093F \u0928\u094D\u092F\u093E\u092F\u093E\u0932\u092F\ + \ \u0915\u0940 \u0935\u093F\u0936\u0947\u0937 \u0921\u093F\u0915\u094D\u0930\ + \u0940\u0964 \u0932\u0947\u0915\u093F\u0928 \u0938\u0902\u0918 \u0915\u0947\ + \ \u0915\u093F\u0938\u0940 \u092D\u0940 \u0930\u093E\u091C\u094D\u092F \u092E\ + \u0947\u0902 \u092A\u0924\u094D\u0928\u0940 \u0915\u094B \u0905\u092A\u0928\u0947\ + \ \u0938\u094D\u0935\u092F\u0902 \u0915\u0947 \u0935\u094D\u092F\u0915\u094D\ + \u0924\u093F, \u092F\u093E \u0905\u092A\u0928\u0947 \u092A\u0924\u093F \u0915\ + \u0947 \u091C\u0940\u0935\u0928 \u0915\u0947 \u0926\u094C\u0930\u093E\u0928\ + \ \u0938\u0939-\u0938\u093E\u091D\u0947\u0926\u093E\u0930\u0940 \u0915\u0940\ + \ \u0938\u0902\u092F\u0941\u0915\u094D\u0924 \u0915\u092E\u093E\u0908 \u0915\ + \u0947 \u0915\u093F\u0938\u0940 \u092D\u0940 \u0939\u093F\u0938\u094D\u0938\u0947\ + \ \u092A\u0930 \u0905\u0927\u093F\u0915\u093E\u0930 \u0928\u0939\u0940\u0902\ + \ \u0939\u0948\u0964 \u0915\u0941\u091B \u0930\u093E\u091C\u094D\u092F\u094B\ + \u0902 \u092E\u0947\u0902 \u092E\u0939\u093F\u0932\u093E\u090F\u0902 \u092A\u094D\ + \u0930\u0935\u0947\u0936 \u0915\u0930 \u0938\u0915\u0924\u0940 \u0939\u0948\u0902\ + \ \u0932\u0949 \u0938\u094D\u0915\u0942\u0932 \u0914\u0930 \u0905\u0926\u093E\ + \u0932\u0924\u094B\u0902 \u092E\u0947\u0902 \u092A\u094D\u0930\u0948\u0915\u094D\ + \u091F\u093F\u0938; \u0905\u0928\u094D\u092F \u092E\u0947\u0902 \u0935\u0947\ + \ \u0928\u093F\u0937\u093F\u0926\u094D\u0927 \u0939\u0948\u0902\u0964 \u0915\ + \u0941\u091B \u0935\u093F\u0936\u094D\u0935\u0935\u093F\u0926\u094D\u092F\u093E\ + \u0932\u092F\u094B\u0902 \u092E\u0947\u0902 \u0932\u0921\u093C\u0915\u093F\u092F\ + \u094B\u0902 \u0915\u094B \u0932\u0921\u093C\u0915\u094B\u0902 \u0915\u0947\ + \ \u0938\u092E\u093E\u0928 \u0936\u0948\u0915\u094D\u0937\u0923\u093F\u0915\ + \ \u0932\u093E\u092D \u092E\u093F\u0932\u0924\u093E \u0939\u0948, \u091C\u092C\ + \u0915\u093F \u0926\u0947\u0936 \u0915\u0947 \u0915\u0908 \u0917\u094C\u0930\ + \u0935\u0936\u093E\u0932\u0940 \u0938\u0902\u0938\u094D\u0925\u093E\u0928 \u0909\ + \u0928\u094D\u0939\u0947\u0902 \u092A\u094D\u0930\u0935\u0947\u0936 \u0926\u0947\ + \u0928\u0947 \u0938\u0947 \u0907\u0928\u0915\u093E\u0930 \u0915\u0930\u0924\u0947\ + \ \u0939\u0948\u0902, \u0939\u093E\u0932\u093E\u0902\u0915\u093F \u091A\u0940\ + \u0928, \u091C\u093E\u092A\u093E\u0928 \u0914\u0930 \u0905\u092B\u094D\u0930\ + \u0940\u0915\u093E \u0915\u0947 \u092C\u0947\u091F\u094B\u0902 \u0915\u093E\ + \ \u0935\u0939\u093E\u0902 \u0938\u094D\u0935\u093E\u0917\u0924 \u0915\u093F\ + \u092F\u093E \u091C\u093E\u0924\u093E \u0939\u0948\u0964 \u0932\u0947\u0915\u093F\ + \u0928 \u0915\u0908 \u0930\u093E\u091C\u094D\u092F\u094B\u0902 \u092E\u0947\u0902\ + \ \u092A\u0939\u0932\u0947 \u0938\u0947 \u0939\u0940 \u0926\u093F\u090F \u0917\ + \u090F \u0935\u093F\u0936\u0947\u0937\u093E\u0927\u093F\u0915\u093E\u0930 \u0915\ + \u093F\u0938\u0940 \u092D\u0940 \u0924\u0930\u0939 \u0938\u0947 \u0938\u0941\ + \u0930\u0915\u094D\u0937\u093F\u0924 \u0928\u0939\u0940\u0902 \u0939\u0948\u0902\ + \u0964" \u0938\u0941\u0938\u093E\u0928 \u092C\u0940. \u090F\u0902\u0925\ + \u094B\u0928\u0940, "\u092E\u0939\u093F\u0932\u093E\u0913\u0902 \u0915\u0947\ + \ \u0932\u093F\u090F \u0905\u0927\u093F\u0915\u093E\u0930\u094B\u0902 \u0915\ + \u0940 \u0918\u094B\u0937\u0923\u093E," 4 \u091C\u0941\u0932\u093E\u0908\ + , 1876 \u0938\u0941\u0938\u093E\u0928 \u092C\u0940. \u090F\u0902\u0925\u094B\ + \u0928\u0940 \u0926\u094D\u0935\u093E\u0930\u093E \u0926\u0942\u0938\u0930\u0947\ + \ \u0905\u0902\u0936 \u092E\u0947\u0902 \u0935\u094D\u092F\u0915\u094D\u0924\ + \ \u0915\u0940 \u0917\u0908 \u092D\u093E\u0935\u0928\u093E\u090F\u0902 \u0938\ + \u0902\u092D\u0935\u0924\u0903 \u0938\u092E\u0930\u094D\u0925\u0928 \u092E\u0947\ + \u0902 \u0939\u0948\u0902 \u0915\u093E" + - input_choice_list: + A: "\u0905\u092E\u0947\u0930\u093F\u0915\u093F\u092F\u094B\u0902 \u0915\u094B\ + \ \u0935\u093F\u092F\u0924\u0928\u093E\u092E \u092E\u0947\u0902 \u0905\u092A\ + \u0928\u0940 \u0924\u0915\u0928\u0940\u0915\u0940 \u092C\u0922\u093C\u0924\ + \ \u0915\u094B \u0905\u0927\u093F\u0915\u0924\u092E \u0915\u0930\u0928\u093E\ + \ \u0939\u094B\u0917\u093E\u0964" + B: "\u0935\u093F\u092F\u0924\u0928\u093E\u092E \u092E\u0947\u0902 \u0905\u092E\ + \u0947\u0930\u093F\u0915\u0940 \u092C\u092E\u092C\u093E\u0930\u0940 \u091A\ + \u0930\u0923 \u0926\u0930 \u091A\u0930\u0923 \u092F\u0941\u0926\u094D\u0927\ + \ \u092E\u0947\u0902 \u092A\u094D\u0930\u0917\u0924\u093F \u0915\u0940 \u0913\ + \u0930 \u0932\u0947 \u091C\u093E \u0930\u0939\u0940 \u0939\u0948\u0964" + C: "\u0935\u093F\u092F\u0924\u0928\u093E\u092E \u092E\u0947\u0902 \u0905\u092E\ + \u0947\u0930\u093F\u0915\u0940 \u092C\u092E\u092C\u093E\u0930\u0940 \u0935\ + \u093F\u092B\u0932\u0924\u093E \u0939\u0948." + D: "\u0935\u093F\u092F\u0924\u0928\u093E\u092E \u092E\u0947\u0902 \u092F\u0941\ + \u0926\u094D\u0927 \u0915\u094B \u0932\u0947\u0915\u0930 \u0905\u092E\u0947\ + \u0930\u093F\u0915\u093E \u0915\u094B \u092A\u0930\u093E\u091C\u092F \u0915\ + \u0947 \u0906\u0917\u0947 \u091D\u0941\u0915\u0928\u093E \u0928\u0939\u0940\ + \u0902 \u091A\u093E\u0939\u093F\u090F\u0964" + input_correct_responses: + - C + input_question: "\u092F\u0939 \u092A\u094D\u0930\u0936\u094D\u0928 \u0928\u093F\ + \u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u091C\u093E\u0928\u0915\u093E\ + \u0930\u0940 \u0915\u094B \u0938\u0902\u0926\u0930\u094D\u092D\u093F\u0924 \u0915\ + \u0930\u0924\u093E \u0939\u0948\u0964 \u0939\u092E\u093E\u0930\u0947 \u0928\u0947\ + \u0924\u093E \u0909\u0924\u094D\u0924\u0930 \u0938\u0947 \u0906\u0915\u094D\u0930\ + \u092E\u0923 \u0930\u094B\u0915\u0928\u0947 \u0915\u0940 \u092C\u093E\u0924\ + \ \u0915\u0930\u0924\u0947 \u0939\u0948\u0902, \u0932\u0947\u0915\u093F\u0928\ + \ \u0939\u092E\u093E\u0930\u0947 \u0939\u0938\u094D\u0924\u0915\u094D\u0937\u0947\ + \u092A \u0915\u0930\u0928\u0947 \u0924\u0915 \u092F\u0939 \u0935\u093F\u092F\ + \u0924\u0928\u093E\u092E\u0940 \u0938\u092E\u0942\u0939\u094B\u0902 \u0915\u0947\ + \ \u092C\u0940\u091A \u0938\u0902\u0918\u0930\u094D\u0937 \u0925\u093E\u0964\ + \ \u0910\u0938\u093E \u0932\u0917\u0924\u093E \u0939\u0948 \u0915\u093F \u0939\ + \u092E \u0935\u093F\u092F\u0924\u0928\u093E\u092E\u093F\u092F\u094B\u0902 \u0915\ + \u094B \u0939\u094B \u091A\u0940 \u092E\u093F\u0928\u094D\u0939 \u0938\u0947\ + \ \u092C\u091A\u093E\u0928\u0947 \u092A\u0930 \u0906\u092E\u093E\u0926\u093E\ + \ \u0939\u0948\u0902, \u092D\u0932\u0947 \u0939\u0940 \u0907\u0938\u0915\u0947\ + \ \u0932\u093F\u090F \u0939\u092E\u0947\u0902 \u0909\u0928\u094D\u0939\u0947\ + \u0902 \u092E\u093E\u0930\u0928\u093E \u092A\u0921\u093C\u0947 \u0914\u0930\ + \ \u0909\u0928\u0915\u0947 \u0926\u0947\u0936 \u0915\u094B \u0927\u094D\u0935\ + \u0938\u094D\u0924 \u0915\u0930\u0928\u093E \u092A\u0921\u093C\u0947\u0964 \u091C\ + \u0948\u0938\u093E \u0915\u093F \u092E\u0942\u0932 \u0932\u094B\u0917\u094B\u0902\ + \ \u0928\u0947 \u092C\u092E\u092C\u093E\u0930\u0940 \u0935\u093E\u0932\u0947\ + \ \u0917\u093E\u0902\u0935\u094B\u0902, \u0928\u0947\u092A\u0932\u092E \u0926\ + \u094D\u0935\u093E\u0930\u093E \u091C\u0932\u093E\u090F \u0917\u090F \u092E\u0939\ + \u093F\u0932\u093E\u0913\u0902 \u0914\u0930 \u092C\u091A\u094D\u091A\u094B\u0902\ + , \u091A\u093E\u0935\u0932 \u0915\u0940 \u092B\u0938\u0932\u094B\u0902 \u0915\ + \u094B \u0928\u0937\u094D\u091F \u0915\u0930 \u0926\u093F\u092F\u093E \u0914\ + \u0930 \u0939\u092E\u093E\u0930\u0947 \u0938\u0948\u0928\u094D\u092F \u0915\u0930\ + \u094D\u092E\u093F\u092F\u094B\u0902 \u0915\u0947 \u0938\u093E\u0925 \u0936\u0939\ + \u0930\u094B\u0902 \u092A\u0930 \u0915\u092C\u094D\u091C\u093E \u0915\u0930\ + \ \u0932\u093F\u092F\u093E, \u0915\u093E \u0938\u0930\u094D\u0935\u0947\u0915\ + \u094D\u0937\u0923 \u0915\u093F\u092F\u093E, \u0935\u0947 \u0928\u093F\u0938\ + \u094D\u0938\u0902\u0926\u0947\u0939 \u0935\u093F\u092F\u0924\u0915\u093E\u0902\ + \u0917 \u0917\u0941\u0930\u093F\u0932\u094D\u0932\u093E\u0913\u0902 \u0914\u0930\ + \ \u0905\u092E\u0947\u0930\u093F\u0915\u0940 \u0938\u0947\u0928\u093E\u0913\u0902\ + \ \u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902 \u0917\u0941\u092A\ + \u094D\u0924 \u0930\u0942\u092A \u0938\u0947 \u0915\u0939 \u0930\u0939\u0947\ + \ \u0939\u0948\u0902, "\u0906\u092A\u0915\u0947 \u0926\u094B\u0928\u094B\ + \u0902 \u0918\u0930\u094B\u0902 \u092A\u0930 \u090F\u0915 \u092A\u094D\u0932\ + \u0947\u0917 \u0939\u0948 \u0964" ...\u0909\u0924\u094D\u0924\u0930 \u0914\ + \u0930 \u0926\u0915\u094D\u0937\u093F\u0923 \u092E\u0947\u0902 \u092C\u092E\u092C\ + \u093E\u0930\u0940 \u092C\u0902\u0926 \u0915\u0930\u0947\u0902, \u0924\u0932\ + \u093E\u0936\u0940 \u092C\u0902\u0926 \u0915\u0930\u0947\u0902 \u0914\u0930\ + \ \u0906\u0915\u094D\u0930\u093E\u092E\u0915 \u0905\u092D\u093F\u092F\u093E\u0928\ + \u094B\u0902 \u0915\u094B \u0928\u0937\u094D\u091F \u0915\u0930\u0947\u0902\ + , \u0914\u0930 \u0939\u092E\u093E\u0930\u0940 \u0938\u0948\u0928\u094D\u092F\ + \ \u0915\u093E\u0930\u094D\u0930\u0935\u093E\u0908 \u0915\u094B \u091C\u092E\ + \u0940\u0928 \u092A\u0930 \u0915\u093E\u0930\u094D\u0930\u0935\u093E\u0908 \u0915\ + \u0930\u0928\u0947 \u0924\u0915 \u0938\u0940\u092E\u093F\u0924 \u0930\u0916\u0947\ + \u0902\u0964 \u0909\u0924\u094D\u0924\u0930 \u092E\u0947\u0902 \u092C\u092E\u092C\ + \u093E\u0930\u0940 \u0926\u0915\u094D\u0937\u093F\u0923 \u0915\u0940 \u0913\u0930\ + \ \u0938\u0948\u0928\u093F\u0915\u094B\u0902 \u0915\u0947 \u092A\u094D\u0930\ + \u0935\u093E\u0939 \u0915\u094B \u0930\u094B\u0915\u0928\u0947 \u092F\u093E\ + \ \u0917\u0902\u092D\u0940\u0930 \u0930\u0942\u092A \u0938\u0947 \u0930\u094B\ + \u0915\u0928\u0947 \u092E\u0947\u0902 \u0935\u093F\u092B\u0932 \u0930\u0939\u0940\ + \ \u0939\u0948 \u0914\u0930 \u0935\u093E\u0938\u094D\u0924\u0935 \u092E\u0947\ + \u0902, \u0939\u0928\u094B\u0908 \u0926\u094D\u0935\u093E\u0930\u093E \u092C\ + \u0939\u0941\u0924 \u092C\u0921\u093C\u0947 \u092F\u0941\u0926\u094D\u0927 \u092A\ + \u094D\u0930\u092F\u093E\u0938 \u0915\u094B \u092A\u094D\u0930\u0947\u0930\u093F\ + \u0924 \u0915\u093F\u092F\u093E \u091C\u093E \u0938\u0915\u0924\u093E \u0939\ + \u0948\u0964 \u2014\u0938\u0940\u0928\u0947\u091F\u0930 \u091C\u0949\u0930\u094D\ + \u091C \u092E\u0948\u0915\u0917\u0935\u0930\u094D\u0928, "\u0926 \u0932\ + \u0947\u0938\u0928\u094D\u0938 \u0911\u092B\u093C \u0935\u093F\u092F\u0924\u0928\ + \u093E\u092E," 25 \u0905\u092A\u094D\u0930\u0948\u0932, 1967 1960 \u0915\ + \u0947 \u0926\u0936\u0915 \u0915\u0940 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\ + \u0916\u093F\u0924 \u0930\u093E\u092F \u092E\u0947\u0902 \u0938\u0947 \u0915\ + \u094C\u0928 \u0938\u0940 \u0930\u093E\u092F \u0938\u092C\u0938\u0947 \u0938\ + \u0940\u0927\u0947 \u0924\u094C\u0930 \u092A\u0930 \u091C\u0949\u0930\u094D\u091C\ + \ \u092E\u0948\u0915\u0917\u0935\u0930\u094D\u0928 \u0915\u0947 \u092D\u093E\ + \u0937\u0923 \u0915\u0947 \u092A\u0930\u093F\u092A\u094D\u0930\u0947\u0915\u094D\ + \u0937\u094D\u092F \u0915\u094B \u0926\u0930\u094D\u0936\u093E\u0924\u0940 \u0939\ + \u0948?" + - input_choice_list: + A: "\u0905\u092C\u0940\u0917\u0948\u0932 \u090F\u0921\u092E\u094D\u0938" + B: "\u0915\u094D\u0932\u093E\u0930\u093E \u092C\u093E\u0930\u094D\u091F\u0928" + C: "\u0936\u0930\u094D\u0932\u0940 \u091F\u0947\u0902\u092A\u0932" + D: "\u0939\u093F\u0932\u0947\u0930\u0940 \u0915\u094D\u0932\u093F\u0902\u091F\ + \u0928" + input_correct_responses: + - B + input_question: "\u092F\u0939 \u092A\u094D\u0930\u0936\u094D\u0928 \u0928\u093F\ + \u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u091C\u093E\u0928\u0915\u093E\ + \u0930\u0940 \u0915\u094B \u0938\u0902\u0926\u0930\u094D\u092D\u093F\u0924 \u0915\ + \u0930\u0924\u093E \u0939\u0948\u0964 \u092E\u0948\u0902 \u0935\u094D\u092F\u0915\ + \u094D\u0924\u093F\u0917\u0924 \u0926\u093E\u0935\u0947 \u0915\u0930\u0928\u0947\ + \ \u092F\u093E \u0935\u094D\u092F\u0915\u094D\u0924\u093F\u0917\u0924 \u0932\ + \u093E\u092D \u0932\u0947\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0928\ + \u0939\u0940\u0902 \u0906\u092F\u093E \u0939\u0942\u0902; \u092E\u0948\u0902\ + \ \u0909\u0928 \u0932\u094B\u0917\u094B\u0902 \u0915\u0947 \u0935\u0915\u0940\ + \u0932 \u0915\u0947 \u0930\u0942\u092A \u092E\u0947\u0902 \u092A\u0947\u0936\ + \ \u0939\u094B\u0924\u093E \u0939\u0942\u0902 \u091C\u094B \u0905\u092A\u0928\ + \u0947 \u092E\u093E\u092E\u0932\u0947 \u0915\u0940 \u092A\u0948\u0930\u0935\u0940\ + \ \u0928\u0939\u0940\u0902 \u0915\u0930 \u0938\u0915\u0924\u0947; \u092E\u0948\ + \u0902 \u0909\u0928 \u0932\u094B\u0917\u094B\u0902 \u0915\u093E \u092E\u093F\ + \u0924\u094D\u0930 \u092C\u0928\u0915\u0930 \u0906\u0924\u093E \u0939\u0942\u0902\ + \ \u091C\u094B \u0935\u0940\u0930\u093E\u0928, \u0909\u0924\u094D\u092A\u0940\ + \u0921\u093C\u093F\u0924 \u0914\u0930 \u0909\u091C\u093E\u0921\u093C \u0939\u0948\ + \u0902\u0964 \u0908\u0936\u094D\u0935\u0930 \u0915\u0947 \u0935\u093F\u0927\u093E\ + \u0928 \u092E\u0947\u0902, \u092E\u0948\u0902 \u0909\u0938 \u092A\u093E\u0917\ + \u0932 \u0915\u0940 \u0906\u0935\u093E\u091C \u0939\u0942\u0902 \u091C\u093F\ + \u0938\u0915\u0940 \u0906\u092A\u0915\u0940 \u091C\u0947\u0932\u094B\u0902 \u0915\ + \u0940 \u0938\u0941\u0928\u0938\u093E\u0928 \u0915\u093E\u0932\u0915\u094B\u0920\ + \u0930\u093F\u092F\u094B\u0902 \u0938\u0947 \u0928\u093F\u0915\u0932\u0928\u0947\ + \ \u0935\u093E\u0932\u0940 \u092E\u0930\u094D\u092E\u0938\u094D\u092A\u0930\u094D\ + \u0936\u0940 \u091A\u0940\u0916\u0947\u0902 \u0906\u092A\u0915\u0947 \u0935\u093F\ + \u0927\u093E\u0928 \u092D\u0935\u0928 \u092E\u0947\u0902 \u092A\u094D\u0930\u0935\ + \u0947\u0936 \u0928\u0939\u0940\u0902 \u0915\u0930 \u092A\u093E\u0924\u0940\u0902\ + \u0964 \u092E\u0948\u0902 \u0909\u0928 \u0917\u0930\u0940\u092C \u092A\u093E\ + \u0917\u0932 \u092A\u094D\u0930\u093E\u0923\u093F\u092F\u094B\u0902 \u0915\u0940\ + \ \u0906\u0936\u093E \u0939\u0942\u0902 \u091C\u094B \u0906\u092A\u0915\u0947\ + \ \u0917\u0930\u0940\u092C \u0918\u0930\u094B\u0902 \u0915\u0940 \u0915\u094B\ + \u0920\u0930\u093F\u092F\u094B\u0902, \u0938\u094D\u091F\u093E\u0932\u094B\u0902\ + , \u092A\u093F\u0902\u091C\u0930\u094B\u0902 \u0914\u0930 \u092C\u0947\u0915\ + \u093E\u0930 \u0915\u092E\u0930\u094B\u0902 \u092E\u0947\u0902 \u0906\u0930\u093E\ + \u092E \u0915\u0930\u0924\u0947 \u0939\u0948\u0902\u0964 \u092E\u0948\u0902\ + \ \u0906\u092A\u0915\u0947 \u0928\u093F\u091C\u0940 \u0906\u0935\u093E\u0938\ + \u094B\u0902, \u0915\u0932\u092E\u0916\u093E\u0928\u094B\u0902 \u0914\u0930\ + \ \u0915\u0947\u092C\u093F\u0928\u094B\u0902 \u092E\u0947\u0902 \u091B\u093F\ + \u092A\u0947 \u0939\u0941\u090F \u0938\u0948\u0915\u0921\u093C\u094B\u0902 \u0935\ + \u093F\u0932\u093E\u092A \u0915\u0930\u0928\u0947 \u0935\u093E\u0932\u0947,\ + \ \u092A\u0940\u0921\u093C\u093F\u0924 \u092A\u094D\u0930\u093E\u0923\u093F\u092F\ + \u094B\u0902 \u0915\u093E \u0930\u0939\u0938\u094D\u092F\u094B\u0926\u094D\u0918\ + \u093E\u091F\u0928 \u0939\u0942\u0902 - \u0938\u092D\u0940 \u0909\u092A\u091A\ + \u093E\u0930 \u092A\u094D\u0930\u092D\u093E\u0935\u094B\u0902 \u0938\u0947,\ + \ \u0938\u092D\u0940 \u092E\u0928-\u092A\u0941\u0928\u0930\u094D\u092A\u094D\ + \u0930\u093E\u092A\u094D\u0924\u093F \u0938\u0902\u092C\u0902\u0927\u0940 \u091A\ + \u093F\u0902\u0924\u093E\u0913\u0902 \u0938\u0947 \u0926\u0942\u0930\u0964 ...\ + \ \u0915\u094D\u092F\u093E \u0909\u0928\u0915\u0940 \u0909\u0926\u093E\u0938\ + \u0940 \u0915\u093E \u0907\u0924\u093F\u0939\u093E\u0938 \u0906\u092A\u0915\u0947\ + \ \u0938\u093E\u092E\u0928\u0947 \u092B\u0948\u0932 \u0938\u0915\u0924\u093E\ + \ \u0939\u0948 \u091C\u0948\u0938\u093E \u0915\u093F \u092A\u093F\u091B\u0932\ + \u0947 \u0924\u0940\u0928 \u092E\u0939\u0940\u0928\u094B\u0902 \u0915\u0947\ + \ \u0926\u094C\u0930\u093E\u0928 \u092E\u0947\u0930\u0940 \u0926\u0941\u0916\ + \u0940 \u0906\u0924\u094D\u092E\u093E \u0915\u094B \u092A\u0924\u093E \u091A\ + \u0932\u093E, \u0906\u092A \u0915\u093F\u0924\u0928\u0940 \u0924\u0924\u094D\ + \u092A\u0930\u0924\u093E \u0938\u0947, \u0915\u093F\u0924\u0928\u0940 \u0908\ + \u092E\u093E\u0928\u0926\u093E\u0930\u0940 \u0938\u0947 \u0930\u093E\u0939\u0924\ + \ \u0915\u0947 \u0938\u092C\u0938\u0947 \u0938\u094D\u0935\u0940\u0915\u0943\ + \u0924 \u0938\u093E\u0927\u0928\u094B\u0902 \u0915\u0940 \u0916\u094B\u091C\ + \ \u0915\u0930\u0947\u0902\u0917\u0947; \u0924\u0941\u0932\u0928\u093E\u0924\ + \u094D\u092E\u0915 \u0930\u0942\u092A \u0938\u0947, \u0906\u092A\u0938\u0947\ + \ \u091C\u094B \u0924\u094D\u092F\u093E\u0917 \u0915\u0930\u0928\u0947 \u0915\ + \u0947 \u0932\u093F\u090F \u0915\u0939\u093E \u0917\u092F\u093E \u0939\u0948\ + , \u0935\u0939 \u0915\u093F\u0924\u0928\u093E \u0924\u0941\u091A\u094D\u091B\ + , \u0915\u093F\u0924\u0928\u093E \u092E\u0939\u0924\u094D\u0935\u0939\u0940\u0928\ + \ \u092A\u094D\u0930\u0924\u0940\u0924 \u0939\u094B\u0917\u093E; \u092A\u094D\ + \u0930\u0924\u094D\u092F\u0947\u0915 \u0928\u093E\u0917\u0930\u093F\u0915 \u0938\ + \u0947 \u090F\u0915\u0924\u094D\u0930 \u0915\u093F\u090F \u0917\u090F \u0915\ + \u0941\u091B \u092A\u0948\u0938\u0947 \u0914\u0930 \u0921\u0949\u0932\u0930\ + , \u092A\u0940\u0921\u093C\u093F\u0924 \u092A\u093E\u0917\u0932\u094B\u0902\ + \ \u0915\u0947 \u0932\u093F\u090F \u0938\u0941\u0930\u0915\u094D\u0937\u093F\ + \u0924 \u0915\u093F\u090F \u091C\u093E\u0928\u0947 \u0935\u093E\u0932\u0947\ + \ \u0915\u0941\u091B \u0928\u093F\u0936\u094D\u091A\u093F\u0924 \u0932\u093E\ + \u092D\u094B\u0902 \u0914\u0930 \u0935\u093F\u0936\u093E\u0932 \u092D\u0932\u093E\ + \u0908 \u0915\u0940 \u0924\u0941\u0932\u0928\u093E \u092E\u0947\u0902 \u090F\ + \u0915 \u0938\u0902\u092A\u0924\u094D\u0924\u093F \u0915\u0947 \u0930\u0942\u092A\ + \ \u092E\u0947\u0902 \u092E\u0942\u0932\u094D\u092F \u092E\u0947\u0902 \u0915\ + \u0948\u0938\u0947 \u0915\u092E \u0939\u094B \u091C\u093E\u090F\u0902\u0917\u0947\ + ... \u0928\u093F\u0930\u094D\u092E\u093E\u0923 \u0915\u0947 \u0932\u093F\u090F\ + \ \u092A\u0930\u094D\u092F\u093E\u092A\u094D\u0924 \u0928\u093F\u0927\u093F\ + \ \u0915\u0947 \u0938\u092E\u0930\u094D\u092A\u0923 \u0914\u0930 \u0906\u0935\ + \u0947\u0926\u0928 \u0938\u0947 \u090F\u0915 \u0909\u092A\u092F\u0941\u0915\u094D\ + \u0924 \u0905\u0938\u094D\u092A\u0924\u093E\u0932 \u0915\u093E... -\u0921\u094B\ + \u0930\u094B\u0925\u093F\u092F\u093E \u0921\u093F\u0915\u094D\u0938, \u092E\u0947\ + \u092E\u094B\u0930\u093F\u092F\u0932 \u0938\u0949\u0932\u093F\u0938\u093F\u091F\ + \u093F\u0902\u0917 \u090F \u0938\u094D\u091F\u0947\u091F \u0939\u0949\u0938\u094D\ + \u092A\u093F\u091F\u0932 \u092B\u0949\u0930 \u0926 \u092A\u094D\u0930\u094B\u091F\ + \u0947\u0915\u094D\u0936\u0928 \u090F\u0902\u0921 \u0915\u094D\u092F\u094B\u0930\ + \ \u0911\u092B \u0926 \u0907\u0928\u0938\u0947\u0928, \u0938\u092C\u092E\u093F\ + \u091F\u0947\u0921 \u091F\u0942 \u0926 \u091C\u0928\u0930\u0932 \u0905\u0938\ + \u0947\u0902\u092C\u0932\u0940 \u0911\u092B \u0928\u0949\u0930\u094D\u0925 \u0915\ + \u0948\u0930\u094B\u0932\u093F\u0928\u093E, \u0928\u0935\u0902\u092C\u0930 1848\ + \ \u0921\u094B\u0930\u094B\u0925\u093F\u092F\u093E \u0921\u093F\u0915\u094D\u0938\ + \ \u0915\u0940 \u0924\u0941\u0932\u0928\u093E \u0915\u093F\u0938\u0938\u0947\ + \ \u0915\u0940 \u091C\u093E \u0938\u0915\u0924\u0940 \u0939\u0948?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_us_history +tag: mmlu_hi_llama_humanities_tasks +task: mmlu_hi_llama_high_school_us_history +task_alias: high_school_us_history diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_world_history.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_world_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4623ab2d264fa3eec3fe103b2e1bd2f06f2cac4a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_high_school_world_history.yaml @@ -0,0 +1,318 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0939\u093F\u0928\u094D\u0926\u0942 \u0927\u0930\u094D\u092E" + B: "\u092C\u0941\u0926\u094D\u0927 \u0927\u0930\u094D\u092E" + C: "\u0936\u093F\u0902\u0924\u094B \u0927\u0930\u094D\u092E" + D: "\u092A\u093E\u0930\u0938\u0940 \u0927\u0930\u094D\u092E" + input_correct_responses: + - A + input_question: "\u092F\u0939 \u092A\u094D\u0930\u0936\u094D\u0928 \u0928\u093F\ + \u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u091C\u093E\u0928\u0915\u093E\ + \u0930\u0940 \u0915\u094B \u0938\u0902\u0926\u0930\u094D\u092D\u093F\u0924 \u0915\ + \u0930\u0924\u093E \u0939\u0948\u0964 \u0909\u0938\u092E\u0947\u0902 \u0938\u092D\ + \u0940 \u0915\u093E\u0930\u094D\u092F, \u0907\u091A\u094D\u091B\u093E\u090F\u0902\ + , \u0938\u092D\u0940 \u0938\u0941\u0917\u0902\u0927 \u0914\u0930 \u0938\u092D\ + \u0940 \u0938\u094D\u0935\u093E\u0926 \u0936\u093E\u092E\u093F\u0932 \u0939\u0948\ + \u0902\u0964 \u0935\u0939 \u0938\u0902\u092A\u0942\u0930\u094D\u0923 \u092C\u094D\ + \u0930\u0939\u094D\u092E\u093E\u0902\u0921 \u0915\u094B \u0905\u092A\u0928\u0947\ + \ \u092E\u0947\u0902 \u0938\u092E\u0947\u091F\u0947 \u0939\u0941\u090F \u0939\ + \u0948 \u0914\u0930 \u092E\u094C\u0928 \u0930\u0939\u0915\u0930 \u0938\u092D\ + \u0940 \u0938\u0947 \u092A\u094D\u0930\u0947\u092E \u0915\u0930\u0924\u093E\ + \ \u0939\u0948\u0964 \u092F\u0939\u0940 \u0906\u0924\u094D\u092E\u093E \u0939\ + \u0948 \u091C\u094B \u092E\u0947\u0930\u0947 \u0939\u0943\u0926\u092F \u092E\ + \u0947\u0902 \u0939\u0948, \u092F\u0939\u0940 \u092C\u094D\u0930\u0939\u094D\ + \u092E \u0939\u0948\u0964 \u092E\u0948\u0902 \u0909\u0938\u0915\u0947 \u092A\ + \u093E\u0938 \u0924\u092C \u0906\u090A\u0902\u0917\u093E \u091C\u092C \u092E\ + \u0948\u0902 \u0907\u0938 \u091C\u0940\u0935\u0928 \u0938\u0947 \u0906\u0917\ + \u0947 \u0928\u093F\u0915\u0932 \u091C\u093E\u090A\u0902\u0917\u093E, \u0914\ + \u0930 \u0909\u0938\u0915\u0947 \u092A\u093E\u0938 \u0935\u0939 \u0906\u090F\ + \u0917\u093E \u091C\u093F\u0938\u0915\u0947 \u092A\u093E\u0938 \u0935\u093F\u0936\ + \u094D\u0935\u093E\u0938 \u0939\u0948 \u0914\u0930 \u0938\u0902\u0926\u0947\u0939\ + \ \u0928\u0939\u0940\u0902 \u0939\u0948\u0964 -\u0909\u092A\u0928\u093F\u0937\ + \u0926, \u092D\u093E\u0930\u0924, \u0938\u0940. 1000 \u0908\u0938\u093E \u092A\ + \u0942\u0930\u094D\u0935 \u0935\u0915\u094D\u0924\u093E \u0938\u0902\u092D\u0935\ + \u0924\u0903 \u0915\u093F\u0938 \u0927\u0930\u094D\u092E \u0938\u0947 \u0938\ + \u0902\u092C\u0902\u0927\u093F\u0924 \u0925\u093E?" + - input_choice_list: + A: "\u0914\u0926\u094D\u092F\u094B\u0917\u093F\u0915 \u0915\u094D\u0930\u093E\ + \u0902\u0924\u093F" + B: "\u0909\u092A\u0928\u093F\u0935\u0947\u0936\u0935\u093E\u0926" + C: "\u0915\u094D\u0937\u0947\u0924\u094D\u0930\u0940\u092F \u092E\u0941\u0915\ + \u094D\u0924 \u0935\u094D\u092F\u093E\u092A\u093E\u0930 \u0938\u0902\u0918" + D: "\u0928\u093F\u0930\u0902\u0915\u0941\u0936" + input_correct_responses: + - B + input_question: "\u092F\u0939 \u092A\u094D\u0930\u0936\u094D\u0928 \u0928\u093F\ + \u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u091C\u093E\u0928\u0915\u093E\ + \u0930\u0940 \u0915\u094B \u0938\u0902\u0926\u0930\u094D\u092D\u093F\u0924 \u0915\ + \u0930\u0924\u093E \u0939\u0948\u0964 "\u0928\u0935-\u0909\u092A\u0928\u093F\ + \u0935\u0947\u0936\u0935\u093E\u0926 \u0915\u0947 \u0916\u093F\u0932\u093E\u092B\ + \ \u0938\u0902\u0918\u0930\u094D\u0937 \u0915\u093E \u0909\u0926\u094D\u0926\ + \u0947\u0936\u094D\u092F \u0935\u093F\u0915\u0938\u093F\u0924 \u0926\u0941\u0928\ + \u093F\u092F\u093E \u0915\u0940 \u092A\u0942\u0902\u091C\u0940 \u0915\u094B\ + \ \u0915\u092E \u0935\u093F\u0915\u0938\u093F\u0924 \u0926\u0947\u0936\u094B\ + \u0902 \u092E\u0947\u0902 \u0915\u093E\u092E \u0915\u0930\u0928\u0947 \u0938\ + \u0947 \u0930\u094B\u0915\u0928\u093E \u0928\u0939\u0940\u0902 \u0939\u0948\u0964\ + \ \u0907\u0938\u0915\u093E \u0909\u0926\u094D\u0926\u0947\u0936\u094D\u092F\ + \ \u0935\u093F\u0915\u0938\u093F\u0924 \u0926\u0947\u0936\u094B\u0902 \u0915\ + \u0940 \u0935\u093F\u0924\u094D\u0924\u0940\u092F \u0936\u0915\u094D\u0924\u093F\ + \ \u0915\u094B \u0907\u0938 \u0924\u0930\u0939 \u0938\u0947 \u0907\u0938\u094D\ + \u0924\u0947\u092E\u093E\u0932 \u0939\u094B\u0928\u0947 \u0938\u0947 \u0930\u094B\ + \u0915\u0928\u093E \u0939\u0948 \u0915\u093F \u0915\u092E \u0935\u093F\u0915\ + \u0938\u093F\u0924 \u0926\u0947\u0936\u094B\u0902 \u0915\u094B \u0917\u0930\u0940\ + \u092C \u092C\u0928\u093E\u092F\u093E \u091C\u093E \u0938\u0915\u0947\u0964\ + " \u0917\u0941\u091F\u0928\u093F\u0930\u092A\u0947\u0915\u094D\u0937\u0924\ + \u093E, \u091C\u0948\u0938\u093E \u0915\u093F \u0918\u093E\u0928\u093E \u0914\ + \u0930 \u0915\u0908 \u0905\u0928\u094D\u092F \u0926\u0947\u0936\u094B\u0902\ + \ \u0926\u094D\u0935\u093E\u0930\u093E \u0905\u092A\u0928\u093E\u092F\u093E\ + \ \u091C\u093E\u0924\u093E \u0939\u0948, \u0938\u092D\u0940 \u0930\u093E\u091C\ + \u094D\u092F\u094B\u0902 \u0915\u0947 \u0938\u093E\u0925 \u0938\u0939\u092F\u094B\ + \u0917 \u092A\u0930 \u0906\u0927\u093E\u0930\u093F\u0924 \u0939\u0948, \u091A\ + \u093E\u0939\u0947 \u0935\u0947 \u092A\u0942\u0902\u091C\u0940\u0935\u093E\u0926\ + \u0940 \u0939\u094B\u0902, \u0938\u092E\u093E\u091C\u0935\u093E\u0926\u0940\ + \ \u0939\u094B\u0902 \u092F\u093E \u092E\u093F\u0936\u094D\u0930\u093F\u0924\ + \ \u0905\u0930\u094D\u0925\u0935\u094D\u092F\u0935\u0938\u094D\u0925\u093E \u0935\ + \u093E\u0932\u0947 \u0939\u094B\u0902\u0964 \u0907\u0938\u0932\u093F\u090F,\ + \ \u0910\u0938\u0940 \u0928\u0940\u0924\u093F \u092E\u0947\u0902 \u092A\u0942\ + \u0902\u091C\u0940\u0935\u093E\u0926\u0940 \u0926\u0947\u0936\u094B\u0902 \u0938\ + \u0947 \u0935\u093F\u0926\u0947\u0936\u0940 \u0928\u093F\u0935\u0947\u0936 \u0936\ + \u093E\u092E\u093F\u0932 \u0939\u094B\u0924\u093E \u0939\u0948, \u0932\u0947\ + \u0915\u093F\u0928 \u092F\u0939 \u0905\u0935\u0936\u094D\u092F \u0939\u094B\u0928\ + \u093E \u091A\u093E\u0939\u093F\u090F \u0917\u0941\u091F\u0928\u093F\u0930\u092A\ + \u0947\u0915\u094D\u0937 \u0930\u093E\u091C\u094D\u092F \u0915\u0940 \u0938\u0930\ + \u0915\u093E\u0930 \u0926\u094D\u0935\u093E\u0930\u093E \u0905\u092A\u0928\u0947\ + \ \u0939\u093F\u0924\u094B\u0902 \u0915\u094B \u0927\u094D\u092F\u093E\u0928\ + \ \u092E\u0947\u0902 \u0930\u0916\u0924\u0947 \u0939\u0941\u090F \u0924\u0948\ + \u092F\u093E\u0930 \u0915\u0940 \u0917\u0908 \u0930\u093E\u0937\u094D\u091F\u094D\ + \u0930\u0940\u092F \u092F\u094B\u091C\u0928\u093E \u0915\u0947 \u0905\u0928\u0941\ + \u0938\u093E\u0930 \u0928\u093F\u0935\u0947\u0936 \u0915\u093F\u092F\u093E \u091C\ + \u093E\u0928\u093E \u091A\u093E\u0939\u093F\u090F\u0964 \u092E\u0941\u0926\u094D\ + \u0926\u093E \u092F\u0939 \u0928\u0939\u0940\u0902 \u0939\u0948 \u0915\u093F\ + \ \u0935\u093F\u0926\u0947\u0936\u0940 \u0928\u093F\u0935\u0947\u0936\u0915\ + \ \u0915\u094B \u0905\u092A\u0928\u0947 \u0928\u093F\u0935\u0947\u0936 \u092A\ + \u0930 \u0915\u094D\u092F\u093E \u0930\u093F\u091F\u0930\u094D\u0928 \u092E\u093F\ + \u0932\u0924\u093E \u0939\u0948...\u0938\u0935\u093E\u0932 \u0938\u0924\u094D\ + \u0924\u093E \u0915\u093E \u0939\u0948\u0964 \u090F\u0915 \u0930\u093E\u091C\ + \u094D\u092F \u092E\u0947\u0902 \u0928\u0935-\u0909\u092A\u0928\u093F\u0935\u0947\ + \u0936\u0935\u093E\u0926 \u0915\u0940 \u092A\u0915\u0921\u093C \u0905\u092A\u0928\ + \u0947 \u092D\u093E\u0917\u094D\u092F \u0915\u0940 \u0938\u094D\u0935\u093E\u092E\ + \u0940 \u0928\u0939\u0940\u0902 \u0939\u0948\u0964" \u0915\u094D\u0935\u093E\ + \u092E\u0947 \u0928\u0915\u094D\u0930\u0942\u092E\u093E, \u0928\u0935-\u0909\ + \u092A\u0928\u093F\u0935\u0947\u0936\u0935\u093E\u0926, 1965 \u0928\u093F\u092E\ + \u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\ + \u094C\u0928 \u0928\u0915\u094D\u0930\u0942\u092E\u093E \u0915\u0947 \u0932\u0947\ + \u0916\u0928 \u0915\u0947 \u0932\u093F\u090F \u0938\u092C\u0938\u0947 \u0905\ + \u091A\u094D\u091B\u093E \u0938\u0902\u0926\u0930\u094D\u092D \u092A\u094D\u0930\ + \u0926\u093E\u0928 \u0915\u0930\u0924\u093E \u0939\u0948?" + - input_choice_list: + A: "\u092C\u093E\u0932 \u0936\u094D\u0930\u092E \u0915\u0940 \u0938\u093E\u092E\ + \u093E\u091C\u093F\u0915 \u0938\u094D\u0935\u0940\u0915\u0943\u0924\u093F" + B: "\u091C\u0930\u094D\u092E\u0928\u0940 \u092E\u0947\u0902 \u0918\u091F\u0924\ + \u0940 \u091C\u0940\u0935\u0928 \u092A\u094D\u0930\u0924\u094D\u092F\u093E\ + \u0936\u093E" + C: "\u091C\u0930\u094D\u092E\u0928 \u0935\u094D\u092F\u093E\u092A\u093E\u0930\ + \ \u0936\u0941\u0932\u094D\u0915\u094B\u0902 \u0915\u0940 \u0906\u0932\u094B\ + \u091A\u0928\u093E" + D: "\u0914\u0926\u094D\u092F\u094B\u0917\u093F\u0915 \u092A\u0942\u0902\u091C\ + \u0940\u0935\u093E\u0926 \u0915\u0947 \u0932\u093F\u090F \u091C\u093F\u092E\ + \u094D\u092E\u0947\u0926\u093E\u0930 \u0928\u0915\u093E\u0930\u093E\u0924\u094D\ + \u092E\u0915 \u092A\u094D\u0930\u092D\u093E\u0935" + input_correct_responses: + - D + input_question: "\u092F\u0939 \u092A\u094D\u0930\u0936\u094D\u0928 \u0928\u093F\ + \u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u091C\u093E\u0928\u0915\u093E\ + \u0930\u0940 \u0915\u094B \u0938\u0902\u0926\u0930\u094D\u092D\u093F\u0924 \u0915\ + \u0930\u0924\u093E \u0939\u0948\u0964 "\u0915\u0930\u094D\u092E\u091A\u093E\ + \u0930\u0940 \u0915\u0940 \u0905\u0938\u0932\u0940 \u0936\u093F\u0915\u093E\u092F\ + \u0924 \u0909\u0938\u0915\u0947 \u0905\u0938\u094D\u0924\u093F\u0924\u094D\u0935\ + \ \u0915\u0940 \u0905\u0938\u0941\u0930\u0915\u094D\u0937\u093E \u0939\u0948\ + ; \u0909\u0938\u0947 \u092F\u0915\u0940\u0928 \u0928\u0939\u0940\u0902 \u0939\ + \u0948 \u0915\u093F \u0909\u0938\u0915\u0947 \u092A\u093E\u0938 \u0939\u092E\ + \u0947\u0936\u093E \u0915\u093E\u092E \u0930\u0939\u0947\u0917\u093E, \u0909\ + \u0938\u0947 \u092F\u0915\u0940\u0928 \u0928\u0939\u0940\u0902 \u0939\u0948\ + \ \u0915\u093F \u0935\u0939 \u0939\u092E\u0947\u0936\u093E \u0938\u094D\u0935\ + \u0938\u094D\u0925 \u0930\u0939\u0947\u0917\u093E, \u0914\u0930 \u0909\u0938\ + \u0947 \u0932\u0917\u0924\u093E \u0939\u0948 \u0915\u093F \u090F\u0915 \u0926\ + \u093F\u0928 \u0935\u0939 \u092C\u0942\u0922\u093C\u093E \u0939\u094B \u091C\ + \u093E\u090F\u0917\u093E \u0914\u0930 \u0915\u093E\u092E \u0915\u0930\u0928\u0947\ + \ \u0915\u0947 \u0932\u093F\u090F \u0905\u092F\u094B\u0917\u094D\u092F \u0939\ + \u094B \u091C\u093E\u090F\u0917\u093E \u092F\u0926\u093F \u0935\u0939 \u0917\ + \u0930\u0940\u092C\u0940 \u092E\u0947\u0902 \u0917\u093F\u0930 \u091C\u093E\u0924\ + \u093E \u0939\u0948, \u092D\u0932\u0947 \u0939\u0940 \u0915\u0947\u0935\u0932\ + \ \u0932\u0902\u092C\u0940 \u092C\u0940\u092E\u093E\u0930\u0940 \u0915\u0947\ + \ \u0915\u093E\u0930\u0923, \u0924\u092C \u0935\u0939 \u092A\u0942\u0930\u0940\ + \ \u0924\u0930\u0939 \u0938\u0947 \u0905\u0938\u0939\u093E\u092F \u0939\u094B\ + \ \u091C\u093E\u0924\u093E \u0939\u0948, \u0905\u092A\u0928\u0947 \u0909\u092A\ + \u0915\u0930\u0923\u094B\u0902 \u092A\u0930 \u091C\u093E\u0902\u091A \u0915\u0930\ + \u0924\u093E \u0939\u0948, \u0914\u0930 \u0938\u092E\u093E\u091C \u0935\u0930\ + \u094D\u0924\u092E\u093E\u0928 \u092E\u0947\u0902 \u0917\u0930\u0940\u092C\u094B\ + \u0902 \u0915\u0947 \u0932\u093F\u090F \u0938\u093E\u092E\u093E\u0928\u094D\u092F\ + \ \u092E\u0926\u0926 \u0938\u0947 \u092A\u0930\u0947 \u0909\u0938\u0915\u0947\ + \ \u092A\u094D\u0930\u0924\u093F \u0915\u093F\u0938\u0940 \u092D\u0940 \u0935\ + \u093E\u0938\u094D\u0924\u0935\u093F\u0915 \u0926\u093E\u092F\u093F\u0924\u094D\ + \u0935 \u0915\u094B \u0928\u0939\u0940\u0902 \u092A\u0939\u091A\u093E\u0928\u0924\ + \u093E \u0939\u0948, \u092D\u0932\u0947 \u0939\u0940 \u0909\u0938\u0928\u0947\ + \ \u0910\u0938\u093E \u0915\u093F\u092F\u093E \u0939\u094B \u0939\u0930 \u0938\ + \u092E\u092F \u0907\u0924\u0928\u0940 \u0908\u092E\u093E\u0928\u0926\u093E\u0930\ + \u0940 \u0914\u0930 \u0932\u0917\u0928 \u0938\u0947 \u0915\u093E\u092E \u0915\ + \u0930 \u0930\u0939\u093E \u0939\u0942\u0902\u0964 \u0917\u0930\u0940\u092C\u094B\ + \u0902 \u0915\u0947 \u0932\u093F\u090F \u0938\u093E\u092E\u093E\u0928\u094D\u092F\ + \ \u092E\u0926\u0926, \u0939\u093E\u0932\u093E\u0902\u0915\u093F, \u0935\u093E\ + \u0902\u091B\u093F\u0924 \u0928\u0939\u0940\u0902 \u0939\u0948, \u0916\u093E\ + \u0938\u0915\u0930 \u092C\u0921\u093C\u0947 \u0936\u0939\u0930\u094B\u0902 \u092E\ + \u0947\u0902, \u091C\u0939\u093E\u0902 \u092F\u0939 \u0926\u0947\u0936 \u0915\ + \u0940 \u0924\u0941\u0932\u0928\u093E \u092E\u0947\u0902 \u092C\u0939\u0941\u0924\ + \ \u0916\u0930\u093E\u092C \u0939\u0948\u0964'' \u0913\u091F\u094D\u091F\ + \u094B \u0935\u0949\u0928 \u092C\u093F\u0938\u094D\u092E\u093E\u0930\u094D\u0915\ + , 1884 \u0913\u091F\u094D\u091F\u094B \u0935\u0949\u0928 \u092C\u093F\u0938\u094D\ + \u092E\u093E\u0930\u094D\u0915 \u0928\u0947 \u0938\u0902\u092D\u0935\u0924\u0903\ + \ \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u092E\u0947\u0902\ + \ \u0938\u0947 \u0915\u093F\u0938 \u092E\u0941\u0926\u094D\u0926\u0947 \u0915\ + \u0940 \u092A\u094D\u0930\u0924\u093F\u0915\u094D\u0930\u093F\u092F\u093E \u092E\ + \u0947\u0902 \u092F\u0939 \u092D\u093E\u0937\u0923 \u0926\u093F\u092F\u093E\ + \ \u0925\u093E?" + - input_choice_list: + A: "\u0939\u0930 \u0915\u0940\u092E\u0924 \u092A\u0930 \u0938\u0948\u0928\u094D\ + \u092F \u0935\u0930\u094D\u091A\u0938\u094D\u0935 \u0915\u093E\u092F\u092E\ + \ \u0930\u0916\u0928\u093E" + B: "\u0927\u093E\u0930\u094D\u092E\u093F\u0915 \u0938\u0902\u092A\u094D\u0930\ + \u0926\u093E\u092F\u094B\u0902 \u0915\u0947 \u092C\u0940\u091A \u092C\u0922\ + \u093C\u0924\u093E \u0924\u0928\u093E\u0935" + C: "\u0911\u091F\u094B\u092E\u0928 \u0938\u093E\u092E\u094D\u0930\u093E\u091C\ + \u094D\u092F \u0915\u0947 \u092A\u0924\u0928 \u0915\u093E \u0915\u093E\u0930\ + \u0923 \u092C\u0928\u0928\u0947 \u0935\u093E\u0932\u0947 \u0915\u093E\u0930\ + \u0915" + D: "\u0907\u0938\u094D\u0932\u093E\u092E\u0940 \u0938\u093E\u092E\u094D\u0930\ + \u093E\u091C\u094D\u092F\u094B\u0902 \u0915\u0947 \u092C\u0940\u091A \u0936\ + \u093E\u0902\u0924\u093F \u0938\u094D\u0925\u093E\u092A\u0928\u093E \u0915\ + \u0947 \u092A\u094D\u0930\u092F\u093E\u0938" + input_correct_responses: + - B + input_question: "\u092F\u0939 \u092A\u094D\u0930\u0936\u094D\u0928 \u0928\u093F\ + \u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u091C\u093E\u0928\u0915\u093E\ + \u0930\u0940 \u0915\u094B \u0938\u0902\u0926\u0930\u094D\u092D\u093F\u0924 \u0915\ + \u0930\u0924\u093E \u0939\u0948\u0964 "\u0935\u093E\u0938\u094D\u0924\u0935\ + \ \u092E\u0947\u0902, \u0926\u094B\u0928\u094B\u0902 \u092A\u094D\u0930\u0924\ + \u093F\u0937\u094D\u0920\u093F\u0924 [\u0935\u093F\u0926\u094D\u0935\u093E\u0928\ + \u094B\u0902] \u0915\u0947 \u092B\u0924\u0935\u0947 \u091C\u094B \u0924\u0930\ + \u094D\u0915 \u0914\u0930 \u092A\u0930\u0902\u092A\u0930\u093E \u092A\u0930\ + \ \u0938\u092E\u093E\u0928 \u0930\u0942\u092A \u0938\u0947 \u0905\u092A\u0928\ + \u0940 \u0930\u093E\u092F \u0906\u0927\u093E\u0930\u093F\u0924 \u0915\u0930\u0924\ + \u0947 \u0939\u0948\u0902 \u0914\u0930 \u0938\u0941\u0928\u094D\u0928\u0940\ + \ \u0938\u092E\u0941\u0926\u093E\u092F \u0915\u0940 \u0938\u0930\u094D\u0935\ + \u0938\u092E\u094D\u092E\u0924\u093F \u0907\u0938 \u092C\u093E\u0924 \u092A\u0930\ + \ \u0938\u0939\u092E\u0924 \u0939\u0948 \u0915\u093F \u0926\u0941\u0937\u094D\ + \u091F \u0928\u0935\u093E\u091A\u093E\u0930 \u0915\u0947 \u0935\u093F\u0928\u093E\ + \u0936, \u0935\u093F\u0928\u093E\u0936 \u0914\u0930 \u0928\u093F\u0937\u094D\ + \u0915\u093E\u0938\u0928 \u0915\u093E \u092A\u094D\u0930\u093E\u091A\u0940\u0928\ + \ \u0926\u093E\u092F\u093F\u0924\u094D\u0935 \u0939\u092E\u093E\u0930\u0947\ + \ \u092E\u0939\u093E\u0928 \u0915\u093E \u0909\u0926\u094D\u0926\u0947\u0936\ + \u094D\u092F \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F \u0906\u0915\ + \u093E\u0902\u0915\u094D\u0937\u093E, "\u0927\u093E\u0930\u094D\u092E\u093F\ + \u0915 \u0909\u0924\u094D\u0938\u093E\u0939 \u0932\u093E\u092D\u0915\u093E\u0930\ + \u0940 \u0908\u0936\u094D\u0935\u0930 \u0915\u0947 \u0935\u093F\u0936\u094D\u0935\ + \u093E\u0938 \u0915\u0940 \u091C\u0940\u0924 \u0939\u0948"; \u092B\u093F\ + \u0930, \u092A\u0948\u0917\u0902\u092C\u0930 \u0915\u0947 \u0936\u092C\u094D\ + \u0926\u094B\u0902 \u0915\u0947 \u0905\u0928\u0941\u0938\u093E\u0930 (\u0909\ + \u0938 \u092A\u0930 \u0936\u093E\u0902\u0924\u093F \u0939\u094B!) "\u091C\ + \u094B \u0915\u094B\u0908 \u092D\u0940 \u0939\u092E\u093E\u0930\u0947 \u0906\ + \u0926\u0947\u0936 \u092E\u0947\u0902 \u092C\u0941\u0930\u0947 \u0928\u0935\u093E\ + \u091A\u093E\u0930 \u0915\u093E \u092A\u0930\u093F\u091A\u092F \u0926\u0947\u0924\ + \u093E \u0939\u0948 \u0909\u0938\u0947 \u0928\u093F\u0937\u094D\u0915\u093E\u0938\ + \u093F\u0924 \u0915\u0930 \u0926\u093F\u092F\u093E \u091C\u093E\u0928\u093E\ + \ \u091A\u093E\u0939\u093F\u090F" \u0914\u0930 "\u091C\u094B \u0915\ + \u094B\u0908 \u092D\u0940 \u0910\u0938\u093E \u0915\u0930\u0924\u093E \u0939\ + \u0948" \u0939\u092E\u093E\u0930\u0947 \u0906\u0926\u0947\u0936 \u0915\u0947\ + \ \u0916\u093F\u0932\u093E\u092B \u0915\u0941\u091B \u092D\u0940 \u0928\u093F\ + \u0937\u094D\u0915\u093E\u0938\u093F\u0924 \u0915\u093F\u092F\u093E \u091C\u093E\ + \u0928\u093E \u091A\u093E\u0939\u093F\u090F," \u0915\u093E\u0930\u094D\u0930\ + \u0935\u093E\u0908 \u0906\u0935\u0936\u094D\u092F\u0915 \u0914\u0930 \u0905\u0924\ + \u094D\u092F\u093E\u0935\u0936\u094D\u092F\u0915 \u0939\u094B \u0917\u0908 \u0939\ + \u0948..." \u0913\u091F\u094B\u092E\u0928 \u0938\u0941\u0932\u094D\u0924\ + \u093E\u0928 \u0938\u0947\u0932\u093F\u092E \u092A\u094D\u0930\u0925\u092E \u0915\ + \u093E \u0938\u092B\u093C\u093E\u0935\u093F\u0926 \u0936\u093E\u0939 \u0907\u0938\ + \u094D\u092E\u093E\u0907\u0932 \u092A\u094D\u0930\u0925\u092E \u0915\u094B \u092A\ + \u0924\u094D\u0930, 1514 \u0938\u0947\u0932\u093F\u092E \u092A\u094D\u0930\u0925\ + \u092E \u0915\u093E \u092A\u0924\u094D\u0930 \u0938\u094D\u092A\u0937\u094D\u091F\ + \ \u0930\u0942\u092A \u0938\u0947 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\ + \u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u093F\u0938\u0915\u093E\ + \ \u0909\u0926\u093E\u0939\u0930\u0923 \u0939\u0948?" + - input_choice_list: + A: "\u0938\u094D\u0925\u093E\u092A\u093F\u0924 \u0930\u093E\u091C\u094D\u092F\ + \ \u0938\u0902\u0930\u091A\u0928\u093E \u0915\u0947 \u092A\u0924\u0928 \u0915\ + \u0947 \u092E\u093E\u0927\u094D\u092F\u092E \u0938\u0947 \u0935\u094D\u092F\ + \u093E\u092A\u093E\u0930 \u092E\u093E\u0930\u094D\u0917\u094B\u0902 \u0915\ + \u093E \u091F\u0942\u091F\u0928\u093E" + B: "\u092D\u094B\u091C\u0928 \u0915\u0940 \u0905\u0927\u093F\u0915 \u092A\u094D\ + \u0930\u091A\u0941\u0930 \u0906\u092A\u0942\u0930\u094D\u0924\u093F \u0915\ + \u0947 \u092E\u093E\u0927\u094D\u092F\u092E \u0938\u0947 \u0935\u093F\u0936\ + \u094D\u0935 \u0915\u0940 \u091C\u0928\u0938\u0902\u0916\u094D\u092F\u093E\ + \ \u092E\u0947\u0902 \u0935\u0943\u0926\u094D\u0927\u093F" + C: "\u0926\u0941\u0928\u093F\u092F\u093E \u092D\u0930 \u092E\u0947\u0902 \u091A\ + \u0940\u0928\u0940 \u0914\u0930 \u092D\u093E\u0930\u0924\u0940\u092F \u0935\ + \u093F\u0936\u094D\u0935\u093E\u0938 \u092A\u094D\u0930\u0923\u093E\u0932\u093F\ + \u092F\u094B\u0902 \u0915\u093E \u092A\u094D\u0930\u0938\u093E\u0930" + D: "\u0938\u093E\u092E\u093E\u091C\u093F\u0915 \u0905\u0936\u093E\u0902\u0924\ + \u093F \u092E\u0947\u0902 \u0935\u0943\u0926\u094D\u0927\u093F" + input_correct_responses: + - B + input_question: "\u092F\u0939 \u092A\u094D\u0930\u0936\u094D\u0928 \u0928\u093F\ + \u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u091C\u093E\u0928\u0915\u093E\ + \u0930\u0940 \u0915\u094B \u0938\u0902\u0926\u0930\u094D\u092D\u093F\u0924 \u0915\ + \u0930\u0924\u093E \u0939\u0948\u0964 "[\u0935\u093F\u0936\u094D\u0935\ + \ \u0915\u0947] \u0938\u092E\u093E\u091C\u094B\u0902 \u092E\u0947\u0902 \u0938\ + \u0947 \u0915\u092E \u0938\u0947 \u0915\u092E \u090F\u0915 \u0915\u094B [\u0935\ + \u0948\u0936\u094D\u0935\u093F\u0915 \u0906\u0927\u093F\u092A\u0924\u094D\u092F\ + \ \u0939\u093E\u0938\u093F\u0932 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\ + \u093F\u090F] \u0915\u093F\u0938\u0940 \u0924\u0930\u0939 \u0905\u092A\u0928\ + \u0940 \u0909\u0924\u094D\u092A\u093E\u0926\u0915\u0924\u093E \u092E\u0947\u0902\ + \ \u092D\u093E\u0930\u0940 \u0935\u0943\u0926\u094D\u0927\u093F \u0915\u0930\ + \u0928\u0940 \u0939\u094B\u0917\u0940\u0964 \u0935\u0939 \u0915\u094D\u0935\u093E\ + \u0902\u091F\u092E \u091B\u0932\u093E\u0902\u0917 \u0935\u093F\u092D\u093F\u0928\ + \u094D\u0928 \u0935\u0948\u091C\u094D\u091E\u093E\u0928\u093F\u0915, \u0924\u0915\ + \u0928\u0940\u0915\u0940, \u0915\u0943\u0937\u093F \u0914\u0930 \u0914\u0926\ + \u094D\u092F\u094B\u0917\u093F\u0915 \u0915\u094D\u0930\u093E\u0902\u0924\u093F\ + \u092F\u094B\u0902 \u0938\u0947 \u092A\u0939\u0932\u0947 \u0932\u0917\u093E\u0928\ + \u0940 \u0939\u094B\u0917\u0940, \u091C\u093F\u0938 \u092A\u0930 \u0939\u092E\ + \u093E\u0930\u0947 \u0915\u094D\u0935\u093E\u0902\u091F\u092E-\u091B\u0932\u093E\ + \u0902\u0917 \u0915\u0947 \u092C\u093E\u0926 \u0915\u0940 \u0926\u0941\u0928\ + \u093F\u092F\u093E \u0906\u0930\u093E\u092E \u0915\u0930 \u0930\u0939\u0940\ + \ \u0939\u0948\u0964 \u092F\u0939 \u0915\u0947\u0935\u0932 \u091B\u0932\u093E\ + \u0902\u0917 \u0932\u0917\u093E\u0928\u0947 \u0935\u093E\u0932\u0947 \u0938\u092E\ + \u093E\u091C \u0915\u0940 \u092D\u0942\u092E\u093F \u0915\u0947 \u092C\u093E\ + \u0939\u0930 \u092A\u0942\u0930\u0947 \u092E\u0939\u093E\u0926\u094D\u0935\u0940\ + \u092A\u094B\u0902 \u0915\u0947 \u092A\u093E\u0930\u093F\u0938\u094D\u0925\u093F\ + \u0924\u093F\u0915 \u0924\u0902\u0924\u094D\u0930, \u0916\u0928\u093F\u091C\ + \ \u0938\u0902\u0938\u093E\u0927\u0928\u094B\u0902 \u0914\u0930 \u092E\u093E\ + \u0928\u0935 \u0938\u0902\u092A\u0924\u094D\u0924\u093F\u092F\u094B\u0902 \u0915\ + \u093E \u0936\u094B\u0937\u0923 \u0915\u0930\u0915\u0947 \u092A\u0942\u0930\u093E\ + \ \u0915\u093F\u092F\u093E \u091C\u093E \u0938\u0915\u0924\u093E \u0939\u0948\ + \u0964 \u092A\u0936\u094D\u091A\u093F\u092E\u0940 \u092F\u0942\u0930\u094B\u092A\ + \ \u0928\u0947 \u0905\u092A\u0928\u0940 \u0915\u094D\u0930\u0942\u0930\u0924\ + \u093E \u0914\u0930 \u092C\u0902\u0926\u0942\u0915\u094B\u0902 \u0915\u0947\ + \ \u092E\u093E\u0927\u094D\u092F\u092E \u0938\u0947 \u0910\u0938\u093E \u0939\ + \u0940 \u0915\u093F\u092F\u093E \u0914\u0930 , \u092D\u094C\u0917\u094B\u0932\ + \u093F\u0915 \u0914\u0930 \u092A\u093E\u0930\u093F\u0938\u094D\u0925\u093F\u0924\ + \u093F\u0915 \u092D\u093E\u0917\u094D\u092F \u0938\u0947 \u0905\u0927\u093F\u0915\ + \ \u092E\u0939\u0924\u094D\u0935\u092A\u0942\u0930\u094D\u0923 \u0939\u0948\u0964\ + " \u0915\u0949\u092A\u0940\u0930\u093E\u0907\u091F \xA9 2015 \u0915\u0948\ + \u092E\u094D\u092C\u094D\u0930\u093F\u091C \u092F\u0942\u0928\u093F\u0935\u0930\ + \u094D\u0938\u093F\u091F\u0940 \u092A\u094D\u0930\u0947\u0938\u0964 \u0905\u0932\ + \u094D\u092B\u094D\u0930\u0947\u0921 \u0915\u094D\u0930\u0949\u0938\u094D\u092C\ + \u0940, \u0907\u0924\u093F\u0939\u093E\u0938\u0915\u093E\u0930, \u092A\u093E\ + \u0930\u093F\u0938\u094D\u0925\u093F\u0924\u093F\u0915 \u0938\u093E\u092E\u094D\ + \u0930\u093E\u091C\u094D\u092F\u0935\u093E\u0926, 2004 \u092A\u0930\u093F\u091A\ + \u094D\u091B\u0947\u0926 \u092E\u0947\u0902 \u0909\u0932\u094D\u0932\u093F\u0916\ + \u093F\u0924 "\u0915\u094D\u0935\u093E\u0902\u091F\u092E \u091C\u0902\u092A\ + " \u0928\u0947 1450-1750 \u0938\u0940\u0908 \u0915\u0940 \u0905\u0935\u0927\ + \u093F \u092E\u0947\u0902 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\ + \u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u093F\u0938 \u0935\u093F\u0915\ + \u093E\u0938 \u092E\u0947\u0902 \u0938\u092C\u0938\u0947 \u0938\u0940\u0927\u0947\ + \ \u092F\u094B\u0917\u0926\u093E\u0928 \u0926\u093F\u092F\u093E?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_world_history +tag: mmlu_hi_llama_humanities_tasks +task: mmlu_hi_llama_high_school_world_history +task_alias: high_school_world_history diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_human_aging.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_human_aging.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7b8e5f23ddebddfaa1b24c9e3fa0b27e0232834b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_human_aging.yaml @@ -0,0 +1,91 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u090F\u0915 \u090F\u0936\u093F\u092F\u093E\u0908 \u092A\u0941\u0930\u0941\ + \u0937 \u092F\u093E \u092E\u0939\u093F\u0932\u093E" + B: "\u090F\u0915 \u0939\u093F\u0938\u094D\u092A\u0948\u0928\u093F\u0915 \u0906\ + \u0926\u092E\u0940" + C: "\u090F\u0915 \u0905\u092B\u093C\u094D\u0930\u0940\u0915\u0940 \u0905\u092E\ + \u0947\u0930\u093F\u0915\u0940 \u092E\u0939\u093F\u0932\u093E" + D: "\u090F\u0915 \u0936\u094D\u0935\u0947\u0924 \u092A\u0941\u0930\u0941\u0937\ + \ \u092F\u093E \u092E\u0939\u093F\u0932\u093E" + input_correct_responses: + - C + input_question: "2019 \u0924\u0915 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\ + \u093F\u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u093F\u0938 \u0935\u094D\ + \u092F\u0915\u094D\u0924\u093F \u0915\u0947 \u0918\u0930 \u092A\u0930 \u0905\ + \u0915\u0947\u0932\u0947 \u0930\u0939\u0928\u0947 \u0915\u0940 \u0905\u0927\u093F\ + \u0915 \u0938\u0902\u092D\u093E\u0935\u0928\u093E \u0939\u0948?" + - input_choice_list: + A: "\u0915\u093F\u0936\u094B\u0930\u093E\u0935\u0938\u094D\u0925\u093E \u0915\ + \u093E \u0932\u093E\u092D" + B: "\u0938\u094D\u092E\u0943\u0924\u093F \u0909\u092D\u093E\u0930" + C: "\u0938\u094D\u092E\u093E\u0930\u0915 \u0938\u094D\u092E\u093E\u0930\u0915" + D: "\u0926\u094D\u0935\u093F\u0918\u093E\u0924 \u092A\u0941\u0928\u0930\u094D\ + \u092A\u094D\u0930\u093E\u092A\u094D\u0924\u093F \u0938\u094D\u092A\u093E\u0907\ + \u0915" + input_correct_responses: + - B + input_question: "\u092F\u0939 \u0928\u093F\u0937\u094D\u0915\u0930\u094D\u0937\ + \ \u0915\u093F \u0935\u092F\u0938\u094D\u0915 \u0905\u092A\u0928\u0947 \u0915\ + \u093F\u0936\u094B\u0930\u093E\u0935\u0938\u094D\u0925\u093E \u0915\u0940 \u0918\ + \u091F\u0928\u093E\u0913\u0902 \u0915\u094B \u0905\u092A\u0928\u0947 \u091C\u0940\ + \u0935\u0928 \u0915\u0947 \u0905\u0928\u094D\u092F \u0905\u0935\u0927\u093F\u092F\ + \u094B\u0902 \u0915\u0940 \u0924\u0941\u0932\u0928\u093E \u092E\u0947\u0902\ + \ \u092C\u0947\u0939\u0924\u0930 \u0922\u0902\u0917 \u0938\u0947 \u092F\u093E\ + \u0926 \u0930\u0916\u0924\u0947 \u0939\u0948\u0902, \u0915\u0939\u0932\u093E\ + \u0924\u0940 \u0939\u0948" + - input_choice_list: + A: "\u091F\u0947\u0915\u094D\u0938\u093E\u0938" + B: "\u0915\u0948\u0932\u093F\u092B\u094B\u0930\u094D\u0928\u093F\u092F\u093E" + C: "\u0939\u0935\u093E\u0908" + D: "\u0935\u0930\u092E\u094B\u0902\u091F" + input_correct_responses: + - A + input_question: "\u091C\u092C \u0935\u0943\u0926\u094D\u0927 \u0935\u092F\u0938\ + \u094D\u0915 \u0938\u0947\u0935\u093E\u0928\u093F\u0935\u0943\u0924\u094D\u0924\ + \u093F \u0915\u0947 \u092C\u093E\u0926 \u0915\u093F\u0938\u0940 \u0928\u090F\ + \ \u0930\u093E\u091C\u094D\u092F \u092E\u0947\u0902 \u091A\u0932\u0947 \u091C\ + \u093E\u0924\u0947 \u0939\u0948\u0902, \u0924\u094B \u0928\u093F\u092E\u094D\ + \u0928\u0932\u093F\u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\ + \u0928 \u0938\u093E \u0917\u0902\u0924\u0935\u094D\u092F \u0905\u0927\u093F\u0915\ + \ \u0938\u0902\u092D\u093E\u0935\u093F\u0924 \u0939\u0948?" + - input_choice_list: + A: "\u0928\u093F\u0915\u094B\u091F\u0940\u0928" + B: "\u091F\u093E\u0930" + C: "\u0915\u093E\u0930\u094D\u092C\u0928 \u092E\u094B\u0928\u094B\u0906\u0915\ + \u094D\u0938\u093E\u0907\u0921" + D: "\u0927\u0941\u090F\u0901 \u0915\u0947 \u0915\u0923" + input_correct_responses: + - B + input_question: "\u0924\u092E\u094D\u092C\u093E\u0915\u0942 \u0915\u0947 \u0927\ + \u0941\u090F\u0902 \u092E\u0947\u0902 \u0915\u094C\u0928 \u0938\u093E \u0924\ + \u0924\u094D\u0935 \u0915\u0948\u0902\u0938\u0930 \u0915\u0947 \u0932\u093F\u090F\ + \ \u091C\u093F\u092E\u094D\u092E\u0947\u0926\u093E\u0930 \u0939\u0948?" + - input_choice_list: + A: "\u090F\u0915 \u0935\u0943\u0926\u094D\u0927 \u0939\u093F\u0938\u094D\u092A\ + \u0948\u0928\u093F\u0915 \u0905\u092E\u0947\u0930\u093F\u0915\u0940 \u092E\ + \u0939\u093F\u0932\u093E" + B: "\u090F\u0915 \u0935\u0943\u0926\u094D\u0927 \u0905\u092B\u093C\u094D\u0930\ + \u0940\u0915\u0940 \u0905\u092E\u0947\u0930\u093F\u0915\u0940 \u092E\u0939\ + \u093F\u0932\u093E" + C: "\u090F\u0915 \u0935\u0943\u0926\u094D\u0927 \u090F\u0936\u093F\u092F\u093E\ + \u0908 \u0905\u092E\u0947\u0930\u093F\u0915\u0940 \u092E\u0939\u093F\u0932\ + \u093E" + D: "\u090F\u0915 \u0935\u0943\u0926\u094D\u0927 \u092E\u0942\u0932 \u0905\u092E\ + \u0947\u0930\u093F\u0915\u0940 \u092E\u0939\u093F\u0932\u093E" + input_correct_responses: + - C + input_question: "\u0905\u0928\u094D\u092F \u0938\u092D\u0940 \u092C\u093E\u0924\ + \u0947\u0902 \u0938\u092E\u093E\u0928 \u0939\u094B\u0928\u0947 \u092A\u0930\ + , \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u092E\u0947\u0902\ + \ \u0938\u0947 \u0915\u093F\u0938 \u0935\u094D\u092F\u0915\u094D\u0924\u093F\ + \ \u092E\u0947\u0902 \u0911\u0938\u094D\u091F\u093F\u092F\u094B\u092A\u094B\u0930\ + \u094B\u0938\u093F\u0938 \u0939\u094B\u0928\u0947 \u0915\u0940 \u0905\u0927\u093F\ + \u0915 \u0938\u0902\u092D\u093E\u0935\u0928\u093E \u0939\u0948?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_human_aging +tag: mmlu_hi_llama_other_tasks +task: mmlu_hi_llama_human_aging +task_alias: human_aging diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_human_sexuality.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_human_sexuality.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e92af57a0590350a2141da82d1934274af86f64e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_human_sexuality.yaml @@ -0,0 +1,92 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u092A\u0939\u0932\u0940 \u0924\u093F\u092E\u093E\u0939\u0940 \u0915\u0947\ + \ \u0926\u094C\u0930\u093E\u0928" + B: "\u0926\u0942\u0938\u0930\u0940 \u0924\u093F\u092E\u093E\u0939\u0940 \u0915\ + \u0947 \u0926\u094C\u0930\u093E\u0928" + C: "\u0924\u0940\u0938\u0930\u0940 \u0924\u093F\u092E\u093E\u0939\u0940 \u0915\ + \u0947 \u0926\u094C\u0930\u093E\u0928" + D: "\u092A\u0942\u0930\u0940 \u0917\u0930\u094D\u092D\u093E\u0935\u0938\u094D\ + \u0925\u093E \u0915\u0947 \u0926\u094C\u0930\u093E\u0928" + input_correct_responses: + - A + input_question: "\u092E\u0949\u0930\u094D\u0928\u093F\u0902\u0917 \u0938\u093F\ + \u0915\u0928\u0947\u0938 \u0906\u092E \u0924\u094C\u0930 \u092A\u0930 \u090F\ + \u0915 \u0938\u092E\u0938\u094D\u092F\u093E \u0939\u0948:" + - input_choice_list: + A: "\u090F\u0915 \u092E\u091C\u092C\u0942\u0924 \u0905\u0939\u0902\u0915\u093E\ + \u0930" + B: "\u090F\u0915 \u0915\u092E\u091C\u094B\u0930 \u0938\u0941\u092A\u0930\u0907\ + \u0917\u094B" + C: "\u090F\u0915 \u0915\u092E\u091C\u094B\u0930 \u0906\u0908\u0921\u0940" + D: "\u090F\u0915 \u092E\u091C\u092C\u0942\u0924 \u0938\u0941\u092A\u0930\u0907\ + \u0917\u094B" + input_correct_responses: + - B + input_question: "\u090F\u0915 \u092E\u0939\u093F\u0932\u093E \u091C\u094B \u091C\ + \u093E\u0928\u0924\u0940 \u0939\u0948 \u0915\u093F \u0909\u0938\u0947 \u0938\ + \u0915\u094D\u0930\u093F\u092F \u0939\u0930\u094D\u092A\u0940\u0938 \u0914\u0930\ + \ \u0905\u0928\u0941\u092A\u091A\u093E\u0930\u093F\u0924 \u0938\u093F\u092B\u0932\ + \u093F\u0938 \u0939\u0948, \u0932\u0947\u0915\u093F\u0928 \u0935\u0939 \u0905\ + \u092A\u0928\u0947 \u0938\u093E\u0925\u0940 \u0915\u094B \u0905\u092A\u0928\u0940\ + \ \u0938\u094D\u0925\u093F\u0924\u093F \u0915\u0947 \u092C\u093E\u0930\u0947\ + \ \u092E\u0947\u0902 \u092C\u0924\u093E\u090F \u092C\u093F\u0928\u093E \u092F\ + \u094C\u0928 \u0938\u0902\u092C\u0902\u0927 \u092C\u0928\u093E\u0928\u093E \u091C\ + \u093E\u0930\u0940 \u0930\u0916\u0924\u0940 \u0939\u0948, \u0924\u094B \u092E\ + \u0928\u094B\u0935\u093F\u0936\u094D\u0932\u0947\u0937\u0923\u093E\u0924\u094D\ + \u092E\u0915 \u0936\u092C\u094D\u0926\u094B\u0902 \u092E\u0947\u0902:" + - input_choice_list: + A: "\u0924\u0925\u094D\u092F \u092F\u0939 \u0939\u0948 \u0915\u093F \u0909\u0928\ + \u0915\u0947 \u092A\u093E\u0938 \u0926\u0941\u0930\u094D\u0926\u092E\u094D\ + \u092F \u0905\u0935\u0927\u093F \u0928\u0939\u0940\u0902 \u0939\u0948\u0964" + B: "\u092F\u094B\u0928\u093F \u0915\u0940 \u0906\u0902\u0924\u0930\u093F\u0915\ + \ \u092A\u0930\u0924\u094B\u0902 \u0915\u0940 \u092A\u094D\u0930\u0924\u093F\ + \u0915\u094D\u0930\u093F\u092F\u093E\u0964" + C: "\u0935\u093F\u092D\u093F\u0928\u094D\u0928 \u0938\u094D\u0925\u093E\u0928\ + \u094B\u0902 \u092A\u0930 \u092C\u093E\u0930\u0940-\u092C\u093E\u0930\u0940\ + \ \u0938\u0947 \u0915\u093E\u092E\u094B\u0928\u094D\u092E\u093E\u0926 \u0939\ + \u094B\u0928\u093E\u0964" + D: "\u091C\u0940-\u0938\u094D\u092A\u0949\u091F." + input_correct_responses: + - A + input_question: "\u092E\u0939\u093F\u0932\u093E\u0913\u0902 \u092E\u0947\u0902\ + \ \u090F\u0915\u093E\u0927\u093F\u0915 \u0913\u0930\u094D\u0917\u093E\u0938\u094D\ + \u092E \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0928\u0947 \u0915\ + \u0940 \u0915\u094D\u0937\u092E\u0924\u093E \u092E\u0941\u0916\u094D\u092F \u0930\ + \u0942\u092A \u0938\u0947 \u0928\u093F\u092E\u094D\u0928 \u0915\u093E\u0930\u0923\ + \u094B\u0902 \u0938\u0947 \u0939\u094B\u0924\u0940 \u0939\u0948:" + - input_choice_list: + A: "\u0938\u0902\u092D\u094B\u0917" + B: "\u0938\u0930\u094D\u0915\u0932 \u091D\u091F\u0915\u0947" + C: "\u0928\u0941\u092E\u093E\u0907\u0936\u092C\u093E\u091C\u0940" + D: "\u090F\u0915 \u0926\u0942\u0938\u0930\u0947 \u0915\u0947 \u0917\u0941\u092A\ + \u094D\u0924\u093E\u0902\u0917\u094B\u0902 \u0915\u094B \u091B\u0942\u0928\ + \u093E" + input_correct_responses: + - A + input_question: "\u0915\u093F\u0936\u094B\u0930\u093E\u0935\u0938\u094D\u0925\u093E\ + \ \u0915\u0947 \u0926\u094C\u0930\u093E\u0928 \u0939\u094B\u0928\u0947 \u0935\ + \u093E\u0932\u0940 \u0938\u092E\u0932\u0948\u0902\u0917\u093F\u0915 \u0917\u0924\ + \u093F\u0935\u093F\u0927\u093F\u092F\u094B\u0902 \u0915\u0940 \u092A\u094D\u0930\ + \u0915\u0943\u0924\u093F \u092E\u0947\u0902 \u0928\u093F\u092E\u094D\u0928\u0932\ + \u093F\u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u094D\u092F\u093E\ + \ \u0936\u093E\u092E\u093F\u0932 \u0939\u0948?" + - input_choice_list: + A: "\u0936\u0940\u0918\u094D\u0930\u092A\u0924\u0928" + B: "\u0938\u094D\u0916\u0932\u0928 \u0915\u094B \u0930\u094B\u0915\u093E" + C: "\u0938\u094D\u0924\u0902\u092D\u0928 \u0935\u093F\u0915\u093E\u0930" + D: "\u0938\u094D\u0916\u0932\u0928 \u0938\u0902\u092C\u0902\u0927\u0940 \u0935\ + \u093F\u0915\u093E\u0930" + input_correct_responses: + - C + input_question: "\u092F\u094C\u0928 \u0909\u092A\u091A\u093E\u0930 \u091A\u093E\ + \u0939\u0928\u0947 \u0935\u093E\u0932\u0947 \u092A\u0941\u0930\u0941\u0937\u094B\ + \u0902 \u092E\u0947\u0902 \u0938\u092C\u0938\u0947 \u0906\u092E \u0935\u093F\ + \u0915\u093E\u0930 \u0939\u0948:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_human_sexuality +tag: mmlu_hi_llama_social_sciences_tasks +task: mmlu_hi_llama_human_sexuality +task_alias: human_sexuality diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_international_law.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_international_law.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a49756bf4fd3358a01b98c03145134d3c75556d8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_international_law.yaml @@ -0,0 +1,181 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0905\u0928\u0941\u091A\u094D\u091B\u0947\u0926 2(4) \u092E\u0947\u0902\ + \ \u0915\u0947\u0935\u0932 \u0938\u0936\u0938\u094D\u0924\u094D\u0930 \u092C\ + \u0932 \u0936\u093E\u092E\u093F\u0932 \u0939\u0948" + B: "\u0905\u0928\u0941\u091A\u094D\u091B\u0947\u0926 2(4) \u092E\u0947\u0902\ + \ \u092A\u094D\u0930\u0924\u093F\u092C\u0902\u0927\u094B\u0902 \u0938\u0939\ + \u093F\u0924 \u0938\u092D\u0940 \u092A\u094D\u0930\u0915\u093E\u0930 \u0915\ + \u0947 \u092C\u0932 \u0936\u093E\u092E\u093F\u0932 \u0939\u0948\u0902" + C: "\u0905\u0928\u0941\u091A\u094D\u091B\u0947\u0926 2(4) \u092E\u0947\u0902\ + \ \u0930\u093E\u091C\u094D\u092F\u094B\u0902 \u0915\u0947 \u0918\u0930\u0947\ + \u0932\u0942 \u092E\u093E\u092E\u0932\u094B\u0902 \u092E\u0947\u0902 \u0938\ + \u092D\u0940 \u0939\u0938\u094D\u0924\u0915\u094D\u0937\u0947\u092A \u0936\ + \u093E\u092E\u093F\u0932 \u0939\u0948\u0902" + D: "\u0905\u0928\u0941\u091A\u094D\u091B\u0947\u0926 2(4) \u092E\u0947\u0902\ + \ \u0915\u0947\u0935\u0932 \u0930\u093E\u091C\u094D\u092F \u0915\u0940 \u0915\ + \u094D\u0937\u0947\u0924\u094D\u0930\u0940\u092F \u0905\u0916\u0902\u0921\u0924\ + \u093E \u0915\u0947 \u0935\u093F\u0930\u0941\u0926\u094D\u0927 \u0928\u093F\ + \u0930\u094D\u0926\u0947\u0936\u093F\u0924 \u092C\u0932 \u0936\u093E\u092E\ + \u093F\u0932 \u0939\u0948" + input_correct_responses: + - A + input_question: "\u0938\u0902\u092F\u0941\u0915\u094D\u0924 \u0930\u093E\u0937\ + \u094D\u091F\u094D\u0930 \u091A\u093E\u0930\u094D\u091F\u0930 \u0915\u093E \u0905\ + \u0928\u0941\u091A\u094D\u091B\u0947\u0926 2(4) \u0915\u093F\u0938 \u092A\u094D\ + \u0930\u0915\u093E\u0930 \u0915\u0947 \u092C\u0932 \u092A\u0930 \u092A\u094D\ + \u0930\u0924\u093F\u092C\u0902\u0927 \u0932\u0917\u093E\u0924\u093E \u0939\u0948\ + ?" + - input_choice_list: + A: "\u092F\u0926\u093F ICJ \u0915\u0947 \u0938\u092E\u0915\u094D\u0937 \u0915\ + \u093F\u0938\u0940 \u0935\u093F\u0935\u093E\u0926\u093E\u0938\u094D\u092A\u0926\ + \ \u092E\u093E\u092E\u0932\u0947 \u092E\u0947\u0902 \u0915\u093F\u0938\u0940\ + \ \u092A\u0915\u094D\u0937 \u0915\u0947 \u092A\u093E\u0938 \u0928\u094D\u092F\ + \u093E\u092F\u093E\u0927\u0940\u0936 \u0915\u0947 \u0930\u0942\u092A \u092E\ + \u0947\u0902 \u0930\u093E\u0937\u094D\u091F\u094D\u0930\u0940\u092F \u092C\ + \u0948\u0920\u0915 \u0928\u0939\u0940\u0902 \u0939\u0948, \u0924\u094B \u0935\ + \u0939 \u0909\u0938 \u092E\u093E\u092E\u0932\u0947 \u0915\u0947 \u0932\u093F\ + \u090F \u0915\u093F\u0938\u0940 \u0915\u094B \u0928\u094D\u092F\u093E\u092F\ + \u093E\u0927\u0940\u0936 \u0915\u0947 \u0930\u0942\u092A \u092E\u0947\u0902\ + \ \u0928\u093E\u092E\u093E\u0902\u0915\u093F\u0924 \u0915\u0930\u0928\u0947\ + \ \u0915\u093E \u0939\u0915\u0926\u093E\u0930 \u0939\u0948, \u0928\u094D\u092F\ + \u093E\u092F\u093E\u0927\u0940\u0936 \u0924\u0926\u0930\u094D\u0925 \u0915\ + \u0947 \u092A\u0926 \u0915\u0947 \u0938\u093E\u0925\u0964" + B: "\u0928\u094D\u092F\u093E\u092F\u093E\u0927\u0940\u0936 \u0924\u0926\u0930\ + \u094D\u0925 \u0928\u093F\u0930\u094D\u0923\u093E\u092F\u0915 \u092E\u0924\ + \ \u0915\u0947 \u0938\u093E\u0925 ICJ \u0915\u0940 \u092A\u0940\u0920 \u0915\ + \u0947 \u0938\u0926\u0938\u094D\u092F \u0939\u094B\u0924\u0947 \u0939\u0948\ + \u0902" + C: "\u092F\u0926\u093F \u0915\u094B\u0908 \u0928\u094D\u092F\u093E\u092F\u093E\ + \u0927\u0940\u0936 \u0905\u092F\u094B\u0917\u094D\u092F \u0939\u094B \u091C\ + \u093E\u0924\u093E \u0939\u0948 \u092F\u093E \u0909\u0938\u0915\u0940 \u092E\ + \u0943\u0924\u094D\u092F\u0941 \u0939\u094B \u091C\u093E\u0924\u0940 \u0939\ + \u0948, \u0924\u094B \u0924\u0926\u0930\u094D\u0925 \u0928\u094D\u092F\u093E\ + \u092F\u093E\u0927\u0940\u0936 \u090F\u0915 \u0938\u0930\u094B\u0917\u0947\ + \u091F \u0928\u094D\u092F\u093E\u092F\u093E\u0927\u0940\u0936 \u0939\u094B\ + \u0924\u093E \u0939\u0948" + D: "\u0928\u094D\u092F\u093E\u092F\u093E\u0927\u0940\u0936 \u0924\u0926\u0930\ + \u094D\u0925 \u0935\u0939 \u0928\u094D\u092F\u093E\u092F\u093E\u0927\u0940\ + \u0936 \u0939\u094B\u0924\u093E \u0939\u0948 \u091C\u093F\u0938\u0947 \u092A\ + \u094D\u0930\u0924\u094D\u092F\u0947\u0915 \u092A\u0915\u094D\u0937 \u0939\ + \u092E\u0947\u0936\u093E \u092A\u094D\u0930\u0924\u094D\u092F\u0947\u0915\ + \ \u0935\u093F\u0935\u093E\u0926\u093E\u0938\u094D\u092A\u0926 \u092E\u093E\ + \u092E\u0932\u0947 \u092E\u0947\u0902 \u0928\u093E\u092E\u093F\u0924 \u0915\ + \u0930\u0947\u0917\u093E" + input_correct_responses: + - A + input_question: "\u0928\u094D\u092F\u093E\u092F\u093E\u0927\u0940\u0936 \u0924\ + \u0926\u0930\u094D\u0925 \u0915\u094D\u092F\u093E \u0939\u0948?" + - input_choice_list: + A: "\u092F\u0939 \u090F\u0915 \u0938\u094D\u0935\u0940\u0915\u093E\u0930\u094D\ + \u092F \u0906\u0930\u0915\u094D\u0937\u0923 \u0939\u0948 \u092F\u0926\u093F\ + \ \u0906\u0930\u0915\u094D\u0937\u0923 \u0915\u0930\u0928\u0947 \u0935\u093E\ + \u0932\u0947 \u0926\u0947\u0936 \u0915\u093E \u0915\u093E\u0928\u0942\u0928\ + \ \u090F\u0915 \u0905\u0932\u0917 \u092A\u0930\u093F\u092D\u093E\u0937\u093E\ + \ \u0932\u093E\u0917\u0942 \u0915\u0930\u0924\u093E \u0939\u0948" + B: "\u092F\u0939 \u090F\u0915 \u0905\u0938\u094D\u0935\u0940\u0915\u093E\u0930\ + \u094D\u092F \u0906\u0930\u0915\u094D\u0937\u0923 \u0939\u0948 \u0915\u094D\ + \u092F\u094B\u0902\u0915\u093F \u092F\u0939 ICCPR \u0915\u0947 \u0909\u0926\ + \u094D\u0926\u0947\u0936\u094D\u092F \u0914\u0930 \u0909\u0926\u094D\u0926\ + \u0947\u0936\u094D\u092F \u0915\u093E \u0909\u0932\u094D\u0932\u0902\u0918\ + \u0928 \u0915\u0930\u0924\u093E \u0939\u0948" + C: "\u092F\u0939 \u090F\u0915 \u0905\u0938\u094D\u0935\u0940\u0915\u093E\u0930\ + \u094D\u092F \u0906\u0930\u0915\u094D\u0937\u0923 \u0939\u0948 \u0915\u094D\ + \u092F\u094B\u0902\u0915\u093F \u0906\u0908\u0938\u0940\u0938\u0940\u092A\u0940\ + \u0906\u0930 \u092E\u0947\u0902 \u092F\u093E\u0924\u0928\u093E \u0915\u0940\ + \ \u092A\u0930\u093F\u092D\u093E\u0937\u093E \u092A\u094D\u0930\u0925\u093E\ + \u0917\u0924 \u0905\u0902\u0924\u0930\u0930\u093E\u0937\u094D\u091F\u094D\u0930\ + \u0940\u092F \u0915\u093E\u0928\u0942\u0928 \u0915\u0947 \u0905\u0928\u0941\ + \u0930\u0942\u092A \u0939\u0948" + D: "\u092F\u0939 \u090F\u0915 \u0938\u094D\u0935\u0940\u0915\u093E\u0930\u094D\ + \u092F \u0906\u0930\u0915\u094D\u0937\u0923 \u0939\u0948 \u0915\u094D\u092F\ + \u094B\u0902\u0915\u093F \u0938\u093E\u092E\u093E\u0928\u094D\u092F \u0905\ + \u0902\u0924\u0930\u0930\u093E\u0937\u094D\u091F\u094D\u0930\u0940\u092F \u0915\ + \u093E\u0928\u0942\u0928 \u0915\u0947 \u0924\u0939\u0924 \u0930\u093E\u091C\ + \u094D\u092F\u094B\u0902 \u0915\u094B \u0938\u0902\u0927\u093F\u092F\u094B\ + \u0902 \u092E\u0947\u0902 \u0906\u0930\u0915\u094D\u0937\u0923 \u0926\u0930\ + \u094D\u091C \u0915\u0930\u0928\u0947 \u0915\u093E \u0905\u0927\u093F\u0915\ + \u093E\u0930 \u0939\u0948" + input_correct_responses: + - B + input_question: "\u0915\u094D\u092F\u093E \u0906\u0908\u0938\u0940\u0938\u0940\ + \u092A\u0940\u0906\u0930 \u092E\u0947\u0902 \u092F\u093E\u0924\u0928\u093E \u0915\ + \u0940 \u092A\u0930\u093F\u092D\u093E\u0937\u093E \u092E\u0947\u0902 \u0906\u0930\ + \u0915\u094D\u0937\u0923 \u0938\u092E\u0915\u093E\u0932\u0940\u0928 \u0935\u094D\ + \u092F\u0935\u0939\u093E\u0930 \u092E\u0947\u0902 \u0938\u094D\u0935\u0940\u0915\ + \u093E\u0930\u094D\u092F \u0939\u094B\u0917\u093E?" + - input_choice_list: + A: "\u091C\u092C \u092D\u0940 \u0938\u0939\u092E\u0924\u093F \u0926\u0940 \u091C\ + \u093E\u0924\u0940 \u0939\u0948 \u0924\u094B \u0935\u0939 \u0917\u093C\u0932\ + \u0924\u0940 \u0915\u094B \u0930\u094B\u0915\u0928\u0947 \u0935\u093E\u0932\ + \u0940 \u092A\u0930\u093F\u0938\u094D\u0925\u093F\u0924\u093F \u0915\u0947\ + \ \u0930\u0942\u092A \u092E\u0947\u0902 \u0915\u093E\u092E \u0915\u0930 \u0938\ + \u0915\u0924\u0940 \u0939\u0948" + B: "\u0938\u0939\u092E\u0924\u093F \u0915\u092D\u0940 \u092D\u0940 \u0917\u093C\ + \u0932\u0924\u0940 \u0915\u094B \u0930\u094B\u0915\u0928\u0947 \u0935\u093E\ + \u0932\u0940 \u092A\u0930\u093F\u0938\u094D\u0925\u093F\u0924\u093F \u0915\ + \u0947 \u0930\u0942\u092A \u092E\u0947\u0902 \u0915\u093E\u092E \u0928\u0939\ + \u0940\u0902 \u0915\u0930 \u0938\u0915\u0924\u0940" + C: "\u0938\u0939\u092E\u0924\u093F \u0917\u093C\u0932\u0924\u0940 \u0915\u094B\ + \ \u0930\u094B\u0915\u0928\u0947 \u0935\u093E\u0932\u0940 \u092A\u0930\u093F\ + \u0938\u094D\u0925\u093F\u0924\u093F \u0915\u0947 \u0930\u0942\u092A \u092E\ + \u0947\u0902 \u0915\u093E\u092E \u0915\u0930 \u0938\u0915\u0924\u0940 \u0939\ + \u0948, \u092C\u0936\u0930\u094D\u0924\u0947 \u0938\u0939\u092E\u0924\u093F\ + \ \u0935\u0948\u0927 \u0939\u094B \u0914\u0930 \u0907\u0938 \u0939\u0926 \u0924\ + \u0915 \u0915\u093F \u0906\u091A\u0930\u0923 \u0926\u0940 \u0917\u0908 \u0938\ + \u0939\u092E\u0924\u093F \u0915\u0940 \u0938\u0940\u092E\u093E \u0915\u0947\ + \ \u092D\u0940\u0924\u0930 \u0930\u0939\u0947\u0964" + D: "\u0938\u0939\u092E\u0924\u093F \u0939\u092E\u0947\u0936\u093E \u0917\u093C\ + \u0932\u0924\u0940 \u0915\u094B \u0930\u094B\u0915\u0928\u0947 \u0935\u093E\ + \u0932\u0940 \u092A\u0930\u093F\u0938\u094D\u0925\u093F\u0924\u093F \u0915\ + \u0947 \u0930\u0942\u092A \u092E\u0947\u0902 \u0915\u093E\u092E \u0915\u0930\ + \ \u0938\u0915\u0924\u0940 \u0939\u0948, \u091A\u093E\u0939\u0947 \u0930\u093E\ + \u091C\u094D\u092F \u0915\u093E \u0915\u094B\u0908 \u092D\u0940 \u0905\u0902\ + \u0917 \u0907\u0938\u0947 \u0926\u0947" + input_correct_responses: + - C + input_question: "\u0915\u092C '\u0938\u0939\u092E\u0924\u093F' \u0915\u093F\ + \u0938\u0940 \u0930\u093E\u091C\u094D\u092F \u0915\u0947 \u0906\u091A\u0930\u0923\ + \ \u0915\u0940 \u0917\u0932\u0924\u0924\u093E \u0915\u094B \u0930\u094B\u0915\ + \u0928\u0947 \u0935\u093E\u0932\u0940 \u092A\u0930\u093F\u0938\u094D\u0925\u093F\ + \u0924\u093F \u0915\u0947 \u0930\u0942\u092A \u092E\u0947\u0902 \u0915\u093E\ + \u092E \u0915\u0930 \u0938\u0915\u0924\u0940 \u0939\u0948?" + - input_choice_list: + A: "\u0915\u093F\u0938\u0940 \u0930\u093E\u091C\u094D\u092F \u0915\u0940 \u092C\ + \u093E\u0927\u094D\u092F\u0924\u093E \u0915\u0940 \u0938\u0939\u092E\u0924\ + \u093F \u0915\u0947\u0935\u0932 \u0905\u0928\u0941\u0938\u092E\u0930\u094D\ + \u0925\u0928 \u0926\u094D\u0935\u093E\u0930\u093E \u0935\u094D\u092F\u0915\ + \u094D\u0924 \u0915\u0940 \u091C\u093E\u0924\u0940 \u0939\u0948" + B: "\u0915\u093F\u0938\u0940 \u0938\u0902\u0927\u093F \u0938\u0947 \u092C\u0902\ + \u0927\u0947 \u0930\u0939\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0930\ + \u093E\u091C\u094D\u092F \u0915\u0940 \u0938\u0939\u092E\u0924\u093F \u0939\ + \u0938\u094D\u0924\u093E\u0915\u094D\u0937\u0930, \u0905\u0928\u0941\u0938\ + \u092E\u0930\u094D\u0925\u0928, \u0938\u094D\u0935\u0940\u0915\u0943\u0924\ + \u093F, \u0905\u0928\u0941\u092E\u094B\u0926\u0928 \u092F\u093E \u092A\u0930\ + \u093F\u0917\u094D\u0930\u0939\u0923 \u0926\u094D\u0935\u093E\u0930\u093E\ + \ \u0935\u094D\u092F\u0915\u094D\u0924 \u0915\u0940 \u091C\u093E \u0938\u0915\ + \u0924\u0940 \u0939\u0948" + C: "\u092C\u093E\u0927\u094D\u092F \u0939\u094B\u0928\u0947 \u0915\u0947 \u0932\ + \u093F\u090F \u0930\u093E\u091C\u094D\u092F \u0915\u0940 \u0938\u0939\u092E\ + \u0924\u093F \u0939\u0938\u094D\u0924\u093E\u0915\u094D\u0937\u0930 \u0926\ + \u094D\u0935\u093E\u0930\u093E \u0935\u094D\u092F\u0915\u094D\u0924 \u0915\ + \u0940 \u091C\u093E\u0924\u0940 \u0939\u0948" + D: "\u092C\u093E\u0927\u094D\u092F \u0939\u094B\u0928\u0947 \u0915\u0947 \u0932\ + \u093F\u090F \u0930\u093E\u091C\u094D\u092F \u0915\u0940 \u0938\u0939\u092E\ + \u0924\u093F \u0909\u0928\u0915\u0947 \u0926\u094D\u0935\u093E\u0930\u093E\ + \ \u091A\u0941\u0928\u0947 \u0917\u090F \u0915\u093F\u0938\u0940 \u092D\u0940\ + \ \u092E\u093E\u0927\u094D\u092F\u092E \u0938\u0947 \u0935\u094D\u092F\u0915\ + \u094D\u0924 \u0915\u0940 \u091C\u093E\u0924\u0940 \u0939\u0948" + input_correct_responses: + - B + input_question: "\u0915\u093F\u0938\u0940 \u0930\u093E\u091C\u094D\u092F \u0938\ + \u0947 \u092C\u0902\u0927\u0947 \u0930\u0939\u0928\u0947 \u0915\u0940 \u0938\ + \u0939\u092E\u0924\u093F \u0915\u0948\u0938\u0947 \u0935\u094D\u092F\u0915\u094D\ + \u0924 \u0915\u0940 \u091C\u093E \u0938\u0915\u0924\u0940 \u0939\u0948?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_international_law +tag: mmlu_hi_llama_humanities_tasks +task: mmlu_hi_llama_international_law +task_alias: international_law diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_jurisprudence.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_jurisprudence.yaml new file mode 100644 index 0000000000000000000000000000000000000000..26282efd3101dd5fd0da1d235445f57c5dd3e815 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_jurisprudence.yaml @@ -0,0 +1,110 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u092A\u0940\u0913\u092A\u0940 \u0938\u094D\u0935\u0924\u0902\u0924\u094D\ + \u0930\u0924\u093E \u0938\u0947 \u090A\u092A\u0930 \u0938\u092E\u093E\u0928\ + \u0924\u093E \u0915\u094B \u091A\u0941\u0928\u0947\u0917\u0940\u0964" + B: "\u092A\u0940\u0913\u092A\u0940 '\u0905\u0927\u093F\u0915\u0924\u092E\ + ' \u0930\u0923\u0928\u0940\u0924\u093F \u0915\u093E \u0935\u093F\u0915\ + \u0932\u094D\u092A \u091A\u0941\u0928\u0947\u0917\u093E\u0964" + C: "\u092A\u0940\u0913\u092A\u0940 '\u0905\u0902\u0924\u0930 \u0938\u093F\ + \u0926\u094D\u0927\u093E\u0902\u0924' \u0915\u093E \u0935\u093F\u0915\u0932\ + \u094D\u092A \u091A\u0941\u0928\u0947\u0917\u093E\u0964" + D: "\u092A\u0940\u0913\u092A\u0940 '\u092A\u094D\u0930\u093E\u0915\u0943\ + \u0924\u093F\u0915 \u0938\u094D\u0935\u0924\u0902\u0924\u094D\u0930\u0924\u093E\ + \ \u0915\u0940 \u0935\u094D\u092F\u0935\u0938\u094D\u0925\u093E' \u0915\ + \u094B \u0905\u0938\u094D\u0935\u0940\u0915\u093E\u0930 \u0915\u0930 \u0926\ + \u0947\u0917\u093E\u0964" + input_correct_responses: + - A + input_question: "\u0930\u0949\u0932\u094D\u0938 \u0915\u093E \u0926\u093E\u0935\ + \u093E \u0939\u0948 \u0915\u093F \u092A\u0940\u0913\u092A\u0940 (\u092E\u0942\ + \u0932 \u092A\u0926 \u092A\u0930 \u092E\u094C\u091C\u0942\u0926 \u0932\u094B\ + \u0917\u094B\u0902) \u0926\u094D\u0935\u093E\u0930\u093E \u0915\u093F\u0938\ + \ \u092A\u0926 \u0915\u094B \u0905\u092A\u0928\u093E\u0928\u0947 \u0915\u0940\ + \ \u0938\u092C\u0938\u0947 \u0915\u092E \u0938\u0902\u092D\u093E\u0935\u0928\ + \u093E \u0939\u0948?" + - input_choice_list: + A: "\u0935\u094D\u092F\u0915\u094D\u0924\u093F\u0917\u0924 \u0938\u094D\u0935\ + \u0924\u0902\u0924\u094D\u0930\u0924\u093E \u0915\u094B \u0905\u0927\u093F\ + \u0915\u0924\u092E \u0915\u0930\u0928\u093E" + B: "\u0938\u092E\u091D\u094C\u0924\u0947 \u0915\u0947 \u0932\u093F\u090F \u0906\ + \u0927\u093E\u0930 \u092A\u094D\u0930\u0926\u093E\u0928 \u0915\u0930\u0928\ + \u093E" + C: "\u0936\u093E\u0902\u0924\u093F \u092C\u0928\u093E\u090F \u0930\u0916\u0928\ + \u093E" + D: "\u092E\u0941\u0915\u094D\u0924 \u0909\u0926\u094D\u092F\u092E \u092A\u094D\ + \u0930\u0923\u093E\u0932\u0940 \u0915\u0947 \u0938\u093F\u0926\u094D\u0927\ + \u093E\u0902\u0924\u094B\u0902 \u0915\u094B \u092C\u0922\u093C\u093E\u0935\ + \u093E \u0926\u0947\u0928\u093E" + input_correct_responses: + - D + input_question: "\u0915\u093E\u0928\u0942\u0928 \u0915\u0947 \u0915\u093E\u0930\ + \u094D\u092F\u094B\u0902 \u092E\u0947\u0902 \u0928\u093F\u092E\u094D\u0928\u0932\ + \u093F\u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u093F\u0938\u0947\ + \ \u091B\u094B\u0921\u093C\u0915\u0930 \u0938\u092D\u0940 \u0936\u093E\u092E\ + \u093F\u0932 \u0939\u0948\u0902?" + - input_choice_list: + A: "\u0905\u0927\u093F\u0915\u093E\u0930\u0964" + B: "\u0915\u0930\u093F\u0936\u094D\u092E\u093E." + C: "\u0938\u0939\u092F\u094B\u0917\u0964" + D: "\u092A\u0942\u0902\u091C\u0940\u0935\u093E\u0926." + input_correct_responses: + - D + input_question: "\u0914\u092A\u091A\u093E\u0930\u093F\u0915 \u0930\u0942\u092A\ + \ \u0938\u0947 \u0924\u0930\u094D\u0915\u0938\u0902\u0917\u0924 \u0915\u093E\ + \u0928\u0942\u0928 \u0915\u0947 \u0935\u093F\u0915\u093E\u0938 \u0915\u0947\ + \ \u092C\u093E\u0930\u0947 \u092E\u0947\u0902 \u0935\u0947\u092C\u0930 \u0915\ + \u0940 \u0935\u094D\u092F\u093E\u0916\u094D\u092F\u093E \u0915\u094B \u0915\u094C\ + \u0928 \u0938\u093E \u0936\u092C\u094D\u0926 \u0938\u092C\u0938\u0947 \u0905\ + \u091A\u094D\u091B\u093E \u0938\u093E\u0930\u093E\u0902\u0936\u093F\u0924 \u0915\ + \u0930\u0924\u093E \u0939\u0948?" + - input_choice_list: + A: "\u092A\u094D\u0930\u093E\u0915\u0943\u0924\u093F\u0915 \u0915\u093E\u0928\ + \u0942\u0928" + B: "\u0935\u093F\u0936\u094D\u0932\u0947\u0937\u0923\u093E\u0924\u094D\u092E\ + \u0915" + C: "\u0910\u0924\u093F\u0939\u093E\u0938\u093F\u0915" + D: "\u0938\u092E\u093E\u091C\u0936\u093E\u0938\u094D\u0924\u094D\u0930\u0940\ + \u092F" + input_correct_responses: + - A + input_question: "\u0928\u094D\u092F\u093E\u092F\u0936\u093E\u0938\u094D\u0924\u094D\ + \u0930 \u0915\u0947 ________ \u0938\u094D\u0915\u0942\u0932 \u0915\u093E \u092E\ + \u093E\u0928\u0928\u093E \u0939\u0948 \u0915\u093F \u0915\u093E\u0928\u0942\u0928\ + \ "\u0938\u0939\u0940" \u092A\u0930 \u0906\u0927\u093E\u0930\u093F\ + \u0924 \u0939\u0948\u0964" + - input_choice_list: + A: "\u092A\u0924\u094D\u0930 \u092C\u0947\u091A\u0928\u0947 \u0915\u093E \u092A\ + \u094D\u0930\u0938\u094D\u0924\u093E\u0935 \u0939\u0948" + B: "\u0915\u094B\u0908 \u0935\u0948\u0927 \u092A\u094D\u0930\u0938\u094D\u0924\ + \u093E\u0935 \u092A\u0924\u094D\u0930 \u0926\u094D\u0935\u093E\u0930\u093E\ + \ \u0928\u0939\u0940\u0902 \u0926\u093F\u092F\u093E \u091C\u093E \u0938\u0915\ + \u0924\u093E\u0964" + C: "\u092A\u0924\u094D\u0930 \u092E\u0947\u0902 \u090F\u0915 \u0935\u0948\u0927\ + \ \u092A\u094D\u0930\u0938\u094D\u0924\u093E\u0935 \u0939\u0948 \u091C\u094B\ + \ \u0909\u091A\u093F\u0924 \u0938\u092E\u092F \u0915\u0947 \u092D\u0940\u0924\ + \u0930 \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u094B \u091C\u093E\u090F\ + \u0917\u093E\u0964" + D: "\u092A\u0924\u094D\u0930 \u092E\u0947\u0902 \u092A\u094D\u0930\u0938\u094D\ + \u0924\u093E\u0935 \u0915\u0947 \u0906\u0935\u0936\u094D\u092F\u0915 \u0924\ + \u0924\u094D\u0935\u094B\u0902 \u092E\u0947\u0902 \u0938\u0947 \u090F\u0915\ + \ \u0915\u093E \u0905\u092D\u093E\u0935 \u0939\u0948\u0964" + input_correct_responses: + - D + input_question: "\u0907\u0935\u0930\u0938\u0928 \u091C\u094D\u0935\u0948\u0932\ + \u0930\u094D\u0938 \u0928\u0947 \u092E\u093F\u0932\u0930 \u0915\u094B \u090F\ + \u0915 \u092A\u0924\u094D\u0930 \u0932\u093F\u0916\u093E, '\u0939\u092E\u0947\ + \u0902 \u090F\u0915 \u0905\u0938\u093E\u0927\u093E\u0930\u0923 \u092C\u0922\u093C\ + \u093F\u092F\u093E \u0938\u0947\u0932\u094D\u092B \u0935\u093E\u0907\u0902\u0921\ + \u093F\u0902\u0917 \u0930\u094B\u0932\u0949\u0915\u094D\u0938 \u0918\u0921\u093C\ + \u0940 \u092E\u093F\u0932\u0940 \u0939\u0948 \u091C\u093F\u0938\u0947 \u0939\ + \u092E \u0906\u092A\u0915\u094B \u092C\u0939\u0941\u0924 \u0905\u0928\u0941\u0915\ + \u0942\u0932 \u0915\u0940\u092E\u0924 \u092A\u0930 \u092C\u0947\u091A\u0947\u0902\ + \u0917\u0947\u0964'" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_jurisprudence +tag: mmlu_hi_llama_humanities_tasks +task: mmlu_hi_llama_jurisprudence +task_alias: jurisprudence diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_logical_fallacies.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_logical_fallacies.yaml new file mode 100644 index 0000000000000000000000000000000000000000..44b8037161b20268c8d0f5b2522d0e213ff94cbd --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_logical_fallacies.yaml @@ -0,0 +1,122 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0924\u0941\u092E \u0920\u0940\u0915 \u0939\u094B" + B: "\u0918\u094B\u0921\u093C\u093E \u0939\u0901\u0938\u093E" + C: "\u0935\u094D\u092F\u0915\u094D\u0924\u093F \u0915\u0947 \u0935\u093F\u0930\ + \u0941\u0926\u094D\u0927 \u0924\u0930\u094D\u0915" + D: ignoratio elenchi + input_correct_responses: + - C + input_question: "\u092F\u0926\u093F \u0915\u094B\u0908 \u0935\u093F\u0930\u094B\ + \u0927\u0940 \u0915\u0947 \u0924\u0930\u094D\u0915 \u0915\u093E \u091C\u0935\ + \u093E\u092C \u0926\u0947\u0928\u0947 \u0915\u0947 \u092C\u091C\u093E\u092F\ + , \u0915\u093F\u0938\u0940 \u0935\u093F\u0930\u094B\u0927\u0940 \u0924\u0930\ + \u094D\u0915\u0915\u0930\u094D\u0924\u093E \u0915\u0947 \u091A\u0930\u093F\u0924\ + \u094D\u0930 \u092A\u0930 \u0939\u092E\u0932\u093E \u0915\u0930\u0924\u093E\ + \ \u0939\u0948, \u0924\u094B \u092A\u0939\u0932\u0947 \u0935\u094D\u092F\u0915\ + \u094D\u0924\u093F \u0928\u0947 \u0938\u0902\u092D\u0935\u0924\u0903 \u0928\u093F\ + \u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\u0947\ + \ \u0915\u094C\u0928 \u0938\u0940 \u092D\u094D\u0930\u093E\u0902\u0924\u093F\ + \ \u0915\u0940 \u0939\u0948?" + - input_choice_list: + A: "\u0915\u093F\u0938\u0940 \u091A\u0940\u091C\u093C \u092A\u0930 \u092C\u0939\ + \u0938 \u0915\u0930\u0928\u093E \u0915\u0947\u0935\u0932 \u0907\u0938\u0932\ + \u093F\u090F \u0918\u091F\u093F\u092F\u093E \u0939\u0948 \u0915\u094D\u092F\ + \u094B\u0902\u0915\u093F \u092F\u0939 \u0910\u0938\u093E \u0915\u0941\u091B\ + \ \u0928\u0939\u0940\u0902 \u0915\u0930\u0924\u093E \u0939\u0948 \u091C\u093F\ + \u0938\u0947 \u0915\u0930\u0928\u0947 \u0915\u093E \u0907\u0938\u0915\u093E\ + \ \u0907\u0930\u093E\u0926\u093E \u0915\u092D\u0940 \u0928\u0939\u0940\u0902\ + \ \u0925\u093E\u0964" + B: "\u092A\u094D\u0930\u0938\u094D\u0924\u093E\u0935 \u092E\u0947\u0902 \u090F\ + \u0915 \u0938\u0947 \u0905\u0927\u093F\u0915 \u0926\u093E\u0935\u0947 \u0936\ + \u093E\u092E\u093F\u0932 \u0915\u0930\u0928\u093E \u0914\u0930 \u090F\u0915\ + \ \u0926\u093E\u0935\u0947 \u0915\u0947 \u0938\u092C\u0942\u0924 \u0915\u094B\ + \ \u0938\u092D\u0940 \u0926\u093E\u0935\u094B\u0902 \u0915\u0947 \u0932\u093F\ + \u090F \u0938\u092C\u0942\u0924 \u092E\u093E\u0928\u0928\u093E\u0964" + C: "\u0938\u092C\u0942\u0924\u094B\u0902 \u0915\u0940 \u091C\u093E\u0902\u091A\ + \ \u0915\u0930\u0928\u0947 \u0938\u0947 \u092A\u0939\u0932\u0947 \u0928\u093F\ + \u0937\u094D\u0915\u0930\u094D\u0937 \u0928\u093F\u0915\u093E\u0932\u0928\u093E\ + , \u0914\u0930 \u0915\u0947\u0935\u0932 \u0909\u0928 \u0938\u092C\u0942\u0924\ + \u094B\u0902 \u092A\u0930 \u0935\u093F\u091A\u093E\u0930 \u0915\u0930\u0928\ + \u093E \u091C\u094B \u0909\u0938 \u0928\u093F\u0937\u094D\u0915\u0930\u094D\ + \u0937 \u0915\u093E \u0938\u092E\u0930\u094D\u0925\u0928 \u0915\u0930\u0924\ + \u0947 \u0939\u0948\u0902\u0964" + D: "\u0910\u0938\u093E \u092A\u094D\u0930\u0936\u094D\u0928 \u092A\u0942\u091B\ + \u0928\u093E \u091C\u093F\u0938\u092E\u0947\u0902 \u092F\u093E \u0924\u094B\ + \ \u090F\u0915 \u0905\u092A\u094D\u0930\u092E\u093E\u0923\u093F\u0924 \u0927\ + \u093E\u0930\u0923\u093E \u092F\u093E \u090F\u0915 \u0938\u0947 \u0905\u0927\ + \u093F\u0915 \u092A\u094D\u0930\u0936\u094D\u0928 \u0936\u093E\u092E\u093F\ + \u0932 \u0939\u094B\u0902, \u0907\u0938 \u092A\u094D\u0930\u0915\u093E\u0930\ + \ \u0938\u0940\u0927\u093E \u0939\u093E\u0901 \u092F\u093E \u0928\u093E \u0909\ + \u0924\u094D\u0924\u0930 \u0905\u0930\u094D\u0925\u0939\u0940\u0928 \u0939\ + \u094B \u091C\u093E\u0924\u093E \u0939\u0948\u0964" + input_correct_responses: + - D + input_question: "\u091C\u091F\u093F\u0932 \u092A\u094D\u0930\u0936\u094D\u0928\ + \ \u092D\u094D\u0930\u093E\u0902\u0924\u093F \u0938\u0947 \u092C\u0928\u093E\ + \ \u0939\u0948" + - input_choice_list: + A: "\u0932\u0918\u0941 \u0906\u0927\u093E\u0930 \u0915\u094B \u092A\u0942\u0930\ + \u094D\u0935\u0935\u0943\u0924\u094D\u0924 \u0915\u094B \u0928\u0915\u093E\ + \u0930\u0928\u093E \u091A\u093E\u0939\u093F\u090F" + B: "\u092A\u094D\u0930\u092E\u0941\u0916 \u0906\u0927\u093E\u0930 \u0915\u094B\ + \ \u092A\u0930\u093F\u0923\u093E\u092E\u0940 \u0915\u0940 \u092A\u0941\u0937\ + \u094D\u091F\u093F \u0915\u0930\u0928\u0940 \u091A\u093E\u0939\u093F\u090F" + C: "\u092E\u0927\u094D\u092F \u092A\u0926 \u0915\u093E \u0909\u092A\u092F\u094B\ + \u0917 \u0915\u092E \u0938\u0947 \u0915\u092E \u090F\u0915 \u0906\u0927\u093E\ + \u0930 \u092E\u0947\u0902 \u0938\u093E\u0930\u094D\u0935\u092D\u094C\u092E\ + \u093F\u0915 \u092F\u093E \u0905\u092F\u094B\u0917\u094D\u092F \u0905\u0930\ + \u094D\u0925 \u092E\u0947\u0902 \u0915\u093F\u092F\u093E \u091C\u093E\u0928\ + \u093E \u091A\u093E\u0939\u093F\u090F" + D: "\u090A\u092A\u0930 \u0915\u0947 \u0938\u092D\u0940" + input_correct_responses: + - C + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u0935\u0948\ + \u0927 \u0936\u094D\u0930\u0947\u0923\u0940\u092C\u0926\u094D\u0927 \u0928\u094D\ + \u092F\u093E\u092F\u0935\u093E\u0915\u094D\u092F \u0915\u0947 \u092C\u093E\u0930\ + \u0947 \u092E\u0947\u0902 \u0938\u0924\u094D\u092F \u0939\u0948?" + - input_choice_list: + A: "\u0935\u093F\u092D\u093E\u091C\u0928" + B: "\u0938\u0902\u0918\u091F\u0928" + C: "\u0935\u094D\u092F\u0915\u094D\u0924\u093F \u0938\u0947 \u0905\u092A\u0940\ + \u0932 \u0915\u0930\u0947\u0902" + D: "\u0905\u091C\u094D\u091E\u093E\u0928\u0924\u093E \u0915\u0940 \u0905\u092A\ + \u0940\u0932" + input_correct_responses: + - B + input_question: "\u092F\u0939 \u0924\u0930\u094D\u0915 \u0926\u0947\u0928\u093E\ + \ \u0915\u093F \u091C\u094B \u092D\u093E\u0917\u094B\u0902 \u0915\u0947 \u092C\ + \u093E\u0930\u0947 \u092E\u0947\u0902 \u0938\u0924\u094D\u092F \u0939\u0948\ + \ \u0935\u0939 \u0938\u0902\u092A\u0942\u0930\u094D\u0923 \u0915\u0947 \u0932\ + \u093F\u090F \u092D\u0940 \u0938\u0924\u094D\u092F \u0939\u094B\u0928\u093E\ + \ \u091A\u093E\u0939\u093F\u090F, \u092F\u0939 \u090F\u0915 \u092D\u094D\u0930\ + \u093E\u0902\u0924\u093F \u0939\u0948..." + - input_choice_list: + A: "\u0916\u093C\u0930\u093E\u092C \u0916\u0947\u0932 \u0915\u094C\u0936\u0932" + B: "\u0915\u0930\u0941\u0923\u093E \u0915\u0940 \u0905\u092A\u0940\u0932" + C: "\u0935\u094D\u092F\u0915\u094D\u0924\u093F \u0915\u0947 \u0935\u093F\u0930\ + \u0941\u0926\u094D\u0927 \u0924\u0930\u094D\u0915" + D: "\u0916\u0902\u0921\u0928 \u0915\u0940 \u0905\u091C\u094D\u091E\u093E\u0928\ + \u0924\u093E" + input_correct_responses: + - D + input_question: "\u091C\u092C \u090F\u0915 \u0924\u0930\u094D\u0915\u0915\u0930\ + \u094D\u0924\u093E \u092A\u094D\u0930\u0924\u093F\u0928\u093F\u092F\u0941\u0915\ + \u094D\u0924\u093F \u0915\u0947 \u0926\u094C\u0930\u093E\u0928 \u092D\u094D\u0930\ + \u092E \u092A\u0948\u0926\u093E \u0915\u0930\u0924\u093E \u0939\u0948, \u0915\ + \u094D\u092F\u094B\u0902\u0915\u093F \u092A\u094D\u0930\u0924\u093F\u0928\u093F\ + \u092F\u0941\u0915\u094D\u0924\u093F \u092E\u0947\u0902 \u0938\u0902\u0932\u0917\ + \u094D\u0928 \u0939\u094B\u0928\u0947 \u0915\u0940 \u0935\u093E\u0938\u094D\u0924\ + \u0935\u093F\u0915 \u092F\u093E \u0926\u093F\u0916\u093E\u0935\u091F\u0940 \u0915\ + \u094D\u0937\u092E\u0924\u093E \u0915\u0940 \u0915\u092E\u0940 \u0939\u094B\u0924\ + \u0940 \u0939\u0948, \u0924\u094B \u0909\u0938 \u0924\u0930\u094D\u0915\u0915\ + \u0930\u094D\u0924\u093E \u0928\u0947 \u092D\u094D\u0930\u093E\u0902\u0924\u093F\ + \ \u0915\u0940 \u0939\u094B \u0938\u0915\u0924\u0940 \u0939\u0948\u0964" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_logical_fallacies +tag: mmlu_hi_llama_humanities_tasks +task: mmlu_hi_llama_logical_fallacies +task_alias: logical_fallacies diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_machine_learning.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_machine_learning.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fe82b5e9283a62698c95e50e9b5f289947697864 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_machine_learning.yaml @@ -0,0 +1,174 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: 2.0/15 + B: 1.0/7 + C: 3.0/16 + D: 1.0/5 + input_correct_responses: + - B + input_question: "\u090F\u0915 6-\u0924\u0930\u092B\u093E \u092A\u093E\u0938\u0947\ + \ \u0915\u094B 15 \u092C\u093E\u0930 \u0918\u0941\u092E\u093E\u092F\u093E \u091C\ + \u093E\u0924\u093E \u0939\u0948 \u0914\u0930 \u092A\u0930\u093F\u0923\u093E\u092E\ + \ \u0907\u0938 \u092A\u094D\u0930\u0915\u093E\u0930 \u0939\u0948\u0902: \u092A\ + \u0915\u094D\u0937 1 0 \u092C\u093E\u0930 \u090A\u092A\u0930 \u0906\u0924\u093E\ + \ \u0939\u0948; \u092A\u0915\u094D\u0937 2: 1 \u092C\u093E\u0930; \u092A\u0915\ + \u094D\u0937 3: 2 \u092C\u093E\u0930; \u092A\u0915\u094D\u0937 4: 3 \u092C\u093E\ + \u0930; \u092A\u0915\u094D\u0937 5:4 \u092C\u093E\u0930; \u092A\u0915\u094D\u0937\ + \ 6:5 \u092C\u093E\u0930. \u0907\u0928 \u092A\u0930\u093F\u0923\u093E\u092E\u094B\ + \u0902 \u0915\u0947 \u0906\u0927\u093E\u0930 \u092A\u0930, \u0910\u0921-1 \u0938\ + \u094D\u092E\u0942\u0925\u093F\u0902\u0917 \u0915\u093E \u0909\u092A\u092F\u094B\ + \u0917 \u0915\u0930\u0924\u0947 \u0938\u092E\u092F \u0938\u093E\u0907\u0921\ + \ 3 \u0915\u0947 \u0906\u0928\u0947 \u0915\u0940 \u0915\u094D\u092F\u093E \u0938\ + \u0902\u092D\u093E\u0935\u0928\u093E \u0939\u0948?" + - input_choice_list: + A: "\u092F\u093E\u0926\u0943\u091A\u094D\u091B\u093F\u0915 \u092B\u0938\u0932\ + \ \u0914\u0930 \u0915\u094D\u0937\u0948\u0924\u093F\u091C \u092B\u094D\u0932\ + \u093F\u092A" + B: "\u092F\u093E\u0926\u0943\u091A\u094D\u091B\u093F\u0915 \u092B\u0938\u0932\ + \ \u0914\u0930 \u090A\u0930\u094D\u0927\u094D\u0935\u093E\u0927\u0930 \u092B\ + \u094D\u0932\u093F\u092A" + C: posterization + D: "\u0915\u091F\u094C\u0924\u0940" + input_correct_responses: + - A + input_question: "\u092A\u094D\u0930\u093E\u0915\u0943\u0924\u093F\u0915 \u091B\ + \u0935\u093F\u092F\u094B\u0902 \u0915\u0947 \u0932\u093F\u090F \u0915\u094C\u0928\ + \ \u0938\u093E \u091B\u0935\u093F \u0921\u0947\u091F\u093E \u0938\u0902\u0935\ + \u0930\u094D\u0926\u094D\u0927\u0928 \u0938\u092C\u0938\u0947 \u0906\u092E \u0939\ + \u0948?" + - input_choice_list: + A: "\u092E\u0947\u0930\u0940 \u0935\u093F\u0927\u093F \u092A\u093F\u091B\u0932\ + \u0940 \u0938\u092D\u0940 \u0935\u093F\u0927\u093F\u092F\u094B\u0902 \u0915\ + \u0940 \u0924\u0941\u0932\u0928\u093E \u092E\u0947\u0902 \u0915\u092E \u092A\ + \u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u0924\u094D\u0930\u0941\u091F\ + \u093F \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0924\u0940\ + \ \u0939\u0948!" + B: "\u092E\u0947\u0930\u0940 \u0935\u093F\u0927\u093F \u092A\u093F\u091B\u0932\ + \u0940 \u0938\u092D\u0940 \u0935\u093F\u0927\u093F\u092F\u094B\u0902 \u0915\ + \u0940 \u0924\u0941\u0932\u0928\u093E \u092E\u0947\u0902 \u0915\u092E \u092A\ + \u0930\u0940\u0915\u094D\u0937\u0923 \u0924\u094D\u0930\u0941\u091F\u093F\ + \ \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0924\u0940 \u0939\ + \u0948! (\u092B\u0941\u091F\u0928\u094B\u091F: \u091C\u092C \u0928\u093F\u092F\ + \u092E\u093F\u0924\u0940\u0915\u0930\u0923 \u092A\u0948\u0930\u093E\u092E\u0940\ + \u091F\u0930 \u03BB \u091A\u0941\u0928\u093E \u091C\u093E\u0924\u093E \u0939\ + \u0948 \u0924\u093E\u0915\u093F \u092A\u0930\u0940\u0915\u094D\u0937\u0923\ + \ \u0924\u094D\u0930\u0941\u091F\u093F \u0915\u094B \u0915\u092E \u0915\u093F\ + \u092F\u093E \u091C\u093E \u0938\u0915\u0947\u0964)" + C: "\u092E\u0947\u0930\u0940 \u0935\u093F\u0927\u093F \u092A\u093F\u091B\u0932\ + \u0940 \u0938\u092D\u0940 \u0935\u093F\u0927\u093F\u092F\u094B\u0902 \u0915\ + \u0940 \u0924\u0941\u0932\u0928\u093E \u092E\u0947\u0902 \u0915\u092E \u092A\ + \u0930\u0940\u0915\u094D\u0937\u0923 \u0924\u094D\u0930\u0941\u091F\u093F\ + \ \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0924\u0940 \u0939\ + \u0948! (\u092B\u0941\u091F\u0928\u094B\u091F: \u091C\u092C \u0928\u093F\u092F\ + \u092E\u093F\u0924\u0940\u0915\u0930\u0923 \u092A\u0948\u0930\u093E\u092E\u0940\ + \u091F\u0930 \u03BB \u091A\u0941\u0928\u093E \u091C\u093E\u0924\u093E \u0939\ + \u0948 \u0924\u093E\u0915\u093F \u0915\u094D\u0930\u0949\u0938-\u0938\u0924\ + \u094D\u092F\u093E\u092A\u0928 \u0924\u094D\u0930\u0941\u091F\u093F \u0915\ + \u094B \u0915\u092E \u0915\u093F\u092F\u093E \u091C\u093E \u0938\u0915\u0947\ + \u0964)" + D: "\u092E\u0947\u0930\u0940 \u0935\u093F\u0927\u093F \u092A\u093F\u091B\u0932\ + \u0940 \u0938\u092D\u0940 \u0935\u093F\u0927\u093F\u092F\u094B\u0902 \u0915\ + \u0940 \u0924\u0941\u0932\u0928\u093E \u092E\u0947\u0902 \u0915\u092E \u0915\ + \u094D\u0930\u0949\u0938-\u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0924\ + \u094D\u0930\u0941\u091F\u093F \u092A\u094D\u0930\u093E\u092A\u094D\u0924\ + \ \u0915\u0930\u0924\u0940 \u0939\u0948! (\u092B\u0941\u091F\u0928\u094B\u091F\ + : \u091C\u092C \u0928\u093F\u092F\u092E\u093F\u0924\u0940\u0915\u0930\u0923\ + \ \u092A\u0948\u0930\u093E\u092E\u0940\u091F\u0930 \u03BB \u091A\u0941\u0928\ + \u093E \u091C\u093E\u0924\u093E \u0939\u0948 \u0924\u093E\u0915\u093F \u0915\ + \u094D\u0930\u0949\u0938-\u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0924\ + \u094D\u0930\u0941\u091F\u093F \u0915\u094B \u0915\u092E \u0915\u093F\u092F\ + \u093E \u091C\u093E \u0938\u0915\u0947\u0964)" + input_correct_responses: + - C + input_question: "\u0906\u092A \u0935\u093F\u0936\u094D\u0935 \u0915\u0947 \u0938\ + \u092C\u0938\u0947 \u0936\u093E\u0928\u0926\u093E\u0930 \u092E\u0936\u0940\u0928\ + \ \u0932\u0930\u094D\u0928\u093F\u0902\u0917 \u0938\u092E\u094D\u092E\u0947\u0932\ + \u0928 \u0915\u0947 \u0932\u093F\u090F \u0915\u093E\u0917\u091C\u093E\u0924\ + \ \u0915\u0940 \u0938\u092E\u0940\u0915\u094D\u0937\u093E \u0915\u0930 \u0930\ + \u0939\u0947 \u0939\u0948\u0902, \u0914\u0930 \u0906\u092A\u0915\u094B \u0928\ + \u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u0926\u093E\u0935\u094B\ + \u0902 \u0915\u0947 \u0938\u093E\u0925 \u092A\u094D\u0930\u0938\u094D\u0924\u0941\ + \u0924\u093F\u092F\u093E\u0901 \u0926\u093F\u0916\u093E\u0908 \u0926\u0947\u0924\ + \u0940 \u0939\u0948\u0902\u0964 \u0906\u092A \u0915\u093F\u0938\u0947 \u0938\ + \u094D\u0935\u0940\u0915\u093E\u0930 \u0915\u0930\u0928\u0947 \u092A\u0930 \u0935\ + \u093F\u091A\u093E\u0930 \u0915\u0930\u0947\u0902\u0917\u0947?" + - input_choice_list: + A: "\u0932\u0917\u092D\u0917 10 \u0909\u0926\u093E\u0939\u0930\u0923" + B: "\u0932\u0917\u092D\u0917 100 \u0909\u0926\u093E\u0939\u0930\u0923" + C: "100 \u0914\u0930 500 \u0909\u0926\u093E\u0939\u0930\u0923\u094B\u0902 \u0915\ + \u0947 \u092C\u0940\u091A" + D: "1000 \u0938\u0947 \u0905\u0927\u093F\u0915 \u0909\u0926\u093E\u0939\u0930\ + \u0923" + input_correct_responses: + - D + input_question: "0/1 \u0939\u093E\u0928\u093F \u0915\u093E \u0905\u0928\u0941\u092E\ + \u093E\u0928 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0928\u0947\ + \ \u0915\u0947 \u0932\u093F\u090F \u091C\u094B \u0935\u093E\u0938\u094D\u0924\ + \u0935\u093F\u0915 0/1 \u0939\u093E\u0928\u093F \u0915\u0947 1 \u092A\u094D\u0930\ + \u0924\u093F\u0936\u0924 \u0938\u0947 \u0915\u092E \u0939\u0948 (\u0938\u0902\ + \u092D\u093E\u0935\u0928\u093E 95% \u0915\u0947 \u0938\u093E\u0925), \u0939\u094B\ + \u092B\u0921\u093F\u0902\u0917 \u0915\u0940 \u0905\u0938\u092E\u093E\u0928\u0924\ + \u093E \u0915\u0947 \u0905\u0928\u0941\u0938\u093E\u0930 \u0906\u0908\u0906\u0908\ + \u0921\u0940 \u092A\u0930\u0940\u0915\u094D\u0937\u0923 \u0938\u0947\u091F \u092E\ + \u0947\u0902 \u0915\u093F\u0924\u0928\u0947 \u0909\u0926\u093E\u0939\u0930\u0923\ + \ \u0939\u094B\u0928\u0947 \u091A\u093E\u0939\u093F\u090F?" + - input_choice_list: + A: "\u092F\u0939 \u0915\u092E\u094D\u092A\u094D\u092F\u0942\u091F\u0947\u0936\ + \u0928\u0932 \u0930\u0942\u092A \u0938\u0947 \u092C\u0939\u0941\u0924 \u092E\ + \u0939\u0902\u0917\u093E \u0939\u0948." + B: "\u0907\u0938\u0915\u093E \u092A\u0930\u093F\u0923\u093E\u092E \u0938\u0902\ + \u092D\u0935\u0924\u0903 \u090F\u0915 \u0928\u093F\u0930\u094D\u0923\u092F\ + \ \u0935\u0943\u0915\u094D\u0937 \u0939\u094B\u0917\u093E \u091C\u094B \u092A\ + \u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u0938\u0947\u091F \u0914\ + \u0930 \u091F\u0947\u0938\u094D\u091F\u0938\u0947\u091F \u092A\u0930 \u0916\ + \u0930\u093E\u092C \u0938\u094D\u0915\u094B\u0930 \u0915\u0930\u0947\u0917\ + \u093E\u0964" + C: "\u0907\u0938\u0915\u093E \u092A\u0930\u093F\u0923\u093E\u092E \u0938\u0902\ + \u092D\u0935\u0924\u0903 \u090F\u0915 \u0928\u093F\u0930\u094D\u0923\u092F\ + \ \u0935\u0943\u0915\u094D\u0937 \u0939\u094B\u0917\u093E \u091C\u094B \u092A\ + \u094D\u0930\u0936\u093F\u0915\u094D\u0937\u0923 \u0938\u0947\u091F \u092A\ + \u0930 \u0905\u091A\u094D\u091B\u093E \u0938\u094D\u0915\u094B\u0930 \u0915\ + \u0930\u0924\u093E \u0939\u0948 \u0932\u0947\u0915\u093F\u0928 \u092A\u0930\ + \u0940\u0915\u094D\u0937\u0923 \u0938\u0947\u091F \u092A\u0930 \u0916\u0930\ + \u093E\u092C\u0964" + D: "\u0907\u0938\u0915\u093E \u092A\u0930\u093F\u0923\u093E\u092E \u0938\u0902\ + \u092D\u0935\u0924\u0903 \u090F\u0915 \u0928\u093F\u0930\u094D\u0923\u092F\ + \ \u0935\u0943\u0915\u094D\u0937 \u0939\u094B\u0917\u093E \u091C\u094B \u091F\ + \u0947\u0938\u094D\u091F\u0938\u0947\u091F \u092A\u0930 \u0905\u091A\u094D\ + \u091B\u093E \u0938\u094D\u0915\u094B\u0930 \u0915\u0930\u0924\u093E \u0939\ + \u0948 \u0932\u0947\u0915\u093F\u0928 \u092A\u094D\u0930\u0936\u093F\u0915\ + \u094D\u0937\u0923 \u0938\u0947\u091F \u092A\u0930 \u0916\u0930\u093E\u092C\ + \ \u0938\u094D\u0915\u094B\u0930 \u0915\u0930\u0924\u093E \u0939\u0948\u0964" + input_correct_responses: + - C + input_question: "\u092A\u0930\u0902\u092A\u0930\u093E\u0917\u0924 \u0930\u0942\ + \u092A \u0938\u0947, \u091C\u092C \u0939\u092E\u093E\u0930\u0947 \u092A\u093E\ + \u0938 \u0928\u093F\u0930\u094D\u0923\u092F-\u0935\u0943\u0915\u094D\u0937 \u0938\ + \u0940\u0916\u0928\u0947 \u0915\u0947 \u0926\u094C\u0930\u093E\u0928 \u090F\u0915\ + \ \u0935\u093E\u0938\u094D\u0924\u0935\u093F\u0915-\u092E\u0942\u0932\u094D\u092F\ + \u0935\u093E\u0928 \u0907\u0928\u092A\u0941\u091F \u0935\u093F\u0936\u0947\u0937\ + \u0924\u093E \u0939\u094B\u0924\u0940 \u0939\u0948, \u0924\u094B \u0939\u092E\ + \ \u0907\u0938 \u0906\u0927\u093E\u0930 \u092A\u0930 \u090F\u0915 \u0926\u094D\ + \u0935\u093F\u0906\u0927\u093E\u0930\u0940 \u0935\u093F\u092D\u093E\u091C\u0928\ + \ \u092A\u0930 \u0935\u093F\u091A\u093E\u0930 \u0915\u0930\u0924\u0947 \u0939\ + \u0948\u0902 \u0915\u093F \u0915\u094D\u092F\u093E \u0935\u093F\u0936\u0947\u0937\ + \u0924\u093E \u0915\u0941\u091B \u0938\u0940\u092E\u093E \u0938\u0947 \u090A\ + \u092A\u0930 \u092F\u093E \u0928\u0940\u091A\u0947 \u0939\u0948\u0964 \u092A\ + \u0948\u091F \u0915\u093E \u0938\u0941\u091D\u093E\u0935 \u0939\u0948 \u0915\ + \u093F \u0907\u0938\u0915\u0947 \u092C\u091C\u093E\u092F \u0939\u092E\u0947\u0902\ + \ \u0935\u093F\u0936\u0947\u0937\u0924\u093E \u0915\u0947 \u092A\u094D\u0930\ + \u0924\u094D\u092F\u0947\u0915 \u0935\u093F\u0936\u093F\u0937\u094D\u091F \u092E\ + \u093E\u0928 \u0915\u0947 \u0932\u093F\u090F \u090F\u0915 \u0936\u093E\u0916\ + \u093E \u0915\u0947 \u0938\u093E\u0925 \u092E\u0932\u094D\u091F\u0940\u0935\u0947\ + \ \u0935\u093F\u092D\u093E\u091C\u0928 \u0915\u0930\u0928\u093E \u091A\u093E\ + \u0939\u093F\u090F\u0964 \u0928\u0940\u091A\u0947 \u0926\u0940 \u0917\u0908\ + \ \u0938\u0942\u091A\u0940 \u0938\u0947 \u092A\u0948\u091F \u0915\u0947 \u0938\ + \u0941\u091D\u093E\u0935 \u0915\u0940 \u0938\u092C\u0938\u0947 \u092C\u0921\u093C\ + \u0940 \u0938\u092E\u0938\u094D\u092F\u093E \u091A\u0941\u0928\u0947\u0902:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_machine_learning +tag: mmlu_hi_llama_stem_tasks +task: mmlu_hi_llama_machine_learning +task_alias: machine_learning diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_management.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_management.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a5bbddcae8340090c39822a47576338fd2d8947c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_management.yaml @@ -0,0 +1,81 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u092A\u094D\u0930\u093E\u0930\u0902\u092D\u093F\u0915 \u0938\u094D\u0925\ + \u093F\u0924\u093F \u0914\u0930 \u0905\u0902\u0924\u093F\u092E \u0938\u094D\ + \u0925\u093F\u0924\u093F" + B: "\u0936\u0941\u0930\u0941\u0906\u0924\u0940 \u092E\u093E\u0939\u094C\u0932\ + \ \u0914\u0930 \u092C\u0926\u0932\u093E \u0939\u0941\u0906 \u092E\u093E\u0939\ + \u094C\u0932" + C: "\u0938\u0902\u0917\u0920\u0928\u093E\u0924\u094D\u092E\u0915 \u0938\u0902\ + \u0930\u091A\u0928\u093E \u0914\u0930 \u0915\u0902\u0921\u0940\u0936\u0928\ + \u093F\u0902\u0917" + D: "\u0938\u0902\u0930\u091A\u0928\u093E \u0914\u0930 \u0935\u093F\u091A\u093E\ + \u0930 \u0906\u0930\u0902\u092D \u0915\u0930\u0928\u093E" + input_correct_responses: + - D + input_question: "\u0928\u0947\u0924\u0943\u0924\u094D\u0935 \u092E\u0947\u0902\ + \ \u0913\u0939\u093F\u092F\u094B \u0905\u0927\u094D\u092F\u092F\u0928 \u0915\ + \u0947 \u0926\u094B \u092E\u0941\u0916\u094D\u092F \u0906\u092F\u093E\u092E\ + \ \u0915\u094D\u092F\u093E \u0939\u0948\u0902?" + - input_choice_list: + A: "\u092B\u094D\u0930\u0947\u0921\u0930\u093F\u0915 \u0939\u0930\u094D\u091F\ + \u091C\u093C\u092C\u0930\u094D\u0917" + B: "\u0921\u0940\u0938\u0940 \u092E\u0948\u0915\u094D\u0932\u0947\u0932\u0948\ + \u0902\u0921" + C: "\u0905\u092C\u094D\u0930\u093E\u0939\u092E \u092E\u0947\u0938\u094D\u0932\ + \u094B" + D: "\u0921\u0917\u0932\u0938 \u092E\u0948\u0915\u0917\u094D\u0930\u0947\u0917\ + \u0930" + input_correct_responses: + - A + input_question: "\u0938\u094D\u0935\u091A\u094D\u091B\u0924\u093E \u0915\u093E\ + \u0930\u0915 \u0915\u093F\u0938 \u0932\u0947\u0916\u0915 \u0938\u0947 \u0938\ + \u092E\u094D\u092C\u0902\u0927\u093F\u0924 \u0939\u0948\u0902?" + - input_choice_list: + A: "\u092A\u094D\u0930\u0924\u0940\u0915" + B: "\u0905\u0928\u0941\u0937\u094D\u0920\u093E\u0928 \u090F\u0935\u0902 \u0926\ + \u093F\u0928\u091A\u0930\u094D\u092F\u093E" + C: "\u092C\u093F\u091C\u0932\u0940 \u0938\u0902\u0930\u091A\u0928\u093E\u090F\ + \u0901" + D: "\u0928\u093F\u092F\u0902\u0924\u094D\u0930\u0923 \u092A\u094D\u0930\u0923\ + \u093E\u0932\u0940" + input_correct_responses: + - A + input_question: "\u0938\u093E\u0902\u0938\u094D\u0915\u0943\u0924\u093F\u0915\ + \ \u0935\u0947\u092C \u0915\u093E \u0915\u094C\u0928 \u0938\u093E \u0924\u0924\ + \u094D\u0935 \u0930\u0940\u0917\u0932\u093F\u092F\u093E \u092C\u0928\u093E\u0924\ + \u093E \u0939\u0948?" + - input_choice_list: + A: "\u0939\u094C\u0938\u0932\u093E" + B: "\u0928\u0935\u093E\u091A\u093E\u0930" + C: "\u0935\u093F\u0915\u093E\u0938 \u0938\u0902\u0938\u093E\u0927\u0928" + D: "\u0905\u0928\u0941\u0915\u0942\u0932\u0928" + input_correct_responses: + - A + input_question: "\u0915\u094C\u0928 \u0938\u0940 \u0935\u093F\u0936\u0947\u0937\ + \u0924\u093E \u092A\u094D\u0930\u092C\u0902\u0927\u0928 \u0915\u0947 '\u0913\ + \u092A\u0928 \u0938\u093F\u0938\u094D\u091F\u092E' \u092E\u0949\u0921\u0932\ + \ \u0915\u0940 \u092A\u094D\u0930\u092E\u0941\u0916 \u0935\u093F\u0936\u0947\ + \u0937\u0924\u093E \u0928\u0939\u0940\u0902 \u0939\u0948?" + - input_choice_list: + A: "\u0936\u094D\u0930\u0947\u0923\u0940\u092C\u0926\u094D\u0927" + B: "\u0928\u094C\u0915\u0930\u0936\u093E\u0939\u0940" + C: "\u0938\u092E\u0924\u0932" + D: "\u0915\u093E\u0930\u094D\u092F\u093E\u0924\u094D\u092E\u0915" + input_correct_responses: + - C + input_question: "\u092A\u094D\u0930\u092C\u0902\u0927\u0928 \u0915\u0940 \u0932\ + \u094B\u0915\u0924\u093E\u0902\u0924\u094D\u0930\u093F\u0915 \u0914\u0930 \u0938\ + \u092E\u093E\u0935\u0947\u0936\u0940 \u0936\u0948\u0932\u093F\u092F\u094B\u0902\ + \ \u0915\u0940 \u0935\u093F\u0936\u0947\u0937\u0924\u093E \u0935\u093E\u0932\ + \u0940 \u0938\u0902\u0917\u0920\u0928\u093E\u0924\u094D\u092E\u0915 \u0938\u0902\ + \u0930\u091A\u0928\u093E\u0913\u0902 \u0915\u093E \u0935\u0930\u094D\u0923\u0928\ + \ \u0915\u0948\u0938\u0947 \u0915\u093F\u092F\u093E \u091C\u093E \u0938\u0915\ + \u0924\u093E \u0939\u0948?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_management +tag: mmlu_hi_llama_other_tasks +task: mmlu_hi_llama_management +task_alias: management diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_marketing.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_marketing.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1893f80d37b0729f9b910a3d91790282aa58f899 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_marketing.yaml @@ -0,0 +1,126 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u092D\u0942-\u091C\u0928\u0938\u093E\u0902\u0916\u094D\u092F\u093F\u0915\ + \u0940" + B: "\u0909\u0924\u094D\u092A\u093E\u0926 \u0935\u093F\u0936\u093F\u0937\u094D\ + \u091F\u0940\u0915\u0930\u0923\u0964" + C: "ANSOFF \u092E\u0948\u091F\u094D\u0930\u093F\u0915\u094D\u0938\u0964" + D: "\u092C\u094D\u0930\u093E\u0902\u0921 \u092A\u094D\u0930\u092C\u0902\u0927\ + \u0928\u0964" + input_correct_responses: + - A + input_question: "\u091C\u0928\u0938\u093E\u0902\u0916\u094D\u092F\u093F\u0915\u0940\ + \u092F \u0914\u0930 \u092D\u094C\u0917\u094B\u0932\u093F\u0915 \u091A\u0930\u094B\ + \u0902 \u0915\u093E \u0938\u0902\u092F\u094B\u091C\u0928 \u0915\u0930\u0924\u0947\ + \ \u0938\u092E\u092F _____________ \u090F\u0915 \u092A\u094D\u0930\u093E\u0915\ + \u0943\u0924\u093F\u0915 \u092A\u0930\u093F\u0923\u093E\u092E \u0939\u0948\u0964" + - input_choice_list: + A: "\u0906\u0909\u091F\u0938\u094B\u0930\u094D\u0938\u093F\u0902\u0917 \u0907\ + \u0915\u093E\u0908." + B: "\u0916\u0930\u0940\u0926 \u0915\u0947\u0902\u0926\u094D\u0930." + C: "\u092E\u0941\u0916\u094D\u092F \u0915\u093E\u0930\u094D\u092F\u0915\u093E\ + \u0930\u0940 \u0907\u0915\u093E\u0908." + D: "\u0928\u093F\u0930\u094D\u0923\u092F \u0932\u0947\u0928\u0947 \u0935\u093E\ + \u0932\u0940 \u0907\u0915\u093E\u0908." + input_correct_responses: + - D + input_question: "\u0915\u093F\u0938\u0940 \u0938\u0902\u0917\u0920\u0928 \u092E\ + \u0947\u0902, \u0916\u0930\u0940\u0926\u093E\u0930\u0940 \u0938\u0902\u092C\u0902\ + \u0927\u0940 \u0928\u093F\u0930\u094D\u0923\u092F \u0932\u0947\u0928\u0947 \u0935\ + \u093E\u0932\u0947 \u0932\u094B\u0917\u094B\u0902 \u0915\u0947 \u0938\u092E\u0942\ + \u0939 \u0915\u094B _______________ \u0915\u0939\u093E \u091C\u093E\u0924\u093E\ + \ \u0939\u0948\u0964" + - input_choice_list: + A: "\u0906\u0935\u0936\u094D\u092F\u0915\u0924\u093E\u090F\u0901 \u0938\u0902\ + \u0938\u094D\u0915\u0943\u0924\u093F \u092A\u0930 \u0914\u0930 \u0938\u093E\ + \u092E\u093E\u091C\u093F\u0915 \u0935\u0930\u094D\u0917 \u092A\u0930 \u092D\ + \u0940 \u0928\u093F\u0930\u094D\u092D\u0930 \u0939\u094B\u0924\u0940 \u0939\ + \u0948\u0902\u0964" + B: "\u0907\u0938\u0938\u0947 \u092A\u0939\u0932\u0947 \u0915\u093F \u0909\u091A\ + \u094D\u091A \u091C\u093C\u0930\u0942\u0930\u0924\u0947\u0902 \u0935\u094D\ + \u092F\u0935\u0939\u093E\u0930 \u0915\u094B \u092A\u094D\u0930\u092D\u093E\ + \u0935\u093F\u0924 \u0915\u0930 \u0938\u0915\u0947\u0902, \u0928\u093F\u091A\ + \u0932\u0947 \u0938\u094D\u0924\u0930 \u0915\u0940 \u091C\u093C\u0930\u0942\ + \u0930\u0924\u0947\u0902 \u0915\u092E \u0938\u0947 \u0915\u092E \u0906\u0902\ + \u0936\u093F\u0915 \u0930\u0942\u092A \u0938\u0947 \u0938\u0902\u0924\u0941\ + \u0937\u094D\u091F \u0939\u094B\u0928\u0940 \u091A\u093E\u0939\u093F\u090F\ + \u0964" + C: "\u0906\u0935\u0936\u094D\u092F\u0915\u0924\u093E\u0913\u0902 \u0915\u094B\ + \ \u0915\u093F\u0938\u0940 \u0935\u093F\u0936\u0947\u0937 \u0915\u094D\u0930\ + \u092E \u092E\u0947\u0902 \u092A\u094D\u0930\u093E\u0925\u092E\u093F\u0915\ + \u0924\u093E \u092F\u093E \u0935\u094D\u092F\u0935\u0938\u094D\u0925\u093F\ + \u0924 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u091C\u093E\u0924\ + \u093E \u0939\u0948\u0964" + D: "\u0938\u0902\u0924\u0941\u0937\u094D\u091F \u091C\u093C\u0930\u0942\u0930\ + \u0924\u0947\u0902 \u092A\u094D\u0930\u0947\u0930\u0915 \u0939\u094B\u0924\ + \u0940 \u0939\u0948\u0902, \u0914\u0930 \u091C\u092C \u092E\u094C\u091C\u0942\ + \u0926\u093E \u091C\u093C\u0930\u0942\u0930\u0924\u0947\u0902 \u092A\u0942\ + \u0930\u0940 \u0928\u0939\u0940\u0902 \u0939\u094B\u0924\u0940\u0902 \u0924\ + \u094B \u0928\u0908 \u091C\u093C\u0930\u0942\u0930\u0924\u0947\u0902 \u0938\ + \u093E\u092E\u0928\u0947 \u0906\u0924\u0940 \u0939\u0948\u0902\u0964" + input_correct_responses: + - B + input_question: "\u092E\u093E\u0938\u094D\u0932\u094B \u0915\u0940 \u0906\u0935\ + \u0936\u094D\u092F\u0915\u0924\u093E\u0913\u0902 \u0915\u0947 \u092A\u0926\u093E\ + \u0928\u0941\u0915\u094D\u0930\u092E \u092E\u0947\u0902 \u0928\u093F\u092E\u094D\ + \u0928\u0932\u093F\u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\ + \u0928 \u0938\u0940 \u0927\u093E\u0930\u0923\u093E \u0939\u0948?" + - input_choice_list: + A: "\u0935\u0943\u0926\u094D\u0927 \u0909\u092A\u092D\u094B\u0915\u094D\u0924\ + \u093E \u091C\u094B \u091A\u0940\u091C\u094B\u0902 \u0938\u0947 \u0915\u0941\ + \u091B \u0939\u0926 \u0924\u0915 \u0935\u0902\u091A\u093F\u0924 \u092E\u0939\ + \u0938\u0942\u0938 \u0915\u0930\u0924\u093E \u0939\u0948\u0964" + B: "\u0935\u093F\u0935\u093E\u0939\u093F\u0924 \u092E\u0939\u093F\u0932\u093E\ + \u090F\u0902, \u091C\u093F\u0928\u092E\u0947\u0902 \u0938\u0947 \u0915\u0908\ + \ \u092E\u0939\u093F\u0932\u093E\u090F\u0902 \u0905\u092A\u0928\u0947 \u091C\ + \u0940\u0935\u0928 \u092E\u0947\u0902 \u0938\u094D\u0925\u093F\u0930\u0924\ + \u093E \u0915\u0940 \u0906\u0935\u0936\u094D\u092F\u0915\u0924\u093E \u092E\ + \u0939\u0938\u0942\u0938 \u0915\u0930\u0924\u0940 \u0939\u0948\u0902\u0964" + C: "\u0928\u090F \u0905\u092A\u094D\u0930\u0935\u093E\u0938\u0940 \u091C\u094B\ + \ \u0935\u093E\u0938\u094D\u0924\u0935 \u092E\u0947\u0902 \u0905\u092A\u0928\ + \u0940 \u0928\u0908 \u0938\u0902\u0938\u094D\u0915\u0943\u0924\u093F \u092E\ + \u0947\u0902 \u0906\u0924\u094D\u092E\u0938\u093E\u0924 \u0939\u094B\u0928\ + \u093E \u091A\u093E\u0939\u0924\u0947 \u0939\u0948\u0902\u0964" + D: "\u092C\u091A\u094D\u091A\u0947, \u091C\u094B \u0905\u092A\u0928\u0947 \u0905\ + \u0927\u093F\u0915\u093E\u0902\u0936 \u0916\u0930\u0940\u0926\u093E\u0930\u0940\ + \ \u0928\u093F\u0930\u094D\u0923\u092F \u092C\u093E\u0939\u0930\u0940 \u092A\ + \u094D\u0930\u092D\u093E\u0935\u094B\u0902 \u092A\u0930 \u0906\u0927\u093E\ + \u0930\u093F\u0924 \u0915\u0930\u0924\u0947 \u0939\u0948\u0902\u0964" + input_correct_responses: + - D + input_question: "\u0938\u092E\u093E\u091C \u0915\u0947 \u092D\u0940\u0924\u0930\ + \ \u0935\u0939 \u090F\u0915\u0932 \u0938\u092E\u0942\u0939 \u091C\u094B \u0938\ + \u0902\u0926\u0930\u094D\u092D \u0938\u092E\u0942\u0939 \u0915\u0947 \u092A\u094D\ + \u0930\u092D\u093E\u0935 \u0915\u0947 \u092A\u094D\u0930\u0924\u093F \u0938\u092C\ + \u0938\u0947 \u0905\u0927\u093F\u0915 \u0938\u0902\u0935\u0947\u0926\u0928\u0936\ + \u0940\u0932 \u0939\u0948, \u0935\u0939 \u0939\u0948:" + - input_choice_list: + A: "\u0926\u0947\u0916\u092D\u093E\u0932 \u092A\u0902\u0915\u094D\u0924\u093F\ + \u092F\u093E\u0901." + B: "\u0938\u0940\u0927\u093E \u0921\u093E\u0915\u0964" + C: "\u0938\u092E\u094D\u092E\u093F\u0932\u093F\u0924 \u0915\u0930\u0924\u093E\ + \ \u0939\u0948\u0964" + D: "\u0926\u0930\u0935\u093E\u091C\u0947 \u0938\u0947 \u0926\u0930\u0935\u093E\ + \u091C\u0947 \u0924\u0915\u0964" + input_correct_responses: + - D + input_question: "\u0939\u093E\u0932\u093E\u0901\u0915\u093F \u0938\u093E\u092E\ + \u0917\u094D\u0930\u0940 \u0914\u0930 \u0917\u0941\u0923\u0935\u0924\u094D\u0924\ + \u093E \u0915\u094B \u0938\u0940\u0927\u0947 \u092E\u0947\u0932 \u0915\u0940\ + \ \u0924\u0930\u0939 \u0928\u093F\u092F\u0902\u0924\u094D\u0930\u093F\u0924\ + \ \u0915\u093F\u092F\u093E \u091C\u093E \u0938\u0915\u0924\u093E \u0939\u0948\ + , \u0932\u0947\u0915\u093F\u0928 \u0935\u094D\u092F\u0915\u094D\u0924\u093F\u0917\ + \u0924 \u092A\u0924\u093E \u0924\u0902\u0924\u094D\u0930 \u0915\u0940 \u0915\ + \u092E\u0940 \u0915\u0947 \u0915\u093E\u0930\u0923 \u0907\u0938 \u092E\u093E\ + \u0927\u094D\u092F\u092E \u0915\u0940 \u092A\u094D\u0930\u0924\u093F\u0915\u094D\ + \u0930\u093F\u092F\u093E \u0926\u0930 \u0915\u092E \u0939\u0948\u0964 \u0907\ + \u0938 \u092E\u0940\u0921\u093F\u092F\u093E \u092A\u094D\u0930\u093E\u0930\u0942\ + \u092A \u0915\u094B \u0907\u0938 \u0928\u093E\u092E \u0938\u0947 \u091C\u093E\ + \u0928\u093E \u091C\u093E\u0924\u093E \u0939\u0948:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_marketing +tag: mmlu_hi_llama_other_tasks +task: mmlu_hi_llama_marketing +task_alias: marketing diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_medical_genetics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_medical_genetics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7b4388304ac038e7ef9876070bbaefa6c3d958c4 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_medical_genetics.yaml @@ -0,0 +1,102 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u092A\u094B\u0932\u0940\u092E\u0930\u0947\u091C \u0936\u094D\u0930\u0943\ + \u0902\u0916\u0932\u093E \u0905\u092D\u093F\u0915\u094D\u0930\u093F\u092F\u093E\ + \u0964" + B: "\u090F\u0915\u0932 \u0938\u094D\u091F\u094D\u0930\u0948\u0902\u0921 \u0917\ + \u0920\u0928\u093E\u0924\u094D\u092E\u0915 \u092C\u0939\u0941\u0930\u0942\u092A\ + \u0924\u093E \u0935\u093F\u0936\u094D\u0932\u0947\u0937\u0923\u0964" + C: "\u0926\u0915\u094D\u0937\u093F\u0923\u0940 \u0927\u092C\u094D\u092C\u093E\ + ." + D: "\u092A\u0936\u094D\u091A\u093F\u092E\u0940 \u0938\u094B\u0916\u094D\u0924\ + \u093E\u0964" + input_correct_responses: + - C + input_question: "\u092C\u0921\u093C\u0947 \u0924\u094D\u0930\u093F\u0915 \u0926\ + \u094B\u0939\u0930\u093E\u0935 \u0935\u093F\u0938\u094D\u0924\u093E\u0930 \u0915\ + \u093E \u092A\u0924\u093E \u0907\u0938\u0915\u0947 \u0926\u094D\u0935\u093E\u0930\ + \u093E \u0932\u0917\u093E\u092F\u093E \u091C\u093E \u0938\u0915\u0924\u093E\ + \ \u0939\u0948:" + - input_choice_list: + A: "\u090F\u0915 \u090F\u0902\u091C\u093E\u0907\u092E \u091C\u094B \u0938\u093E\ + \u092E\u093E\u0928\u094D\u092F \u0921\u0940\u090F\u0928\u090F \u092A\u094D\ + \u0930\u0924\u093F\u0915\u0943\u0924\u093F \u092E\u0947\u0902 \u091F\u0941\ + \u0915\u0921\u093C\u094B\u0902 \u0915\u094B \u091C\u094B\u0921\u093C\u0924\ + \u093E \u0939\u0948" + B: "\u091C\u0940\u0935\u093E\u0923\u0941 \u092E\u0942\u0932 \u0915\u093E \u090F\ + \u0915 \u090F\u0902\u091C\u093E\u0907\u092E \u091C\u094B \u0921\u0940\u090F\ + \u0928\u090F \u0915\u094B \u092A\u0930\u093F\u092D\u093E\u0937\u093F\u0924\ + \ \u0906\u0927\u093E\u0930 \u0905\u0928\u0941\u0915\u094D\u0930\u092E\u094B\ + \u0902 \u092E\u0947\u0902 \u0915\u093E\u091F\u0924\u093E \u0939\u0948" + C: "\u090F\u0915 \u090F\u0902\u091C\u093E\u0907\u092E \u091C\u094B \u0935\u093F\ + \u0936\u093F\u0937\u094D\u091F \u091C\u0940\u0928 \u0915\u0947 \u092A\u094D\ + \u0930\u0924\u093F\u0932\u0947\u0916\u0928 \u0915\u0940 \u0938\u0941\u0935\ + \u093F\u0927\u093E \u092A\u094D\u0930\u0926\u093E\u0928 \u0915\u0930\u0924\ + \u093E \u0939\u0948" + D: "\u090F\u0915 \u090F\u0902\u091C\u093E\u0907\u092E \u091C\u094B \u0915\u093F\ + \u0938\u0940 \u0935\u093F\u0936\u0947\u0937 \u092A\u094B\u0937\u0915 \u0924\ + \u0924\u094D\u0935 \u0924\u0915 \u092A\u0939\u0941\u0902\u091A\u0928\u0947\ + \ \u0915\u0947 \u0938\u094D\u0924\u0930 \u0915\u094B \u0938\u0940\u092E\u093F\ + \u0924 \u0915\u0930\u0924\u093E \u0939\u0948" + input_correct_responses: + - A + input_question: "\u0921\u0940\u090F\u0928\u090F \u0932\u093F\u0917\u0947\u091C\ + \ \u0939\u0948" + - input_choice_list: + A: "\u0926\u094B\u0928\u094B\u0902 \u090F\u0932\u0940\u0932 \u0938\u094D\u0935\ + \u0924\u0902\u0924\u094D\u0930 \u0930\u0942\u092A \u0938\u0947 \u0939\u0947\ + \u091F\u0947\u0930\u094B\u091C\u093C\u093E\u092F\u0917\u094B\u091F \u092E\u0947\ + \u0902 \u0935\u094D\u092F\u0915\u094D\u0924 \u0939\u094B\u0924\u0947 \u0939\ + \u0948\u0902" + B: "\u090F\u0915 \u090F\u0932\u0940\u0932 \u0926\u0942\u0938\u0930\u0947 \u092A\ + \u0930 \u0939\u093E\u0935\u0940 \u0939\u0948" + C: "\u090F\u0932\u0940\u0932\u094D\u0938 \u090F\u0915 \u0939\u0940 \u0917\u0941\ + \u0923\u0938\u0942\u0924\u094D\u0930 \u092A\u0930 \u092E\u091C\u092C\u0942\ + \u0924\u0940 \u0938\u0947 \u091C\u0941\u0921\u093C\u0947 \u0939\u0941\u090F\ + \ \u0939\u0948\u0902" + D: "\u090F\u0932\u0940\u0932\u094D\u0938 \u0935\u093F\u0915\u093E\u0938 \u092E\ + \u0947\u0902 \u090F\u0915 \u0939\u0940 \u0938\u092E\u092F \u092E\u0947\u0902\ + \ \u0935\u094D\u092F\u0915\u094D\u0924 \u0939\u094B\u0924\u0947 \u0939\u0948\ + \u0902" + input_correct_responses: + - A + input_question: "\u0938\u0939\u092A\u094D\u0930\u092D\u0941\u0924\u094D\u0935\ + \ \u0926\u0930\u094D\u0936\u093E\u0928\u0947 \u0935\u093E\u0932\u093E \u090F\ + \u0915 \u091C\u0940\u0928" + - input_choice_list: + A: "\u092A\u093E\u092F\u0932\u094B\u0930\u093F\u0915 \u0938\u094D\u091F\u0947\ + \u0928\u094B\u0938\u093F\u0938" + B: "\u090F\u0915 \u092A\u094D\u0930\u0915\u093E\u0930 \u0915\u093E \u092E\u093E\ + \u0928\u0938\u093F\u0915 \u0935\u093F\u0915\u093E\u0930" + C: "\u0938\u094D\u092A\u093E\u0907\u0928\u093E \u092C\u093F\u092B\u093F\u0921\ + \u093E (\u0928\u094D\u092F\u0942\u0930\u0932 \u091F\u094D\u092F\u0942\u092C\ + \ \u0926\u094B\u0937)" + D: "\u092E\u093E\u0930\u094D\u092B\u0928 \u0938\u093F\u0928\u094D\u0921\u094D\ + \u0930\u094B\u092E" + input_correct_responses: + - D + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u0940 \u0938\u094D\ + \u0925\u093F\u0924\u093F \u092C\u0939\u0941\u0915\u093E\u0930\u0915\u0940\u092F\ + \ \u0935\u0902\u0936\u093E\u0928\u0941\u0915\u094D\u0930\u092E \u0915\u094B\ + \ \u0928\u0939\u0940\u0902 \u0926\u0930\u094D\u0936\u093E\u0924\u0940 \u0939\ + \u0948?" + - input_choice_list: + A: "\u092A\u094D\u0930\u094B\u092B\u093C\u0947\u091C\u093C I" + B: "\u092E\u0947\u091F\u093E\u092B\u093C\u0947\u091C\u093C I" + C: "\u092A\u094D\u0930\u094B\u092B\u093C\u0947\u091C\u093C II" + D: "\u092E\u0947\u091F\u093E\u092B\u093C\u0947\u091C\u093C II" + input_correct_responses: + - A + input_question: "\u0905\u0930\u094D\u0927\u0938\u0942\u0924\u094D\u0930\u0940\u0935\ + \u093F\u092D\u093E\u091C\u0928 \u0915\u093E \u091A\u0930\u0923 \u091C\u093F\u0938\ + \u092E\u0947\u0902 \u0917\u0941\u0923\u0938\u0942\u0924\u094D\u0930 \u091C\u0941\ + \u0921\u093C\u0924\u0947 \u0939\u0948\u0902 \u0914\u0930 \u092A\u093E\u0930\ + \ \u0939\u094B \u091C\u093E\u0924\u0947 \u0939\u0948\u0902:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_medical_genetics +tag: mmlu_hi_llama_other_tasks +task: mmlu_hi_llama_medical_genetics +task_alias: medical_genetics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_miscellaneous.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_miscellaneous.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ec92e4b221523866b0f07f98a8f0680f9b25410a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_miscellaneous.yaml @@ -0,0 +1,73 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u090F\u0915" + B: "\u0926\u094B" + C: "\u091A\u093E\u0930" + D: "\u0906\u0920" + input_correct_responses: + - B + input_question: "\u090F\u0915 \u092E\u093E\u0928\u0915 \u0911\u091F\u094B\u092E\ + \u094B\u092C\u093E\u0907\u0932 \u092E\u0947\u0902 \u0915\u093F\u0924\u0928\u0947\ + \ \u090F\u0915\u094D\u0938\u0932 \u0939\u094B\u0924\u0947 \u0939\u0948\u0902\ + ?" + - input_choice_list: + A: "\u092C\u0941\u0921\u093E\u092A\u0947\u0938\u094D\u091F" + B: "\u090F\u091F \u092C\u0941\u0921\u094B\u0915\u0928" + C: "\u092D\u0942\u091F\u093E\u0928" + D: "\u092C\u094D\u0930\u093F\u091F\u0947\u0928" + input_correct_responses: + - B + input_question: "\u0930\u0949\u0915 \u0932\u0947\u091C\u0947\u0902\u0921\u094D\ + \u0938 \u091A\u0940\u092A \u091F\u094D\u0930\u093F\u0915 \u0915\u0947 1979 \u0915\ + \u0947 \u0932\u093E\u0907\u0935 \u090F\u0932\u094D\u092C\u092E \u0915\u0947\ + \ \u0936\u0940\u0930\u094D\u0937\u0915 \u092E\u0947\u0902 \u0915\u093F\u0938\ + \ \u0938\u094D\u0925\u093E\u0928 \u0915\u093E \u0928\u093E\u092E \u0926\u093F\ + \u092F\u093E \u0917\u092F\u093E \u0939\u0948?" + - input_choice_list: + A: "\u090F\u0902\u0925\u094B\u0928\u0940 '\u0938\u094D\u092A\u0921'\ + \ \u0935\u0947\u092C" + B: "\u092E\u093E\u0907\u0915\u0932 '\u090F\u092F\u0930' \u091C\u0949\ + \u0930\u094D\u0921\u0928" + C: "\u091F\u093E\u092F\u0930\u094B\u0928 '\u092E\u0917\u094D\u0917\u094D\ + \u0938\u0940' \u092C\u094B\u0917\u094D\u0938" + D: "\u091C\u0942\u0932\u093F\u092F\u0938 '\u0921\u0949 \u091C\u0947'\ + \ \u0907\u0930\u0935\u093F\u0902\u0917" + input_correct_responses: + - A + input_question: "NBA \u0938\u094D\u0932\u0948\u092E \u0921\u0902\u0915 \u092A\u094D\ + \u0930\u0924\u093F\u092F\u094B\u0917\u093F\u0924\u093E \u091C\u0940\u0924\u0928\ + \u0947 \u0935\u093E\u0932\u093E \u0905\u092C \u0924\u0915 \u0915\u093E \u0938\ + \u092C\u0938\u0947 \u091B\u094B\u091F\u093E \u0935\u094D\u092F\u0915\u094D\u0924\ + \u093F \u0915\u094C\u0928 \u0939\u0948?" + - input_choice_list: + A: "\u0939\u093E\u0907\u0921\u094D\u0930\u094B\u091C\u0928" + B: "\u0928\u093E\u092F\u0932\u0949\u0928" + C: "\u0911\u0915\u094D\u0938\u0940\u091C\u0928" + D: "\u0930\u094B\u0936\u0928\u0940" + input_correct_responses: + - C + input_question: "\u092A\u094D\u0930\u0915\u093E\u0936 \u0938\u0902\u0936\u094D\ + \u0932\u0947\u0937\u0923 \u0915\u0947 \u0926\u094C\u0930\u093E\u0928 \u0915\u094D\ + \u092F\u093E \u0909\u0924\u094D\u092A\u0928\u094D\u0928 \u0939\u094B\u0924\u093E\ + \ \u0939\u0948?" + - input_choice_list: + A: "'\u0930\u0947\u0921\u093F\u092F\u094B \u0917\u093E \u0917\u093E'" + B: "'\u0913\u092C-\u0932\u093E-\u0926\u0940 \u0913\u092C-\u0932\u093E-\u0926\ + \u093E'" + C: "'\u0926\u0947 \u0926\u094B \u0926\u094B \u0926\u094B \u0926\u0947 \u0926\ + \u093E \u0926\u093E \u0926\u093E'" + D: "'\u0907\u0928-\u090F-\u0917\u0926\u094D\u0926\u093E-\u0926\u093E-\u0935\ + \u093F\u0926\u093E'" + input_correct_responses: + - C + input_question: "\u0907\u0928\u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928\ + \ \u0938\u093E \u0917\u093E\u0928\u093E \u0930\u0949\u0915 \u092C\u0948\u0902\ + \u0921 \u0926 \u092A\u0941\u0932\u093F\u0938 \u0915\u0947 \u0932\u093F\u090F\ + \ \u0936\u0940\u0930\u094D\u0937 10 \u0939\u093F\u091F \u0925\u093E?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_miscellaneous +tag: mmlu_hi_llama_other_tasks +task: mmlu_hi_llama_miscellaneous +task_alias: miscellaneous diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_moral_disputes.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_moral_disputes.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a18fd6c7f78750064b0f430a0c3a7cde79d266ae --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_moral_disputes.yaml @@ -0,0 +1,141 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0905\u092D\u0940 \u0924\u0915 \u092F\u0939 \u0938\u094D\u092A\u0937\u094D\ + \u091F \u0928\u0939\u0940\u0902 \u0939\u0948 \u0915\u093F \u092E\u0943\u0924\ + \u094D\u092F\u0941\u0926\u0902\u0921 \u0938\u0947 \u0938\u092E\u0941\u0926\ + \u093E\u092F \u0915\u094B \u0939\u094B\u0928\u0947 \u0935\u093E\u0932\u0947\ + \ \u0928\u0941\u0915\u0938\u093E\u0928 \u0938\u0947 \u092C\u091A\u093E\u0935\ + \ \u0939\u094B\u0924\u093E \u0939\u0948 \u092F\u093E \u0928\u0939\u0940\u0902\ + \u0964" + B: "\u0905\u092D\u0940 \u0924\u0915 \u092F\u0939 \u0938\u094D\u092A\u0937\u094D\ + \u091F \u0928\u0939\u0940\u0902 \u0939\u0948 \u0915\u093F \u092E\u0943\u0924\ + \u094D\u092F\u0941\u0926\u0902\u0921 \u0915\u093F\u0938\u0940 \u092D\u0940\ + \ \u0935\u094D\u092F\u0915\u094D\u0924\u093F \u0915\u094B \u0939\u094B\u0928\ + \u0947 \u0935\u093E\u0932\u0947 \u0928\u0941\u0915\u0938\u093E\u0928 \u0915\ + \u094B \u0930\u094B\u0915\u0924\u093E \u0939\u0948 \u092F\u093E \u0928\u0939\ + \u0940\u0902\u0964" + C: "\u092A\u0930\u093F\u0923\u093E\u092E\u0935\u093E\u0926 \u0905\u092B\u094D\ + \u0930\u0940\u0915\u0940 \u092E\u0942\u0932\u094D\u092F\u094B\u0902 \u0926\ + \u094D\u0935\u093E\u0930\u093E \u0938\u092E\u0930\u094D\u0925\u093F\u0924\ + \ \u0928\u0939\u0940\u0902 \u0939\u0948\u0964" + D: "\u092D\u0932\u0947 \u0939\u0940 \u092A\u0930\u093F\u0923\u093E\u092E\u0935\ + \u093E\u0926 \u0905\u092B\u094D\u0930\u0940\u0915\u0940 \u092E\u0942\u0932\ + \u094D\u092F\u094B\u0902 \u0926\u094D\u0935\u093E\u0930\u093E \u0938\u092E\ + \u0930\u094D\u0925\u093F\u0924 \u0939\u0948, \u0905\u092B\u094D\u0930\u0940\ + \u0915\u0940 \u092E\u0942\u0932\u094D\u092F\u094B\u0902 \u0915\u0947 \u0938\ + \u0902\u0926\u0930\u094D\u092D \u092E\u0947\u0902 \u0915\u094B\u0908 \u092A\ + \u0930\u093F\u0923\u093E\u092E\u0935\u093E\u0926\u0940 \u0924\u0930\u094D\u0915\ + \ \u092A\u0947\u0936 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u0917\ + \u092F\u093E \u0939\u0948\u0964" + input_correct_responses: + - A + input_question: "\u092E\u0947\u091F\u094D\u091C\u093C \u0915\u0947 \u0905\u0928\ + \u0941\u0938\u093E\u0930, \u0905\u092B\u093C\u094D\u0930\u0940\u0915\u0940 \u092E\ + \u0942\u0932\u094D\u092F\u094B\u0902 \u092A\u0930 \u0906\u0927\u093E\u0930\u093F\ + \u0924 \u092E\u0943\u0924\u094D\u092F\u0941\u0926\u0902\u0921 \u0915\u0947 \u0916\ + \u093C\u093F\u0932\u093E\u092B\u093C \u092A\u0930\u093F\u0923\u093E\u092E\u0935\ + \u093E\u0926\u0940 \u0924\u0930\u094D\u0915\u094B\u0902 \u092E\u0947\u0902 \u0915\ + \u094D\u092F\u093E \u0917\u093C\u0932\u0924 \u0939\u0948?" + - input_choice_list: + A: "\u090F\u0915 \u092F\u0941\u0917\u094D\u092E\u0928\u091C." + B: "\u090F\u0915 \u092D\u094D\u0930\u0942\u0923." + C: "\u090F\u0915 \u0935\u094D\u092F\u0935\u0939\u093E\u0930\u094D\u092F\u0924\ + \u093E." + D: "\u090F\u0915 \u092C\u094D\u0932\u093E\u0938\u094D\u091F\u094B\u0938\u093F\ + \u0938\u094D\u091F." + input_correct_responses: + - A + input_question: "\u0928\u093F\u0937\u0947\u091A\u093F\u0924 \u0921\u093F\u0902\ + \u092C \u0915\u094B \u0928\u093F\u0937\u0947\u091A\u093F\u0924 \u0905\u0902\u0921\ + \u093E\u0923\u0941 \u0915\u0947 \u0928\u093E\u092E \u0938\u0947 \u092D\u0940\ + \ \u091C\u093E\u0928\u093E \u091C\u093E\u0924\u093E \u0939\u0948" + - input_choice_list: + A: "\u0909\u091A\u094D\u091A \u0935\u0930\u094D\u0917 \u092E\u0947\u0902 \u0939\ + \u094B\u0928\u093E" + B: "\u0938\u092E\u0938\u094D\u092F\u093E\u0913\u0902 \u0915\u094B \u0938\u0940\ + \u0916\u0928\u0947 \u0914\u0930 \u0939\u0932 \u0915\u0930\u0928\u0947 \u0915\ + \u0940 \u0915\u094D\u0937\u092E\u0924\u093E" + C: "\u0905\u0927\u093F\u0915\u093E\u0902\u0936 \u0906\u092C\u093E\u0926\u0940\ + \ \u0938\u0947 \u0905\u0927\u093F\u0915 \u0938\u0941\u0902\u0926\u0930 \u0939\ + \u094B\u0928\u093E" + D: "\u0914\u0938\u0924 \u0938\u0947 \u091B\u094B\u091F\u093E \u0939\u094B\u0928\ + \u093E" + input_correct_responses: + - B + input_question: "\u0938\u093F\u0902\u0917\u0930 \u0915\u0947 \u0905\u0928\u0941\ + \u0938\u093E\u0930 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u0906\u0902\ + \u0924\u0930\u093F\u0915 \u0905\u091A\u094D\u091B\u093E \u0939\u0948?" + - input_choice_list: + A: "\u090F\u0938\u0938\u0940\u090F\u0928\u091F\u0940 \u090F\u0915 \u0905\u0932\ + \u0917 \u092A\u094D\u0930\u0915\u093E\u0930 \u0915\u093E \u092A\u0941\u0928\ + \u0930\u0941\u0924\u094D\u092A\u093E\u0926\u0928 \u0928\u0939\u0940\u0902\ + \ \u0939\u0948 \u0915\u094D\u092F\u094B\u0902\u0915\u093F \u0907\u0938\u0915\ + \u0947 \u0914\u0930 \u092A\u0941\u0928\u0930\u0941\u0924\u094D\u092A\u093E\ + \u0926\u0928 \u0915\u0947 \u0905\u0928\u094D\u092F \u0938\u094D\u0935\u0940\ + \u0915\u093E\u0930\u094D\u092F \u0938\u093E\u0927\u0928\u094B\u0902 \u0915\ + \u0947 \u092C\u0940\u091A \u0915\u094B\u0908 \u0928\u0948\u0924\u093F\u0915\ + \ \u0930\u0942\u092A \u0938\u0947 \u092A\u094D\u0930\u093E\u0938\u0902\u0917\ + \u093F\u0915 \u0905\u0902\u0924\u0930 \u0928\u0939\u0940\u0902 \u0939\u0948\ + \u0964" + B: "\u0915\u094D\u092F\u094B\u0902\u0915\u093F \u092A\u094D\u0930\u093E\u0915\ + \u0943\u0924\u093F\u0915 \u0930\u0942\u092A \u0938\u0947 \u091C\u0941\u0921\ + \u093C\u0928\u0947 \u092A\u0930 \u0928\u0941\u0915\u0938\u093E\u0928 \u0915\ + \u093E \u091C\u094B\u0916\u093F\u092E \u0915\u092E \u0939\u094B\u0924\u093E\ + \ \u0939\u0948, SCNT \u0915\u0947 \u0932\u093F\u090F \u0928\u0941\u0915\u0938\ + \u093E\u0928 \u0915\u093E \u091C\u094B\u0916\u093F\u092E \u0915\u092E \u0939\ + \u094B\u0917\u093E\u0964" + C: "a \u0914\u0930 B \u0926\u094B\u0928\u094B\u0902" + D: "\u090F \u0914\u0930 \u092C\u0940 \u0926\u094B\u0928\u094B\u0902 \u0928\u0939\ + \u0940\u0902" + input_correct_responses: + - A + input_question: "\u092A\u0947\u0902\u0938 \u0928\u0947 \u092A\u094D\u0930\u091C\ + \u0928\u0928 \u0915\u0947 \u091B\u0939 \u0905\u0932\u0917-\u0905\u0932\u0917\ + \ \u092E\u093E\u092E\u0932\u094B\u0902 \u0915\u0940 \u0924\u0941\u0932\u0928\ + \u093E \u0915\u0940, \u092A\u094D\u0930\u093E\u0915\u0943\u0924\u093F\u0915\ + \ \u091C\u0941\u0921\u093C\u0935\u093E\u0901 \u0938\u0947 \u0932\u0947\u0915\ + \u0930 \u090F\u0938\u0938\u0940\u090F\u0928\u091F\u0940 \u0924\u0915\u0964 \u0907\ + \u0938 \u0924\u0941\u0932\u0928\u093E \u0938\u0947 \u0935\u0939 \u0915\u094D\ + \u092F\u093E \u0928\u093F\u0937\u094D\u0915\u0930\u094D\u0937 \u0928\u093F\u0915\ + \u093E\u0932\u0924\u093E \u0939\u0948?" + - input_choice_list: + A: "\u0905\u0927\u093F\u0915\u093E\u0902\u0936 \u092A\u093E\u0930\u0902\u092A\ + \u0930\u093F\u0915 \u0926\u093E\u0930\u094D\u0936\u0928\u093F\u0915 \u0909\ + \u0926\u093E\u0939\u0930\u0923\u094B\u0902 \u0915\u0940 \u092E\u0942\u0930\ + \u094D\u0916\u0924\u093E\u0964" + B: "\u0909\u0928\u094D\u0928\u0924 \u0921\u093F\u0917\u094D\u0930\u0940 \u0935\ + \u093E\u0932\u0947 \u0932\u094B\u0917\u094B\u0902 \u092E\u0947\u0902 \u092C\ + \u0941\u0926\u094D\u0927\u093F \u0915\u0940 \u0938\u093E\u092E\u093E\u0928\ + \u094D\u092F \u0915\u092E\u0940\u0964" + C: "\u092F\u093E\u0924\u0928\u093E \u0915\u0940 \u0917\u093C\u0932\u0924\u0940\ + ." + D: "\u0906\u0924\u0902\u0915\u0935\u093E\u0926 \u0938\u0947 \u0928\u093F\u092A\ + \u091F\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092F\u093E\u0924\u0928\ + \u093E \u0915\u094B \u0938\u0930\u094D\u0935\u094B\u0924\u094D\u0924\u092E\ + \ \u0938\u092E\u093E\u0927\u093E\u0928 \u0915\u0947 \u0930\u0942\u092A \u092E\ + \u0947\u0902 \u0926\u0947\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F\ + \ \u0915\u0908 \u092C\u0941\u0926\u094D\u0927\u093F\u092E\u093E\u0928 \u0932\ + \u094B\u0917\u094B\u0902 \u0915\u0940 \u0924\u0924\u094D\u092A\u0930\u0924\ + \u093E\u0964" + input_correct_responses: + - D + input_question: "\u092C\u0948\u0930\u0928 \u0938\u094D\u0935\u0940\u0915\u093E\ + \u0930 \u0915\u0930\u0924\u0940 \u0939\u0948\u0902 \u0915\u093F \u091F\u093F\ + \u0915-\u091F\u093F\u0915 \u092C\u092E \u0915\u0947 \u091C\u093F\u0928 \u0915\ + \u093E\u0932\u094D\u092A\u0928\u093F\u0915 \u0938\u0902\u0938\u094D\u0915\u0930\ + \u0923\u094B\u0902 \u0915\u0940 \u0935\u0939 \u091A\u0930\u094D\u091A\u093E\ + \ \u0915\u0930\u0924\u0940 \u0939\u0948\u0902 \u0935\u0947 "\u0906\u0936\ + \u094D\u091A\u0930\u094D\u092F\u091C\u0928\u0915 \u0930\u0942\u092A \u0938\u0947\ + \ \u092E\u0942\u0930\u094D\u0916\u0924\u093E\u092A\u0942\u0930\u094D\u0923"\ + \ \u0939\u0948\u0902, \u0932\u0947\u0915\u093F\u0928 \u0909\u0928\u0915\u093E\ + \ \u0926\u093E\u0935\u093E \u0939\u0948 \u0915\u093F \u092F\u0939 \u0935\u093E\ + \u0938\u094D\u0924\u0935 \u092E\u0947\u0902 \u0907\u0938\u0915\u093E \u092A\u094D\ + \u0930\u092E\u093E\u0923 \u0939\u0948" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_moral_disputes +tag: mmlu_hi_llama_humanities_tasks +task: mmlu_hi_llama_moral_disputes +task_alias: moral_disputes diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_moral_scenarios.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_moral_scenarios.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3aaf25a32942b351de0f88ab660d10353c74f3a5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_moral_scenarios.yaml @@ -0,0 +1,149 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0917\u0932\u0924 \u0917\u0932\u0924" + B: "\u0917\u093C\u0932\u0924, \u0917\u093C\u0932\u0924 \u0928\u0939\u0940\u0902" + C: "\u0917\u093C\u0932\u0924 \u0928\u0939\u0940\u0902, \u0917\u093C\u0932\u0924" + D: "\u0917\u093C\u0932\u0924 \u0928\u0939\u0940\u0902, \u0917\u093C\u0932\u0924\ + \ \u0928\u0939\u0940\u0902" + input_correct_responses: + - C + input_question: "2020 \u0924\u0915 \u0905\u092E\u0947\u0930\u093F\u0915\u093E\ + \ \u092E\u0947\u0902 \u0938\u093E\u092E\u093E\u0928\u094D\u092F \u0928\u0948\ + \u0924\u093F\u0915 \u092E\u093E\u0928\u0915\u094B\u0902 \u0915\u0947 \u0905\u0928\ + \u0941\u0938\u093E\u0930, \u0907\u0928 \u0926\u094B\u0928\u094B\u0902 \u092E\ + \u0947\u0902 \u0938\u0947 \u0915\u093F\u0938 \u092A\u0930\u093F\u0926\u0943\u0936\ + \u094D\u092F \u0915\u0947 \u0932\u093F\u090F \u092E\u0941\u0916\u094D\u092F\ + \ \u092A\u093E\u0924\u094D\u0930 (\u091C\u094B I/me/my \u0915\u093E \u0909\u092A\ + \u092F\u094B\u0917 \u0915\u0930\u0924\u093E \u0939\u0948) \u0938\u094D\u092A\ + \u0937\u094D\u091F \u0930\u0942\u092A \u0938\u0947 \u0928\u0948\u0924\u093F\u0915\ + \ \u0930\u0942\u092A \u0938\u0947 \u0915\u0941\u091B \u0917\u0932\u0924 \u0915\ + \u0930\u0924\u093E \u0939\u0948? \u092A\u0930\u093F\u0926\u0943\u0936\u094D\u092F\ + \ 1 | \u092E\u0948\u0902 \u0935\u093E\u0938\u094D\u0924\u0935 \u092E\u0947\u0902\ + \ \u0905\u092A\u0928\u0947 \u0928\u0935\u091C\u093E\u0924 \u0936\u093F\u0936\ + \u0941 \u0938\u0947 \u092A\u094D\u092F\u093E\u0930 \u0915\u0930\u0924\u0940\ + \ \u0925\u0940\u0964 \u092A\u0930\u093F\u0926\u0943\u0936\u094D\u092F 2 | \u0928\ + \u0908 \u0932\u0921\u093C\u0915\u0940 \u0915\u094B \u091F\u094D\u0930\u0947\u0932\ + \u0930 \u092A\u093E\u0930\u094D\u0915 \u092E\u0947\u0902 \u0930\u0939\u0928\u0947\ + \ \u092E\u0947\u0902 \u0936\u0930\u094D\u092E \u0906\u0924\u0940 \u0939\u0948\ + , \u0907\u0938\u0932\u093F\u090F \u092E\u0948\u0902 \u0915\u094D\u0932\u093E\ + \u0938 \u0915\u094B \u0909\u0938\u0915\u0947 \u0918\u0930 \u092A\u0930 \u0906\ + \u092E\u0902\u0924\u094D\u0930\u093F\u0924 \u0915\u0930\u0924\u093E \u0939\u0942\ + \u0902\u0964" + - input_choice_list: + A: "\u0917\u0932\u0924 \u0917\u0932\u0924" + B: "\u0917\u093C\u0932\u0924, \u0917\u093C\u0932\u0924 \u0928\u0939\u0940\u0902" + C: "\u0917\u093C\u0932\u0924 \u0928\u0939\u0940\u0902, \u0917\u093C\u0932\u0924" + D: "\u0917\u093C\u0932\u0924 \u0928\u0939\u0940\u0902, \u0917\u093C\u0932\u0924\ + \ \u0928\u0939\u0940\u0902" + input_correct_responses: + - C + input_question: "2020 \u0924\u0915 \u0905\u092E\u0947\u0930\u093F\u0915\u093E\ + \ \u092E\u0947\u0902 \u0938\u093E\u092E\u093E\u0928\u094D\u092F \u0928\u0948\ + \u0924\u093F\u0915 \u092E\u093E\u0928\u0915\u094B\u0902 \u0915\u0947 \u0905\u0928\ + \u0941\u0938\u093E\u0930, \u0907\u0928 \u0926\u094B\u0928\u094B\u0902 \u092E\ + \u0947\u0902 \u0938\u0947 \u0915\u093F\u0938 \u092A\u0930\u093F\u0926\u0943\u0936\ + \u094D\u092F \u0915\u0947 \u0932\u093F\u090F \u092E\u0941\u0916\u094D\u092F\ + \ \u092A\u093E\u0924\u094D\u0930 (\u091C\u094B I/me/my \u0915\u093E \u0909\u092A\ + \u092F\u094B\u0917 \u0915\u0930\u0924\u093E \u0939\u0948) \u0938\u094D\u092A\ + \u0937\u094D\u091F \u0930\u0942\u092A \u0938\u0947 \u0928\u0948\u0924\u093F\u0915\ + \ \u0930\u0942\u092A \u0938\u0947 \u0915\u0941\u091B \u0917\u0932\u0924 \u0915\ + \u0930\u0924\u093E \u0939\u0948? \u092A\u0930\u093F\u0926\u0943\u0936\u094D\u092F\ + \ 1 | \u092E\u0948\u0902\u0928\u0947 \u0926\u0941\u0915\u093E\u0928 \u0915\u0947\ + \ \u092C\u093E\u0939\u0930 \u090F\u0915 \u0906\u0926\u092E\u0940 \u0938\u0947\ + \ \u0938\u093F\u0917\u0930\u0947\u091F \u092E\u093E\u0902\u0917\u0940\u0964\ + \ \u092A\u0930\u093F\u0926\u0943\u0936\u094D\u092F 2 | \u091C\u092C \u0938\u0941\ + \u0930\u0915\u094D\u0937\u093E \u0917\u093E\u0930\u094D\u0921 \u0928\u0947 \u0905\ + \u092A\u0928\u093E \u092A\u0926 \u091B\u094B\u0921\u093C\u093E, \u0924\u094B\ + \ \u092E\u0947\u0930\u0940 \u091C\u0947\u092C \u092E\u0947\u0902 \u090F\u0915\ + \ \u0926\u0941\u0930\u094D\u0932\u092D \u0938\u093F\u0915\u094D\u0915\u093E\ + \ \u091A\u0932\u093E \u0917\u092F\u093E\u0964" + - input_choice_list: + A: "\u0917\u0932\u0924 \u0917\u0932\u0924" + B: "\u0917\u093C\u0932\u0924, \u0917\u093C\u0932\u0924 \u0928\u0939\u0940\u0902" + C: "\u0917\u093C\u0932\u0924 \u0928\u0939\u0940\u0902, \u0917\u093C\u0932\u0924" + D: "\u0917\u093C\u0932\u0924 \u0928\u0939\u0940\u0902, \u0917\u093C\u0932\u0924\ + \ \u0928\u0939\u0940\u0902" + input_correct_responses: + - D + input_question: "2020 \u0924\u0915 \u0905\u092E\u0947\u0930\u093F\u0915\u093E\ + \ \u092E\u0947\u0902 \u0938\u093E\u092E\u093E\u0928\u094D\u092F \u0928\u0948\ + \u0924\u093F\u0915 \u092E\u093E\u0928\u0915\u094B\u0902 \u0915\u0947 \u0905\u0928\ + \u0941\u0938\u093E\u0930, \u0907\u0928 \u0926\u094B\u0928\u094B\u0902 \u092E\ + \u0947\u0902 \u0938\u0947 \u0915\u093F\u0938 \u092A\u0930\u093F\u0926\u0943\u0936\ + \u094D\u092F \u0915\u0947 \u0932\u093F\u090F \u092E\u0941\u0916\u094D\u092F\ + \ \u092A\u093E\u0924\u094D\u0930 (\u091C\u094B I/me/my \u0915\u093E \u0909\u092A\ + \u092F\u094B\u0917 \u0915\u0930\u0924\u093E \u0939\u0948) \u0938\u094D\u092A\ + \u0937\u094D\u091F \u0930\u0942\u092A \u0938\u0947 \u0928\u0948\u0924\u093F\u0915\ + \ \u0930\u0942\u092A \u0938\u0947 \u0915\u0941\u091B \u0917\u0932\u0924 \u0915\ + \u0930\u0924\u093E \u0939\u0948? \u092A\u0930\u093F\u0926\u0943\u0936\u094D\u092F\ + \ 1 | \u092E\u0948\u0902\u0928\u0947 \u0915\u093E\u092E \u0915\u0947 \u0932\u093F\ + \u090F \u090F\u0915 \u092A\u0941\u0930\u093E\u0928\u093E \u092A\u093F\u0915\ + -\u0905\u092A \u091F\u094D\u0930\u0915 \u0916\u0930\u0940\u0926\u093E\u0964\ + \ \u092A\u0930\u093F\u0926\u0943\u0936\u094D\u092F 2 | \u092E\u0948\u0902\u0928\ + \u0947 \u0916\u0942\u092C\u0938\u0942\u0930\u0924 \u091D\u0930\u0928\u0947 \u0915\ + \u0940 \u0913\u0930 \u0926\u0947\u0916\u093E \u0914\u0930 \u0909\u0938 \u092A\ + \u0930 \u090F\u0915 \u091A\u091F\u094D\u091F\u093E\u0928 \u092B\u0947\u0902\u0915\ + \u0940\u0964" + - input_choice_list: + A: "\u0917\u0932\u0924 \u0917\u0932\u0924" + B: "\u0917\u093C\u0932\u0924, \u0917\u093C\u0932\u0924 \u0928\u0939\u0940\u0902" + C: "\u0917\u093C\u0932\u0924 \u0928\u0939\u0940\u0902, \u0917\u093C\u0932\u0924" + D: "\u0917\u093C\u0932\u0924 \u0928\u0939\u0940\u0902, \u0917\u093C\u0932\u0924\ + \ \u0928\u0939\u0940\u0902" + input_correct_responses: + - B + input_question: "2020 \u0924\u0915 \u0905\u092E\u0947\u0930\u093F\u0915\u093E\ + \ \u092E\u0947\u0902 \u0938\u093E\u092E\u093E\u0928\u094D\u092F \u0928\u0948\ + \u0924\u093F\u0915 \u092E\u093E\u0928\u0915\u094B\u0902 \u0915\u0947 \u0905\u0928\ + \u0941\u0938\u093E\u0930, \u0907\u0928 \u0926\u094B\u0928\u094B\u0902 \u092E\ + \u0947\u0902 \u0938\u0947 \u0915\u093F\u0938 \u092A\u0930\u093F\u0926\u0943\u0936\ + \u094D\u092F \u0915\u0947 \u0932\u093F\u090F \u092E\u0941\u0916\u094D\u092F\ + \ \u092A\u093E\u0924\u094D\u0930 (\u091C\u094B I/me/my \u0915\u093E \u0909\u092A\ + \u092F\u094B\u0917 \u0915\u0930\u0924\u093E \u0939\u0948) \u0938\u094D\u092A\ + \u0937\u094D\u091F \u0930\u0942\u092A \u0938\u0947 \u0928\u0948\u0924\u093F\u0915\ + \ \u0930\u0942\u092A \u0938\u0947 \u0915\u0941\u091B \u0917\u0932\u0924 \u0915\ + \u0930\u0924\u093E \u0939\u0948? \u092A\u0930\u093F\u0926\u0943\u0936\u094D\u092F\ + \ 1 | \u0918\u0930 \u0924\u094B\u0921\u093C\u0928\u0947 \u0915\u0947 \u0926\u094C\ + \u0930\u093E\u0928 \u092E\u0948\u0902\u0928\u0947 \u0909\u0938\u0947 \u0926\u0940\ + \u0935\u093E\u0930 \u092E\u0947\u0902 \u0927\u0915\u094D\u0915\u093E \u0926\u0947\ + \ \u0926\u093F\u092F\u093E. \u092A\u0930\u093F\u0926\u0943\u0936\u094D\u092F\ + \ 2 | \u091C\u092C \u092E\u0948\u0902 \u0905\u092A\u0928\u0940 \u091C\u0941\u0921\ + \u093C\u0935\u093E\u0901 \u092D\u0924\u0940\u091C\u093F\u092F\u094B\u0902 \u0915\ + \u0947 \u0932\u093F\u090F \u090F\u0915 \u0926\u093E\u0908 \u0915\u093E \u091A\ + \u092F\u0928 \u0915\u0930\u0924\u093E \u0939\u0942\u0901, \u0924\u094B \u092E\ + \u0941\u091D\u0947 \u0909\u0938\u0915\u0940 \u0928\u0938\u094D\u0932\u0940\u092F\ + \ \u092A\u0943\u0937\u094D\u0920\u092D\u0942\u092E\u093F \u0915\u0940 \u092A\ + \u0930\u0935\u093E\u0939 \u0928\u0939\u0940\u0902 \u0939\u094B\u0924\u0940\u0964" + - input_choice_list: + A: "\u0917\u0932\u0924 \u0917\u0932\u0924" + B: "\u0917\u093C\u0932\u0924, \u0917\u093C\u0932\u0924 \u0928\u0939\u0940\u0902" + C: "\u0917\u093C\u0932\u0924 \u0928\u0939\u0940\u0902, \u0917\u093C\u0932\u0924" + D: "\u0917\u093C\u0932\u0924 \u0928\u0939\u0940\u0902, \u0917\u093C\u0932\u0924\ + \ \u0928\u0939\u0940\u0902" + input_correct_responses: + - A + input_question: "2020 \u0924\u0915 \u0905\u092E\u0947\u0930\u093F\u0915\u093E\ + \ \u092E\u0947\u0902 \u0938\u093E\u092E\u093E\u0928\u094D\u092F \u0928\u0948\ + \u0924\u093F\u0915 \u092E\u093E\u0928\u0915\u094B\u0902 \u0915\u0947 \u0905\u0928\ + \u0941\u0938\u093E\u0930, \u0907\u0928 \u0926\u094B\u0928\u094B\u0902 \u092E\ + \u0947\u0902 \u0938\u0947 \u0915\u093F\u0938 \u092A\u0930\u093F\u0926\u0943\u0936\ + \u094D\u092F \u0915\u0947 \u0932\u093F\u090F \u092E\u0941\u0916\u094D\u092F\ + \ \u092A\u093E\u0924\u094D\u0930 (\u091C\u094B I/me/my \u0915\u093E \u0909\u092A\ + \u092F\u094B\u0917 \u0915\u0930\u0924\u093E \u0939\u0948) \u0938\u094D\u092A\ + \u0937\u094D\u091F \u0930\u0942\u092A \u0938\u0947 \u0928\u0948\u0924\u093F\u0915\ + \ \u0930\u0942\u092A \u0938\u0947 \u0915\u0941\u091B \u0917\u0932\u0924 \u0915\ + \u0930\u0924\u093E \u0939\u0948? \u092A\u0930\u093F\u0926\u0943\u0936\u094D\u092F\ + \ 1 | \u092C\u093E\u0930 \u092E\u0947\u0902 \u0909\u0938\u0928\u0947 \u092E\u0941\ + \u091D\u0947 \u092A\u0930\u0947\u0936\u093E\u0928 \u0915\u093F\u092F\u093E \u0924\ + \u094B \u092E\u0948\u0902\u0928\u0947 \u0909\u0938\u0915\u093E \u092C\u091F\u0941\ + \u0906 \u0932\u0947 \u0932\u093F\u092F\u093E\u0964 \u092A\u0930\u093F\u0926\u0943\ + \u0936\u094D\u092F 2 | \u092E\u0948\u0902\u0928\u0947 \u0905\u092A\u0928\u0947\ + \ \u0928\u0935\u091C\u093E\u0924 \u0936\u093F\u0936\u0941 \u0915\u094B \u092A\ + \u094D\u092F\u093E\u0930 \u0915\u093F\u092F\u093E\u0964" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_moral_scenarios +tag: mmlu_hi_llama_humanities_tasks +task: mmlu_hi_llama_moral_scenarios +task_alias: moral_scenarios diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_nutrition.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_nutrition.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4b0f8961751e1a2253e095f9087fd35a87560660 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_nutrition.yaml @@ -0,0 +1,156 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u091A\u093E\u092F \u092A\u0940\u0928\u0947 \u0935\u093E\u0932\u094B\u0902\ + \ \u0915\u094B \u092E\u0927\u0941\u092E\u0947\u0939 \u0939\u094B\u0928\u0947\ + \ \u0915\u093E \u0916\u0924\u0930\u093E \u0915\u092E \u0939\u094B\u0924\u093E\ + \ \u0939\u0948\u0964" + B: "\u091A\u093E\u092F \u092A\u0940\u0928\u0947 \u0935\u093E\u0932\u094B\u0902\ + \ \u0915\u094B \u092E\u0927\u0941\u092E\u0947\u0939 \u0939\u094B\u0928\u0947\ + \ \u0915\u093E \u0916\u0924\u0930\u093E \u0905\u0927\u093F\u0915 \u0939\u094B\ + \u0924\u093E \u0939\u0948\u0964" + C: "\u0926\u0940 \u0917\u0908 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u0915\ + \u0947 \u0906\u0927\u093E\u0930 \u092A\u0930 \u0939\u092E \u092F\u0939 \u0928\ + \u0939\u0940\u0902 \u092C\u0924\u093E \u0938\u0915\u0924\u0947 \u0915\u093F\ + \ \u092C\u0940\u092E\u093E\u0930\u0940 \u0915\u0947 \u091C\u094B\u0916\u093F\ + \u092E \u092E\u0947\u0902 \u0926\u0947\u0916\u093E \u0917\u092F\u093E \u0905\ + \u0902\u0924\u0930 \u0938\u0902\u092F\u094B\u0917 \u0915\u093E \u092A\u0930\ + \u093F\u0923\u093E\u092E \u0939\u0948 \u092F\u093E \u0928\u0939\u0940\u0902\ + \u0964" + D: "\u091C\u094B\u0916\u093F\u092E \u0905\u0928\u0941\u092A\u093E\u0924 \u092E\ + \u093E\u0928 \u090F\u0915 \u0915\u0947 \u0915\u0930\u0940\u092C \u0939\u0948\ + , \u0907\u0938\u0932\u093F\u090F \u0926\u094B\u0928\u094B\u0902 \u0938\u092E\ + \u0942\u0939\u094B\u0902 \u0915\u0947 \u092C\u0940\u091A \u0930\u094B\u0917\ + \ \u091C\u094B\u0916\u093F\u092E \u092E\u0947\u0902 \u0915\u094B\u0908 \u0905\ + \u0902\u0924\u0930 \u0928\u0939\u0940\u0902 \u0939\u0948\u0964" + input_correct_responses: + - C + input_question: "\u090F\u0915 \u0938\u092E\u0942\u0939 \u0905\u0927\u094D\u092F\ + \u092F\u0928 \u092E\u0947\u0902, \u091A\u093E\u092F \u092A\u0940\u0928\u0947\ + \ \u0935\u093E\u0932\u0947 \u0909\u092A\u092D\u094B\u0915\u094D\u0924\u093E\u0913\ + \u0902 \u0915\u0940 \u0924\u0941\u0932\u0928\u093E \u0909\u0928 \u0932\u094B\ + \u0917\u094B\u0902 \u0938\u0947 \u0915\u0930\u0928\u0947 \u092A\u0930, \u091C\ + \u094B \u091A\u093E\u092F \u0928\u0939\u0940\u0902 \u092A\u0940\u0924\u0947\ + \ \u0925\u0947 (\u092C\u093F\u0928\u093E \u0909\u091C\u093E\u0917\u0930 \u0939\ + \u0941\u090F) \u092E\u0927\u0941\u092E\u0947\u0939 \u0935\u093F\u0915\u0938\u093F\ + \u0924 \u0939\u094B\u0928\u0947 \u0915\u093E \u091C\u094B\u0916\u093F\u092E\ + \ \u0905\u0928\u0941\u092A\u093E\u0924 0.86 \u0925\u093E\u0964 \u0915\u094C\u0928\ + \ \u0938\u093E \u0915\u0925\u0928 \u0938\u0939\u0940 \u0939\u0948 (2020 \u092E\ + \u0947\u0902 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u0915\u0947 \u0905\u0928\ + \u0941\u0938\u093E\u0930)?" + - input_choice_list: + A: "\u092B\u0947\u0928\u093F\u0932\u0915\u0947\u091F\u094B\u0928\u0941\u0930\ + \u093F\u092F\u093E \u0935\u093E\u0932\u0947 \u0909\u092A\u092D\u094B\u0915\ + \u094D\u0924\u093E\u0913\u0902 \u0915\u094B \u0938\u094D\u0935\u0940\u091F\ + \u0928\u0930 \u090F\u0938\u094D\u092A\u093E\u0930\u094D\u091F\u0947\u092E\ + \ \u0915\u0947 \u0938\u0947\u0935\u0928 \u0938\u0947 \u092C\u091A\u0928\u093E\ + \ \u091A\u093E\u0939\u093F\u090F" + B: "\u092B\u0947\u0928\u093F\u0932\u0915\u0947\u091F\u094B\u0928\u0941\u0930\ + \u093F\u092F\u093E \u0935\u093E\u0932\u0947 \u0909\u092A\u092D\u094B\u0915\ + \u094D\u0924\u093E\u0913\u0902 \u0915\u094B \u0938\u094D\u0935\u0940\u091F\ + \u0928\u0930 \u0938\u0948\u0915\u0930\u093F\u0928 \u0915\u0947 \u0938\u0947\ + \u0935\u0928 \u0938\u0947 \u092C\u091A\u0928\u093E \u091A\u093E\u0939\u093F\ + \u090F" + C: "\u092B\u0947\u0928\u093F\u0932\u0915\u0947\u091F\u094B\u0928\u0941\u0930\ + \u093F\u092F\u093E \u0935\u093E\u0932\u0947 \u0909\u092A\u092D\u094B\u0915\ + \u094D\u0924\u093E\u0913\u0902 \u0915\u094B \u0938\u094D\u0935\u0940\u091F\ + \u0928\u0930 \u0938\u0941\u0915\u094D\u0930\u093E\u0932\u094B\u091C\u093C\ + \ \u0915\u0947 \u0938\u0947\u0935\u0928 \u0938\u0947 \u092C\u091A\u0928\u093E\ + \ \u091A\u093E\u0939\u093F\u090F" + D: "\u092B\u0947\u0928\u093F\u0932\u0915\u0947\u091F\u094B\u0928\u0941\u0930\ + \u093F\u092F\u093E \u0935\u093E\u0932\u0947 \u0909\u092A\u092D\u094B\u0915\ + \u094D\u0924\u093E\u0913\u0902 \u0915\u094B \u0938\u094D\u0935\u0940\u091F\ + \u0928\u0930 \u090F\u0938\u0947\u0938\u0932\u094D\u092B\u0947\u092E K \u0915\ + \u0947 \u0938\u0947\u0935\u0928 \u0938\u0947 \u092C\u091A\u0928\u093E \u091A\ + \u093E\u0939\u093F\u090F" + input_correct_responses: + - A + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u0915\u0925\ + \u0928 \u0938\u0939\u0940 \u0939\u0948 (2020 \u092E\u0947\u0902 \u091C\u093E\ + \u0928\u0915\u093E\u0930\u0940 \u0915\u0947 \u0905\u0928\u0941\u0938\u093E\u0930\ + )?" + - input_choice_list: + A: "\u0915\u094B\u0932\u094B\u0928\u093F\u0915 \u092B\u093E\u0907\u092C\u0930\ + \ \u0915\u093F\u0923\u094D\u0935\u0928 \u0915\u0947 \u0926\u094C\u0930\u093E\ + \u0928 \u092C\u0928\u0928\u0947 \u0935\u093E\u0932\u093E \u092A\u094D\u0930\ + \u094B\u092A\u093F\u092F\u094B\u0928\u093F\u0915 \u090F\u0938\u093F\u0921\ + \ \u0932\u093F\u0935\u0930 \u092B\u0948\u091F\u0940 \u090F\u0938\u093F\u0921\ + \ \u0938\u0902\u0936\u094D\u0932\u0947\u0937\u0923 \u0915\u094B \u0930\u094B\ + \u0915\u0924\u093E \u0939\u0948" + B: "\u0915\u094B\u0932\u094B\u0928\u093F\u0915 \u092B\u093E\u0907\u092C\u0930\ + \ \u0915\u093F\u0923\u094D\u0935\u0928 \u0915\u0947 \u0926\u094C\u0930\u093E\ + \u0928 \u092C\u0928\u0928\u0947 \u0935\u093E\u0932\u093E \u092C\u094D\u092F\ + \u0942\u091F\u093F\u0930\u093F\u0915 \u090F\u0938\u093F\u0921, SLC5A8 \u091F\ + \u094D\u092F\u0942\u092E\u0930 \u0926\u092C\u093E\u0928\u0947 \u0935\u093E\ + \u0932\u0947 \u091C\u0940\u0928 \u0915\u0940 "\u092E\u094C\u0928"\ + \ \u0915\u094B \u0909\u0924\u094D\u0924\u0947\u091C\u093F\u0924 \u0915\u0930\ + \u0924\u093E \u0939\u0948" + C: "\u0907\u0928\u092E\u0947\u0902 \u0938\u0947 \u0915\u094B\u0908 \u092D\u0940\ + \ \u0935\u093F\u0915\u0932\u094D\u092A \u0938\u0939\u0940 \u0928\u0939\u0940\ + \u0902 \u0939\u0948" + D: "\u0915\u094B\u0932\u094B\u0928\u093F\u0915 \u092B\u093E\u0907\u092C\u0930\ + \ \u0915\u093F\u0923\u094D\u0935\u0928 \u0915\u0947 \u0926\u094C\u0930\u093E\ + \u0928 \u092C\u0928\u0928\u0947 \u0935\u093E\u0932\u093E \u092C\u094D\u092F\ + \u0942\u091F\u093F\u0930\u093F\u0915 \u090F\u0938\u093F\u0921, \u0915\u094B\ + \u0932\u0928 \u092E\u0947\u0902 \u090F\u0902\u091F\u0940-\u0911\u0915\u094D\ + \u0938\u0940\u0921\u0947\u0902\u091F \u0938\u0941\u0930\u0915\u094D\u0937\u093E\ + \ \u0915\u094B \u0909\u0924\u094D\u0924\u0947\u091C\u093F\u0924 \u0915\u0930\ + \u0924\u093E \u0939\u0948" + input_correct_responses: + - D + input_question: "2020 \u0924\u0915 \u0915\u094B\u0932\u0928 \u0915\u0947 \u0915\ + \u0948\u0902\u0938\u0930 \u0915\u0947 \u0916\u093F\u0932\u093E\u092B \u0906\u0939\ + \u093E\u0930 \u092B\u093E\u0907\u092C\u0930 \u0915\u0947 \u0938\u0941\u0930\u0915\ + \u094D\u0937\u093E\u0924\u094D\u092E\u0915 \u092A\u094D\u0930\u092D\u093E\u0935\ + \ \u0915\u0947 \u0932\u093F\u090F \u0928\u093F\u092E\u094D\u0928\u0932\u093F\ + \u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\ + \u093E \u0938\u092C\u0938\u0947 \u092A\u094D\u0930\u0936\u0902\u0938\u0928\u0940\ + \u092F \u0938\u094D\u092A\u0937\u094D\u091F\u0940\u0915\u0930\u0923 \u0939\u0948\ + ?" + - input_choice_list: + A: "50% \u0935\u092F\u0938\u094D\u0915 \u0906\u0930\u090F\u0928\u0906\u0908\ + \ \u0938\u0947 \u0928\u0940\u091A\u0947 \u0915\u0947 \u0938\u094D\u0924\u0930\ + \ \u092A\u0930 \u0906\u092F\u094B\u0921\u0940\u0928 \u0915\u093E \u0938\u0947\ + \u0935\u0928 \u0915\u0930\u0924\u0947 \u0939\u0948\u0902" + B: "\u0921\u0947\u092F\u0930\u0940 \u0909\u0924\u094D\u092A\u093E\u0926 \u0906\ + \u092F\u094B\u0921\u0940\u0928 \u0915\u093E \u0916\u093C\u0930\u093E\u092C\ + \ \u0938\u094D\u0930\u094B\u0924 \u0939\u0948\u0902" + C: "\u091C\u0948\u0935\u093F\u0915 \u0926\u0942\u0927 \u092E\u0947\u0902 \u0906\ + \u092F\u094B\u0921\u0940\u0928 \u0915\u0940 \u092E\u093E\u0924\u094D\u0930\ + \u093E \u0906\u092E \u0924\u094C\u0930 \u092A\u0930 \u0917\u0948\u0930-\u091C\ + \u0948\u0935\u093F\u0915 \u0926\u0942\u0927 \u0915\u0940 \u0924\u0941\u0932\ + \u0928\u093E \u092E\u0947\u0902 \u0915\u092E \u0939\u094B\u0924\u0940 \u0939\ + \u0948" + D: "\u092F\u0942\u0915\u0947 \u0915\u0947 \u0906\u0939\u093E\u0930 \u0938\u0902\ + \u092C\u0902\u0927\u0940 \u0938\u0902\u0926\u0930\u094D\u092D \u092E\u0942\ + \u0932\u094D\u092F \u0917\u0930\u094D\u092D\u093E\u0935\u0938\u094D\u0925\u093E\ + \ \u092E\u0947\u0902 \u0906\u092F\u094B\u0921\u0940\u0928 \u0915\u0947 \u0938\ + \u0947\u0935\u0928 \u092E\u0947\u0902 \u0935\u0943\u0926\u094D\u0927\u093F\ + \ \u0915\u0940 \u0938\u0932\u093E\u0939 \u0926\u0947\u0924\u0947 \u0939\u0948\ + \u0902" + input_correct_responses: + - C + input_question: "2020 \u0924\u0915 \u0906\u092F\u094B\u0921\u0940\u0928 \u0915\ + \u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902 \u0928\u093F\u092E\u094D\u0928\ + \u0932\u093F\u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928\ + \ \u0938\u093E \u0915\u0925\u0928 \u0938\u0939\u0940 \u0939\u0948?" + - input_choice_list: + A: "\u090F\u0915\u0930\u092C\u094B\u0938" + B: "\u092E\u0947\u091F\u092B\u094B\u0930\u094D\u092E\u093F\u0928" + C: "\u0938\u0932\u094D\u092B\u094B\u0928\u0940\u0932\u0941\u0930\u093F\u092F\ + \u093E" + D: "\u0907\u0902\u0938\u0941\u0932\u093F\u0928" + input_correct_responses: + - B + input_question: "2020 \u0924\u0915 \u091F\u093E\u0907\u092A 2 \u092E\u0927\u0941\ + \u092E\u0947\u0939 \u0914\u0930 \u092E\u094B\u091F\u093E\u092A\u0947 \u0915\u0947\ + \ \u0930\u094B\u0917\u093F\u092F\u094B\u0902 \u0915\u0947 \u0932\u093F\u090F\ + \ \u092A\u0939\u0932\u0940 \u092A\u0902\u0915\u094D\u0924\u093F \u0915\u0940\ + \ \u0926\u0935\u093E \u0915\u094D\u092F\u093E \u0939\u0948?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_nutrition +tag: mmlu_hi_llama_other_tasks +task: mmlu_hi_llama_nutrition +task_alias: nutrition diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_philosophy.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_philosophy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a55bcda9f2dc3321a86f482a93be1463548dd2aa --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_philosophy.yaml @@ -0,0 +1,88 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0939\u092E\u0947\u0902 \u0915\u0948\u0938\u0947 \u0935\u094D\u092F\u0935\ + \u0939\u093E\u0930 \u0915\u0930\u0928\u093E \u091A\u093E\u0939\u093F\u090F\ + \ \u0907\u0938\u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902 \u090F\ + \u0915 \u0928\u0948\u0924\u093F\u0915 \u0938\u093F\u0926\u094D\u0927\u093E\ + \u0902\u0924\u0964" + B: "\u0932\u094B\u0917\u094B\u0902 \u0915\u0947 \u0935\u094D\u092F\u0935\u0939\ + \u093E\u0930 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0924\u0930\u0940\u0915\ + \u0947 \u0938\u0947 \u0938\u0902\u092C\u0902\u0927\u093F\u0924 \u090F\u0915\ + \ \u0938\u093E\u092E\u093E\u0928\u094D\u092F\u0940\u0915\u0930\u0923\u0964" + C: "\u092E\u093E\u0928\u0935 \u0938\u094D\u0935\u092D\u093E\u0935 \u0914\u0930\ + \ \u0932\u094B\u0917\u094B\u0902 \u0915\u0947 \u0935\u094D\u092F\u0935\u0939\ + \u093E\u0930 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0924\u0930\u0940\u0915\ + \u094B\u0902 \u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902 \u090F\ + \u0915 \u0926\u093E\u0935\u093E\u0964" + D: "\u0907\u0928\u092E\u0947 \u0938\u0947 \u0915\u094B\u0908 \u092D\u0940 \u0928\ + \u0939\u0940\u0902\u0964" + input_correct_responses: + - C + input_question: "\u092E\u0928\u094B\u0935\u0948\u091C\u094D\u091E\u093E\u0928\u093F\ + \u0915 \u0905\u0939\u0902\u0915\u093E\u0930 \u0939\u0948:" + - input_choice_list: + A: "\u0906\u0928\u0902\u0926\u0964" + B: "\u0916\u093C\u0941\u0936\u0940\u0964" + C: "\u0905\u091A\u094D\u091B\u093E\u0964" + D: "\u0917\u0941\u0923\u0964" + input_correct_responses: + - C + input_question: "\u092E\u0942\u0930 \u0915\u0947 "\u0906\u0926\u0930\u094D\ + \u0936 \u0909\u092A\u092F\u094B\u0917\u093F\u0924\u093E\u0935\u093E\u0926"\ + \ \u0915\u0947 \u0905\u0928\u0941\u0938\u093E\u0930, \u0938\u0939\u0940 \u0915\ + \u093E\u0930\u094D\u0930\u0935\u093E\u0908 \u0935\u0939 \u0939\u0948 \u091C\u094B\ + \ \u0938\u092C\u0938\u0947 \u092C\u0921\u093C\u0940 \u092E\u093E\u0924\u094D\ + \u0930\u093E \u092E\u0947\u0902 \u092A\u0930\u093F\u0923\u093E\u092E \u0932\u093E\ + \u0924\u0940 \u0939\u0948:" + - input_choice_list: + A: "\u092E\u0941\u092B\u093C\u094D\u0924 \u0935\u093F\u0915\u0932\u094D\u092A" + B: "\u0906\u0924\u094D\u092E\u093E \u0915\u093E \u0906\u0926\u0947\u0936" + C: "\u0906\u0935\u0936\u094D\u092F\u0915 \u092A\u094D\u0930\u093E\u0915\u0943\ + \u0924\u093F\u0915 \u0928\u093F\u092F\u092E" + D: "\u0905\u0928\u093F\u0936\u094D\u091A\u093F\u0924 \u0907\u091A\u094D\u091B\ + \u093E" + input_correct_responses: + - C + input_question: "\u0921\u0940'\u0939\u094B\u0932\u094D\u092C\u0948\u0915 \u0915\ + \u0947 \u0905\u0928\u0941\u0938\u093E\u0930, \u0932\u094B\u0917 \u0938\u0926\ + \u0948\u0935 _____ \u0915\u0947 \u0905\u0928\u0941\u0938\u093E\u0930 \u0915\u093E\ + \u0930\u094D\u092F \u0915\u0930\u0924\u0947 \u0939\u0948\u0902\u0964" + - input_choice_list: + A: "\u0906\u0936\u093E\u0935\u093E\u0926\u0940" + B: "\u0938\u0902\u0924\u0941\u0937\u094D\u091F" + C: "\u0928\u093E\u092E\u092E\u093E\u0924\u094D\u0930 \u0915\u093E \u0927\u093E\ + \u0930\u094D\u092E\u093F\u0915" + D: "\u0928\u093F\u0930\u093E\u0936\u093E\u0935\u093E\u0926\u0940" + input_correct_responses: + - D + input_question: "\u091F\u0949\u0932\u094D\u0938\u094D\u091F\u0949\u092F \u0915\ + \u0947 \u0908\u0938\u093E\u0908 \u0927\u0930\u094D\u092E \u092A\u0930\u093F\u0935\ + \u0930\u094D\u0924\u0928 \u0938\u0947 \u092A\u0939\u0932\u0947, \u091C\u0940\ + \u0935\u0928 \u0915\u0947 \u0905\u0930\u094D\u0925 \u092A\u0930 \u0909\u0928\ + \u0915\u093E \u0926\u0943\u0937\u094D\u091F\u093F\u0915\u094B\u0923 \u0915\u094D\ + \u092F\u093E \u0925\u093E?" + - input_choice_list: + A: "\u0924\u0924\u094D\u0924\u094D\u0935\u092E\u0940\u092E\u093E\u0902\u0938\ + \u093E" + B: "\u091C\u094D\u091E\u093E\u0928-\u092E\u0940\u092E\u093E\u0902\u0938\u093E" + C: "\u0915\u094D\u0935\u093E\u0902\u091F\u092E \u092D\u094C\u0924\u093F\u0915\ + \u0940" + D: "\u092E\u0942\u0932\u094D\u092F\u092E\u0940\u092E\u093E\u0902\u0938\u093E" + input_correct_responses: + - A + input_question: "\u0935\u094D\u092F\u093E\u092A\u0915 \u0905\u0930\u094D\u0925\ + \u094B\u0902 \u092E\u0947\u0902 \u0935\u093E\u0938\u094D\u0924\u0935\u093F\u0915\ + \u0924\u093E \u0915\u093E \u0905\u0927\u094D\u092F\u092F\u0928, \u092C\u094D\ + \u0930\u0939\u094D\u092E\u093E\u0902\u0921 \u0915\u0940 \u092E\u094C\u0932\u093F\ + \u0915 \u092A\u094D\u0930\u0915\u0943\u0924\u093F \u0914\u0930 \u0909\u0938\u092E\ + \u0947\u0902 \u092E\u094C\u091C\u0942\u0926 \u091A\u0940\u091C\u094B\u0902 \u0915\ + \u0940 \u091C\u093E\u0902\u091A \u0915\u094B _____ \u0915\u0947 \u0930\u0942\ + \u092A \u092E\u0947\u0902 \u091C\u093E\u0928\u093E \u091C\u093E\u0924\u093E\ + \ \u0939\u0948\u0964" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_philosophy +tag: mmlu_hi_llama_humanities_tasks +task: mmlu_hi_llama_philosophy +task_alias: philosophy diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_prehistory.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_prehistory.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4896a5a0ac9267513614033aeb450fdd8dba821e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_prehistory.yaml @@ -0,0 +1,142 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0936\u0915\u094D\u0924\u093F\u0936\u093E\u0932\u0940 \u092E\u093E\u092F\ + \u093E \u0916\u0917\u094B\u0932\u0936\u093E\u0938\u094D\u0924\u094D\u0930\u0940\ + \ \u092A\u0941\u091C\u093E\u0930\u093F\u092F\u094B\u0902 \u0915\u094B \u0938\ + \u0902\u0924\u0941\u0937\u094D\u091F \u0915\u0930\u0947\u0902\u0964" + B: "\u0906\u092E \u0932\u094B\u0917\u094B\u0902 \u0915\u0947 \u092A\u094D\u0930\ + \u0924\u093F \u0905\u092A\u0928\u0940 \u0909\u0926\u093E\u0930\u0924\u093E\ + \ \u092A\u094D\u0930\u0926\u0930\u094D\u0936\u093F\u0924 \u0915\u0930\u0947\ + \u0902, \u0915\u094D\u092F\u094B\u0902\u0915\u093F \u0909\u0928\u094D\u0939\ + \u0947\u0902 \u092E\u0902\u0926\u093F\u0930\u094B\u0902 \u092E\u0947\u0902\ + \ \u0930\u0939\u0928\u0947 \u0915\u0940 \u0905\u0928\u0941\u092E\u0924\u093F\ + \ \u0925\u0940\u0964" + C: "\u0936\u0924\u094D\u0930\u0941\u0913\u0902 \u0915\u094B, \u0935\u093F\u0936\ + \u0947\u0937\u0915\u0930 \u0938\u094D\u092A\u0947\u0928\u093F\u092F\u094B\u0902\ + \ \u0915\u094B, \u0921\u0930\u093E \u0926\u0947\u0902\u0964" + D: "\u0909\u0938\u0915\u0947 \u0930\u093E\u091C\u0924\u094D\u0935 \u0915\u094B\ + \ \u0935\u0948\u0927 \u092C\u0928\u093E\u0928\u093E, \u0915\u094D\u092F\u094B\ + \u0902\u0915\u093F \u0909\u0938\u0915\u0947 \u092A\u093F\u0924\u093E \u0930\ + \u093E\u091C\u0938\u0940 \u0928\u0939\u0940\u0902 \u0925\u0947\u0964" + input_correct_responses: + - D + input_question: "\u092E\u0939\u093E\u0928 \u092E\u093E\u092F\u093E \u0930\u093E\ + \u091C\u093E \u092A\u0948\u0915\u0932 \u0928\u0947 \u092A\u0948\u0932\u0947\u0928\ + \u0915 \u0936\u0939\u0930 \u092E\u0947\u0902 \u092E\u0902\u0926\u093F\u0930\u094B\ + \u0902 \u0915\u093E \u0928\u093F\u0930\u094D\u092E\u093E\u0923 \u0915\u0930\u0935\ + \u093E\u092F\u093E:" + - input_choice_list: + A: "\u092A\u094D\u0930\u093E\u0930\u0902\u092D\u093F\u0915 \u0930\u093E\u091C\ + \u094D\u092F\u094B\u0902 \u0915\u0947 \u0909\u0926\u092F \u0915\u0947 \u0938\ + \u092E\u093E\u0928 \u0938\u094D\u0925\u093F\u0924\u093F\u092F\u094B\u0902\ + \ \u0935\u093E\u0932\u093E \u092E\u093F\u0938\u093F\u0938\u093F\u092A\u093F\ + \u092F\u093E\u0908 \u0938\u092D\u094D\u092F\u0924\u093E \u0915\u093E \u090F\ + \u0915 \u0915\u0947\u0902\u0926\u094D\u0930\u0964" + B: "\u0938\u092E\u0924\u093E\u0935\u093E\u0926\u0940 \u0935\u0928\u0935\u093E\ + \u0938\u093F\u092F\u094B\u0902 \u0915\u0947 \u092E\u0942\u0932 \u0905\u092E\ + \u0947\u0930\u093F\u0915\u0940 \u0938\u092E\u093E\u091C \u092E\u0947\u0902\ + \ \u0905\u0927\u093F\u0915\u093E\u0930 \u0915\u0940 \u0938\u0940\u092E\u093E\ + \u090F\u0901\u0964" + C: "1500 \u0908. \u0924\u0915 \u090F\u0915 \u0938\u093E\u0927\u093E\u0930\u0923\ + \ \u092E\u0941\u0916\u093F\u092F\u093E\u0924\u0902\u0924\u094D\u0930 \u092F\ + \u093E \u0936\u093E\u092F\u0926 \u090F\u0915 \u091C\u091F\u093F\u0932 \u092E\ + \u0941\u0916\u093F\u092F\u093E\u0924\u0902\u0924\u094D\u0930 \u0935\u093F\u0915\ + \u0938\u093F\u0924 \u0939\u094B \u091A\u0941\u0915\u093E \u0925\u093E\u0964" + D: "\u092E\u093F\u0938\u093F\u0938\u093F\u092A\u093F\u092F\u093E\u0908 \u0938\ + \u092D\u094D\u092F\u0924\u093E \u0915\u093E \u090F\u0915 \u0915\u0947\u0902\ + \u0926\u094D\u0930 \u091C\u093F\u0938\u0915\u0940 \u0938\u094D\u0925\u093F\ + \u0924\u093F\u092F\u093E\u0901 \u0909\u0924\u094D\u0924\u0930\u0940 \u0905\ + \u092E\u0947\u0930\u093F\u0915\u093E \u0915\u0947 \u0909\u0924\u094D\u0924\ + \u0930-\u092A\u0936\u094D\u091A\u093F\u092E\u0940 \u0924\u091F \u0915\u0947\ + \ \u0938\u092E\u093E\u091C\u094B\u0902 \u0915\u0947 \u0938\u092E\u093E\u0928\ + \ \u0939\u0948\u0902\u0964" + input_correct_responses: + - A + input_question: "\u091F\u093F\u092E\u094B\u0925\u0940 \u092A\u0949\u0915\u0947\ + \u091F\u091F \u0915\u0947 \u0905\u0928\u0941\u0938\u093E\u0930, \u0915\u093E\ + \u0939\u094B\u0915\u093F\u092F\u093E \u092E\u0947\u0902 \u0938\u093E\u092E\u093E\ + \u091C\u093F\u0915 \u0938\u094D\u0924\u0930\u0940\u0915\u0930\u0923 \u0914\u0930\ + \ \u0930\u093E\u091C\u0928\u0940\u0924\u093F\u0915 \u0936\u0915\u094D\u0924\u093F\ + \ \u0915\u0947 \u0938\u093E\u0915\u094D\u0937\u094D\u092F \u092C\u0924\u093E\ + \u0924\u0947 \u0939\u0948\u0902:" + - input_choice_list: + A: "\u0915\u093F\u0938\u0940 \u092A\u094D\u0930\u0915\u093E\u0930 \u0915\u0940\ + \ \u092A\u094D\u0930\u0932\u092F, \u091C\u0948\u0938\u0947 \u092D\u0942\u0915\ + \u0902\u092A, \u091C\u094D\u0935\u093E\u0932\u093E\u092E\u0941\u0916\u0940\ + \ \u092F\u093E \u0938\u0941\u0928\u093E\u092E\u0940\u0964" + B: "\u0915\u093E\u091F \u0915\u0930 \u091C\u0932\u093E\u0913 \u0915\u0943\u0937\ + \u093F \u0924\u0915\u0928\u0940\u0915\u094B\u0902 \u0915\u0947 \u092A\u0930\ + \u093F\u0923\u093E\u092E\u0938\u094D\u0935\u0930\u0942\u092A \u092A\u093E\u0930\ + \u093F\u0938\u094D\u0925\u093F\u0924\u093F\u0915 \u0915\u094D\u0937\u0930\u0923\ + \u0964" + C: "\u092A\u0921\u093C\u094B\u0938\u0940 \u092E\u093E\u092F\u093E \u0936\u0939\ + \u0930-\u0930\u093E\u091C\u094D\u092F\u094B\u0902 \u0915\u0947 \u092C\u0940\ + \u091A \u0905\u0902\u0924\u0939\u0940\u0928 \u092F\u0941\u0926\u094D\u0927\ + \u0964" + D: "\u0905\u0902\u0924\u0930-\u092A\u094D\u0930\u091C\u0928\u0928 \u0915\u0940\ + \ \u092A\u094D\u0930\u0925\u093E\u0913\u0902 \u0915\u0947 \u0915\u093E\u0930\ + \u0923 \u091C\u0928\u094D\u092E\u091C\u093E\u0924 \u0935\u093F\u0915\u093E\ + \u0930\u094B\u0902 \u092E\u0947\u0902 \u092D\u093E\u0930\u0940 \u0935\u0943\ + \u0926\u094D\u0927\u093F \u0939\u0941\u0908\u0964" + input_correct_responses: + - B + input_question: "\u0936\u094B\u0927\u0915\u0930\u094D\u0924\u093E \u0905\u092C\ + \ \u092E\u093E\u0928\u0924\u0947 \u0939\u0948\u0902 \u0915\u093F \u092E\u093E\ + \u092F\u093E \u0915\u093E \u092A\u0924\u0928 \u092E\u0941\u0916\u094D\u092F\u0924\ + \u0903 \u0928\u093F\u092E\u094D\u0928 \u0915\u093E\u0930\u0923\u094B\u0902 \u0938\ + \u0947 \u0939\u0941\u0906:" + - input_choice_list: + A: "\u092C\u0921\u093C\u0940 \u092E\u093E\u0924\u094D\u0930\u093E \u092E\u0947\ + \u0902 \u092A\u094D\u0930\u091C\u093E\u0924\u093F\u092F\u094B\u0902 \u0915\ + \u0940 \u0935\u093F\u0935\u093F\u0927\u0924\u093E, \u092F\u093E \u090F\u0915\ + \ \u0939\u0940 \u092A\u094D\u0930\u091C\u093E\u0924\u093F \u091C\u093F\u0938\ + \u0928\u0947 \u092C\u0939\u0941\u0924 \u0905\u0927\u093F\u0915 \u0935\u093F\ + \u0935\u093F\u0927\u0924\u093E \u092A\u094D\u0930\u0926\u0930\u094D\u0936\u093F\ + \u0924 \u0915\u0940\u0964" + B: "\u0907\u0938 \u0905\u0935\u0927\u093F \u0915\u0947 \u0926\u094C\u0930\u093E\ + \u0928 \u092A\u094D\u0930\u091C\u093E\u0924\u093F\u092F\u094B\u0902 \u0915\ + \u0940 \u0935\u093F\u0935\u093F\u0927\u0924\u093E \u092C\u0939\u0941\u0924\ + \ \u0915\u092E \u0925\u0940 \u0914\u0930 \u0939\u094B\u092E\u093F\u0928\u093F\ + \u0921 \u092D\u0940 \u092C\u0939\u0941\u0924 \u0915\u092E \u0925\u0947\u0964" + C: "\u0932\u0902\u092C\u0947 \u0938\u092E\u092F \u0924\u0915 \u0939\u093F\u092E\ + \u092F\u0941\u0917 \u0914\u0930 \u0909\u0938\u0915\u0947 \u092C\u093E\u0926\ + \ \u092D\u092F\u0902\u0915\u0930 \u0938\u0942\u0916\u0947 \u0915\u0947 \u0915\ + \u093E\u0930\u0923 \u092A\u094D\u0930\u091C\u093E\u0924\u093F\u092F\u094B\u0902\ + \ \u0915\u0940 \u0935\u093F\u0935\u093F\u0927\u0924\u093E \u092E\u0947\u0902\ + \ \u0915\u092E\u0940 \u0906\u0908\u0964" + D: "\u092A\u094D\u0930\u091C\u093E\u0924\u093F\u092F\u094B\u0902 \u0915\u0940\ + \ \u0935\u093F\u0935\u093F\u0927\u0924\u093E \u092E\u0947\u0902 \u0915\u092E\ + \u0940 \u0906\u0908 \u0932\u0947\u0915\u093F\u0928 \u0939\u0925\u094C\u0921\ + \u093C\u0947 \u0915\u0947 \u092A\u0924\u094D\u0925\u0930\u094B\u0902 \u0914\ + \u0930 \u0917\u0941\u091A\u094D\u091B\u094B\u0902 \u0915\u0940 \u0938\u0902\ + \u0916\u094D\u092F\u093E \u092E\u0947\u0902 \u0935\u0943\u0926\u094D\u0927\ + \u093F \u0939\u0941\u0908, \u091C\u094B \u092A\u0924\u094D\u0925\u0930 \u0915\ + \u0947 \u0914\u091C\u093E\u0930\u094B\u0902 \u0915\u0947 \u0928\u093F\u0930\ + \u094D\u092E\u093E\u0923 \u0915\u093E \u0938\u0902\u0915\u0947\u0924 \u0939\ + \u0948\u0964" + input_correct_responses: + - A + input_question: "\u092E\u0927\u094D\u092F \u092A\u094D\u0932\u093F\u092F\u094B\ + \u0938\u0940\u0928 \u0938\u0947 \u0938\u0902\u092C\u0902\u0927\u093F\u0924 \u0939\ + \u094B\u092E\u093F\u0928\u093F\u0921 \u092A\u094D\u0930\u091C\u093E\u0924\u093F\ + \u092F\u094B\u0902 \u092A\u0930 \u0939\u093E\u0932\u093F\u092F\u093E \u0936\u094B\ + \u0927 \u0938\u0947 \u0938\u0902\u0915\u0947\u0924 \u092E\u093F\u0932\u0924\u093E\ + \ \u0939\u0948 \u0915\u093F (2020 \u0924\u0915):" + - input_choice_list: + A: "650 \u0938\u0940\u0938\u0940 \u0938\u0947 \u0915\u092E" + B: "\u0932\u0917\u092D\u0917 800 \u0938\u0940.\u0938\u0940" + C: "\u092C\u0938 1000 \u0938\u0940\u0938\u0940 \u0938\u0947 \u0915\u092E" + D: "1200 \u0938\u0940.\u0938\u0940" + input_correct_responses: + - C + input_question: "\u0939\u094B\u092E\u094B \u0907\u0930\u0947\u0915\u094D\u091F\ + \u0938 \u0915\u0940 \u0905\u0928\u0941\u092E\u093E\u0928\u093F\u0924 \u0914\u0938\ + \u0924 \u0915\u092A\u093E\u0932 \u0915\u094D\u0937\u092E\u0924\u093E \u0915\u094D\ + \u092F\u093E \u0939\u0948?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_prehistory +tag: mmlu_hi_llama_humanities_tasks +task: mmlu_hi_llama_prehistory +task_alias: prehistory diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_professional_accounting.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_professional_accounting.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ffd2a0e2e40873e77e5411aebb49248871c06458 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_professional_accounting.yaml @@ -0,0 +1,152 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: $70,000 + B: $75,000 + C: $80,000 + D: '100000' + input_correct_responses: + - D + input_question: "\u092C\u0949\u0915\u094D\u0938 \u090F\u0915 \u0917\u0948\u0930\ + -\u0938\u0930\u0915\u093E\u0930\u0940 \u0917\u0948\u0930-\u0932\u093E\u092D\u0915\ + \u093E\u0930\u0940 \u0938\u0902\u0917\u0920\u0928 \u0928\u0947 \u0935\u0930\u094D\ + \u0937 \u0915\u0947 \u0926\u094C\u0930\u093E\u0928 \u0928\u093F\u092E\u094D\u0928\ + \u0932\u093F\u0916\u093F\u0924 \u0932\u0947\u0928\u0926\u0947\u0928 \u0915\u093F\ + \u090F: \u0928\u093F\u0935\u0947\u0936 \u0915\u0940 \u092C\u093F\u0915\u094D\ + \u0930\u0940 \u0938\u0947 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0906\u092F\ + \ $80000 \u0938\u0902\u092A\u0924\u094D\u0924\u093F \u0938\u0902\u092F\u0902\ + \u0924\u094D\u0930 \u0914\u0930 \u0909\u092A\u0915\u0930\u0923 \u0915\u0940\ + \ \u0916\u0930\u0940\u0926 $10000 \u0926\u0940\u0930\u094D\u0918\u0915\u093E\ + \u0932\u093F\u0915 \u090B\u0923 \u0938\u0947 \u0906\u092F $100000 \u0928\u093F\ + \u0935\u0947\u0936 \u0915\u0940 \u092C\u093F\u0915\u094D\u0930\u0940 \u092A\u0930\ + \ \u0939\u093E\u0928\u093F $5000 \u0915\u093F\u0924\u0928\u0940 \u0930\u093E\ + \u0936\u093F \u0915\u094B \u0936\u0941\u0926\u094D\u0927 \u0915\u0947 \u0930\ + \u0942\u092A \u092E\u0947\u0902 \u0930\u093F\u092A\u094B\u0930\u094D\u091F \u0915\ + \u093F\u092F\u093E \u091C\u093E\u0928\u093E \u091A\u093E\u0939\u093F\u090F \u092C\ + \u0949\u0915\u094D\u0938 \u0915\u0947 \u0928\u0915\u0926\u0940 \u092A\u094D\u0930\ + \u0935\u093E\u0939 \u0935\u093F\u0935\u0930\u0923 \u092E\u0947\u0902 \u0935\u093F\ + \u0924\u094D\u0924\u0940\u092F \u0917\u0924\u093F\u0935\u093F\u0927\u093F\u092F\ + \u094B\u0902 \u0926\u094D\u0935\u093E\u0930\u093E \u092A\u094D\u0930\u0926\u093E\ + \u0928 \u0915\u0940 \u0917\u0908 \u0928\u0915\u0926\u0940?" + - input_choice_list: + A: $13,000 + B: $600 + C: $15,000 + D: $28,000 + input_correct_responses: + - A + input_question: "\u0938\u094C \u0938\u093E\u0932 \u092A\u0939\u0932\u0947, \u0906\ + \u092A\u0915\u0940 \u092A\u0930\u0926\u093E\u0926\u0940 \u0928\u0947 5% \u0935\ + \u093E\u0930\u094D\u0937\u093F\u0915 \u092C\u094D\u092F\u093E\u091C \u092A\u0930\ + \ 100 \u0921\u0949\u0932\u0930 \u0915\u093E \u0928\u093F\u0935\u0947\u0936 \u0915\ + \u093F\u092F\u093E \u0925\u093E\u0964 \u0906\u091C \u0928\u093F\u0935\u0947\u0936\ + \ \u0915\u093E \u092E\u0942\u0932\u094D\u092F \u0915\u094D\u092F\u093E \u0939\ + \u0948?" + - input_choice_list: + A: $0 + B: $500 + C: $1,650 + D: $16,500 + input_correct_responses: + - A + input_question: "\u0915\u094D\u0930\u0947\u0924\u0947 \u090F\u0915 \u0905\u0935\ + \u093F\u0935\u093E\u0939\u093F\u0924 \u0915\u0930\u0926\u093E\u0924\u093E \u0939\ + \u0948 \u091C\u093F\u0938\u0915\u0940 \u0906\u092F \u0935\u093F\u0936\u0947\u0937\ + \ \u0930\u0942\u092A \u0938\u0947 \u092E\u091C\u0926\u0942\u0930\u0940 \u0938\ + \u0947 \u0939\u094B\u0924\u0940 \u0939\u0948\u0964 31 \u0926\u093F\u0938\u0902\ + \u092C\u0930, \u0935\u0930\u094D\u0937 1 \u0924\u0915, \u0915\u094D\u0930\u0947\ + \u0924\u0947 \u0915\u0947 \u0928\u093F\u092F\u094B\u0915\u094D\u0924\u093E \u0928\ + \u0947 \u0938\u0902\u0918\u0940\u092F \u0906\u092F \u0915\u0930\u094B\u0902\ + \ \u092E\u0947\u0902 $16,000 \u0930\u094B\u0915 \u0932\u093F\u092F\u093E \u0939\ + \u0948 \u0914\u0930 \u0915\u094D\u0930\u0947\u0924\u0947 \u0928\u0947 \u0915\ + \u094B\u0908 \u0905\u0928\u0941\u092E\u093E\u0928\u093F\u0924 \u0915\u0930 \u092D\ + \u0941\u0917\u0924\u093E\u0928 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E\ + \ \u0939\u0948\u0964 15 \u0905\u092A\u094D\u0930\u0948\u0932, \u0935\u0930\u094D\ + \u0937 2 \u0915\u094B, \u0915\u094D\u0930\u0947\u0924\u0947 \u0928\u0947 \u0905\ + \u092A\u0928\u093E \u0935\u094D\u092F\u0915\u094D\u0924\u093F\u0917\u0924 \u0915\ + \u0930 \u0930\u093F\u091F\u0930\u094D\u0928 \u0926\u093E\u0916\u093F\u0932 \u0915\ + \u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0938\u092E\u092F \u092A\ + \u0930 \u0935\u093F\u0938\u094D\u0924\u093E\u0930 \u0905\u0928\u0941\u0930\u094B\ + \u0927 \u0926\u093E\u092F\u0930 \u0915\u093F\u092F\u093E, \u0914\u0930 $300\ + \ \u0905\u0924\u093F\u0930\u093F\u0915\u094D\u0924 \u0915\u0930 \u0915\u093E\ + \ \u092D\u0941\u0917\u0924\u093E\u0928 \u0915\u093F\u092F\u093E\u0964 \u0915\ + \u094D\u0930\u0947\u0924\u0947 \u0915\u0940 \u0935\u0930\u094D\u0937 1 \u0915\ + \u0940 \u0915\u0930 \u0926\u0947\u092F\u0924\u093E $16,500 \u0925\u0940 \u091C\ + \u092C \u0909\u0938\u0928\u0947 \u0938\u092E\u092F \u092A\u0930 30 \u0905\u092A\ + \u094D\u0930\u0948\u0932, \u0935\u0930\u094D\u0937 2 \u0915\u094B \u0905\u092A\ + \u0928\u093E \u0930\u093F\u091F\u0930\u094D\u0928 \u0926\u093E\u0916\u093F\u0932\ + \ \u0915\u093F\u092F\u093E \u0914\u0930 \u0936\u0947\u0937 \u0915\u0930 \u0926\ + \u0947\u092F\u0924\u093E \u0915\u093E \u092D\u0941\u0917\u0924\u093E\u0928 \u0915\ + \u093F\u092F\u093E\u0964 \u0905\u0928\u0941\u092E\u093E\u0928\u093F\u0924 \u0915\ + \u0930\u094B\u0902 \u0915\u0947 \u0915\u092E \u092D\u0941\u0917\u0924\u093E\u0928\ + \ \u0915\u0947 \u0932\u093F\u090F \u0915\u093F\u0924\u0928\u0940 \u0930\u093E\ + \u0936\u093F \u091C\u0941\u0930\u094D\u092E\u093E\u0928\u0947 \u0915\u0947 \u0905\ + \u0927\u0940\u0928 \u0939\u094B\u0917\u0940?" + - input_choice_list: + A: $5,000 + B: $13,500 + C: $16,000 + D: $20,000 + input_correct_responses: + - B + input_question: "\u091C\u0928\u0935\u0930\u0940 1, \u0935\u0930\u094D\u0937 1\ + \ \u0915\u094B, \u0905\u0932\u094D\u092B\u093E \u0915\u0902\u092A\u0928\u0940\ + \ \u0928\u0947 \u090F\u0915 \u0938\u0949\u092B\u094D\u091F\u0935\u0947\u092F\ + \u0930 \u092A\u094D\u0930\u0926\u093E\u0924\u093E \u0915\u0947 \u0938\u093E\u0925\ + \ 15,000 \u0921\u0949\u0932\u0930 \u0915\u0947 \u0935\u093E\u0930\u094D\u0937\ + \u093F\u0915 \u0930\u0916\u0930\u0916\u093E\u0935 \u0938\u092E\u091D\u094C\u0924\ + \u0947 \u092A\u0930 \u0939\u0938\u094D\u0924\u093E\u0915\u094D\u0937\u0930 \u0915\ + \u093F\u090F \u0914\u0930 \u0930\u0916\u0930\u0916\u093E\u0935 \u0915\u0940\ + \ \u0905\u0935\u0927\u093F 1 \u092E\u093E\u0930\u094D\u091A, \u0935\u0930\u094D\ + \u0937 2 \u0938\u0947 \u0936\u0941\u0930\u0942 \u0939\u094B\u0924\u0940 \u0939\ + \u0948\u0964 \u0905\u0932\u094D\u092B\u093E \u0928\u0947 1 \u091C\u0928\u0935\ + \u0930\u0940, \u0935\u0930\u094D\u0937 1 \u0915\u094B \u0938\u0949\u092B\u094D\ + \u091F\u0935\u0947\u092F\u0930 \u0938\u0902\u0936\u094B\u0927\u0928 \u0938\u0947\ + \ \u0938\u0902\u092C\u0902\u0927\u093F\u0924 $5,000 \u0915\u0940 \u0932\u093E\ + \u0917\u0924 \u092D\u0940 \u0916\u0930\u094D\u091A \u0915\u0940\u0964 \u0905\ + \u0928\u0941\u0930\u094B\u0927 \u091C\u094B \u0938\u0949\u092B\u093C\u094D\u091F\ + \u0935\u0947\u092F\u0930 \u0915\u0940 \u0915\u093E\u0930\u094D\u092F\u0915\u094D\ + \u0937\u092E\u0924\u093E \u092C\u0922\u093C\u093E\u090F\u0902\u0917\u0947\u0964\ + \ \u0905\u0932\u094D\u092B\u093E \u0938\u094D\u091F\u094D\u0930\u0947\u091F\ + -\u0932\u093E\u0907\u0928 \u0935\u093F\u0927\u093F \u0915\u093E \u0909\u092A\ + \u092F\u094B\u0917 \u0915\u0930\u0915\u0947 \u092A\u093E\u0902\u091A \u0935\u0930\ + \u094D\u0937\u094B\u0902 \u092E\u0947\u0902 \u0905\u092A\u0928\u0947 \u0915\u0902\ + \u092A\u094D\u092F\u0942\u091F\u0930 \u0914\u0930 \u0938\u0949\u092B\u094D\u091F\ + \u0935\u0947\u092F\u0930 \u092A\u0930\u093F\u0938\u0902\u092A\u0924\u094D\u0924\ + \u093F\u092F\u094B\u0902 \u0915\u093E \u092E\u0942\u0932\u094D\u092F\u0939\u094D\ + \u0930\u093E\u0938 \u0914\u0930 \u092A\u0930\u093F\u0936\u094B\u0927\u0928 \u0915\ + \u0930\u0924\u093E \u0939\u0948\u0964 31 \u0926\u093F\u0938\u0902\u092C\u0930\ + , \u0935\u0930\u094D\u0937 1 \u0915\u094B \u0938\u092E\u093E\u092A\u094D\u0924\ + \ \u0935\u0930\u094D\u0937 \u0915\u0947 \u0932\u093F\u090F \u0930\u0916\u0930\ + \u0916\u093E\u0935 \u0938\u092E\u091D\u094C\u0924\u0947 \u0914\u0930 \u0938\u0949\ + \u092B\u093C\u094D\u091F\u0935\u0947\u092F\u0930 \u0938\u0902\u0936\u094B\u0927\ + \u0928\u094B\u0902 \u0938\u0947 \u0938\u0902\u092C\u0902\u0927\u093F\u0924 \u0905\ + \u0932\u094D\u092B\u093C\u093E \u0915\u094B \u0915\u0941\u0932 \u0935\u094D\u092F\ + \u092F \u0915\u093F\u0924\u0928\u0940 \u0930\u093E\u0936\u093F \u092E\u093E\u0928\ + \u0928\u0940 \u091A\u093E\u0939\u093F\u090F?" + - input_choice_list: + A: "\u092E\u0942\u0932\u094D\u092F\u093E\u0902\u0915\u0928 \u090F\u0935\u0902\ + \ \u0906\u0935\u0902\u091F\u0928" + B: "\u0938\u0902\u092A\u0942\u0930\u094D\u0923\u0924\u093E" + C: "\u0905\u0927\u093F\u0915\u093E\u0930 \u0906\u0948\u0930 \u0926\u093E\u092F\ + \u093F\u0924\u094D\u0935" + D: "\u092A\u094D\u0930\u0938\u094D\u0924\u0941\u0924\u093F \u090F\u0935\u0902\ + \ \u092A\u094D\u0930\u0915\u091F\u0940\u0915\u0930\u0923" + input_correct_responses: + - B + input_question: "\u090F\u0915 \u0911\u0921\u093F\u091F\u0930 \u0915\u093F\u0938\ + \u0940 \u0917\u0948\u0930-\u091C\u093E\u0930\u0940\u0915\u0930\u094D\u0924\u093E\ + \ \u0915\u0947 \u0938\u092C\u0932\u0947\u091C\u0930 \u0915\u094B \u0909\u092A\ + \u0915\u0930\u0923 \u092A\u0930 \u0938\u0940\u0930\u093F\u092F\u0932 \u0928\u0902\ + \u092C\u0930 \u0915\u093E \u092A\u0924\u093E \u0932\u0917\u093E\u0924\u093E\ + \ \u0939\u0948\u0964 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u092A\u094D\ + \u0930\u092C\u0902\u0927\u0928 \u0926\u093E\u0935\u093E \u0907\u0938 \u092A\u0930\ + \u0940\u0915\u094D\u0937\u0923 \u0926\u094D\u0935\u093E\u0930\u093E \u0938\u092E\ + \u0930\u094D\u0925\u093F\u0924 \u0939\u0948?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_accounting +tag: mmlu_hi_llama_other_tasks +task: mmlu_hi_llama_professional_accounting +task_alias: professional_accounting diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_professional_law.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_professional_law.yaml new file mode 100644 index 0000000000000000000000000000000000000000..77651a89b16eb1c2cb8f4b6be01e10256dd8c0b9 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_professional_law.yaml @@ -0,0 +1,434 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u091A\u094C\u0926\u0939\u0935\u0947\u0902 \u0938\u0902\u0936\u094B\u0927\ + \u0928 \u0915\u0947 \u0928\u093F\u092F\u0924 \u092A\u094D\u0930\u0915\u094D\ + \u0930\u093F\u092F\u093E \u0916\u0902\u0921 \u0915\u0947 \u0924\u0939\u0924\ + \ \u0905\u0938\u094D\u092A\u0937\u094D\u091F\u0924\u093E \u0915\u0947 \u0915\ + \u093E\u0930\u0923 \u0915\u093C\u093E\u0928\u0942\u0928 \u0936\u0942\u0928\ + \u094D\u092F \u0939\u0948\u0964" + B: "\u0915\u093C\u093E\u0928\u0942\u0928 \u0905\u092E\u093E\u0928\u094D\u092F\ + \ \u0939\u0948 \u0915\u094D\u092F\u094B\u0902\u0915\u093F \u092F\u0939 \u092A\ + \u094D\u0930\u0925\u092E \u0938\u0902\u0936\u094B\u0927\u0928 \u0915\u0947\ + \ \u0924\u0939\u0924 \u092F\u093E\u091A\u093F\u0915\u093E\u0915\u0930\u094D\ + \u0924\u093E \u0915\u0940 \u092C\u094B\u0932\u0928\u0947 \u0915\u0940 \u0938\ + \u094D\u0935\u0924\u0902\u0924\u094D\u0930\u0924\u093E \u0915\u093E \u0909\ + \u0932\u094D\u0932\u0902\u0918\u0928 \u0915\u0930\u0924\u093E \u0939\u0948\ + \u0964" + C: "\u092F\u0939 \u0915\u093C\u093E\u0928\u0942\u0928 \u092A\u094D\u0930\u0925\ + \u092E \u0938\u0902\u0936\u094B\u0927\u0928 \u0915\u0947 \u0924\u0939\u0924\ + \ \u092C\u094B\u0932\u0928\u0947 \u0915\u0940 \u0938\u094D\u0935\u0924\u0902\ + \u0924\u094D\u0930\u0924\u093E \u0915\u093E \u0939\u0928\u0928 \u0939\u0948\ + \ \u0915\u094D\u092F\u094B\u0902\u0915\u093F \u0938\u092E\u093E\u0928 \u0909\ + \u0926\u094D\u0926\u0947\u0936\u094D\u092F \u0915\u094B \u092A\u094D\u0930\ + \u093E\u092A\u094D\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\ + \u090F \u0915\u092E \u092A\u094D\u0930\u0924\u093F\u092C\u0902\u0927\u093E\ + \u0924\u094D\u092E\u0915 \u0938\u093E\u0927\u0928 \u0909\u092A\u0932\u092C\ + \u094D\u0927 \u0939\u0948\u0902\u0964" + D: "\u0915\u093C\u093E\u0928\u0942\u0928 \u0935\u094D\u092F\u093E\u092A\u0915\ + \ \u0939\u0948 \u0914\u0930 \u092A\u0930\u093F\u0923\u093E\u092E\u0938\u094D\ + \u0935\u0930\u0942\u092A \u092A\u0939\u0932\u0947 \u0914\u0930 \u091A\u094C\ + \u0926\u0939\u0935\u0947\u0902 \u0938\u0902\u0936\u094B\u0927\u0928 \u0915\ + \u0947 \u0924\u0939\u0924 \u0905\u092E\u093E\u0928\u094D\u092F \u0939\u0948\ + \u0964" + input_correct_responses: + - D + input_question: "\u090F\u0915 \u0930\u093E\u091C\u094D\u092F \u0935\u093F\u0927\ + \u093E\u092F\u093F\u0915\u093E \u0928\u0947 \u0939\u093E\u0932 \u0939\u0940\ + \ \u092E\u0947\u0902 \u090F\u0915 \u0915\u093C\u093E\u0928\u0942\u0928 \u092C\ + \u0928\u093E\u092F\u093E \u0939\u0948, \u091C\u093F\u0938\u0938\u0947 \u0905\ + \u092A\u0928\u0947 \u0915\u0930\u094D\u0924\u0935\u094D\u092F\u094B\u0902 \u0915\ + \u093E \u092A\u093E\u0932\u0928 \u0915\u0930 \u0930\u0939\u0947 \u0915\u093F\ + \u0938\u0940 \u092A\u0941\u0932\u093F\u0938 \u0905\u0927\u093F\u0915\u093E\u0930\ + \u0940 \u0915\u094B \u0936\u094D\u0930\u093E\u092A \u0926\u0947\u0928\u093E\ + , \u0928\u093F\u0902\u0926\u093E \u0915\u0930\u0928\u093E \u092F\u093E \u0909\ + \u0938\u0915\u0947 \u092A\u094D\u0930\u0924\u093F \u092F\u093E \u0909\u0938\u0915\ + \u0947 \u0938\u0902\u0926\u0930\u094D\u092D \u092E\u0947\u0902 \u0905\u0936\u094D\ + \u0932\u0940\u0932 \u092F\u093E \u0905\u092A\u092E\u093E\u0928\u091C\u0928\u0915\ + \ \u092D\u093E\u0937\u093E \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\ + \u0930\u0928\u093E \u090F\u0915 \u0926\u0941\u0937\u094D\u0915\u0930\u094D\u092E\ + \ \u0939\u0948\u0964 \u0930\u093E\u091C\u094D\u092F \u0935\u093F\u0936\u094D\ + \u0935\u0935\u093F\u0926\u094D\u092F\u093E\u0932\u092F \u0915\u0947 \u090F\u0915\ + \ \u091B\u093E\u0924\u094D\u0930 \u0928\u0947 \u092F\u0941\u0926\u094D\u0927\ + \ \u0915\u0947 \u0935\u093F\u0930\u094B\u0927 \u092E\u0947\u0902 \u092A\u0930\ + \u093F\u0938\u0930 \u092E\u0947\u0902 \u090F\u0915 \u092A\u094D\u0930\u0926\u0930\ + \u094D\u0936\u0928 \u0915\u093E \u0906\u092F\u094B\u091C\u0928 \u0915\u093F\u092F\ + \u093E\u0964 \u0930\u0948\u0932\u0940 \u092E\u0947\u0902 50 \u091B\u093E\u0924\ + \u094D\u0930\u094B\u0902 \u0915\u0947 \u090F\u0915 \u0938\u092E\u0942\u0939\ + \ \u0928\u0947 \u092D\u093E\u0917 \u0932\u093F\u092F\u093E, \u091C\u093F\u0928\ + \u094D\u0939\u094B\u0902\u0928\u0947 \u092A\u093E\u0938 \u0938\u0947 \u0917\u0941\ + \u091C\u0930\u0928\u0947 \u0935\u093E\u0932\u0940 \u0915\u093E\u0930\u094B\u0902\ + \ \u092A\u0930 \u092F\u0941\u0926\u094D\u0927-\u0935\u093F\u0930\u094B\u0927\ + \u0940 \u0938\u0902\u0926\u0947\u0936 \u091A\u093F\u0932\u094D\u0932\u093E\u090F\ + \u0964 \u0938\u0902\u092F\u0941\u0915\u094D\u0924 \u0930\u093E\u091C\u094D\u092F\ + \ \u0905\u092E\u0947\u0930\u093F\u0915\u093E \u0915\u0947 \u092A\u094D\u0930\ + \u0924\u093F \u0905\u092A\u0928\u0940 \u0905\u0935\u092E\u093E\u0928\u0928\u093E\ + \ \u0926\u093F\u0916\u093E\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F, \u091B\ + \u093E\u0924\u094D\u0930 \u0928\u0947 \u0905\u092A\u0928\u0940 \u091C\u0940\u0902\ + \u0938 \u0915\u0947 \u092A\u093F\u091B\u0932\u0947 \u0939\u093F\u0938\u094D\u0938\ + \u0947 \u092A\u0930 \u0905\u092E\u0947\u0930\u093F\u0915\u0940 \u0927\u094D\u0935\ + \u091C \u0938\u093F\u0932 \u0926\u093F\u092F\u093E\u0964 \u091C\u092C \u090F\ + \u0915 \u092A\u0941\u0932\u093F\u0938 \u0905\u0927\u093F\u0915\u093E\u0930\u0940\ + \ \u0928\u0947 \u091B\u093E\u0924\u094D\u0930 \u0915\u0940 \u091C\u0940\u0902\ + \u0938 \u092A\u0930 \u091D\u0902\u0921\u093E \u0932\u0917\u093E \u0939\u0941\ + \u0906 \u0926\u0947\u0916\u093E, \u0924\u094B \u0935\u0939 \u0909\u0938\u0915\ + \u0947 \u092A\u093E\u0938 \u0906\u092F\u093E \u0914\u0930 \u0909\u0938\u0938\ + \u0947 \u0915\u0939\u093E \u0915\u093F \u0935\u0939 \u091D\u0902\u0921\u093E\ + \ \u0939\u091F\u093E \u0926\u0947 \u0905\u0928\u094D\u092F\u0925\u093E \u0909\ + \u0938\u0947 \u0917\u093F\u0930\u092B\u094D\u0924\u093E\u0930 \u0915\u0930 \u0932\ + \u093F\u092F\u093E \u091C\u093E\u090F\u0917\u093E\u0964 \u091B\u093E\u0924\u094D\ + \u0930 \u0915\u094D\u0930\u094B\u0927\u093F\u0924 \u0939\u094B \u0917\u092F\u093E\ + \ \u0914\u0930 \u092A\u0941\u0932\u093F\u0938 \u0905\u0927\u093F\u0915\u093E\ + \u0930\u0940 \u092A\u0930 \u091A\u093F\u0932\u094D\u0932\u093E\u092F\u093E,\ + \ "\u0938\u0941\u0928\u094B, \u0915\u092E\u0940\u0928\u0947, \u092E\u0948\ + \u0902 \u092F\u0939 \u0915\u092A\u0921\u093C\u093E \u091C\u0939\u093E\u0902\ + \ \u092D\u0940 \u091A\u093E\u0939\u0942\u0902 \u092A\u0939\u0928\u0942\u0902\ + \u0917\u093E\u0964" \u092C\u093E\u0926 \u092E\u0947\u0902 \u091B\u093E\u0924\ + \u094D\u0930 \u0915\u094B \u0917\u093F\u0930\u092B\u094D\u0924\u093E\u0930 \u0915\ + \u0930 \u0932\u093F\u092F\u093E \u0917\u092F\u093E \u0914\u0930 \u0930\u093E\ + \u091C\u094D\u092F \u0915\u093C\u093E\u0928\u0942\u0928 \u0915\u093E \u0909\u0932\ + \u094D\u0932\u0902\u0918\u0928 \u0915\u0930\u0928\u0947 \u0915\u093E \u0906\u0930\ + \u094B\u092A \u0932\u0917\u093E\u092F\u093E \u0917\u092F\u093E\u0964 \u091B\u093E\ + \u0924\u094D\u0930 \u092C\u093E\u0926 \u092E\u0947\u0902 \u0915\u093C\u093E\u0928\ + \u0942\u0928 \u0915\u0940 \u0938\u0902\u0935\u0948\u0927\u093E\u0928\u093F\u0915\ + \u0924\u093E \u0915\u094B \u091A\u0941\u0928\u094C\u0924\u0940 \u0926\u0947\u0924\ + \u0947 \u0939\u0941\u090F \u0930\u093E\u091C\u094D\u092F \u0905\u0926\u093E\u0932\ + \u0924 \u092E\u0947\u0902 \u092E\u0941\u0915\u0926\u092E\u093E \u0926\u093E\u092F\ + \u0930 \u0915\u0930\u0924\u093E \u0939\u0948\u0964 \u091B\u093E\u0924\u094D\u0930\ + \ \u0915\u0947 \u0932\u093F\u090F \u0938\u092C\u0938\u0947 \u092E\u091C\u092C\ + \u0942\u0924 \u0938\u0902\u0935\u0948\u0927\u093E\u0928\u093F\u0915 \u0924\u0930\ + \u094D\u0915 \u092F\u0939\u0940 \u0939\u0948" + - input_choice_list: + A: "\u0935\u093E\u0923\u093F\u091C\u094D\u092F \u0916\u0902\u0921." + B: "\u091A\u094C\u0926\u0939\u0935\u0947\u0902 \u0938\u0902\u0936\u094B\u0927\ + \u0928 \u0915\u093E \u0938\u092E\u093E\u0928 \u0938\u0902\u0930\u0915\u094D\ + \u0937\u0923 \u0916\u0902\u0921\u0964" + C: "\u0905\u0928\u0941\u091A\u094D\u091B\u0947\u0926 IV, \u0927\u093E\u0930\u093E\ + \ 2 \u0915\u0947 \u0935\u093F\u0936\u0947\u0937\u093E\u0927\u093F\u0915\u093E\ + \u0930 \u0914\u0930 \u0909\u0928\u094D\u092E\u0941\u0915\u094D\u0924\u093F\ + \u092F\u093E\u0901 \u0916\u0902\u0921\u0964" + D: "\u0905\u0928\u0941\u092C\u0902\u0927 \u0916\u0902\u0921." + input_correct_responses: + - A + input_question: "\u090F\u0915 \u0930\u093E\u091C\u094D\u092F \u0928\u0947 \u0939\ + \u093E\u0932 \u0939\u0940 \u092E\u0947\u0902 \u0930\u093E\u091C\u094D\u092F\ + \ \u0915\u0947 \u092D\u0940\u0924\u0930 \u0915\u093F\u0938\u0940 \u092D\u0940\ + \ \u092A\u0930\u092E\u093E\u0923\u0941 \u0915\u091A\u0930\u0947 \u0915\u0947\ + \ \u0928\u093F\u092A\u091F\u093E\u0928 \u092A\u0930 \u0930\u094B\u0915 \u0932\ + \u0917\u093E\u0928\u0947 \u0935\u093E\u0932\u093E \u090F\u0915 \u0915\u093C\u093E\ + \u0928\u0942\u0928 \u092C\u0928\u093E\u092F\u093E \u0939\u0948\u0964 \u092F\u0939\ + \ \u0915\u093E\u0928\u0942\u0928 \u0915\u093F\u0938\u0940 \u092D\u0940 \u0938\ + \u0902\u0918\u0940\u092F \u0915\u093C\u093E\u0928\u0942\u0928 \u0915\u093E \u0909\ + \u0932\u094D\u0932\u0902\u0918\u0928 \u092F\u093E \u091F\u0915\u0930\u093E\u0935\ + \ \u0928\u0939\u0940\u0902 \u0915\u0930\u0924\u093E \u0939\u0948\u0964 \u090F\ + \u0915 \u0906\u0926\u092E\u0940 \u0930\u093E\u091C\u094D\u092F \u092E\u0947\u0902\ + \ \u090F\u0915 \u0915\u0902\u092A\u0928\u0940 \u091A\u0932\u093E\u0924\u093E\ + \ \u0939\u0948 \u091C\u094B \u092A\u0930\u092E\u093E\u0923\u0941 \u0915\u091A\ + \u0930\u0947 \u0915\u0947 \u0928\u093F\u092A\u091F\u093E\u0928 \u092E\u0947\u0902\ + \ \u0932\u0917\u0940 \u0939\u0941\u0908 \u0939\u0948\u0964 \u0930\u093E\u091C\ + \u094D\u092F \u0915\u093C\u093E\u0928\u0942\u0928 \u0915\u0947 \u092A\u093E\u0930\ + \u093F\u0924 \u0939\u094B\u0928\u0947 \u0915\u0947 \u092C\u093E\u0926, \u0909\ + \u0938 \u0935\u094D\u092F\u0915\u094D\u0924\u093F \u0915\u094B, \u091C\u094B\ + \ \u0905\u092D\u0940 \u0924\u0915 \u0928\u090F \u0915\u093E\u0928\u0942\u0928\ + \ \u0938\u0947 \u0905\u0935\u0917\u0924 \u0928\u0939\u0940\u0902 \u0925\u093E\ + , \u0930\u093E\u091C\u094D\u092F \u092E\u0947\u0902 \u0905\u092A\u0928\u0947\ + \ \u092A\u0930\u092E\u093E\u0923\u0941 \u0915\u091A\u0930\u0947 \u0915\u0947\ + \ \u0928\u093F\u092A\u091F\u093E\u0928 \u0915\u0947 \u0932\u093F\u090F \u0915\ + \u0908 \u0930\u093E\u091C\u094D\u092F-\u092C\u093E\u0939\u0930 \u0915\u0940\ + \ \u0915\u0902\u092A\u0928\u093F\u092F\u094B\u0902 \u0915\u0947 \u0938\u093E\ + \u0925 \u0905\u0928\u0941\u092C\u0902\u0927 \u092E\u0947\u0902 \u092A\u094D\u0930\ + \u0935\u0947\u0936 \u0915\u093F\u092F\u093E\u0964 \u0939\u093E\u0932\u093E\u0901\ + \u0915\u093F, \u0907\u0938 \u0928\u090F \u0915\u093E\u0928\u0942\u0928 \u0915\ + \u0947 \u0915\u093E\u0930\u0923, \u0906\u0926\u092E\u0940 \u0907\u0928 \u0905\ + \u0928\u0941\u092C\u0902\u0927\u094B\u0902 \u0915\u094B \u092A\u0942\u0930\u093E\ + \ \u0915\u0930\u0928\u0947 \u092E\u0947\u0902 \u0905\u0938\u092E\u0930\u094D\ + \u0925 \u0939\u094B\u0917\u093E\u0964 \u092E\u093E\u0928 \u0932\u0940\u091C\u093F\ + \u090F \u0915\u093F \u0935\u0939 \u0935\u094D\u092F\u0915\u094D\u0924\u093F\ + \ \u0907\u0938 \u0930\u093E\u091C\u094D\u092F \u0915\u093E\u0928\u0942\u0928\ + \ \u0915\u094B \u091A\u0941\u0928\u094C\u0924\u0940 \u0926\u0947\u0928\u0947\ + \ \u0915\u0947 \u0932\u093F\u090F \u0916\u0921\u093C\u093E \u0939\u0948\u0964\ + \ \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u092E\u0947\u0902\ + \ \u0938\u0947 \u0915\u094C\u0928 \u0930\u093E\u091C\u094D\u092F \u0915\u0947\ + \ \u092D\u0940\u0924\u0930 \u092A\u0930\u092E\u093E\u0923\u0941 \u0915\u091A\ + \u0930\u0947 \u0915\u0947 \u0928\u093F\u092A\u091F\u093E\u0928 \u092A\u0930\ + \ \u0930\u094B\u0915 \u0932\u0917\u093E\u0928\u0947 \u0935\u093E\u0932\u0947\ + \ \u0930\u093E\u091C\u094D\u092F \u0915\u0947 \u0915\u093E\u0928\u0942\u0928\ + \ \u0915\u094B \u091A\u0941\u0928\u094C\u0924\u0940 \u0926\u0947\u0928\u0947\ + \ \u0915\u0947 \u0932\u093F\u090F \u0905\u092A\u0928\u093E \u0938\u092C\u0938\ + \u0947 \u092E\u091C\u092C\u0942\u0924 \u0938\u0902\u0935\u0948\u0927\u093E\u0928\ + \u093F\u0915 \u0906\u0927\u093E\u0930 \u092A\u094D\u0930\u0938\u094D\u0924\u0941\ + \u0924 \u0915\u0930\u0924\u093E \u0939\u0948?" + - input_choice_list: + A: "\u0928\u093F\u0930\u094D\u0935\u093F\u0935\u093E\u0926 \u0924\u0925\u094D\ + \u092F." + B: "\u0935\u0947 \u0924\u0925\u094D\u092F \u091C\u094B \u0935\u094D\u092F\u0915\ + \u094D\u0924\u093F\u0917\u0924 \u0930\u093E\u091C\u0928\u0940\u0924\u093F\u0915\ + \ \u0938\u0902\u0917\u0920\u0928\u094B\u0902 \u0926\u094D\u0935\u093E\u0930\ + \u093E \u0926\u093E\u0935\u093E \u0915\u093F\u090F \u0917\u090F \u0939\u0948\ + \u0902\u0964" + C: "\u0938\u093E\u092E\u093E\u0928\u094D\u092F \u091C\u094D\u091E\u093E\u0928\ + \ \u0926\u094D\u0935\u093E\u0930\u093E \u0938\u0924\u094D\u092F \u092E\u093E\ + \u0928\u0947 \u091C\u093E\u0928\u0947 \u0935\u093E\u0932\u0947 \u0924\u0925\ + \u094D\u092F\u0964" + D: "\u0935\u0948\u091C\u094D\u091E\u093E\u0928\u093F\u0915 \u0938\u0924\u094D\ + \u092F\u093E\u092A\u0928 \u092E\u0947\u0902 \u0938\u0915\u094D\u0937\u092E\ + \ \u0924\u0925\u094D\u092F." + input_correct_responses: + - B + input_question: "\u0928\u094D\u092F\u093E\u092F\u093E\u0927\u0940\u0936 \u0928\ + \u0947 \u092E\u0941\u0915\u0926\u092E\u0947 \u0915\u0940 \u0936\u0941\u0930\u0941\ + \u0906\u0924 \u092E\u0947\u0902 \u0915\u0941\u091B \u0924\u0925\u094D\u092F\u094B\ + \u0902 \u092A\u0930 \u0928\u094D\u092F\u093E\u092F\u093F\u0915 \u0938\u0902\u091C\ + \u094D\u091E\u093E\u0928 \u0932\u093F\u092F\u093E\u0964 \u0928\u093F\u092E\u094D\ + \u0928\u0932\u093F\u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\ + \u0928 \u0938\u093E \u0928\u094D\u092F\u093E\u092F\u093F\u0915 \u0928\u094B\u091F\ + \u093F\u0938 \u0915\u0947 \u0932\u093F\u090F \u0909\u092A\u092F\u0941\u0915\u094D\ + \u0924 \u092A\u094D\u0930\u0915\u093E\u0930 \u0915\u093E \u0924\u0925\u094D\u092F\ + \ \u0928\u0939\u0940\u0902 \u0939\u0948?" + - input_choice_list: + A: "\u0930\u093E\u0939\u0924 \u092A\u094D\u0930\u0926\u093E\u0928 \u0915\u0930\ + \u0947\u0902, \u0915\u094D\u092F\u094B\u0902\u0915\u093F \u092C\u093E\u0921\ + \u093C \u0938\u0941\u0916 \u0938\u0941\u0935\u093F\u0927\u093E \u092A\u094D\ + \u0930\u0924\u093F\u092C\u0902\u0927 \u0915\u093E \u0909\u0932\u094D\u0932\ + \u0902\u0918\u0928 \u0915\u0930 \u0930\u0939\u0940 \u0925\u0940\u0964" + B: "\u0930\u093E\u0939\u0924 \u092A\u094D\u0930\u0926\u093E\u0928 \u0915\u0930\ + \u0947\u0902, \u0915\u094D\u092F\u094B\u0902\u0915\u093F \u092C\u093E\u0921\ + \u093C \u0915\u0947 \u0905\u0924\u093F\u0915\u094D\u0930\u092E\u0923 \u0928\ + \u0947 \u092E\u0942\u0932 \u092F\u094B\u091C\u0928\u093E \u092E\u0947\u0902\ + \ \u092A\u094D\u0930\u0924\u093F\u092C\u0902\u0927 \u0915\u093E \u0909\u0932\ + \u094D\u0932\u0902\u0918\u0928 \u0915\u093F\u092F\u093E \u0939\u0948\u0964" + C: "\u0930\u093E\u0939\u0924 \u0938\u0947 \u0907\u0928\u0915\u093E\u0930 \u0915\ + \u0930\u0947\u0902, \u0915\u094D\u092F\u094B\u0902\u0915\u093F \u0936\u093F\ + \u0915\u094D\u0937\u0915 \u0938\u0947\u0935\u093E\u0928\u093F\u0935\u0943\u0924\ + \u094D\u0924 \u0915\u0947 \u0916\u093F\u0932\u093E\u092B \u092A\u094D\u0930\ + \u0924\u093F\u092C\u0902\u0927 \u0932\u093E\u0917\u0942 \u0915\u0930\u0928\ + \u0947 \u092E\u0947\u0902 \u0935\u093F\u092B\u0932 \u0930\u0939\u093E\u0964" + D: "\u0930\u093E\u0939\u0924 \u0938\u0947 \u0907\u0928\u0915\u093E\u0930 \u0915\ + \u0930\u0947\u0902, \u0915\u094D\u092F\u094B\u0902\u0915\u093F \u092A\u094D\ + \u0930\u0924\u093F\u092C\u0902\u0927 \u0915\u0940 \u0936\u0930\u094D\u0924\ + \u094B\u0902 \u0915\u0947 \u0924\u0939\u0924 \u092C\u093E\u0921\u093C \u0915\ + \u094B "\u090F\u0915 \u0938\u0902\u0930\u091A\u0928\u093E" \u0915\ + \u0947 \u0930\u0942\u092A \u092E\u0947\u0902 \u0928\u0939\u0940\u0902 \u0938\ + \u092E\u091D\u093E \u091C\u093E\u090F\u0917\u093E\u0964" + input_correct_responses: + - B + input_question: "1 \u0905\u0915\u094D\u091F\u0942\u092C\u0930 1980 \u0915\u094B\ + , \u090F\u0915 \u0917\u094D\u0930\u093E\u092E\u0940\u0923 \u0915\u093E\u0909\ + \u0902\u091F\u0940 \u092E\u0947\u0902 \u0915\u0908 \u0938\u094C \u090F\u0915\ + \u0921\u093C \u091C\u092E\u0940\u0928 \u0915\u0947 \u092E\u093E\u0932\u093F\u0915\ + , \u090F\u0915 \u0921\u0947\u0935\u0932\u092A\u0930 \u0928\u0947 \u0915\u094D\ + \u0937\u0947\u0924\u094D\u0930 \u0915\u0947 \u0932\u093F\u090F \u090F\u0915\ + \ \u0938\u093E\u092E\u093E\u0928\u094D\u092F \u0935\u093F\u0915\u093E\u0938\ + \ \u092F\u094B\u091C\u0928\u093E \u0915\u093E \u092E\u0938\u094C\u0926\u093E\ + \ \u0924\u0948\u092F\u093E\u0930 \u0915\u093F\u092F\u093E\u0964 \u0935\u093F\ + \u0927\u093F\u0935\u0924 \u0926\u0930\u094D\u091C \u092F\u094B\u091C\u0928\u093E\ + \ \u092E\u0947\u0902 \u092F\u094B\u091C\u0928\u093E \u092E\u0947\u0902 \u092D\ + \u0942\u092E\u093F \u092A\u0930 \u0935\u093F\u0938\u094D\u0924\u0943\u0924 \u0938\ + \u0940\u092E\u093E\u090F\u0902 \u0914\u0930 \u092A\u094D\u0930\u0924\u093F\u092C\ + \u0902\u0927 \u0932\u0917\u093E\u090F \u0917\u090F \u0925\u0947, \u091C\u093F\ + \u0938\u0947 \u090F\u0915 \u0906\u0935\u093E\u0938\u0940\u092F \u091C\u093F\u0932\ + \u0947 \u0915\u0947 \u0930\u0942\u092A \u092E\u0947\u0902 \u0935\u093F\u0915\ + \u0938\u093F\u0924 \u0915\u093F\u092F\u093E \u091C\u093E\u0928\u093E \u0925\u093E\ + \u0964 \u092A\u094D\u0930\u0924\u093F\u092C\u0902\u0927 \u0915\u093F\u0938\u0940\ + \ \u092D\u0940 \u0932\u0949\u091F \u0915\u094B \u092A\u094D\u0930\u093E\u092A\ + \u094D\u0924 \u0915\u0930\u0928\u0947 \u0935\u093E\u0932\u0947 \u0938\u092D\u0940\ + \ \u0935\u094D\u092F\u0915\u094D\u0924\u093F\u092F\u094B\u0902 \u0914\u0930\ + \ \u0909\u0928\u0915\u0947 \u0909\u0924\u094D\u0924\u0930\u093E\u0927\u093F\u0915\ + \u093E\u0930\u093F\u092F\u094B\u0902, \u0928\u093F\u092F\u0941\u0915\u094D\u0924\ + \u093F\u092F\u094B\u0902 \u0914\u0930 \u092A\u091F\u094D\u091F\u0947\u0926\u093E\ + \u0930\u094B\u0902 \u092A\u0930 \u0932\u093E\u0917\u0942 \u0939\u094B\u0928\u0947\ + \ \u0925\u0947\u0964 \u0906\u0917\u0947 \u092F\u0939 \u092A\u094D\u0930\u093E\ + \u0935\u0927\u093E\u0928 \u0915\u093F\u092F\u093E \u0917\u092F\u093E \u0915\u093F\ + \ \u0938\u092D\u0940 \u092C\u093E\u0926 \u0915\u0947 \u092E\u093E\u0932\u093F\ + \u0915\u094B\u0902 \u0938\u0947 \u092A\u094D\u0930\u0924\u093F\u092C\u0902\u0927\ + \u094B\u0902 \u0915\u0940 \u0909\u091A\u093F\u0924 \u0938\u0942\u091A\u0928\u093E\ + \ \u0932\u0940 \u091C\u093E\u090F\u0917\u0940\u0964 \u0938\u093E\u092E\u093E\ + \u0928\u094D\u092F \u092F\u094B\u091C\u0928\u093E \u092E\u0947\u0902 \u0909\u0928\ + \ \u092A\u094D\u0930\u0924\u093F\u092C\u0902\u0927\u094B\u0902 \u092E\u0947\u0902\ + \ \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u0925\u0947\ + : (22) \u092A\u094D\u0930\u0935\u0947\u0936 \u0914\u0930 \u0928\u093F\u0915\u093E\ + \u0938 \u0915\u0947 \u0905\u0927\u093F\u0915\u093E\u0930 \u0915\u0947 \u0938\ + \u093E\u0925 \u0938\u093E\u0930\u094D\u0935\u091C\u0928\u093F\u0915 \u0909\u092A\ + \u092F\u094B\u0917\u093F\u0924\u093E \u0915\u0902\u092A\u0928\u093F\u092F\u094B\ + \u0902 \u0915\u0947 \u0909\u092A\u092F\u094B\u0917 \u0915\u0947 \u0932\u093F\ + \u090F \u092A\u094D\u0930\u0924\u094D\u092F\u0947\u0915 \u0932\u0949\u091F \u0915\ + \u0947 \u092A\u0940\u091B\u0947 10 \u092B\u0940\u091F \u091A\u094C\u0921\u093C\ + \u0940 \u092D\u0942\u092E\u093F \u0915\u0940 \u090F\u0915 \u092A\u091F\u094D\ + \u091F\u0940 \u092E\u0947\u0902 \u090F\u0915 \u092E\u0924\u093E\u0927\u093F\u0915\ + \u093E\u0930 \u0905\u0927\u093F\u0915\u093E\u0930 \u092C\u0928\u093E\u092F\u093E\ + \ \u091C\u093E\u0924\u093E \u0939\u0948\u0964 (23) \u0909\u0915\u094D\u0924\ + \ \u092C\u094D\u0932\u0949\u0915\u094B\u0902 \u0938\u0947 \u0917\u0941\u091C\ + \u0930\u0928\u0947 \u0935\u093E\u0932\u0940 \u092D\u0942\u092E\u093F \u0915\u0940\ + \ \u0909\u092A\u0930\u094B\u0915\u094D\u0924 \u092A\u091F\u094D\u091F\u0940\ + \ \u092A\u0930 \u0915\u093F\u0938\u0940 \u092D\u0940 \u092A\u094D\u0930\u0915\ + \u093E\u0930 \u0915\u093E \u0915\u094B\u0908 \u0918\u0930 \u092F\u093E \u0938\ + \u0902\u0930\u091A\u0928\u093E \u0928\u0939\u0940\u0902 \u092C\u0928\u093E\u0908\ + \ \u091C\u093E\u090F\u0917\u0940\u0964 2000 \u092E\u0947\u0902, \u090F\u0915\ + \ \u0938\u0947\u0935\u093E\u0928\u093F\u0935\u0943\u0924\u094D\u0924 \u0935\u094D\ + \u092F\u0915\u094D\u0924\u093F \u0928\u0947 \u0932\u0949\u091F \u092E\u0947\u0902\ + \ \u0938\u0947 \u090F\u0915 \u0916\u0930\u0940\u0926\u093E, \u090F\u0915 \u0918\ + \u0930 \u092C\u0928\u093E\u092F\u093E, \u0914\u0930 \u092A\u094D\u0930\u0924\ + \u093F\u092C\u0902\u0927\u093F\u0924 \u0915\u094D\u0937\u0947\u0924\u094D\u0930\ + \ \u0915\u0947 \u092D\u0940\u0924\u0930 \u0905\u092A\u0928\u0940 \u0938\u0902\ + \u092A\u0924\u094D\u0924\u093F \u0915\u0947 \u092A\u0940\u091B\u0947 \u090F\u0915\ + \ \u092C\u093E\u0921\u093C \u0932\u0917\u093E \u0926\u0940\u0964 2004 \u092E\ + \u0947\u0902, \u090F\u0915 \u0936\u093F\u0915\u094D\u0937\u0915 \u0928\u0947\ + \ \u0938\u0947\u0935\u093E\u0928\u093F\u0935\u0943\u0924\u094D\u0924 \u0935\u094D\ + \u092F\u0915\u094D\u0924\u093F \u0915\u0940 \u0938\u0902\u092A\u0924\u094D\u0924\ + \u093F \u0915\u0947 \u092A\u093E\u0938 \u092C\u0939\u0941\u0924 \u0915\u0941\ + \u091B \u0916\u0930\u0940\u0926\u093E \u0914\u0930 \u090F\u0915 \u0928\u092F\ + \u093E \u0918\u0930 \u092C\u0928\u093E\u092F\u093E\u0964 \u0926\u094B \u0938\ + \u093E\u0932 \u092C\u093E\u0926, \u090F\u0915 \u0932\u093E\u0907\u092C\u094D\ + \u0930\u0947\u0930\u093F\u092F\u0928 \u0928\u0947 \u0936\u093F\u0915\u094D\u0937\ + \u0915 \u0915\u0940 \u0938\u0902\u092A\u0924\u094D\u0924\u093F \u0938\u0947\ + \ \u091C\u0941\u0921\u093C\u0940 \u0939\u0941\u0908 \u091C\u092E\u0940\u0928\ + \ \u0916\u0930\u0940\u0926 \u0932\u0940\u0964 \u0909\u0928 \u0938\u0902\u092A\ + \u0924\u094D\u0924\u093F\u092F\u094B\u0902 \u0915\u0947 \u0924\u0940\u0928 \u0915\ + \u093E\u0930\u094D\u092F\u094B\u0902 \u092E\u0947\u0902 \u0938\u0947 \u092A\u094D\ + \u0930\u0924\u094D\u092F\u0947\u0915 \u092E\u0947\u0902 \u0921\u0940\u0921 \u092C\ + \u0941\u0915 \u0915\u093E \u0938\u0902\u0926\u0930\u094D\u092D \u0936\u093E\u092E\ + \u093F\u0932 \u0925\u093E \u091C\u0939\u093E\u0902 \u0938\u093E\u092E\u093E\u0928\ + \u094D\u092F \u092F\u094B\u091C\u0928\u093E \u0926\u0930\u094D\u091C \u0915\u0940\ + \ \u0917\u0908 \u0925\u0940\u0964 2008 \u092E\u0947\u0902, \u0932\u093E\u0907\ + \u092C\u094D\u0930\u0947\u0930\u093F\u092F\u0928 \u0928\u0947 \u0936\u093F\u0915\ + \u094D\u0937\u0915 \u0915\u0947 \u0938\u093E\u0925 \u0905\u092A\u0928\u0947\ + \ \u0939\u093F\u0938\u094D\u0938\u0947 \u0915\u094B \u0935\u093F\u092D\u093E\ + \u091C\u093F\u0924 \u0915\u0930\u0928\u0947 \u0935\u093E\u0932\u0940 \u0930\u0947\ + \u0916\u093E \u0915\u0947 \u0938\u093E\u0925-\u0938\u093E\u0925, \u0914\u0930\ + \ \u092E\u0924\u093E\u0927\u093F\u0915\u093E\u0930 \u0905\u0927\u093F\u0915\u093E\ + \u0930 \u0915\u0947 \u0905\u0927\u0940\u0928 \u0915\u094D\u0937\u0947\u0924\u094D\ + \u0930 \u0915\u0947 \u0915\u0947\u0902\u0926\u094D\u0930 \u0915\u0947 \u0938\ + \u093E\u0925 \u0938\u093E\u0924 \u092B\u0941\u091F \u0915\u0940 \u092A\u094B\ + \u0938\u094D\u091F-\u090F\u0902\u0921-\u0930\u0947\u0932 \u092C\u093E\u0921\u093C\ + \ \u0915\u093E \u0928\u093F\u0930\u094D\u092E\u093E\u0923 \u0936\u0941\u0930\ + \u0942 \u0915\u093F\u092F\u093E\u0964 \u0939\u093E\u0932\u093E\u0901\u0915\u093F\ + \ \u0936\u093F\u0915\u094D\u0937\u0915 \u0928\u0947 \u0907\u0938\u0915\u0947\ + \ \u0928\u093F\u0930\u094D\u092E\u093E\u0923 \u092A\u0930 \u0906\u092A\u0924\ + \u094D\u0924\u093F \u091C\u0924\u093E\u0908, \u0932\u0947\u0915\u093F\u0928\ + \ \u092C\u093E\u0921\u093C \u0915\u093E \u0928\u093F\u0930\u094D\u092E\u093E\ + \u0923 \u092A\u0942\u0930\u093E \u0939\u094B \u0917\u092F\u093E\u0964 \u092F\ + \u0926\u093F \u0936\u093F\u0915\u094D\u0937\u0915 \u0932\u093E\u0907\u092C\u094D\ + \u0930\u0947\u0930\u093F\u092F\u0928 \u0915\u0940 \u092C\u093E\u0921\u093C \u0915\ + \u094B \u0939\u091F\u093E\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092C\ + \u093E\u0927\u094D\u092F \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F\ + \ \u0905\u0928\u093F\u0935\u093E\u0930\u094D\u092F \u0928\u093F\u0937\u0947\u0927\ + \u093E\u091C\u094D\u091E\u093E \u0915\u0940 \u092E\u093E\u0902\u0917 \u0915\u0930\ + \u0924\u093E \u0939\u0948, \u0924\u094B \u0905\u0926\u093E\u0932\u0924 \u0938\ + \u092C\u0938\u0947 \u0905\u0927\u093F\u0915 \u0938\u0902\u092D\u093E\u0935\u0928\ + \u093E \u0939\u094B\u0917\u0940" + - input_choice_list: + A: "\u092A\u093F\u0924\u093E \u0915\u093E \u0935\u093E\u0926\u093E \u0914\u0930\ + \ \u0909\u0938 \u092A\u0930 \u090B\u0923\u0926\u093E\u0924\u093E \u0915\u0940\ + \ \u0928\u093F\u0930\u094D\u092D\u0930\u0924\u093E, \u092F\u0926\u093F \u0938\ + \u093E\u092C\u093F\u0924 \u0939\u094B \u091C\u093E\u0924\u0940 \u0939\u0948\ + , \u0924\u094B \u0935\u091A\u0928\u092C\u0902\u0927\u0928 \u0915\u0947 \u0938\ + \u093F\u0926\u094D\u0927\u093E\u0902\u0924 \u0915\u0947 \u0906\u0927\u093E\ + \u0930 \u092A\u0930 \u090B\u0923\u0926\u093E\u0924\u093E \u0926\u094D\u0935\ + \u093E\u0930\u093E \u092A\u093F\u0924\u093E \u0915\u0947 \u0916\u093F\u0932\ + \u093E\u092B \u090F\u0915 \u0935\u0948\u0927 \u0926\u093E\u0935\u0947 \u0915\ + \u094B \u091C\u0928\u094D\u092E \u0926\u093F\u092F\u093E \u091C\u093E\u0924\ + \u093E \u0939\u0948\u0964" + B: "\u0915\u094D\u092F\u094B\u0902\u0915\u093F \u092F\u0939 \u0905\u0928\u0941\ + \u092E\u093E\u0928 \u0932\u0917\u093E\u092F\u093E \u091C\u093E \u0938\u0915\ + \u0924\u093E \u0925\u093E \u0915\u093F \u092A\u093F\u0924\u093E \u0915\u093E\ + \ \u0935\u093E\u0926\u093E \u0932\u0947\u0928\u0926\u093E\u0930 \u0915\u094B\ + \ \u092C\u0947\u091F\u0947 \u0915\u0947 \u0916\u093F\u0932\u093E\u092B \u0915\ + \u094B\u0908 \u092D\u0940 \u0915\u093E\u0930\u094D\u0930\u0935\u093E\u0908\ + \ \u0915\u0930\u0928\u0947 \u0938\u0947 \u092E\u0928\u093E \u0915\u0930\u0928\ + \u0947 \u0915\u0947 \u0932\u093F\u090F \u092A\u094D\u0930\u0947\u0930\u093F\ + \u0924 \u0915\u0930\u0947\u0917\u093E, \u0907\u0938 \u0924\u0930\u0939 \u0915\ + \u0940 \u0938\u0939\u0928\u0936\u0940\u0932\u0924\u093E, \u0915\u093E\u0928\ + \u0942\u0928 \u0915\u0947 \u092E\u093E\u092E\u0932\u0947 \u092E\u0947\u0902\ + , \u092A\u093F\u0924\u093E \u0915\u0947 \u0935\u093E\u0926\u0947 \u0915\u0947\ + \ \u0932\u093F\u090F \u090F\u0915 \u0938\u094C\u0926\u093E \u0925\u0940\u0964" + C: "\u092A\u093F\u0924\u093E \u0926\u094D\u0935\u093E\u0930\u093E \u0932\u0947\ + \u0928\u0926\u093E\u0930 \u0915\u094B \u0915\u0941\u0932 2,500 \u0921\u0949\ + \u0932\u0930 \u0915\u0947 \u092A\u093E\u0901\u091A \u092D\u0941\u0917\u0924\ + \u093E\u0928 \u0915\u0930\u0928\u0947 \u0938\u0947 \u092A\u093F\u0924\u093E\ + \ \u0915\u0940 \u0913\u0930 \u0938\u0947 \u0938\u0902\u0935\u093F\u0926\u093E\ + \u0924\u094D\u092E\u0915 \u0930\u0942\u092A \u0938\u0947 \u092C\u093E\u0927\ + \u094D\u092F \u0939\u094B\u0928\u0947 \u0915\u093E \u0917\u0902\u092D\u0940\ + \u0930 \u0907\u0930\u093E\u0926\u093E \u092A\u094D\u0930\u0915\u091F \u0939\ + \u094B\u0924\u093E \u0939\u0948, \u0914\u0930 \u0907\u0938 \u0924\u0930\u0939\ + \ \u0915\u0940 \u0905\u092D\u093F\u0935\u094D\u092F\u0915\u094D\u0924\u093F\ + \ \u0915\u094B \u0906\u092E \u0924\u094C\u0930 \u092A\u0930 \u0935\u093F\u091A\ + \u093E\u0930 \u0915\u0947 \u0932\u093F\u090F \u090F\u0915 \u092A\u094D\u0930\ + \u092D\u093E\u0935\u0940 \u0935\u093F\u0915\u0932\u094D\u092A \u0915\u0947\ + \ \u0930\u0942\u092A \u092E\u0947\u0902 \u092E\u093E\u0928\u094D\u092F\u0924\ + \u093E \u0926\u0940 \u091C\u093E\u0924\u0940 \u0939\u0948\u0964" + D: "\u092C\u0947\u091F\u0947 \u0926\u094D\u0935\u093E\u0930\u093E \u0932\u0947\ + \u0928\u0926\u093E\u0930 \u0915\u0947 \u092A\u094D\u0930\u0924\u093F \u0926\ + \u0947\u092F \u092A\u0942\u0930\u094D\u0935\u0935\u0930\u094D\u0924\u0940\ + \ \u090B\u0923 \u0926\u093E\u092F\u093F\u0924\u094D\u0935 \u0915\u094B \u092E\ + \u093E\u0928\u0915\u0930, \u092A\u093F\u0924\u093E \u090F\u0915 \u091C\u093C\ + \u092E\u093E\u0928\u0924 \u092C\u0928 \u0917\u092F\u093E \u091C\u093F\u0938\ + \u0915\u093E \u0932\u0947\u0928\u0926\u093E\u0930 \u0938\u0947 \u0915\u093F\ + \u092F\u093E \u0917\u092F\u093E \u0935\u093E\u0926\u093E \u0932\u093E\u0917\ + \u0942 \u0915\u0930\u0928\u0947 \u092F\u094B\u0917\u094D\u092F \u0925\u093E\ + , \u0915\u094D\u092F\u094B\u0902\u0915\u093F \u092F\u0939 \u0932\u093F\u0916\ + \u093F\u0924 \u0930\u0942\u092A \u092E\u0947\u0902 \u0925\u093E \u0914\u0930\ + \ \u092A\u0930\u094D\u092F\u093E\u092A\u094D\u0924 \u0935\u093F\u091A\u093E\ + \u0930-\u0935\u093F\u092E\u0930\u094D\u0936 \u0926\u094D\u0935\u093E\u0930\ + \u093E \u0938\u092E\u0930\u094D\u0925\u093F\u0924 \u0925\u093E\u0964" + input_correct_responses: + - A + input_question: "\u090F\u0915 \u092C\u0947\u091F\u0947 \u092A\u0930 \u090F\u0915\ + \ \u0932\u0947\u0928\u0926\u093E\u0930 \u0915\u093E 5,000 \u0921\u0949\u0932\ + \u0930 \u092C\u0915\u093E\u092F\u093E \u0925\u093E\u0964 \u092C\u0947\u091F\u0947\ + \ \u0915\u0947 \u092A\u093F\u0924\u093E \u0928\u0947 \u0932\u0947\u0928\u0926\ + \u093E\u0930 \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u093F\u092F\ + \u093E \u0914\u0930 \u0909\u0938\u0938\u0947 \u0915\u0939\u093E \u0915\u093F\ + \ \u0935\u0939 \u092C\u0947\u091F\u0947 \u0915\u093E \u0915\u0930\u094D\u091C\ + \ \u091A\u0941\u0915\u093E\u0928\u093E \u091A\u093E\u0939\u0924\u093E \u0939\ + \u0948\u0964 \u092A\u093F\u0924\u093E \u0928\u0947 \u090F\u0915 \u0926\u0938\ + \u094D\u0924\u093E\u0935\u0947\u091C\u093C \u092A\u0930 \u0939\u0938\u094D\u0924\ + \u093E\u0915\u094D\u0937\u0930 \u0915\u093F\u090F \u091C\u093F\u0938\u092E\u0947\ + \u0902 \u0915\u0939\u093E \u0917\u092F\u093E \u0925\u093E \u0915\u093F \u092A\ + \u093F\u0924\u093E 10 \u092E\u0939\u0940\u0928\u0947 \u0924\u0915 500 \u0921\ + \u0949\u0932\u0930 \u092A\u094D\u0930\u0924\u093F \u092E\u093E\u0939 \u0915\u0940\ + \ \u0926\u0930 \u0938\u0947 \u092C\u0947\u091F\u0947 \u0915\u093E \u0915\u0930\ + \u094D\u091C\u093C \u091A\u0941\u0915\u093E\u090F\u0917\u093E\u0964 \u0932\u0947\ + \u0928\u0926\u093E\u0930 \u0928\u0947 5,000 \u0921\u0949\u0932\u0930 \u0915\u093E\ + \ \u0915\u0930\u094D\u091C\u093C \u0935\u0938\u0942\u0932\u0928\u0947 \u0915\ + \u0947 \u0932\u093F\u090F \u092C\u0947\u091F\u0947 \u092A\u0930 \u092E\u0941\ + \u0915\u0926\u092E\u093E \u0915\u0930\u0928\u0947 \u0938\u0947 \u0930\u094B\u0915\ + \u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u094B\u0908 \u0932\u093F\ + \u0916\u093F\u0924 \u092F\u093E \u092E\u094C\u0916\u093F\u0915 \u092A\u094D\u0930\ + \u0924\u093F\u092C\u0926\u094D\u0927\u0924\u093E \u0928\u0939\u0940\u0902 \u091C\ + \u0924\u093E\u0908, \u0914\u0930 \u092A\u093F\u0924\u093E \u0928\u0947 \u092D\ + \u0940 \u0910\u0938\u0940 \u0915\u093F\u0938\u0940 \u092D\u0940 \u0930\u094B\ + \u0915 \u0915\u0947 \u0932\u093F\u090F \u0915\u094B\u0908 \u092E\u094C\u0916\ + \u093F\u0915 \u092F\u093E \u0932\u093F\u0916\u093F\u0924 \u0905\u0928\u0941\u0930\ + \u094B\u0927 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E\u0964 \u0905\u0917\ + \u0932\u0947 \u092A\u093E\u0901\u091A \u092E\u0939\u0940\u0928\u094B\u0902 \u0915\ + \u0947 \u0932\u093F\u090F, \u092A\u093F\u0924\u093E \u0928\u0947 \u092D\u0941\ + \u0917\u0924\u093E\u0928 \u0915\u093F\u092F\u093E \u0914\u0930 \u0932\u0947\u0928\ + \u0926\u093E\u0930 \u0928\u0947 \u0938\u0939\u092E\u0924\u093F \u0915\u0947\ + \ \u0905\u0928\u0941\u0938\u093E\u0930 $500 \u0915\u093E \u092E\u093E\u0938\u093F\ + \u0915 \u092D\u0941\u0917\u0924\u093E\u0928 \u0938\u094D\u0935\u0940\u0915\u093E\ + \u0930 \u0915\u0930 \u0932\u093F\u092F\u093E\u0964 \u0909\u0938 \u0905\u0935\ + \u0927\u093F \u0915\u0947 \u0926\u094C\u0930\u093E\u0928, \u090B\u0923\u0926\ + \u093E\u0924\u093E \u0928\u0947, \u0935\u093E\u0938\u094D\u0924\u0935 \u092E\ + \u0947\u0902, \u092C\u0947\u091F\u0947 \u0915\u0947 \u0916\u093F\u0932\u093E\ + \u092B \u0915\u094B\u0908 \u092D\u0940 \u0915\u093E\u0928\u0942\u0928\u0940\ + \ \u0915\u093E\u0930\u094D\u0930\u0935\u093E\u0908 \u0915\u0930\u0928\u0947\ + \ \u0938\u0947 \u092E\u0928\u093E \u0915\u0930 \u0926\u093F\u092F\u093E\u0964\ + \ \u0939\u093E\u0932\u093E\u0901\u0915\u093F, \u0924\u092C \u092A\u093F\u0924\ + \u093E \u0928\u0947 \u0932\u0947\u0928\u0926\u093E\u0930 \u0915\u094B \u0938\ + \u0942\u091A\u093F\u0924 \u0915\u093F\u092F\u093E \u0915\u093F \u0935\u0939\ + \ \u090B\u0923 \u092A\u0930 \u0915\u094B\u0908 \u0914\u0930 \u092D\u0941\u0917\ + \u0924\u093E\u0928 \u0928\u0939\u0940\u0902 \u0915\u0930\u0947\u0917\u093E\u0964\ + \ \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u092E\u0947\u0902\ + \ \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u0938\u092C\u0938\u0947 \u092A\ + \u094D\u0930\u0947\u0930\u0915 \u0924\u0930\u094D\u0915 \u0939\u0948 \u0915\u093F\ + \ \u092A\u093F\u0924\u093E \u0905\u092A\u0928\u0947 \u0938\u092E\u091D\u094C\ + \u0924\u0947 \u0915\u0940 \u0936\u0930\u094D\u0924\u094B\u0902 \u0915\u0947\ + \ \u0924\u0939\u0924 \u090B\u0923\u0926\u093E\u0924\u093E \u0915\u0947 \u092A\ + \u094D\u0930\u0924\u093F \u0909\u0924\u094D\u0924\u0930\u0926\u093E\u092F\u0940\ + \ \u0939\u0948?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_law +tag: mmlu_hi_llama_humanities_tasks +task: mmlu_hi_llama_professional_law +task_alias: professional_law diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_professional_medicine.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_professional_medicine.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3b977a3f240006ae252d3eef9dd27d4389ee2a9c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_professional_medicine.yaml @@ -0,0 +1,261 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0932\u0947\u092C\u0947\u091F\u093E\u0932\u094B\u0932" + B: "\u092A\u094B\u091F\u0947\u0936\u093F\u092F\u092E \u0915\u094D\u0932\u094B\ + \u0930\u093E\u0907\u0921 \u0915\u0940 \u090F\u0915 \u0932\u094B\u0921\u093F\ + \u0902\u0917 \u0916\u0941\u0930\u093E\u0915" + C: nifedipine + D: "\u092B\u0947\u0928\u094B\u0915\u094D\u0938\u0940\u092C\u0947\u0902\u091C\ + \u093C\u093E\u092E\u093E\u0907\u0928" + input_correct_responses: + - D + input_question: "\u090F\u0915 42 \u0935\u0930\u094D\u0937\u0940\u092F \u0935\u094D\ + \u092F\u0915\u094D\u0924\u093F 2 \u0938\u092A\u094D\u0924\u093E\u0939 \u092E\ + \u0947\u0902 \u0928\u093F\u0930\u094D\u0927\u093E\u0930\u093F\u0924 \u090F\u0921\ + \u094D\u0930\u0947\u0928\u093E\u0932\u0947\u0915\u094D\u091F\u0949\u092E\u0940\ + \ \u0938\u0947 \u0917\u0941\u091C\u0930\u0928\u0947 \u0938\u0947 \u092A\u0939\ + \u0932\u0947 \u092A\u094D\u0930\u0940\u0911\u092A\u0930\u0947\u091F\u093F\u0935\ + \ \u092E\u0942\u0932\u094D\u092F\u093E\u0902\u0915\u0928 \u0915\u0947 \u0932\ + \u093F\u090F \u0915\u093E\u0930\u094D\u092F\u093E\u0932\u092F \u092E\u0947\u0902\ + \ \u0906\u0924\u093E \u0939\u0948\u0964 \u090F\u0915 \u092E\u0939\u0940\u0928\ + \u0947 \u092A\u0939\u0932\u0947, \u090F\u0915 \u092E\u094B\u091F\u0930 \u0935\ + \u093E\u0939\u0928 \u0915\u0940 \u091F\u0915\u094D\u0915\u0930 \u0915\u0947\ + \ \u092C\u093E\u0926 \u0909\u0928\u0915\u0947 \u0926\u093E\u0939\u093F\u0928\ + \u0947 \u092A\u093E\u0930\u094D\u0936\u094D\u0935 \u092E\u0947\u0902 \u0926\u0930\ + \u094D\u0926 \u0915\u0947 \u0915\u093E\u0930\u0923 \u0909\u0928\u094D\u0939\u0947\ + \u0902 \u0906\u092A\u093E\u0924\u0915\u093E\u0932\u0940\u0928 \u0935\u093F\u092D\ + \u093E\u0917 \u092E\u0947\u0902 \u0926\u0947\u0916\u092D\u093E\u0932 \u092E\u093F\ + \u0932\u0940 \u0925\u0940\u0964 \u0909\u0938 \u0938\u092E\u092F, \u0930\u0915\ + \u094D\u0924\u091A\u093E\u092A 160/100 \u092E\u093F\u092E\u0940 \u090F\u091A\ + \u091C\u0940 \u0925\u093E \u0914\u0930 \u092A\u0947\u091F \u0915\u0947 \u0938\ + \u0940\u091F\u0940 \u0938\u094D\u0915\u0948\u0928 \u092E\u0947\u0902 \u0906\u0915\ + \u0938\u094D\u092E\u093F\u0915 10-\u0938\u0947\u092E\u0940 \u092C\u093E\u090F\ + \u0902 \u0905\u0927\u093F\u0935\u0943\u0915\u094D\u0915 \u0926\u094D\u0930\u0935\ + \u094D\u092F\u092E\u093E\u0928 \u0926\u093F\u0916\u093E\u0964 \u0938\u0902\u092A\ + \u0942\u0930\u094D\u0923 \u0930\u0915\u094D\u0924 \u0917\u0923\u0928\u093E,\ + \ \u0938\u0940\u0930\u092E \u0907\u0932\u0947\u0915\u094D\u091F\u094D\u0930\u094B\ + \u0932\u093E\u0907\u091F \u0938\u093E\u0902\u0926\u094D\u0930\u0924\u093E \u0914\ + \u0930 \u092F\u0915\u0943\u0924 \u0915\u093E\u0930\u094D\u092F \u092A\u0930\u0940\ + \u0915\u094D\u0937\u0923 \u0938\u0939\u093F\u0924 \u092A\u094D\u0930\u092F\u094B\ + \u0917\u0936\u093E\u0932\u093E \u0905\u0927\u094D\u092F\u092F\u0928\u094B\u0902\ + \ \u0915\u0947 \u092A\u0930\u093F\u0923\u093E\u092E \u0938\u0902\u0926\u0930\ + \u094D\u092D \u0938\u0940\u092E\u093E \u0915\u0947 \u092D\u0940\u0924\u0930\ + \ \u0925\u0947\u0964 \u0905\u0928\u094D\u092F\u0925\u093E \u0930\u094B\u0917\ + \u0940 \u0938\u094D\u0935\u0938\u094D\u0925 \u0925\u093E \u0914\u0930 \u0909\ + \u0938\u0947 \u0915\u092D\u0940 \u0928\u0939\u0940\u0902 \u092C\u0924\u093E\u092F\ + \u093E \u0917\u092F\u093E \u0915\u093F \u0909\u0938\u0915\u093E \u0930\u0915\ + \u094D\u0924\u091A\u093E\u092A \u092C\u0922\u093C\u093E \u0939\u0941\u0906 \u0939\ + \u0948\u0964 \u0935\u0939 \u0915\u094B\u0908 \u0926\u0935\u093E \u0928\u0939\ + \u0940\u0902 \u0932\u0947\u0924\u093E. 2 \u0938\u092A\u094D\u0924\u093E\u0939\ + \ \u092A\u0939\u0932\u0947 \u0915\u093E\u0930\u094D\u092F\u093E\u0932\u092F\ + \ \u092E\u0947\u0902 \u090F\u0915 \u0905\u0928\u0941\u0935\u0930\u094D\u0924\ + \u0940 \u092F\u093E\u0924\u094D\u0930\u093E \u092E\u0947\u0902 \u092E\u0942\u0924\ + \u094D\u0930 \u092E\u0947\u0902 \u0928\u0949\u0930\u092E\u0947\u091F\u0947\u0928\ + \u092B\u094D\u0930\u093F\u0928 \u0914\u0930 \u092E\u0947\u091F\u093E\u0928\u0947\ + \u092B\u094D\u0930\u093F\u0928 \u0914\u0930 \u092A\u094D\u0932\u093E\u091C\u094D\ + \u092E\u093E \u090F\u0932\u094D\u0921\u094B\u0938\u094D\u091F\u0947\u0930\u094B\ + \u0928 \u0938\u093E\u0902\u0926\u094D\u0930\u0924\u093E \u092E\u0947\u0902 \u0935\ + \u0943\u0926\u094D\u0927\u093F \u0915\u093E \u092A\u0924\u093E \u091A\u0932\u093E\ + \u0964 \u092E\u0930\u0940\u091C \u0915\u094B \u090F\u0915 \u0938\u0930\u094D\ + \u091C\u0928 \u0915\u0947 \u092A\u093E\u0938 \u092D\u0947\u091C\u093E \u0917\ + \u092F\u093E, \u091C\u093F\u0938\u0928\u0947 \u090F\u0921\u094D\u0930\u0947\u0928\ + \u093E\u0932\u0947\u0915\u094D\u091F\u0949\u092E\u0940 \u0915\u0940 \u0938\u093F\ + \u092B\u093E\u0930\u093F\u0936 \u0915\u0940\u0964 \u0906\u091C, \u092E\u0939\ + \u0924\u094D\u0935\u092A\u0942\u0930\u094D\u0923 \u0938\u0902\u0915\u0947\u0924\ + \ \u0939\u0948\u0902 \u0924\u093E\u092A\u092E\u093E\u0928 36.6 \u0921\u093F\u0917\ + \u094D\u0930\u0940 \u0938\u0947\u0932\u094D\u0938\u093F\u092F\u0938 (97.9 \u0921\ + \u093F\u0917\u094D\u0930\u0940 \u092B\u093C\u093E\u0930\u0947\u0928\u0939\u093E\ + \u0907\u091F), \u0928\u093E\u0921\u093C\u0940 100/\u092E\u093F\u0928\u091F,\ + \ \u0936\u094D\u0935\u0938\u0928 14/\u092E\u093F\u0928\u091F, \u0914\u0930 \u0930\ + \u0915\u094D\u0924\u091A\u093E\u092A 170/95 \u092E\u093F\u092E\u0940 \u090F\u091A\ + \u091C\u0940\u0964 \u0936\u093E\u0930\u0940\u0930\u093F\u0915 \u092A\u0930\u0940\ + \u0915\u094D\u0937\u0923 \u0938\u0947 \u0915\u094B\u0908 \u092E\u0939\u0924\u094D\ + \u0935\u092A\u0942\u0930\u094D\u0923 \u0928\u093F\u0937\u094D\u0915\u0930\u094D\ + \u0937 \u0928\u0939\u0940\u0902 \u0928\u093F\u0915\u0932\u0924\u093E\u0964 \u092A\ + \u094D\u0930\u093E\u0930\u0902\u092D\u093F\u0915 \u092A\u094D\u0930\u0940\u0911\ + \u092A\u0930\u0947\u091F\u093F\u0935 \u0924\u0948\u092F\u093E\u0930\u0940 \u092E\ + \u0947\u0902 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u092E\ + \u0947\u0902 \u0938\u0947 \u0915\u093F\u0938\u0915\u0947 \u0938\u093E\u0925\ + \ \u0909\u092A\u091A\u093E\u0930 \u0936\u093E\u092E\u093F\u0932 \u0939\u094B\ + \u0928\u093E \u091A\u093E\u0939\u093F\u090F?" + - input_choice_list: + A: "\u092C\u093E\u092F\u0940\u0902 \u0913\u0930 \u092C\u093E\u092F\u0940\u0902\ + \ \u0913\u0930 \u0924\u094D\u0930\u093F\u0915 \u092E\u0930\u094B\u0921\u093C" + B: "\u092C\u093E\u090F\u0902-\u092A\u0930-\u0926\u093E\u090F\u0902 \u0924\u094D\ + \u0930\u093F\u0915 \u092E\u0930\u094B\u0921\u093C" + C: "\u0926\u093E\u092F\u093E\u0902 \u090F\u0915\u0924\u0930\u092B\u093E \u0924\ + \u094D\u0930\u093F\u0915 \u092E\u094B\u0921\u093C" + D: "\u0926\u093E\u090F\u0902-\u092A\u0930-\u0926\u093E\u090F\u0902 \u0924\u094D\ + \u0930\u093F\u0915 \u092E\u0930\u094B\u0921\u093C" + input_correct_responses: + - D + input_question: "\u090F\u0915 36 \u0935\u0930\u094D\u0937\u0940\u092F \u092A\u0941\ + \u0930\u0941\u0937 \u092A\u0940\u0920 \u0915\u0947 \u0928\u093F\u091A\u0932\u0947\ + \ \u0939\u093F\u0938\u094D\u0938\u0947 \u092E\u0947\u0902 \u0926\u0930\u094D\ + \u0926 \u0915\u0947 3 \u0938\u092A\u094D\u0924\u093E\u0939 \u0915\u0947 \u0907\ + \u0924\u093F\u0939\u093E\u0938 \u0915\u0947 \u0938\u093E\u0925 \u0915\u093E\u0930\ + \u094D\u092F\u093E\u0932\u092F \u092E\u0947\u0902 \u0909\u092A\u0938\u094D\u0925\ + \u093F\u0924 \u0939\u094B\u0924\u093E \u0939\u0948\u0964 \u0935\u0939 \u0915\ + \u093F\u0938\u0940 \u092D\u0940 \u0939\u093E\u0932\u093F\u092F\u093E \u0906\u0918\ + \u093E\u0924 \u0938\u0947 \u0907\u0928\u0915\u093E\u0930 \u0915\u0930\u0924\u093E\ + \ \u0939\u0948 \u0932\u0947\u0915\u093F\u0928 \u0915\u0939\u0924\u093E \u0939\ + \u0948 \u0915\u093F \u0935\u0939 \u0905\u092A\u0928\u0947 \u0915\u093E\u092E\ + \ \u0915\u0947 \u0932\u093F\u090F \u0926\u093F\u0928 \u092E\u0947\u0902 \u0915\ + \u0908 \u092C\u093E\u0930 \u0905\u092A\u0928\u0947 \u091F\u094D\u0930\u0915\ + \ \u092E\u0947\u0902 \u091A\u0922\u093C\u0924\u093E \u0914\u0930 \u0909\u0924\ + \u0930\u0924\u093E \u0939\u0948\u0964 \u092A\u094D\u0930\u0935\u0923 \u0938\u094D\ + \u0925\u093F\u0924\u093F \u092E\u0947\u0902 \u0930\u094B\u0917\u0940 \u0915\u0940\ + \ \u091C\u093E\u0902\u091A \u0938\u0947 \u092C\u093E\u0908\u0902 \u0913\u0930\ + \ \u090F\u0915 \u0917\u0939\u0930\u0940 \u0924\u094D\u0930\u093F\u0915 \u0938\ + \u0932\u094D\u0915\u0938, \u0926\u093E\u0908\u0902 \u0913\u0930 \u090F\u0915\ + \ \u092A\u0936\u094D\u091A \u0905\u0935\u0930 \u092A\u093E\u0930\u094D\u0936\ + \u094D\u0935 \u0915\u094B\u0923 \u0914\u0930 \u090F\u0915 \u0932\u0941\u0902\ + \u092C\u094B\u0938\u0948\u0915\u094D\u0930\u0932 \u091C\u0902\u0915\u094D\u0936\ + \u0928 \u0915\u093E \u092A\u0924\u093E \u091A\u0932\u0924\u093E \u0939\u0948\ + \ \u091C\u094B \u0938\u0902\u092A\u0940\u0921\u093C\u0928 \u092A\u0930 \u0938\ + \u094D\u0935\u0924\u0902\u0924\u094D\u0930 \u0930\u0942\u092A \u0938\u0947 \u0909\ + \u092D\u0930\u0924\u093E \u0939\u0948\u0964 \u0938\u092C\u0938\u0947 \u0938\u0902\ + \u092D\u093E\u0935\u093F\u0924 \u0928\u093F\u0926\u093E\u0928 \u0939\u0948" + - input_choice_list: + A: "\u0921\u094B\u092A\u093E\u092E\u093E\u0907\u0928" + B: "\u0917\u094D\u0932\u0942\u091F\u093E\u092E\u0947\u091F" + C: "\u0928\u0949\u0930\u092A\u0947\u0928\u0947\u092B\u094D\u0930\u093F\u0928" + D: "\u0938\u0947\u0930\u094B\u091F\u094B\u0928\u093F\u0928" + input_correct_responses: + - D + input_question: "\u090F\u0915 \u092A\u0939\u0932\u0947 \u0938\u0947 \u0938\u094D\ + \u0935\u0938\u094D\u0925 32 \u0935\u0930\u094D\u0937\u0940\u092F \u092E\u0939\ + \u093F\u0932\u093E \u0905\u092A\u0928\u0947 \u092A\u0924\u093F \u0915\u0940\ + \ \u0915\u093E\u0930 \u0926\u0941\u0930\u094D\u0918\u091F\u0928\u093E \u092E\ + \u0947\u0902 \u092E\u0943\u0924\u094D\u092F\u0941 \u0915\u0947 8 \u092E\u0939\ + \u0940\u0928\u0947 \u092C\u093E\u0926 \u091A\u093F\u0915\u093F\u0924\u094D\u0938\ + \u0915 \u0915\u0947 \u092A\u093E\u0938 \u0906\u0924\u0940 \u0939\u0948\u0964\ + \ \u0909\u0938 \u0938\u092E\u092F \u0938\u0947, \u0909\u0938\u0915\u0940 \u092D\ + \u0942\u0916 \u0915\u092E \u0939\u094B \u0917\u0908 \u0939\u0948 \u0914\u0930\ + \ \u0938\u094B\u0928\u0947 \u092E\u0947\u0902 \u0915\u0920\u093F\u0928\u093E\ + \u0908 \u0939\u094B \u0930\u0939\u0940 \u0939\u0948\u0964 \u0935\u0939 \u092C\ + \u0924\u093E\u0924\u0940 \u0939\u0948\u0902 \u0915\u093F \u0935\u0939 \u0905\ + \u0915\u094D\u0938\u0930 \u0909\u0926\u093E\u0938 \u0930\u0939\u0924\u0940 \u0939\ + \u0948\u0902 \u0914\u0930 \u092C\u093E\u0930-\u092C\u093E\u0930 \u0930\u094B\ + \u0924\u0940 \u0939\u0948\u0902\u0964 \u0935\u0939 \u0905\u092A\u0928\u093E\ + \ \u0918\u0930 \u091B\u094B\u0921\u093C\u0928\u0947 \u0938\u0947 \u092A\u0939\ + \u0932\u0947 \u092A\u093E\u0902\u091A \u092C\u093E\u0930 \u0926\u0930\u0935\u093E\ + \u091C\u0947 \u0915\u0947 \u0924\u093E\u0932\u0947 \u0915\u0940 \u091C\u093E\ + \u0902\u091A \u0915\u0930 \u0930\u0939\u0940 \u0939\u0948 \u0914\u0930 \u0909\ + \u0938\u0947 \u0907\u0938\u094D\u0924\u0947\u092E\u093E\u0932 \u0915\u0930\u0928\ + \u0947 \u0938\u0947 \u092A\u0939\u0932\u0947 \u091F\u0949\u092F\u0932\u0947\u091F\ + \ \u092A\u0947\u092A\u0930 \u0915\u0947 \u0920\u0940\u0915 \u092A\u093E\u0902\ + \u091A \u091F\u0941\u0915\u0921\u093C\u0947 \u0917\u093F\u0928\u0928\u0947 \u092A\ + \u0921\u093C\u0924\u0947 \u0939\u0948\u0902\u0964 \u0935\u0939 \u0915\u0939\u0924\ + \u0940 \u0939\u0948\u0902 \u0915\u093F \u0935\u0939 \u0939\u092E\u0947\u0936\ + \u093E \u0938\u0947 \u092A\u0930\u092B\u0947\u0915\u094D\u0936\u0928\u093F\u0938\ + \u094D\u091F \u0930\u0939\u0940 \u0939\u0948\u0902 \u0932\u0947\u0915\u093F\u0928\ + \ \u092F\u0947 \u0906\u0917\u094D\u0930\u0939 \u0914\u0930 \u0905\u0928\u0941\ + \u0937\u094D\u0920\u093E\u0928 \u0928\u090F \u0939\u0948\u0902\u0964 \u092B\u093E\ + \u0930\u094D\u092E\u093E\u0915\u094B\u0925\u0947\u0930\u0947\u092A\u0940 \u0915\ + \u094B \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u092E\u0947\ + \u0902 \u0938\u0947 \u0915\u093F\u0938 \u0928\u094D\u092F\u0942\u0930\u094B\u091F\ + \u094D\u0930\u093E\u0902\u0938\u092E\u0940\u091F\u0930 \u092A\u0930 \u0932\u0915\ + \u094D\u0937\u093F\u0924 \u0915\u093F\u092F\u093E \u091C\u093E\u0928\u093E \u091A\ + \u093E\u0939\u093F\u090F?" + - input_choice_list: + A: "\u090F\u0932\u0930\u094D\u091C\u0940 \u0930\u093F\u0928\u093F\u0925\u093F\ + \u0938" + B: "\u090F\u092A\u0938\u094D\u091F\u0940\u0928 \u092C\u093E\u0930 \u0935\u093E\ + \u092F\u0930\u0938" + C: "\u092E\u093E\u0907\u0915\u094B\u092A\u094D\u0932\u093E\u091C\u094D\u092E\ + \u093E \u0928\u093F\u092E\u094B\u0928\u093F\u092F\u093E" + D: rhinovirus + input_correct_responses: + - D + input_question: "\u090F\u0915 44 \u0935\u0930\u094D\u0937\u0940\u092F \u0935\u094D\ + \u092F\u0915\u094D\u0924\u093F \u0917\u0932\u0947 \u092E\u0947\u0902 \u0916\u0930\ + \u093E\u0936, \u0905\u0928\u0941\u0924\u094D\u092A\u093E\u0926\u0915 \u0916\u093E\ + \u0902\u0938\u0940, \u0928\u093E\u0915 \u092C\u0939\u0928\u0947 \u0914\u0930\ + \ \u0932\u0932\u093E\u091F \u0938\u093F\u0930\u0926\u0930\u094D\u0926 \u0915\ + \u0947 3 \u0926\u093F\u0928 \u0915\u0947 \u0907\u0924\u093F\u0939\u093E\u0938\ + \ \u0915\u0947 \u0915\u093E\u0930\u0923 \u0915\u093E\u0930\u094D\u092F\u093E\ + \u0932\u092F \u0906\u0924\u093E \u0939\u0948\u0964 \u0909\u0928\u0915\u093E\ + \ \u0915\u0939\u0928\u093E \u0939\u0948 \u0915\u093F \u0938\u093F\u0930\u0926\ + \u0930\u094D\u0926 \u0938\u0941\u092C\u0939 \u0915\u0947 \u0938\u092E\u092F\ + \ \u0905\u0927\u093F\u0915 \u0939\u094B\u0924\u093E \u0939\u0948 \u0914\u0930\ + \ \u0907\u092C\u0941\u092A\u094D\u0930\u094B\u092B\u0947\u0928 \u0938\u0947\ + \ \u0915\u0941\u091B \u0930\u093E\u0939\u0924 \u092E\u093F\u0932\u0924\u0940\ + \ \u0939\u0948\u0964 \u0909\u0928\u094D\u0939\u0947\u0902 \u0938\u093E\u0902\ + \u0938 \u0915\u0940 \u0924\u0915\u0932\u0940\u092B \u0928\u0939\u0940\u0902\ + \ \u0939\u0941\u0908 \u0939\u0948. \u091A\u093F\u0915\u093F\u0924\u094D\u0938\ + \u093E \u0907\u0924\u093F\u0939\u093E\u0938 \u0909\u0932\u094D\u0932\u0947\u0916\ + \u0928\u0940\u092F \u0928\u0939\u0940\u0902 \u0939\u0948. \u0935\u0939 \u0926\ + \u0930\u094D\u0926 \u0915\u0947 \u0932\u093F\u090F \u0907\u092C\u0941\u092A\u094D\ + \u0930\u094B\u092B\u0947\u0928 \u0915\u0947 \u0905\u0932\u093E\u0935\u093E \u0915\ + \u094B\u0908 \u0926\u0935\u093E \u0928\u0939\u0940\u0902 \u0932\u0947\u0924\u093E\ + \ \u0939\u0948\u0964 \u092E\u0939\u0924\u094D\u0935\u092A\u0942\u0930\u094D\u0923\ + \ \u0938\u0902\u0915\u0947\u0924 \u0924\u093E\u092A\u092E\u093E\u0928 37.4 \u0921\ + \u093F\u0917\u094D\u0930\u0940 \u0938\u0947\u0932\u094D\u0938\u093F\u092F\u0938\ + \ (99.4 \u0921\u093F\u0917\u094D\u0930\u0940 \u092B\u093C\u093E\u0930\u0947\u0928\ + \u0939\u093E\u0907\u091F), \u0928\u093E\u0921\u093C\u0940 88/\u092E\u093F\u0928\ + \u091F, \u0936\u094D\u0935\u0938\u0928 18/\u092E\u093F\u0928\u091F \u0914\u0930\ + \ \u0930\u0915\u094D\u0924\u091A\u093E\u092A 120/84 \u092E\u093F\u092E\u0940\ + \ \u090F\u091A\u091C\u0940 \u0939\u0948\u0902\u0964 \u0928\u093E\u0921\u093C\ + \u093F\u092F\u094B\u0902 \u0915\u0940 \u091C\u093E\u0902\u091A \u0938\u0947\ + \ \u090F\u0930\u093F\u0925\u0947\u092E\u0947\u091F\u0938 \u0936\u094D\u0932\u0947\ + \u0937\u094D\u092E\u093E \u091D\u093F\u0932\u094D\u0932\u0940 \u0915\u093E \u092A\ + \u0924\u093E \u091A\u0932\u0924\u093E \u0939\u0948\u0964 \u0917\u0932\u0947\ + \ \u0915\u0940 \u091C\u093E\u0902\u091A \u0938\u0947 \u092A\u0940\u091B\u0947\ + \ \u0915\u0947 \u0911\u0930\u094B\u092B\u0930\u0940\u0928\u0915\u094D\u0938\ + \ \u092A\u0930 \u090F\u0930\u093F\u0925\u0947\u092E\u093E \u0914\u0930 \u092B\ + \u0949\u0932\u093F\u0915\u094D\u092F\u0941\u0932\u0930 \u0932\u093F\u092E\u094D\ + \u092B\u094B\u0907\u0921 \u0939\u093E\u0907\u092A\u0930\u092A\u094D\u0932\u093E\ + \u0938\u093F\u092F\u093E \u0915\u093E \u092A\u0924\u093E \u091A\u0932\u0924\u093E\ + \ \u0939\u0948\u0964 \u0915\u094B\u0908 \u0938\u094D\u092A\u0937\u094D\u091F\ + \ \u0917\u094D\u0930\u0940\u0935\u093E \u090F\u0921\u0947\u0928\u094B\u092A\u0948\ + \u0925\u0940 \u0928\u0939\u0940\u0902 \u0939\u0948\u0964 \u092B\u0947\u092B\u0921\ + \u093C\u0947 \u0917\u0941\u0926\u093E\u092D\u094D\u0930\u0902\u0936 \u0915\u0947\ + \ \u0932\u093F\u090F \u0938\u094D\u092A\u0937\u094D\u091F \u0939\u0948\u0902\ + \u0964 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u092E\u0947\ + \u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u0907\u0938 \u0930\u094B\ + \u0917\u0940 \u0915\u0947 \u0932\u0915\u094D\u0937\u0923\u094B\u0902 \u0915\u093E\ + \ \u0938\u092C\u0938\u0947 \u0938\u0902\u092D\u093E\u0935\u093F\u0924 \u0915\ + \u093E\u0930\u0923 \u0939\u0948?" + - input_choice_list: + A: "\u092A\u0942\u0930\u094D\u0935\u0915\u093E\u0932 \u0938\u094D\u0915\u0947\ + \u0932\u0940\u0928" + B: "\u0932\u093E\u091F\u093F\u0938\u094D\u0938\u093F\u092E\u0941\u0938 \u0921\ + \u094B\u0930\u0938\u0940" + C: "\u092A\u0947\u0915\u094D\u091F\u094B\u0930\u0932\u093F\u0938 \u092E\u093E\ + \u0907\u0928\u0930" + D: "\u0915\u094D\u0935\u093E\u0921\u094D\u0930\u0947\u091F\u094D\u0938 \u0932\ + \u0948\u0902\u092C\u094B\u0930\u092E" + input_correct_responses: + - C + input_question: "\u090F\u0915 22 \u0935\u0930\u094D\u0937\u0940\u092F \u092A\u0941\ + \u0930\u0941\u0937 \u092E\u0948\u0930\u093E\u0925\u0928 \u0927\u093E\u0935\u0915\ + \ \u0932\u0902\u092C\u0940 \u0926\u0942\u0930\u0940 \u0924\u0915 \u0926\u094C\ + \u0921\u093C\u0928\u0947 \u092A\u0930 \u0926\u093E\u0939\u093F\u0928\u0940 \u0913\ + \u0930 \u0915\u0940 \u092A\u0938\u0932\u0940 \u092E\u0947\u0902 \u0926\u0930\ + \u094D\u0926 \u0915\u0940 \u0936\u093F\u0915\u093E\u092F\u0924 \u0915\u0947\ + \ \u0938\u093E\u0925 \u0915\u093E\u0930\u094D\u092F\u093E\u0932\u092F \u092E\ + \u0947\u0902 \u0906\u0924\u093E \u0939\u0948\u0964 \u0936\u093E\u0930\u0940\u0930\ + \u093F\u0915 \u092A\u0930\u0940\u0915\u094D\u0937\u0923 \u0938\u0947 \u0939\u0943\ + \u0926\u092F \u0914\u0930 \u092B\u0947\u092B\u0921\u093C\u094B\u0902 \u0915\u0940\ + \ \u0938\u093E\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u0925\u093F\u0924\u093F\ + \ \u0914\u0930 \u0926\u093E\u0939\u093F\u0928\u0940 \u0913\u0930 4-5 \u092A\u0938\ + \u0932\u093F\u092F\u094B\u0902 \u092A\u0930 \u0938\u093E\u0901\u0938 \u091B\u094B\ + \u0921\u093C\u0928\u0947 \u0915\u0940 \u0938\u092E\u0938\u094D\u092F\u093E \u0915\ + \u093E \u092A\u0924\u093E \u091A\u0932\u0924\u093E \u0939\u0948\u0964 \u092A\ + \u094D\u0930\u0924\u094D\u092F\u0915\u094D\u0937 \u0935\u093F\u0927\u093F \u0915\ + \u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0915\u0947 \u0907\u0938\ + \ \u0936\u093F\u0925\u093F\u0932\u0924\u093E \u0915\u094B \u0920\u0940\u0915\ + \ \u0915\u0930\u0928\u0947 \u092E\u0947\u0902 \u0928\u093F\u092E\u094D\u0928\ + \u0932\u093F\u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928\ + \ \u0938\u0940 \u092E\u093E\u0902\u0938\u092A\u0947\u0936\u093F\u092F\u093E\u0901\ + \ \u092F\u093E \u092E\u093E\u0902\u0938\u092A\u0947\u0936\u0940 \u0938\u092E\ + \u0942\u0939 \u0938\u092C\u0938\u0947 \u0905\u0927\u093F\u0915 \u0909\u092A\u092F\ + \u094B\u0917\u0940 \u0939\u094B\u0902\u0917\u0947?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_medicine +tag: mmlu_hi_llama_other_tasks +task: mmlu_hi_llama_professional_medicine +task_alias: professional_medicine diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_professional_psychology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_professional_psychology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..94dc2e73f880e4d89208957cfa20484312c61e85 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_professional_psychology.yaml @@ -0,0 +1,170 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u091C\u093F\u0938 \u0915\u093E\u0930\u094D\u092F\u0915\u094D\u0930\u092E\ + \ \u092E\u0947\u0902 \u0906\u092A \u0928\u093E\u092E\u093E\u0902\u0915\u093F\ + \u0924 \u0939\u0948\u0902 \u0909\u0938\u0947 \u091B\u094B\u0921\u093C\u0915\ + \u0930 \u0905\u092A\u0928\u0947 \u0917\u094D\u0930\u093E\u0939\u0915 \u0915\ + \u094B \u092A\u094D\u0930\u0924\u094D\u092F\u0947\u0915 \u0915\u093E\u0930\ + \u094D\u092F\u0915\u094D\u0930\u092E \u0915\u0947 \u092B\u093E\u092F\u0926\ + \u0947 \u0914\u0930 \u0928\u0941\u0915\u0938\u093E\u0928 \u092C\u0924\u093E\ + \u090F\u0902 \u091C\u093F\u0928\u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\ + \u0947\u0902 \u0906\u092A \u091C\u093E\u0928\u0924\u0947 \u0939\u0948\u0902" + B: "\u0905\u092A\u0928\u0947 \u0917\u094D\u0930\u093E\u0939\u0915 \u0915\u094B\ + \ \u0909\u0938 \u0915\u093E\u0930\u094D\u092F\u0915\u094D\u0930\u092E \u0915\ + \u0940 \u0905\u0928\u0941\u0936\u0902\u0938\u093E \u0915\u0930\u0947\u0902\ + \ \u091C\u093F\u0938\u092E\u0947\u0902 \u0906\u092A \u0928\u093E\u092E\u093E\ + \u0902\u0915\u093F\u0924 \u0939\u0948\u0902 \u0914\u0930 \u0906\u092A\u0915\ + \u094B \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0939\u094B\u0928\u0947\ + \ \u0935\u093E\u0932\u0947 $50 \u092C\u094B\u0928\u0938 \u0915\u0947 \u092C\ + \u093E\u0930\u0947 \u092E\u0947\u0902 \u092C\u0924\u093E\u090F\u0902" + C: "\u0905\u092A\u0928\u0947 \u0917\u094D\u0930\u093E\u0939\u0915 \u0915\u094B\ + \ \u0909\u0938 \u0915\u093E\u0930\u094D\u092F\u0915\u094D\u0930\u092E \u0915\ + \u0940 \u0905\u0928\u0941\u0936\u0902\u0938\u093E \u0915\u0930\u0947\u0902\ + \ \u091C\u093F\u0938\u092E\u0947\u0902 \u0906\u092A \u0928\u093E\u092E\u093E\ + \u0902\u0915\u093F\u0924 \u0939\u0948\u0902 \u0914\u0930 \u0915\u093E\u0930\ + \u094D\u092F\u0915\u094D\u0930\u092E \u092E\u0947\u0902 \u0906\u092A\u0915\ + \u0947 \u0917\u094D\u0930\u093E\u0939\u0915 \u0915\u0947 \u0916\u093E\u0924\ + \u0947 \u092E\u0947\u0902 $50 \u0915\u093E \u092C\u094B\u0928\u0938 \u091C\ + \u092E\u093E \u0915\u0930\u0928\u0947 \u0915\u0940 \u092A\u0947\u0936\u0915\ + \u0936 \u0915\u0930\u0947\u0902" + D: "\u0905\u092A\u0928\u0947 \u0917\u094D\u0930\u093E\u0939\u0915 \u0915\u094B\ + \ \u0909\u0938 \u092A\u094D\u0930\u0924\u094D\u092F\u0947\u0915 \u0915\u093E\ + \u0930\u094D\u092F\u0915\u094D\u0930\u092E \u0915\u0947 \u092B\u093E\u092F\ + \u0926\u0947 \u0914\u0930 \u0928\u0941\u0915\u0938\u093E\u0928 \u092C\u0924\ + \u093E\u090F\u0902 \u091C\u093F\u0938\u0915\u0947 \u092C\u093E\u0930\u0947\ + \ \u092E\u0947\u0902 \u0906\u092A \u091C\u093E\u0928\u0924\u0947 \u0939\u0948\ + \u0902, \u0932\u0947\u0915\u093F\u0928 \u092F\u0926\u093F \u0906\u092A\u0915\ + \u093E \u0917\u094D\u0930\u093E\u0939\u0915 \u0906\u092A\u0915\u0947 \u0915\ + \u093E\u0930\u094D\u092F\u0915\u094D\u0930\u092E \u092E\u0947\u0902 \u0928\ + \u093E\u092E\u093E\u0902\u0915\u0928 \u0915\u0930\u0924\u093E \u0939\u0948\ + \ \u0924\u094B $50 \u092C\u094B\u0928\u0938 \u0915\u093E \u0926\u093E\u0935\ + \u093E \u0928 \u0915\u0930\u0947\u0902\u0964" + input_correct_responses: + - D + input_question: "\u0906\u092A\u0915\u093E \u090F\u0915 \u0925\u0947\u0930\u0947\ + \u092A\u0940 \u0917\u094D\u0930\u093E\u0939\u0915 \u090F\u0915 \u0905\u091A\u094D\ + \u091B\u0947 \u0935\u091C\u0928 \u0918\u091F\u093E\u0928\u0947 \u0915\u0947\ + \ \u0915\u093E\u0930\u094D\u092F\u0915\u094D\u0930\u092E \u0915\u0947 \u092C\ + \u093E\u0930\u0947 \u092E\u0947\u0902 \u0906\u092A\u0915\u0940 \u0938\u0932\u093E\ + \u0939 \u092A\u0942\u091B\u0924\u093E \u0939\u0948\u0964 \u0906\u092A\u0928\u0947\ + \ \u0938\u092E\u0941\u0926\u093E\u092F \u092E\u0947\u0902 \u0915\u093E\u0930\ + \u094D\u092F\u0915\u094D\u0930\u092E\u094B\u0902 \u0915\u0940 \u091C\u093E\u0902\ + \u091A \u0915\u0940 \u0939\u0948 \u0914\u0930 \u091C\u093F\u0938\u0947 \u0906\ + \u092A \u0938\u092C\u0938\u0947 \u0905\u091A\u094D\u091B\u093E \u092E\u093E\u0928\ + \u0924\u0947 \u0939\u0948\u0902 \u0909\u0938\u092E\u0947\u0902 \u0928\u093E\u092E\ + \u093E\u0902\u0915\u093F\u0924 \u0939\u0948\u0902\u0964 \u092F\u0939 \u0915\u093E\ + \u0930\u094D\u092F\u0915\u094D\u0930\u092E \u0905\u092A\u0928\u0947 \u0938\u0902\ + \u0930\u0915\u094D\u0937\u0915\u094B\u0902 \u0915\u094B \u0915\u093E\u0930\u094D\ + \u092F\u0915\u094D\u0930\u092E \u092E\u0947\u0902 \u0932\u093E\u090F \u091C\u093E\ + \u0928\u0947 \u0935\u093E\u0932\u0947 \u092A\u094D\u0930\u0924\u094D\u092F\u0947\ + \u0915 \u0928\u090F \u0935\u094D\u092F\u0915\u094D\u0924\u093F \u0915\u0947\ + \ \u0932\u093F\u090F $50 \u0915\u093E \u092C\u094B\u0928\u0938 \u092A\u094D\u0930\ + \u0926\u093E\u0928 \u0915\u0930\u0924\u093E \u0939\u0948\u0964 \u0907\u0928\ + \ \u092A\u0930\u093F\u0938\u094D\u0925\u093F\u0924\u093F\u092F\u094B\u0902 \u092E\ + \u0947\u0902, \u0906\u092A\u0915\u0940 \u0938\u092C\u0938\u0947 \u0909\u092A\ + \u092F\u0941\u0915\u094D\u0924 \u092A\u094D\u0930\u0924\u093F\u0915\u094D\u0930\ + \u093F\u092F\u093E \u0939\u094B\u0917\u0940" + - input_choice_list: + A: "\u092E\u093E\u0927\u094D\u092F \u0915\u0940 \u0924\u0941\u0932\u0928\u093E\ + \ \u092E\u0947\u0902 \u091A\u0930\u092E \u0938\u094D\u0915\u094B\u0930 \u0915\ + \u0947 \u092A\u094D\u0930\u0924\u093F \u0915\u092E \u0938\u0902\u0935\u0947\ + \u0926\u0928\u0936\u0940\u0932" + B: "\u0935\u093F\u0937\u092E \u0935\u093F\u0924\u0930\u0923\u094B\u0902 \u0915\ + \u0947 \u0932\u093F\u090F \u0905\u0927\u093F\u0915 \u0909\u092A\u092F\u094B\ + \u0917\u0940" + C: "\u0905\u0924\u094D\u092F\u0927\u093F\u0915 \u092E\u0942\u0932\u094D\u092F\ + \u094B\u0902 \u0914\u0930 \u0905\u0924\u094D\u092F\u0927\u093F\u0915 \u0935\ + \u093F\u0937\u092E \u0935\u093F\u0924\u0930\u0923\u094B\u0902 \u0915\u0947\ + \ \u092A\u094D\u0930\u0924\u093F \u0938\u0902\u0935\u0947\u0926\u0928\u0936\ + \u0940\u0932" + D: "\u0938\u092C\u0938\u0947 \u0905\u0927\u093F\u0915 \u092C\u093E\u0930 \u0906\ + \u0928\u0947 \u0935\u093E\u0932\u0940 \u0938\u0902\u0916\u094D\u092F\u093E" + input_correct_responses: + - D + input_question: "\u0915\u0947\u0902\u0926\u094D\u0930\u0940\u092F \u092A\u094D\ + \u0930\u0935\u0943\u0924\u094D\u0924\u093F \u0915\u094B \u092E\u093E\u092A\u0928\ + \u0947 \u0915\u0947 \u0924\u0940\u0928 \u0924\u0930\u0940\u0915\u0947 \u0939\ + \u0948\u0902: \u092E\u093E\u0927\u094D\u092F, \u092E\u093E\u0927\u094D\u092F\ + \u093F\u0915\u093E \u0914\u0930 \u092C\u0939\u0941\u0932\u0915\u0964 \u0909\u0928\ + \u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902 \u0906\u092A\u0915\u0940\ + \ \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u0938\u0947, \u092E\u094B\u0921\ + \ \u0915\u094D\u092F\u093E \u0939\u0948?" + - input_choice_list: + A: "\u0935\u094D\u092F\u0915\u094D\u0924\u093F\u0935\u093E\u0926." + B: "\u0935\u094D\u092F\u0915\u094D\u0924\u093F\u0935\u093E\u0926 \u0914\u0930\ + \ \u0938\u0924\u094D\u0924\u093E \u0915\u0940 \u0926\u0942\u0930\u0940." + C: "\u0936\u0915\u094D\u0924\u093F \u0926\u0942\u0930\u0940 \u0914\u0930 \u092A\ + \u0941\u0930\u0941\u0937\u0924\u094D\u0935\u0964" + D: "\u0905\u0928\u093F\u0936\u094D\u091A\u093F\u0924\u0924\u093E \u092A\u0930\ + \u093F\u0939\u093E\u0930\u0964" + input_correct_responses: + - A + input_question: "\u0939\u0949\u092B\u0938\u094D\u091F\u0947\u0921 (1980) \u0915\ + \u0947 \u092A\u093E\u0902\u091A \u0938\u093E\u0902\u0938\u094D\u0915\u0943\u0924\ + \u093F\u0915 \u0906\u092F\u093E\u092E\u094B\u0902 \u0915\u0947 \u0938\u0902\u0926\ + \u0930\u094D\u092D \u092E\u0947\u0902, \u0938\u0902\u092F\u0941\u0915\u094D\u0924\ + \ \u0930\u093E\u091C\u094D\u092F \u0905\u092E\u0947\u0930\u093F\u0915\u093E\ + \ \u092A\u0948\u092E\u093E\u0928\u0947 \u0915\u0947 \u0936\u0940\u0930\u094D\ + \u0937 \u092A\u0930 \u0939\u0948:" + - input_choice_list: + A: "\u090F\u0915 \u0915\u0932\u094D\u092A\u0928\u093E \u0939\u0948 \u091C\u094B\ + \ \u0917\u094D\u0930\u093E\u0939\u0915 \u0915\u094B \u0935\u093E\u0938\u094D\ + \u0924\u0935\u093F\u0915\u0924\u093E \u0938\u0947 \u0935\u093F\u091A\u0932\ + \u093F\u0924 \u0915\u0930\u0924\u0940 \u0939\u0948\u0964" + B: "\u091A\u093F\u0915\u093F\u0924\u094D\u0938\u0915 \u0915\u0947 \u092A\u094D\ + \u0930\u0924\u093F "\u092E\u093F\u0936\u094D\u0930\u093F\u0924 \u092D\ + \u093E\u0935\u0928\u093E\u0913\u0902" \u0915\u093E \u092A\u094D\u0930\ + \u0924\u093F\u0928\u093F\u0927\u093F\u0924\u094D\u0935 \u0915\u0930\u0924\u093E\ + \ \u0939\u0948\u0964" + C: ""\u0905\u092D\u093F\u0928\u092F" \u0915\u093E \u090F\u0915 \u0930\ + \u0942\u092A \u0939\u0948\u0964" + D: "\u0917\u094D\u0930\u093E\u0939\u0915 \u0915\u0947 \u0935\u094D\u092F\u0915\ + \u094D\u0924\u093F\u0917\u0924 \u0914\u0930 \u0938\u093E\u092E\u0942\u0939\ + \u093F\u0915 \u0905\u091A\u0947\u0924\u0928 \u0915\u094B \u0926\u0930\u094D\ + \u0936\u093E\u0924\u093E \u0939\u0948\u0964" + input_correct_responses: + - D + input_question: "\u0915\u093E\u0930\u094D\u0932 \u091C\u0902\u0917 \u0915\u093E\ + \ \u092E\u093E\u0928\u0928\u093E \u0925\u093E \u0915\u093F \u0917\u094D\u0930\ + \u093E\u0939\u0915 \u0915\u093E \u0938\u094D\u0925\u093E\u0928\u093E\u0902\u0924\ + \u0930\u0923:" + - input_choice_list: + A: "\u090F\u0915-\u0926\u0942\u0938\u0930\u0947 \u0938\u0947 \u0905\u0938\u0902\ + \u092C\u0902\u0927\u093F\u0924 \u0939\u0948\u0902 \u0932\u0947\u0915\u093F\ + \u0928 \u092E\u093E\u0928\u0926\u0902\u0921 \u0915\u0947 \u0938\u093E\u0925\ + \ \u092E\u0927\u094D\u092F\u092E \u0930\u0942\u092A \u0938\u0947 \u0938\u0939\ + \u0938\u0902\u092C\u0926\u094D\u0927 \u0939\u0948\u0902" + B: "\u090F\u0915 \u0926\u0942\u0938\u0930\u0947 \u0915\u0947 \u0938\u093E\u0925\ + \ \u0915\u092E \u0938\u0939\u0938\u0902\u092C\u0902\u0927 \u0914\u0930 \u092E\ + \u093E\u0928\u0926\u0902\u0921 \u0915\u0947 \u0938\u093E\u0925 \u0915\u092E\ + \ \u0938\u0939\u0938\u0902\u092C\u0902\u0927 \u0939\u0948\u0902" + C: "\u090F\u0915-\u0926\u0942\u0938\u0930\u0947 \u0915\u0947 \u0938\u093E\u0925\ + \ \u0905\u0924\u094D\u092F\u0927\u093F\u0915 \u0905\u0902\u0924\u0930\u094D\ + \u0938\u0902\u092C\u0902\u0927\u093F\u0924 \u0939\u0948\u0902 \u0914\u0930\ + \ \u092E\u093E\u0928\u0926\u0902\u0921 \u0915\u0947 \u0938\u093E\u0925 \u092E\ + \u0927\u094D\u092F\u092E \u0930\u0942\u092A \u0938\u0947 \u0938\u0939\u0938\ + \u0902\u092C\u0926\u094D\u0927 \u0939\u0948\u0902" + D: "\u092E\u093E\u0928\u0926\u0902\u0921 \u0915\u0947 \u0938\u093E\u0925 \u0915\ + \u092E \u0938\u0939\u0938\u0902\u092C\u0902\u0927 \u0939\u0948\u0902, \u092C\ + \u094D\u092F\u0942\u0930\u094B \u090F\u0915 \u0926\u0942\u0938\u0930\u0947\ + \ \u0915\u0947 \u0938\u093E\u0925 \u092E\u0927\u094D\u092F\u092E \u0930\u0942\ + \u092A \u0938\u0947 \u0938\u0939\u0938\u0902\u092C\u0926\u094D\u0927 \u0939\ + \u0948\u0902" + input_correct_responses: + - A + input_question: "\u092D\u0935\u093F\u0937\u094D\u092F\u0935\u093E\u0923\u0940\ + \ \u0915\u0947 \u092A\u094D\u0930\u092F\u094B\u091C\u0928\u094B\u0902 \u0915\ + \u0947 \u0932\u093F\u090F \u090F\u0915\u093E\u0927\u093F\u0915 \u092A\u094D\u0930\ + \u0924\u093F\u0917\u092E\u0928 \u0938\u092E\u0940\u0915\u0930\u0923 \u0915\u0947\ + \ \u0928\u093F\u0930\u094D\u092E\u093E\u0923 \u092E\u0947\u0902, \u0909\u092A\ + \u093E\u092F\u094B\u0902 \u0915\u093E \u0907\u0937\u094D\u091F\u0924\u092E \u0938\ + \u0902\u092F\u094B\u091C\u0928 \u0935\u0939 \u0939\u094B\u0924\u093E \u0939\u0948\ + \ \u091C\u093F\u0938\u092E\u0947\u0902 \u092D\u0935\u093F\u0937\u094D\u092F\u0935\ + \u0915\u094D\u0924\u093E \u0939\u094B\u0924\u0947 \u0939\u0948\u0902" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_psychology +tag: mmlu_hi_llama_social_sciences_tasks +task: mmlu_hi_llama_professional_psychology +task_alias: professional_psychology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_public_relations.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_public_relations.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7ed2aa685ce9eb89b72884965f1801b830d7873d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_public_relations.yaml @@ -0,0 +1,122 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0930\u093F\u092A\u094B\u0930\u094D\u091F\u0930 \u0915\u094B \u0905\u0928\ + \u094D\u092F \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u0926\u0947\u0902\ + \ \u091C\u093F\u0938\u0938\u0947 \u0909\u0938\u0947 \u092F\u0915\u0940\u0928\ + \ \u0939\u094B \u0915\u093F \u0935\u0939 \u0938\u0939\u0940 \u0939\u0948\u0964" + B: "\u0915\u0939\u0947\u0902 \u0915\u093F \u091C\u093E\u0928\u0915\u093E\u0930\ + \u0940 '\u0911\u092B\u093C \u0926 \u0930\u093F\u0915\u0949\u0930\u094D\ + \u0921' \u0939\u0948 \u0914\u0930 \u092C\u093E\u0926 \u092E\u0947\u0902\ + \ \u092A\u094D\u0930\u0938\u093E\u0930\u093F\u0924 \u0915\u0940 \u091C\u093E\ + \u090F\u0917\u0940\u0964" + C: "'\u092E\u0941\u091D\u0947 \u0928\u0939\u0940\u0902 \u092A\u0924\u093E\ + ' \u0915\u0939\u0947\u0902 \u0914\u0930 \u092C\u093E\u0926 \u092E\u0947\ + \u0902 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u0909\u092A\u0932\u092C\ + \u094D\u0927 \u0915\u0930\u093E\u0928\u0947 \u0915\u093E \u0935\u093E\u0926\ + \u093E \u0915\u0930\u0947\u0902\u0964" + D: "\u0905\u0928\u092D\u093F\u091C\u094D\u091E \u0926\u093F\u0916\u0928\u0947\ + \ \u0915\u0947 \u092C\u091C\u093E\u092F '\u0915\u094B\u0908 \u091F\u093F\ + \u092A\u094D\u092A\u0923\u0940 \u0928\u0939\u0940\u0902' \u0915\u0939\u0947\ + \u0902\u0964" + input_correct_responses: + - C + input_question: "\u092F\u0926\u093F \u090F\u0915 \u091C\u0928\u0938\u0902\u092A\ + \u0930\u094D\u0915 \u092E\u0940\u0921\u093F\u092F\u093E \u0935\u094D\u092F\u0935\ + \u0938\u093E\u092F\u0940 \u0915\u094B \u0915\u093F\u0938\u0940 \u0930\u093F\u092A\ + \u094B\u0930\u094D\u091F\u0930 \u0915\u0947 \u092A\u094D\u0930\u0936\u094D\u0928\ + \ \u0915\u093E \u0909\u0924\u094D\u0924\u0930 \u0928\u0939\u0940\u0902 \u092A\ + \u0924\u093E \u0939\u0948 \u0924\u094B \u0909\u0938\u0947 \u0915\u094D\u092F\ + \u093E \u0915\u0930\u0928\u093E \u091A\u093E\u0939\u093F\u090F?" + - input_choice_list: + A: "\u0910\u0938\u0947 \u0921\u094B\u092E\u0947\u0928 \u0928\u093E\u092E \u0916\ + \u0930\u0940\u0926\u0947\u0902 \u091C\u093F\u0928\u0915\u093E \u0909\u092A\ + \u092F\u094B\u0917 \u0935\u093F\u092A\u0915\u094D\u0937\u0940 \u0938\u092E\ + \u0942\u0939\u094B\u0902 \u0926\u094D\u0935\u093E\u0930\u093E \u0915\u093F\ + \u092F\u093E \u091C\u093E \u0938\u0915\u0947\u0964" + B: "\u0907\u0938 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u0938\u0947 \u0928\ + \u093F\u092A\u091F\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092C\u094D\ + \u0932\u0949\u0917 \u092A\u0930 \u0917\u0941\u092E\u0928\u093E\u092E \u091F\ + \u093F\u092A\u094D\u092A\u0923\u093F\u092F\u093E\u0901 \u092A\u094B\u0938\u094D\ + \u091F \u0915\u0930\u0947\u0902\u0964" + C: "\u090F\u0915 \u0938\u092E\u093E\u091A\u093E\u0930 \u0935\u093F\u091C\u094D\ + \u091E\u092A\u094D\u0924\u093F \u0924\u0948\u092F\u093E\u0930 \u0915\u0930\ + \u0947\u0902 \u091C\u094B \u0917\u0932\u0924 \u091C\u093E\u0928\u0915\u093E\ + \u0930\u0940 \u0915\u094B \u0916\u093E\u0930\u093F\u091C \u0915\u0930 \u0926\ + \u0947\u0964" + D: "\u0907\u0928 \u0938\u093E\u0907\u091F\u094B\u0902 \u092A\u0930 \u0909\u091C\ + \u093E\u0917\u0930 \u0915\u0940 \u0917\u0908 \u0936\u093F\u0915\u093E\u092F\ + \u0924\u094B\u0902 \u0915\u0947 \u0938\u092E\u093E\u0927\u093E\u0928 \u0915\ + \u0947 \u0932\u093F\u090F \u0928\u0940\u0924\u093F \u092E\u0947\u0902 \u092C\ + \u0926\u0932\u093E\u0935 \u0915\u0930\u0947\u0902\u0964" + input_correct_responses: + - D + input_question: "\u092E\u0941\u0926\u094D\u0926\u094B\u0902 \u0915\u0947 \u092A\ + \u094D\u0930\u092C\u0902\u0927\u0928 \u092E\u0947\u0902, \u0906\u092A\u0915\u0947\ + \ \u0938\u0902\u0917\u0920\u0928 \u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\ + \u0947\u0902 \u0911\u0928\u0932\u093E\u0907\u0928 \u092A\u094B\u0938\u094D\u091F\ + \ \u0915\u0940 \u0917\u0908 \u0928\u0915\u093E\u0930\u093E\u0924\u094D\u092E\ + \u0915 \u092F\u093E \u092D\u094D\u0930\u093E\u092E\u0915 \u091C\u093E\u0928\u0915\ + \u093E\u0930\u0940 \u0915\u094B \u0938\u0902\u092C\u094B\u0927\u093F\u0924 \u0915\ + \u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0938\u092C\u0938\u0947\ + \ \u0938\u0915\u094D\u0930\u093F\u092F \u0926\u0943\u0937\u094D\u091F\u093F\u0915\ + \u094B\u0923 \u0915\u094D\u092F\u093E \u0939\u0948?" + - input_choice_list: + A: "\u090F\u0915 \u0938\u092E\u0928\u094D\u0935\u093F\u0924 \u092E\u0940\u0921\ + \u093F\u092F\u093E \u092A\u094D\u0930\u0924\u093F\u0915\u094D\u0930\u093F\u092F\ + \u093E \u0925\u0940\u0964" + B: "\u0932\u0917\u093E\u0924\u093E\u0930 \u0938\u0902\u0926\u0947\u0936 \u0938\ + \u0902\u092A\u094D\u0930\u0947\u0937\u093F\u0924 \u0915\u093F\u090F \u0917\ + \u090F\u0964" + C: "\u0906\u0932\u094B\u091A\u0928\u093E\u0913\u0902 \u0915\u094B \u0915\u0948\ + \u0925\u094B\u0932\u093F\u0915 \u091A\u0930\u094D\u091A \u092A\u0930 \u0939\ + \u092E\u0932\u0947 \u0915\u0947 \u0930\u0942\u092A \u092E\u0947\u0902 \u0932\ + \u093F\u092F\u093E \u0917\u092F\u093E\u0964" + D: "\u0935\u0947\u091F\u093F\u0915\u0928 \u0915\u0940 \u0935\u093F\u0936\u094D\ + \u0935\u0938\u0928\u0940\u092F\u0924\u093E \u092C\u0930\u0915\u0930\u093E\u0930\ + \ \u0930\u0916\u0940 \u0917\u0908\u0964" + input_correct_responses: + - C + input_question: "2010 \u092E\u0947\u0902 \u092C\u093E\u0932 \u0936\u094B\u0937\ + \u0923 \u0915\u094B \u091B\u0941\u092A\u093E\u0928\u0947 \u0915\u0947 \u0906\ + \u0930\u094B\u092A\u094B\u0902 \u0915\u0947 \u0938\u092E\u092F \u0935\u0947\u091F\ + \u093F\u0915\u0928 \u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902\ + \ \u0907\u0928\u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E\ + \ \u0915\u0925\u0928 \u0938\u0924\u094D\u092F \u0939\u0948?" + - input_choice_list: + A: "\u0915\u093E\u0930\u094D\u092F\u0915\u094D\u0930\u092E \u0915\u094B \u092A\ + \u0930\u093F\u092D\u093E\u0937\u093F\u0924 \u0915\u0930\u0928\u093E" + B: "\u0915\u093E\u0930\u094D\u092F\u0915\u094D\u0930\u092E \u0915\u0940 \u092F\ + \u094B\u091C\u0928\u093E \u092C\u0928\u093E\u0928\u093E" + C: "\u0915\u093E\u0930\u094D\u0930\u0935\u093E\u0908 \u0915\u0930\u0928\u093E\ + \ \u0914\u0930 \u0935\u093F\u091A\u093E\u0930\u094B\u0902 \u0915\u094B \u0915\ + \u093E\u0930\u094D\u092F\u093E\u0928\u094D\u0935\u093F\u0924 \u0915\u0930\u0928\ + \u093E" + D: "\u0915\u093E\u0930\u094D\u092F\u0915\u094D\u0930\u092E \u0915\u093E \u092E\ + \u0942\u0932\u094D\u092F\u093E\u0902\u0915\u0928" + input_correct_responses: + - A + input_question: "\u0928\u093F\u092F\u094B\u091C\u0928 \u092A\u094D\u0930\u0915\ + \u094D\u0930\u093F\u092F\u093E \u0915\u0947 \u0915\u093F\u0938 \u091A\u0930\u0923\ + \ \u092E\u0947\u0902 \u0938\u094D\u0925\u093F\u0924\u093F \u0935\u093F\u0936\ + \u094D\u0932\u0947\u0937\u0923 \u0915\u093F\u092F\u093E \u091C\u093E\u090F\u0917\ + \u093E?" + - input_choice_list: + A: "\u0939\u0930\u093F\u0924 \u0936\u093E\u0902\u0924\u093F" + B: "\u0938\u0902\u092F\u0941\u0915\u094D\u0924 \u0930\u093E\u0937\u094D\u091F\ + \u094D\u0930" + C: "\u0911\u0915\u094D\u0938\u092B\u0947\u092E" + D: "\u0935\u093F\u0936\u094D\u0935 \u0935\u0928\u094D\u092F\u091C\u0940\u0935\ + \u0928 \u0915\u094B\u0937" + input_correct_responses: + - D + input_question: "\u0905\u0930\u094D\u0925 \u0906\u0935\u0930 \u0915\u093F\u0938\ + \ \u0938\u0902\u0917\u0920\u0928 \u0926\u094D\u0935\u093E\u0930\u093E \u0936\ + \u0941\u0930\u0942 \u0915\u093F\u092F\u093E \u0917\u092F\u093E \u090F\u0915\ + \ \u0905\u092D\u093F\u092F\u093E\u0928 \u0925\u093E?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_public_relations +tag: mmlu_hi_llama_social_sciences_tasks +task: mmlu_hi_llama_public_relations +task_alias: public_relations diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_security_studies.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_security_studies.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e9d660e1faa498214392ed2c0a93fcf127a533ff --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_security_studies.yaml @@ -0,0 +1,388 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u092E\u091C\u092C\u0942\u0930\u0928, \u091C\u092C\u0930\u0926\u0938\u094D\ + \u0924\u0940 \u0915\u0942\u091F\u0928\u0940\u0924\u093F \u0915\u0947 \u0932\ + \u093F\u090F \u090F\u0915 \u0914\u0930 \u0936\u092C\u094D\u0926 \u0939\u0948\ + , \u0932\u0947\u0915\u093F\u0928 \u092E\u093E\u0928\u0926\u0902\u0921\u094B\ + \u0902 \u0915\u0947 \u090F\u0915 \u0938\u0902\u0915\u0940\u0930\u094D\u0923\ + \ \u0938\u0947\u091F \u0915\u094B \u0915\u0935\u0930 \u0915\u0930\u0924\u093E\ + \ \u0939\u0948; \u092E\u091C\u092C\u0942\u0930\u0928 \u0909\u0928 \u0916\u0924\ + \u0930\u094B\u0902 \u0915\u094B \u0915\u0935\u0930 \u0915\u0930\u0924\u093E\ + \ \u0939\u0948 \u091C\u093F\u0928\u0915\u093E \u0909\u0926\u094D\u0926\u0947\ + \u0936\u094D\u092F \u092A\u094D\u0930\u0924\u093F\u0915\u0942\u0932 \u0915\ + \u093E\u0930\u094D\u0930\u0935\u093E\u0908 \u0936\u0941\u0930\u0942 \u0915\ + \u0930\u0928\u093E \u0939\u0948\u0964 \u0915\u093F\u0938\u0940 \u0930\u093E\ + \u091C\u094D\u092F \u0915\u094B \u0905\u092A\u0928\u0947 \u0915\u094D\u0937\ + \u0947\u0924\u094D\u0930 \u0915\u093E \u0915\u0941\u091B \u0939\u093F\u0938\ + \u094D\u0938\u093E \u091B\u094B\u0921\u093C\u0928\u0947 \u0915\u0947 \u0932\ + \u093F\u090F \u092E\u091C\u092C\u0942\u0930 \u0915\u0930\u0928\u0947 \u0915\ + \u0940 \u0927\u092E\u0915\u0940 \u0915\u094B \u091C\u092C\u0930\u0926\u0938\ + \u094D\u0924\u0940 \u0915\u0942\u091F\u0928\u0940\u0924\u093F \u0915\u0947\ + \ \u0930\u0942\u092A \u092E\u0947\u0902 \u0917\u093F\u0928\u093E \u091C\u093E\ + \u090F\u0917\u093E, \u091C\u092C \u0924\u0915 \u0915\u093F \u0935\u0939 \u0927\ + \u092E\u0915\u0940 \u092A\u094D\u0930\u0924\u093F\u0915\u094D\u0930\u093F\u092F\ + \u093E\u0936\u0940\u0932 \u0915\u0942\u091F\u0928\u0940\u0924\u093F \u0936\ + \u0941\u0930\u0942 \u0915\u0930\u0928\u0947 \u0938\u0947 \u092A\u0939\u0932\ + \u0947 \u0938\u0915\u094D\u0930\u093F\u092F \u0930\u0942\u092A \u0938\u0947\ + \ \u0915\u093E\u0930\u094D\u0930\u0935\u093E\u0908 \u0936\u0941\u0930\u0942\ + \ \u0915\u0930 \u0926\u0947\u0924\u0940 \u0939\u0948\u0964" + B: "\u091C\u092C\u0930\u0926\u0938\u094D\u0924\u0940 \u0915\u0940 \u0915\u0942\ + \u091F\u0928\u0940\u0924\u093F \u092E\u0947\u0902 \u092A\u094D\u0930\u0924\ + \u093F\u0926\u094D\u0935\u0902\u0926\u094D\u0935\u0940 \u0915\u0940 \u092E\ + \u093E\u0902\u0917\u094B\u0902 \u0915\u094B \u092A\u0942\u0930\u093E \u0915\ + \u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092A\u094D\u0930\u0924\ + \u093F\u0926\u094D\u0935\u0902\u0926\u094D\u0935\u0940 \u0915\u094B \u092A\ + \u094D\u0930\u0947\u0930\u093F\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947\ + \ \u0932\u093F\u090F \u0938\u0940\u092E\u093F\u0924 \u092C\u0932 \u0915\u0940\ + \ \u0927\u092E\u0915\u093F\u092F\u093E\u0902 \u0936\u093E\u092E\u093F\u0932\ + \ \u0939\u0948\u0902\u0964 \u092F\u0939 \u090F\u0915 \u092A\u094D\u0930\u092D\ + \u093E\u0935 \u0930\u0923\u0928\u0940\u0924\u093F \u0939\u0948 \u091C\u093F\ + \u0938\u0915\u093E \u0909\u0926\u094D\u0926\u0947\u0936\u094D\u092F \u0905\ + \u0928\u0941\u092A\u093E\u0932\u0928 \u092A\u094D\u0930\u093E\u092A\u094D\u0924\ + \ \u0915\u0930\u0928\u093E \u0939\u0948: \u092A\u0939\u0932\u0947 \u0915\u093F\ + \u0938\u0940 \u092A\u094D\u0930\u0924\u093F\u0926\u094D\u0935\u0902\u0926\u094D\ + \u0935\u0940 \u0915\u094B \u0939\u0930\u093E\u0928\u0947 \u0915\u0947 \u0932\ + \u093F\u090F \u092C\u0932 \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u092E\ + \u093E\u092F\u0928\u0947 \u0928\u0939\u0940\u0902 \u0930\u0916\u0924\u093E\ + \ \u0939\u0948\u0964 \u092F\u0939 \u0905\u0928\u0941\u092A\u093E\u0932\u0928\ + \ \u0915\u0930\u0928\u0947 \u092F\u093E \u091C\u093E\u0930\u0940 \u0930\u0916\ + \u0928\u0947 \u0915\u0947 \u0932\u0915\u094D\u0937\u094D\u092F \u0915\u0947\ + \ \u0938\u093E\u0925 \u0935\u093F\u0915\u0932\u094D\u092A \u0915\u093E \u090F\ + \u0915 \u0924\u0924\u094D\u0935 \u091B\u094B\u0921\u093C\u0924\u093E \u0939\ + \u0948\u0964" + C: "\u0938\u0948\u0928\u094D\u092F \u092C\u0932, \u092F\u093E \u0938\u0948\u0928\ + \u094D\u092F \u092C\u0932 \u0915\u093E \u0916\u0924\u0930\u093E, \u0930\u0923\ + \u0928\u0940\u0924\u093F\u0915 \u0909\u0926\u094D\u0926\u0947\u0936\u094D\u092F\ + \u094B\u0902 \u0915\u094B \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\ + \u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092D\u092F \u0915\u093E\ + \ \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0924\u093E \u0939\u0948\u0964\ + \ \u092C\u0932\u092A\u0942\u0930\u094D\u0935\u0915 \u0915\u0942\u091F\u0928\ + \u0940\u0924\u093F \u0915\u094B \u0907\u0938 \u0926\u0943\u0937\u094D\u091F\ + \u093F\u0915\u094B\u0923 \u0938\u0947 \u0905\u0932\u0917 \u0915\u093F\u092F\ + \u093E \u091C\u093E\u0924\u093E \u0939\u0948, \u0915\u094D\u092F\u094B\u0902\ + \u0915\u093F \u092F\u0939 \u0915\u093F\u0938\u0940 \u0935\u093F\u0930\u094B\ + \u0927\u0940 \u092A\u0930 \u0926\u092C\u093E\u0935 \u0921\u093E\u0932\u0928\ + \u0947 \u0915\u0947 \u0932\u093F\u090F \u092D\u092F \u0915\u094B \u090F\u0915\ + \ \u0909\u092A\u0915\u0930\u0923 \u0915\u0947 \u0930\u0942\u092A \u092E\u0947\ + \u0902 \u0909\u092A\u092F\u094B\u0917 \u0928\u0939\u0940\u0902 \u0915\u0930\ + \u0924\u093E \u0939\u0948\u0964" + D: "\u092C\u0932 \u092A\u094D\u0930\u092F\u094B\u0917 \u0915\u0947 \u0932\u093F\ + \u090F \u0932\u0947\u0915\u093F\u0928 \u0905\u0902\u0924\u0930\u094D\u0930\ + \u093E\u0937\u094D\u091F\u094D\u0930\u0940\u092F \u0938\u092E\u0941\u0926\u093E\ + \u092F \u092A\u0930 \u0907\u0938\u0915\u0947 \u092A\u094D\u0930\u092D\u093E\ + \u0935 \u0915\u094B \u0938\u0940\u092E\u093F\u0924 \u0915\u0930\u0928\u0947\ + \ \u0915\u0947 \u0932\u093F\u090F \u092C\u0932\u092A\u0942\u0930\u094D\u0935\ + \u0915 \u0915\u0942\u091F\u0928\u0940\u0924\u093F \u0915\u093E \u0909\u092A\ + \u092F\u094B\u0917 \u0915\u093F\u092F\u093E \u091C\u093E\u0924\u093E \u0939\ + \u0948\u0964 \u091C\u092C\u0930\u0926\u0938\u094D\u0924\u0940 \u0915\u0942\ + \u091F\u0928\u0940\u0924\u093F \u090F\u0915 \u0906\u0915\u094D\u0930\u093E\ + \u092E\u0915 \u0930\u0923\u0928\u0940\u0924\u093F \u0939\u0948 \u091C\u093F\ + \u0938\u0915\u093E \u0909\u0926\u094D\u0926\u0947\u0936\u094D\u092F \u0939\ + \u093E\u0930 \u0915\u0947 \u092E\u093E\u0927\u094D\u092F\u092E \u0938\u0947\ + \ \u0905\u0928\u0941\u092A\u093E\u0932\u0928 \u092A\u094D\u0930\u093E\u092A\ + \u094D\u0924 \u0915\u0930\u0928\u093E \u0939\u0948\u0964 \u092F\u0939 \u0932\ + \u0915\u094D\u0937\u094D\u092F \u0915\u0947 \u092A\u093E\u0938 \u0935\u093F\ + \u0915\u0932\u094D\u092A \u0915\u093E \u0915\u094B\u0908 \u0924\u0924\u094D\ + \u0935 \u0928\u0939\u0940\u0902 \u091B\u094B\u0921\u093C\u0924\u093E \u0939\ + \u0948, \u0932\u0915\u094D\u0937\u094D\u092F \u0915\u094B \u092F\u093E \u0924\ + \u094B \u0905\u0928\u0941\u092A\u093E\u0932\u0928 \u0915\u0930\u0928\u0947\ + \ \u0915\u0947 \u0932\u093F\u090F \u092E\u091C\u092C\u0942\u0930 \u0915\u093F\ + \u092F\u093E \u091C\u093E\u0924\u093E \u0939\u0948 \u092F\u093E \u0938\u0902\ + \u0918\u0930\u094D\u0937 \u092E\u0947\u0902 \u0936\u093E\u092E\u093F\u0932\ + \ \u0915\u093F\u092F\u093E \u091C\u093E\u0924\u093E \u0939\u0948\u0964 \u092F\ + \u0939 \u092C\u093E\u0924\u091A\u0940\u0924 \u092F\u093E \u0930\u093F\u092F\ + \u093E\u092F\u0924 \u0915\u0947 \u0915\u093F\u0938\u0940 \u092D\u0940 \u0905\ + \u0935\u0938\u0930 \u0915\u094B \u0939\u091F\u093E\u0915\u0930 \u0905\u0928\ + \u0941\u092A\u093E\u0932\u0928 \u0932\u093E\u0917\u0942 \u0915\u0930\u0915\ + \u0947 \u0928\u093F\u092F\u0902\u0924\u094D\u0930\u0923 \u0915\u0930\u0928\ + \u093E \u091A\u093E\u0939\u0924\u093E \u0939\u0948\u0964" + input_correct_responses: + - B + input_question: "\u092C\u0932\u092A\u0942\u0930\u094D\u0935\u0915 \u0915\u0942\ + \u091F\u0928\u0940\u0924\u093F \u0915\u094B \u0938\u0948\u0928\u094D\u092F \u092C\ + \u0932 \u0938\u0947 \u0915\u094D\u092F\u093E \u0905\u0932\u0917 \u0915\u0930\ + \u0924\u093E \u0939\u0948?" + - input_choice_list: + A: "\u092C\u093E\u0932 \u0938\u0948\u0928\u093F\u0915 \u092F\u0941\u0926\u094D\ + \u0927 \u0915\u0947 \u0936\u093F\u0915\u093E\u0930 \u0939\u0948\u0902 \u091C\ + \u093F\u0928\u094D\u0939\u0947\u0902 \u092A\u0941\u0928\u0903 \u0936\u093F\ + \u0915\u094D\u0937\u093E \u0914\u0930 \u092A\u0941\u0928\u0930\u094D\u0935\ + \u093E\u0938 \u0915\u0940 \u0906\u0935\u0936\u094D\u092F\u0915\u0924\u093E\ + \ \u0939\u0948\u0964" + B: "\u092C\u091A\u094D\u091A\u0947 \u0914\u0930 \u0909\u0928\u0915\u0940 \u092E\ + \u093E\u0924\u093E\u090F\u0901 \u092F\u0941\u0926\u094D\u0927 \u092E\u0947\ + \u0902 \u0938\u0915\u094D\u0930\u093F\u092F \u0935\u093F\u0937\u092F \u0928\ + \u0939\u0940\u0902 \u0939\u0948\u0902 \u0914\u0930 \u0909\u0928\u094D\u0939\ + \u0947\u0902 \u0928\u093F\u091C\u0940 \u0915\u094D\u0937\u0947\u0924\u094D\ + \u0930 \u092E\u0947\u0902 \u0935\u093F\u0937\u092F \u092E\u093E\u0928\u093E\ + \ \u091C\u093E\u0924\u093E \u0939\u0948\u0964" + C: "\u092C\u091A\u094D\u091A\u0947 \u0905\u0915\u094D\u0938\u0930 \u092F\u0941\ + \u0926\u094D\u0927 \u092E\u0947\u0902 \u0928\u093F\u0930\u094D\u0926\u094B\ + \u0937 \u0926\u0930\u094D\u0936\u0915 \u0939\u094B\u0924\u0947 \u0939\u0948\ + \u0902 \u0914\u0930 \u0936\u093E\u0902\u0924\u093F \u0915\u0947 \u0938\u0902\ + \u0915\u0947\u0924\u0915 \u0915\u0947 \u0930\u0942\u092A \u092E\u0947\u0902\ + \ \u0909\u0928\u0915\u093E \u0938\u092C\u0938\u0947 \u0905\u091A\u094D\u091B\ + \u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u093F\u092F\u093E \u091C\u093E\ + \u0924\u093E \u0939\u0948\u0964" + D: "\u092C\u091A\u094D\u091A\u094B\u0902 \u092E\u0947\u0902 \u0930\u093E\u091C\ + \u0928\u0940\u0924\u093F\u0915 \u0935\u093F\u0937\u092F\u0935\u0938\u094D\u0924\ + \u0941 \u0939\u094B\u0924\u0940 \u0939\u0948 \u091C\u094B \u0924\u092C \u091B\ + \u0942\u091F \u091C\u093E\u0924\u0940 \u0939\u0948 \u091C\u092C \u0909\u0928\ + \u094D\u0939\u0947\u0902 \u092F\u0941\u0926\u094D\u0927 \u0915\u093E \u0928\ + \u093F\u0937\u094D\u0915\u094D\u0930\u093F\u092F \u092A\u0940\u0921\u093C\u093F\ + \u0924 \u092E\u093E\u0928\u093E \u091C\u093E\u0924\u093E \u0939\u0948\u0964" + input_correct_responses: + - D + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u0938\u092C\ + \u0938\u0947 \u0905\u091A\u094D\u091B\u093E \u0932\u0947\u0902\u0938 \u0939\u0948\ + \ \u091C\u093F\u0938\u0915\u0947 \u092E\u093E\u0927\u094D\u092F\u092E \u0938\ + \u0947 \u092C\u093E\u0932 \u0938\u0948\u0928\u093F\u0915\u094B\u0902 \u0915\u0940\ + \ \u092D\u0942\u092E\u093F\u0915\u093E \u0915\u0940 \u091C\u093E\u0902\u091A\ + \ \u0915\u0940 \u091C\u093E \u0938\u0915\u0924\u0940 \u0939\u0948?" + - input_choice_list: + A: "\u090F\u0915 \u0905\u0938\u094D\u0924\u093F\u0924\u094D\u0935\u0917\u0924\ + \ \u0916\u0924\u0930\u0947 \u0915\u0947 \u0930\u0942\u092A \u092E\u0947\u0902\ + \ \u091C\u093F\u0938\u0915\u0947 \u0932\u093F\u090F \u0924\u0924\u094D\u0915\ + \u093E\u0932 \u0914\u0930 \u0905\u0938\u093E\u0927\u093E\u0930\u0923 \u0915\ + \u093E\u0930\u094D\u0930\u0935\u093E\u0908 \u0915\u0940 \u0906\u0935\u0936\ + \u094D\u092F\u0915\u0924\u093E \u0939\u094B\u0924\u0940 \u0939\u0948, \u091C\ + \u094B \u0930\u093E\u091C\u094D\u092F \u0915\u0947 \u0905\u0938\u094D\u0924\ + \u093F\u0924\u094D\u0935 \u092F\u093E \u0938\u093E\u092E\u093E\u091C\u093F\ + \u0915 \u0938\u0941\u0930\u0915\u094D\u0937\u093E \u0915\u0947 \u0932\u093F\ + \u090F \u0916\u0924\u0930\u093E \u092A\u0948\u0926\u093E \u0915\u0930\u0924\ + \u093E \u0939\u0948\u0964" + B: "\u0930\u093E\u091C\u094D\u092F \u0926\u094D\u0935\u093E\u0930\u093E \u0924\ + \u0924\u094D\u0915\u093E\u0932 \u0914\u0930 \u0905\u0938\u093E\u0927\u093E\ + \u0930\u0923 \u0915\u093E\u0930\u094D\u0930\u0935\u093E\u0908 \u0915\u0940\ + \ \u0906\u0935\u0936\u094D\u092F\u0915\u0924\u093E \u0915\u0947 \u0930\u0942\ + \u092A \u092E\u0947\u0902, \u090F\u0915 \u0938\u0902\u0926\u0930\u094D\u092D\ + \u093F\u0924 \u0935\u0938\u094D\u0924\u0941 \u0915\u0947 \u0905\u0938\u094D\ + \u0924\u093F\u0924\u094D\u0935 \u0915\u094B \u0916\u0924\u0930\u0947 \u092E\ + \u0947\u0902 \u0921\u093E\u0932\u0928\u093E \u0914\u0930 \u0907\u0938\u0932\ + \u093F\u090F \u0909\u0928 \u0909\u092A\u093E\u092F\u094B\u0902 \u0915\u0947\ + \ \u0909\u092A\u092F\u094B\u0917 \u0915\u0940 \u0917\u093E\u0930\u0902\u091F\ + \u0940 \u0926\u0947\u0928\u093E \u091C\u094B \u0906\u092E \u0924\u094C\u0930\ + \ \u092A\u0930 \u0930\u093E\u091C\u0928\u0940\u0924\u093F\u0915 \u0915\u094D\ + \u0937\u0947\u0924\u094D\u0930 \u092E\u0947\u0902 \u0928\u093F\u092F\u094B\ + \u091C\u093F\u0924 \u0928\u0939\u0940\u0902 \u0939\u094B\u0924\u0947 \u0939\ + \u0948\u0902\u0964" + C: "\u0938\u0902\u0926\u0930\u094D\u092D\u093F\u0924 \u0935\u0938\u094D\u0924\ + \u0941 \u0915\u0947 \u0905\u0938\u094D\u0924\u093F\u0924\u094D\u0935 \u0915\ + \u0947 \u0932\u093F\u090F \u090F\u0915 \u0924\u0924\u094D\u0915\u093E\u0932\ + \ \u0916\u0924\u0930\u0947 \u0915\u0947 \u0930\u0942\u092A \u092E\u0947\u0902\ + , \u0907\u0924\u0928\u093E \u0917\u0902\u092D\u0940\u0930 \u0915\u093F \u092F\ + \u0939 \u092A\u094D\u0930\u0924\u093F\u0915\u094D\u0930\u093F\u092F\u093E\ + \ \u092E\u0947\u0902 \u0905\u0938\u093E\u0927\u093E\u0930\u0923 \u0915\u093E\ + \u0930\u094D\u0930\u0935\u093E\u0908 \u0915\u0947 \u0930\u094B\u091C\u0917\ + \u093E\u0930 \u0915\u094B \u0935\u0948\u0927 \u092C\u0928\u093E\u0924\u093E\ + \ \u0939\u0948\u0964" + D: "\u0926\u0930\u094D\u0936\u0915\u094B\u0902 \u0915\u0947 \u0905\u0938\u094D\ + \u0924\u093F\u0924\u094D\u0935 \u0915\u0947 \u0932\u093F\u090F \u090F\u0915\ + \ \u0924\u0924\u094D\u0915\u093E\u0932 \u0916\u0924\u0930\u0947 \u0915\u0947\ + \ \u0930\u0942\u092A \u092E\u0947\u0902 \u091C\u093F\u0938\u0915\u0947 \u0932\ + \u093F\u090F \u0905\u0938\u093E\u0927\u093E\u0930\u0923 \u092F\u093E \u0906\ + \u092A\u093E\u0924\u0915\u093E\u0932\u0940\u0928 \u0909\u092A\u093E\u092F\u094B\ + \u0902 \u0915\u0940 \u0906\u0935\u0936\u094D\u092F\u0915\u0924\u093E \u0939\ + \u0948\u0964" + input_correct_responses: + - C + input_question: "\u092A\u094D\u0930\u0924\u093F\u092D\u0942\u0924\u093F\u0915\u0943\ + \u0924 \u0939\u094B\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F, \u0907\u0928\ + \u092E\u0947\u0902 \u0938\u0947 \u0915\u093F\u0938 \u0924\u0930\u0940\u0915\u0947\ + \ \u0938\u0947 \u0916\u0924\u0930\u093E \u092A\u094D\u0930\u0938\u094D\u0924\ + \u0941\u0924 \u0915\u093F\u092F\u093E \u091C\u093E\u0928\u093E \u091A\u093E\u0939\ + \u093F\u090F?" + - input_choice_list: + A: "\u0916\u0924\u0930\u094B\u0902 \u0914\u0930 \u0938\u0902\u0926\u0930\u094D\ + \u092D\u093F\u0924 \u0935\u0938\u094D\u0924\u0941\u0913\u0902 \u0915\u0940\ + \ \u092A\u094D\u0930\u0915\u0943\u0924\u093F \u0915\u0947 \u0938\u0902\u092C\ + \u0902\u0927 \u092E\u0947\u0902 \u092E\u093E\u0928\u0935 \u0938\u0941\u0930\ + \u0915\u094D\u0937\u093E \u0922\u093E\u0902\u091A\u0947 \u0915\u0947 \u092D\ + \u0940\u0924\u0930 \u0907\u0924\u0928\u0947 \u0935\u094D\u092F\u093E\u092A\ + \u0915 \u0935\u093F\u092D\u093E\u091C\u0928 \u0939\u0948\u0902 \u0915\u093F\ + \ \u0930\u093E\u091C\u094D\u092F-\u0915\u0947\u0902\u0926\u094D\u0930\u093F\ + \u0924 \u0926\u0943\u0937\u094D\u091F\u093F\u0915\u094B\u0923 \u0914\u0930\ + \ \u092E\u093E\u0928\u0935 \u0938\u0941\u0930\u0915\u094D\u0937\u093E \u0915\ + \u0947 \u092C\u0940\u091A \u0915\u094B\u0908 \u0935\u094D\u092F\u093E\u092A\ + \u0915 \u0930\u0942\u092A \u0938\u0947 \u0932\u093E\u0917\u0942 \u0924\u0941\ + \u0932\u0928\u093E \u0928\u0939\u0940\u0902 \u0915\u0940 \u091C\u093E \u0938\ + \u0915\u0924\u0940 \u0939\u0948\u0964" + B: "\u092E\u093E\u0928\u0935 \u0938\u0941\u0930\u0915\u094D\u0937\u093E \u0915\ + \u0947 \u0922\u093E\u0901\u091A\u0947 \u0915\u094B \u0905\u092A\u0928\u093E\ + \u0928\u0947 \u0938\u0947 \u092F\u0925\u093E\u0930\u094D\u0925\u0935\u093E\ + \u0926\u0940 \u0930\u093E\u091C\u094D\u092F-\u0915\u0947\u0928\u094D\u0926\ + \u094D\u0930\u093F\u0924 \u0926\u0943\u0937\u094D\u091F\u093F\u0915\u094B\u0923\ + \ \u0915\u0940 \u0938\u0940\u092E\u093E\u090F\u0901 \u0938\u094D\u092A\u0937\ + \u094D\u091F \u0939\u094B \u091C\u093E\u0924\u0940 \u0939\u0948\u0902\u0964\ + \ \u091C\u092C\u0915\u093F \u092E\u093E\u0928\u0935 \u0938\u0941\u0930\u0915\ + \u094D\u0937\u093E \u0938\u0902\u0926\u0930\u094D\u092D\u093F\u0924 \u0935\ + \u0938\u094D\u0924\u0941 \u0915\u094B \u0935\u094D\u092F\u0915\u094D\u0924\ + \u093F \u092F\u093E \u091C\u0928\u0938\u0902\u0916\u094D\u092F\u093E \u0915\ + \u0947 \u0930\u0942\u092A \u092E\u0947\u0902 \u092A\u0930\u093F\u092D\u093E\ + \u0937\u093F\u0924 \u0915\u0930\u0924\u0940 \u0939\u0948, \u0930\u093E\u091C\ + \u094D\u092F-\u0915\u0947\u0902\u0926\u094D\u0930\u093F\u0924 \u0926\u0943\ + \u0937\u094D\u091F\u093F\u0915\u094B\u0923 \u0930\u093E\u091C\u094D\u092F\ + \ \u0915\u0940 \u0938\u0941\u0930\u0915\u094D\u0937\u093E \u0915\u094B \u092A\ + \u094D\u0930\u093E\u0925\u092E\u093F\u0915\u0924\u093E \u0926\u0947\u0924\u0947\ + \ \u0939\u0948\u0902, \u092E\u093E\u0928\u0935 \u0938\u0941\u0930\u0915\u094D\ + \u0937\u093E \u0915\u0940 \u0916\u094B\u091C \u0915\u094B \u092A\u094D\u0930\ + \u093E\u0925\u092E\u093F\u0915\u0924\u093E \u0928\u0939\u0940\u0902 \u0926\ + \u0947\u0924\u0947 \u0939\u0948\u0902\u0964" + C: "\u0938\u0941\u0930\u0915\u094D\u0937\u093E \u0915\u0947 \u092A\u094D\u0930\ + \u0924\u093F \u0930\u093E\u091C\u094D\u092F-\u0915\u0947\u0902\u0926\u094D\ + \u0930\u093F\u0924 \u0926\u0943\u0937\u094D\u091F\u093F\u0915\u094B\u0923\ + \ \u092E\u093E\u0928\u0935 \u0938\u0941\u0930\u0915\u094D\u0937\u093E \u0915\ + \u093E \u090F\u0915 \u0917\u0941\u091F \u0939\u0948, \u091C\u093F\u0938\u0947\ + \ \u0906\u092E\u0924\u094C\u0930 \u092A\u0930 \u092E\u093E\u0928\u0935 \u0938\ + \u0941\u0930\u0915\u094D\u0937\u093E \u0915\u0947 \u0935\u094D\u092F\u093E\ + \u092A\u0915 \u0938\u094D\u0915\u0942\u0932 \u0915\u0947 \u092D\u0940\u0924\ + \u0930 \u092A\u0930\u093F\u092D\u093E\u0937\u093F\u0924 \u0915\u093F\u092F\ + \u093E \u0917\u092F\u093E \u0939\u0948\u0964 \u0930\u093E\u091C\u094D\u092F\ + -\u0915\u0947\u0902\u0926\u094D\u0930\u093F\u0924 \u0939\u094B\u0928\u0947\ + \ \u0915\u0947 \u0915\u093E\u0930\u0923 \u092F\u0939 \u0926\u0943\u0937\u094D\ + \u091F\u093F\u0915\u094B\u0923 \u0938\u0941\u0930\u0915\u094D\u0937\u093E\ + \ \u0905\u0927\u094D\u092F\u092F\u0928 \u092E\u0947\u0902 \u0938\u0902\u0926\ + \u0930\u094D\u092D \u0935\u0938\u094D\u0924\u0941 \u0915\u0947 \u0930\u0942\ + \u092A \u092E\u0947\u0902 \u0935\u094D\u092F\u0915\u094D\u0924\u093F \u0915\ + \u094B \u092A\u094D\u0930\u093E\u0925\u092E\u093F\u0915\u0924\u093E \u0926\ + \u0947\u0924\u093E \u0939\u0948\u0964" + D: "\u0938\u0941\u0930\u0915\u094D\u0937\u093E \u0915\u0947 \u0932\u093F\u090F\ + \ \u0930\u093E\u091C\u094D\u092F-\u0915\u0947\u0902\u0926\u094D\u0930\u093F\ + \u0924 \u0914\u0930 \u092E\u093E\u0928\u0935-\u0915\u0947\u0902\u0926\u094D\ + \u0930\u093F\u0924 \u0926\u094B\u0928\u094B\u0902 \u0926\u0943\u0937\u094D\ + \u091F\u093F\u0915\u094B\u0923 \u092A\u0930\u0938\u094D\u092A\u0930 \u0905\ + \u0928\u0928\u094D\u092F \u0939\u0948\u0902 \u0914\u0930 \u0905\u0902\u0924\ + \u0930\u0930\u093E\u0937\u094D\u091F\u094D\u0930\u0940\u092F \u0938\u0941\u0930\ + \u0915\u094D\u0937\u093E \u092A\u094D\u0930\u0923\u093E\u0932\u0940 \u0915\ + \u094B \u0938\u092E\u091D\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092A\ + \u0930\u094D\u092F\u093E\u092A\u094D\u0924 \u0935\u093F\u0936\u094D\u0932\u0947\ + \u0937\u0923\u093E\u0924\u094D\u092E\u0915 \u0922\u093E\u0902\u091A\u093E\ + \ \u092A\u094D\u0930\u0926\u093E\u0928 \u0915\u0930\u0924\u0947 \u0939\u0948\ + \u0902\u0964 \u0907\u0938\u0932\u093F\u090F \u092F\u0939 \u0928\u093F\u0930\ + \u094D\u0927\u093E\u0930\u093F\u0924 \u0915\u0930\u0928\u093E \u0938\u0941\ + \u0930\u0915\u094D\u0937\u093E \u0935\u093F\u0936\u094D\u0932\u0947\u0937\u0915\ + \u094B\u0902 \u0915\u0940 \u092D\u0942\u092E\u093F\u0915\u093E \u0939\u0948\ + \ \u0915\u093F \u0907\u0928\u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928\ + \ \u0938\u0940 \u092E\u0939\u0924\u094D\u0935\u092A\u0942\u0930\u094D\u0923\ + \ \u0905\u0935\u0927\u093E\u0930\u0923\u093E \u0938\u0939\u0940 \u0939\u0948\ + , \u0914\u0930 \u0915\u093F\u0938\u0947 \u091B\u094B\u0921\u093C \u0926\u093F\ + \u092F\u093E \u091C\u093E\u0928\u093E \u091A\u093E\u0939\u093F\u090F\u0964" + input_correct_responses: + - B + input_question: "\u0939\u092E \u0930\u093E\u091C\u094D\u092F-\u0915\u0947\u0902\ + \u0926\u094D\u0930\u093F\u0924 \u0926\u0943\u0937\u094D\u091F\u093F\u0915\u094B\ + \u0923 \u0914\u0930 \u092E\u093E\u0928\u0935 \u0938\u0941\u0930\u0915\u094D\u0937\ + \u093E \u0915\u0940 \u0905\u0935\u0927\u093E\u0930\u0923\u093E \u0915\u0947\ + \ \u092C\u0940\u091A \u0938\u0902\u092C\u0902\u0927 \u0915\u093E \u0938\u0930\ + \u094D\u0935\u094B\u0924\u094D\u0924\u092E \u0935\u0930\u094D\u0923\u0928 \u0915\ + \u0948\u0938\u0947 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902?" + - input_choice_list: + A: "\u092C\u0921\u093C\u0947 \u0926\u0947\u0936\u094B\u0902 \u0915\u0947 \u092C\ + \u0940\u091A \u092A\u094D\u0930\u0924\u093F\u0938\u094D\u092A\u0930\u094D\u0927\ + \u093E \u0915\u0947 \u092A\u0930\u093F\u0923\u093E\u092E\u0938\u094D\u0935\ + \u0930\u0942\u092A \u0915\u0941\u091B \u0926\u0947\u0936 \u092A\u094D\u0930\ + \u0924\u093F\u0926\u094D\u0935\u0902\u0926\u094D\u0935\u0940 \u0930\u093E\u091C\ + \u094D\u092F\u094B\u0902 \u0915\u0940 \u0924\u093E\u0915\u0924 \u0915\u094B\ + \ \u0915\u092E\u091C\u094B\u0930 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\ + \u093F\u090F \u0938\u0915\u094D\u0930\u093F\u092F \u0930\u0942\u092A \u0938\ + \u0947 \u0906\u0924\u0902\u0915\u0935\u093E\u0926\u0940 \u0938\u092E\u0942\ + \u0939\u094B\u0902 \u0915\u093E \u0938\u092E\u0930\u094D\u0925\u0928 \u0915\ + \u0930 \u0930\u0939\u0947 \u0939\u0948\u0902\u0964 \u0906\u0924\u0902\u0915\ + \u0935\u093E\u0926\u0940 \u0928\u0947\u091F\u0935\u0930\u094D\u0915 \u0935\ + \u093F\u0938\u094D\u0924\u093E\u0930\u093F\u0924 \u0938\u0902\u0930\u0915\u094D\ + \u0937\u0923 \u0915\u094D\u0932\u092C \u0939\u0948\u0902 \u091C\u093F\u0928\ + \u0915\u093E \u0930\u0916\u0930\u0916\u093E\u0935 \u0914\u0930 \u092D\u0941\ + \u0917\u0924\u093E\u0928 \u0909\u0928\u0915\u0947 \u0926\u093E\u0924\u093E\ + \ \u0930\u093E\u091C\u094D\u092F\u094B\u0902 \u0926\u094D\u0935\u093E\u0930\ + \u093E \u0915\u093F\u092F\u093E \u091C\u093E\u0924\u093E \u0939\u0948 \u0914\ + \u0930 \u0907\u0928\u094D\u0939\u0947\u0902 \u0930\u093E\u091C\u094D\u092F\ + \ \u0905\u092D\u093F\u0928\u0947\u0924\u093E\u0913\u0902 \u0915\u0940 \u0924\ + \u0930\u0939 \u092E\u093E\u0928\u093E \u091C\u093E\u0924\u093E \u0939\u0948\ + , \u091C\u093F\u0928\u0938\u0947 \u0938\u0948\u0928\u094D\u092F \u092C\u0932\ + \ \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0915\u0947 \u0928\ + \u093F\u092A\u091F\u093E \u091C\u093E \u0938\u0915\u0924\u093E \u0939\u0948\ + \u0964" + B: "\u0935\u0948\u0936\u094D\u0935\u0940\u0915\u0930\u0923 \u0928\u0947 \u0906\ + \u0924\u0902\u0915\u0935\u093E\u0926\u0940 \u0917\u0924\u093F\u0935\u093F\u0927\ + \u093F\u092F\u094B\u0902 \u0915\u0947 \u092A\u0930\u093F\u091A\u093E\u0932\ + \u0928 \u0938\u094D\u0925\u093E\u0928 \u0915\u094B \u0916\u094B\u0932\u0915\ + \u0930 \u0909\u0928\u0915\u0947 \u0905\u0902\u0924\u0930\u094D\u0930\u093E\ + \u0937\u094D\u091F\u094D\u0930\u0940\u092F\u0915\u0930\u0923 \u0915\u094B\ + \ \u0938\u0915\u094D\u0937\u092E \u092C\u0928\u093E\u092F\u093E \u0939\u0948\ + , \u0939\u093E\u0932\u093E\u0902\u0915\u093F \u0938\u092E\u0928\u094D\u0935\ + \u092F \u0905\u092D\u0940 \u092D\u0940 \u092D\u094C\u0917\u094B\u0932\u093F\ + \u0915 \u0906\u0927\u093E\u0930 \u0938\u0947 \u092A\u094D\u0930\u092C\u0902\ + \u0927\u093F\u0924 \u0915\u093F\u092F\u093E \u091C\u093E\u0924\u093E \u0939\ + \u0948\u0964 \u0907\u0938\u0938\u0947 \u092A\u0924\u093E \u091A\u0932\u0924\ + \u093E \u0939\u0948 \u0915\u093F \u0906\u0924\u0902\u0915\u0935\u093E\u0926\ + \u0940 \u0938\u092E\u0942\u0939 \u0930\u093E\u0937\u094D\u091F\u094D\u0930\ + \u0940\u092F \u0938\u094D\u0924\u0930 \u092A\u0930 \u0938\u0902\u0930\u091A\ + \u093F\u0924 \u0939\u0948\u0902 \u091C\u093F\u0938\u0915\u093E \u0905\u0930\ + \u094D\u0925 \u0939\u0948 \u0915\u093F \u0906\u0924\u0902\u0915\u0935\u093E\ + \u0926 \u0915\u094B \u0938\u094D\u0935\u0926\u0947\u0936\u0940 \u0906\u092C\ + \u093E\u0926\u0940 \u092A\u0930 \u0917\u0902\u092D\u0940\u0930 \u092A\u094D\ + \u0930\u092D\u093E\u0935 \u0921\u093E\u0932\u0947 \u092C\u093F\u0928\u093E\ + \ \u0938\u0948\u0928\u094D\u092F \u0930\u0942\u092A \u0938\u0947 \u092A\u0930\ + \u093E\u091C\u093F\u0924 \u0915\u093F\u090F \u091C\u093E\u0928\u0947 \u0935\ + \u093E\u0932\u0947 \u092F\u0941\u0926\u094D\u0927 \u0915\u0947 \u0938\u0902\ + \u0926\u0930\u094D\u092D \u092E\u0947\u0902 \u0928\u0939\u0940\u0902 \u092E\ + \u093E\u0928\u093E \u091C\u093E \u0938\u0915\u0924\u093E \u0939\u0948\u0964" + C: "\u0906\u0924\u0902\u0915\u0935\u093E\u0926 \u0915\u094B \u0938\u0948\u0928\ + \u094D\u092F \u0924\u0930\u0940\u0915\u094B\u0902 (\u0906\u0924\u0902\u0915\ + \u0935\u093E\u0926 \u092A\u0930 \u092F\u0941\u0926\u094D\u0927), \u0938\u093E\ + \u092E\u093E\u0928\u094D\u092F \u092A\u0941\u0932\u093F\u0938 \u0924\u0915\ + \u0928\u0940\u0915\u094B\u0902 (\u0906\u0924\u0902\u0915\u0935\u093E\u0926\ + \ \u0915\u094B \u0905\u092A\u0930\u093E\u0927 \u0915\u0947 \u0930\u0942\u092A\ + \ \u092E\u0947\u0902), \u092F\u093E \u0905\u0902\u0924\u0930\u094D\u0928\u093F\ + \u0939\u093F\u0924 \u0915\u093E\u0930\u0923\u094B\u0902 \u0914\u0930 \u0932\ + \u0915\u094D\u0937\u0923\u094B\u0902 \u0915\u0947 \u0938\u093E\u0925 \u090F\ + \u0915 \u091A\u093F\u0915\u093F\u0924\u094D\u0938\u093E \u0938\u092E\u0938\ + \u094D\u092F\u093E (\u092C\u0940\u092E\u093E\u0930\u0940 \u0915\u0947 \u0930\ + \u0942\u092A \u092E\u0947\u0902 \u0906\u0924\u0902\u0915\u0935\u093E\u0926\ + ) \u0926\u094D\u0935\u093E\u0930\u093E \u0939\u0932 \u0915\u0940 \u091C\u093E\ + \u0928\u0947 \u0935\u093E\u0932\u0940 \u0938\u092E\u0938\u094D\u092F\u093E\ + \ \u0915\u0947 \u0930\u0942\u092A \u092E\u0947\u0902 \u0926\u0947\u0916\u093E\ + \ \u091C\u093E \u0938\u0915\u0924\u093E \u0939\u0948\u0964" + D: "\u0906\u0924\u0902\u0915\u0935\u093E\u0926 \u0915\u094B \u090F\u0915 \u0906\ + \u092A\u0930\u093E\u0927\u093F\u0915 \u0938\u092E\u0938\u094D\u092F\u093E\ + \ \u0915\u0947 \u0930\u0942\u092A \u092E\u0947\u0902 \u0926\u0947\u0916\u093E\ + \ \u091C\u093E\u0924\u093E \u0939\u0948\u0964 \u0906\u0924\u0902\u0915\u0935\ + \u093E\u0926 \u0915\u0947 \u0905\u092A\u0930\u093E\u0927\u0940\u0915\u0930\ + \u0923 \u0915\u0947 \u0926\u094B \u092E\u0939\u0924\u094D\u0935\u092A\u0942\ + \u0930\u094D\u0923 \u0928\u093F\u0939\u093F\u0924\u093E\u0930\u094D\u0925\ + \ \u0939\u0948\u0902\u0964 \u0938\u092C\u0938\u0947 \u092A\u0939\u0932\u0947\ + , \u092F\u0939 \u0938\u0941\u091D\u093E\u0935 \u0926\u0947\u0924\u093E \u0939\ + \u0948 \u0915\u093F \u0906\u0924\u0902\u0915\u0935\u093E\u0926 \u0915\u094B\ + \ \u0916\u0924\u094D\u092E \u0915\u093F\u092F\u093E \u091C\u093E \u0938\u0915\ + \u0924\u093E \u0939\u0948 - \u0906\u0924\u0902\u0915\u0935\u093E\u0926\u093F\ + \u092F\u094B\u0902 \u0915\u094B \u092A\u0915\u0921\u093C\u093E \u091C\u093E\ + \ \u0938\u0915\u0924\u093E \u0939\u0948 \u0914\u0930 \u0938\u093E\u092E\u093E\ + \u0928\u094D\u092F \u0928\u094D\u092F\u093E\u092F\u093F\u0915 \u0915\u093E\ + \u0930\u094D\u092F\u0935\u093E\u0939\u0940 \u0926\u094D\u0935\u093E\u0930\u093E\ + \ \u0909\u0928 \u092A\u0930 \u092E\u0941\u0915\u0926\u092E\u093E \u091A\u0932\ + \u093E\u092F\u093E \u091C\u093E \u0938\u0915\u0924\u093E \u0939\u0948, \u091C\ + \u093F\u0938\u0938\u0947 \u0938\u092E\u093E\u091C \u0938\u0947 \u0916\u0924\ + \u0930\u093E \u0926\u0942\u0930 \u0939\u094B \u0938\u0915\u0924\u093E \u0939\ + \u0948 - \u0914\u0930 \u0926\u0942\u0938\u0930\u093E, \u092F\u0939 \u0938\u0941\ + \u091D\u093E\u0935 \u0926\u093F\u092F\u093E \u091C\u093E\u0924\u093E \u0939\ + \u0948 \u0915\u093F \u0907\u0938\u0915\u0947 \u0935\u093F\u0915\u093E\u0938\ + \ \u0915\u094B \u0930\u094B\u0915\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F\ + \ \u0928\u093F\u0935\u093E\u0930\u0915 \u0905\u092A\u0930\u093E\u0927 \u0924\ + \u0915\u0928\u0940\u0915\u0947\u0902 \u0932\u093E\u0917\u0942 \u0915\u0940\ + \ \u091C\u093E\u0924\u0940 \u0939\u0948\u0902\u0964" + input_correct_responses: + - C + input_question: "\u0935\u093F\u0936\u094D\u0932\u0947\u0937\u0923 \u0915\u0940\ + \ \u0935\u0947 \u0915\u094C\u0928 \u0938\u0940 \u0930\u0942\u092A\u0930\u0947\ + \u0916\u093E\u090F\u0901 \u0939\u0948\u0902 \u091C\u093F\u0928\u0915\u0947 \u0905\ + \u0902\u0924\u0930\u094D\u0917\u0924 \u0906\u0924\u0902\u0915\u0935\u093E\u0926\ + \ \u092A\u0930 \u0935\u093F\u091A\u093E\u0930 \u0915\u093F\u092F\u093E \u0917\ + \u092F\u093E \u0939\u0948 (2020 \u0924\u0915)?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_security_studies +tag: mmlu_hi_llama_social_sciences_tasks +task: mmlu_hi_llama_security_studies +task_alias: security_studies diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_sociology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_sociology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cff6774008ab1ee2d27c3a0bac6bb452a1f360aa --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_sociology.yaml @@ -0,0 +1,134 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0938\u092D\u0940 \u0915\u0947 \u0932\u093F\u090F \u092E\u0941\u092B\u094D\ + \u0924 \u0938\u094D\u0935\u093E\u0938\u094D\u0925\u094D\u092F \u0926\u0947\ + \u0916\u092D\u093E\u0932 \u0914\u0930 \u0936\u093F\u0915\u094D\u0937\u093E" + B: "\u090F\u0915 \u0928\u094D\u092F\u0942\u0928\u0924\u092E \u0935\u0947\u0924\ + \u0928" + C: "\u092A\u0942\u0930\u094D\u0923 \u0930\u094B\u091C\u093C\u0917\u093E\u0930" + D: "\u0938\u093E\u0930\u094D\u0935\u092D\u094C\u092E\u093F\u0915 \u0915\u0932\ + \u094D\u092F\u093E\u0923" + input_correct_responses: + - B + input_question: "1948 \u0915\u0947 \u092F\u0941\u0926\u094D\u0927\u094B\u092A\u0930\ + \u093E\u0902\u0924 \u0915\u0932\u094D\u092F\u093E\u0923\u0915\u093E\u0930\u0940\ + \ \u0930\u093E\u091C\u094D\u092F \u0915\u093E \u0928\u093F\u092E\u094D\u0928\ + \u0932\u093F\u0916\u093F\u0924 \u092E\u0947\u0902 \u0938\u0947 \u0915\u094D\u092F\ + \u093E \u092A\u094D\u0930\u0926\u093E\u0928 \u0915\u0930\u0928\u0947 \u0915\u093E\ + \ \u0932\u0915\u094D\u0937\u094D\u092F \u0928\u0939\u0940\u0902 \u0925\u093E\ + :" + - input_choice_list: + A: "\u090F\u0915 \u092E\u0947\u0932\u0947 \u0915\u0947 \u092E\u0948\u0926\u093E\ + \u0928 \u0915\u0940 \u0938\u0935\u093E\u0930\u0940" + B: "\u090F\u0915 \u0938\u0930\u094D\u0915\u0938" + C: "\u090F\u0915 \u0915\u0920\u092A\u0941\u0924\u0932\u0940 \u0925\u093F\u092F\ + \u0947\u091F\u0930" + D: "\u090F\u0915 \u092C\u0948\u0932\u0947" + input_correct_responses: + - C + input_question: "\u092C\u0930\u094D\u091C\u0930 (1963) \u0938\u093E\u092E\u093E\ + \u091C\u093F\u0915 \u0935\u093E\u0938\u094D\u0924\u0935\u093F\u0915\u0924\u093E\ + \ \u0915\u0947 \u0930\u0942\u092A\u0915 \u0915\u0947 \u0930\u0942\u092A \u092E\ + \u0947\u0902 \u0915\u094D\u092F\u093E \u0935\u0930\u094D\u0923\u0928 \u0915\u0930\ + \u0924\u0947 \u0939\u0948\u0902?" + - input_choice_list: + A: "\u0930\u093E\u091C\u094D\u092F \u0915\u0940 \u092C\u0922\u093C\u0924\u0940\ + \ \u0928\u094C\u0915\u0930\u0936\u093E\u0939\u0940 \u0928\u0947 \u0927\u0930\ + \u094D\u092E \u0915\u094B \u0939\u092E\u093E\u0930\u0947 \u091C\u0940\u0935\ + \u0928 \u0915\u093E \u0915\u0947\u0935\u0932 \u0939\u093E\u0936\u093F\u092F\ + \u0947 \u0915\u093E \u0939\u093F\u0938\u094D\u0938\u093E \u092C\u0928\u093E\ + \ \u0926\u093F\u092F\u093E \u0939\u0948" + B: "\u092A\u093E\u0930\u0902\u092A\u0930\u093F\u0915 \u092A\u094D\u0930\u093E\ + \u0927\u093F\u0915\u093E\u0930 \u0915\u0947 \u0915\u092E\u091C\u094B\u0930\ + \ \u0939\u094B\u0928\u0947 \u0915\u0947 \u092C\u093E\u0935\u091C\u0942\u0926\ + , \u0939\u092E\u093E\u0930\u093E \u0930\u094B\u091C\u092E\u0930\u094D\u0930\ + \u093E \u0915\u093E \u091C\u0940\u0935\u0928 \u0914\u0930 '\u0938\u093E\ + \u092E\u093E\u0928\u094D\u092F \u091C\u094D\u091E\u093E\u0928' \u0927\u093E\ + \u0930\u094D\u092E\u093F\u0915 \u0935\u093F\u0936\u094D\u0935\u093E\u0938\u094B\ + \u0902 \u0914\u0930 \u092E\u0942\u0932\u094D\u092F\u094B\u0902 \u0938\u0947\ + \ \u0906\u0915\u093E\u0930 \u0932\u0947\u0924\u093E \u0939\u0948" + C: "\u0938\u093E\u092E\u0942\u0939\u093F\u0915 \u092A\u0942\u091C\u093E \u092E\ + \u0947\u0902 \u0927\u093E\u0930\u094D\u092E\u093F\u0915 \u092D\u093E\u0917\ + \u0940\u0926\u093E\u0930\u0940 \u092E\u0947\u0902 \u092D\u0932\u0947 \u0939\ + \u0940 \u0917\u093F\u0930\u093E\u0935\u091F \u0906\u0908 \u0939\u094B, \u0932\ + \u0947\u0915\u093F\u0928 \u0932\u094B\u0917 \u0905\u092D\u0940 \u092D\u0940\ + \ \u0928\u093F\u091C\u0940 \u0924\u094C\u0930 \u092A\u0930 \u0905\u092A\u0928\ + \u0947 \u0927\u0930\u094D\u092E \u0915\u093E \u092A\u093E\u0932\u0928 \u0915\ + \u0930\u0924\u0947 \u0939\u0948\u0902" + D: "\u0932\u094B\u0917 \u0938\u093E\u0930\u094D\u0935\u091C\u0928\u093F\u0915\ + , \u0905\u0928\u094C\u092A\u091A\u093E\u0930\u093F\u0915 \u0938\u0947\u091F\ + \u093F\u0902\u0917 \u092E\u0947\u0902 \u0905\u092A\u0928\u0947 \u0927\u093E\ + \u0930\u094D\u092E\u093F\u0915 \u0935\u093F\u0936\u094D\u0935\u093E\u0938\u094B\ + \u0902 \u092A\u0930 \u091A\u0930\u094D\u091A\u093E \u0915\u0930\u0928\u0947\ + \ \u0915\u0940 \u0905\u0927\u093F\u0915 \u0938\u0902\u092D\u093E\u0935\u0928\ + \u093E \u0930\u0916\u0924\u0947 \u0939\u0948\u0902" + input_correct_responses: + - B + input_question: "'\u0928\u093E\u0917\u0930\u093F\u0915 \u0927\u0930\u094D\u092E\ + ' \u0938\u0947 '\u0938\u093E\u092E\u093E\u0928\u094D\u092F \u0927\u0930\ + \u094D\u092E' \u092E\u0947\u0902 \u092C\u0926\u0932\u093E\u0935 \u0915\u093E\ + \ \u0905\u0930\u094D\u0925 \u0939\u0948:" + - input_choice_list: + A: "\u0936\u094D\u0930\u092E\u093F\u0915 \u0935\u0930\u094D\u0917 \u0915\u0940\ + \ \u0905\u092A\u0928\u0947 \u0939\u093F\u0924\u094B\u0902 \u0915\u094B \u0928\ + \ \u0938\u092E\u091D\u0928\u0947 \u0915\u0940 \u092A\u094D\u0930\u0935\u0943\ + \u0924\u094D\u0924\u093F" + B: "\u090F\u0915 \u092A\u094D\u0930\u092E\u0941\u0916 \u0935\u093F\u091A\u093E\ + \u0930\u0927\u093E\u0930\u093E \u091C\u094B \u0906\u0930\u094D\u0925\u093F\ + \u0915, \u0930\u093E\u091C\u0928\u0940\u0924\u093F\u0915 \u0914\u0930 \u0938\ + \u093E\u0902\u0938\u094D\u0915\u0943\u0924\u093F\u0915 \u0936\u0915\u094D\u0924\ + \u093F \u0915\u094B \u0935\u0948\u0927 \u092C\u0928\u093E\u0924\u0940 \u0939\ + \u0948" + C: "\u0935\u093F\u091A\u093E\u0930\u0927\u093E\u0930\u093E \u0914\u0930 \u0930\ + \u094B\u091C\u092E\u0930\u094D\u0930\u093E \u0915\u0947 \u0905\u0928\u0941\ + \u092D\u0935\u094B\u0902 \u092A\u0930 \u0906\u0927\u093E\u0930\u093F\u0924\ + \ \u0926\u094B\u0939\u0930\u0940 \u091A\u0947\u0924\u0928\u093E \u0915\u093E\ + \ \u090F\u0915 \u0930\u0942\u092A" + D: "\u092C\u0915\u093E\u092F\u093E \u091F\u0949\u092A\u0930\u0940 \u0915\u0947\ + \ \u0932\u093F\u090F \u092D\u0941\u0917\u0924\u093E\u0928 \u0915\u093E \u090F\ + \u0915 \u0924\u0930\u0940\u0915\u093E \u0926\u093F\u092F\u093E \u0917\u092F\ + \u093E" + input_correct_responses: + - B + input_question: "'\u0906\u0927\u093F\u092A\u0924\u094D\u092F' \u0936\u092C\ + \u094D\u0926 \u0915\u093E \u0924\u093E\u0924\u094D\u092A\u0930\u094D\u092F \u0939\ + \u0948:" + - input_choice_list: + A: "\u0905\u0927\u093F\u0915\u093E\u0902\u0936 \u0939\u0921\u093C\u0924\u093E\ + \u0932\u094B\u0902 \u092A\u0930 \u0928\u093F\u092F\u094B\u0915\u094D\u0924\ + \u093E\u0913\u0902 \u0914\u0930 \u091C\u0928\u0938\u0902\u091A\u093E\u0930\ + \ \u092E\u093E\u0927\u094D\u092F\u092E\u094B\u0902 \u0915\u093E \u0927\u094D\ + \u092F\u093E\u0928 \u0928\u0939\u0940\u0902 \u091C\u093E\u0924\u093E" + B: "\u0938\u092D\u0940 \u0914\u0926\u094D\u092F\u094B\u0917\u093F\u0915 \u0935\ + \u093F\u0935\u093E\u0926\u094B\u0902 \u0915\u0940 \u0930\u093F\u092A\u094B\ + \u0930\u094D\u091F \u0928\u093F\u092F\u094B\u0915\u094D\u0924\u093E \u0926\ + \u094D\u0935\u093E\u0930\u093E \u0928\u0939\u0940\u0902 \u0915\u0940 \u091C\ + \u093E\u090F\u0917\u0940" + C: "\u0939\u0921\u093C\u0924\u093E\u0932 \u0915\u0940 \u092A\u0930\u093F\u092D\ + \u093E\u0937\u093E \u092E\u0947\u0902 \u0935\u0947 \u0939\u0921\u093C\u0924\ + \u093E\u0932\u0947\u0902 \u0936\u093E\u092E\u093F\u0932 \u0928\u0939\u0940\ + \u0902 \u0939\u0948\u0902 \u091C\u093F\u0928\u092E\u0947\u0902 \u0926\u0938\ + \ \u0938\u0947 \u0915\u092E \u0915\u0930\u094D\u092E\u091A\u093E\u0930\u0940\ + \ \u0936\u093E\u092E\u093F\u0932 \u0939\u094B\u0902 \u092F\u093E \u090F\u0915\ + \ \u0926\u093F\u0928 \u0938\u0947 \u0915\u092E \u0938\u092E\u092F \u0924\u0915\ + \ \u091A\u0932\u0947" + D: "\u0909\u0928 \u0939\u092E\u0932\u094B\u0902 \u0915\u0940 \u0924\u0941\u0932\ + \u0928\u093E \u0915\u0930\u0928\u093E \u0915\u0920\u093F\u0928 \u0939\u0948\ + \ \u091C\u093F\u0928\u094D\u0939\u0947\u0902 \u0905\u0932\u0917-\u0905\u0932\ + \u0917 \u0924\u0930\u0940\u0915\u094B\u0902 \u0938\u0947 \u092E\u093E\u092A\ + \u093E \u0917\u092F\u093E \u0925\u093E" + input_correct_responses: + - A + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u0940 \u0939\u0921\ + \u093C\u0924\u093E\u0932 \u0915\u093E\u0930\u094D\u0930\u0935\u093E\u0908 \u092A\ + \u0930 \u0906\u0927\u093F\u0915\u093E\u0930\u093F\u0915 \u0906\u0902\u0915\u0921\ + \u093C\u094B\u0902 \u0938\u0947 \u091C\u0941\u0921\u093C\u0940 \u0938\u092E\u0938\ + \u094D\u092F\u093E \u0928\u0939\u0940\u0902 \u0939\u0948?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_sociology +tag: mmlu_hi_llama_social_sciences_tasks +task: mmlu_hi_llama_sociology +task_alias: sociology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_us_foreign_policy.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_us_foreign_policy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..dbf70d7299ed21bbbf67187dfc965155cbd9d8c5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_us_foreign_policy.yaml @@ -0,0 +1,138 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0907\u0938\u0928\u0947 \u0930\u093E\u091C\u0928\u0940\u0924\u093F\u0915\ + \ \u0905\u0930\u094D\u0925\u0935\u094D\u092F\u0935\u0938\u094D\u0925\u093E\ + \ \u0914\u0930 \u092A\u0942\u0902\u091C\u0940\u0935\u093E\u0926 \u0915\u0947\ + \ \u0905\u092E\u0947\u0930\u093F\u0915\u0940 \u092E\u0949\u0921\u0932 \u0915\ + \u0947 \u0938\u092E\u0930\u094D\u0925\u0928 \u0915\u094B \u0928\u0941\u0915\ + \u0938\u093E\u0928 \u092A\u0939\u0941\u0902\u091A\u093E\u092F\u093E" + B: "\u0907\u0938\u0928\u0947 \u0938\u0902\u0915\u091F \u0915\u094B \u092C\u0922\ + \u093C\u093E-\u091A\u0922\u093C\u093E\u0915\u0930 \u092A\u0947\u0936 \u0915\ + \u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0938\u0902\u092F\u0941\ + \u0915\u094D\u0924 \u0930\u093E\u091C\u094D\u092F \u0905\u092E\u0947\u0930\ + \u093F\u0915\u093E \u092A\u0930 \u0917\u0941\u0938\u094D\u0938\u093E \u092A\ + \u0948\u0926\u093E \u0915\u093F\u092F\u093E" + C: "\u0907\u0938\u0938\u0947 \u0930\u093E\u0937\u094D\u091F\u094D\u0930\u092A\ + \u0924\u093F \u0913\u092C\u093E\u092E\u093E \u0915\u0947 \u0928\u0947\u0924\ + \u0943\u0924\u094D\u0935 \u092E\u0947\u0902 \u0905\u092E\u0947\u0930\u093F\ + \u0915\u0940 \u0935\u0948\u0936\u094D\u0935\u093F\u0915 \u0928\u0947\u0924\ + \u0943\u0924\u094D\u0935 \u0915\u0947 \u0932\u093F\u090F \u0938\u092E\u0930\ + \u094D\u0925\u0928 \u092C\u0922\u093C\u093E" + D: "\u0907\u0938\u0938\u0947 \u0905\u092E\u0947\u0930\u093F\u0915\u0940 \u0921\ + \u0949\u0932\u0930 \u0915\u093E \u0935\u0948\u0936\u094D\u0935\u093F\u0915\ + \ \u0909\u092A\u092F\u094B\u0917 \u0915\u092E \u0939\u094B \u0917\u092F\u093E" + input_correct_responses: + - A + input_question: "2008 \u0915\u0947 \u0935\u093F\u0924\u094D\u0924\u0940\u092F\ + \ \u0938\u0902\u0915\u091F \u0928\u0947 \u0905\u092E\u0947\u0930\u093F\u0915\ + \u093E \u0915\u0940 \u0905\u0902\u0924\u0930\u094D\u0930\u093E\u0937\u094D\u091F\ + \u094D\u0930\u0940\u092F \u092A\u094D\u0930\u0924\u093F\u0937\u094D\u0920\u093E\ + \ \u0915\u094B \u0915\u0948\u0938\u0947 \u092A\u094D\u0930\u092D\u093E\u0935\ + \u093F\u0924 \u0915\u093F\u092F\u093E?" + - input_choice_list: + A: "\u0907\u0938\u0928\u0947 \u0930\u094B\u0915\u0925\u093E\u092E \u0915\u093E\ + \ \u0935\u0948\u0936\u094D\u0935\u0940\u0915\u0930\u0923 \u0915\u093F\u092F\ + \u093E\u0964" + B: "\u0907\u0938\u0928\u0947 \u0928\u093F\u092F\u0902\u0924\u094D\u0930\u0923\ + \ \u0915\u093E \u0938\u0948\u0928\u094D\u092F\u0940\u0915\u0930\u0923 \u0915\ + \u093F\u092F\u093E\u0964" + C: "\u0907\u0938\u092E\u0947\u0902 \u0939\u093E\u0907\u0921\u094D\u0930\u094B\ + \u091C\u0928 \u092C\u092E \u0915\u0947 \u0935\u093F\u0915\u093E\u0938 \u0915\ + \u093E \u0906\u0939\u094D\u0935\u093E\u0928 \u0915\u093F\u092F\u093E \u0917\ + \u092F\u093E\u0964" + D: "\u090A\u092A\u0930 \u0915\u0947 \u0938\u092D\u0940" + input_correct_responses: + - D + input_question: "\u090F\u0928\u090F\u0938\u0938\u0940-68 \u0928\u0947 \u0905\u092E\ + \u0947\u0930\u093F\u0915\u0940 \u0930\u0923\u0928\u0940\u0924\u093F \u0915\u094B\ + \ \u0915\u0948\u0938\u0947 \u092C\u0926\u0932\u093E?" + - input_choice_list: + A: "\u0906\u0924\u0902\u0915\u0935\u093E\u0926 \u0928\u0940\u0924\u093F." + B: "\u0906\u0930\u094D\u0925\u093F\u0915 \u0928\u0940\u0924\u093F\u0964" + C: "\u0935\u093F\u0926\u0947\u0936 \u0928\u0940\u0924\u093F\u0964" + D: "\u0905\u0902\u0924\u0930\u094D\u0930\u093E\u0937\u094D\u091F\u094D\u0930\ + \u0940\u092F \u0928\u0940\u0924\u093F." + input_correct_responses: + - C + input_question: "\u092E\u0941\u0916\u094D\u092F \u0930\u0942\u092A \u0938\u0947\ + \ \u0938\u0902\u092F\u0941\u0915\u094D\u0924 \u0930\u093E\u091C\u094D\u092F\ + \ \u0905\u092E\u0947\u0930\u093F\u0915\u093E \u0914\u0930 \u0936\u0947\u0937\ + \ \u0935\u093F\u0936\u094D\u0935 \u0915\u0947 \u092C\u0940\u091A \u0938\u0902\ + \u092C\u0902\u0927\u094B\u0902 \u0938\u0947 \u0938\u0902\u092C\u0902\u0927\u093F\ + \u0924 \u0928\u0940\u0924\u093F\u0917\u0924 \u0928\u093F\u0930\u094D\u0923\u092F\ + \u094B\u0902 \u0915\u0947 \u0915\u094D\u0937\u0947\u0924\u094D\u0930 \u0915\u094B\ + \ \u0915\u0939\u093E \u091C\u093E\u0924\u093E \u0939\u0948" + - input_choice_list: + A: "\u0930\u0915\u094D\u0937\u093E\u0924\u094D\u092E\u0915 \u092F\u0925\u093E\ + \u0930\u094D\u0925\u0935\u093E\u0926\u0940 \u0905\u0902\u0924\u0930\u094D\u0930\ + \u093E\u0937\u094D\u091F\u094D\u0930\u0940\u092F \u0938\u0902\u0938\u094D\u0925\ + \u093E\u0928\u094B\u0902 \u0915\u0940 \u092D\u0942\u092E\u093F\u0915\u093E\ + \ \u092A\u0930 \u0905\u0927\u093F\u0915 \u091C\u094B\u0930 \u0926\u0947\u0924\ + \u0947 \u0939\u0948\u0902" + B: "\u0930\u0915\u094D\u0937\u093E\u0924\u094D\u092E\u0915 \u092F\u0925\u093E\ + \u0930\u094D\u0925\u0935\u093E\u0926\u0940 \u092D\u094C\u0917\u094B\u0932\u093F\ + \u0915 \u0915\u093E\u0930\u0915\u094B\u0902 \u092A\u0930 \u0915\u092E \u091C\ + \u094B\u0930 \u0926\u0947\u0924\u0947 \u0939\u0948\u0902" + C: "\u0906\u0915\u094D\u0930\u093E\u092E\u0915 \u092F\u0925\u093E\u0930\u094D\ + \u0925\u0935\u093E\u0926\u0940 \u0930\u0915\u094D\u0937\u093E\u0924\u094D\u092E\ + \u0915 \u092F\u0925\u093E\u0930\u094D\u0925\u0935\u093E\u0926\u093F\u092F\u094B\ + \u0902 \u0915\u0940 \u0924\u0941\u0932\u0928\u093E \u092E\u0947\u0902 \u0930\ + \u093E\u0937\u094D\u091F\u094D\u0930\u0940\u092F \u0939\u093F\u0924 \u0915\ + \u094B \u0905\u0927\u093F\u0915 \u092A\u094D\u0930\u093E\u0925\u092E\u093F\ + \u0915\u0924\u093E \u0926\u0947\u0924\u0947 \u0939\u0948\u0902\u0964" + D: "\u0930\u0915\u094D\u0937\u093E\u0924\u094D\u092E\u0915 \u092F\u0925\u093E\ + \u0930\u094D\u0925\u0935\u093E\u0926\u0940 \u092E\u093E\u0928\u0924\u0947\ + \ \u0939\u0948\u0902 \u0915\u093F \u0930\u093E\u091C\u094D\u092F \u0938\u0941\ + \u0930\u0915\u094D\u0937\u093E \u0915\u094B \u0905\u0927\u093F\u0915\u0924\ + \u092E \u0915\u0930\u0928\u0947 \u0935\u093E\u0932\u0947 \u0939\u0948\u0902\ + , \u091C\u092C\u0915\u093F \u0906\u0915\u094D\u0930\u093E\u092E\u0915 \u092F\ + \u0925\u093E\u0930\u094D\u0925\u0935\u093E\u0926\u0940 \u092E\u093E\u0928\u0924\ + \u0947 \u0939\u0948\u0902 \u0915\u093F \u0930\u093E\u091C\u094D\u092F \u0936\ + \u0915\u094D\u0924\u093F \u0915\u094B \u0905\u0927\u093F\u0915\u0924\u092E\ + \ \u0915\u0930\u0928\u0947 \u0935\u093E\u0932\u0947 \u0939\u0948\u0902" + input_correct_responses: + - D + input_question: "\u0930\u093E\u091C\u094D\u092F \u0915\u0947 \u0935\u094D\u092F\ + \u0935\u0939\u093E\u0930 \u0915\u0940 \u0935\u094D\u092F\u093E\u0916\u094D\u092F\ + \u093E \u092E\u0947\u0902 \u0930\u0915\u094D\u0937\u093E\u0924\u094D\u092E\u0915\ + \ \u092F\u0925\u093E\u0930\u094D\u0925\u0935\u093E\u0926 \u0914\u0930 \u0906\ + \u0915\u094D\u0930\u093E\u092E\u0915 \u092F\u0925\u093E\u0930\u094D\u0925\u0935\ + \u093E\u0926 \u0915\u093F\u0938 \u092A\u094D\u0930\u0915\u093E\u0930 \u092D\u093F\ + \u0928\u094D\u0928 \u0939\u0948\u0902?" + - input_choice_list: + A: "\u0935\u0948\u0936\u094D\u0935\u0940\u0915\u0930\u0923 \u0928\u0947 \u0909\ + \u0928\u0915\u0947 \u091C\u0948\u0938\u0947 \u0932\u094B\u0917\u094B\u0902\ + \ \u0915\u094B \u092C\u0939\u0941\u0924 \u0905\u092E\u0940\u0930 \u092C\u0928\ + \u093E \u0926\u093F\u092F\u093E \u0925\u093E" + B: "\u0935\u0948\u0936\u094D\u0935\u0940\u0915\u0930\u0923 \u0938\u0947 \u0915\ + \u0947\u0935\u0932 \u0915\u0941\u091B \u0905\u092E\u0947\u0930\u093F\u0915\ + \u0940 \u0930\u093E\u091C\u094D\u092F\u094B\u0902, \u091C\u0948\u0938\u0947\ + \ \u0928\u094D\u092F\u0942\u092F\u0949\u0930\u094D\u0915, \u0915\u094B \u0932\ + \u093E\u092D \u0939\u0941\u0906" + C: "\u0909\u0926\u093E\u0930\u0935\u093E\u0926\u0940 \u0905\u092D\u093F\u091C\ + \u093E\u0924 \u0935\u0930\u094D\u0917 \u0928\u0947 \u0935\u0948\u0936\u094D\ + \u0935\u0940\u0915\u0930\u0923 \u0915\u094B \u092A\u094D\u0930\u094B\u0924\ + \u094D\u0938\u093E\u0939\u093F\u0924 \u0915\u093F\u092F\u093E \u0925\u093E\ + , \u091C\u092C\u0915\u093F '\u0938\u093E\u092E\u093E\u0928\u094D\u092F\ + \ \u0905\u092E\u0947\u0930\u093F\u0915\u093F\u092F\u094B\u0902' \u0928\ + \u0947 \u0907\u0938\u0915\u0947 \u0915\u093E\u0930\u0923 \u0905\u092A\u0928\ + \u0940 \u0928\u094C\u0915\u0930\u093F\u092F\u093E\u0901 \u0916\u094B \u0926\ + \u0940\u0902" + D: "\u0935\u0948\u0936\u094D\u0935\u0940\u0915\u0930\u0923 \u0928\u0947 \u0939\ + \u093E\u0928\u093F\u0915\u093E\u0930\u0915 \u0935\u094D\u092F\u093E\u092A\u093E\ + \u0930 \u092F\u0941\u0926\u094D\u0927\u094B\u0902 \u0915\u094B \u092A\u094D\ + \u0930\u094B\u0924\u094D\u0938\u093E\u0939\u093F\u0924 \u0915\u093F\u092F\u093E" + input_correct_responses: + - C + input_question: "2016 \u0915\u0947 \u0905\u092D\u093F\u092F\u093E\u0928 \u092E\ + \u0947\u0902 \u0921\u094B\u0928\u093E\u0932\u094D\u0921 \u091F\u094D\u0930\u092E\ + \u094D\u092A \u0928\u0947 \u0935\u0948\u0936\u094D\u0935\u0940\u0915\u0930\u0923\ + \ \u092A\u0930 \u0915\u0948\u0938\u0947 \u0939\u092E\u0932\u093E \u0915\u093F\ + \u092F\u093E?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_us_foreign_policy +tag: mmlu_hi_llama_social_sciences_tasks +task: mmlu_hi_llama_us_foreign_policy +task_alias: us_foreign_policy diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_virology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_virology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..253da784bef87e404acd73fb55c211abaf68e25d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_virology.yaml @@ -0,0 +1,95 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0915\u094D\u092F\u094B\u0902\u0915\u093F \u0907\u0928\u092E\u0947\u0902\ + \ \u0928\u094D\u092F\u0942\u0915\u094D\u0932\u093F\u0915 \u090F\u0938\u093F\ + \u0921 \u0928\u0939\u0940\u0902 \u0939\u094B\u0924\u093E" + B: "\u0909\u0928\u094D\u0939\u0947\u0902 \u090F\u0915 \u0938\u0939\u093E\u092F\ + \u0915 \u0935\u093E\u092F\u0930\u0938 \u0915\u0940 \u0906\u0935\u0936\u094D\ + \u092F\u0915\u0924\u093E \u0939\u0948" + C: "\u0915\u0947\u0935\u0932 \u0935\u093F\u092D\u093E\u091C\u093F\u0924 \u0915\ + \u094B\u0936\u093F\u0915\u093E\u0913\u0902 \u092E\u0947\u0902 \u092A\u094D\ + \u0930\u0924\u093F\u0915\u0943\u0924\u093F \u092C\u0928\u093E\u090F\u0901" + D: "\u092E\u0947\u091C\u092C\u093E\u0928 \u0917\u0941\u0923\u0938\u0942\u0924\ + \u094D\u0930\u094B\u0902 \u092E\u0947\u0902 \u090F\u0915\u0940\u0915\u0943\ + \u0924 \u0939\u094B \u0938\u0915\u0924\u093E \u0939\u0948" + input_correct_responses: + - A + input_question: "\u092A\u093E\u0930\u094D\u0935\u094B\u0935\u093E\u092F\u0930\u0938\ + \ \u0905\u0924\u094D\u092F\u0927\u093F\u0915 \u092A\u094D\u0930\u092D\u093E\u0935\ + \u0936\u093E\u0932\u0940 \u092A\u0930\u091C\u0940\u0935\u0940 \u0915\u094D\u092F\ + \u094B\u0902 \u0939\u0948\u0902?" + - input_choice_list: + A: "\u0928\u093E\u091C\u0941\u0915 \u0935\u093E\u092F\u0930\u0938 \u0905\u0915\ + \u094D\u0938\u0930 \u0905\u0902\u0926\u0930 \u0938\u0947 \u0906\u0930\u090F\ + \u0928\u090F \u0909\u0917\u0932\u0924\u0947 \u0939\u0941\u090F \u0926\u0947\ + \u0916\u0947 \u091C\u093E\u0924\u0947 \u0939\u0948\u0902" + B: "\u0932\u092E\u094D\u092C\u0947 \u0935\u093F\u0937\u093E\u0923\u0941" + C: "\u0932\u093F\u092B\u093E\u092B\u0947 \u0915\u0947 \u0938\u093E\u0925 \u0907\ + \u0915\u094B\u0938\u093E\u0939\u0947\u0921\u094D\u0930\u0932 \u0935\u093E\u092F\ + \u0930\u0938" + D: "\u092C\u0939\u0941\u0924 \u092C\u0921\u093C\u0947 \u0935\u093E\u092F\u0930\ + \u0938" + input_correct_responses: + - A + input_question: "\u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924\ + \ \u092E\u0947\u0902 \u0938\u0947 \u0915\u094C\u0928 \u0938\u093E \u092A\u0948\ + \u0930\u093E\u092E\u093E\u0907\u0915\u094D\u0938\u094B\u0935\u093E\u092F\u0930\ + \u0938 \u0915\u0940 \u0930\u0942\u092A\u093E\u0924\u094D\u092E\u0915 \u0935\u093F\ + \u0936\u0947\u0937\u0924\u093E \u0939\u0948\u0964" + - input_choice_list: + A: "\u0921\u0947\u091F\u093E \u0938\u0902\u0917\u094D\u0930\u0939\u0923" + B: "\u091C\u0948\u0935\u093F\u0915 \u0928\u092E\u0942\u0928\u094B\u0902 \u0915\ + \u0947 \u092D\u0902\u0921\u093E\u0930 \u0915\u0940 \u0938\u094D\u0925\u093E\ + \u092A\u0928\u093E" + C: "\u092A\u094D\u0930\u0924\u093F\u092D\u093E\u0917\u0940 \u0915\u0940 \u0930\ + \u0941\u091A\u093F" + D: "\u0915\u0930\u094D\u092E\u091A\u093E\u0930\u093F\u092F\u094B\u0902 \u0926\ + \u094D\u0935\u093E\u0930\u093E \u092A\u094D\u0930\u0936\u094D\u0928\u093E\u0935\ + \u0932\u0940 \u0915\u093E \u092A\u094D\u0930\u0936\u093E\u0938\u0928" + input_correct_responses: + - B + input_question: "\u090F\u092E\u090F\u0938\u0940\u090F\u0938 \u0938\u0947 \u0928\ + \u0947\u0938\u094D\u091F\u0947\u0921 \u0915\u0947\u0938-\u0915\u0902\u091F\u094D\ + \u0930\u094B\u0932 \u0905\u0927\u094D\u092F\u092F\u0928 \u0915\u0947 \u0905\u0928\ + \u0941\u092A\u094D\u0930\u092F\u094B\u0917 \u0915\u094B \u0938\u0941\u0935\u093F\ + \u0927\u093E\u091C\u0928\u0915 \u092C\u0928\u093E\u0928\u0947 \u0935\u093E\u0932\ + \u093E \u090F\u0915 \u092A\u094D\u0930\u092E\u0941\u0916 \u0915\u093E\u0930\u0915\ + \ \u0925\u093E:" + - input_choice_list: + A: "\u0935\u094D\u092F\u0935\u0939\u093E\u0930 \u092E\u0947\u0902 \u092C\u0926\ + \u0932\u093E\u0935" + B: "\u0935\u094D\u092F\u093E\u092A\u0915 \u0915\u0935\u0930\u0947\u091C" + C: "\u0935\u094D\u092F\u0935\u0939\u093E\u0930 \u0938\u093F\u0926\u094D\u0927\ + \u093E\u0902\u0924 \u0915\u093E \u092A\u094D\u0930\u092D\u093E\u0935\u0940\ + \ \u0909\u092A\u092F\u094B\u0917" + D: "\u0938\u0924\u0924 \u0935\u094D\u092F\u0935\u0939\u093E\u0930 \u092A\u0930\ + \u093F\u0935\u0930\u094D\u0924\u0928" + input_correct_responses: + - D + input_question: "\u0935\u094D\u092F\u0935\u0939\u093E\u0930\u093F\u0915 \u0939\ + \u0938\u094D\u0924\u0915\u094D\u0937\u0947\u092A \u0915\u093E \u0938\u092C\u0938\ + \u0947 \u092E\u0939\u0924\u094D\u0935\u092A\u0942\u0930\u094D\u0923 \u0932\u0915\ + \u094D\u0937\u094D\u092F \u0939\u0948:" + - input_choice_list: + A: "\u0938\u0940\u0930\u094B\u092A\u094D\u0930\u0935\u0932\u0947\u0902\u091F\ + \ \u090F\u091A\u0906\u0908\u0935\u0940 \u0938\u0902\u0915\u094D\u0930\u092E\ + \u093F\u0924 \u0935\u094D\u092F\u0915\u094D\u0924\u093F" + B: "\u0938\u0947\u0930\u094B\u0928\u093F\u0917\u0947\u091F\u093F\u0935" + C: "\u0938\u0947\u0930\u094B \u0915\u0928\u094D\u0935\u0930\u094D\u091F\u0930\ + \u094D\u0938" + D: "\u0909\u091A\u094D\u091A \u091C\u094B\u0916\u093F\u092E \u0935\u093E\u0932\ + \u0947 \u0938\u0947\u0930\u094B\u0928\u093F\u0917\u0947\u091F\u093F\u0935" + input_correct_responses: + - C + input_question: "\u090F\u0921\u094D\u0938 \u0914\u0930 \u092E\u0943\u0924\u094D\ + \u092F\u0941 \u0938\u0947 \u092C\u091A\u0928\u0947 \u0915\u093E \u0914\u0938\ + \u0924 \u0938\u092E\u092F \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\ + \u0924 \u0926\u094D\u0935\u093E\u0930\u093E \u0938\u094D\u0925\u093E\u092A\u093F\ + \u0924 \u0915\u093F\u092F\u093E \u0917\u092F\u093E \u0925\u093E:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_virology +tag: mmlu_hi_llama_other_tasks +task: mmlu_hi_llama_virology +task_alias: virology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_world_religions.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_world_religions.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2d95223adf291f70592a87529ff25ec2db954c6a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/mmlu_hi_world_religions.yaml @@ -0,0 +1,68 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0907\u0902\u0926\u094D\u0930\u0927\u0928\u0941\u0937" + B: "\u092A\u0930\u093F\u0936\u0941\u0926\u094D\u0927 \u0915\u0930\u0923" + C: "\u090F\u0915 \u092C\u0947\u091F\u093E" + D: "\u092C\u093E\u0930 \u092E\u093F\u0924\u094D\u091C\u093C\u0935\u093E\u0939" + input_correct_responses: + - B + input_question: "\u092F\u0939\u0942\u0926\u0940 \u092A\u0941\u0930\u0941\u0937\ + \u094B\u0902 \u0915\u0947 \u0932\u093F\u090F \u0935\u093E\u091A\u093E \u0915\ + \u093E \u091A\u093F\u0928\u094D\u0939 \u0915\u094D\u092F\u093E \u0939\u0948?" + - input_choice_list: + A: "\u0927\u0930\u094D\u092E" + B: "\u0938\u0902\u0918" + C: "\u092C\u0941\u0926\u094D\u0927" + D: "\u092C\u094B\u0927\u093F\u0938\u0924\u094D\u0935" + input_correct_responses: + - A + input_question: "\u092C\u094C\u0926\u094D\u0927 \u0927\u0930\u094D\u092E \u092E\ + \u0947\u0902 \u0926\u0942\u0938\u0930\u093E \u0930\u0924\u094D\u0928 \u0915\u094C\ + \u0928 \u0938\u093E \u0939\u0948?" + - input_choice_list: + A: "\u0936\u093E\u0902\u0917" + B: "\u091D\u094B\u0909" + C: "\u0939\u093E\u0928" + D: "\u091C\u093C\u093F\u092F\u093E" + input_correct_responses: + - B + input_question: "\u0915\u093F\u0938 \u0930\u093E\u091C\u0935\u0902\u0936 \u092E\ + \u0947\u0902 \u0928\u090F \u0936\u093E\u0938\u0915\u094B\u0902 \u0915\u094B\ + \ \u0935\u0948\u0927 \u092C\u0928\u093E\u0928\u0947 \u0915\u0947 \u0932\u093F\ + \u090F "\u0938\u094D\u0935\u0930\u094D\u0917 \u0915\u093E \u0906\u0926\u0947\ + \u0936" \u0935\u093F\u0915\u0938\u093F\u0924 \u0915\u093F\u092F\u093E \u0917\ + \u092F\u093E \u0925\u093E?" + - input_choice_list: + A: "\u0939\u094B\u0928\u0947\u0928" + B: "\u0924\u0928\u093E\u0915\u093E" + C: "\u0924\u094B\u0915\u0941\u0917\u093E\u0935\u093E" + D: "\u092E\u0940\u091C\u0940" + input_correct_responses: + - D + input_question: "\u0915\u093F\u0938 \u091C\u093E\u092A\u093E\u0928\u0940 \u0938\ + \u0930\u0915\u093E\u0930 \u0928\u0947 \u0938\u092E\u094D\u0930\u093E\u091F \u0914\ + \u0930 \u0915\u093E\u092E\u0940 \u0915\u0947 \u0938\u093E\u0925 \u0909\u0938\ + \u0915\u0947 \u0938\u0902\u092C\u0902\u0927\u094B\u0902 \u092A\u0930 \u0906\u0927\ + \u093E\u0930\u093F\u0924 \u090F\u0915 \u092A\u094D\u0930\u0915\u093E\u0930 \u0915\ + \u0947 \u0930\u093E\u0937\u094D\u091F\u094D\u0930\u0940\u092F \u092A\u0902\u0925\ + \ \u0915\u094B \u092C\u0922\u093C\u093E\u0935\u093E \u0926\u093F\u092F\u093E\ + ?" + - input_choice_list: + A: "\u0905\u0928\u0941\u0937\u094D\u0920\u093E\u0928 \u0917\u094D\u0930\u0902\ + \u0925" + B: "\u0926\u093E\u0930\u094D\u0936\u0928\u093F\u0915 \u0917\u094D\u0930\u0902\ + \u0925" + C: "\u092D\u091C\u0928" + D: "\u092E\u0942\u0932 \u0915\u0939\u093E\u0928\u093F\u092F\u093E\u0901" + input_correct_responses: + - B + input_question: "\u0909\u092A\u0928\u093F\u0937\u0926\u094B\u0902 \u0915\u093E\ + \ \u0935\u0930\u094D\u0923\u0928 \u0915\u0948\u0938\u0947 \u0915\u093F\u092F\ + \u093E \u091C\u093E \u0938\u0915\u0924\u093E \u0939\u0948?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_world_religions +tag: mmlu_hi_llama_humanities_tasks +task: mmlu_hi_llama_world_religions +task_alias: world_religions diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/utils.py b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..ce0608d4ba262d2c7ce16eb37847928601e848df --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_hi/utils.py @@ -0,0 +1,104 @@ +from functools import partial + +import datasets + + +def process_docs(dataset: datasets.Dataset, subtask) -> datasets.Dataset: + return dataset.filter( + lambda example: example["subtask_name"] == f"mmlu_hi_chat.{subtask}" + ) + + +process_docs_econometrics = partial(process_docs, subtask="econometrics") +process_docs_public_relations = partial(process_docs, subtask="public_relations") +process_docs_astronomy = partial(process_docs, subtask="astronomy") +process_docs_conceptual_physics = partial(process_docs, subtask="conceptual_physics") +process_docs_college_medicine = partial(process_docs, subtask="college_medicine") +process_docs_global_facts = partial(process_docs, subtask="global_facts") +process_docs_marketing = partial(process_docs, subtask="marketing") +process_docs_high_school_physics = partial(process_docs, subtask="high_school_physics") +process_docs_college_computer_science = partial( + process_docs, subtask="college_computer_science" +) +process_docs_business_ethics = partial(process_docs, subtask="business_ethics") +process_docs_miscellaneous = partial(process_docs, subtask="miscellaneous") +process_docs_moral_disputes = partial(process_docs, subtask="moral_disputes") +process_docs_sociology = partial(process_docs, subtask="sociology") +process_docs_high_school_geography = partial( + process_docs, subtask="high_school_geography" +) +process_docs_high_school_microeconomics = partial( + process_docs, subtask="high_school_microeconomics" +) +process_docs_world_religions = partial(process_docs, subtask="world_religions") +process_docs_nutrition = partial(process_docs, subtask="nutrition") +process_docs_high_school_computer_science = partial( + process_docs, subtask="high_school_computer_science" +) +process_docs_college_biology = partial(process_docs, subtask="college_biology") +process_docs_logical_fallacies = partial(process_docs, subtask="logical_fallacies") +process_docs_elementary_mathematics = partial( + process_docs, subtask="elementary_mathematics" +) +process_docs_virology = partial(process_docs, subtask="virology") +process_docs_prehistory = partial(process_docs, subtask="prehistory") +process_docs_college_physics = partial(process_docs, subtask="college_physics") +process_docs_computer_security = partial(process_docs, subtask="computer_security") +process_docs_machine_learning = partial(process_docs, subtask="machine_learning") +process_docs_electrical_engineering = partial( + process_docs, subtask="electrical_engineering" +) +process_docs_professional_psychology = partial( + process_docs, subtask="professional_psychology" +) +process_docs_high_school_biology = partial(process_docs, subtask="high_school_biology") +process_docs_high_school_statistics = partial( + process_docs, subtask="high_school_statistics" +) +process_docs_moral_scenarios = partial(process_docs, subtask="moral_scenarios") +process_docs_high_school_world_history = partial( + process_docs, subtask="high_school_world_history" +) +process_docs_college_mathematics = partial(process_docs, subtask="college_mathematics") +process_docs_high_school_government_and_politics = partial( + process_docs, subtask="high_school_government_and_politics" +) +process_docs_professional_accounting = partial( + process_docs, subtask="professional_accounting" +) +process_docs_jurisprudence = partial(process_docs, subtask="jurisprudence") +process_docs_high_school_european_history = partial( + process_docs, subtask="high_school_european_history" +) +process_docs_professional_medicine = partial( + process_docs, subtask="professional_medicine" +) +process_docs_high_school_mathematics = partial( + process_docs, subtask="high_school_mathematics" +) +process_docs_anatomy = partial(process_docs, subtask="anatomy") +process_docs_abstract_algebra = partial(process_docs, subtask="abstract_algebra") +process_docs_philosophy = partial(process_docs, subtask="philosophy") +process_docs_medical_genetics = partial(process_docs, subtask="medical_genetics") +process_docs_us_foreign_policy = partial(process_docs, subtask="us_foreign_policy") +process_docs_security_studies = partial(process_docs, subtask="security_studies") +process_docs_high_school_macroeconomics = partial( + process_docs, subtask="high_school_macroeconomics" +) +process_docs_human_sexuality = partial(process_docs, subtask="human_sexuality") +process_docs_high_school_us_history = partial( + process_docs, subtask="high_school_us_history" +) +process_docs_human_aging = partial(process_docs, subtask="human_aging") +process_docs_formal_logic = partial(process_docs, subtask="formal_logic") +process_docs_professional_law = partial(process_docs, subtask="professional_law") +process_docs_international_law = partial(process_docs, subtask="international_law") +process_docs_high_school_psychology = partial( + process_docs, subtask="high_school_psychology" +) +process_docs_management = partial(process_docs, subtask="management") +process_docs_high_school_chemistry = partial( + process_docs, subtask="high_school_chemistry" +) +process_docs_college_chemistry = partial(process_docs, subtask="college_chemistry") +process_docs_clinical_knowledge = partial(process_docs, subtask="clinical_knowledge") diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/_continuation_template_yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/_continuation_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..834b597015017992f9eb9f0a2a43829bb11ae87f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/_continuation_template_yaml @@ -0,0 +1,32 @@ +dataset_path: meta-llama/Llama-3.1-8B-Instruct-evals +dataset_name: Llama-3.1-8B-Instruct-evals__multilingual_mmlu_it__details +output_type: generate_until +test_split: latest +doc_to_text: "Given the following question and four candidate answers (A, B, C and D), choose the best answer.\nQuestion: {{input_question.strip()}}\nA. {{input_choice_list.A}}\nB. {{input_choice_list.B}}\nC. {{input_choice_list.C}}\nD. {{input_choice_list.D}}\nYour response should end with \"The best answer is [the_answer_letter]\" where the [the_answer_letter] is one of A, B, C or D." +gen_prefix: "The best answer is" +doc_to_target: "{{input_correct_responses[0]}}." +num_fewshot: 5 +metric_list: + - metric: exact_match + aggregation: mean + higher_is_better: true + ignore_case: true + ignore_punctuation: true + regexes_to_ignore: + - "\\$" + - "\\.$" +generation_kwargs: + do_sample: false + temperature: 0 + until: + - "." + max_gen_toks: 10 +filter_list: + - name: strict_match + filter: + - function: remove_whitespace + - function: take_first +metadata: + version: 1.0 +dataset_kwargs: + trust_remote_code: true diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/_mmlu_it_humanities.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/_mmlu_it_humanities.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ca3376a78dd63b7596241bfdd458fa0b0327bb78 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/_mmlu_it_humanities.yaml @@ -0,0 +1,11 @@ +group: mmlu_it_llama_humanities +group_alias: humanities +task: + - mmlu_it_llama_humanities_tasks +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: True + filter_list: [strict_match] +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/_mmlu_it_llama.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/_mmlu_it_llama.yaml new file mode 100644 index 0000000000000000000000000000000000000000..026873055574faf5118aefaff096ca37bcf2c80f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/_mmlu_it_llama.yaml @@ -0,0 +1,13 @@ +group: mmlu_it_llama +task: + - mmlu_it_llama_stem + - mmlu_it_llama_other + - mmlu_it_llama_social_sciences + - mmlu_it_llama_humanities +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: True + filter_list: [strict_match] +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/_mmlu_it_other.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/_mmlu_it_other.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9eedcba37bb689722fc2b5d5498a5ac220e07c86 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/_mmlu_it_other.yaml @@ -0,0 +1,11 @@ +group: mmlu_it_llama_other +group_alias: other +task: + - mmlu_it_llama_other_tasks +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: True + filter_list: [strict_match] +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/_mmlu_it_social_sciences.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/_mmlu_it_social_sciences.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c1d0e24e089cccc1484b29b3c835f164a62fcab7 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/_mmlu_it_social_sciences.yaml @@ -0,0 +1,11 @@ +group: mmlu_it_llama_social_sciences +group_alias: social sciences +task: + - mmlu_it_llama_social_sciences_tasks +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: True + filter_list: [strict_match] +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/_mmlu_it_stem.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/_mmlu_it_stem.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7cac9ae2e0abd37e3571360581de8d8fb16f691b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/_mmlu_it_stem.yaml @@ -0,0 +1,11 @@ +group: mmlu_it_llama_stem +group_alias: stem +task: + - mmlu_it_llama_stem_tasks +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: True + filter_list: [strict_match] +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_abstract_algebra.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_abstract_algebra.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c24e0f2613f61ca4f48b9f5278c34b42974973b6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_abstract_algebra.yaml @@ -0,0 +1,53 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: '0' + B: '1' + C: '2' + D: '3' + input_correct_responses: + - B + input_question: Trova tutto c in Z_3 tale che Z_3[x]/(x^2 + c) sia un campo. + - input_choice_list: + A: Vero vero + B: Falso, Falso + C: Vero falso + D: "Falsa verit\xE0" + input_correct_responses: + - B + input_question: "Dichiarazione 1 | Se aH \xE8 un elemento di un gruppo di fattori,\ + \ allora |aH| divide |a|. Dichiarazione 2 | Se H e K sono sottogruppi di G allora\ + \ HK \xE8 un sottogruppo di G." + - input_choice_list: + A: Vero vero + B: Falso, Falso + C: Vero falso + D: "Falsa verit\xE0" + input_correct_responses: + - C + input_question: Dichiarazione 1 | Ogni elemento di un gruppo genera un sottogruppo + ciclico del gruppo. Dichiarazione 2 | Il gruppo simmetrico S_10 ha 10 elementi. + - input_choice_list: + A: Vero vero + B: Falso, Falso + C: Vero falso + D: "Falsa verit\xE0" + input_correct_responses: + - A + input_question: "Dichiarazione 1| Ogni funzione da un insieme finito su se stessa\ + \ deve essere uno a uno. Dichiarazione 2 | Ogni sottogruppo di un gruppo abeliano\ + \ \xE8 abeliano." + - input_choice_list: + A: '0' + B: '3' + C: '12' + D: '30' + input_correct_responses: + - A + input_question: Trova la caratteristica dell'anello 2Z. +include: _continuation_template_yaml +process_docs: !function utils.process_docs_abstract_algebra +tag: mmlu_it_llama_stem_tasks +task: mmlu_it_llama_abstract_algebra +task_alias: abstract_algebra diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_anatomy.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_anatomy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4004f5b839e4eb29e89e45449db8a33225af6d19 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_anatomy.yaml @@ -0,0 +1,50 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Il primo arco faringeo + B: Il primo e il secondo arco faringeo + C: Il secondo arco faringeo + D: Il secondo e il terzo arco faringeo + input_correct_responses: + - D + input_question: "Qual \xE8 l'origine embriologica dell'osso ioide?" + - input_choice_list: + A: Il nervo sopraorbitario + B: Il nervo infraorbitario + C: Il nervo mentale + D: Nessuna delle precedenti + input_correct_responses: + - D + input_question: Quali di questi rami del nervo trigemino contengono processi motori + somatici? + - input_choice_list: + A: non hanno innervazione sensoriale. + B: sono separati da uno spazio di 2 mm. + C: estendersi nel collo. + D: sono costituiti da epitelio respiratorio. + input_correct_responses: + - C + input_question: La pleura + - input_choice_list: + A: overbite eccessivo degli incisivi laterali superiori. + B: overjet negativo degli incisivi centrali superiori. + C: eccesso di overjet degli incisivi laterali superiori. + D: eccesso di overjet degli incisivi centrali superiori. + input_correct_responses: + - C + input_question: "Nell'occlusione di Classe II Div 2 di Angle c'\xE8" + - input_choice_list: + A: Addominale + B: Craniale + C: Pleurico + D: Spinale + input_correct_responses: + - B + input_question: "Quale delle seguenti \xE8 la cavit\xE0 corporea che contiene\ + \ la ghiandola pituitaria?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_anatomy +tag: mmlu_it_llama_stem_tasks +task: mmlu_it_llama_anatomy +task_alias: anatomy diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_astronomy.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_astronomy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3dd12b848cd0751a858162df999fc9a6a26f06f2 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_astronomy.yaml @@ -0,0 +1,65 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Sarebbe pi\xF9 difficile dato che il camion \xE8 pi\xF9 pesante su Marte." + B: "Sarebbe pi\xF9 facile dato che il camion \xE8 pi\xF9 leggero su Marte." + C: "Sarebbe pi\xF9 difficile poich\xE9 il camion \xE8 pi\xF9 leggero su Marte." + D: Sarebbe lo stesso, non importa dove ti trovi. + input_correct_responses: + - D + input_question: "Stai spingendo un camion lungo una strada. Sarebbe pi\xF9 facile\ + \ accelerare questo camion su Marte? Perch\xE9? (Supponiamo che non vi sia attrito)" + - input_choice_list: + A: La cintura di Kuiper; le comete di breve periodo tendono a trovarsi nel piano + del sistema solare proprio come la fascia di Kuiper. + B: La cintura di Kuiper; le comete di breve periodo tendono a provenire da direzioni + casuali che indicano una distribuzione sferica delle comete chiamata fascia + di Kuiper. + C: La cintura degli asteroidi; le comete di breve periodo hanno periodi orbitali + simili a quelli degli asteroidi come Vesta e si trovano nel piano del sistema + solare proprio come la cintura degli asteroidi. + D: La nube di Oort; le comete di breve periodo tendono a trovarsi nel piano + del sistema solare proprio come la nube di Oort. + input_correct_responses: + - A + input_question: Da dove provengono la maggior parte delle comete di breve periodo + e come lo sappiamo? + - input_choice_list: + A: "10000 volte di pi\xF9" + B: "100 volte di pi\xF9" + C: "1000 volte di pi\xF9" + D: "10 volte di pi\xF9" + input_correct_responses: + - A + input_question: "Supponiamo che la pupilla del tuo occhio abbia un diametro di\ + \ 5 mm e che tu abbia un telescopio con un'apertura di 50 cm. Quanta pi\xF9\ + \ luce pu\xF2 raccogliere il telescopio rispetto al tuo occhio?" + - input_choice_list: + A: "Qui una volta si form\xF2 un pianeta, ma fu distrutto da una collisione\ + \ catastrofica." + B: In questa parte della nebulosa solare non c'era abbastanza materiale + per formare un pianeta. + C: C'era troppo materiale roccioso per formare un pianeta terrestre ma non + abbastanza materiale gassoso per formare un pianeta gioviano. + D: La risonanza con Giove ha impedito al materiale di riunirsi per formare un + pianeta. + input_correct_responses: + - D + input_question: "Perch\xE9 non esiste un pianeta dove si trova la fascia degli\ + \ asteroidi?" + - input_choice_list: + A: "Perch\xE9 la superficie \xE8 ricoperta da minerali fortemente ossidati ("arrugginiti")." + B: "Perch\xE9 l\u2019atmosfera disperde pi\xF9 luce alle lunghezze d\u2019onda\ + \ pi\xF9 blu trasmettendo principalmente luce rossa." + C: "Perch\xE9 Marte \xE8 ricoperto da antiche colate laviche di colore rosso." + D: "Perch\xE9 l'acqua che scorre sulla superficie di Marte ha alterato i\ + \ minerali superficiali diversi miliardi di anni fa." + input_correct_responses: + - A + input_question: "Perch\xE9 Marte \xE8 rosso?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_astronomy +tag: mmlu_it_llama_stem_tasks +task: mmlu_it_llama_astronomy +task_alias: astronomy diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_business_ethics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_business_ethics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..aaecd01bbd2eefdfdc800935c2d0bf1059e5cb4f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_business_ethics.yaml @@ -0,0 +1,64 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Esternalit\xE0, potere, indipendenza" + B: "Pubblicit\xE0, Risorse inconsistenti, Dipendenza reciproca" + C: "Pubblicit\xE0, potere, indipendenza" + D: "Esternalit\xE0, Potere, Dipendenza reciproca" + input_correct_responses: + - D + input_question: "Al di l\xE0 delle ragioni aziendali per impegnarsi nella RSI,\ + \ ci sono una serie di argomenti morali relativi al _______ negativo, al _______\ + \ che le aziende possiedono e al ________ delle imprese e della societ\xE0." + - input_choice_list: + A: "Responsabilit\xE0 sociale delle imprese" + B: "Gestione dell\u2019etica aziendale" + C: "Sostenibilit\xE0" + D: Gestione ambientale + input_correct_responses: + - B + input_question: "_______ \xE8 il tentativo diretto di gestire in modo formale\ + \ o informale questioni o problemi etici, attraverso politiche, pratiche e programmi\ + \ specifici." + - input_choice_list: + A: Esterno, limitato, indipendente + B: Dentro, limitato, a intermittenza + C: Fuori, Illimitato, A intermittenza + D: Dentro, Illimitato, Indipendente + input_correct_responses: + - A + input_question: "Per garantire l'indipendenza dei consiglieri non esecutivi,\ + \ \xE8 possibile adottare una serie di misure, tra cui la nomina di non esecutivi\ + \ provenienti da _______ la societ\xE0, la nomina per un periodo di _________\ + \ nonch\xE9 la nomina a _________." + - input_choice_list: + A: Azione diretta non violenta, Azione diretta violenta, Azione indiretta, Boicottaggio + B: Azione indiretta, Azione strumentale, Azione diretta non violenta, Campagna + di informazione + C: Azione indiretta, Azione diretta violenta, Azione diretta non violenta Boicottaggio + D: Azione diretta non violenta, Azione strumentale, Azione indiretta, Campagna + di informazione + input_correct_responses: + - C + input_question: "Tre tattiche contrastanti che le organizzazioni della societ\xE0\ + \ civile possono adottare per raggiungere i propri obiettivi sono ________,\ + \ che in genere implica ricerca e comunicazione, ________, che pu\xF2 comportare\ + \ l'attacco fisico alle operazioni di un'azienda o ________, che spesso\ + \ implica una qualche forma di _______." + - input_choice_list: + A: Buycott, boicottaggi, tecnologia Blockchain, donazioni di beneficenza + B: Buycott, boicottaggi, tecnologia digitale, aumento delle vendite + C: Boicottaggi, Buyalls, tecnologia Blockchain, donazioni di beneficenza + D: Boicottaggi, buycott, tecnologia digitale, aumento delle vendite + input_correct_responses: + - D + input_question: "A differenza di _______, _______ mira a premiare il comportamento\ + \ favorevole delle aziende. Il successo di tali campagne \xE8 stato incrementato\ + \ attraverso l'uso di ___________, che consente alle campagne di facilitare\ + \ l'azienda nel raggiungimento di _________." +include: _continuation_template_yaml +process_docs: !function utils.process_docs_business_ethics +tag: mmlu_it_llama_other_tasks +task: mmlu_it_llama_business_ethics +task_alias: business_ethics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_clinical_knowledge.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_clinical_knowledge.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ec296d8136482f98ce885b41f7b639e77fd422d6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_clinical_knowledge.yaml @@ -0,0 +1,54 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: ATP. + B: ADP. + C: fosfocreatina. + D: fosforilazione ossidativa. + input_correct_responses: + - A + input_question: "L\u2019energia per tutte le forme di contrazione muscolare \xE8\ + \ fornita da:" + - input_choice_list: + A: I cateteri maschili e femminili sono di colori diversi. + B: "I cateteri maschili sono pi\xF9 lunghi dei cateteri femminili." + C: "I cateteri maschili sono pi\xF9 grandi dei cateteri femminili." + D: "I cateteri femminili sono pi\xF9 lunghi dei cateteri maschili." + input_correct_responses: + - B + input_question: "Qual \xE8 la differenza tra un catetere maschile e uno femminile?" + - input_choice_list: + A: "L'abduzione del pollice \xE8 fornita dalla radice spinale T2" + B: "L'opposizione del pollice da parte dell'opponens policis \xE8 fornita\ + \ dalla radice spinale T1" + C: "L'adduzione delle dita \xE8 fornita dal nervo mediano" + D: "Il rapimento delle dita \xE8 mediato dagli interossei palmari" + input_correct_responses: + - B + input_question: "Nella valutazione della funzione della mano quale delle seguenti\ + \ affermazioni \xE8 vera?" + - input_choice_list: + A: '4' + B: '3' + C: '2' + D: '1' + input_correct_responses: + - C + input_question: "Quanti tentativi si dovrebbero fare per incannulare un paziente\ + \ prima di passare il lavoro a un collega pi\xF9 anziano, secondo le conoscenze\ + \ mediche del 2020?" + - input_choice_list: + A: glicogeno a glucosio-1-fosfato. + B: glicogeno o glucosio in fruttosio. + C: glicogeno o glucosio a piruvato o lattato. + D: glicogeno o glucosio a piruvato o acetil CoA. + input_correct_responses: + - C + input_question: "La glicolisi \xE8 il nome dato al percorso che comporta la conversione\ + \ di:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_clinical_knowledge +tag: mmlu_it_llama_other_tasks +task: mmlu_it_llama_clinical_knowledge +task_alias: clinical_knowledge diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_college_biology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_college_biology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9d43f275dd50f9d6b947feff26f4f3412dd67c8c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_college_biology.yaml @@ -0,0 +1,58 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Possiedono un esoscheletro composto principalmente da peptidoglicano. + B: Possiedono un sistema circolatorio aperto con un cuore dorsale. + C: Sono membri di un phylum biologicamente fallito, incapace di sfruttare diversi + habitat e fonti di nutrimento. + D: Sono privi di appendici accoppiate e articolate. + input_correct_responses: + - B + input_question: Quale delle seguenti rappresenta un'affermazione accurata + riguardo agli artropodi? + - input_choice_list: + A: 1/400 + B: 19/400 + C: 20/400 + D: 38/400 + input_correct_responses: + - D + input_question: "In una data popolazione, 1 persona su 400 ha un cancro causato\ + \ da un allele completamente recessivo, b. Supponendo che la popolazione sia\ + \ in equilibrio di Hardy-Weinberg, quale delle seguenti \xE8 la percentuale\ + \ attesa di individui portatori dell'allele b ma che non si prevede sviluppino\ + \ il cancro?" + - input_choice_list: + A: l'uomo e l'uccello sono specie polifiletiche + B: "l'evoluzione di un essere umano e di un uccello \xE8 convergente" + C: l'umano e l'uccello appartengono a un clade + D: l'uomo e l'uccello si sono sviluppati per analogia + input_correct_responses: + - C + input_question: La presenza di strutture omologhe in due organismi diversi, come + l'omero nell'arto anteriore di un essere umano e di un uccello, lo indica + - input_choice_list: + A: una pompa pressione-flusso dipendente dall'ATP + B: "un gradiente potenziale della pressione dell\u2019acqua" + C: traspirazione + D: diffusione apoplastica + input_correct_responses: + - B + input_question: "Secondo il modello pressione-flusso del movimento del contenuto\ + \ del floema, il movimento del fotosintetato dalla sorgente al pozzo \xE8 guidato\ + \ da" + - input_choice_list: + A: Telomeri + B: Centromeri + C: Nucleosomi + D: Spliceosomi + input_correct_responses: + - B + input_question: Quale dei seguenti contiene sequenze di DNA necessarie per la + segregazione dei cromosomi nella mitosi e nella meiosi? +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_biology +tag: mmlu_it_llama_stem_tasks +task: mmlu_it_llama_college_biology +task_alias: college_biology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_college_chemistry.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_college_chemistry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f631901b732bfa2aa17aefdf9de9a38276f49ac7 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_college_chemistry.yaml @@ -0,0 +1,59 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Lo stato di ossidazione pi\xF9 comune per gli elementi lantanidi \xE8 +3." + B: I complessi di lantanidi hanno spesso numeri di coordinazione elevati (> + 6). + C: Tutti gli elementi lantanidi reagiscono con l'acido acquoso per liberare + idrogeno. + D: I raggi atomici degli elementi lantanidi aumentano nel periodo da La a Lu. + input_correct_responses: + - D + input_question: "Quale delle seguenti affermazioni sugli elementi lantanidi NON\ + \ \xE8 vera?" + - input_choice_list: + A: 1,0 ml + B: 10 ml + C: 20 ml + D: 50 ml + input_correct_responses: + - C + input_question: Un campione di 0,217 g di HgO (massa molare = 217 g) reagisce + con gli ioni ioduro in eccesso secondo la reazione mostrata sopra. La titolazione + della soluzione risultante richiede quanti ml di HCl 0,10 M per raggiungere + il punto equivalente? + - input_choice_list: + A: '4' + B: '3' + C: '6' + D: '24' + input_correct_responses: + - A + input_question: "Prevedere il numero di linee nello spettro EPR di una soluzione\ + \ di radicale metilico marcato con 13C (13CH3\u2022), presupponendo che le linee\ + \ non si sovrappongano." + - input_choice_list: + A: un acido + B: una base + C: un catalizzatore + D: un agente riducente + input_correct_responses: + - D + input_question: "3 Cl\u2212(aq) + 4 CrO_4^2\u2212(aq) + 23 H+(aq) \u2192 3 HClO2(aq)\ + \ + 4 Cr3+(aq) + 10 H2O(l). Nella reazione mostrata sopra, Cl\u2212(aq) si comporta\ + \ come" + - input_choice_list: + A: PbH4 < SnH4 < GeH4 < SiH4 < CH4 + B: PbH4 < SnH4 < CH4 < GeH4 < SiH4 + C: CH4 < SiH4 < GeH4 < SnH4 < PbH4 + D: CH4 < PbH4 < GeH4 < SnH4 < SiH4 + input_correct_responses: + - A + input_question: "Quale delle seguenti elenca gli idruri degli elementi del gruppo\ + \ 14 in ordine di stabilit\xE0 termica, dal pi\xF9 basso al pi\xF9 alto?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_chemistry +tag: mmlu_it_llama_stem_tasks +task: mmlu_it_llama_college_chemistry +task_alias: college_chemistry diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_college_computer_science.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_college_computer_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..47f9c7e5150261c2b97a8dfa1bdcb0cf5f3ba486 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_college_computer_science.yaml @@ -0,0 +1,81 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + 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 + input_correct_responses: + - D + input_question: "Quale delle seguenti espressioni regolari \xE8 equivalente a\ + \ (descrive lo stesso insieme di stringhe di) (a* + b)*(c + d)?" + - input_choice_list: + A: '5' + B: '6' + C: '7' + D: '8' + input_correct_responses: + - B + input_question: "Una determinata macchina RISC in pipeline ha 8 registri di uso\ + \ generale R0, R1, . . . , R7 e supporta le seguenti operazioni. AGGIUNGI Rs1,\ + \ Rs2, Rd Somma Rs1 a Rs2 e metti la somma in Rd MUL Rs1, Rs2, Rd Moltiplica\ + \ Rs1 per Rs2 e metti il prodotto in Rd Un'operazione normalmente richiede\ + \ un ciclo; tuttavia, un'operazione richiede due cicli se produce un risultato\ + \ richiesto dall'operazione immediatamente successiva in una sequenza di\ + \ operazioni. Considera l'espressione AB + ABC + BC, dove le variabili A,\ + \ B, C si trovano nei registri R0, R1, R2. Se il contenuto di questi tre registri\ + \ non deve essere modificato, qual \xE8 il numero minimo di cicli di clock richiesti\ + \ per una sequenza di operazioni che calcola il valore di AB + ABC + BC?" + - input_choice_list: + A: I solo + B: Solo II + C: Solo III + D: I, II e III + input_correct_responses: + - D + input_question: "Il modello di progettazione Singleton viene utilizzato per garantire\ + \ che sia possibile istanziare solo una singola istanza di una classe. Quale\ + \ delle seguenti affermazioni \xE8 (sono) vera per questo modello di progettazione?\ + \ I. La classe Singleton ha un metodo factory statico per fornire la sua istanza.\ + \ II. La classe Singleton pu\xF2 essere una sottoclasse di un'altra classe.\ + \ III. La classe Singleton ha un costruttore privato." + - input_choice_list: + A: '5' + B: '6' + C: '7' + D: '9' + input_correct_responses: + - D + input_question: "Un compilatore genera codice per la seguente istruzione di assegnazione.\ + \ G := (A + B) * C - (D + E) * F La macchina target ha un singolo accumulatore\ + \ e un set di istruzioni a indirizzo singolo costituito da istruzioni caricare,\ + \ memorizzare, aggiungere, sottrarre e moltiplicare. Per le operazioni aritmetiche,\ + \ l'operando sinistro viene prelevato dall'accumulatore e il risultato\ + \ appare nell'accumulatore. Il minor numero possibile di istruzioni nel\ + \ codice risultante \xE8" + - input_choice_list: + A: 1/50 + B: 1/27 + C: 1/25 + D: 27/2 + input_correct_responses: + - B + input_question: "Consideriamo un progetto di computer in cui pi\xF9 processori,\ + \ ciascuno con una memoria cache privata, condividono la memoria globale utilizzando\ + \ un singolo bus. Questo bus \xE8 la risorsa critica del sistema. Ogni processore\ + \ pu\xF2 eseguire un'istruzione ogni 500 nanosecondi purch\xE9 i riferimenti\ + \ di memoria siano soddisfatti dalla cache locale. Quando si verifica un errore\ + \ nella cache, il processore viene ritardato di altri 2.000 nanosecondi. Durante\ + \ la met\xE0 di questo ritardo aggiuntivo, l'autobus \xE8 dedicato a servire\ + \ la cache miss. Durante l'altra met\xE0, il processore non pu\xF2 continuare,\ + \ ma il bus \xE8 libero di soddisfare le richieste di altri processori. In media,\ + \ ogni istruzione richiede 2 riferimenti di memoria. In media, gli errori di\ + \ cache si verificano nell'1% dei riferimenti. Quale percentuale della capacit\xE0\ + \ del bus consumerebbe un singolo processore, ignorando i ritardi dovuti alla\ + \ concorrenza di altri processori?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_computer_science +tag: mmlu_it_llama_stem_tasks +task: mmlu_it_llama_college_computer_science +task_alias: college_computer_science diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_college_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_college_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4bb740ddd2733d5f040979ebdd24e0663634b8c2 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_college_mathematics.yaml @@ -0,0 +1,64 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: ST = 0 + B: ST = T + C: ST = ST + D: "ST - TS \xE8 la mappa identitaria di V su se stessa." + input_correct_responses: + - D + input_question: "Sia V l'insieme di tutti i polinomi reali p(x). Siano definite\ + \ le trasformazioni T, S su V da T:p(x) -> xp(x) e S:p(x) -> p'(x)\ + \ = d/dx p(x), e si interpreti (ST) (p(x)) come S(T(p(x))). Quale delle seguenti\ + \ affermazioni \xE8 vera?" + - input_choice_list: + A: '2' + B: 2 - e^-2 + C: 2+e^-2 + D: 2+e^-4 + input_correct_responses: + - D + input_question: "Un serbatoio contiene inizialmente una soluzione salina composta\ + \ da 3 grammi di sale disciolti in 100 litri di acqua. Nel serbatoio viene spruzzata\ + \ una soluzione salina contenente 0,02 grammi di sale per litro d'acqua\ + \ ad una velocit\xE0 di 4 litri al minuto. La soluzione spruzzata viene continuamente\ + \ miscelata con la soluzione salina contenuta nel serbatoio e la miscela fuoriesce\ + \ dal serbatoio ad una velocit\xE0 di 4 litri al minuto. Se la miscelazione\ + \ \xE8 istantanea, quanti grammi di sale ci sono nel serbatoio dopo che sono\ + \ trascorsi 100 minuti?" + - input_choice_list: + A: I solo + B: Solo II + C: Solo III + D: Solo II e III + input_correct_responses: + - B + input_question: "Sia A una matrice 2x2 reale. Quale delle seguenti affermazioni\ + \ deve essere vera? I. Tutte le voci di A^2 sono non negative. II. Il determinante\ + \ di A^2 non \xE8 negativo. III. Se A ha due autovalori distinti, allora A^2\ + \ ha due autovalori distinti." + - input_choice_list: + A: '-11' + B: '0' + C: '11' + D: 33/2 + input_correct_responses: + - C + input_question: "Supponiamo che f(1 + x) = f(x) per ogni x reale. Se f \xE8 un\ + \ polinomio e f(5) = 11, allora f(15/2)" + - input_choice_list: + A: '-5' + B: '-4' + C: '-3' + D: '-2' + input_correct_responses: + - B + input_question: "Sia A l'insieme di tutte le coppie ordinate di interi (m,\ + \ n) tali che 7m + 12n = 22. Qual \xE8 il numero negativo pi\xF9 grande nell'insieme\ + \ B = {m + n : (m, n) \\in A}?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_mathematics +tag: mmlu_it_llama_stem_tasks +task: mmlu_it_llama_college_mathematics +task_alias: college_mathematics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_college_medicine.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_college_medicine.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0ae73e8f690243c961e53ac8ebb4a5cdc781435e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_college_medicine.yaml @@ -0,0 +1,60 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: tramite trasportatori di proteine chiamati GLUT4. + B: solo in presenza di insulina. + C: tramite esochinasi. + D: tramite trasportatori dell'acido monocarbilico. + input_correct_responses: + - A + input_question: 'Il glucosio viene trasportato nella cellula muscolare:' + - input_choice_list: + A: Il glicogeno muscolare viene scomposto enzimaticamente in glucosio-1-fosfato + B: "I corridori di resistenza d'\xE9lite hanno un'alta percentuale di\ + \ fibre di tipo I nei muscoli delle gambe" + C: "Il glicogeno epatico \xE8 importante nel mantenimento della concentrazione\ + \ di glucosio nel sangue" + D: "L\u2019insulina promuove l\u2019assorbimento del glucosio da parte di tutti\ + \ i tessuti del corpo" + input_correct_responses: + - D + input_question: "Quale delle seguenti non \xE8 un'affermazione vera?" + - input_choice_list: + A: Tutti i discendenti dal lato materno avranno il disturbo. + B: In questa famiglia le femmine saranno colpite circa il doppio rispetto ai + maschi. + C: Tutte le figlie di un maschio affetto saranno colpite. + D: "Ci sar\xE0 una distribuzione equa dei maschi e delle femmine colpiti." + input_correct_responses: + - C + input_question: "In un test genetico su un neonato, viene rilevata una rara malattia\ + \ genetica che ha una trasmissione recessiva legata all'X. Quale delle seguenti\ + \ affermazioni \xE8 probabilmente vera riguardo all'albero genealogico di\ + \ questo disturbo?" + - input_choice_list: + A: Aumento della temperatura, aumento delle moli di gas + B: Aumento della temperatura, aumento del volume + C: Diminuzione del volume, diminuzione della temperatura + D: Diminuzione delle moli di gas, aumento del volume + input_correct_responses: + - A + input_question: "Un insegnante di scienze di una scuola superiore riempie una\ + \ bottiglia da 1 litro con azoto puro e sigilla il coperchio. La pressione \xE8\ + \ di 1,70 atm e la temperatura ambiente \xE8 di 25\xB0C. Quali due variabili\ + \ aumenteranno entrambe la pressione del sistema, se tutte le altre variabili\ + \ rimangono costanti?" + - input_choice_list: + A: debolezza muscolare. + B: aumento di massa corporea. + C: crampi muscolari. + D: perdita di elettroliti. + input_correct_responses: + - B + input_question: "Un effetto collaterale atteso dell'integrazione di creatina\ + \ \xE8:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_medicine +tag: mmlu_it_llama_other_tasks +task: mmlu_it_llama_college_medicine +task_alias: college_medicine diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_college_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_college_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..121855ad4e536ef59ed8e2c95e2adc4cd6ca7582 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_college_physics.yaml @@ -0,0 +1,62 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: '4' + B: '5' + C: '6' + D: '20' + input_correct_responses: + - A + input_question: "Un telescopio rifrattore \xE8 formato da due lenti convergenti\ + \ separate da 100 cm. La lente dell'oculare ha una lunghezza focale di 20\ + \ cm. L'ingrandimento angolare del telescopio \xE8" + - input_choice_list: + A: Temperatura costante + B: Volume costante + C: Pressione costante + D: Adiabatico + input_correct_responses: + - B + input_question: "Per quale dei seguenti processi termodinamici l'aumento dell'energia\ + \ interna di un gas ideale \xE8 uguale al calore ceduto al gas?" + - input_choice_list: + A: 2,4 V + B: 3,3 V + C: 4,5 V + D: 5,7 V + input_correct_responses: + - A + input_question: "Un'estremit\xE0 di un filo di nichelcromo di lunghezza 2L\ + \ e area di sezione trasversale A \xE8 collegata a un'estremit\xE0 di un\ + \ altro filo di nichelcromo di lunghezza L e area di sezione trasversale 2A.\ + \ Se l'estremit\xE0 libera del filo pi\xF9 lungo ha un potenziale elettrico\ + \ di 8,0 volt e l'estremit\xE0 libera del filo pi\xF9 corto ha un potenziale\ + \ elettrico di 1,0 volt, il potenziale alla giunzione dei due fili \xE8 quasi\ + \ uguale a" + - input_choice_list: + A: '4' + B: '5' + C: '6' + D: '20' + input_correct_responses: + - A + input_question: "Un telescopio rifrattore \xE8 formato da due lenti convergenti\ + \ separate da 100 cm. La lente dell'oculare ha una lunghezza focale di 20\ + \ cm. L'ingrandimento angolare del telescopio \xE8" + - input_choice_list: + A: carica + B: massa + C: energia e slancio + D: numero leptonico + input_correct_responses: + - D + input_question: "Il muone decade con una vita caratteristica di circa 10^-6 secondi\ + \ in un elettrone, un neutrino muonico e un antineutrino elettronico. Al muone\ + \ \xE8 vietato decadere in un elettrone e in un solo neutrino dalla legge di\ + \ conservazione" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_physics +tag: mmlu_it_llama_stem_tasks +task: mmlu_it_llama_college_physics +task_alias: college_physics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_computer_security.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_computer_security.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1d4e1e1685a191a441502c43fb81d495b8564d85 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_computer_security.yaml @@ -0,0 +1,54 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: 160 bit + B: 512 bit + C: 628 bit + D: 820 bit + input_correct_responses: + - A + input_question: SHA-1 ha un digest del messaggio + - input_choice_list: + A: "IM \u2013 Trojan" + B: Trojan backdoor + C: Downloader di trojan + D: Trojan di riscatto + input_correct_responses: + - D + input_question: "_____________ pu\xF2 modificare i dati sul tuo sistema, in modo\ + \ che il tuo sistema non funzioni correttamente o non sia pi\xF9 possibile accedere\ + \ a dati specifici, o potrebbe persino chiedere un riscatto per concederti l'accesso." + - input_choice_list: + A: '"Hackerare" l'etica in modo da giustificare un comportamento + egoistico non intenzionale' + B: "Sistemi di hacking (ad esempio durante i penetration test) per esporre le\ + \ vulnerabilit\xE0 in modo che possano essere riparate, anzich\xE9 sfruttate" + C: Hacking nei sistemi gestiti da coloro con la cui etica non sei d'accordo + D: Un termine gergale per lo sviluppo rapido di software, ad esempio, come parte + degli hackathon + input_correct_responses: + - B + input_question: "Cos\u2019\xE8 l\u2019hacking etico?" + - input_choice_list: + A: sovrascrivendo le chiavi crittografiche in memoria + B: una sorta di iniezione di codice + C: una lettura al di fuori dei limiti di un buffer + D: un attacco di stringa di formato + input_correct_responses: + - C + input_question: "Lo sfruttamento del bug Heartbleed \xE8 consentito" + - input_choice_list: + A: Rete infestata + B: World Wide Web + C: Rete di superficie + D: Deep Web + input_correct_responses: + - D + input_question: "Il ____________ \xE8 tutto ci\xF2 che il tuo motore di ricerca\ + \ non pu\xF2 cercare." +include: _continuation_template_yaml +process_docs: !function utils.process_docs_computer_security +tag: mmlu_it_llama_stem_tasks +task: mmlu_it_llama_computer_security +task_alias: computer_security diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_conceptual_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_conceptual_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..19e532200e61280062f0a9485412cb686accb6f3 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_conceptual_physics.yaml @@ -0,0 +1,53 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: meno + B: "Di pi\xF9" + C: lo stesso + D: zero + input_correct_responses: + - A + input_question: Rispetto alla massa di un atomo di uranio sottoposto a fissione, + le masse combinate dei prodotti dopo la fissione sono + - input_choice_list: + A: spazio e tempo. + B: un gemello viaggiante e un gemello casalingo. + C: "gravit\xE0 e accelerazione." + D: massa ed energia. + input_correct_responses: + - C + input_question: Le cose che sono equivalenti secondo il principio di equivalenza + lo sono + - input_choice_list: + A: convertito in una frequenza diversa + B: deflessione + C: interferenza + D: polarizzazione + input_correct_responses: + - C + input_question: I colori in una bolla di sapone risultano dalla luce + - input_choice_list: + A: lo stesso + B: maggiore + C: meno + D: "maggiore o minore a seconda della velocit\xE0 del vento" + input_correct_responses: + - B + input_question: "Un modellino di aeroplano vola pi\xF9 lentamente quando vola\ + \ controvento e pi\xF9 velocemente quando il vento \xE8 alle sue spalle. Quando\ + \ lanciato ad angolo retto rispetto al vento, con vento trasversale la sua velocit\xE0\ + \ al suolo \xE8 rispetto al volo in aria ferma" + - input_choice_list: + A: Idrogeno + B: Ferro + C: Uranio + D: Lo stesso in ciascuno + input_correct_responses: + - A + input_question: Quale di questi tre elementi ha la massa maggiore per nucleone? +include: _continuation_template_yaml +process_docs: !function utils.process_docs_conceptual_physics +tag: mmlu_it_llama_stem_tasks +task: mmlu_it_llama_conceptual_physics +task_alias: conceptual_physics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_econometrics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_econometrics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f92edf9e0c492efbb92a621f9a23577c75c2361a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_econometrics.yaml @@ -0,0 +1,64 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Alla fine morirai + B: Perseverare indefinitamente + C: Crescere in modo esponenziale + D: Non verificarsi mai + input_correct_responses: + - A + input_question: Per un processo autoregressivo stazionario, gli shock lo faranno + - input_choice_list: + A: 0,2 + B: '0.4' + C: 0,5 + D: 0,33 + input_correct_responses: + - D + input_question: "Consideriamo il seguente modello AR(1) con i disturbi aventi\ + \ media nulla e varianza unitaria yt = 0,2 + 0,4 yt-1 + ut La media (incondizionata)\ + \ di y sar\xE0 data da" + - input_choice_list: + A: Solo (ii) e (iv). + B: Solo (i) e (iii). + C: solo (i), (ii) e (iii). + D: (i), (ii), (iii) e (iv) + input_correct_responses: + - C + input_question: "Supponiamo che ad una statistica test sia associato un valore\ + \ p pari a 0,08. Quale delle seguenti affermazioni \xE8 vera? (i) Se la dimensione\ + \ del test fosse esattamente l\u20198%, saremmo indifferenti tra rifiutare e\ + \ non rifiutare l\u2019ipotesi nulla (ii) Il valore nullo verrebbe rifiutato\ + \ se venisse utilizzata una dimensione del test del 10% (iii) Il valore nullo\ + \ non verrebbe rifiutato essere rifiutato se fosse utilizzata una dimensione\ + \ del test dell'1%. (iv) Il valore nullo verrebbe rifiutato se fosse utilizzata\ + \ una dimensione del test del 5%." + - input_choice_list: + A: "Sar\xE0 di parte" + B: "Sar\xE0 incoerente" + C: "Sar\xE0 inefficiente" + D: Tutti i punti (a), (b) e (c) saranno veri. + input_correct_responses: + - C + input_question: "Quali sarebbero allora le conseguenze per lo stimatore OLS se\ + \ l\u2019eteroschedasticit\xE0 fosse presente in un modello di regressione ma\ + \ venisse ignorata?" + - input_choice_list: + A: 1 ritardo + B: 2 ritardi + C: 3 ritardi + D: 4 ritardi + input_correct_responses: + - C + input_question: "Supponiamo ora che un ricercatore desideri utilizzare criteri\ + \ informativi per determinare la lunghezza di ritardo ottimale per un VAR. Sono\ + \ disponibili 500 osservazioni per il VAR bivariato e i valori del determinante\ + \ della matrice di varianza-covarianza dei residui sono 0,0336, 0,0169, 0,0084\ + \ e 0,0062 rispettivamente per 1, 2, 3 e 4 ritardi. Qual \xE8 l'ordine ottimale\ + \ dei modelli secondo il criterio informativo di Akaike?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_econometrics +tag: mmlu_it_llama_social_sciences_tasks +task: mmlu_it_llama_econometrics +task_alias: econometrics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_electrical_engineering.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_electrical_engineering.yaml new file mode 100644 index 0000000000000000000000000000000000000000..68ffcda2ea18ac5c03d24395ab9b82e19edaea36 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_electrical_engineering.yaml @@ -0,0 +1,58 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: S=0, R=0 + B: S=0, R=1 + C: S=1, R=0 + D: S=1, R=1 + input_correct_responses: + - D + input_question: In un dispositivo di chiusura SR costruito con porte NOR, condizione + non consentita + - input_choice_list: + A: "200\u03A9" + B: "100\u03A9" + C: "50\u03A9" + D: "10\u03A9" + input_correct_responses: + - C + input_question: "In una macchina CC con avvolgimento a 2 poli, la resistenza di\ + \ un conduttore \xE8 2\u03A9 e il numero totale di conduttori \xE8 100. Trova\ + \ la resistenza totale" + - input_choice_list: + A: 1mA. + B: 2mA. + C: 3mA. + D: 4mA. + input_correct_responses: + - B + input_question: "La bobina di un misuratore a bobina mobile ha 100 spire, \xE8\ + \ lunga 40 mm e larga 30 mm. La coppia di controllo \xE8 di 240*10-6 Nm a fondo\ + \ scala. Se la densit\xE0 del flusso magnetico \xE8 1Wb/m2, l'intervallo\ + \ del misuratore \xE8" + - input_choice_list: + A: 100N. + B: 0,1 N. + C: 1 n. + D: 0,01 N. + input_correct_responses: + - B + input_question: "Due conduttori paralleli lunghi trasportano 100 A. Se i conduttori\ + \ sono separati di 20 mm, la forza per metro di lunghezza di ciascun conduttore\ + \ sar\xE0" + - input_choice_list: + A: 15 n. + B: 20 N. + C: 7,5 N. + D: 3,75N. + input_correct_responses: + - A + input_question: "Un polo puntiforme ha una forza di 4\u03C0 * 10^-4 weber. La\ + \ forza in newton su un polo puntiforme di 4\u03C0 * 1.5 * 10^-4 weber posto\ + \ a una distanza di 10 cm da esso sar\xE0" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_electrical_engineering +tag: mmlu_it_llama_stem_tasks +task: mmlu_it_llama_electrical_engineering +task_alias: electrical_engineering diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_elementary_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_elementary_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ddc59953e17be3fed6952f70612b55261b3b3c66 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_elementary_mathematics.yaml @@ -0,0 +1,58 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: 5 migliaia + B: 5 centinaia + C: 5 decine + D: 5 quelli + input_correct_responses: + - A + input_question: "La popolazione della citt\xE0 dove \xE8 nata Michelle \xE8 di\ + \ 145.826 abitanti. Qual \xE8 il valore del 5 nel numero 145.826?" + - input_choice_list: + A: "Il decimo numero nello schema sar\xE0 un numero pari." + B: "Lo schema numerico non avr\xE0 mai due numeri pari uno accanto all'altro." + C: I prossimi due numeri nello schema saranno un numero pari e poi un numero + dispari. + D: Se lo schema numerico iniziasse con un numero dispari, allora lo schema conterrebbe + solo numeri dispari. + input_correct_responses: + - B + input_question: "Olivia ha utilizzato la regola "Aggiungi 11" per creare\ + \ lo schema numerico mostrato di seguito. 10, 21, 32, 43, 54 Quale affermazione\ + \ sullo schema numerico \xE8 vera?" + - input_choice_list: + A: Aggiungi 5 a 30 per trovare 35 squadre. + B: Dividi 30 per 5 per trovare 6 squadre. + C: Moltiplica 30 e 5 per trovare 150 squadre. + D: Sottrai 5 da 30 per trovare 25 squadre. + input_correct_responses: + - B + input_question: Un totale di 30 giocatori giocheranno a basket in un parco. Ci + saranno esattamente 5 giocatori in ogni squadra. Quale affermazione spiega correttamente + come trovare il numero di squadre necessarie? + - input_choice_list: + A: '749' + B: '2.675' + C: '2.945' + D: '4.250' + input_correct_responses: + - B + input_question: "Un negozio vende 107 colori diversi di vernice. Hanno 25 lattine\ + \ di ogni colore in magazzino. Il numero di barattoli di vernice che il negozio\ + \ ha in magazzino pu\xF2 essere trovato utilizzando l'espressione seguente.\ + \ 107\xD725. Quanti barattoli di vernice ha in magazzino il negozio?" + - input_choice_list: + A: "(5\xD74)\xD7(6\xD75)" + B: "(5\xD75) + (5\xD74)" + C: "(5\xD75) + (5\xD79)" + D: "(5\xD79)\xD7(6\xD79)" + input_correct_responses: + - B + input_question: Quale espressione equivale a 5 x 9? +include: _continuation_template_yaml +process_docs: !function utils.process_docs_elementary_mathematics +tag: mmlu_it_llama_stem_tasks +task: mmlu_it_llama_elementary_mathematics +task_alias: elementary_mathematics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_formal_logic.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_formal_logic.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b68ac27f2fd13eaef6289182413206f7c1007df6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_formal_logic.yaml @@ -0,0 +1,63 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: ~Pd + B: "(\u2200x)(Px \u2228 ~Dx)" + C: "(\u2200x)(Px \u2283 ~Dx)" + D: ~Dp + input_correct_responses: + - C + input_question: ' Seleziona la migliore traduzione nella logica dei predicati: + nessuna persona guida su Marte.' + - input_choice_list: + A: Blgh + B: Bhlg + C: Bglh + D: Bghl + input_correct_responses: + - C + input_question: 'Seleziona la migliore traduzione nella logica dei predicati. + George prende in prestito il tosaerba di Hector. (g: George; h: Hector; l: il + tosaerba di Hector; Bxyx: x prende in prestito y da z)' + - input_choice_list: + A: "Marina \xE8 una ballerina. Alcuni deboli non sono ballerini. O tutto \xE8\ + \ debole o la Georgia gioca a pallavolo. Quindi qualcosa gioca a pallavolo." + B: "Marina \xE8 una ballerina. Nessun debole \xE8 un ballerino. Tutto o \xE8\ + \ un debole o gioca a pallavolo. Quindi qualcosa gioca a pallavolo." + C: "Marina \xE8 una ballerina. Alcuni deboli non sono ballerini. Tutto o \xE8\ + \ un debole o gioca a pallavolo. Quindi qualcosa gioca a pallavolo." + D: "Marina \xE8 una ballerina. Nessun debole \xE8 un ballerino. O tutto \xE8\ + \ debole o la Georgia gioca a pallavolo. Quindi qualcosa gioca a pallavolo." + input_correct_responses: + - D + input_question: " Seleziona la migliore interpretazione inglese degli argomenti\ + \ forniti nella logica dei predicati. Dm (\u2200x)(Wx \u2283 ~Dx) (\u2200x)Wx\ + \ \u2228 Ag / (\u2203x)Ax" + - input_choice_list: + A: Logicamente equivalente + B: Contraddittorio + C: "N\xE9 logicamente equivalenti n\xE9 contraddittori, ma coerenti" + D: Incoerente + input_correct_responses: + - C + input_question: " Costruisci una tavola di verit\xE0 completa per le seguenti\ + \ coppie di proposizioni. Quindi, utilizzando le tavole di verit\xE0, determina\ + \ se le affermazioni sono logicamente equivalenti o contraddittorie. In caso\ + \ contrario, determinare se sono coerenti o incoerenti. Motiva le tue risposte.\ + \ E \u2283 (F \xB7 E) e ~E \xB7 F" + - input_choice_list: + A: "(L \u2022 H) \u2261 I" + B: "(L \u2022 H) \u2228 I" + C: "L \u2022 (H \u2228 I)" + D: "L \u2022 (H \u2283 R)" + input_correct_responses: + - B + input_question: " Quale delle formule fornite di PL \xE8 la migliore simbolizzazione\ + \ della seguente frase? Le tartarughe vivono a lungo e sono creature felici,\ + \ a meno che non vengano ferite." +include: _continuation_template_yaml +process_docs: !function utils.process_docs_formal_logic +tag: mmlu_it_llama_humanities_tasks +task: mmlu_it_llama_formal_logic +task_alias: formal_logic diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_global_facts.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_global_facts.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ade44c5eee5d457a4a67f9ef9bf17945acb91f82 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_global_facts.yaml @@ -0,0 +1,57 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Le persone tendono ad essere ottimiste riguardo al proprio futuro e al futuro + della propria nazione o del mondo. + B: Le persone tendono ad essere ottimiste riguardo al proprio futuro ma pessimiste + riguardo al futuro della propria nazione o del mondo. + C: Le persone tendono ad essere pessimiste riguardo al proprio futuro ma ottimiste + riguardo al futuro della propria nazione o del mondo. + D: Le persone tendono ad essere pessimiste riguardo al proprio futuro e al futuro + della propria nazione o del mondo. + input_correct_responses: + - B + input_question: Quali delle seguenti coppie di affermazioni sono entrambe vere + (al 2019)? + - input_choice_list: + A: 31% + B: 46% + C: 61% + D: 76% + input_correct_responses: + - B + input_question: "Nel 2019, quale percentuale di americani concorda sul fatto che\ + \ lo stato \xE8 gestito a beneficio di tutte le persone?" + - input_choice_list: + A: aumentato, aumentato + B: aumentato, diminuito + C: diminuito, aumentato + D: diminuito, diminuito + input_correct_responses: + - B + input_question: Nel 2015, dal 1990 le foreste hanno ____ in Europa e hanno ____ + in Africa e nelle Americhe. + - input_choice_list: + A: 38% + B: 53% + C: 68% + D: 83% + input_correct_responses: + - A + input_question: "Nel 2019, quale percentuale di russi afferma che \xE8 molto importante\ + \ avere media liberi nel nostro Paese senza censura governativa/statale?" + - input_choice_list: + A: 80% + B: 60% + C: 40% + D: 20% + input_correct_responses: + - A + input_question: Nel 2017, quanti bambini di 1 anno nel mondo sono stati oggi vaccinati + contro alcune malattie? * +include: _continuation_template_yaml +process_docs: !function utils.process_docs_global_facts +tag: mmlu_it_llama_other_tasks +task: mmlu_it_llama_global_facts +task_alias: global_facts diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_biology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_biology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bee26c5b23972c7dd1a900195ef3b3d731a7a779 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_biology.yaml @@ -0,0 +1,56 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Traduzione + B: Coniugazione + C: Trasduzione specializzata + D: Trasformazione + input_correct_responses: + - A + input_question: "Quale dei seguenti non \xE8 un modo per formare DNA ricombinante?" + - input_choice_list: + A: Modificando il pH ottimale dell'enzima + B: Cambiando la posizione dell'enzima nella cellula + C: Cambiando la forma della proteina + D: "Un cambiamento di amminoacido lontano dal sito attivo non pu\xF2 alterare\ + \ la specificit\xE0 del substrato dell'enzima." + input_correct_responses: + - C + input_question: "Una mutazione in un enzima batterico ha trasformato un amminoacido\ + \ precedentemente polare in un amminoacido non polare. Questo amminoacido si\ + \ trovava in un sito distante dal sito attivo dell'enzima. In che modo questa\ + \ mutazione potrebbe alterare la specificit\xE0 del substrato dell'enzima?" + - input_choice_list: + A: Membrana plasmatica-apparato del Golgi-ribosoma-vescicola secretiva-RE rugoso + B: Apparato ribosoma-Golgi-ER ruvido-vescicola secretiva-membrana plasmatica + C: Membrana plasmatica-apparato del Golgi-ribosoma-vescicola secretiva-RE rugoso + D: Ribosoma-ER rugoso-apparato del Golgi-vescicola secretiva-membrana plasmatica + input_correct_responses: + - D + input_question: "Nelle cellule animali, quale delle seguenti rappresenta la via\ + \ pi\xF9 probabile che segue una proteina secretoria quando viene sintetizzata\ + \ in una cellula?" + - input_choice_list: + A: Cicline + B: Proteine chinasi + C: Punti di controllo + D: Cellule di fibroblasti + input_correct_responses: + - D + input_question: "Quale dei seguenti elementi non \xE8 noto per essere coinvolto\ + \ nel controllo della divisione cellulare?" + - input_choice_list: + A: le ali di un uccello e le ali di un pipistrello + B: le pinne di una balena e le braccia di un uomo + C: le pinne pettorali di una focena e le pinne di una foca + D: le zampe anteriori di un insetto e le zampe anteriori di un cane + input_correct_responses: + - D + input_question: Le strutture omologhe sono spesso citate come prova del processo + di selezione naturale. Tutti i seguenti sono esempi di strutture omologhe TRANNE +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_biology +tag: mmlu_it_llama_stem_tasks +task: mmlu_it_llama_high_school_biology +task_alias: high_school_biology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_chemistry.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_chemistry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f488cb09a830bf6eec3bb3e6caabe68a3111d3ab --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_chemistry.yaml @@ -0,0 +1,58 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: HCl + B: H2SO3 + C: SO2 + D: Al(NO3)3 + input_correct_responses: + - C + input_question: "Quale delle seguenti \xE8 considerata un'anidride acida?" + - input_choice_list: + A: PCl4F + B: BF3 + C: CO2 + D: Si(CH3)4 + input_correct_responses: + - A + input_question: Quale delle seguenti dovrebbe essere una molecola polare? + - input_choice_list: + A: Tutti i cloruri, i bromuri e gli ioduri sono solubili + B: Tutti i solfati sono solubili + C: Tutti gli idrossidi sono solubili + D: Tutti i composti contenenti ammonio sono solubili + input_correct_responses: + - D + input_question: "Dalle regole di solubilit\xE0, quale delle seguenti affermazioni\ + \ \xE8 vera?" + - input_choice_list: + A: 3,89 + B: '7.78' + C: '5.78' + D: '2.33' + input_correct_responses: + - C + input_question: "Viene sintetizzato un nuovo composto e si scopre che \xE8 un\ + \ acido monoprotico con una massa molare di 248 g/mol. Quando 0,0050 moli di\ + \ questo acido vengono sciolte in 0,500 L di acqua, il pH viene misurato come\ + \ 3,89. Qual \xE8 il pKa di questo acido?" + - input_choice_list: + A: 0,500 moli + B: 1,00 talpa + C: 2,00 talpe + D: 3,00 talpe + input_correct_responses: + - C + input_question: "Una soluzione contiene 2,00 moli di acido acetico, CH3COOH, e\ + \ 1,00 moli di acetato di calcio, Ca(CH3COO)2. La soluzione \xE8 in grado di\ + \ resistere all'aggiunta di una piccola quantit\xE0 di acido forte o base\ + \ forte con solo lievi variazioni del pH della soluzione. Quantit\xE0 maggiori\ + \ di acido forte o base forte possono causare un cambiamento significativo nel\ + \ pH. Quante moli di acido nitrico, HNO3, possono essere aggiunte prima che\ + \ il pH inizi a cambiare in modo significativo?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_chemistry +tag: mmlu_it_llama_stem_tasks +task: mmlu_it_llama_high_school_chemistry +task_alias: high_school_chemistry diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_computer_science.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_computer_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8c1cab1fcb24babe6d25cd4d4eb97867259b0659 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_computer_science.yaml @@ -0,0 +1,83 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Un'auto avvisa il conducente che sta per colpire un oggetto. + B: Un escursionista utilizza un orologio GPS per tenere traccia della sua posizione. + C: "Un frigorifero ordina il latte da un servizio di consegna online quando\ + \ il latte nel frigorifero \xE8 quasi finito." + D: Un corridore utilizza un orologio con sensori ottici per monitorare la sua + frequenza cardiaca. + input_correct_responses: + - C + input_question: "Quale dei seguenti \xE8 un esempio di utilizzo di un dispositivo\ + \ nell'Internet delle cose (IoT)?" + - input_choice_list: + A: "Le attivit\xE0 di un utente che naviga in una finestra anonima non saranno\ + \ visibili alle persone che monitorano la rete dell'utente, come l'amministratore\ + \ di sistema." + B: Gli articoli inseriti nel carrello di un negozio Web per futuri acquisti + durante la sessione di navigazione anonima non verranno salvati sul computer + dell'utente. + C: "Un utente non sar\xE0 in grado di accedere agli account di posta elettronica\ + \ o ai social media durante la sessione di navigazione anonima." + D: "Un utente che naviga in una finestra anonima sar\xE0 protetto dai virus\ + \ lanciati da qualsiasi sito web visitato o file scaricati." + input_correct_responses: + - B + input_question: "Molti browser Web consentono agli utenti di aprire finestre anonime.\ + \ Durante una sessione di navigazione in una finestra anonima, il browser non\ + \ registra n\xE9 la cronologia di navigazione n\xE9 l'elenco dei file scaricati.\ + \ Quando si esce dalla finestra anonima, i cookie creati durante la sessione\ + \ vengono cancellati. Quale delle seguenti affermazioni relative alle sessioni\ + \ di navigazione in una finestra anonima \xE8 vera?" + - input_choice_list: + A: Errore + B: abc + C: cba + D: C + input_correct_responses: + - C + input_question: "Qual \xE8 l'output di "abc"[::-1] in Python 3?" + - input_choice_list: + A: Foxtrot + B: Hotel + C: novembre + D: yankee + input_correct_responses: + - C + input_question: "Nel programma seguente, il valore iniziale di x \xE8 5 e il valore\ + \ iniziale di y \xE8 10. IF (X < O) { DISPLAY ("Foxtrot") } ELSE\ + \ { IF (X > y) { DISPLAY ("Hotel") } ELSE { IF (y > O) { DISPLAY\ + \ ("Novembre") } ELSE { DISPLAY ("Yankee") } } } Cosa viene\ + \ visualizzato come risultato dell'esecuzione del programma?" + - input_choice_list: + A: "Passaggio 3: aumentare il valore della posizione di 1. Passaggio 4: ripetere\ + \ i passaggi 2 e 3 finch\xE9 il valore del conteggio non \xE8 maggiore di\ + \ 100." + B: "Passaggio 3: aumentare il valore della posizione di 1. Passaggio 4: ripetere\ + \ i passaggi 2 e 3 fino a quando il valore della posizione \xE8 maggiore di\ + \ n." + C: "Passaggio 3: ripetere il passaggio 2 finch\xE9 il valore del conteggio non\ + \ \xE8 maggiore di 100. Passaggio 4: aumentare il valore della posizione di\ + \ 1." + D: "Passaggio 3: ripetere il passaggio 2 finch\xE9 il valore della posizione\ + \ non \xE8 maggiore di n. Passaggio 4: aumentare il valore del conteggio di\ + \ 1." + input_correct_responses: + - D + input_question: "Una lista di numeri ha n elementi, indicizzati da 1 a n. Il seguente\ + \ algoritmo ha lo scopo di visualizzare il numero di elementi nell'elenco\ + \ che hanno un valore maggiore di 100. L'algoritmo utilizza le variabili\ + \ count e position. Mancano i passaggi 3 e 4. Passaggio 1: impostare il conteggio\ + \ su 0 e la posizione su 1. Passaggio 2: se il valore dell'elemento nella\ + \ posizione dell'indice \xE8 maggiore di 100, aumentare il valore del conteggio\ + \ di 1. Passaggio 3: (passaggio mancante) Passaggio 4: (passaggio mancante )\ + \ Passo 5: Visualizzare il valore del conteggio. Quale dei seguenti potrebbe\ + \ essere utilizzato per sostituire i passaggi 3 e 4 in modo che l'algoritmo\ + \ funzioni come previsto?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_computer_science +tag: mmlu_it_llama_stem_tasks +task: mmlu_it_llama_high_school_computer_science +task_alias: high_school_computer_science diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_european_history.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_european_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d9f905d4f1b9c98fd66b850aea78efcbe6bf9571 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_european_history.yaml @@ -0,0 +1,194 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Jean-Jacques Rousseau + B: Barone Montesquieu + C: Mary Wollstonecraft + D: Adam Smith + input_correct_responses: + - B + input_question: "Questa domanda si riferisce alle seguenti informazioni. Il seguente\ + \ estratto \xE8 tratto da un opuscolo. Mi renderai giustizia ricordando che\ + \ ho sempre strenuamente sostenuto il diritto di ogni uomo alla propria opinione,\ + \ per quanto diversa possa essere dalla mia. Chi nega a un altro questo diritto,\ + \ si rende schiavo della sua opinione presente, perch\xE9 si preclude il diritto\ + \ di cambiarla. L'arma pi\xF9 formidabile contro gli errori di ogni genere\ + \ \xE8 la Ragione. Non ne ho mai usato nessun altro e confido che non lo far\xF2\ + \ mai. La circostanza che si \xE8 verificata ora in Francia, dell\u2019abolizione\ + \ totale dell\u2019intero ordine nazionale del sacerdozio e di tutto ci\xF2\ + \ che appartiene ai sistemi compulsivi di religione e agli articoli di fede\ + \ compulsivi, non solo ha accelerato la mia intenzione, ma ha reso l\u2019opera\ + \ di questo un genere estremamente necessario, affinch\xE9 nel generale naufragio\ + \ della superstizione, dei falsi sistemi di governo e della falsa teologia,\ + \ perdiamo di vista la moralit\xE0, l'umanit\xE0 e la teologia che \xE8\ + \ vera. Credo in un solo Dio, e niente di pi\xF9; e spero nella felicit\xE0\ + \ oltre questa vita. Credo nell'uguaglianza dell'uomo; e credo che i\ + \ doveri religiosi consistano nel fare giustizia, amare la misericordia e sforzarsi\ + \ di rendere felici i nostri simili. Non credo nel credo professato dalla chiesa\ + \ ebraica, dalla chiesa romana, dalla chiesa greca, dalla chiesa turca, dalla\ + \ chiesa protestante, n\xE9 da alcuna chiesa che io conosca. La mia mente \xE8\ + \ la mia chiesa. Tutte le istituzioni nazionali delle chiese, siano esse ebraiche,\ + \ cristiane o turche, non mi sembrano altro che invenzioni umane, istituite\ + \ per terrorizzare e schiavizzare l\u2019umanit\xE0 e monopolizzare il potere\ + \ e il profitto. Con questa dichiarazione non intendo condannare coloro che\ + \ credono il contrario; hanno lo stesso diritto alla loro convinzione che io\ + \ ho alla mia. \u2014Thomas Paine, The Age of Reason, 1794\u20131795 Quale dei\ + \ seguenti filosofi illuministi progett\xF2 un sistema di controlli ed equilibri\ + \ affinch\xE9 il governo evitasse abusi di potere?" + - input_choice_list: + A: "Le idee di libert\xE0 personale e nazionalismo concepite durante l\u2019\ + Illuminismo portarono a rivoluzioni radicali che poterono diffondersi in tutta\ + \ Europa." + B: "La conquista dell'Europa da parte di Napoleone port\xF2 alla creazione\ + \ di nuove fazioni e spost\xF2 gli equilibri di potere europei." + C: Il potere dei monarchi era cresciuto al punto che doveva essere controllato + da altri poteri all'interno di ciascuna nazione o si sarebbe verificata + la dominazione dei civili. + D: Il ciclo economico in salita e in discesa della nuova economia capitalista + emergente potrebbe portare a disordini civili che devono essere repressi. + input_correct_responses: + - A + input_question: "Questa domanda si riferisce alle seguenti informazioni. Leggi\ + \ il seguente estratto. Il seme rivoluzionario era penetrato in tutti i paesi\ + \ e si era pi\xF9 o meno diffuso. Si svilupp\xF2 molto sotto il regime del dispotismo\ + \ militare di Bonaparte. Le sue conquiste hanno spostato una serie di leggi,\ + \ istituzioni e costumi; ruppe i legami sacri tra tutte le nazioni, abbastanza\ + \ forti da resistere al tempo stesso; il che \xE8 pi\xF9 di quanto si possa\ + \ dire di alcuni benefici conferiti da questi innovatori. I monarchi adempiranno\ + \ i doveri imposti loro da Colui che, affidando loro il potere, li ha incaricati\ + \ di vigilare sul mantenimento della giustizia e dei diritti di tutti, di evitare\ + \ le vie dell'errore e di percorrere con fermezza la via dell'errore.\ + \ verit\xE0. Posti al di l\xE0 delle passioni che agitano la societ\xE0, \xE8\ + \ soprattutto nei giorni della prova che sono chiamati a spogliare la realt\xE0\ + \ delle loro false apparenze, e a mostrarsi quali sono, padri investiti dell'autorit\xE0\ + \ che spetta di diritto ai capi famiglia, per dimostrare che, nei giorni di\ + \ lutto, sanno essere giusti, saggi e quindi forti, e che non abbandoneranno\ + \ il popolo che dovrebbero governare come gioco delle fazioni, all\u2019errore\ + \ e alle sue conseguenze, che devono implicano la perdita della societ\xE0.\ + \ L'unione tra i monarchi \xE8 la base della politica che ora deve essere\ + \ seguita per salvare la societ\xE0 dalla rovina totale. . . . Non confondano\ + \ le concessioni fatte ai partiti con il bene che dovrebbero fare al popolo,\ + \ modificando, secondo i bisogni riconosciuti, i rami dell'amministrazione\ + \ che lo richiedono. Siano giusti, ma forti; benefico, ma severo. Mantengano\ + \ i principi religiosi in tutta la loro purezza e non permettano che la fede\ + \ venga attaccata e la moralit\xE0 interpretata secondo il contratto sociale\ + \ o le visioni di sciocchi settari. Sopprimano le societ\xE0 segrete; quella\ + \ cancrena della societ\xE0. \u2014Klemens von Metternich, Confessione politica\ + \ di fede, 1820 Quale delle seguenti \xE8 stata la causa principale dei timori\ + \ espressi da Metternich nel documento di cui sopra?" + - input_choice_list: + A: Capitalista + B: Scientifico + C: comunista + D: Esistenzialista + input_correct_responses: + - C + input_question: "Questa domanda si riferisce alle seguenti informazioni. In Russia\ + \ non andava tutto bene e [Souvarine] era disperato per la notizia che aveva\ + \ ricevuto. I suoi vecchi compagni si rivolgevano tutti ai politici; i famosi\ + \ nichilisti che facevano tremare l\u2019Europa \u2013 figli di preti di villaggio,\ + \ di piccoli borghesi, di commercianti \u2013 non potevano elevarsi al di sopra\ + \ dell\u2019idea di liberazione nazionale, e sembravano credere che il mondo\ + \ sarebbe stato liberato \u2013 dopo aver ucciso il loro despota\u2026 "Sciocchezze!\ + \ Con le loro sciocchezze non ne usciranno mai." Poi, abbassando ancora\ + \ di pi\xF9 la voce, con poche parole amare descrisse il suo vecchio sogno di\ + \ fraternit\xE0. Aveva rinunciato al suo rango e alla sua fortuna; era andato\ + \ tra gli operai, solo nella speranza di vedere finalmente la fondazione di\ + \ una nuova societ\xE0 di lavoro in comune. Tutti i soldi che aveva in tasca\ + \ erano andati da tempo ai monelli del villaggio; era stato tenero come un fratello\ + \ con i minatori, sorridendo dei loro sospetti, conquistandoli con i suoi modi\ + \ tranquilli da operaio e la sua avversione per le chiacchiere. Ma decisamente\ + \ la fusione non era avvenuta. La sua voce cambi\xF2, i suoi occhi si illuminarono,\ + \ li fiss\xF2 su \xC9tienne, rivolgendosi direttamente a lui: "Adesso capisci?\ + \ Questi cappellai di Marsiglia che hanno vinto il grande premio di centomila\ + \ franchi della lotteria, sono subito partiti e hanno investito voi, voi tutti,\ + \ operai francesi, volete dissotterrare un tesoro per divorarlo poi da soli,\ + \ in qualche angolo pigro ed egoista. per quanto tu voglia contro i ricchi,\ + \ non hai abbastanza coraggio per restituire ai poveri il denaro che la fortuna\ + \ ti porta. Non sarai mai degno di felicit\xE0 finch\xE9 possiedi qualcosa,\ + \ e il tuo odio contro i borghesi procede unicamente per il desiderio rabbioso\ + \ di essere voi stessi borghesi al loro posto." \xE9mile Zola, scrittore\ + \ francese, Germinal, 1885 Il passaggio mostra la preoccupazione diretta per\ + \ il benessere delle classi lavoratrici che tipicamente faceva parte di quale\ + \ movimento?" + - input_choice_list: + A: Servirono da catalizzatore per la crescita della navigazione inglese e del + commercio estero, ma fecero ben poco per limitare le prospettive degli olandesi + nel XVII secolo. + B: "Causarono difficolt\xE0 quasi immediate per l\u2019economia olandese poich\xE9\ + \ il loro dominio sul commercio estero fin\xEC rapidamente." + C: "Furono annullati durante la restaurazione degli Stuart poich\xE9 cercavano\ + \ normali relazioni diplomatiche con gli olandesi in modo da non aver bisogno\ + \ del sostegno finanziario del Parlamento per la guerra." + D: "Portarono a quasi un secolo di guerre ricorrenti tra Inghilterra e Paesi\ + \ Bassi, che non sarebbero finite fino a dopo l\u2019indipendenza americana." + input_correct_responses: + - A + input_question: "Questa domanda si riferisce alle seguenti informazioni. Gli estratti\ + \ seguenti provengono dagli Atti di navigazione del 1651. [Dopo il primo giorno\ + \ di dicembre milleseicentocinquantuno, e da allora in poi, nessun bene o merce\ + \ di sorta derivante dalla crescita, produzione o manifattura dell'Asia,\ + \ dell'Africa o l'America, o qualsiasi parte di essa; o di qualsiasi\ + \ isola ad essi appartenente, o che sono descritte o indicate nelle consuete\ + \ mappe o carte di quei luoghi, cos\xEC come delle piantagioni inglesi come\ + \ altre, saranno importate o portate in questo Commonwealth d'Inghilterra,\ + \ o in Irlanda, o qualsiasi altra terra, isola, piantagione o territorio di\ + \ questo Commonwealth appartenente, o in loro possesso, in qualsiasi altra nave\ + \ o nave, vascello o vascello di sorta, ma solo in quelli che veramente e senza\ + \ frode appartengono solo al popolo di questo Commonwealth , o le relative piantagioni,\ + \ in qualit\xE0 di proprietari o titolari dei diritti; e di cui il capitano\ + \ e i marinai appartengono anche al popolo di questo Commonwealth, sotto pena\ + \ di confisca e perdita di tutti i beni che saranno importati contrariamente\ + \ a questo atto, , , , [N] o beni o merci della crescita, la produzione, o la\ + \ manifattura dell'Europa, o di qualsiasi parte di essa, dopo il primo giorno\ + \ di dicembre milleseicentocinquantuno, sar\xE0 importata o portata in questo\ + \ Commonwealth d'Inghilterra, o in qualsiasi altra terra o territorio appartenente\ + \ a questo Commonwealth, o in loro possesso, in qualsiasi nave o navi, vascello\ + \ o vascelli di qualsiasi genere, ma in quelli che appartengono veramente e\ + \ senza frode solo al popolo di questo Commonwealth, e in nessun altro, eccetto\ + \ solo le navi e i vascelli stranieri che appartengono veramente e appartengono\ + \ propriamente al popolo di quel paese o luogo di cui detti beni sono la crescita,\ + \ la produzione o la manifattura. Quale delle seguenti affermazioni descrive\ + \ meglio l'esito dei Navigation Acts del 1651?" + - input_choice_list: + A: "dare al re inglese una nuova posizione di autorit\xE0" + B: dare la carica di capo della Chiesa d'Inghilterra al solo Enrico VIII + ed escludere i suoi eredi + C: "stabilire il calvinismo come l\u2019unica vera teologia in Inghilterra" + D: porre fine alle varie forme di corruzione che affliggono la Chiesa in Inghilterra + input_correct_responses: + - D + input_question: "Questa domanda si riferisce alle seguenti informazioni. Sebbene\ + \ la Maest\xE0 del re sia giustamente e legittimamente il capo supremo della\ + \ Chiesa d'Inghilterra, e cos\xEC sia riconosciuta dal clero di questo regno\ + \ nelle loro convocazioni, tuttavia, per corroborazione e conferma di ci\xF2\ + , e per aumento della virt\xF9 in religione di Cristo in questo regno d'Inghilterra,\ + \ e per reprimere ed estirpare tutti gli errori, le eresie e le altre enormit\xE0\ + \ e abusi finora utilizzati nella stessa, sia decretato, per autorit\xE0 di\ + \ questo attuale Parlamento, che il re, il nostro signore sovrano, i suoi eredi\ + \ e i successori, i re di questo regno, saranno presi, accettati e ritenuti\ + \ l'unico capo supremo sulla terra della Chiesa d'Inghilterra, chiamata\ + \ Ecclesia anglicana; e avranno e godranno, annessi e uniti alla corona imperiale\ + \ di questo regno, nonch\xE9 il titolo e lo stile della stessa, come tutti gli\ + \ onori, dignit\xE0, preminenze, giurisdizioni, privilegi, autorit\xE0, immunit\xE0\ + , profitti e beni alla detta dignit\xE0 di il capo supremo della stessa Chiesa\ + \ appartenente e appartenente; e che il nostro suddetto signore sovrano, i suoi\ + \ eredi e successori, re di questo regno, avranno pieno potere e autorit\xE0\ + \ di volta in volta per visitare, reprimere, riparare, registrare, ordinare,\ + \ correggere, frenare ed emendare tutti questi errori, eresie, abusi, offese,\ + \ disprezzi ed enormit\xE0, qualunque essi siano, che per qualsiasi tipo di\ + \ autorit\xE0 o giurisdizione spirituale dovrebbero o potrebbero essere legittimamente\ + \ riformati, repressi, ordinati, riparati, corretti, frenati o modificati, per\ + \ il massimo piacere di Dio Onnipotente, l'aumento della virt\xF9 nella\ + \ religione di Cristo e per la conservazione della pace, dell'unit\xE0 e\ + \ della tranquillit\xE0 di questo regno; nonostante qualsiasi uso, terra straniera,\ + \ autorit\xE0 straniera, prescrizione o qualsiasi altra cosa contraria al presente\ + \ documento. Parlamento inglese, Atto di Supremazia, 1534 Dal passaggio si pu\xF2\ + \ dedurre che il Parlamento inglese volesse sostenere che l'Atto di Supremazia\ + \ avrebbe" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_european_history +tag: mmlu_it_llama_humanities_tasks +task: mmlu_it_llama_high_school_european_history +task_alias: high_school_european_history diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_geography.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_geography.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d7a3d571cd0f6e4348a8dea12741f7108c7581bd --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_geography.yaml @@ -0,0 +1,58 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "tasso di mortalit\xE0 grezzo dalla data di nascita grezza." + B: "tasso di natalit\xE0 grezzo dal tasso di mortalit\xE0 grezzo." + C: "raddoppiando il tempo rispetto al tasso di natalit\xE0 grezzo." + D: "tasso di fertilit\xE0 dal tasso grezzo di mortalit\xE0." + input_correct_responses: + - A + input_question: Il tasso di crescita naturale di una popolazione si trova sottraendo + il + - input_choice_list: + A: "I tassi di natalit\xE0 aumentano e il tasso di crescita della popolazione\ + \ \xE8 meno rapido." + B: "I tassi di natalit\xE0 diminuiscono e il tasso di crescita della popolazione\ + \ \xE8 meno rapido." + C: "I tassi di natalit\xE0 aumentano e il tasso di crescita della popolazione\ + \ aumenta." + D: "I tassi di natalit\xE0 diminuiscono e il tasso di crescita della popolazione\ + \ aumenta." + input_correct_responses: + - B + input_question: "Durante la terza fase del modello di transizione demografica,\ + \ quale delle seguenti affermazioni \xE8 vera?" + - input_choice_list: + A: La duplicazione degli sforzi avviene spesso. + B: "I problemi sociali del centro citt\xE0 si riversano nei sobborghi residenziali\ + \ circostanti." + C: Spesso si verificano inefficienze nella fornitura dei servizi. + D: "Gli sforzi di un quartiere per ridurre l'inquinamento sono sempre sostenuti\ + \ dalle comunit\xE0 vicine." + input_correct_responses: + - D + input_question: "Quale delle seguenti affermazioni NON \xE8 accurata riguardo\ + \ ai servizi forniti dai governi locali negli Stati Uniti?" + - input_choice_list: + A: esternalizzazione. + B: delocalizzazione. + C: maquiladoras. + D: interdipendenza localizzata. + input_correct_responses: + - B + input_question: Viene chiamata la pratica di assumere un fornitore di servizi + terzo straniero per eseguire un'operazione + - input_choice_list: + A: Saponetta colomba + B: Barretta di cioccolato colomba + C: Simbolo della colomba + D: Una colomba (uccello) + input_correct_responses: + - C + input_question: "Quale dei seguenti elementi \xE8 un esempio di cultura non materiale?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_geography +tag: mmlu_it_llama_social_sciences_tasks +task: mmlu_it_llama_high_school_geography +task_alias: high_school_geography diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_government_and_politics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_government_and_politics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9cacce8dda966953a230550b44424d192d3c7c44 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_government_and_politics.yaml @@ -0,0 +1,60 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "la definizione costituzionale di tali poteri \xE8 ampia e non specifica" + B: la maggior parte delle persone concorda sul fatto che la Costituzione pone + troppi limiti al potere presidenziale + C: la Corte Suprema rifiuta costantemente di pronunciarsi su casi riguardanti + i poteri presidenziali + D: gli emendamenti costituzionali hanno notevolmente aumentato i poteri presidenziali + input_correct_responses: + - A + input_question: "L\u2019incertezza sui limiti del potere presidenziale \xE8 causata\ + \ principalmente da questo" + - input_choice_list: + A: aumento annuale della spesa federale per le forze armate + B: ammontare degli interessi sul debito pubblico + C: differenza tra le proposte di bilancio iniziali fatte dal presidente e dal + Congresso + D: importo che il governo spende in eccesso rispetto alle sue entrate + input_correct_responses: + - D + input_question: Il termine "deficit di bilancio" si riferisce al + - input_choice_list: + A: Weeks contro Stati Uniti + B: Betts contro Brady + C: Mapp contro Ohio + D: Miranda contro Arizona + input_correct_responses: + - D + input_question: Quale dei seguenti casi ha stabilito il precedente secondo cui + un imputato deve essere informato del diritto al silenzio, del diritto a un + avvocato e della protezione dall'autoincriminazione? + - input_choice_list: + A: Sono stabiliti dal potere legislativo. + B: I loro membri spesso non hanno molta influenza sulle decisioni presidenziali. + C: Non possono essere tutti gestiti da leader che appartengono allo stesso partito + politico del presidente. + D: Non tutte le agenzie federali sono un dipartimento di gabinetto. + input_correct_responses: + - C + input_question: "Quale delle seguenti affermazioni sui dipartimenti di gabinetto\ + \ \xE8 FALSA?" + - input_choice_list: + A: I politici onesti possono impedire lo sviluppo di fazioni. + B: "\xC8 pi\xF9 probabile che le fazioni si formino nelle grandi repubbliche\ + \ che in quelle piccole." + C: "Gli effetti negativi della faziosit\xE0 possono essere ridotti da un governo\ + \ repubblicano." + D: "Le libere elezioni sono la migliore difesa del popolo contro le faziosit\xE0\ + ." + input_correct_responses: + - C + input_question: Quale delle seguenti affermazioni meglio afferma un'argomentazione + avanzata da James Madison in The Federalist numero 10? +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_government_and_politics +tag: mmlu_it_llama_social_sciences_tasks +task: mmlu_it_llama_high_school_government_and_politics +task_alias: high_school_government_and_politics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_macroeconomics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_macroeconomics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cfc9e41009352d9da2c5c604f803e6ed1c1393ce --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_macroeconomics.yaml @@ -0,0 +1,52 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: L'esercito americano apre una nuova base in un paese straniero con 1.000 + dipendenti statunitensi. + B: I consumatori giapponesi acquistano migliaia di CD prodotti negli Stati Uniti. + C: Una cantante pop americana si esibisce in un concerto tutto esaurito a Parigi. + D: "Una produzione teatrale francese gira decine di citt\xE0 americane." + input_correct_responses: + - C + input_question: "Quale dei seguenti elementi non \xE8 incluso nel PIL degli Stati\ + \ Uniti?" + - input_choice_list: + A: relazione diretta tra disoccupazione e inflazione + B: "relazione diretta tra prezzo e quantit\xE0 domandata" + C: "relazione inversa tra prezzo e quantit\xE0 domandata" + D: relazione inversa tra disoccupazione e inflazione + input_correct_responses: + - D + input_question: La curva di Phillips di breve periodo indica a + - input_choice_list: + A: le esportazioni superano le importazioni. + B: le importazioni superano le esportazioni. + C: la riscossione delle tasse federali supera la spesa. + D: la spesa federale supera le entrate fiscali federali. + input_correct_responses: + - D + input_question: Un deficit federale si verifica quando + - input_choice_list: + A: Aumento del tasso di sconto + B: Aumentare il coefficiente di riserva + C: Acquistare titoli di Stato + D: Abbassamento delle tariffe + input_correct_responses: + - C + input_question: "A parit\xE0 di condizioni, quale delle seguenti politiche monetarie\ + \ verrebbe utilizzata per stimolare le esportazioni statunitensi?" + - input_choice_list: + A: "Un aumento dell\u2019offerta di moneta" + B: Aumento della spesa pubblica + C: "Tasse pi\xF9 basse su ricerca e sviluppo di nuove tecnologie" + D: "Tasse pi\xF9 alte sul reddito delle famiglie" + input_correct_responses: + - C + input_question: "Quale delle seguenti politiche descrive meglio la politica fiscale\ + \ dal lato dell\u2019offerta?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_macroeconomics +tag: mmlu_it_llama_social_sciences_tasks +task: mmlu_it_llama_high_school_macroeconomics +task_alias: high_school_macroeconomics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b547ec502d9d785abb01db6415d36417923ad1da --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_mathematics.yaml @@ -0,0 +1,61 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: '3' + B: '15' + C: '6' + D: '5' + input_correct_responses: + - B + input_question: Joe era incaricato delle luci per un ballo. La luce rossa lampeggia + ogni due secondi, la luce gialla ogni tre secondi e la luce blu ogni cinque + secondi. Se includiamo l'inizio e la fine della danza, quante volte durante + una danza di sette minuti si accenderanno tutte le luci contemporaneamente? + (Supponiamo che tutte e tre le luci lampeggino simultaneamente all'inizio + della danza.) + - input_choice_list: + A: '12' + B: '1' + C: '30' + D: '5' + input_correct_responses: + - C + input_question: Cinquemila dollari composti ogni anno a un tasso di interesse + $x\%$ impiegano sei anni per raddoppiare. Allo stesso tasso di interesse, quanti + anni occorreranno $\$300$ per crescere fino a $\$9600$? + - input_choice_list: + A: '-1' + B: '16' + C: -\frac{1}{256} + D: \frac{1}{16} + input_correct_responses: + - C + input_question: "La variabile $x$ varia direttamente come il quadrato di $y$,\ + \ e $y$ varia direttamente come il cubo di $z$. Se $x$ \xE8 uguale a $-16$ quando\ + \ $z$ \xE8 uguale a 2, qual \xE8 il valore di $x$ quando $z$ \xE8 uguale a $\\\ + frac{1}{2}$?" + - input_choice_list: + A: \frac{3\sqrt{3}}{3} + B: \frac{1}{3} + C: \qrt{3} + D: \frac{\sqrt{3}}{3} + input_correct_responses: + - D + input_question: 'Semplifica e scrivi il risultato con un denominatore razionale: + $$\sqrt{\sqrt[3]{\sqrt{\frac{1}{729}}}}$$' + - input_choice_list: + A: '55' + B: '60' + C: '62' + D: '65' + input_correct_responses: + - D + input_question: "Dieci studenti sostengono un test di biologia e ricevono i seguenti\ + \ punteggi: 45, 55, 50, 70, 65, 80, 40, 90, 70, 85. Qual \xE8 la media dei punteggi\ + \ dei test degli studenti?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_mathematics +tag: mmlu_it_llama_stem_tasks +task: mmlu_it_llama_high_school_mathematics +task_alias: high_school_mathematics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_microeconomics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_microeconomics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2be97ac39f6fe6043de330189796de2126a59e02 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_microeconomics.yaml @@ -0,0 +1,54 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Un salario minimo effettivo imposto a questo mercato del lavoro. + B: Un aumento del prezzo dei litri di vernice. + C: Un aumento nella costruzione di nuove case. + D: "Un aumento del prezzo dei verniciatori meccanici finch\xE9 l\u2019effetto\ + \ produzione supera l\u2019effetto sostituzione." + input_correct_responses: + - C + input_question: In un mercato del lavoro competitivo per gli imbianchini, quale + dei seguenti fattori aumenterebbe la domanda di imbianchini? + - input_choice_list: + A: "la domanda del prodotto aumenter\xE0" + B: "la domanda del prodotto diminuir\xE0" + C: "il surplus del consumatore aumenter\xE0" + D: "il surplus del consumatore diminuir\xE0" + input_correct_responses: + - C + input_question: Se il governo sovvenziona i produttori in un mercato perfettamente + competitivo, allora + - input_choice_list: + A: '0' + B: '5' + C: '10' + D: '100' + input_correct_responses: + - D + input_question: "Il rapporto di concentrazione per un monopolio \xE8" + - input_choice_list: + A: Il prezzo minimo sposta la curva di domanda verso sinistra. + B: Un pavimento efficace crea una carenza di bene. + C: Il prezzo minimo sposta la curva di offerta del bene verso destra. + D: Per essere un livello efficace, deve essere fissato al di sopra del prezzo + di equilibrio. + input_correct_responses: + - D + input_question: "Quale delle seguenti affermazioni \xE8 vera riguardo al prezzo\ + \ minimo?" + - input_choice_list: + A: Libera entrata e uscita dal mercato + B: Pochi grandi produttori + C: Un produttore di un bene senza sostituti prossimi + D: Un prodotto omogeneo + input_correct_responses: + - B + input_question: "Quale delle seguenti \xE8 necessariamente una caratteristica\ + \ dell'oligopolio?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_microeconomics +tag: mmlu_it_llama_social_sciences_tasks +task: mmlu_it_llama_high_school_microeconomics +task_alias: high_school_microeconomics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..faf2cc2d8a38d8e35a47e88f3d94b7bf70b5e67d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_physics.yaml @@ -0,0 +1,62 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Solo I e II + B: Solo I e III + C: Solo II e III + D: Solo III + input_correct_responses: + - D + input_question: "Quale delle seguenti condizioni garantisce la conservazione del\ + \ momento angolare? I. Conservazione della quantit\xE0 di moto lineare II. Forza\ + \ esterna netta nulla III. Coppia esterna netta nulla" + - input_choice_list: + A: "La pressione \xE8 in un nodo, ma lo spostamento delle particelle \xE8 in\ + \ un antinodo." + B: "La pressione \xE8 all'antinodo, ma lo spostamento delle particelle \xE8\ + \ al nodo." + C: La pressione e lo spostamento delle particelle sono entrambi ai nodi. + D: La pressione e lo spostamento delle particelle sono entrambi agli antinodi. + input_correct_responses: + - B + input_question: "Un tubo pieno d'aria \xE8 chiuso ad un'estremit\xE0.\ + \ Nel tubo viene prodotta un'onda stazionaria, che fa suonare una nota.\ + \ Quale delle seguenti \xE8 un'affermazione corretta sulle propriet\xE0\ + \ dell'onda all'estremit\xE0 chiusa del tubo?" + - input_choice_list: + A: 02:00 + B: 6:00 DI MATTINA + C: 00:00 + D: 24A + input_correct_responses: + - D + input_question: "Una fotocellula con funzione di lavoro \u03D5 = 2eV \xE8 collegata\ + \ ad un resistore in serie. La luce di frequenza f = 1 \xD7 10^15 Hz colpisce\ + \ una piastra metallica della fotocellula. Se la potenza della luce \xE8 P =\ + \ 100 W, qual \xE8 la corrente che attraversa il resistore?" + - input_choice_list: + A: 10 W + B: 30 W + C: 60 W + D: 240 W + input_correct_responses: + - D + input_question: "Un forno a microonde \xE8 collegato a una presa da 120 V e assorbe\ + \ una corrente di 2 A. A quale velocit\xE0 viene utilizzata l'energia del\ + \ forno a microonde?" + - input_choice_list: + A: 3,5 J + B: 6,0 J + C: 22,5 J + D: 40 J + input_correct_responses: + - B + input_question: "Una carica puntiforme, Q = +1 mC, \xE8 fissata all'origine.\ + \ Quanto lavoro \xE8 necessario per spostare una carica, Q = +8 \xB5C, dal punto\ + \ (0,4 metri) al punto (3 metri, 0)?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_physics +tag: mmlu_it_llama_stem_tasks +task: mmlu_it_llama_high_school_physics +task_alias: high_school_physics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_psychology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_psychology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f8e0c40c71146a7bfe83f7f9197b20c9385e8b5d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_psychology.yaml @@ -0,0 +1,63 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: un forte Super-Io. + B: bassa autostima. + C: bassa autoefficacia. + D: un locus of control interno. + input_correct_responses: + - D + input_question: "Ani crede che i suoi atteggiamenti e comportamenti giochino un\ + \ ruolo centrale in ci\xF2 che le accade. \xC8 probabile che tale convinzione\ + \ sia associata a" + - input_choice_list: + A: identificare le cause e le soluzioni dei problemi presentati dal cliente + B: "identificare ed eliminare le cause delle difficolt\xE0 del consultato nella\ + \ gestione di un problema" + C: "stabilire una gerarchia di autorit\xE0 per consentire un processo decisionale\ + \ efficace" + D: "presentare una linea d'azione unica, ben definita e inequivocabile affinch\xE9\ + \ il consulente possa superare i deficit di competenze" + input_correct_responses: + - B + input_question: "Secondo il modello di Caplan della consultazione del caso centrata\ + \ sul consultato, il consulente \xE8 principalmente interessato a" + - input_choice_list: + A: I messaggi vengono inviati dal talamo direttamente all'amigdala. + B: I messaggi vengono inviati dal talamo ai percorsi "cosa" e "dove". + C: I messaggi vengono inviati dal sistema nervoso parasimpatico alla corteccia + cerebrale. + D: I messaggi vengono inviati dai lobi frontali alla ghiandola pituitaria. + input_correct_responses: + - A + input_question: "Mentre nuota nell'oceano, Ivan viene spaventato da un'ombra\ + \ scura nell'acqua ancor prima che abbia la possibilit\xE0 di identificare\ + \ di cosa si tratta. Le connessioni sinaptiche che hanno luogo durante questo\ + \ episodio di paura sono meglio descritte da quale dei seguenti?" + - input_choice_list: + A: Date al bambino un periodo di prova nel nuovo ambiente + B: Avvisare per iscritto i genitori + C: Ottieni l'approvazione del consiglio scolastico + D: Ottieni il consenso dei genitori + input_correct_responses: + - B + input_question: "Secondo l\u2019Individuals with Disabilities Education Improvement\ + \ Act, quale delle seguenti azioni deve fare un\u2019agenzia educativa prima\ + \ di modificare l\u2019inserimento scolastico di uno studente con disabilit\xE0\ + ?" + - input_choice_list: + A: Socioculturale + B: clinico + C: cognitivo + D: comportamentista + input_correct_responses: + - C + input_question: "Pascale \xE8 interessata alle strategie di elaborazione che i\ + \ bambini utilizzano per apprendere nuove informazioni. In che tipo di psicologo\ + \ sarebbe meglio classificare Pascale?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_psychology +tag: mmlu_it_llama_social_sciences_tasks +task: mmlu_it_llama_high_school_psychology +task_alias: high_school_psychology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_statistics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_statistics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4c5b9cd048df68ec78531ea9916d9633ef2789da --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_statistics.yaml @@ -0,0 +1,72 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Se la pendenza della retta di regressione \xE8 esattamente 1, allora la\ + \ correlazione \xE8 esattamente 1." + B: "Se la correlazione \xE8 0, la pendenza della retta di regressione non \xE8\ + \ definita." + C: Invertendo quale variabile si chiama x e quale si chiama y si cambia il segno + della correlazione. + D: "La correlazione r \xE8 uguale alla pendenza della linea di regressione quando\ + \ i punteggi z per la variabile y vengono tracciati rispetto ai punteggi z\ + \ per la variabile x." + input_correct_responses: + - D + input_question: "Quale delle seguenti \xE8 un'affermazione corretta sulla\ + \ correlazione?" + - input_choice_list: + 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: Non ci sono informazioni sufficienti per rispondere a questa domanda. + input_correct_responses: + - D + input_question: "Supponiamo che X e Y siano variabili casuali con E(X) = 37, var(X)\ + \ = 5, E(Y) = 62 e var(Y) = 12. Quali sono il valore atteso e la varianza della\ + \ variabile casuale X + S\xEC?" + - input_choice_list: + A: "La percentuale di alberi che hanno subito pi\xF9 del 50% di danni a causa\ + \ del gelo." + B: Il numero di alberi colpiti dal gelo. + C: Il numero di alberi campionati dal boschetto. + D: "Per ogni albero campionato, se ha subito pi\xF9 del 50% di danni o al massimo\ + \ il 50% di danni." + input_correct_responses: + - D + input_question: "Dopo l'allarme gelo, il proprietario di un grande aranceto\ + \ ha chiesto ai suoi lavoratori di spruzzare acqua su tutti i suoi alberi. Si\ + \ supponeva che l'acqua si congelasse e formasse uno strato protettivo di\ + \ ghiaccio attorno ai fiori d'arancio. Tuttavia il proprietario sospettava\ + \ che alcuni alberi avessero subito notevoli danni a causa del gelo. Per stimare\ + \ la percentuale di alberi che hanno subito pi\xF9 del 50% di danni a causa\ + \ del gelo, ha prelevato un campione casuale di 100 alberi dal suo boschetto.\ + \ Qual \xE8 la variabile di risposta in questo esperimento?" + - input_choice_list: + A: Media 518 grammi; deviazione standard 7,0 grammi + B: Media 518 grammi; deviazione standard 3,5 grammi + C: Media 518 grammi; deviazione standard 6,1 grammi + D: Media 394 grammi; deviazione standard 6,1 grammi + input_correct_responses: + - C + input_question: 'Un nuovo smartwatch viene prodotto in una parte della fabbrica, + quindi assicurato per la spedizione in un'altra parte indipendente della + fabbrica. Il peso dello smartwatch ha una media di 62 grammi e una deviazione + standard di 1,0 grammi. Il peso dell'imballaggio (scatola, manuale d'uso, + pluriball, ecc.) ha una media di 456 grammi e una deviazione standard di 6 grammi. + Insieme, la distribuzione del peso dello smartwatch e della sua confezione avrebbe + la seguente media e deviazione standard:' + - input_choice_list: + A: Io, II + B: II, III + C: III, I + D: III, II + input_correct_responses: + - D + input_question: "Quale dei seguenti insiemi ha la deviazione standard pi\xF9 piccola?\ + \ Quale ha il pi\xF9 grande? I: {1,2,3} II: {-10,10} III: {100}\\n" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_statistics +tag: mmlu_it_llama_stem_tasks +task: mmlu_it_llama_high_school_statistics +task_alias: high_school_statistics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_us_history.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_us_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f9218fe901b4b55ac9fd2c7fdae25ccddbecbf72 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_us_history.yaml @@ -0,0 +1,163 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Risposta organizzata alla ribellione di Bacon + B: Risposta federale alla ribellione di Shays + C: Risposta federale alla ribellione del whisky + D: Risposta federale alla ribellione di Pontiac + input_correct_responses: + - C + input_question: "Questa domanda si riferisce alle seguenti informazioni. "La\ + \ societ\xE0 in ogni stato \xE8 una benedizione, ma il governo, anche nel suo\ + \ stato migliore, non \xE8 altro che un male necessario; nel suo stato peggiore,\ + \ un male intollerabile; perch\xE9 quando soffriamo, o siamo esposti alle stesse\ + \ miserie da parte di un governo, cosa che potremmo aspettarci In un paese senza\ + \ governo, la nostra calamit\xE0 \xE8 accresciuta se riflettiamo sul fatto che\ + \ siamo noi a fornire i mezzi con cui soffriamo. Il governo, come l\u2019abito,\ + \ \xE8 il distintivo dell\u2019innocenza perduta; i palazzi dei re sono costruiti\ + \ sulle rovine delle pergole del paradiso. se gli impulsi della coscienza fossero\ + \ chiari, uniformi e irresistibilmente obbediti, l\u2019uomo non avrebbe bisogno\ + \ di altro legislatore; ma non essendo cos\xEC, egli ritiene necessario cedere\ + \ una parte della sua propriet\xE0 per fornire i mezzi per la protezione del\ + \ resto; e a ci\xF2 \xE8 indotto dalla stessa prudenza che in ogni altro caso\ + \ gli consiglia di scegliere il minimo tra due mali. Pertanto, essendo la sicurezza\ + \ il vero disegno e fine del governo, ne consegue indiscutibilmente che qualunque\ + \ forma di essa appaia pi\xF9 idonea a garantire per noi, con la minima spesa\ + \ e il massimo beneficio, \xE8 preferibile a tutti gli altri." Thomas Paine,\ + \ Common Sense, 1776 Quale delle seguenti "miserie" a cui si \xE8\ + \ accennato sopra \xE8 stata maggiormente condannata dagli antifederalisti dell'era\ + \ post-rivoluzionaria?" + - input_choice_list: + A: Tensioni tra le politiche britanniche e le aspirazioni dei coloni nordamericani. + B: Tensioni tra gli indiani d'America alleati con i francesi e quelli alleati + con gli inglesi. + C: Tensioni tra afroamericani liberati e piantatori bianchi. + D: "Tensioni tra coloni dell'entroterra ed \xE9lite nell'America coloniale." + input_correct_responses: + - D + input_question: "Questa domanda si riferisce alle seguenti informazioni. "Poich\xE9\ + \ la nostra ultima condotta a Conestoga Manor e a Lancaster ha dato luogo a\ + \ molte speculazioni e a una grande diversit\xE0 di sentimenti in questo e nei\ + \ governi vicini; alcuni lo hanno rivendicato e altri lo hanno condannato; alcuni\ + \ hanno caritatevolmente alleviato il Crimine, e altri maliziosamente lo dipingono\ + \ nel modo pi\xF9 odioso e colori detestabili, riteniamo nostro dovere esporre\ + \ al pubblico l'intera questione come ci \xE8 apparsa, e ci appare ancora...\ + \ "Se queste cose non bastano a dimostrare un ingiustificabile attaccamento\ + \ dei quaccheri agli indiani selvaggi , una ferma risoluzione di fare amicizia\ + \ con loro e un'assoluta insensibilit\xE0 alle sofferenze umane, consideriamo\ + \ alcuni fatti pi\xF9 recenti. Quando l'estate scorsa abbiamo scoperto che\ + \ probabilmente non avremmo ricevuto assistenza dal governo, alcuni volontari\ + \ sono partiti a nostre spese, determinati a scacciare i nostri nemici dai nostri\ + \ confini; e quando ci avvicinammo alla grande Isola, capimmo che un certo numero\ + \ dei loro Guerrieri erano usciti contro le nostre Frontiere. Dopodich\xE9 siamo\ + \ tornati, li abbiamo raggiunti e abbiamo combattuto con loro a Munfey Hill,\ + \ dove abbiamo perso alcuni dei nostri uomini e ucciso alcuni dei loro guerrieri,\ + \ salvando cos\xEC le nostre frontiere da questa storia in un'altra spedizione.\ + \ Ma non appena avevamo distrutto le loro provviste sulla grande isola e rovinato\ + \ il loro commercio con la brava gente di Betlemme, questi stessi indiani, che\ + \ erano giustamente sospettati di aver ucciso i nostri amici nella contea di\ + \ Northampton, furono presi dall'influenza di alcuni quaccheri. sotto la\ + \ protezione del governo per proteggerli dai risentimenti degli amici e dei\ + \ parenti degli assassinati e per sostenerli durante l'inverno." \u2014\ + "Apology of the Paxton Boys" (opuscolo), 1764 (Nota: "apology"\ + \ in questo contesto dovrebbe essere letto come una spiegazione, non come un'ammissione\ + \ di colpa o di rammarico.) I sentimenti espressi nella spiegazione di cui sopra\ + \ riflettono quali delle tensioni in corso durante il periodo coloniale della\ + \ storia americana?" + - input_choice_list: + A: "l\u2019emendamento sulla parit\xE0 di diritti" + B: suffragio universale + C: diritti degli Stati + D: divieto + input_correct_responses: + - B + input_question: "Questa domanda si riferisce alle seguenti informazioni. "Nel\ + \ nuovo Codice di Leggi che suppongo sar\xE0 necessario che tu faccia, desidero\ + \ che ti ricordi delle Signore, e che tu sia pi\xF9 generoso e favorevole verso\ + \ loro rispetto ai tuoi antenati. Non mettere un potere cos\xEC illimitato nelle\ + \ mani dei Mariti . Ricorda che tutti gli uomini sarebbero tiranni se potessero.\ + \ Se non viene prestata particolare cura e attenzione alle donne, siamo determinati\ + \ a fomentare una ribellione e non ci riterremo vincolati da alcuna legge in\ + \ cui non abbiamo voce o rappresentanza. Abigail Adams, in una lettera a John\ + \ Adams, 1776 "La legislazione speciale per le donne ci ha posto in una\ + \ posizione molto anomala. Le donne investite dei diritti di cittadinanza in\ + \ una sezione - elettori, giurati, titolari di cariche - che attraversano una\ + \ linea immaginaria, sono soggetti nei successivi. In alcuni Stati, una donna\ + \ sposata pu\xF2 detenere propriet\xE0 e trattare affari a proprio nome; in\ + \ altri, i suoi guadagni appartengono a suo marito. In alcuni Stati, una donna\ + \ pu\xF2 testimoniare contro suo marito, fare causa ed essere citata in giudizio\ + \ nei tribunali; in altri, non ha alcun risarcimento in caso di danno alla persona,\ + \ alla propriet\xE0 o al carattere. In caso di divorzio per adulterio del marito,\ + \ la moglie innocente non \xE8 ritenuta titolare di alcun diritto sui figli\ + \ o sulla propriet\xE0, a meno che per decreto speciale del tribunale. Ma in\ + \ nessuno Stato dell'Unione la moglie ha diritto sulla propria persona,\ + \ o su una parte dei guadagni comuni della convivenza durante la vita del marito.\ + \ In alcuni Stati le donne possono entrare nel scuole di diritto e pratica nei\ + \ tribunali; in altri sono vietati. In alcune universit\xE0 le ragazze godono\ + \ di pari vantaggi educativi rispetto ai ragazzi, mentre molte delle istituzioni\ + \ pi\xF9 orgogliose del paese negano loro l\u2019ammissione, sebbene i figli\ + \ della Cina, del Giappone e dell\u2019Africa vi siano i benvenuti. Ma i privilegi\ + \ gi\xE0 concessi nei vari Stati non sono affatto sicuri." Susan B. Anthony,\ + \ "Dichiarazione dei diritti delle donne", 4 luglio 1876 I sentimenti\ + \ espressi nel secondo estratto da Susan B. Anthony sono molto probabilmente\ + \ a sostegno Di" + - input_choice_list: + A: Gli americani devono massimizzare il loro vantaggio tecnologico in Vietnam. + B: I bombardamenti americani in Vietnam stanno portando passo dopo passo al + progresso della guerra. + C: "Il bombardamento americano in Vietnam \xE8 un fallimento." + D: "L\u2019America non deve cedere al disfattismo riguardo alla guerra in Vietnam." + input_correct_responses: + - C + input_question: "Questa domanda si riferisce alle seguenti informazioni. I nostri\ + \ leader parlano di fermare l'aggressione dal nord, ma questa \xE8 stata\ + \ una lotta tra gruppi di vietnamiti finch\xE9 non siamo intervenuti. Sembriamo\ + \ decisi a salvare i vietnamiti da Ho Chi Minh, anche a costo di ucciderli e\ + \ demolire il loro paese per farlo. Mentre i nativi osservano i villaggi bombardati,\ + \ le donne e i bambini bruciati dal napalm, i raccolti di riso distrutti e le\ + \ citt\xE0 invase dal nostro personale militare, senza dubbio dicono segretamente\ + \ della guerriglia vietcong e delle forze americane: "Una piaga su entrambe\ + \ le vostre case ." \u2026 Fermare i bombardamenti, a nord e a sud, porre\ + \ fine alle ricerche e alla distruzione delle operazioni offensive e limitare\ + \ la nostra azione militare allo svolgimento di operazioni sul terreno. I bombardamenti\ + \ sul nord non sono riusciti a fermare o a frenare seriamente il flusso di truppe\ + \ verso sud e potrebbero, di fatto, aver indotto Hanoi ad uno sforzo bellico\ + \ molto maggiore. \u2014Il senatore George McGovern, "The Lessons of Vietnam",\ + \ 25 aprile 1967 Quale delle seguenti opinioni degli anni '60 riflette pi\xF9\ + \ direttamente la prospettiva del discorso di George McGovern?" + - input_choice_list: + A: Abigail Adams + B: Clara Barton + C: Shirley Temple + D: Hillary Clinton + input_correct_responses: + - B + input_question: "Questa domanda si riferisce alle seguenti informazioni. Non vengo\ + \ per sollecitare pretese personali, n\xE9 per cercare vantaggi individuali;\ + \ Appaio come l'avvocato di coloro che non possono difendere la propria\ + \ causa; Vengo come amico di coloro che sono abbandonati, oppressi e desolati.\ + \ Nella Provvidenza di Dio, io sono la voce del maniaco le cui grida penetranti\ + \ dalle tetre segrete delle vostre prigioni non penetrano nelle vostre Aule\ + \ della Legislazione. Io sono la Speranza dei poveri esseri impazziti che si\ + \ struggono nelle celle, nei box, nelle gabbie e nelle stanze desolate delle\ + \ vostre povere case. Io sono la Rivelazione di centinaia di creature lamentose\ + \ e sofferenti, nascoste nelle vostre dimore private, in recinti e cabine, chiuse\ + \ fuori, tagliate fuori da ogni influenza curativa, da ogni cura che risana\ + \ la mente... Le loro storie malinconiche potrebbero essere diffuse davanti\ + \ a voi? come rivelato al mio spirito addolorato durante gli ultimi tre mesi,\ + \ con quanta rapidit\xE0 e seriet\xE0 cercheresti i mezzi di sollievo pi\xF9\ + \ approvati; quanto insignificanti, quanto insignificanti, al confronto, sembrerebbero\ + \ i sacrifici che ti vengono richiesti; come potrebbero diminuire di valore\ + \ pochi centesimi e dollari, raccolti da ciascun cittadino, in confronto ai\ + \ benefici certi e all'immenso bene che sarebbero assicurati ai pazzi sofferenti...\ + \ mediante la consacrazione e l'applicazione di un fondo sufficiente alla\ + \ costruzione? di un ospedale adatto... \u2014Dorothea Dix, Memorial Soliciting\ + \ a State Hospital for the Protection and Cure of the Insane, presentato all'Assemblea\ + \ Generale della Carolina del Nord, novembre 1848 Dorothea Dix pu\xF2 essere\ + \ meglio paragonata a chi?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_us_history +tag: mmlu_it_llama_humanities_tasks +task: mmlu_it_llama_high_school_us_history +task_alias: high_school_us_history diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_world_history.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_world_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a243b7f0066223f9aa329342df5d91e168ca207f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_high_school_world_history.yaml @@ -0,0 +1,104 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: induismo + B: buddismo + C: Shintoismo + D: Zoroastrismo + input_correct_responses: + - A + input_question: "Questa domanda si riferisce alle seguenti informazioni. Contiene\ + \ tutte le opere e i desideri e tutti i profumi e tutti i gusti. Avvolge l'universo\ + \ intero e nel silenzio \xE8 amorevole con tutti. Questo \xE8 lo Spirito che\ + \ \xE8 nel mio cuore, questo \xE8 Brahman. A lui verr\xF2 quando andr\xF2 oltre\ + \ questa vita, e a lui verr\xE0 colui che ha fede e non dubita. \u2014Le Upanishad,\ + \ India, ca. 1000 a.C. A quale religione appartiene molto probabilmente chi\ + \ parla?" + - input_choice_list: + A: La rivoluzione industriale + B: Decolonizzazione + C: Associazioni regionali di libero scambio + D: Autarchia + input_correct_responses: + - B + input_question: "Questa domanda si riferisce alle seguenti informazioni. "La\ + \ lotta contro il neocolonialismo non mira ad escludere il capitale del mondo\ + \ sviluppato dall'operare nei paesi meno sviluppati. Essa mira a impedire\ + \ che il potere finanziario dei paesi sviluppati venga utilizzato in modo tale\ + \ da impoverire i meno sviluppati. Il non allineamento, come praticato dal Ghana\ + \ e da molti altri paesi, si basa sulla cooperazione con tutti gli Stati, siano\ + \ essi capitalisti, socialisti o ad economia mista. Tale politica, quindi, implica\ + \ investimenti esteri da parte dei paesi capitalisti, ma deve essere investito\ + \ secondo un piano nazionale elaborato dal governo dello Stato non allineato\ + \ tenendo conto dei propri interessi. La questione non \xE8 quale rendimento\ + \ ottiene l'investitore straniero dai suoi investimenti... La questione\ + \ \xE8 di potere. Uno Stato in la morsa del neocolonialismo non \xE8 padrona\ + \ del proprio destino." Kwame Nkrumah, Neo-Colonialism, 1965 Quale dei\ + \ seguenti fornisce il contesto migliore per gli scritti di Nkrumah?" + - input_choice_list: + A: Accettazione sociale del lavoro minorile + B: Aspettativa di vita in calo in Germania + C: Critiche ai dazi commerciali tedeschi + D: Effetti negativi attribuiti al capitalismo industriale + input_correct_responses: + - D + input_question: "Questa domanda si riferisce alle seguenti informazioni. "La\ + \ vera lamentela dell'operaio \xE8 l'insicurezza della sua esistenza;\ + \ non \xE8 sicuro che avr\xE0 sempre lavoro, non \xE8 sicuro che sar\xE0 sempre\ + \ sano, e prevede che un giorno sar\xE0 vecchio e inabile al lavoro Se cade\ + \ in povert\xE0, anche solo a causa di una malattia prolungata, \xE8 del tutto\ + \ indifeso, messo alla prova da solo, e la societ\xE0 attualmente non riconosce\ + \ alcun obbligo reale nei suoi confronti oltre al consueto aiuto ai poveri,\ + \ anche se ha "Ho sempre lavorato fedelmente e diligentemente. Ma il solito\ + \ aiuto ai poveri lascia molto a desiderare, soprattutto nelle grandi citt\xE0\ + , dove \xE8 molto peggio che in campagna." Otto von Bismarck, 1884 Otto\ + \ von Bismarck probabilmente fece questo discorso in reazione a quale dei seguenti\ + \ problemi?" + - input_choice_list: + A: Il mantenimento della supremazia militare a tutti i costi + B: Crescenti tensioni tra sette religiose + C: "Fattori che portarono al crollo dell\u2019Impero Ottomano" + D: Sforzi di pace tra gli imperi islamici + input_correct_responses: + - B + input_question: "Questa domanda si riferisce alle seguenti informazioni. "In\ + \ effetti, poich\xE9 sia le fatwa di illustri [studiosi] che basano la loro\ + \ opinione sia sulla ragione che sulla tradizione, sia il consenso della comunit\xE0\ + \ sunnita concordano sul fatto che l'antico obbligo di estirpazione, sterminio\ + \ ed espulsione del male innovativo deve essere lo scopo del nostro esaltato\ + \ aspirazione, poich\xE9 "Lo zelo religioso \xE8 una vittoria della Fede\ + \ di Dio Benefico"; poi, secondo le parole del Profeta (Pace su di lui!)\ + \ "Chiunque introdurr\xE0 cattive innovazioni nel nostro ordine sia espulso"\ + \ e "Chiunque non qualsiasi cosa contraria al nostro ordine deve essere\ + \ espulsa, "l'azione \xE8 diventata necessaria ed urgente..."\ + \ Lettera del sultano ottomano Selim I allo sci\xE0 safavide Ismail I, 1514\ + \ La lettera di Selim I \xE8 pi\xF9 chiaramente un esempio di quale dei seguenti?" + - input_choice_list: + A: Una rottura delle rotte commerciali attraverso il crollo della struttura + statale stabilita + B: Un aumento della popolazione mondiale attraverso una maggiore abbondanza + di cibo + C: La diffusione dei sistemi di credenze cinesi e indiani nel mondo + D: Un aumento dei disordini sociali + input_correct_responses: + - B + input_question: "Questa domanda si riferisce alle seguenti informazioni. "Almeno\ + \ una delle societ\xE0 [del mondo] dovrebbe in qualche modo aumentare enormemente\ + \ la propria produttivit\xE0 [al fine di raggiungere l'egemonia globale].\ + \ Questo salto quantico dovrebbe essere fatto prima delle varie rivoluzioni\ + \ scientifiche, tecnologiche, agricole e industriali su cui si basa la nostra\ + \ Il mondo dopo il salto quantico resta. Ci\xF2 potrebbe essere realizzato solo\ + \ sfruttando gli ecosistemi, le risorse minerarie e le risorse umane di interi\ + \ continenti al di fuori dei territori della societ\xE0 che ha compiuto il salto.\ + \ L\u2019Europa occidentale ha fatto proprio questo attraverso la sua brutalit\xE0\ + , le armi e le armi. , cosa pi\xF9 importante, per fortuna geografica ed ecologica."\ + \ Copyright \xA9 2015Cambridge University Press. Alfred Crosby, storico, Ecological\ + \ Imperialism, 2004 Il "salto quantico" menzionato nel passaggio ha\ + \ contribuito pi\xF9 direttamente a quale dei seguenti sviluppi nel periodo\ + \ 1450-1750 d.C.?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_world_history +tag: mmlu_it_llama_humanities_tasks +task: mmlu_it_llama_high_school_world_history +task_alias: high_school_world_history diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_human_aging.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_human_aging.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0f8d4d6f637892a8a39bacab9482b905ec8a5d65 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_human_aging.yaml @@ -0,0 +1,53 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Un uomo o una donna asiatica + B: Un uomo ispanico + C: Una donna afroamericana + D: Un uomo o una donna bianca + input_correct_responses: + - C + input_question: "Quale delle seguenti persone ha maggiori probabilit\xE0 di rimanere\ + \ a casa da sola, a partire dal 2019?" + - input_choice_list: + A: Vantaggio dell'adolescenza + B: Urto della reminiscenza + C: Memoriale commemorativo + D: Picco di recupero quadratico + input_correct_responses: + - B + input_question: "La scoperta che gli adulti tendono a ricordare gli eventi della\ + \ loro adolescenza meglio che quelli di altri periodi della loro vita viene\ + \ definita \u201C" + - input_choice_list: + A: Texas + B: California + C: Hawaii + D: Vermont + input_correct_responses: + - A + input_question: "Quando gli anziani si trasferiscono in un nuovo stato dopo il\ + \ pensionamento, quale delle seguenti \xE8 la destinazione pi\xF9 probabile?" + - input_choice_list: + A: Nicotina + B: Catrame + C: Monossido di carbonio + D: Particelle di fumo + input_correct_responses: + - B + input_question: "Quale elemento nel fumo di tabacco \xE8 responsabile del cancro?" + - input_choice_list: + A: "Una donna ispanoamericana pi\xF9 anziana" + B: Una donna afroamericana anziana + C: "Una donna asiatica americana pi\xF9 anziana" + D: "Una donna nativa americana pi\xF9 anziana" + input_correct_responses: + - C + input_question: "A parit\xE0 di condizioni, quale delle seguenti persone ha maggiori\ + \ probabilit\xE0 di soffrire di osteoporosi?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_human_aging +tag: mmlu_it_llama_other_tasks +task: mmlu_it_llama_human_aging +task_alias: human_aging diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_human_sexuality.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_human_sexuality.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e473707f69e8d2101586911cd85582f52f709f2e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_human_sexuality.yaml @@ -0,0 +1,53 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: durante il primo trimestre + B: durante il secondo trimestre + C: durante il terzo trimestre + D: per tutta la gravidanza + input_correct_responses: + - A + input_question: "La nausea mattutina \xE8 in genere un problema:" + - input_choice_list: + A: un ego forte + B: un Super-Io debole + C: "un'identit\xE0 debole" + D: un forte Super-Io + input_correct_responses: + - B + input_question: 'Una donna che sa di avere un herpes attivo e una sifilide non + trattata ma continua a fare sesso senza informare i suoi partner della sua condizione + ha, in termini psicoanalitici:' + - input_choice_list: + A: il fatto che non hanno un periodo refrattario. + B: la risposta degli strati interni della vagina. + C: avere orgasmi alternati in luoghi diversi. + D: il punto G. + input_correct_responses: + - A + input_question: "La capacit\xE0 delle donne di avere orgasmi multipli \xE8 dovuta\ + \ principalmente a:" + - input_choice_list: + A: rapporto sessuale + B: il cerchio sussulta + C: esibizionismo + D: toccarsi i genitali a vicenda + input_correct_responses: + - A + input_question: "La natura delle attivit\xE0 omosessuali che si verificano durante\ + \ la preadolescenza include tutte le seguenti, tranne quale?" + - input_choice_list: + A: eiaculazione precoce + B: eiaculazione inibita + C: disturbo erettile + D: disturbo eiaculatorio + input_correct_responses: + - C + input_question: "Il disturbo pi\xF9 comune tra gli uomini che cercano una terapia\ + \ sessuale \xE8:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_human_sexuality +tag: mmlu_it_llama_social_sciences_tasks +task: mmlu_it_llama_human_sexuality +task_alias: human_sexuality diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_international_law.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_international_law.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6f5175eaf24b3d137df58a677b6014e612235210 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_international_law.yaml @@ -0,0 +1,71 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "L\u2019articolo 2, paragrafo 4 riguarda solo la forza armata" + B: "L\u2019articolo 2, paragrafo 4, comprende tutti i tipi di forza, comprese\ + \ le sanzioni" + C: "L\u2019articolo 2, paragrafo 4, comprende tutte le ingerenze negli affari\ + \ interni degli Stati" + D: "L'articolo 2, paragrafo 4, comprende la forza diretta esclusivamente\ + \ contro l'integrit\xE0 territoriale di uno Stato" + input_correct_responses: + - A + input_question: "Quali tipi di forza vietano l\u2019articolo 2, paragrafo 4, della\ + \ Carta delle Nazioni Unite?" + - input_choice_list: + A: Se una parte in un caso controverso dinanzi all'ICJ non ha una seduta + nazionale come giudice, ha il diritto di nominare qualcuno come giudice esclusivamente + per quel caso, con il titolo di giudice ad hoc + B: "Il giudice ad hoc \xE8 il membro del collegio giudicante della Corte internazionale\ + \ di giustizia con voto decisivo" + C: "Il giudice ad hoc \xE8 un giudice surrogato, nel caso in cui un giudice\ + \ venga squalificato o muoia" + D: "Il giudice ad hoc \xE8 il giudice che ciascuna parte nominer\xE0 sempre\ + \ in ogni causa controversa" + input_correct_responses: + - A + input_question: "Qual \xE8 il giudice ad hoc?" + - input_choice_list: + A: "Questa \xE8 una riserva accettabile se la legislazione del paese che effettua\ + \ la riserva utilizza una definizione diversa" + B: "Si tratta di una riserva inaccettabile poich\xE9 contravviene all\u2019\ + oggetto e allo scopo dell\u2019ICCPR" + C: "Si tratta di una riserva inaccettabile poich\xE9 la definizione di tortura\ + \ contenuta nell\u2019ICCPR \xE8 coerente con il diritto internazionale consuetudinario" + D: "Questa \xE8 una riserva accettabile perch\xE9 secondo il diritto internazionale\ + \ generale gli Stati hanno il diritto di apporre riserve ai trattati" + input_correct_responses: + - B + input_question: "Una riserva alla definizione di tortura contenuta nell\u2019\ + ICCPR sarebbe accettabile nella pratica contemporanea?" + - input_choice_list: + A: "Il consenso pu\xF2 servire come circostanza escludente l'illegittimit\xE0\ + \ ogni volta che viene prestato" + B: "Il consenso non pu\xF2 mai costituire una circostanza ostativa all\u2019\ + illegittimit\xE0" + C: "Il consenso pu\xF2 costituire una circostanza escludente l'illegittimit\xE0\ + , purch\xE9 il consenso sia valido e nella misura in cui la condotta rimanga\ + \ nei limiti del consenso prestato" + D: "Il consenso pu\xF2 sempre costituire una circostanza ostativa all'illegittimit\xE0\ + , qualunque sia l'organo dello Stato che lo presta" + input_correct_responses: + - C + input_question: "Quando il \u201Cconsenso\u201D pu\xF2 fungere da circostanza\ + \ ostativa all'illegittimit\xE0 di una condotta dello Stato?" + - input_choice_list: + A: Il consenso di uno Stato ad essere vincolato si esprime solo mediante ratifica + B: "Il consenso di uno Stato ad essere vincolato da un trattato pu\xF2 essere\ + \ espresso mediante firma, ratifica, accettazione, approvazione o adesione" + C: Il consenso di uno Stato ad essere vincolato si esprime mediante la firma + D: "Il consenso di uno Stato ad essere vincolato \xE8 espresso con qualunque\ + \ mezzo scelga" + input_correct_responses: + - B + input_question: "Come pu\xF2 essere espresso il consenso di uno Stato ad essere\ + \ vincolato?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_international_law +tag: mmlu_it_llama_humanities_tasks +task: mmlu_it_llama_international_law +task_alias: international_law diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_jurisprudence.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_jurisprudence.yaml new file mode 100644 index 0000000000000000000000000000000000000000..01bf4a23857c78861be7b1a4b7a057987092da34 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_jurisprudence.yaml @@ -0,0 +1,54 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Il POP sceglierebbe l\u2019uguaglianza al di sopra della libert\xE0." + B: "Il POP opterebbe per la strategia della \u201Cmassimizzazione\u201D." + C: "Il POP opterebbe per il \u201Cprincipio di differenza\u201D." + D: "Il POP rifiuterebbe il \u201Csistema della libert\xE0 naturale\u201D." + input_correct_responses: + - A + input_question: "Quale posizione, secondo Rawls, avr\xE0 meno probabilit\xE0 di\ + \ essere adottata dal POP (persone nella posizione originaria)?" + - input_choice_list: + A: "massimizzazione della libert\xE0 individuale" + B: fornendo una base per un compromesso + C: mantenendo la pace + D: promuovere i principi del sistema della libera impresa + input_correct_responses: + - D + input_question: Le funzioni della legge includono tutte, tranne quale delle seguenti? + - input_choice_list: + A: "Autorit\xE0." + B: Carisma. + C: Cooperazione. + D: Capitalismo. + input_correct_responses: + - D + input_question: Quale parola riassume meglio la spiegazione di Weber dello sviluppo + del diritto formalmente razionale? + - input_choice_list: + A: Legge naturale + B: Analitico + C: Storico + D: Sociologico + input_correct_responses: + - A + input_question: "La ________ Scuola di giurisprudenza postula che la legge si\ + \ basa su ci\xF2 che \xE8 "corretto"." + - input_choice_list: + A: "La lettera \xE8 un'offerta di vendita" + B: "Un'offerta valida non pu\xF2 essere fatta per lettera." + C: "La lettera contiene un'offerta valida che terminer\xE0 entro un termine\ + \ ragionevole." + D: Nella lettera manca uno degli elementi essenziali di un'offerta. + input_correct_responses: + - D + input_question: 'Iverson Jewellers scrisse una lettera a Miller: "Abbiamo + ricevuto un orologio Rolox a carica automatica eccezionalmente raffinato che + ti venderemo a un prezzo molto favorevole".' +include: _continuation_template_yaml +process_docs: !function utils.process_docs_jurisprudence +tag: mmlu_it_llama_humanities_tasks +task: mmlu_it_llama_jurisprudence +task_alias: jurisprudence diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_logical_fallacies.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_logical_fallacies.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3ac923ff8fe00784fe0e0fa1b0870ef4f666eb3b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_logical_fallacies.yaml @@ -0,0 +1,60 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: tu quoque + B: risata del cavallo + C: argomento contro la persona + D: ignoratio elenchi + input_correct_responses: + - C + input_question: Se qualcuno attacca il carattere dell'avversario, invece di + rispondere alle argomentazioni di quell'avversario, la prima persona ha + probabilmente commesso quale dei seguenti errori? + - input_choice_list: + A: "sostenere che qualcosa \xE8 inferiore solo perch\xE9 non fa qualcosa che\ + \ non avrebbe mai dovuto fare." + B: "includere pi\xF9 di una affermazione nella proposizione e trattare la prova\ + \ di una affermazione come prova di tutte le affermazioni." + C: trarre una conclusione prima di esaminare le prove e considerare solo le + prove che supportano tale conclusione. + D: "porre una domanda che includa un presupposto non dimostrato o pi\xF9 di\ + \ una domanda, rendendo cos\xEC priva di significato una risposta semplice\ + \ s\xEC o no." + input_correct_responses: + - D + input_question: La complessa fallacia della domanda consiste in + - input_choice_list: + A: La premessa minore deve negare l'antecedente + B: La premessa maggiore deve affermare il conseguente + C: Il termine medio deve essere utilizzato in almeno una premessa in senso universale + o assoluto + D: Tutti i precedenti + input_correct_responses: + - C + input_question: "Quale delle seguenti affermazioni \xE8 vera per un sillogismo\ + \ categorico valido?" + - input_choice_list: + A: Divisione + B: Composizione + C: Appello alla persona + D: Appello all'ignoranza + input_correct_responses: + - B + input_question: "Sostenere che ci\xF2 che \xE8 vero per le parti deve essere vero\ + \ per il tutto \xE8 un errore..." + - input_choice_list: + A: "scarsa sportivit\xE0" + B: appello alla compassione + C: argomento contro la persona + D: ignoranza della confutazione + input_correct_responses: + - D + input_question: "Quando un argomentatore causa confusione durante la confutazione\ + \ a causa della reale o finta mancanza di capacit\xE0 di impegnarsi nella confutazione,\ + \ quell'argomante potrebbe aver commesso l'errore di" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_logical_fallacies +tag: mmlu_it_llama_humanities_tasks +task: mmlu_it_llama_logical_fallacies +task_alias: logical_fallacies diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_machine_learning.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_machine_learning.yaml new file mode 100644 index 0000000000000000000000000000000000000000..512a896ebeb09f2cad3ffe7a8b8f454866934564 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_machine_learning.yaml @@ -0,0 +1,74 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: 2.0/15 + B: 1.0/7 + C: 3.0/16 + D: 1.0/5 + input_correct_responses: + - B + input_question: "Un dado a 6 facce viene lanciato 15 volte e i risultati sono:\ + \ il lato 1 esce 0 volte; lato 2: 1 volta; lato 3: 2 volte; lato 4: 3 volte;\ + \ lato 5: 4 volte; lato 6: 5 volte. Sulla base di questi risultati, qual \xE8\ + \ la probabilit\xE0 che venga visualizzato il lato 3 quando si utilizza l'arrotondamento\ + \ Add-1?" + - input_choice_list: + A: ritaglio casuale e rotazione orizzontale + B: ritaglio casuale e rotazione verticale + C: posterizzazione + D: dithering + input_correct_responses: + - A + input_question: "Quale aumento dei dati immagine \xE8 pi\xF9 comune per le immagini\ + \ naturali?" + - input_choice_list: + A: Il mio metodo raggiunge un errore di addestramento inferiore a tutti i metodi + precedenti! + B: "Il mio metodo raggiunge un errore di test inferiore a tutti i metodi precedenti!\ + \ (Nota a pi\xE8 di pagina: quando il parametro di regolarizzazione \u03BB\ + \ viene scelto in modo da ridurre al minimo l'errore del test.)" + C: "Il mio metodo raggiunge un errore di test inferiore a tutti i metodi precedenti!\ + \ (Nota a pi\xE8 di pagina: quando il parametro di regolarizzazione \u03BB\ + \ viene scelto in modo da ridurre al minimo l'errore di convalida incrociata.)" + D: "Il mio metodo raggiunge un errore di convalida incrociata inferiore a tutti\ + \ i metodi precedenti! (Nota a pi\xE8 di pagina: quando il parametro di regolarizzazione\ + \ \u03BB viene scelto in modo da ridurre al minimo l'errore di convalida\ + \ incrociata.)" + input_correct_responses: + - C + input_question: "Stai esaminando i documenti per la conferenza sull'apprendimento\ + \ automatico pi\xF9 fantastica del mondo e vedi i contributi con le seguenti\ + \ affermazioni. Quali considereresti di accettare? " + - input_choice_list: + A: circa 10 esempi + B: circa 100 esempi + C: tra 100 e 500 esemplari + D: "pi\xF9 di 1000 esempi" + input_correct_responses: + - D + input_question: "Per ottenere una stima della perdita 0/1 che sia inferiore all'1%\ + \ della vera perdita 0/1 (con probabilit\xE0 del 95%), secondo la disuguaglianza\ + \ di Hoeffding, quanti esempi deve avere il set di test IID?" + - input_choice_list: + A: "\xC8 troppo costoso dal punto di vista computazionale." + B: Probabilmente il risultato sarebbe un albero decisionale con un punteggio + scarso sul set di addestramento e su un set di test. + C: Probabilmente il risultato sarebbe un albero decisionale che ottiene un buon + punteggio sul set di addestramento ma male su un set di test. + D: Probabilmente il risultato sarebbe un albero decisionale che ottiene un buon + punteggio su un set di test ma male su un set di addestramento. + input_correct_responses: + - C + input_question: "Tradizionalmente, quando abbiamo un attributo di input con valore\ + \ reale durante l'apprendimento dell'albero decisionale, consideriamo\ + \ una suddivisione binaria a seconda che l'attributo sia al di sopra o al\ + \ di sotto di una certa soglia. Pat suggerisce che invece dovremmo avere semplicemente\ + \ una suddivisione a pi\xF9 vie con un ramo per ciascuno dei valori distinti\ + \ dell'attributo. Scegli dall'elenco seguente il problema pi\xF9 grande\ + \ con il suggerimento di Pat:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_machine_learning +tag: mmlu_it_llama_stem_tasks +task: mmlu_it_llama_machine_learning +task_alias: machine_learning diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_management.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_management.yaml new file mode 100644 index 0000000000000000000000000000000000000000..89b567842c043247448ee838c29c90d773f37136 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_management.yaml @@ -0,0 +1,51 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Posizione iniziale e posizione finale + B: Ambiente iniziale e ambiente modificato + C: Struttura organizzativa e condizionamento + D: Struttura iniziale e considerazioni + input_correct_responses: + - D + input_question: Quali sono le due dimensioni principali degli Ohio Studies sulla + leadership? + - input_choice_list: + A: Federico Hertzberg + B: DC McClelland + C: Abraham Maslow + D: Douglas McGregor + input_correct_responses: + - A + input_question: A quale scrittore sono associati i fattori igienici? + - input_choice_list: + A: Simboli + B: Rituali e routine + C: Strutture di potere + D: Sistemi di controllo + input_correct_responses: + - A + input_question: Quale elemento della rete culturale costituisce le insegne? + - input_choice_list: + A: Morale + B: Innovazione + C: Risorsa di crescita + D: Adattamento + input_correct_responses: + - A + input_question: "Quale caratteristica non \xE8 una caratteristica chiave del modello\ + \ di gestione dei "sistemi aperti"?" + - input_choice_list: + A: Gerarchico + B: Burocratico + C: Piatto + D: Funzionale + input_correct_responses: + - C + input_question: Come possono essere descritte strutture organizzative caratterizzate + da stili di gestione democratici e inclusivi? +include: _continuation_template_yaml +process_docs: !function utils.process_docs_management +tag: mmlu_it_llama_other_tasks +task: mmlu_it_llama_management +task_alias: management diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_marketing.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_marketing.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9f1475fe8d0833dadcb2a0764102f9c211d16723 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_marketing.yaml @@ -0,0 +1,59 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Geodemografica + B: Differenziazione del prodotto. + C: Matrice ANSOFF. + D: Gestione del marchio. + input_correct_responses: + - A + input_question: " _____________ \xE8 un risultato naturale quando si combinano\ + \ variabili demografiche e geografiche." + - input_choice_list: + A: "Unit\xE0 di outsourcing." + B: Centro acquisti. + C: "Unit\xE0 esecutiva principale." + D: "Unit\xE0 decisionale." + input_correct_responses: + - D + input_question: In un'organizzazione, il gruppo di persone incaricate delle + decisioni di acquisto viene definito _______________. + - input_choice_list: + A: I bisogni dipendono dalla cultura e anche dalla classe sociale. + B: I bisogni di livello inferiore devono essere almeno parzialmente soddisfatti + prima che i bisogni di livello superiore possano influenzare il comportamento. + C: I bisogni non sono prioritari o organizzati in un ordine particolare. + D: I bisogni soddisfatti sono motivatori e nuovi bisogni emergono quando i bisogni + attuali rimangono insoddisfatti. + input_correct_responses: + - B + input_question: " Quale dei seguenti \xE8 un presupposto nella gerarchia dei bisogni\ + \ di Maslow?" + - input_choice_list: + A: "Il consumatore pi\xF9 anziano che si sente un po\u2019 escluso." + B: "Le donne sposate, molte delle quali sentono il bisogno di stabilit\xE0 nella\ + \ loro vita." + C: Nuovi immigrati che vogliono davvero assimilarsi alla loro nuova cultura. + D: Bambini, che basano la maggior parte delle loro decisioni di acquisto su + influenze esterne. + input_correct_responses: + - D + input_question: "Il singolo gruppo all\u2019interno della societ\xE0 che \xE8\ + \ pi\xF9 vulnerabile all\u2019influenza del gruppo di riferimento \xE8:" + - input_choice_list: + A: Linee di cura. + B: Posta diretta. + C: Inserti. + D: Porta a porta. + input_correct_responses: + - D + input_question: "Sebbene il contenuto e la qualit\xE0 possano essere controllati\ + \ quanto la posta diretta, i tassi di risposta di questo mezzo sono inferiori\ + \ a causa della mancanza di un meccanismo di indirizzo personale. Questo formato\ + \ multimediale \xE8 noto come:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_marketing +tag: mmlu_it_llama_other_tasks +task: mmlu_it_llama_marketing +task_alias: marketing diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_miscellaneous.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_miscellaneous.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6419e5afc7aa8ef550a6a8a0588344150ad4e8a7 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_miscellaneous.yaml @@ -0,0 +1,51 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: uno + B: due + C: quattro + D: otto + input_correct_responses: + - B + input_question: Quanti assi ha un'automobile standard? + - input_choice_list: + A: Budapest + B: Budokan + C: Bhutan + D: Gran Bretagna + input_correct_responses: + - B + input_question: "Quale luogo \xE8 nominato nel titolo dell'album live del\ + \ 1979 delle leggende del rock Cheap Trick?" + - input_choice_list: + A: Anthony "Spud" Webb + B: Michael "Air" Jordan + C: Tyrone 'Muggsy' Bogue + D: Julius "Dr J" Erving + input_correct_responses: + - A + input_question: "Chi \xE8 l'uomo pi\xF9 basso che abbia mai vinto una gara\ + \ di schiacciata NBA?" + - input_choice_list: + A: idrogeno + B: nylon + C: ossigeno + D: leggero + input_correct_responses: + - C + input_question: Cosa viene prodotto durante la fotosintesi? + - input_choice_list: + 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"' + input_correct_responses: + - C + input_question: "Quale di queste canzoni \xE8 stata una delle prime 10 hit del\ + \ gruppo rock The Police?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_miscellaneous +tag: mmlu_it_llama_other_tasks +task: mmlu_it_llama_miscellaneous +task_alias: miscellaneous diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_moral_disputes.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_moral_disputes.yaml new file mode 100644 index 0000000000000000000000000000000000000000..14bf232d8ec9366c8fe4af155305e0cff5066fe8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_moral_disputes.yaml @@ -0,0 +1,59 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Non \xE8 ancora chiaro se la pena capitale scoraggi o meno danni alla comunit\xE0\ + ." + B: "Non \xE8 ancora chiaro se la pena capitale scoraggi o meno danni a individui." + C: "Il consequenzialismo non \xE8 supportato dai valori africani." + D: "Anche se il consequenzialismo \xE8 sostenuto dai valori africani, non \xE8\ + \ stato offerto alcun argomento consequenzialista inquadrato in termini di\ + \ valori africani." + input_correct_responses: + - A + input_question: "Secondo Metz, cosa c\u2019\xE8 di sbagliato negli argomenti consequenzialisti\ + \ contro la pena capitale basati sui valori africani?" + - input_choice_list: + A: uno zigote. + B: un embrione. + C: "una viabilit\xE0." + D: una blastocisti. + input_correct_responses: + - A + input_question: "Un ovulo fecondato \xE8 anche noto come" + - input_choice_list: + A: essere nella classe superiore + B: "la capacit\xE0 di apprendere e risolvere problemi" + C: "essere pi\xF9 bello della maggior parte della popolazione" + D: "essere pi\xF9 corto della media" + input_correct_responses: + - B + input_question: "Quale dei seguenti \xE8 un bene intrinseco secondo Singer?" + - input_choice_list: + A: "La SCNT non \xE8 un tipo di riproduzione diverso perch\xE9 non esistono\ + \ differenze moralmente rilevanti tra essa e altri mezzi di riproduzione consentiti." + B: "Poich\xE9 il rischio di danni per il gemellaggio naturale \xE8 basso, il\ + \ rischio di danni per SCNT sar\xE0 basso." + C: sia a che B + D: "n\xE8 a n\xE8 B" + input_correct_responses: + - A + input_question: Pence mette a confronto sei diversi casi di riproduzione, dal + gemellaggio naturale all'SCNT. Quale conclusione trae da questo confronto? + - input_choice_list: + A: "la stupidit\xE0 degli esempi filosofici pi\xF9 tradizionali." + B: una generale mancanza di intelligenza tra le persone con titoli di studio + avanzati. + C: l'ingiustizia della tortura. + D: "la disponibilit\xE0 da parte di molte persone intelligenti a vedere nella\ + \ tortura la migliore soluzione per affrontare il terrorismo." + input_correct_responses: + - D + input_question: "Baron ammette che le versioni dell'ipotetica bomba ad orologeria\ + \ di cui parla sono "incredibilmente stupide", ma sostiene che questa\ + \ \xE8 in realt\xE0 la prova di" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_moral_disputes +tag: mmlu_it_llama_humanities_tasks +task: mmlu_it_llama_moral_disputes +task_alias: moral_disputes diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_moral_scenarios.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_moral_scenarios.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f17c610bc24799b7560a3575552426825c999f91 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_moral_scenarios.yaml @@ -0,0 +1,70 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Sbagliato, sbagliato + B: Sbagliato, non sbagliato + C: Non sbagliato, sbagliato + D: Non sbagliato, non sbagliato + input_correct_responses: + - C + input_question: "Per quale di questi due scenari il personaggio principale (che\ + \ usa I/me/my) fa qualcosa di chiaramente moralmente sbagliato, secondo gli\ + \ standard morali ordinari negli Stati Uniti a partire dal 2020? Scenario 1\ + \ | Ho davvero amato il mio bambino appena nato. Scenario 2 | La nuova ragazza\ + \ \xE8 imbarazzata a vivere in un parcheggio per roulotte, quindi invito la\ + \ classe a casa sua." + - input_choice_list: + A: Sbagliato, sbagliato + B: Sbagliato, non sbagliato + C: Non sbagliato, sbagliato + D: Non sbagliato, non sbagliato + input_correct_responses: + - C + input_question: Per quale di questi due scenari il personaggio principale (che + usa I/me/my) fa qualcosa di chiaramente moralmente sbagliato, secondo gli standard + morali ordinari negli Stati Uniti a partire dal 2020? Scenario 1 | Ho chiesto + una sigaretta al ragazzo fuori dal negozio. Scenario 2 | Quando la guardia di + sicurezza ha lasciato il suo posto, ho intascato una moneta rara. + - input_choice_list: + A: Sbagliato, sbagliato + B: Sbagliato, non sbagliato + C: Non sbagliato, sbagliato + D: Non sbagliato, non sbagliato + input_correct_responses: + - D + input_question: Per quale di questi due scenari il personaggio principale (che + usa I/me/my) fa qualcosa di chiaramente moralmente sbagliato, secondo gli standard + morali ordinari negli Stati Uniti a partire dal 2020? Scenario 1 | Ho comprato + un vecchio pick-up per lavoro. Scenario 2 | Ho alzato lo sguardo verso la splendida + cascata e le ho lanciato un sasso. + - input_choice_list: + A: Sbagliato, sbagliato + B: Sbagliato, non sbagliato + C: Non sbagliato, sbagliato + D: Non sbagliato, non sbagliato + input_correct_responses: + - B + input_question: Per quale di questi due scenari il personaggio principale (che + usa I/me/my) fa qualcosa di chiaramente moralmente sbagliato, secondo gli standard + morali ordinari negli Stati Uniti a partire dal 2020? Scenario 1 | Durante la + demolizione della casa, l'ho spinto contro un muro. Scenario 2 | Quando + scelgo una babysitter per le mie nipoti gemelle, non mi interessa il suo background + razziale. + - input_choice_list: + A: Sbagliato, sbagliato + B: Sbagliato, non sbagliato + C: Non sbagliato, sbagliato + D: Non sbagliato, non sbagliato + input_correct_responses: + - A + input_question: Per quale di questi due scenari il personaggio principale (che + usa I/me/my) fa qualcosa di chiaramente moralmente sbagliato, secondo gli standard + morali ordinari negli Stati Uniti a partire dal 2020? Scenario 1 | Ho preso + il suo portafoglio dopo che mi ha molestato al bar. Scenario 2 | Ho fatto l'amore + con il mio bambino appena nato. +include: _continuation_template_yaml +process_docs: !function utils.process_docs_moral_scenarios +tag: mmlu_it_llama_humanities_tasks +task: mmlu_it_llama_moral_scenarios +task_alias: moral_scenarios diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_nutrition.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_nutrition.yaml new file mode 100644 index 0000000000000000000000000000000000000000..95f4c8f89521299a4e05a8866c9b4a3ba20fbd7d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_nutrition.yaml @@ -0,0 +1,67 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "I bevitori di t\xE8 hanno un rischio minore di sviluppare il diabete." + B: "I bevitori di t\xE8 hanno un rischio maggiore di sviluppare il diabete." + C: Sulla base delle informazioni fornite non possiamo dire se la differenza + osservata nel rischio di malattia sia il risultato del caso. + D: "Il rapporto di rischio \xE8 vicino al valore uno, quindi non vi \xE8 alcuna\ + \ differenza nel rischio di malattia tra i due gruppi." + input_correct_responses: + - C + input_question: "In uno studio di coorte, il rapporto di rischio di sviluppare\ + \ il diabete era 0,86 confrontando i consumatori di t\xE8 (gli esposti) con\ + \ quelli che non bevevano t\xE8 (i non esposti). Quale affermazione \xE8 corretta\ + \ (secondo le conoscenze nel 2020)?\\n" + - input_choice_list: + A: I consumatori affetti da fenilchetonuria devono evitare il consumo del dolcificante + aspartame + B: I consumatori affetti da fenilchetonuria devono evitare il consumo del dolcificante + saccarina + C: I consumatori affetti da fenilchetonuria devono evitare il consumo del dolcificante + sucralosio + D: I consumatori affetti da fenilchetonuria devono evitare il consumo del dolcificante + acesulfame K + input_correct_responses: + - A + input_question: "Quale delle seguenti affermazioni \xE8 corretta (secondo le conoscenze\ + \ del 2020)?\\n" + - input_choice_list: + A: L'acido propionico, formato durante la fermentazione delle fibre del + colon, inibisce la sintesi degli acidi grassi nel fegato + B: L'acido butirrico, formato durante la fermentazione delle fibre del colon, + stimola il "silenziamento" del gene soppressore del tumore SLC5A8 + C: "Nessuna di queste opzioni \xE8 corretta" + D: L'acido butirrico, formato durante la fermentazione delle fibre del colon, + stimola le difese antiossidanti del colon + input_correct_responses: + - D + input_question: "Quale delle seguenti \xE8 la spiegazione pi\xF9 plausibile per\ + \ l'effetto protettivo delle fibre alimentari contro il cancro del colon,\ + \ a partire dal 2020?\\n" + - input_choice_list: + A: Il 50% degli adulti consuma iodio a livelli inferiori all'RNI + B: I latticini sono una scarsa fonte di iodio + C: "Il contenuto di iodio del latte biologico \xE8 generalmente inferiore a\ + \ quello del latte non biologico" + D: "I valori dietetici di riferimento del Regno Unito raccomandano un aumento\ + \ dell\u2019assunzione di iodio in gravidanza" + input_correct_responses: + - C + input_question: "Quale delle seguenti affermazioni sullo iodio \xE8 corretta,\ + \ al 2020?\\n" + - input_choice_list: + A: Acarbosio + B: Metformina + C: Sulfaniluree + D: Insulina + input_correct_responses: + - B + input_question: "Qual \xE8 il farmaco di prima linea per i pazienti con diabete\ + \ di tipo 2 e obesit\xE0, a partire dal 2020?\\n" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_nutrition +tag: mmlu_it_llama_other_tasks +task: mmlu_it_llama_nutrition +task_alias: nutrition diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_philosophy.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_philosophy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..754c14a92fd40f09de40aa194a96d9754c2fc6e8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_philosophy.yaml @@ -0,0 +1,53 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: una teoria etica su come dovremmo comportarci. + B: una generalizzazione riguardante il modo in cui le persone tendono a comportarsi. + C: un'affermazione sulla natura umana e sui modi in cui le persone sono + capaci di comportarsi. + D: nessuna delle precedenti. + input_correct_responses: + - C + input_question: "L\u2019egoismo psicologico \xE8:" + - input_choice_list: + A: piacere. + B: "felicit\xE0." + C: Bene. + D: "virt\xF9." + input_correct_responses: + - C + input_question: "Secondo l\u2019\u201Cutilitarismo ideale\u201D di Moore, l\u2019\ + azione giusta \xE8 quella che produce il maggior numero di:" + - input_choice_list: + A: libere scelte + B: dettami dell'anima + C: leggi naturali necessarie + D: "volont\xE0 indeterminata" + input_correct_responses: + - C + input_question: Secondo d'Holbach le persone agiscono sempre secondo _____. + - input_choice_list: + A: ottimista + B: soddisfatto + C: nominalmente religioso + D: pessimista + input_correct_responses: + - D + input_question: Prima della conversione cristiana di Tolstoj, qual era la sua + prospettiva sul significato della vita? + - input_choice_list: + A: metafisica + B: epistemologia + C: fisica quantistica + D: assiologia + input_correct_responses: + - A + input_question: "Lo studio della realt\xE0 nel senso pi\xF9 ampio, un'indagine\ + \ sulla natura elementare dell'universo e delle cose in esso contenute,\ + \ \xE8 noto come _____." +include: _continuation_template_yaml +process_docs: !function utils.process_docs_philosophy +tag: mmlu_it_llama_humanities_tasks +task: mmlu_it_llama_philosophy +task_alias: philosophy diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_prehistory.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_prehistory.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a817cf30a093508d3605b9c369d83fcc8083543f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_prehistory.yaml @@ -0,0 +1,61 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: soddisfare i potenti sacerdoti astronomi Maya. + B: "mostrare la sua generosit\xE0 alla gente comune, poich\xE9 era loro permesso\ + \ di vivere nei templi." + C: spaventare i nemici, in particolare gli spagnoli. + D: "legittimare la sua regalit\xE0, poich\xE9 suo padre non era reale." + input_correct_responses: + - D + input_question: "Il grande re Maya Pacal costru\xEC templi nella citt\xE0 di Palenque\ + \ per:" + - input_choice_list: + A: "un centro della civilt\xE0 del Mississippi con condizioni simili all'ascesa\ + \ dei primi stati." + B: "i limiti dell\u2019autorit\xE0 in una societ\xE0 dei nativi americani di\ + \ raccoglitori egualitari." + C: un chiefdom semplice o forse un chiefdom complesso si era evoluto nel 1500 + d.C. + D: "un centro della civilt\xE0 del Mississippi con condizioni simili alle societ\xE0\ + \ della costa nordoccidentale del Nord America." + input_correct_responses: + - A + input_question: 'Secondo Timothy Pauketat, le prove della stratificazione sociale + e del potere politico a Cahokia suggeriscono:' + - input_choice_list: + A: un cataclisma di qualche tipo, come un terremoto, un vulcano o uno tsunami. + B: degrado ecologico derivante dalle tecniche agricole di taglio e incendio. + C: "guerre infinite tra le vicine citt\xE0-stato Maya." + D: pratiche di incrocio che hanno portato ad un forte aumento dei disturbi congeniti. + input_correct_responses: + - B + input_question: 'I ricercatori ora credono che il declino dei Maya sia stato causato + principalmente da:' + - input_choice_list: + A: "una grande quantit\xE0 di diversit\xE0 di specie o una singola specie che\ + \ mostra molta diversit\xE0." + B: "pochissima diversit\xE0 di specie durante questo periodo e pochissimi ominidi." + C: "diminuzione della diversit\xE0 delle specie a causa di una prolungata era\ + \ glaciale seguita da una grave siccit\xE0." + D: "diminuzione della diversit\xE0 delle specie ma aumento del numero di pietre\ + \ e scaglie, indicando la produzione di utensili in pietra." + input_correct_responses: + - A + input_question: 'Ricerche recenti su specie di ominidi risalenti al Pliocene medio + indicano che esisteva (a partire dal 2020):' + - input_choice_list: + A: sotto i 650 cc + B: circa 800 cc + C: poco meno di 1000 cc + D: 1200 cc + input_correct_responses: + - C + input_question: "Qual \xE8 la capacit\xE0 cranica media approssimativa dell'Homo\ + \ erectus?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_prehistory +tag: mmlu_it_llama_humanities_tasks +task: mmlu_it_llama_prehistory +task_alias: prehistory diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_professional_accounting.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_professional_accounting.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9b08e9944c149c34a9eb6b01c948b9182c2d6e2d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_professional_accounting.yaml @@ -0,0 +1,74 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: $ 70.000 + B: $ 75.000 + C: $ 80.000 + D: '100000' + input_correct_responses: + - D + input_question: "Box, un'organizzazione non governativa senza fini di lucro,\ + \ ha effettuato le seguenti transazioni durante l'anno: Proventi dalla vendita\ + \ di investimenti $ 80.000 Acquisto di immobili, impianti e attrezzature $ 10.000\ + \ Proventi da debiti a lungo termine $ 100.000 Perdita sulla vendita di investimenti\ + \ $ 5.000 Quale importo deve essere riportato come netto liquidit\xE0 fornita\ + \ dalle attivit\xE0 di finanziamento nel rendiconto finanziario di Box?" + - input_choice_list: + A: $ 13.000 + B: $ 600 + C: $ 15.000 + D: $ 28.000 + input_correct_responses: + - A + input_question: "Cento anni fa, la tua bis-bisnonna invest\xEC $ 100 con un interesse\ + \ annuo del 5%. Quanto vale l\u2019investimento oggi?" + - input_choice_list: + A: $ 0 + B: $ 500 + C: $ 1.650 + D: $ 16.500 + input_correct_responses: + - A + input_question: "Krete \xE8 un contribuente non sposato con reddito esclusivamente\ + \ salariale. Entro il 31 dicembre, anno 1, il datore di lavoro di Krete ha trattenuto\ + \ $ 16.000 in imposte federali sul reddito e Krete non ha effettuato pagamenti\ + \ fiscali stimati. Il 15 aprile, anno 2, Krete ha presentato tempestivamente\ + \ una richiesta di proroga per presentare la sua dichiarazione dei redditi individuale\ + \ e ha pagato $ 300 di tasse aggiuntive. Il debito fiscale del primo anno di\ + \ Krete era di $ 16.500 quando ha presentato tempestivamente la dichiarazione\ + \ il 30 aprile, anno 2, e ha pagato il saldo del debito fiscale rimanente. Quale\ + \ importo sarebbe soggetto alla sanzione per mancato pagamento delle imposte\ + \ stimate?" + - input_choice_list: + A: $ 5.000 + B: $ 13.500 + C: $ 16.000 + D: $ 20.000 + input_correct_responses: + - B + input_question: "Il 1\xB0 gennaio dell'anno 1, Alpha Co. ha firmato un contratto\ + \ di manutenzione annuale con un fornitore di software per 15.000 dollari e\ + \ il periodo di manutenzione inizia il 1\xB0 marzo dell'anno 2. Alpha ha\ + \ inoltre sostenuto costi di 5.000 dollari il 1\xB0 gennaio dell'anno 1,\ + \ relativi alla modifica del software richieste che aumenteranno la funzionalit\xE0\ + \ del software. Alpha svaluta e ammortizza i suoi beni informatici e software\ + \ in cinque anni utilizzando il metodo a quote costanti. Qual \xE8 l'importo\ + \ totale della spesa che Alpha dovrebbe riconoscere in relazione al contratto\ + \ di manutenzione e alle modifiche del software per l'anno terminato il\ + \ 31 dicembre, anno 1?" + - input_choice_list: + A: Valutazione e allocazione + B: Completezza + C: Diritti e doveri + D: Presentazione e divulgazione + input_correct_responses: + - B + input_question: "Un revisore traccia i numeri di serie sulle apparecchiature nel\ + \ registro secondario di un non emittente. Quale delle seguenti asserzioni del\ + \ management \xE8 supportata da questo test?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_accounting +tag: mmlu_it_llama_other_tasks +task: mmlu_it_llama_professional_accounting +task_alias: professional_accounting diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_professional_law.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_professional_law.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b1d529268b9a5146e6f6ad08f9fc559e5de0c07d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_professional_law.yaml @@ -0,0 +1,132 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "lo statuto \xE8 nullo per vaghezza ai sensi della clausola del giusto processo\ + \ del Quattordicesimo Emendamento." + B: "lo statuto non \xE8 valido perch\xE9 viola la libert\xE0 di parola del firmatario\ + \ ai sensi del Primo Emendamento." + C: "lo statuto \xE8 una limitazione della libert\xE0 di parola ai sensi del\ + \ Primo Emendamento perch\xE9 sono disponibili mezzi meno restrittivi per\ + \ raggiungere lo stesso scopo." + D: "lo statuto \xE8 troppo ampio e di conseguenza invalido ai sensi del primo\ + \ e del quattordicesimo emendamento." + input_correct_responses: + - D + input_question: "Un legislatore statale ha recentemente promulgato una legge che\ + \ rende un reato imprecare, insultare o usare un linguaggio osceno o dispregiativo\ + \ nei confronti o in riferimento a un agente di polizia che svolge le sue funzioni.\ + \ Uno studente di un'universit\xE0 statale ha organizzato una manifestazione\ + \ nel campus per protestare contro la guerra. Alla manifestazione ha partecipato\ + \ un gruppo di 50 studenti che hanno gridato messaggi contro la guerra alle\ + \ auto che passavano. Per mostrare il suo disprezzo per gli Stati Uniti, lo\ + \ studente ha cucito la bandiera americana sul retro dei suoi jeans. Quando\ + \ un agente di polizia ha visto la bandiera cucita sui jeans dello studente,\ + \ si \xE8 avvicinato e gli ha detto di rimuovere la bandiera altrimenti sarebbe\ + \ stato arrestato. Lo studente si \xE8 arrabbiato e ha gridato all'ufficiale\ + \ di polizia: "Ascolta, bastardo, indosser\xF2 questo straccio ovunque\ + \ mi piaccia". Lo studente \xE8 stato successivamente arrestato e accusato\ + \ di aver violato lo statuto dello stato. Lo studente ha successivamente intentato\ + \ causa dinanzi al tribunale statale contestando la costituzionalit\xE0 della\ + \ norma. L\u2019argomento costituzionale pi\xF9 forte per lo studente \xE8 questo" + - input_choice_list: + A: La clausola commerciale. + B: La clausola di pari protezione del Quattordicesimo Emendamento. + C: "La clausola dei privilegi e delle immunit\xE0 dell\u2019Articolo IV, Sezione\ + \ 2. " + D: La clausola contrattuale. + input_correct_responses: + - A + input_question: "Uno stato ha recentemente promulgato una legge che vieta lo smaltimento\ + \ di qualsiasi scoria nucleare all'interno dello stato. Questa legge non\ + \ contravviene n\xE9 \xE8 in conflitto con alcuno statuto federale. Un uomo\ + \ gestisce un'azienda statale che si occupa dello smaltimento delle scorie\ + \ nucleari. Successivamente all'approvazione dello statuto statale, l'uomo,\ + \ non ancora a conoscenza della nuova legge, ha stipulato contratti con molte\ + \ aziende straniere per smaltire le proprie scorie nucleari nello stato. A causa\ + \ di questa nuova legge, per\xF2, l'uomo non potr\xE0 eseguire questi contratti.\ + \ Supponiamo che l'uomo abbia la legittimazione ad impugnare questa legge\ + \ statale. Quale delle seguenti affermazioni presenta le basi costituzionali\ + \ pi\xF9 forti per contestare la legge statale che vieta lo smaltimento delle\ + \ scorie nucleari all'interno dello Stato?" + - input_choice_list: + A: Fatti indiscutibili. + B: Fatti affermati da singole organizzazioni politiche. + C: Fatti riconosciuti veri dalla conoscenza comune. + D: Fatti suscettibili di verifica scientifica. + input_correct_responses: + - B + input_question: "Il giudice ha preso atto di alcuni fatti all'inizio del processo.\ + \ Quale dei seguenti non \xE8 un fatto appropriato per la notifica giudiziaria?" + - input_choice_list: + A: "concedere uno sgravio perch\xE9 la recinzione violava il vincolo di servit\xF9\ + . " + B: "concedere uno sgravio, perch\xE9 lo sconfinamento della recinzione ha violato\ + \ la restrizione prevista dal piano originale. " + C: "negare lo sgravio, perch\xE9 l'insegnante non ha fatto rispettare la\ + \ restrizione nei confronti del pensionato. " + D: "negare il sollievo, perch\xE9 la recinzione non sarebbe interpretata come\ + \ "una struttura" nei termini della restrizione. " + input_correct_responses: + - B + input_question: "Il 1\xB0 ottobre 1980, un costruttore, proprietario di diverse\ + \ centinaia di acri in una contea rurale, redasse un piano generale di sviluppo\ + \ per l'area. Il piano debitamente registrato imponeva elaborate limitazioni\ + \ e restrizioni al terreno nel piano, che doveva essere sviluppato come quartiere\ + \ residenziale. Le restrizioni dovevano estendersi a tutte le persone che acquistavano\ + \ uno qualsiasi dei lotti e ai loro eredi, aventi causa e locatari. Si prevedeva\ + \ inoltre che tutti i successivi proprietari sarebbero stati incaricati di notificare\ + \ debitamente le restrizioni. Tra queste restrizioni nel piano generale c'erano\ + \ le seguenti: (22) Viene creato un diritto di franchising in una striscia di\ + \ terreno larga 10 piedi lungo il retro di ciascun lotto per l'uso di societ\xE0\ + \ di servizi pubblici con diritto di ingresso e uscita. (23) Nessuna casa o\ + \ struttura di alcun tipo potr\xE0 essere costruita sulla suddetta striscia\ + \ di terreno che attraversa detti blocchi. Nel 2000, un pensionato acquist\xF2\ + \ uno dei lotti, costru\xEC una casa ed eresse una recinzione sul retro della\ + \ sua propriet\xE0 all'interno dell'area riservata. Nel 2004 un insegnante\ + \ acquist\xF2 un terreno adiacente alla propriet\xE0 del pensionato e costru\xEC\ + \ una nuova casa. Due anni dopo, un bibliotecario acquist\xF2 il lotto confinante\ + \ con la propriet\xE0 dell'insegnante. I tre atti relativi a tali propriet\xE0\ + \ contenevano ciascuno riferimenti al libro degli atti in cui era registrato\ + \ il piano generale. Nel 2008, il bibliotecario ha iniziato la costruzione di\ + \ una recinzione con pali e ringhiere alta sette piedi lungo la linea che divide\ + \ il suo lotto da quello dell'insegnante e lungo il centro dell'area\ + \ soggetta al diritto di franchising. Nonostante l'insegnante si fosse opposto\ + \ alla sua costruzione, la recinzione fu completata. Se l'insegnante chiede\ + \ un'ingiunzione obbligatoria per obbligare alla rimozione della recinzione\ + \ del bibliotecario, molto probabilmente il tribunale lo far\xE0." + - input_choice_list: + A: 'La promessa del padre e l'affidamento del creditore su di essa, se provati, + davano luogo ad una valida pretesa del creditore nei confronti del padre basata + sulla dottrina del promissory estoppel. ' + B: "Poich\xE9 era prevedibile che la promessa del padre avrebbe indotto il creditore\ + \ a astenersi da qualsiasi azione contro il figlio, tale indulgenza era, per\ + \ legge, un corrispettivo pattuito per la promessa del padre. " + C: "I cinque pagamenti del padre al creditore per un totale di $ 2.500 manifestavano\ + \ la seria intenzione da parte del padre di essere contrattualmente vincolato,\ + \ e tale manifestazione \xE8 generalmente riconosciuta come un efficace sostituto\ + \ del corrispettivo. " + D: "Facendosi carico del debito antecedente che il figlio aveva nei confronti\ + \ del creditore, il padre diventava un garante la cui promessa al creditore\ + \ era esecutiva, poich\xE9 era scritta e supportata da adeguato corrispettivo. " + input_correct_responses: + - A + input_question: "Un figlio doveva a un creditore 5.000 dollari. Il padre del figlio\ + \ contatt\xF2 il creditore e gli disse che voleva saldare il debito del figlio.\ + \ Il padre firm\xF2 un documento in cui dichiarava che avrebbe pagato il debito\ + \ del figlio ad una tariffa di 500 dollari al mese per 10 mesi. Il creditore\ + \ non ha assunto alcun impegno scritto o orale a astenersi dal citare in giudizio\ + \ il figlio per riscuotere il debito di $ 5.000, e il padre non ha presentato\ + \ alcuna richiesta orale o scritta per tale tolleranza. Per i successivi cinque\ + \ mesi, il padre effettu\xF2 e il creditore accett\xF2 i pagamenti mensili di\ + \ 500 dollari come concordato. Durante tale periodo, il creditore, infatti,\ + \ si astenne dall'intraprendere qualsiasi azione legale nei confronti del\ + \ figlio. Tuttavia, il padre ha poi informato il creditore che non avrebbe effettuato\ + \ ulteriori pagamenti per il debito. Quale dei seguenti \xE8 l'argomento\ + \ pi\xF9 convincente secondo cui il padre \xE8 responsabile nei confronti del\ + \ creditore secondo i termini del contratto?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_law +tag: mmlu_it_llama_humanities_tasks +task: mmlu_it_llama_professional_law +task_alias: professional_law diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_professional_medicine.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_professional_medicine.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a105671bf3c0601626aa5576debf73a6105f42f5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_professional_medicine.yaml @@ -0,0 +1,90 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Labetalolo + B: Una dose di carico di cloruro di potassio + C: Nifedipina + D: Fenossibenzamina + input_correct_responses: + - D + input_question: "Un uomo di 42 anni si presenta in studio per una valutazione\ + \ preoperatoria prima di essere sottoposto ad surrenectomia programmata tra\ + \ 2 settimane. Un mese fa \xE8 stato ricoverato al pronto soccorso per un dolore\ + \ al fianco destro dovuto a uno scontro automobilistico. A quel tempo, la pressione\ + \ sanguigna era di 160/100 mm Hg e la TC dell'addome mostrava una massa\ + \ surrenale sinistra incidentale di 10 cm. I risultati degli studi di laboratorio,\ + \ tra cui emocromo completo, concentrazioni di elettroliti sierici e test di\ + \ funzionalit\xE0 epatica, rientravano negli intervalli di riferimento. Per\ + \ il resto il paziente era sano e non gli era mai stato detto che aveva la pressione\ + \ sanguigna elevata. Non prende farmaci. Una visita di follow-up in studio 2\ + \ settimane fa ha rivelato elevate concentrazioni di normetanefrina e metanefrina\ + \ urinaria e di aldosterone plasmatico. Il paziente \xE8 stato indirizzato a\ + \ un chirurgo, che ha raccomandato la surrenalectomia. Oggi, i segni vitali\ + \ sono la temperatura 36,6\xB0C (97,9\xB0F), il polso 100/min, la respirazione\ + \ 14/min e la pressione sanguigna 170/95 mm Hg. L'esame obiettivo non rivela\ + \ risultati significativi. La preparazione preoperatoria iniziale dovrebbe includere\ + \ il trattamento con quale dei seguenti?" + - input_choice_list: + A: Torsione sacrale sinistra contro sinistra + B: torsione sacrale sinistra-destra + C: flessione sacrale unilaterale destra + D: torsione sacrale dx-dx + input_correct_responses: + - D + input_question: "Un uomo di 36 anni si presenta in studio con un'anamnesi\ + \ di lombalgia da 3 settimane. Nega qualsiasi trauma recente ma dice che entra\ + \ e esce dal suo camion numerose volte al giorno per il suo lavoro. L'esame\ + \ del paziente in posizione prona rivela un profondo solco sacrale a sinistra,\ + \ un angolo laterale postero-inferiore a destra e una giunzione lombosacrale\ + \ che scatta liberamente in compressione. La diagnosi pi\xF9 probabile \xE8" + - input_choice_list: + A: Dopamina + B: Glutammato + C: Noradrenalina + D: Serotonina + input_correct_responses: + - D + input_question: "Una donna di 32 anni, precedentemente sana, si reca dal medico\ + \ 8 mesi dopo la morte del marito in un incidente stradale. Da quel momento\ + \ ha avuto una diminuzione dell'appetito e difficolt\xE0 ad addormentarsi.\ + \ Afferma di essere spesso triste e di piangere spesso. Ha ricontrollato la\ + \ serratura della porta cinque volte prima di uscire di casa e deve contare\ + \ esattamente cinque pezzi di carta igienica prima di usarla. Dice di essere\ + \ sempre stata una perfezionista, ma questi impulsi e rituali sono nuovi. La\ + \ farmacoterapia dovrebbe essere mirata a quale dei seguenti neurotrasmettitori?" + - input_choice_list: + A: Rinite allergica + B: Virus Epstein-Barr + C: Mycoplasma pneumoniae + D: Rinovirus + input_correct_responses: + - D + input_question: "Un uomo di 44 anni si presenta in studio a causa di una storia\ + \ di mal di gola da 3 giorni, tosse non produttiva, naso che cola e mal di testa\ + \ frontale. Dice che il mal di testa peggiora al mattino e l'ibuprofene\ + \ fornisce un certo sollievo. Non ha avuto fiato corto. L'anamnesi medica\ + \ \xE8 irrilevante. Non prende farmaci diversi dall'ibuprofene per il dolore.\ + \ I segni vitali sono temperatura 37,4\xB0C (99,4\xB0F), polso 88/min, respirazione\ + \ 18/min e pressione sanguigna 120/84 mm Hg. L'esame delle narici evidenzia\ + \ mucose eritematose. L'esame della gola mostra eritema e iperplasia linfoide\ + \ follicolare sull'orofaringe posteriore. Non \xE8 presente adenopatia cervicale\ + \ palpabile. I polmoni sono liberi all'auscultazione. Quale delle seguenti\ + \ \xE8 la causa pi\xF9 probabile dei sintomi di questo paziente?" + - input_choice_list: + A: scaleno anteriore + B: latissimus dorsi + C: pettorale minore + D: quadrato dei lombi + input_correct_responses: + - C + input_question: "Un maratoneta di 22 anni si presenta in studio lamentando dolore\ + \ alla costola destra quando corre per lunghe distanze. L'esame obiettivo\ + \ rivela reperti cardiaci e polmonari normali e una disfunzione espiratoria\ + \ alle costole 4-5 a destra. Quale dei seguenti muscoli o gruppi muscolari sar\xE0\ + \ pi\xF9 utile per correggere questa disfunzione utilizzando un metodo diretto?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_medicine +tag: mmlu_it_llama_other_tasks +task: mmlu_it_llama_professional_medicine +task_alias: professional_medicine diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_professional_psychology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_professional_psychology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4d17c0d021fecf450a6c60a10df50c8d6403e7e4 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_professional_psychology.yaml @@ -0,0 +1,62 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: racconta al tuo cliente i pro e i contro di ogni programma che conosci tranne + quello a cui sei iscritto + B: consiglia al tuo cliente il programma a cui sei iscritto e spiega il bonus + di $ 50 che riceverai + C: consigliare al tuo cliente il programma a cui sei iscritto e offrirti di + ricevere il bonus di $ 50 accreditato sul conto del tuo cliente nel programma + D: racconta al tuo cliente i pro e i contro di ogni programma che conosci, ma + non richiedere il bonus di $ 50 se il tuo cliente si iscrive al tuo programma + input_correct_responses: + - D + input_question: "Uno dei tuoi clienti in terapia ti chiede consiglio su un buon\ + \ programma di riduzione del peso. Hai studiato i programmi della comunit\xE0\ + \ e sei iscritto a quello che consideri il migliore. Questo programma offre\ + \ un bonus di $ 50 ai suoi utenti per ogni nuova persona introdotta nel programma.\ + \ In queste circostanze, la risposta pi\xF9 appropriata sarebbe:" + - input_choice_list: + A: meno sensibile ai punteggi estremi rispetto alla media + B: "pi\xF9 utile per distribuzioni asimmetriche" + C: sensibile ai valori estremi e alle distribuzioni altamente asimmetriche + D: "il numero pi\xF9 frequente" + input_correct_responses: + - D + input_question: "Esistono tre modi per misurare la tendenza centrale: la media,\ + \ la mediana e la moda. Dalla tua conoscenza su di loro, qual \xE8 la modalit\xE0\ + ?" + - input_choice_list: + A: individualismo. + B: Individualismo e distanza dal potere. + C: "distanza di potere e mascolinit\xE0." + D: "evitamento dell\u2019incertezza." + input_correct_responses: + - A + input_question: 'In termini di cinque dimensioni culturali di Hofstede (1980), + gli Stati Uniti si collocano in cima alla scala in:' + - input_choice_list: + A: "\xE8 una fantasia che distrae il cliente dalla realt\xE0." + B: "rappresenta \u201Csentimenti contrastanti\u201D nei confronti del terapeuta. " + C: ""\xE8 una forma di ""recitazione."""" + D: riflette l'inconscio personale e collettivo del cliente. + input_correct_responses: + - D + input_question: 'Carl Jung credeva che il transfert del cliente:' + - input_choice_list: + A: non sono correlati tra loro ma sono moderatamente correlati con il criterio + B: hanno basse correlazioni tra loro e basse correlazioni con il criterio + C: sono altamente intercorrelati tra loro e moderatamente correlati con il criterio + D: hanno basse correlazioni con il criterio ma sono moderatamente correlati + tra loro + input_correct_responses: + - A + input_question: "Nella costruzione di un'equazione di regressione multipla\ + \ a fini di previsione, la combinazione ottimale di misure \xE8 quella in cui\ + \ i predittori" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_psychology +tag: mmlu_it_llama_social_sciences_tasks +task: mmlu_it_llama_professional_psychology +task_alias: professional_psychology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_public_relations.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_public_relations.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e12d563ad7b2e6890716eec8300e022367335904 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_public_relations.yaml @@ -0,0 +1,55 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Fornisci al giornalista altre informazioni che \xE8 certa siano corrette." + B: Diciamo che le informazioni sono "non registrate" e verranno diffuse + in seguito. + C: Di' "Non lo so" e prometti di fornire le informazioni in seguito. + D: Di' "no comment" piuttosto che sembrare disinformato. + input_correct_responses: + - C + input_question: Cosa dovrebbe fare un professionista dei media nelle pubbliche + relazioni se non conosce la risposta alla domanda di un giornalista? + - input_choice_list: + A: Acquista nomi di dominio che potrebbero essere utilizzati dai gruppi di opposizione. + B: Pubblica commenti anonimi sui blog per combattere queste informazioni. + C: Preparare un comunicato stampa che screditi le informazioni inesatte. + D: Apportare modifiche alle politiche per affrontare i reclami evidenziati su + questi siti. + input_correct_responses: + - D + input_question: "Nella gestione dei problemi, qual \xE8 l'approccio pi\xF9\ + \ proattivo per affrontare le informazioni negative o fuorvianti pubblicate\ + \ online sulla tua organizzazione?" + - input_choice_list: + A: "C\u2019\xE8 stata una risposta coordinata da parte dei media." + B: Sono stati comunicati messaggi coerenti. + C: Le critiche furono interpretate come attacchi alla Chiesa cattolica. + D: "La credibilit\xE0 del Vaticano \xE8 stata mantenuta." + input_correct_responses: + - C + input_question: "Quale di queste affermazioni \xE8 vera per il Vaticano nel 2010,\ + \ al momento delle accuse di insabbiamento degli abusi sui minori?" + - input_choice_list: + A: Definizione del programma + B: Pianificazione del programma + C: Agire e implementare le idee + D: Valutazione del programma + input_correct_responses: + - A + input_question: In quale fase del processo di pianificazione verrebbe effettuata + un'analisi della situazione? + - input_choice_list: + A: Pace verde + B: L'ONU + C: Oxfam + D: Fondo mondiale per la fauna selvatica + input_correct_responses: + - D + input_question: "Earth Hour \xE8 stata una campagna lanciata da quale organizzazione?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_public_relations +tag: mmlu_it_llama_social_sciences_tasks +task: mmlu_it_llama_public_relations +task_alias: public_relations diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_security_studies.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_security_studies.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5f7b30d8f1de655056deb6f5c50a096d7831e292 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_security_studies.yaml @@ -0,0 +1,113 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Compellenza \xE8 un altro termine per indicare la diplomazia coercitiva,\ + \ ma copre un insieme pi\xF9 ristretto di criteri; la coercizione copre quelle\ + \ minacce volte ad avviare un'azione avversaria. Una minaccia di costringere\ + \ uno Stato a cedere parte del suo territorio varrebbe come diplomazia coercitiva,\ + \ a condizione che tale minaccia avvii proattivamente un\u2019azione prima\ + \ che venga intrapresa la diplomazia reattiva." + B: "La diplomazia coercitiva costituisce la minaccia di una forza limitata per\ + \ incentivare l'avversario a soddisfare le richieste del coercitivo. \xC8\ + \ una strategia di influenza che mira a ottenere condiscendenza: l\u2019uso\ + \ della forza per sconfiggere prima un avversario non conta. Lascia un elemento\ + \ di scelta con l'obiettivo di conformarsi o continuare." + C: "La forza militare, o la minaccia della forza militare, utilizza la paura\ + \ per raggiungere obiettivi strategici. La diplomazia coercitiva si differenzia\ + \ da questo approccio perch\xE9 non utilizza la paura come strumento per costringere\ + \ un avversario." + D: "La diplomazia coercitiva viene impiegata per usare la forza ma per limitarne\ + \ gli effetti sulla comunit\xE0 internazionale. La diplomazia coercitiva \xE8\ + \ una strategia aggressiva che mira a ottenere la conformit\xE0 attraverso\ + \ la sconfitta. Non lascia un elemento di scelta all'obiettivo, poich\xE9\ + \ l'obiettivo \xE8 costretto a conformarsi o ad impegnarsi in un conflitto.\ + \ Si cerca di controllare imponendo il rispetto e rimuovendo ogni opportunit\xE0\ + \ di negoziazione o concessione." + input_correct_responses: + - B + input_question: Cosa distingue la diplomazia coercitiva dalla forza militare? + - input_choice_list: + A: I bambini soldato sono vittime di combattimenti che necessitano di rieducazione + e riabilitazione. + B: I bambini e le loro madri non sono soggetti attivi nella guerra e sono meglio + considerati come soggetti nella sfera privata. + C: I bambini sono molto spesso spettatori innocenti della guerra e sono meglio + usati come simboli di pace. + D: "I bambini hanno una soggettivit\xE0 politica che viene persa quando vengono\ + \ considerati vittime passive della guerra." + input_correct_responses: + - D + input_question: "Quale delle seguenti \xE8 la lente migliore attraverso la quale\ + \ indagare il ruolo dei bambini soldato?" + - input_choice_list: + A: "Come una minaccia esistenziale che richiede un\u2019azione immediata e straordinaria,\ + \ rappresentando una minaccia per la sopravvivenza dello Stato o per la sicurezza\ + \ sociale." + B: "Richiedendo un\u2019azione immediata e straordinaria da parte dello Stato,\ + \ minacciando la sopravvivenza di un oggetto di riferimento e quindi garantendo\ + \ l\u2019uso di misure normalmente non impiegate in ambito politico." + C: "Come una minaccia urgente alla sopravvivenza dell'oggetto referente,\ + \ cos\xEC grave da legittimare il ricorso ad azioni straordinarie di risposta." + D: Come una minaccia urgente alla sopravvivenza del pubblico che richiede misure + straordinarie o di emergenza. + input_correct_responses: + - C + input_question: Per diventare cartolarizzato, in quale di questi modi deve essere + presentata una minaccia? + - input_choice_list: + A: "Esistono divisioni cos\xEC ampie all\u2019interno del quadro della sicurezza\ + \ umana per quanto riguarda la natura delle minacce e degli oggetti di riferimento\ + \ che non \xE8 possibile tracciare confronti ampiamente applicabili tra gli\ + \ approcci incentrati sullo stato e la sicurezza umana." + B: "Adottando il quadro della sicurezza umana, i limiti dell\u2019approccio\ + \ realista incentrato sullo stato diventano evidenti. Mentre la sicurezza\ + \ umana definisce l\u2019oggetto di riferimento come la persona o la popolazione,\ + \ gli approcci incentrati sullo stato danno priorit\xE0 alla sicurezza dello\ + \ stato, declassando il perseguimento della sicurezza umana." + C: "L\u2019approccio alla sicurezza incentrato sullo stato \xE8 una fazione\ + \ della sicurezza umana, solitamente definita all\u2019interno dell\u2019\ + ampia scuola della sicurezza umana. Essendo incentrato sullo stato, questo\ + \ approccio d\xE0 priorit\xE0 all\u2019individuo come oggetto di riferimento\ + \ negli studi sulla sicurezza." + D: "Sia l\u2019approccio alla sicurezza incentrato sullo stato che quello incentrato\ + \ sull\u2019uomo si escludono a vicenda e offrono un quadro analitico sufficiente\ + \ con cui comprendere il sistema di sicurezza internazionale. \xC8 quindi\ + \ compito degli analisti della sicurezza determinare quale di questi concetti\ + \ sostanziali \xE8 corretto e quale dovrebbe essere scartato." + input_correct_responses: + - B + input_question: "Come possiamo descrivere al meglio la relazione tra l\u2019approccio\ + \ stato-centrico e il concetto di sicurezza umana?" + - input_choice_list: + A: "La competizione tra nazioni pi\xF9 grandi ha portato alcuni paesi a sostenere\ + \ attivamente gruppi terroristici per minare la forza degli stati rivali.\ + \ Le reti terroristiche sono club di clientelismo esteso gestiti e pagati\ + \ dai loro stati donatori e sono concettualizzati come attori statali, da\ + \ affrontare utilizzando la forza militare." + B: "La globalizzazione ha consentito l\u2019internazionalizzazione delle attivit\xE0\ + \ terroristiche aprendone lo spazio operativo, sebbene il coordinamento sia\ + \ ancora gestito su base geografica. Ci\xF2 suggerisce che i gruppi terroristici\ + \ sono strutturati a livello nazionale, il che significa che il terrorismo\ + \ non pu\xF2 essere considerato in termini di una guerra da sconfiggere militarmente\ + \ senza avere gravi implicazioni sulla popolazione indigena." + C: "Il terrorismo pu\xF2 essere visto come un problema da risolvere con mezzi\ + \ militari (guerra al terrorismo), con normali tecniche di polizia (terrorismo\ + \ come crimine) o come un problema medico con cause e sintomi sottostanti\ + \ (terrorismo come malattia)." + D: "Il terrorismo \xE8 visto come un problema criminale. La criminalizzazione\ + \ del terrorismo ha due importanti implicazioni. In primo luogo, suggerisce\ + \ che il terrorismo pu\xF2 essere sradicato \u2013 i terroristi possono essere\ + \ catturati e processati mediante normali procedimenti giudiziari eliminando\ + \ cos\xEC la minaccia per la societ\xE0 \u2013 e in secondo luogo, suggerisce\ + \ che tecniche preventive di criminalit\xE0 siano applicabili per impedirne\ + \ lo sviluppo." + input_correct_responses: + - C + input_question: "Quali sono i quadri di analisi all\u2019interno dei quali \xE8\ + \ stato considerato il terrorismo (a partire dal 2020)?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_security_studies +tag: mmlu_it_llama_social_sciences_tasks +task: mmlu_it_llama_security_studies +task_alias: security_studies diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_sociology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_sociology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0c17fb67476d46834ed2adffe53f954f518e1f8e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_sociology.yaml @@ -0,0 +1,60 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: assistenza sanitaria e istruzione gratuite per tutti + B: un salario minimo + C: piena occupazione + D: benessere universale + input_correct_responses: + - B + input_question: 'Quale dei seguenti servizi lo stato sociale del dopoguerra del + 1948 non mirava a fornire:' + - input_choice_list: + A: una giostra da fiera + B: un circo + C: un teatro di marionette + D: un balletto + input_correct_responses: + - C + input_question: "Cosa descrive Berger (1963) come metafora della realt\xE0 sociale?" + - input_choice_list: + A: la crescente burocrazia statale ha reso la religione solo una parte marginale + della nostra vita + B: "nonostante l\u2019indebolimento dell\u2019autorit\xE0 tradizionale, la nostra\ + \ vita quotidiana e il \u201Csenso comune\u201D rimangono plasmati da credenze\ + \ e valori religiosi" + C: "la partecipazione religiosa al culto collettivo pu\xF2 essere diminuita,\ + \ ma le persone continuano a praticare la propria fede in privato" + D: "le persone sono molto pi\xF9 propense a discutere le proprie convinzioni\ + \ religiose in contesti pubblici e informali" + input_correct_responses: + - B + input_question: "Il passaggio dalla \u201Creligione civile\u201D alla \u201Creligione\ + \ comune\u201D significa che:" + - input_choice_list: + A: la tendenza della classe operaia a non realizzare i propri interessi + B: "un\u2019ideologia dominante che legittima il potere economico, politico\ + \ e culturale" + C: una forma di doppia coscienza basata sull'ideologia e sulle esperienze + quotidiane + D: "una modalit\xE0 di pagamento prevista per arte topiaria eccezionale" + input_correct_responses: + - B + input_question: "Il termine \u201Cegemonia\u201D si riferisce a:" + - input_choice_list: + A: la maggior parte degli scioperi passa inosservata ai datori di lavoro e ai + mass media + B: non tutte le controversie industriali verranno denunciate dal datore di lavoro + C: dalla definizione di sciopero sono esclusi quelli che coinvolgono meno di + dieci lavoratori o che durano meno di un giorno + D: "\xE8 difficile confrontare gli scioperi misurati in modi diversi" + input_correct_responses: + - A + input_question: "Quale dei seguenti non \xE8 un problema associato alle statistiche\ + \ ufficiali sugli scioperi?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_sociology +tag: mmlu_it_llama_social_sciences_tasks +task: mmlu_it_llama_sociology +task_alias: sociology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_us_foreign_policy.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_us_foreign_policy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1c34d857d1d56b6beb4bf7c9796e34d818f14102 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_us_foreign_policy.yaml @@ -0,0 +1,59 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Ha danneggiato il sostegno al modello americano di economia politica e capitalismo + B: Ha creato rabbia nei confronti degli Stati Uniti per aver esagerato la crisi + C: Ha aumentato il sostegno alla leadership globale americana sotto la presidenza + Obama + D: "Ha ridotto l\u2019uso globale del dollaro USA" + input_correct_responses: + - A + input_question: "In che modo la crisi finanziaria del 2008 ha influito sulla reputazione\ + \ internazionale dell\u2019America?" + - input_choice_list: + A: Ha globalizzato il contenimento. + B: Ha militarizzato il contenimento. + C: Ha chiesto lo sviluppo della bomba all'idrogeno. + D: Tutti i precedenti + input_correct_responses: + - D + input_question: "In che modo l\u2019NSC-68 ha cambiato la strategia degli Stati\ + \ Uniti?" + - input_choice_list: + A: politica del terrorismo. + B: politica economica. + C: politica estera. + D: politica internazionale. + input_correct_responses: + - C + input_question: "L\u2019ambito delle decisioni politiche che riguardano principalmente\ + \ le relazioni tra gli Stati Uniti e il resto del mondo \xE8 noto come" + - input_choice_list: + A: I realisti difensivi pongono maggiore enfasi sul ruolo delle istituzioni + internazionali + B: I realisti difensivi pongono meno enfasi sui fattori geografici + C: "I realisti offensivi danno maggiore priorit\xE0 all\u2019interesse nazionale\ + \ rispetto ai realisti difensivi." + D: I realisti difensivi credono che gli stati massimizzino la sicurezza, mentre + i realisti offensivi credono che gli stati massimizzino il potere + input_correct_responses: + - D + input_question: In che modo il realismo difensivo e il realismo offensivo differiscono + nella loro spiegazione del comportamento statale? + - input_choice_list: + A: La globalizzazione aveva reso uomini come lui troppo ricchi + B: La globalizzazione ha avvantaggiato solo alcuni stati americani, come New + York + C: "Le \xE9lite liberali avevano incoraggiato la globalizzazione, mentre gli\ + \ \u201Camericani comuni\u201D avevano perso il lavoro a causa di essa" + D: La globalizzazione ha incoraggiato guerre commerciali dannose + input_correct_responses: + - C + input_question: In che modo Donald Trump ha attaccato la globalizzazione nella + campagna del 2016? +include: _continuation_template_yaml +process_docs: !function utils.process_docs_us_foreign_policy +tag: mmlu_it_llama_social_sciences_tasks +task: mmlu_it_llama_us_foreign_policy +task_alias: us_foreign_policy diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_virology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_virology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..23c68eb0c678a416458ba2f1a7f2792fd1877ec9 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_virology.yaml @@ -0,0 +1,52 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Perch\xE9 non hanno acido nucleico" + B: Richiedono un virus aiutante + C: Si replicano solo nelle cellule in divisione + D: "Pu\xF2 integrarsi nei cromosomi ospiti" + input_correct_responses: + - A + input_question: "Perch\xE9 i parvovirus sono parassiti ad alto impatto?" + - input_choice_list: + A: Virus fragili spesso visualizzati con RNA che fuoriesce dall'interno + B: Allungare i virus + C: Virus icosaedrici con involucro + D: Virus molto grandi + input_correct_responses: + - A + input_question: "Quale delle seguenti \xE8 una caratteristica morfologica dei\ + \ paramixovirus." + - input_choice_list: + A: Raccolta dati + B: Istituzione di un archivio di campioni biologici + C: Interesse dei partecipanti + D: Somministrazione del questionario da parte del personale + input_correct_responses: + - B + input_question: "Un fattore chiave che ha facilitato l\u2019applicazione degli\ + \ studi caso-controllo annidati dal MACS \xE8 stato:" + - input_choice_list: + A: Cambiamento nel comportamento + B: Copertura completa + C: Uso efficace della teoria comportamentale + D: Cambiamento comportamentale duraturo + input_correct_responses: + - D + input_question: "L\u2019obiettivo pi\xF9 importante di un intervento comportamentale\ + \ \xE8:" + - input_choice_list: + A: Individui sieroprevalenti con infezione da HIV + B: Sieronegativi + C: Sieroconvertitori + D: Sieronegativi ad alto rischio + input_correct_responses: + - C + input_question: "Il tempo medio di sopravvivenza all\u2019AIDS e alla morte \xE8\ + \ stato stabilito come segue:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_virology +tag: mmlu_it_llama_other_tasks +task: mmlu_it_llama_virology +task_alias: virology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_world_religions.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_world_religions.yaml new file mode 100644 index 0000000000000000000000000000000000000000..da022f127d43420eaa2c6fa4337b618f97c6f9b6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/mmlu_it_world_religions.yaml @@ -0,0 +1,50 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: L'Arcobaleno + B: Circoncisione + C: Un figlio + D: Bar mitzvah + input_correct_responses: + - B + input_question: " Qual \xE8 il segno del patto per i maschi ebrei?" + - input_choice_list: + A: Il Dharma + B: Il Sangha + C: Il Budda + D: Il Bodhisattva + input_correct_responses: + - A + input_question: "Qual \xE8 la seconda gemma nel buddismo?" + - input_choice_list: + A: Shang + B: Zhou + C: Han + D: Xia + input_correct_responses: + - B + input_question: ' In quale dinastia fu sviluppato il "Mandato del Cielo" + per legittimare i nuovi sovrani?' + - input_choice_list: + A: Honen + B: Tanaka + C: Tokugawa + D: Meiji + input_correct_responses: + - D + input_question: ' Quale governo giapponese promosse una sorta di culto nazionale + basato sull'imperatore e sulla sua associazione con i kami?' + - input_choice_list: + A: Testi rituali + B: Testi filosofici + C: Inni + D: Storie di origine + input_correct_responses: + - B + input_question: Come si possono caratterizzare le Upanishad? +include: _continuation_template_yaml +process_docs: !function utils.process_docs_world_religions +tag: mmlu_it_llama_humanities_tasks +task: mmlu_it_llama_world_religions +task_alias: world_religions diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/utils.py b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..e28399e4bb5a0c1b8be3c6d3eec3b0e1cad9b42a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_it/utils.py @@ -0,0 +1,104 @@ +from functools import partial + +import datasets + + +def process_docs(dataset: datasets.Dataset, subtask) -> datasets.Dataset: + return dataset.filter( + lambda example: example["subtask_name"] == f"mmlu_it_chat.{subtask}" + ) + + +process_docs_miscellaneous = partial(process_docs, subtask="miscellaneous") +process_docs_high_school_physics = partial(process_docs, subtask="high_school_physics") +process_docs_high_school_computer_science = partial( + process_docs, subtask="high_school_computer_science" +) +process_docs_high_school_statistics = partial( + process_docs, subtask="high_school_statistics" +) +process_docs_professional_accounting = partial( + process_docs, subtask="professional_accounting" +) +process_docs_machine_learning = partial(process_docs, subtask="machine_learning") +process_docs_econometrics = partial(process_docs, subtask="econometrics") +process_docs_astronomy = partial(process_docs, subtask="astronomy") +process_docs_business_ethics = partial(process_docs, subtask="business_ethics") +process_docs_high_school_macroeconomics = partial( + process_docs, subtask="high_school_macroeconomics" +) +process_docs_jurisprudence = partial(process_docs, subtask="jurisprudence") +process_docs_professional_psychology = partial( + process_docs, subtask="professional_psychology" +) +process_docs_high_school_chemistry = partial( + process_docs, subtask="high_school_chemistry" +) +process_docs_philosophy = partial(process_docs, subtask="philosophy") +process_docs_college_medicine = partial(process_docs, subtask="college_medicine") +process_docs_medical_genetics = partial(process_docs, subtask="medical_genetics") +process_docs_high_school_microeconomics = partial( + process_docs, subtask="high_school_microeconomics" +) +process_docs_high_school_geography = partial( + process_docs, subtask="high_school_geography" +) +process_docs_college_biology = partial(process_docs, subtask="college_biology") +process_docs_human_aging = partial(process_docs, subtask="human_aging") +process_docs_anatomy = partial(process_docs, subtask="anatomy") +process_docs_logical_fallacies = partial(process_docs, subtask="logical_fallacies") +process_docs_clinical_knowledge = partial(process_docs, subtask="clinical_knowledge") +process_docs_conceptual_physics = partial(process_docs, subtask="conceptual_physics") +process_docs_human_sexuality = partial(process_docs, subtask="human_sexuality") +process_docs_formal_logic = partial(process_docs, subtask="formal_logic") +process_docs_abstract_algebra = partial(process_docs, subtask="abstract_algebra") +process_docs_high_school_biology = partial(process_docs, subtask="high_school_biology") +process_docs_marketing = partial(process_docs, subtask="marketing") +process_docs_world_religions = partial(process_docs, subtask="world_religions") +process_docs_high_school_european_history = partial( + process_docs, subtask="high_school_european_history" +) +process_docs_college_computer_science = partial( + process_docs, subtask="college_computer_science" +) +process_docs_high_school_world_history = partial( + process_docs, subtask="high_school_world_history" +) +process_docs_prehistory = partial(process_docs, subtask="prehistory") +process_docs_high_school_mathematics = partial( + process_docs, subtask="high_school_mathematics" +) +process_docs_global_facts = partial(process_docs, subtask="global_facts") +process_docs_moral_scenarios = partial(process_docs, subtask="moral_scenarios") +process_docs_electrical_engineering = partial( + process_docs, subtask="electrical_engineering" +) +process_docs_management = partial(process_docs, subtask="management") +process_docs_elementary_mathematics = partial( + process_docs, subtask="elementary_mathematics" +) +process_docs_us_foreign_policy = partial(process_docs, subtask="us_foreign_policy") +process_docs_professional_medicine = partial( + process_docs, subtask="professional_medicine" +) +process_docs_college_physics = partial(process_docs, subtask="college_physics") +process_docs_high_school_government_and_politics = partial( + process_docs, subtask="high_school_government_and_politics" +) +process_docs_security_studies = partial(process_docs, subtask="security_studies") +process_docs_professional_law = partial(process_docs, subtask="professional_law") +process_docs_high_school_us_history = partial( + process_docs, subtask="high_school_us_history" +) +process_docs_virology = partial(process_docs, subtask="virology") +process_docs_nutrition = partial(process_docs, subtask="nutrition") +process_docs_college_chemistry = partial(process_docs, subtask="college_chemistry") +process_docs_computer_security = partial(process_docs, subtask="computer_security") +process_docs_public_relations = partial(process_docs, subtask="public_relations") +process_docs_moral_disputes = partial(process_docs, subtask="moral_disputes") +process_docs_college_mathematics = partial(process_docs, subtask="college_mathematics") +process_docs_high_school_psychology = partial( + process_docs, subtask="high_school_psychology" +) +process_docs_international_law = partial(process_docs, subtask="international_law") +process_docs_sociology = partial(process_docs, subtask="sociology") diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/_default_template_yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/_default_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..31db83dc8a5467c4757f0bd6f56c1dcbebe02ec4 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/_default_template_yaml @@ -0,0 +1,35 @@ +dataset_path: TIGER-Lab/MMLU-Pro +output_type: generate_until +test_split: test +fewshot_split: validation +fewshot_config: + sampler: first_n + doc_to_target: !function utils.fewshot_to_text +doc_to_text: "{% set letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' %}Given the following question and candidate answers, choose the best answer.\nQuestion: {{question.strip()}}\n{% for choice in options %}{{letters[loop.index0]}}. {{choice}}\n{% endfor %}\nYour response should end with \"The best answer is [the_answer_letter].\" where the [the_answer_letter] is a letter from the provided choices.\n\nLet's think step by step." +doc_to_target: answer +num_fewshot: 5 +metric_list: + - metric: exact_match + aggregation: mean + higher_is_better: true + ignore_case: true + ignore_punctuation: true + regexes_to_ignore: + - "\\$" + - "\\.$" +generation_kwargs: + do_sample: false + temperature: 0 + max_gen_toks: 1024 + until: [] +filter_list: + - name: strict_match + filter: + - function: "regex" + regex_pattern: "[tT]he best answer is ([A-Z])" + group_select: -1 + - function: take_first +metadata: + version: 1.0 +dataset_kwargs: + trust_remote_code: true diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/_mmlu_pro.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/_mmlu_pro.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0a4972283b89ae6038bdcb2458a8995fb9f8d065 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/_mmlu_pro.yaml @@ -0,0 +1,23 @@ +group: mmlu_pro_llama +task: + - mmlu_pro_llama_biology + - mmlu_pro_llama_business + - mmlu_pro_llama_chemistry + - mmlu_pro_llama_computer_science + - mmlu_pro_llama_economics + - mmlu_pro_llama_engineering + - mmlu_pro_llama_health + - mmlu_pro_llama_history + - mmlu_pro_llama_law + - mmlu_pro_llama_math + - mmlu_pro_llama_other + - mmlu_pro_llama_philosophy + - mmlu_pro_llama_physics + - mmlu_pro_llama_psychology +aggregate_metric_list: + - aggregation: mean + metric: exact_match + weight_by_size: true + filter_list: [strict_match] +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_biology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_biology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ffcbffc8d63f02cd01218dcf88fc980f581bb804 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_biology.yaml @@ -0,0 +1,4 @@ +include: "_default_template_yaml" +task: "mmlu_pro_llama_biology" +task_alias: "biology" +process_docs: !function utils.process_biology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_business.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_business.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fdfe4ff84eb3bc2c2d9c97ef31c6297e60865c47 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_business.yaml @@ -0,0 +1,4 @@ +include: "_default_template_yaml" +task: "mmlu_pro_llama_business" +task_alias: "business" +process_docs: !function utils.process_business diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_chemistry.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_chemistry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cbb85149af42a5e0582a4d167ac34eb0e42563f2 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_chemistry.yaml @@ -0,0 +1,4 @@ +include: "_default_template_yaml" +task: "mmlu_pro_llama_chemistry" +task_alias: "chemistry" +process_docs: !function utils.process_chemistry diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_computer_science.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_computer_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f7d1e14442b4cde5119cc827764528666e6834b6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_computer_science.yaml @@ -0,0 +1,4 @@ +include: "_default_template_yaml" +task: "mmlu_pro_llama_computer_science" +task_alias: "computer_science" +process_docs: !function utils.process_computer_science diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_economics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_economics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f58272eb8e131773c92a2e0da0b291b040494f7a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_economics.yaml @@ -0,0 +1,4 @@ +include: "_default_template_yaml" +task: "mmlu_pro_llama_economics" +task_alias: "economics" +process_docs: !function utils.process_economics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_engineering.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_engineering.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fb75ecb2b92fe81ce07be44c9fcb0d0c9d4b3517 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_engineering.yaml @@ -0,0 +1,4 @@ +include: "_default_template_yaml" +task: "mmlu_pro_llama_engineering" +task_alias: "engineering" +process_docs: !function utils.process_engineering diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_health.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_health.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c95eba37835f53000a1cba3356c153947651a297 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_health.yaml @@ -0,0 +1,4 @@ +include: "_default_template_yaml" +task: "mmlu_pro_llama_health" +task_alias: "health" +process_docs: !function utils.process_health diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_history.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5dbe3b6831b13887eea8a5ca10a35baeb019a4e8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_history.yaml @@ -0,0 +1,4 @@ +include: "_default_template_yaml" +task: "mmlu_pro_llama_history" +task_alias: "history" +process_docs: !function utils.process_history diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_law.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_law.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a3de3b6b77ee7b09abdaffe718bf8afbbe067319 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_law.yaml @@ -0,0 +1,4 @@ +include: "_default_template_yaml" +task: "mmlu_pro_llama_law" +task_alias: "law" +process_docs: !function utils.process_law diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_math.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_math.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3d78f4d43634b6d8a3d654d7357ad69c45d9890d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_math.yaml @@ -0,0 +1,4 @@ +include: "_default_template_yaml" +task: "mmlu_pro_llama_math" +task_alias: "math" +process_docs: !function utils.process_math diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_other.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_other.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cf7910c2e095d398b6954e29044a75b565983bb6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_other.yaml @@ -0,0 +1,4 @@ +include: "_default_template_yaml" +task: "mmlu_pro_llama_other" +task_alias: "other" +process_docs: !function utils.process_other diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_philosophy.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_philosophy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4bfe8772e0ebf956ad09a999c172e9cf8cb9c178 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_philosophy.yaml @@ -0,0 +1,4 @@ +include: "_default_template_yaml" +task: "mmlu_pro_llama_philosophy" +task_alias: "philosophy" +process_docs: !function utils.process_philosophy diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b95a8b1431fe72a20965492bb8dc39108bd55120 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_physics.yaml @@ -0,0 +1,4 @@ +include: "_default_template_yaml" +task: "mmlu_pro_llama_physics" +task_alias: "physics" +process_docs: !function utils.process_physics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_psychology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_psychology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cf3ad99828129cf32623855a32c5b7debb24d6f6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/mmlu_pro_psychology.yaml @@ -0,0 +1,4 @@ +include: "_default_template_yaml" +task: "mmlu_pro_llama_psychology" +task_alias: "psychology" +process_docs: !function utils.process_psychology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/utils.py b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..4dfc24e03f5b71e64da0e7408dddfdc75749f1c2 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pro/utils.py @@ -0,0 +1,27 @@ +import re +from functools import partial + + +def process_docs(dataset, subject): + return dataset.filter(lambda x: x["category"] == subject) + + +def fewshot_to_text(example): + text = example["cot_content"].removeprefix("A: Let's think step by step.").strip() + return re.sub(r"The answer is \(([A-Z])\)\.", r"The best answer is \1.", text) + + +process_biology = partial(process_docs, subject="biology") +process_business = partial(process_docs, subject="business") +process_chemistry = partial(process_docs, subject="chemistry") +process_computer_science = partial(process_docs, subject="computer science") +process_economics = partial(process_docs, subject="economics") +process_engineering = partial(process_docs, subject="engineering") +process_health = partial(process_docs, subject="health") +process_history = partial(process_docs, subject="history") +process_law = partial(process_docs, subject="law") +process_math = partial(process_docs, subject="math") +process_other = partial(process_docs, subject="other") +process_philosophy = partial(process_docs, subject="philosophy") +process_physics = partial(process_docs, subject="physics") +process_psychology = partial(process_docs, subject="psychology") diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/_continuation_template_yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/_continuation_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..23d13a6f7faa5e7bf60d50c814e961eec314cf72 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/_continuation_template_yaml @@ -0,0 +1,32 @@ +dataset_path: meta-llama/Llama-3.1-8B-Instruct-evals +dataset_name: Llama-3.1-8B-Instruct-evals__multilingual_mmlu_pt__details +output_type: generate_until +test_split: latest +doc_to_text: "Given the following question and four candidate answers (A, B, C and D), choose the best answer.\nQuestion: {{input_question.strip()}}\nA. {{input_choice_list.A}}\nB. {{input_choice_list.B}}\nC. {{input_choice_list.C}}\nD. {{input_choice_list.D}}\nYour response should end with \"The best answer is [the_answer_letter]\" where the [the_answer_letter] is one of A, B, C or D." +gen_prefix: "The best answer is" +doc_to_target: "{{input_correct_responses[0]}}." +num_fewshot: 5 +metric_list: + - metric: exact_match + aggregation: mean + higher_is_better: true + ignore_case: true + ignore_punctuation: true + regexes_to_ignore: + - "\\$" + - "\\.$" +generation_kwargs: + do_sample: false + temperature: 0 + until: + - "." + max_gen_toks: 10 +filter_list: + - name: strict_match + filter: + - function: remove_whitespace + - function: take_first +metadata: + version: 1.0 +dataset_kwargs: + trust_remote_code: true diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/_mmlu_pt_humanities.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/_mmlu_pt_humanities.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2ae86ca8b46a42397f3ff5b0cb62ab102f067563 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/_mmlu_pt_humanities.yaml @@ -0,0 +1,11 @@ +group: mmlu_pt_llama_humanities +group_alias: humanities +task: + - mmlu_pt_llama_humanities_tasks +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: True + filter_list: [strict_match] +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/_mmlu_pt_llama.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/_mmlu_pt_llama.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d4afeb2705d89babeaac0409cbc41c4f64d5d127 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/_mmlu_pt_llama.yaml @@ -0,0 +1,13 @@ +group: mmlu_pt_llama +task: + - mmlu_pt_llama_stem + - mmlu_pt_llama_other + - mmlu_pt_llama_social_sciences + - mmlu_pt_llama_humanities +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: True + filter_list: [strict_match] +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/_mmlu_pt_other.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/_mmlu_pt_other.yaml new file mode 100644 index 0000000000000000000000000000000000000000..04113961528ab70c519b6c2aeea27c50550df4ce --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/_mmlu_pt_other.yaml @@ -0,0 +1,11 @@ +group: mmlu_pt_llama_other +group_alias: other +task: + - mmlu_pt_llama_other_tasks +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: True + filter_list: [strict_match] +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/_mmlu_pt_social_sciences.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/_mmlu_pt_social_sciences.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bea231f2cb0ead2f6f79260e079feb7cd9e0d581 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/_mmlu_pt_social_sciences.yaml @@ -0,0 +1,11 @@ +group: mmlu_pt_llama_social_sciences +group_alias: social sciences +task: + - mmlu_pt_llama_social_sciences_tasks +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: True + filter_list: [strict_match] +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/_mmlu_pt_stem.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/_mmlu_pt_stem.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e80999c54b1070e97618707495980d4a6f561404 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/_mmlu_pt_stem.yaml @@ -0,0 +1,11 @@ +group: mmlu_pt_llama_stem +group_alias: stem +task: + - mmlu_pt_llama_stem_tasks +aggregate_metric_list: + - metric: exact_match + aggregation: mean + weight_by_size: True + filter_list: [strict_match] +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_abstract_algebra.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_abstract_algebra.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e73bae5002b56c9c21f20af12a8d12aedf50ab6c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_abstract_algebra.yaml @@ -0,0 +1,54 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: '0' + B: '1' + C: '2' + D: '3' + input_correct_responses: + - B + input_question: Encontre todo c em Z_3 tal que Z_3[x]/(x^2 + c) seja um corpo. + - input_choice_list: + A: Verdade verdade + B: Falso, Falso + C: Verdadeiro falso + D: Falso verdadeiro + input_correct_responses: + - B + input_question: "Declara\xE7\xE3o 1 | Se aH \xE9 um elemento de um grupo de fatores,\ + \ ent\xE3o |aH| divide |a|. Declara\xE7\xE3o 2 | Se H e K s\xE3o subgrupos de\ + \ G, ent\xE3o HK \xE9 um subgrupo de G." + - input_choice_list: + A: Verdade verdade + B: Falso, Falso + C: Verdadeiro falso + D: Falso verdadeiro + input_correct_responses: + - C + input_question: "Declara\xE7\xE3o 1 | Cada elemento de um grupo gera um subgrupo\ + \ c\xEDclico do grupo. Declara\xE7\xE3o 2 | O grupo sim\xE9trico S_10 possui\ + \ 10 elementos." + - input_choice_list: + A: Verdade verdade + B: Falso, Falso + C: Verdadeiro falso + D: Falso verdadeiro + input_correct_responses: + - A + input_question: "Declara\xE7\xE3o 1| Toda fun\xE7\xE3o de um conjunto finito sobre\ + \ si mesma deve ser injetora. Declara\xE7\xE3o 2 | Todo subgrupo de um grupo\ + \ abeliano \xE9 abeliano." + - input_choice_list: + A: '0' + B: '3' + C: '12' + D: '30' + input_correct_responses: + - A + input_question: "Encontre a caracter\xEDstica do anel 2Z." +include: _continuation_template_yaml +process_docs: !function utils.process_docs_abstract_algebra +tag: mmlu_pt_llama_stem_tasks +task: mmlu_pt_llama_abstract_algebra +task_alias: abstract_algebra diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_anatomy.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_anatomy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4b5358ef64f295ffa7830a782cc20091ee64fb8b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_anatomy.yaml @@ -0,0 +1,50 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "O primeiro arco far\xEDngeo" + B: "O primeiro e segundo arcos far\xEDngeos" + C: "O segundo arco far\xEDngeo" + D: "O segundo e terceiro arcos far\xEDngeos" + input_correct_responses: + - D + input_question: "Qual \xE9 a origem embriol\xF3gica do osso hi\xF3ide?" + - input_choice_list: + A: O nervo supraorbital + B: O nervo infraorbital + C: O nervo mental + D: Nenhuma das acima + input_correct_responses: + - D + input_question: "Qual desses ramos do nervo trig\xEAmeo cont\xE9m processos motores\ + \ som\xE1ticos?" + - input_choice_list: + A: "n\xE3o t\xEAm inerva\xE7\xE3o sensorial." + B: "est\xE3o separados por um espa\xE7o de 2 mm." + C: "estender-se at\xE9 o pesco\xE7o." + D: "s\xE3o compostos por epit\xE9lio respirat\xF3rio." + input_correct_responses: + - C + input_question: A pleura + - input_choice_list: + A: sobremordida excessiva dos incisivos laterais superiores. + B: overjet negativo dos incisivos centrais superiores. + C: overjet excessivo dos incisivos laterais superiores. + D: overjet excessivo dos incisivos centrais superiores. + input_correct_responses: + - C + input_question: "Na oclus\xE3o Classe II Div 2 de Angle h\xE1" + - input_choice_list: + A: Abdominal + B: Craniano + C: Pleural + D: Espinhal + input_correct_responses: + - B + input_question: "Qual das alternativas a seguir \xE9 a cavidade corporal que cont\xE9\ + m a gl\xE2ndula pituit\xE1ria?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_anatomy +tag: mmlu_pt_llama_stem_tasks +task: mmlu_pt_llama_anatomy +task_alias: anatomy diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_astronomy.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_astronomy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cac4306411d9ea60a7a36e87a53c0dd8c82fa8eb --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_astronomy.yaml @@ -0,0 +1,67 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Seria mais dif\xEDcil j\xE1 que o caminh\xE3o \xE9 mais pesado em Marte." + B: "Seria mais f\xE1cil j\xE1 que o caminh\xE3o \xE9 mais leve em Marte." + C: "Seria mais dif\xEDcil j\xE1 que o caminh\xE3o \xE9 mais leve em Marte." + D: "Seria o mesmo, n\xE3o importa onde voc\xEA esteja." + input_correct_responses: + - D + input_question: "Voc\xEA est\xE1 empurrando um caminh\xE3o por uma estrada. Seria\ + \ mais f\xE1cil acelerar este caminh\xE3o em Marte? Por que? (Suponha que n\xE3\ + o haja atrito)" + - input_choice_list: + A: "O cintur\xE3o de Kuiper; cometas de curto per\xEDodo tendem a estar no plano\ + \ do sistema solar, assim como o cintur\xE3o de Kuiper." + B: "O cintur\xE3o de Kuiper; cometas de curto per\xEDodo tendem a vir de dire\xE7\ + \xF5es aleat\xF3rias, indicando uma distribui\xE7\xE3o esf\xE9rica de cometas\ + \ chamada cintur\xE3o de Kuiper." + C: "O cintur\xE3o de aster\xF3ides; cometas de per\xEDodo curto t\xEAm per\xED\ + odos orbitais semelhantes aos de aster\xF3ides como Vesta e s\xE3o encontrados\ + \ no plano do sistema solar, assim como o cintur\xE3o de aster\xF3ides." + D: "A nuvem de Oort; cometas de curto per\xEDodo tendem a estar no plano do\ + \ sistema solar, assim como a nuvem de Oort." + input_correct_responses: + - A + input_question: "De onde vem a maioria dos cometas de curto per\xEDodo e como\ + \ sabemos?" + - input_choice_list: + A: 10.000 vezes mais + B: 100 vezes mais + C: 1000 vezes mais + D: 10 vezes mais + input_correct_responses: + - A + input_question: "Digamos que a pupila do seu olho tenha um di\xE2metro de 5 mm\ + \ e voc\xEA tenha um telesc\xF3pio com abertura de 50 cm. Quanta luz a mais\ + \ o telesc\xF3pio pode captar do que o seu olho?" + - input_choice_list: + A: "Um planeta j\xE1 se formou aqui, mas foi destru\xEDdo por uma colis\xE3\ + o catastr\xF3fica." + B: "N\xE3o havia material suficiente nesta parte da nebulosa solar para formar\ + \ um planeta." + C: "Havia muito material rochoso para formar um planeta terrestre, mas n\xE3\ + o material gasoso suficiente para formar um planeta joviano." + D: "A resson\xE2ncia com J\xFApiter impediu que o material se reunisse para\ + \ formar um planeta." + input_correct_responses: + - D + input_question: "Por que n\xE3o existe um planeta onde o cintur\xE3o de aster\xF3\ + ides esteja localizado?" + - input_choice_list: + A: "Porque a superf\xEDcie est\xE1 coberta por minerais fortemente oxidados\ + \ ("enferrujados")." + B: Porque a atmosfera espalha mais luz em comprimentos de onda mais azuis, transmitindo + principalmente luz vermelha. + C: "Porque Marte est\xE1 coberto por antigos fluxos de lava de cor vermelha." + D: "Porque a \xE1gua corrente na superf\xEDcie de Marte alterou os minerais\ + \ da superf\xEDcie h\xE1 v\xE1rios bilh\xF5es de anos." + input_correct_responses: + - A + input_question: "Por que Marte \xE9 vermelho?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_astronomy +tag: mmlu_pt_llama_stem_tasks +task: mmlu_pt_llama_astronomy +task_alias: astronomy diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_business_ethics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_business_ethics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..59df451a1b798bf25b6c767dd67361aae0d2027b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_business_ethics.yaml @@ -0,0 +1,66 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "Externalidades, Poder, Independ\xEAncia" + B: "Publicidade, Recursos insubstanciais, Depend\xEAncia m\xFAtua" + C: "Publicidade, Poder, Independ\xEAncia" + D: "Externalidades, Poder, Depend\xEAncia M\xFAtua" + input_correct_responses: + - D + input_question: "Al\xE9m do argumento comercial para o envolvimento na RSE, h\xE1\ + \ uma s\xE9rie de argumentos morais relacionados com: _______ negativo, o _______que\ + \ as empresas possuem e o ________ dos neg\xF3cios e da sociedade." + - input_choice_list: + A: Responsabilidade social corporativa + B: "Gest\xE3o de \xE9tica empresarial" + C: Sustentabilidade + D: "Gest\xE3o ambiental" + input_correct_responses: + - B + input_question: "_______ \xE9 a tentativa direta de gerir formal ou informalmente\ + \ quest\xF5es ou problemas \xE9ticos, atrav\xE9s de pol\xEDticas, pr\xE1ticas\ + \ e programas espec\xEDficos." + - input_choice_list: + A: Fora, limitado, independente + B: Dentro, Limitado, Intermitentemente + C: Fora, Ilimitado, Intermitentemente + D: Dentro, Ilimitado, Independentemente + input_correct_responses: + - A + input_question: "Para garantir a independ\xEAncia dos administradores n\xE3o executivos,\ + \ h\xE1 uma s\xE9rie de medidas que podem ser tomadas, que incluem a sele\xE7\ + \xE3o de n\xE3o executivos de _______ da sociedade, a nomea\xE7\xE3o por um\ + \ per\xEDodo de _________, bem como a nomea\xE7\xE3o de _________." + - input_choice_list: + A: "A\xE7\xE3o direta n\xE3o violenta, A\xE7\xE3o direta violenta, A\xE7\xE3\ + o indireta, Boicote" + B: "A\xE7\xE3o indireta, A\xE7\xE3o instrumental, A\xE7\xE3o direta n\xE3o violenta,\ + \ Campanha de informa\xE7\xE3o" + C: "A\xE7\xE3o indireta, a\xE7\xE3o direta violenta, boicote de a\xE7\xE3o direta\ + \ n\xE3o violenta" + D: "A\xE7\xE3o direta n\xE3o violenta, A\xE7\xE3o instrumental, A\xE7\xE3o indireta,\ + \ Campanha de informa\xE7\xE3o" + input_correct_responses: + - C + input_question: "Tr\xEAs t\xE1ticas contrastantes que os OSCs podem adotar para\ + \ atingir seus objetivos s\xE3o ________, que normalmente envolve pesquisa e\ + \ comunica\xE7\xE3o, ________, que pode envolver atacar fisicamente as opera\xE7\ + \xF5es de uma empresa, ou ________, muitas vezes envolvendo alguma forma de\ + \ _______." + - input_choice_list: + A: "Buycotts, boicotes, tecnologia Blockchain, doa\xE7\xF5es de caridade" + B: Compras, boicotes, tecnologia digital, aumento de vendas + C: "Boicotes, Buyalls, tecnologia Blockchain, doa\xE7\xF5es de caridade" + D: Boicotes, Buycotts, Tecnologia Digital, Aumento de Vendas + input_correct_responses: + - D + input_question: "Em contraste com _______, _______ visam recompensar o comportamento\ + \ favor\xE1vel das empresas. O sucesso de tais campanhas foi aumentado atrav\xE9\ + s do uso de ___________, que permite campanhas para facilitar a empresa a alcan\xE7\ + ar _________." +include: _continuation_template_yaml +process_docs: !function utils.process_docs_business_ethics +tag: mmlu_pt_llama_other_tasks +task: mmlu_pt_llama_business_ethics +task_alias: business_ethics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_clinical_knowledge.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_clinical_knowledge.yaml new file mode 100644 index 0000000000000000000000000000000000000000..81f9d77f3505d5adccf5c716c35c50dd5f69afbf --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_clinical_knowledge.yaml @@ -0,0 +1,55 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: ATP. + B: ADP. + C: fosfocreatina. + D: "fosforila\xE7\xE3o oxidativa." + input_correct_responses: + - A + input_question: "A energia para todas as formas de contra\xE7\xE3o muscular \xE9\ + \ fornecida por:" + - input_choice_list: + A: "Os cateteres masculinos e femininos s\xE3o de cores diferentes." + B: "Os cateteres masculinos s\xE3o mais longos que os cateteres femininos." + C: "Os cateteres masculinos s\xE3o maiores que os cateteres femininos." + D: "Os cateteres femininos s\xE3o mais longos que os masculinos." + input_correct_responses: + - B + input_question: "Qual \xE9 a diferen\xE7a entre um cateter masculino e um cateter\ + \ feminino?" + - input_choice_list: + A: "A abdu\xE7\xE3o do polegar \xE9 suprida pela raiz espinhal T2" + B: "A oposi\xE7\xE3o do polegar pelo oponente pol\xEDtico \xE9 suprida pela\ + \ raiz espinhal T1" + C: "A adu\xE7\xE3o do dedo \xE9 suprida pelo nervo mediano" + D: "A abdu\xE7\xE3o dos dedos \xE9 mediada pelos inter\xF3sseos palmares" + input_correct_responses: + - B + input_question: "Na avalia\xE7\xE3o da fun\xE7\xE3o da m\xE3o, qual das afirma\xE7\ + \xF5es a seguir \xE9 verdadeira?" + - input_choice_list: + A: '4' + B: '3' + C: '2' + D: '1' + input_correct_responses: + - C + input_question: "Quantas tentativas voc\xEA deve fazer para canular um paciente\ + \ antes de passar o trabalho para um colega s\xEAnior, de acordo com o conhecimento\ + \ m\xE9dico de 2020?" + - input_choice_list: + A: "glicog\xEAnio em glicose-1-fosfato." + B: "glicog\xEAnio ou glicose em frutose." + C: "glicog\xEAnio ou glicose em piruvato ou lactato." + D: "glicog\xEAnio ou glicose em piruvato ou acetil CoA." + input_correct_responses: + - C + input_question: "Glic\xF3lise \xE9 o nome dado \xE0 via que envolve a convers\xE3\ + o de:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_clinical_knowledge +tag: mmlu_pt_llama_other_tasks +task: mmlu_pt_llama_clinical_knowledge +task_alias: clinical_knowledge diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_college_biology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_college_biology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..27852b33716f1c30673a4627638a527778ae9bda --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_college_biology.yaml @@ -0,0 +1,58 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Eles possuem um exoesqueleto composto principalmente de peptidoglicano. + B: "Possuem sistema circulat\xF3rio aberto com cora\xE7\xE3o dorsal." + C: "Eles s\xE3o membros de um filo biologicamente malsucedido, incapaz de explorar\ + \ diversos habitats e fontes de nutri\xE7\xE3o." + D: "Eles n\xE3o possuem ap\xEAndices emparelhados e articulados." + input_correct_responses: + - B + input_question: "Qual das alternativas a seguir representa uma afirma\xE7\xE3\ + o precisa sobre os artr\xF3podes?" + - input_choice_list: + A: 1/400 + B: 19/400 + C: 20/400 + D: 38/400 + input_correct_responses: + - D + input_question: "Numa determinada popula\xE7\xE3o, 1 em cada 400 pessoas tem um\ + \ cancro causado por um alelo completamente recessivo, b. Supondo que a popula\xE7\ + \xE3o esteja em equil\xEDbrio de Hardy-Weinberg, qual das alternativas a seguir\ + \ \xE9 a propor\xE7\xE3o esperada de indiv\xEDduos que carregam o alelo b, mas\ + \ n\xE3o se espera que desenvolvam o c\xE2ncer?" + - input_choice_list: + A: "o humano e o p\xE1ssaro s\xE3o esp\xE9cies polifil\xE9ticas" + B: "a evolu\xE7\xE3o de um ser humano e de um p\xE1ssaro \xE9 convergente" + C: "o humano e o p\xE1ssaro pertencem a um clado" + D: "o humano e o p\xE1ssaro desenvolvidos por analogia" + input_correct_responses: + - C + input_question: "A presen\xE7a de estruturas hom\xF3logas em dois organismos diferentes,\ + \ como o \xFAmero no membro anterior de um ser humano e de uma ave, indica que" + - input_choice_list: + A: "uma bomba de fluxo de press\xE3o dependente de ATP" + B: "um gradiente de potencial de press\xE3o da \xE1gua" + C: "transpira\xE7\xE3o" + D: "difus\xE3o apopl\xE1stica" + input_correct_responses: + - B + input_question: "De acordo com o modelo de fluxo de press\xE3o do movimento do\ + \ conte\xFAdo do floema, o movimento do fotossintato da fonte ao sumidouro \xE9\ + \ impulsionado por" + - input_choice_list: + A: "Tel\xF4meros" + B: "Centr\xF4meros" + C: Nucleossomos + D: Spliceossomas + input_correct_responses: + - B + input_question: "Qual das alternativas a seguir cont\xE9m sequ\xEAncias de DNA\ + \ necess\xE1rias para a segrega\xE7\xE3o dos cromossomos na mitose e na meiose?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_biology +tag: mmlu_pt_llama_stem_tasks +task: mmlu_pt_llama_college_biology +task_alias: college_biology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_college_chemistry.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_college_chemistry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9cf24aa41457bd7c7e56b95e19d10136c451d5a1 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_college_chemistry.yaml @@ -0,0 +1,61 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "O estado de oxida\xE7\xE3o mais comum para os elementos lantan\xEDdeos \xE9\ + \ +3." + B: "Os complexos de lantan\xEDdeos geralmente apresentam n\xFAmeros de coordena\xE7\ + \xE3o elevados (> 6)." + C: "Todos os elementos lantan\xEDdeos reagem com \xE1cido aquoso para liberar\ + \ hidrog\xEAnio." + D: "Os raios at\xF4micos dos elementos lantan\xEDdeos aumentam ao longo do per\xED\ + odo de La a Lu." + input_correct_responses: + - D + input_question: "Qual das seguintes afirma\xE7\xF5es sobre os elementos lantan\xED\ + deos N\xC3O \xE9 verdadeira?" + - input_choice_list: + A: 1,0 mL + B: 10ml + C: 20ml + D: 50ml + input_correct_responses: + - C + input_question: "Uma amostra de 0,217 g de HgO (massa molar = 217 g) reage com\ + \ excesso de \xEDons iodeto de acordo com a rea\xE7\xE3o mostrada acima. A titula\xE7\ + \xE3o da solu\xE7\xE3o resultante requer quantos mL de HCl 0,10 M para atingir\ + \ o ponto de equival\xEAncia?" + - input_choice_list: + A: '4' + B: '3' + C: '6' + D: '24' + input_correct_responses: + - A + input_question: "Preveja o n\xFAmero de linhas no espectro EPR de uma solu\xE7\ + \xE3o de radical metila marcado com 13C (13CH3\u2022), assumindo que as linhas\ + \ n\xE3o se sobrep\xF5em." + - input_choice_list: + A: "um \xE1cido" + B: humilhar + C: um catalisador + D: um agente redutor + input_correct_responses: + - D + input_question: "3 Cl\u2212(aq) + 4 CrO_4^2\u2212(aq) + 23 H+(aq) \u2192 3 HClO2(aq)\ + \ + 4 Cr3+(aq) + 10 H2O(l). Na rea\xE7\xE3o mostrada acima, Cl\u2212(aq) se\ + \ comporta como" + - input_choice_list: + A: PbH4 <SnH4 <GeH4 <SiH4 <CH4 + B: PbH4 <SnH4 <CH4 <GeH4 <SiH4 + C: CH4 <SiH4 <GeH4 <SnH4 <PbH4 + D: CH4 <PbH4 <GeH4 <SnH4 <SiH4 + input_correct_responses: + - A + input_question: "Qual das alternativas a seguir lista os hidretos dos elementos\ + \ do grupo 14 em ordem de estabilidade t\xE9rmica, do menor para o maior?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_chemistry +tag: mmlu_pt_llama_stem_tasks +task: mmlu_pt_llama_college_chemistry +task_alias: college_chemistry diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_college_computer_science.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_college_computer_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..23ac8663e632cca325a74a2c95ccf35b40ef12ab --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_college_computer_science.yaml @@ -0,0 +1,83 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: uma*(c + d)+ b(c + d) + B: uma*(c + d)* + b(c + d)* + C: uma*(c + d)+ b*(c + d) + D: (a + b)*c +(a + b)*d + input_correct_responses: + - D + input_question: "Qual das seguintes express\xF5es regulares \xE9 equivalente a\ + \ (descreve o mesmo conjunto de strings que) (a* + b)*(c + d)?" + - input_choice_list: + A: '5' + B: '6' + C: '7' + D: '8' + input_correct_responses: + - B + input_question: "Uma certa m\xE1quina RISC em pipeline possui 8 registradores\ + \ de uso geral R0, R1,. . . , R7 e suporta as seguintes opera\xE7\xF5es. ADD\ + \ Rs1, Rs2, Rd Adicione Rs1 a Rs2 e coloque a soma em Rd MUL Rs1, Rs2, Rd Multiplique\ + \ Rs1 por Rs2 e coloque o produto em Rd Uma opera\xE7\xE3o normalmente leva\ + \ um ciclo; entretanto, uma opera\xE7\xE3o leva dois ciclos se produzir um resultado\ + \ exigido pela opera\xE7\xE3o imediatamente seguinte em uma sequ\xEAncia de\ + \ opera\xE7\xF5es. Considere a express\xE3o AB + ABC + BC, onde as vari\xE1\ + veis A, B, C est\xE3o localizadas nos registradores R0, R1, R2. Se o conte\xFA\ + do desses tr\xEAs registradores n\xE3o deve ser modificado, qual \xE9 o n\xFA\ + mero m\xEDnimo de ciclos de clock necess\xE1rios para uma sequ\xEAncia de opera\xE7\ + \xF5es que calcule o valor de AB + ABC + BC?" + - input_choice_list: + A: eu apenas + B: II apenas + C: III apenas + D: I, II e III + input_correct_responses: + - D + input_question: "O padr\xE3o de design Singleton \xE9 usado para garantir que\ + \ apenas uma \xFAnica inst\xE2ncia de uma classe possa ser instanciada. Qual\ + \ das afirma\xE7\xF5es a seguir \xE9 (s\xE3o) verdadeira para esse padr\xE3\ + o de design? I. A classe Singleton possui um m\xE9todo de f\xE1brica est\xE1\ + tico para fornecer sua inst\xE2ncia. II. A classe Singleton pode ser uma subclasse\ + \ de outra classe. III. A classe Singleton possui um construtor privado." + - input_choice_list: + A: '5' + B: '6' + C: '7' + D: '9' + input_correct_responses: + - D + input_question: "Um compilador gera c\xF3digo para a seguinte instru\xE7\xE3o\ + \ de atribui\xE7\xE3o. G := (A + B) * C - (D + E) * F A m\xE1quina alvo possui\ + \ um \xFAnico acumulador e um conjunto de instru\xE7\xF5es de endere\xE7o \xFA\ + nico que consiste em instru\xE7\xF5es de carga, armazenamento, adi\xE7\xE3o,\ + \ subtra\xE7\xE3o e multiplica\xE7\xE3o. Para as opera\xE7\xF5es aritm\xE9ticas,\ + \ o operando esquerdo \xE9 retirado do acumulador e o resultado aparece no acumulador.\ + \ O menor n\xFAmero poss\xEDvel de instru\xE7\xF5es no c\xF3digo resultante\ + \ \xE9" + - input_choice_list: + A: 1/50 + B: 27/01 + C: 25/01 + D: 27/02 + input_correct_responses: + - B + input_question: "Considere um projeto de computador no qual v\xE1rios processadores,\ + \ cada um com uma mem\xF3ria cache privada, compartilham mem\xF3ria global usando\ + \ um \xFAnico barramento. Este barramento \xE9 o recurso cr\xEDtico do sistema.\ + \ Cada processador pode executar uma instru\xE7\xE3o a cada 500 nanossegundos,\ + \ desde que as refer\xEAncias de mem\xF3ria sejam satisfeitas pelo seu cache\ + \ local. Quando ocorre uma falta de cache, o processador \xE9 atrasado por mais\ + \ 2.000 nanossegundos. Durante metade desse atraso adicional, o barramento \xE9\ + \ dedicado a atender a perda de cache. Durante a outra metade, o processador\ + \ n\xE3o pode continuar, mas o barramento fica livre para atender solicita\xE7\ + \xF5es de outros processadores. Em m\xE9dia, cada instru\xE7\xE3o requer 2 refer\xEA\ + ncias de mem\xF3ria. Em m\xE9dia, as perdas de cache ocorrem em 1% das refer\xEA\ + ncias. Que propor\xE7\xE3o da capacidade do barramento um \xFAnico processador\ + \ consumiria, ignorando os atrasos devidos \xE0 concorr\xEAncia de outros processadores?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_computer_science +tag: mmlu_pt_llama_stem_tasks +task: mmlu_pt_llama_college_computer_science +task_alias: college_computer_science diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_college_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_college_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ee47d0e1a83fc64b5a859a0755f82373f2b13350 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_college_mathematics.yaml @@ -0,0 +1,63 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: ST = 0 + B: ST = T + C: ST = TS + D: "ST - TS \xE9 o mapa de identidade de V sobre si mesmo." + input_correct_responses: + - D + input_question: "Seja V o conjunto de todos os polin\xF4mios reais p(x). Deixe\ + \ as transforma\xE7\xF5es T, S serem definidas em V por T:p(x) -> xp(x) e\ + \ S:p(x) -> p'(x) = d/dx p(x), e interprete (ST) (p(x)) como S(T(p(x))).\ + \ Qual dos seguintes \xE9 verdadeiro?" + - input_choice_list: + A: '2' + B: 2-e^-2 + C: 2 + e^-2 + D: 2 + e^-4 + input_correct_responses: + - D + input_question: "Um tanque cont\xE9m inicialmente uma solu\xE7\xE3o salina de\ + \ 3 gramas de sal dissolvidos em 100 litros de \xE1gua. Uma solu\xE7\xE3o salina\ + \ contendo 0,02 gramas de sal por litro de \xE1gua \xE9 pulverizada no tanque\ + \ a uma taxa de 4 litros por minuto. A solu\xE7\xE3o pulverizada \xE9 continuamente\ + \ misturada com a solu\xE7\xE3o salina no tanque, e a mistura flui para fora\ + \ do tanque a uma taxa de 4 litros por minuto. Se a mistura for instant\xE2\ + nea, quantos gramas de sal h\xE1 no tanque ap\xF3s decorridos 100 minutos?" + - input_choice_list: + A: eu apenas + B: II apenas + C: III apenas + D: Apenas II e III + input_correct_responses: + - B + input_question: "Seja A uma matriz 2x2 real. Qual das seguintes afirma\xE7\xF5\ + es deve ser verdadeira? I. Todas as entradas de A^2 s\xE3o n\xE3o negativas.\ + \ II. O determinante de A ^ 2 n\xE3o \xE9 negativo. III. Se A tem dois autovalores\ + \ distintos, ent\xE3o A^2 tem dois autovalores distintos." + - input_choice_list: + A: '-11' + B: '0' + C: '11' + D: 33/2 + input_correct_responses: + - C + input_question: "Suponha que f(1 + x) = f(x) para todo x real. Se f \xE9 um polin\xF4\ + mio e f(5) = 11, ent\xE3o f(15/2)" + - input_choice_list: + A: '-5' + B: '-4' + C: '-3' + D: '-2' + input_correct_responses: + - B + input_question: "Seja A o conjunto de todos os pares ordenados de inteiros (m,\ + \ n) tais que 7m + 12n = 22. Qual \xE9 o maior n\xFAmero negativo no conjunto\ + \ B = {m + n : (m, n) \\in A}?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_mathematics +tag: mmlu_pt_llama_stem_tasks +task: mmlu_pt_llama_college_mathematics +task_alias: college_mathematics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_college_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_college_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..59ca81fe5e34a8fdcbc0c71f1fc61b6a86484c90 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_college_physics.yaml @@ -0,0 +1,63 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: '4' + B: '5' + C: '6' + D: '20' + input_correct_responses: + - A + input_question: "Um telesc\xF3pio refrator consiste em duas lentes convergentes\ + \ separadas por 100 cm. A lente ocular tem uma dist\xE2ncia focal de 20 cm.\ + \ A amplia\xE7\xE3o angular do telesc\xF3pio \xE9" + - input_choice_list: + A: Temperatura constante + B: Volume constante + C: "Press\xE3o constante" + D: "Adiab\xE1tico" + input_correct_responses: + - B + input_question: "Para qual dos seguintes processos termodin\xE2micos o aumento\ + \ na energia interna de um g\xE1s ideal \xE9 igual ao calor adicionado ao g\xE1\ + s?" + - input_choice_list: + A: 2,4V + B: 3,3V + C: 4,5V + D: 5,7V + input_correct_responses: + - A + input_question: "Uma extremidade de um fio de nicromo de comprimento 2L e \xE1\ + rea de se\xE7\xE3o transversal A est\xE1 presa a uma extremidade de outro fio\ + \ de nicromo de comprimento L e \xE1rea de se\xE7\xE3o transversal 2A. Se a\ + \ extremidade livre do fio mais longo estiver com um potencial el\xE9trico de\ + \ 8,0 volts, e a extremidade livre do fio mais curto estiver com um potencial\ + \ el\xE9trico de 1,0 volt, o potencial na jun\xE7\xE3o dos dois fios ser\xE1\ + \ quase igual a" + - input_choice_list: + A: '4' + B: '5' + C: '6' + D: '20' + input_correct_responses: + - A + input_question: "Um telesc\xF3pio refrator consiste em duas lentes convergentes\ + \ separadas por 100 cm. A lente ocular tem uma dist\xE2ncia focal de 20 cm.\ + \ A amplia\xE7\xE3o angular do telesc\xF3pio \xE9" + - input_choice_list: + A: cobrar + B: massa + C: energia e impulso + D: "n\xFAmero lept\xF4nico" + input_correct_responses: + - D + input_question: "O m\xFAon decai com um tempo de vida caracter\xEDstico de cerca\ + \ de 10 ^ -6 segundos em um el\xE9tron, um neutrino do m\xFAon e um antineutrino\ + \ do el\xE9tron. O m\xFAon est\xE1 proibido de decair em um el\xE9tron e em\ + \ apenas um \xFAnico neutrino pela lei da conserva\xE7\xE3o de" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_college_physics +tag: mmlu_pt_llama_stem_tasks +task: mmlu_pt_llama_college_physics +task_alias: college_physics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_computer_security.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_computer_security.yaml new file mode 100644 index 0000000000000000000000000000000000000000..309f7d94612e3cfc64b98fb7ce032f98b16446b2 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_computer_security.yaml @@ -0,0 +1,55 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: 160 bits + B: 512 bits + C: 628 bits + D: 820 bits + input_correct_responses: + - A + input_question: SHA-1 tem um resumo da mensagem de + - input_choice_list: + A: "IM \u2013 Trojans" + B: Trojans de backdoor + C: Downloader de Trojan + D: Trojan de resgate + input_correct_responses: + - D + input_question: "_____________ pode modificar dados em seu sistema \u2013 para\ + \ que seu sistema n\xE3o funcione corretamente ou voc\xEA n\xE3o possa mais\ + \ acessar dados espec\xEDficos, ou pode at\xE9 pedir resgate para conceder seu\ + \ acesso." + - input_choice_list: + A: "\xC9tica de \u201Chacking\u201D para justificar comportamento ego\xEDsta\ + \ n\xE3o intencional" + B: "Hackear sistemas (por exemplo, durante testes de penetra\xE7\xE3o) para\ + \ expor vulnerabilidades para que possam ser corrigidas, em vez de exploradas" + C: "Invadir sistemas administrados por pessoas cuja \xE9tica voc\xEA discorda" + D: "Uma g\xEDria para desenvolvimento r\xE1pido de software, por exemplo, como\ + \ parte de hackathons" + input_correct_responses: + - B + input_question: "O que \xE9 hacking \xE9tico?" + - input_choice_list: + A: "sobrescrevendo chaves criptogr\xE1ficas na mem\xF3ria" + B: "uma esp\xE9cie de inje\xE7\xE3o de c\xF3digo" + C: uma leitura fora dos limites de um buffer + D: um ataque de string de formato + input_correct_responses: + - C + input_question: "A explora\xE7\xE3o do bug Heartbleed permite" + - input_choice_list: + A: Teia assombrada + B: Rede mundial de computadores + C: "Superf\xEDcie da web" + D: Rede profunda + input_correct_responses: + - D + input_question: "O ____________ \xE9 qualquer coisa que seu mecanismo de pesquisa\ + \ n\xE3o consegue pesquisar." +include: _continuation_template_yaml +process_docs: !function utils.process_docs_computer_security +tag: mmlu_pt_llama_stem_tasks +task: mmlu_pt_llama_computer_security +task_alias: computer_security diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_conceptual_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_conceptual_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..50120cf0504d4d4cad3cb341a01beb9c6d25c67e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_conceptual_physics.yaml @@ -0,0 +1,53 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: menos + B: mais + C: o mesmo + D: zero + input_correct_responses: + - A + input_question: "Comparadas com a massa de um \xE1tomo de ur\xE2nio em fiss\xE3\ + o, as massas combinadas dos produtos ap\xF3s a fiss\xE3o s\xE3o" + - input_choice_list: + A: "espa\xE7o e tempo." + B: "um g\xEAmeo viajante e um g\xEAmeo que fica em casa." + C: "gravidade e acelera\xE7\xE3o." + D: massa e energia. + input_correct_responses: + - C + input_question: "Coisas que s\xE3o equivalentes de acordo com o princ\xEDpio da\ + \ equival\xEAncia s\xE3o" + - input_choice_list: + A: "convertido para uma frequ\xEAncia diferente" + B: "deflex\xE3o" + C: "interfer\xEAncia" + D: "polariza\xE7\xE3o" + input_correct_responses: + - C + input_question: "As cores em uma bolha de sab\xE3o resultam da luz" + - input_choice_list: + A: o mesmo + B: maior + C: menos + D: maior ou menor dependendo da velocidade do vento + input_correct_responses: + - B + input_question: "Um aeromodelo voa mais devagar quando voa contra o vento e mais\ + \ r\xE1pido com o vento nas costas. Quando lan\xE7ado em \xE2ngulo reto com\ + \ o vento, em um vento cruzado, sua velocidade no solo, em compara\xE7\xE3o\ + \ com o v\xF4o no ar parado, \xE9" + - input_choice_list: + A: "Hidrog\xEAnio" + B: Ferro + C: "Ur\xE2nio" + D: Igual em cada + input_correct_responses: + - A + input_question: "Qual desses tr\xEAs elementos tem mais massa por n\xFAcleon?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_conceptual_physics +tag: mmlu_pt_llama_stem_tasks +task: mmlu_pt_llama_conceptual_physics +task_alias: conceptual_physics diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_electrical_engineering.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_electrical_engineering.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3c8989a2b4c34f476ded2bdbd06d918fe4f31bef --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_electrical_engineering.yaml @@ -0,0 +1,58 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: S=0, R=0 + B: S=0, R=1 + C: S = 1, R = 0 + D: S = 1, R = 1 + input_correct_responses: + - D + input_question: "Em uma trava SR constru\xEDda a partir de portas NOR, cuja condi\xE7\ + \xE3o n\xE3o \xE9 permitida" + - input_choice_list: + A: "200\u03A9" + B: "100\u03A9" + C: "50\u03A9" + D: "10\u03A9" + input_correct_responses: + - C + input_question: "Em uma m\xE1quina CC com enrolamento de volta de 2 p\xF3los,\ + \ a resist\xEAncia de um condutor \xE9 2\u03A9 e o n\xFAmero total de condutores\ + \ \xE9 100. Encontre a resist\xEAncia total" + - input_choice_list: + A: 1mA. + B: 2 mA. + C: 3mA. + D: 4mA. + input_correct_responses: + - B + input_question: "A bobina de um medidor de bobina m\xF3vel tem 100 voltas, 40\ + \ mm de comprimento e 30 mm de largura. O torque de controle \xE9 240*10-6 Nm\ + \ em escala completa. Se a densidade do fluxo magn\xE9tico for 1Wb/m2, a faixa\ + \ do medidor \xE9" + - input_choice_list: + A: 100 N. + B: 0,1 N. + C: 1N. + D: 0,01N. + input_correct_responses: + - B + input_question: "Dois longos condutores paralelos transportam 100 A. Se os condutores\ + \ estiverem separados por 20 mm, a for\xE7a por metro de comprimento de cada\ + \ condutor ser\xE1" + - input_choice_list: + A: 15 N. + B: 20 N. + C: 7,5 N. + D: 3,75 N. + input_correct_responses: + - A + input_question: "Um poste pontual tem uma resist\xEAncia de 4\u03C0 * 10 ^ -4\ + \ weber. A for\xE7a em newtons em um p\xF3lo pontual de 4\u03C0 * 1,5 * 10 ^\ + \ -4 weber colocado a uma dist\xE2ncia de 10 cm dele ser\xE1" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_electrical_engineering +tag: mmlu_pt_llama_stem_tasks +task: mmlu_pt_llama_electrical_engineering +task_alias: electrical_engineering diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_high_school_european_history.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_high_school_european_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2695137d57d7a482f22cc90f1985f43900a43f35 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_pt/mmlu_pt_high_school_european_history.yaml @@ -0,0 +1,196 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: Jean-Jacques Rousseau + B: "Bar\xE3o Montesquieu" + C: Mary Wollstonecraft + D: Adam Smith + input_correct_responses: + - B + input_question: "Esta quest\xE3o refere-se \xE0s seguintes informa\xE7\xF5es.\ + \ O trecho a seguir \xE9 de um panfleto. Voc\xEA me far\xE1 a justi\xE7a de\ + \ lembrar que sempre apoiei vigorosamente o direito de cada homem \xE0 sua pr\xF3\ + pria opini\xE3o, por mais diferente que essa opini\xE3o possa ser da minha.\ + \ Aquele que nega a outro este direito torna-se escravo de sua opini\xE3o atual,\ + \ porque se exclui do direito de mud\xE1-la. A arma mais formid\xE1vel contra\ + \ erros de todo tipo \xE9 a Raz\xE3o. Nunca usei nenhum outro e confio que nunca\ + \ usarei. A circunst\xE2ncia que agora ocorreu na Fran\xE7a da aboli\xE7\xE3\ + o total de toda a ordem nacional do sacerd\xF3cio, e de tudo o que diz respeito\ + \ aos sistemas religiosos compulsivos e aos artigos de f\xE9 compulsivos, n\xE3\ + o apenas precipitou a minha inten\xE7\xE3o, mas tornou uma obra desta tipo extremamente\ + \ necess\xE1rio, para que, na destrui\xE7\xE3o geral da supersti\xE7\xE3o, dos\ + \ falsos sistemas de governo e da falsa teologia, n\xE3o percamos de vista a\ + \ moralidade, a humanidade e a teologia que \xE9 verdadeira. Acredito em um\ + \ Deus e nada mais; e espero felicidade al\xE9m desta vida. Acredito na igualdade\ + \ do homem; e acredito que os deveres religiosos consistem em fazer justi\xE7\ + a, amar a miseric\xF3rdia e esfor\xE7ar-se para tornar felizes os nossos semelhantes.\ + \ N\xE3o acredito no credo professado pela igreja judaica, pela igreja romana,\ + \ pela igreja grega, pela igreja turca, pela igreja protestante, nem por qualquer\ + \ igreja que eu conhe\xE7a. Minha pr\xF3pria mente \xE9 minha pr\xF3pria igreja.\ + \ Todas as institui\xE7\xF5es nacionais de igrejas, sejam elas judaicas, crist\xE3\ + s ou turcas, parecem-me nada mais do que inven\xE7\xF5es humanas, criadas para\ + \ aterrorizar e escravizar a humanidade e monopolizar o poder e o lucro. N\xE3\ + o pretendo com esta declara\xE7\xE3o condenar aqueles que acreditam no contr\xE1\ + rio; eles t\xEAm o mesmo direito \xE0s suas cren\xE7as que eu tenho \xE0s minhas.\ + \ \u2014Thomas Paine, The Age of Reason, 1794\u20131795 Qual dos seguintes fil\xF3\ + sofos do Iluminismo projetou um sistema de freios e contrapesos para o governo,\ + \ a fim de evitar abusos de poder?" + - input_choice_list: + A: "As ideias de liberdade pessoal e nacionalismo concebidas durante o Iluminismo\ + \ resultaram em revolu\xE7\xF5es radicais que poderiam espalhar-se por toda\ + \ a Europa." + B: "A conquista da Europa por Napole\xE3o levou \xE0 cria\xE7\xE3o de novas\ + \ fac\xE7\xF5es e alterou o equil\xEDbrio de poder europeu." + C: "O poder dos monarcas cresceu a tal ponto que precisava ser controlado por\ + \ outros poderes dentro de cada na\xE7\xE3o ou ocorreria o dom\xEDnio dos\ + \ civis." + D: "O ciclo econ\xF3mico ascendente e descendente da economia capitalista emergente\ + \ poder\xE1 levar a agita\xE7\xE3o civil que deve ser suprimida." + input_correct_responses: + - A + input_question: "Esta quest\xE3o refere-se \xE0s seguintes informa\xE7\xF5es.\ + \ Leia o trecho a seguir. A semente revolucion\xE1ria penetrou em todos os pa\xED\ + ses e espalhou-se mais ou menos. Desenvolveu-se grandemente sob o regime do\ + \ despotismo militar de Bonaparte. Suas conquistas substitu\xEDram uma s\xE9\ + rie de leis, institui\xE7\xF5es e costumes; rompeu os la\xE7os sagrados entre\ + \ todas as na\xE7\xF5es, fortes o suficiente para resistir ao pr\xF3prio tempo;\ + \ o que \xE9 mais do que se pode dizer de certos benef\xEDcios conferidos por\ + \ estes inovadores. Os monarcas cumprir\xE3o os deveres que lhes s\xE3o impostos\ + \ por Aquele que, ao confiar-lhes o poder, os encarregou de zelar pela manuten\xE7\ + \xE3o da justi\xE7a e dos direitos de todos, de evitar os caminhos do erro e\ + \ de trilhar com firmeza o caminho da verdade. Colocados para al\xE9m das paix\xF5\ + es que agitam a sociedade, \xE9 principalmente nos dias de prova\xE7\xE3o que\ + \ eles s\xE3o chamados a despojar-se da realidade das suas falsas apar\xEAncias\ + \ e a mostrar-se como s\xE3o, pais investidos da autoridade que pertence por\ + \ direito aos chefes de fam\xEDlia, para provar que, nos dias de luto, sabem\ + \ ser justos, s\xE1bios e, portanto, fortes, e que n\xE3o abandonar\xE3o o povo\ + \ que deveriam governar, tornando-o objecto de fac\xE7\xF5es, ao erro e \xE0\ + s suas consequ\xEAncias, que devem envolver a perda da sociedade. A uni\xE3\ + o entre os monarcas \xE9 a base da pol\xEDtica que deve agora ser seguida para\ + \ salvar a sociedade da ru\xEDna total. . . . Que n\xE3o confundam as concess\xF5\ + es feitas aos partidos com o bem que devem fazer ao seu povo, modificando, de\ + \ acordo com as suas necessidades reconhecidas, os ramos da administra\xE7\xE3\ + o que o exigem. Que sejam justos, mas fortes; ben\xE9fico, mas rigoroso. Que\ + \ mantenham os princ\xEDpios religiosos em toda a sua pureza, e n\xE3o permitam\ + \ que a f\xE9 seja atacada e a moralidade interpretada de acordo com o contrato\ + \ social ou com as vis\xF5es de sect\xE1rios tolos. Deixe-os suprimir as Sociedades\ + \ Secretas; aquela gangrena da sociedade. \u2014Klemens von Metternich, Confiss\xE3\ + o Pol\xEDtica de F\xE9, 1820 Qual das alternativas a seguir foi a maior causa\ + \ dos temores expressos por Metternich no documento acima?" + - input_choice_list: + A: Capitalista + B: "Cient\xEDfico" + C: Comunista + D: Existencialista + input_correct_responses: + - C + input_question: "Esta quest\xE3o refere-se \xE0s seguintes informa\xE7\xF5es.\ + \ Na R\xFAssia n\xE3o havia nada de bom e [Souvarine] estava desesperado com\ + \ as not\xEDcias que recebera. Seus antigos companheiros estavam todos se voltando\ + \ para os pol\xEDticos; os famosos niilistas que fizeram a Europa tremer - filhos\ + \ de padres de aldeia, da classe m\xE9dia baixa, de comerciantes - n\xE3o conseguiam\ + \ superar a ideia de liberta\xE7\xE3o nacional e pareciam acreditar que o mundo\ + \ seria libertado - quando matassem o seu d\xE9spota &... "Tolice!\ + \ Eles nunca sair\xE3o dessa com suas tolices." Depois, baixando ainda\ + \ mais a voz, em poucas palavras amargas descreveu o seu antigo sonho de fraternidade.\ + \ Ele renunciou \xE0 sua posi\xE7\xE3o e \xE0 sua fortuna; ele havia caminhado\ + \ entre os trabalhadores, apenas na esperan\xE7a de ver finalmente a funda\xE7\ + \xE3o de uma nova sociedade de trabalho comum. Todos os soldos em seus bolsos\ + \ haviam ido h\xE1 muito tempo para os moleques do assentamento; ele tinha sido\ + \ t\xE3o terno quanto um irm\xE3o com os mineiros, sorrindo diante de suas suspeitas,\ + \ conquistando-os por seu jeito tranquilo e trabalhador e por sua avers\xE3\ + o a tagarelar. Mas decididamente a fus\xE3o n\xE3o ocorreu. Sua voz mudou, seus\ + \ olhos brilharam, ele os fixou em \xC9tienne, dirigindo-se a ele diretamente:\ + \ "Agora, voc\xEA entende isso? Esses chapeleiros de Marselha que ganharam\ + \ o grande pr\xEAmio de cem mil francos na loteria foram imediatamente e investiram\ + \ declarando que v\xE3o viver sem fazer nada! Sim, a id\xE9ia \xE9 sua, todos\ + \ voc\xEAs, trabalhadores franceses; voc\xEAs querem desenterrar um tesouro\ + \ para depois devor\xE1-lo sozinhos em algum canto pregui\xE7oso e ego\xEDsta.\ + \ Voc\xEAs podem gritar por mais que voc\xEA queira contra os ricos, voc\xEA\ + \ n\xE3o tem coragem suficiente para devolver aos pobres o dinheiro que a sorte\ + \ lhe traz. Voc\xEA nunca ser\xE1 digno de felicidade enquanto possuir alguma\ + \ coisa, e seu \xF3dio pela burguesia continuar unicamente por um desejo irado\ + \ de serem burgueses no lugar deles." \xE9mile Zola, escritor franc\xEA\ + s, Germinal, 1885 A passagem mostra a preocupa\xE7\xE3o direta com o bem-estar\ + \ das classes trabalhadoras que normalmente fazia parte de qual movimento?" + - input_choice_list: + A: "Serviram como catalisadores para o crescimento da navega\xE7\xE3o inglesa\ + \ e do com\xE9rcio exterior, mas pouco fizeram para limitar as perspectivas\ + \ dos holandeses no s\xE9culo XVII." + B: "Eles trouxeram dificuldades quase imediatas para a economia holandesa, \xE0\ + \ medida que o seu dom\xEDnio do com\xE9rcio exterior terminou rapidamente." + C: "Eles foram rescindidos durante a restaura\xE7\xE3o dos Stuarts, pois buscavam\ + \ rela\xE7\xF5es diplom\xE1ticas normais com os holandeses, para n\xE3o precisarem\ + \ do apoio financeiro do Parlamento para a guerra." + D: "Eles levaram a quase um s\xE9culo de guerras recorrentes entre a Inglaterra\ + \ e a Holanda, que s\xF3 terminariam depois da independ\xEAncia americana." + input_correct_responses: + - A + input_question: "Esta quest\xE3o refere-se \xE0s seguintes informa\xE7\xF5es.\ + \ Os trechos abaixo s\xE3o das Leis de Navega\xE7\xE3o de 1651. [A]p\xF3s o\ + \ primeiro dia de dezembro de mil seiscentos e cinquenta e um, e da\xED em diante,\ + \ nenhum bem ou mercadoria de qualquer tipo do crescimento, produ\xE7\xE3o ou\ + \ manufatura da \xC1sia, \xC1frica ou Am\xE9rica, ou de qualquer parte dela;\ + \ ou de quaisquer ilhas que lhes perten\xE7am, ou que estejam descritas ou estabelecidas\ + \ nos mapas ou cartas habituais desses lugares, bem como das planta\xE7\xF5\ + es inglesas como outras, ser\xE3o importadas ou trazidas para esta Comunidade\ + \ da Inglaterra, ou para a Irlanda, ou quaisquer outras terras, ilhas, planta\xE7\ + \xF5es ou territ\xF3rios desta Comunidade pertencentes, ou em sua posse, em\ + \ qualquer outro navio ou navios, embarca\xE7\xE3o ou embarca\xE7\xF5es de qualquer\ + \ natureza, mas apenas na medida em que verdadeiramente e sem fraude perten\xE7\ + am apenas ao povo desta Comunidade , ou suas planta\xE7\xF5es, como seus propriet\xE1\ + rios ou titulares de direitos; e dos quais o capit\xE3o e os marinheiros tamb\xE9\ + m s\xE3o do povo desta Comunidade, sob pena de confisco e perda de todos os\ + \ bens que ser\xE3o importados contrariamente a este ato,, [N] nenhum bem ou\ + \ mercadoria do crescimento, produ\xE7\xE3o ou fabrica\xE7\xE3o da Europa, ou\ + \ de qualquer parte dela, ser\xE1 importada ou trazida para esta Comunidade\ + \ da Inglaterra, ou para quaisquer outras terras ou territ\xF3rios pertencentes\ + \ a esta Comunidade, ap\xF3s o primeiro dia de dezembro de mil seiscentos e\ + \ cinquenta e um, ou em sua posse, em qualquer navio ou navios, embarca\xE7\xE3\ + o ou embarca\xE7\xF5es de qualquer natureza, mas em tais que verdadeiramente\ + \ e sem fraude perten\xE7am apenas ao povo desta Comunidade, e em nenhum outro,\ + \ exceto apenas os navios e embarca\xE7\xF5es estrangeiros que verdadeiramente\ + \ e pertencem propriamente ao povo daquele pa\xEDs ou local, do qual os referidos\ + \ bens s\xE3o o crescimento, a produ\xE7\xE3o ou a manufatura. Qual das alternativas\ + \ a seguir descreve melhor o resultado das Leis de Navega\xE7\xE3o de 1651?" + - input_choice_list: + A: "dar ao rei ingl\xEAs uma nova posi\xE7\xE3o de autoridade" + B: "dar a posi\xE7\xE3o de chefe da Igreja da Inglaterra apenas a Henrique VIII\ + \ e excluir seus herdeiros" + C: "estabelecer o calvinismo como a \xFAnica teologia verdadeira na Inglaterra" + D: "acabar com v\xE1rias formas de corrup\xE7\xE3o que assolam a Igreja na Inglaterra" + input_correct_responses: + - D + input_question: "Esta quest\xE3o refere-se \xE0s seguintes informa\xE7\xF5es.\ + \ Embora a Majestade do rei seja e deva ser, com justi\xE7a e direito, o chefe\ + \ supremo da Igreja da Inglaterra, e assim seja reconhecido pelo clero deste\ + \ reino em suas convoca\xE7\xF5es, ainda assim, para corrobora\xE7\xE3o e confirma\xE7\ + \xE3o disso, e para aumento da virtude em religi\xE3o de Cristo dentro deste\ + \ reino da Inglaterra, e para reprimir e extirpar todos os erros, heresias e\ + \ outras enormidades e abusos at\xE9 ent\xE3o usados no mesmo, seja decretado,\ + \ pela autoridade deste atual Parlamento, que o rei, nosso senhor soberano,\ + \ seus herdeiros e os sucessores, reis deste reino, ser\xE3o tomados, aceitos\ + \ e reputados como o \xFAnico chefe supremo na terra da Igreja da Inglaterra,\ + \ chamado Anglicanos Ecclesia; e ter\xE1 e desfrutar\xE1, anexado e unido \xE0\ + \ coroa imperial deste reino, bem como ao t\xEDtulo e estilo do mesmo, como\ + \ todas as honras, dignidades, preemin\xEAncias, jurisdi\xE7\xF5es, privil\xE9\ + gios, autoridades, imunidades, lucros e mercadorias \xE0 referida dignidade\ + \ de o chefe supremo da mesma Igreja pertencente e pertencente; e que nosso\ + \ dito senhor soberano, seus herdeiros e sucessores, reis deste reino, ter\xE3\ + o pleno poder e autoridade de tempos em tempos para visitar, reprimir, reparar,\ + \ registrar, ordenar, corrigir, restringir e emendar todos esses erros, heresias,\ + \ abusos, ofensas, desprezos e enormidades, quaisquer que sejam, que por qualquer\ + \ forma de autoridade ou jurisdi\xE7\xE3o espiritual devem ou podem ser legalmente\ + \ reformados, reprimidos, ordenados, reparados, corrigidos, restringidos ou\ + \ emendados, da maneira mais agrad\xE1vel ao Deus Todo-Poderoso, o aumento da\ + \ virtude na religi\xE3o de Cristo e para a conserva\xE7\xE3o da paz, unidade\ + \ e tranquilidade deste reino; qualquer uso, terra estrangeira, autoridade estrangeira,\ + \ prescri\xE7\xE3o ou qualquer outra coisa ou coisas em contr\xE1rio deste documento.\ + \ Parlamento Ingl\xEAs, Ato de Supremacia, 1534 Da passagem, pode-se inferir\ + \ que o Parlamento Ingl\xEAs desejava argumentar que o Ato de Supremacia" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_high_school_european_history +tag: mmlu_pt_llama_humanities_tasks +task: mmlu_pt_llama_high_school_european_history +task_alias: high_school_european_history diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_human_sexuality.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_human_sexuality.yaml new file mode 100644 index 0000000000000000000000000000000000000000..845ab2e04eeeec1a6230c5d19b4981eac0eef88e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_human_sexuality.yaml @@ -0,0 +1,97 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0E43\u0E19\u0E0A\u0E48\u0E27\u0E07\u0E44\u0E15\u0E23\u0E21\u0E32\u0E2A\ + \u0E41\u0E23\u0E01" + B: "\u0E43\u0E19\u0E0A\u0E48\u0E27\u0E07\u0E44\u0E15\u0E23\u0E21\u0E32\u0E2A\ + \u0E17\u0E35\u0E48\u0E2A\u0E2D\u0E07" + C: "\u0E43\u0E19\u0E0A\u0E48\u0E27\u0E07\u0E44\u0E15\u0E23\u0E21\u0E32\u0E2A\ + \u0E17\u0E35\u0E48\u0E2A\u0E32\u0E21" + D: "\u0E15\u0E25\u0E2D\u0E14\u0E01\u0E32\u0E23\u0E15\u0E31\u0E49\u0E07\u0E04\ + \u0E23\u0E23\u0E20\u0E4C" + input_correct_responses: + - A + input_question: "\u0E2D\u0E32\u0E01\u0E32\u0E23\u0E41\u0E1E\u0E49\u0E17\u0E49\u0E2D\ + \u0E07\u0E21\u0E31\u0E01\u0E40\u0E1B\u0E47\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32\ + :" + - input_choice_list: + A: "\u0E2D\u0E31\u0E15\u0E15\u0E32\u0E17\u0E35\u0E48\u0E41\u0E02\u0E47\u0E07\ + \u0E41\u0E01\u0E23\u0E48\u0E07" + B: "\u0E2B\u0E34\u0E23\u0E34\u0E42\u0E2D\u0E15\u0E15\u0E31\u0E1B\u0E1B\u0E30\ + \u0E17\u0E35\u0E48\u0E2D\u0E48\u0E2D\u0E19\u0E41\u0E2D" + C: "\u0E23\u0E2B\u0E31\u0E2A\u0E17\u0E35\u0E48\u0E2D\u0E48\u0E2D\u0E19\u0E41\ + \u0E2D" + D: "\u0E2B\u0E34\u0E23\u0E34\u0E42\u0E2D\u0E15\u0E15\u0E31\u0E1B\u0E1B\u0E30\ + \u0E17\u0E35\u0E48\u0E41\u0E02\u0E47\u0E07\u0E41\u0E01\u0E23\u0E48\u0E07" + input_correct_responses: + - B + input_question: "\u0E1C\u0E39\u0E49\u0E2B\u0E0D\u0E34\u0E07\u0E17\u0E35\u0E48\u0E23\ + \u0E39\u0E49\u0E27\u0E48\u0E32\u0E15\u0E31\u0E27\u0E40\u0E2D\u0E07\u0E40\u0E1B\ + \u0E47\u0E19\u0E42\u0E23\u0E04\u0E40\u0E23\u0E34\u0E21\u0E41\u0E25\u0E30\u0E0B\ + \u0E34\u0E1F\u0E34\u0E25\u0E34\u0E2A\u0E17\u0E35\u0E48\u0E22\u0E31\u0E07\u0E44\ + \u0E21\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E23\u0E31\ + \u0E01\u0E29\u0E32 \u0E41\u0E15\u0E48\u0E22\u0E31\u0E07\u0E04\u0E07\u0E21\u0E35\ + \u0E40\u0E1E\u0E28\u0E2A\u0E31\u0E21\u0E1E\u0E31\u0E19\u0E18\u0E4C\u0E42\u0E14\ + \u0E22\u0E44\u0E21\u0E48\u0E41\u0E08\u0E49\u0E07\u0E43\u0E2B\u0E49\u0E04\u0E39\ + \u0E48\u0E19\u0E2D\u0E19\u0E17\u0E23\u0E32\u0E1A\u0E16\u0E36\u0E07\u0E2D\u0E32\ + \u0E01\u0E32\u0E23\u0E02\u0E2D\u0E07\u0E40\u0E18\u0E2D \u0E43\u0E19\u0E41\u0E07\ + \u0E48\u0E01\u0E32\u0E23\u0E27\u0E34\u0E40\u0E04\u0E23\u0E32\u0E30\u0E2B\u0E4C\ + \u0E17\u0E32\u0E07\u0E08\u0E34\u0E15\u0E27\u0E34\u0E40\u0E04\u0E23\u0E32\u0E30\ + \u0E2B\u0E4C:" + - input_choice_list: + A: "\u0E04\u0E27\u0E32\u0E21\u0E08\u0E23\u0E34\u0E07\u0E17\u0E35\u0E48\u0E27\ + \u0E48\u0E32\u0E1E\u0E27\u0E01\u0E40\u0E02\u0E32\u0E44\u0E21\u0E48\u0E21\u0E35\ + \u0E23\u0E30\u0E22\u0E30\u0E40\u0E27\u0E25\u0E32\u0E17\u0E19\u0E44\u0E1F" + B: "\u0E01\u0E32\u0E23\u0E15\u0E2D\u0E1A\u0E2A\u0E19\u0E2D\u0E07\u0E02\u0E2D\ + \u0E07\u0E0A\u0E31\u0E49\u0E19\u0E43\u0E19\u0E02\u0E2D\u0E07\u0E0A\u0E48\u0E2D\ + \u0E07\u0E04\u0E25\u0E2D\u0E14" + C: "\u0E21\u0E35\u0E01\u0E32\u0E23\u0E16\u0E36\u0E07\u0E08\u0E38\u0E14\u0E2A\ + \u0E38\u0E14\u0E22\u0E2D\u0E14\u0E2A\u0E25\u0E31\u0E1A\u0E01\u0E31\u0E19\u0E43\ + \u0E19\u0E17\u0E35\u0E48\u0E15\u0E48\u0E32\u0E07\u0E46" + D: "\u0E08\u0E35-\u0E2A\u0E1B\u0E2D\u0E15" + input_correct_responses: + - A + input_question: "\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E02\ + \u0E2D\u0E07\u0E1C\u0E39\u0E49\u0E2B\u0E0D\u0E34\u0E07\u0E43\u0E19\u0E01\u0E32\ + \u0E23\u0E16\u0E36\u0E07\u0E08\u0E38\u0E14\u0E2A\u0E38\u0E14\u0E22\u0E2D\u0E14\ + \u0E2B\u0E25\u0E32\u0E22\u0E04\u0E23\u0E31\u0E49\u0E07\u0E21\u0E35\u0E2A\u0E32\ + \u0E40\u0E2B\u0E15\u0E38\u0E2B\u0E25\u0E31\u0E01\u0E21\u0E32\u0E08\u0E32\u0E01\ + :" + - input_choice_list: + A: "\u0E01\u0E32\u0E23\u0E21\u0E35\u0E40\u0E1E\u0E28\u0E2A\u0E31\u0E21\u0E1E\ + \u0E31\u0E19\u0E18\u0E4C" + B: "\u0E27\u0E07\u0E01\u0E25\u0E21\u0E01\u0E23\u0E30\u0E15\u0E38\u0E01" + C: "\u0E01\u0E32\u0E23\u0E41\u0E2A\u0E14\u0E07\u0E2D\u0E2D\u0E01" + D: "\u0E2A\u0E31\u0E21\u0E1C\u0E31\u0E2A\u0E2D\u0E27\u0E31\u0E22\u0E27\u0E30\ + \u0E40\u0E1E\u0E28\u0E02\u0E2D\u0E07\u0E01\u0E31\u0E19\u0E41\u0E25\u0E30\u0E01\ + \u0E31\u0E19" + input_correct_responses: + - A + input_question: "\u0E25\u0E31\u0E01\u0E29\u0E13\u0E30\u0E02\u0E2D\u0E07\u0E01\u0E34\ + \u0E08\u0E01\u0E23\u0E23\u0E21\u0E23\u0E31\u0E01\u0E23\u0E48\u0E27\u0E21\u0E40\ + \u0E1E\u0E28\u0E17\u0E35\u0E48\u0E40\u0E01\u0E34\u0E14\u0E02\u0E36\u0E49\u0E19\ + \u0E43\u0E19\u0E0A\u0E48\u0E27\u0E07\u0E01\u0E48\u0E2D\u0E19\u0E27\u0E31\u0E22\ + \u0E23\u0E38\u0E48\u0E19\u0E23\u0E27\u0E21\u0E16\u0E36\u0E07\u0E02\u0E49\u0E2D\ + \u0E43\u0E14\u0E15\u0E48\u0E2D\u0E44\u0E1B\u0E19\u0E35\u0E49" + - input_choice_list: + A: "\u0E01\u0E32\u0E23\u0E2B\u0E25\u0E31\u0E48\u0E07\u0E40\u0E23\u0E47\u0E27" + B: "\u0E22\u0E31\u0E1A\u0E22\u0E31\u0E49\u0E07\u0E01\u0E32\u0E23\u0E2B\u0E25\ + \u0E31\u0E48\u0E07" + C: "\u0E42\u0E23\u0E04\u0E2B\u0E22\u0E48\u0E2D\u0E19\u0E2A\u0E21\u0E23\u0E23\ + \u0E16\u0E20\u0E32\u0E1E\u0E17\u0E32\u0E07\u0E40\u0E1E\u0E28" + D: "\u0E04\u0E27\u0E32\u0E21\u0E1C\u0E34\u0E14\u0E1B\u0E01\u0E15\u0E34\u0E02\ + \u0E2D\u0E07\u0E01\u0E32\u0E23\u0E2B\u0E25\u0E31\u0E48\u0E07\u0E19\u0E49\u0E33\ + \u0E2D\u0E2A\u0E38\u0E08\u0E34" + input_correct_responses: + - C + input_question: "\u0E04\u0E27\u0E32\u0E21\u0E1C\u0E34\u0E14\u0E1B\u0E01\u0E15\u0E34\ + \u0E17\u0E35\u0E48\u0E1E\u0E1A\u0E1A\u0E48\u0E2D\u0E22\u0E17\u0E35\u0E48\u0E2A\ + \u0E38\u0E14\u0E43\u0E19\u0E1C\u0E39\u0E49\u0E0A\u0E32\u0E22\u0E17\u0E35\u0E48\ + \u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E01\u0E32\u0E23\u0E1A\u0E33\u0E1A\ + \u0E31\u0E14\u0E17\u0E32\u0E07\u0E40\u0E1E\u0E28\u0E04\u0E37\u0E2D:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_human_sexuality +tag: mmlu_th_llama_social_sciences_tasks +task: mmlu_th_llama_human_sexuality +task_alias: human_sexuality diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_jurisprudence.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_jurisprudence.yaml new file mode 100644 index 0000000000000000000000000000000000000000..16ae9e7adc718bacbf57b1e62c750f102a3ae2e2 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_jurisprudence.yaml @@ -0,0 +1,102 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "POP \u0E08\u0E30\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E04\u0E27\u0E32\u0E21\u0E40\ + \u0E2A\u0E21\u0E2D\u0E20\u0E32\u0E04\u0E40\u0E2B\u0E19\u0E37\u0E2D\u0E40\u0E2A\ + \u0E23\u0E35\u0E20\u0E32\u0E1E" + B: "POP \u0E08\u0E30\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E43\u0E0A\u0E49\u0E01\u0E25\ + \u0E22\u0E38\u0E17\u0E18\u0E4C '\u0E2A\u0E39\u0E07\u0E2A\u0E38\u0E14'" + C: "POP \u0E08\u0E30\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E43\u0E0A\u0E49 '\u0E2B\ + \u0E25\u0E31\u0E01\u0E04\u0E27\u0E32\u0E21\u0E41\u0E15\u0E01\u0E15\u0E48\u0E32\ + \u0E07'" + D: "POP \u0E08\u0E30\u0E1B\u0E0F\u0E34\u0E40\u0E2A\u0E18 '\u0E23\u0E30\u0E1A\ + \u0E1A\u0E40\u0E2A\u0E23\u0E35\u0E20\u0E32\u0E1E\u0E15\u0E32\u0E21\u0E18\u0E23\ + \u0E23\u0E21\u0E0A\u0E32\u0E15\u0E34'" + input_correct_responses: + - A + input_question: "\u0E15\u0E33\u0E41\u0E2B\u0E19\u0E48\u0E07\u0E43\u0E14\u0E17\u0E35\ + \u0E48 Rawls \u0E2D\u0E49\u0E32\u0E07\u0E27\u0E48\u0E32\u0E21\u0E35\u0E42\u0E2D\ + \u0E01\u0E32\u0E2A\u0E19\u0E49\u0E2D\u0E22\u0E17\u0E35\u0E48\u0E2A\u0E38\u0E14\ + \u0E17\u0E35\u0E48 POP \u0E08\u0E30\u0E19\u0E33\u0E21\u0E32\u0E43\u0E0A\u0E49\ + \ (\u0E04\u0E19\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E15\u0E33\ + \u0E41\u0E2B\u0E19\u0E48\u0E07\u0E40\u0E14\u0E34\u0E21)" + - input_choice_list: + A: "\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E2A\u0E23\u0E35\u0E20\u0E32\u0E1E\ + \u0E2A\u0E48\u0E27\u0E19\u0E1A\u0E38\u0E04\u0E04\u0E25\u0E43\u0E2B\u0E49\u0E2A\ + \u0E39\u0E07\u0E2A\u0E38\u0E14" + B: "\u0E40\u0E1B\u0E47\u0E19\u0E1E\u0E37\u0E49\u0E19\u0E10\u0E32\u0E19\u0E2A\ + \u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E1B\u0E23\u0E30\u0E19\u0E35\ + \u0E1B\u0E23\u0E30\u0E19\u0E2D\u0E21" + C: "\u0E23\u0E31\u0E01\u0E29\u0E32\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E07\u0E1A" + D: "\u0E01\u0E32\u0E23\u0E2A\u0E48\u0E07\u0E40\u0E2A\u0E23\u0E34\u0E21\u0E2B\ + \u0E25\u0E31\u0E01\u0E01\u0E32\u0E23\u0E02\u0E2D\u0E07\u0E23\u0E30\u0E1A\u0E1A\ + \u0E2D\u0E07\u0E04\u0E4C\u0E01\u0E23\u0E40\u0E2A\u0E23\u0E35" + input_correct_responses: + - D + input_question: "\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E35\u0E48\u0E02\u0E2D\u0E07\u0E01\ + \u0E0E\u0E2B\u0E21\u0E32\u0E22\u0E23\u0E27\u0E21\u0E16\u0E36\u0E07\u0E17\u0E31\ + \u0E49\u0E07\u0E2B\u0E21\u0E14 \u0E41\u0E15\u0E48\u0E02\u0E49\u0E2D\u0E43\u0E14\ + \u0E15\u0E48\u0E2D\u0E44\u0E1B\u0E19\u0E35\u0E49" + - input_choice_list: + A: "\u0E2D\u0E33\u0E19\u0E32\u0E08." + B: "\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E1E\u0E34\ + \u0E40\u0E28\u0E29" + C: "\u0E04\u0E27\u0E32\u0E21\u0E23\u0E48\u0E27\u0E21\u0E21\u0E37\u0E2D" + D: "\u0E23\u0E30\u0E1A\u0E1A\u0E17\u0E38\u0E19\u0E19\u0E34\u0E22\u0E21." + input_correct_responses: + - D + input_question: "\u0E04\u0E33\u0E43\u0E14\u0E2A\u0E23\u0E38\u0E1B\u0E04\u0E33\u0E2D\ + \u0E18\u0E34\u0E1A\u0E32\u0E22\u0E02\u0E2D\u0E07 Weber \u0E40\u0E01\u0E35\u0E48\ + \u0E22\u0E27\u0E01\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E1E\u0E31\u0E12\u0E19\u0E32\ + \u0E01\u0E0E\u0E2B\u0E21\u0E32\u0E22\u0E17\u0E35\u0E48\u0E21\u0E35\u0E40\u0E2B\ + \u0E15\u0E38\u0E21\u0E35\u0E1C\u0E25\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E40\u0E1B\ + \u0E47\u0E19\u0E17\u0E32\u0E07\u0E01\u0E32\u0E23\u0E44\u0E14\u0E49\u0E14\u0E35\ + \u0E17\u0E35\u0E48\u0E2A\u0E38\u0E14" + - input_choice_list: + A: "\u0E01\u0E0E\u0E18\u0E23\u0E23\u0E21\u0E0A\u0E32\u0E15\u0E34" + B: "\u0E40\u0E0A\u0E34\u0E07\u0E27\u0E34\u0E40\u0E04\u0E23\u0E32\u0E30\u0E2B\ + \u0E4C" + C: "\u0E1B\u0E23\u0E30\u0E27\u0E31\u0E15\u0E34\u0E28\u0E32\u0E2A\u0E15\u0E23\ + \u0E4C" + D: "\u0E2A\u0E31\u0E07\u0E04\u0E21\u0E27\u0E34\u0E17\u0E22\u0E32" + input_correct_responses: + - A + input_question: "________ \u0E42\u0E23\u0E07\u0E40\u0E23\u0E35\u0E22\u0E19\u0E19\ + \u0E34\u0E15\u0E34\u0E28\u0E32\u0E2A\u0E15\u0E23\u0E4C\u0E22\u0E37\u0E19\u0E22\ + \u0E31\u0E19\u0E27\u0E48\u0E32\u0E01\u0E0E\u0E2B\u0E21\u0E32\u0E22\u0E15\u0E31\ + \u0E49\u0E07\u0E2D\u0E22\u0E39\u0E48\u0E1A\u0E19\u0E1E\u0E37\u0E49\u0E19\u0E10\ + \u0E32\u0E19\u0E02\u0E2D\u0E07\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48 "\u0E16\ + \u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"" + - input_choice_list: + A: "\u0E08\u0E14\u0E2B\u0E21\u0E32\u0E22\u0E14\u0E31\u0E07\u0E01\u0E25\u0E48\ + \u0E32\u0E27\u0E40\u0E1B\u0E47\u0E19\u0E01\u0E32\u0E23\u0E40\u0E2A\u0E19\u0E2D\ + \u0E02\u0E32\u0E22" + B: "\u0E02\u0E49\u0E2D\u0E40\u0E2A\u0E19\u0E2D\u0E17\u0E35\u0E48\u0E16\u0E39\ + \u0E01\u0E15\u0E49\u0E2D\u0E07\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\ + \u0E16\u0E2A\u0E48\u0E07\u0E17\u0E32\u0E07\u0E08\u0E14\u0E2B\u0E21\u0E32\u0E22\ + \u0E44\u0E14\u0E49" + C: "\u0E08\u0E14\u0E2B\u0E21\u0E32\u0E22\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E40\ + \u0E2A\u0E19\u0E2D\u0E17\u0E35\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\ + \u0E0B\u0E36\u0E48\u0E07\u0E08\u0E30\u0E22\u0E38\u0E15\u0E34\u0E20\u0E32\u0E22\ + \u0E43\u0E19\u0E40\u0E27\u0E25\u0E32\u0E17\u0E35\u0E48\u0E40\u0E2B\u0E21\u0E32\ + \u0E30\u0E2A\u0E21" + D: "\u0E08\u0E14\u0E2B\u0E21\u0E32\u0E22\u0E02\u0E32\u0E14\u0E2B\u0E19\u0E36\ + \u0E48\u0E07\u0E43\u0E19\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\ + \u0E1A\u0E2A\u0E33\u0E04\u0E31\u0E0D\u0E02\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E40\ + \u0E2A\u0E19\u0E2D" + input_correct_responses: + - D + input_question: "Iverson Jewellers \u0E40\u0E02\u0E35\u0E22\u0E19\u0E08\u0E14\u0E2B\ + \u0E21\u0E32\u0E22\u0E16\u0E36\u0E07 Miller \u0E27\u0E48\u0E32 '\u0E40\u0E23\ + \u0E32\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E19\u0E32\u0E2C\u0E34\u0E01\u0E32\ + \ Rolox \u0E17\u0E35\u0E48\u0E44\u0E02\u0E25\u0E32\u0E19\u0E44\u0E14\u0E49\u0E2D\ + \u0E22\u0E48\u0E32\u0E07\u0E14\u0E35\u0E40\u0E1B\u0E47\u0E19\u0E1E\u0E34\u0E40\ + \u0E28\u0E29 \u0E0B\u0E36\u0E48\u0E07\u0E40\u0E23\u0E32\u0E08\u0E30\u0E02\u0E32\ + \u0E22\u0E43\u0E2B\u0E49\u0E04\u0E38\u0E13\u0E43\u0E19\u0E23\u0E32\u0E04\u0E32\ + \u0E17\u0E35\u0E48\u0E14\u0E35\u0E21\u0E32\u0E01'" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_jurisprudence +tag: mmlu_th_llama_humanities_tasks +task: mmlu_th_llama_jurisprudence +task_alias: jurisprudence diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_machine_learning.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_machine_learning.yaml new file mode 100644 index 0000000000000000000000000000000000000000..229273fbaac1037699f94c9387ebbc827e982934 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_machine_learning.yaml @@ -0,0 +1,173 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: 2.0/15 + B: 1.0/7 + C: 3.0/16 + D: 1.0/5 + input_correct_responses: + - B + input_question: "\u0E17\u0E2D\u0E22\u0E25\u0E39\u0E01\u0E40\u0E15\u0E4B\u0E32\ + \ 6 \u0E14\u0E49\u0E32\u0E19 15 \u0E04\u0E23\u0E31\u0E49\u0E07 \u0E1C\u0E25\u0E25\ + \u0E31\u0E1E\u0E18\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E14\u0E49\u0E04\u0E37\u0E2D\ + \ \u0E14\u0E49\u0E32\u0E19 1 \u0E02\u0E36\u0E49\u0E19\u0E21\u0E32 0 \u0E04\u0E23\ + \u0E31\u0E49\u0E07; \u0E14\u0E49\u0E32\u0E19 2: 1 \u0E04\u0E23\u0E31\u0E49\u0E07\ + ; \u0E14\u0E49\u0E32\u0E19 3: 2 \u0E04\u0E23\u0E31\u0E49\u0E07; \u0E14\u0E49\ + \u0E32\u0E19 4: 3 \u0E04\u0E23\u0E31\u0E49\u0E07; \u0E14\u0E49\u0E32\u0E19 5:\ + \ 4 \u0E04\u0E23\u0E31\u0E49\u0E07; \u0E14\u0E49\u0E32\u0E19 6: 5 \u0E04\u0E23\ + \u0E31\u0E49\u0E07 \u0E08\u0E32\u0E01\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C\ + \u0E40\u0E2B\u0E25\u0E48\u0E32\u0E19\u0E35\u0E49 \u0E04\u0E27\u0E32\u0E21\u0E19\ + \u0E48\u0E32\u0E08\u0E30\u0E40\u0E1B\u0E47\u0E19\u0E17\u0E35\u0E48\u0E14\u0E49\ + \u0E32\u0E19 3 \u0E08\u0E30\u0E40\u0E01\u0E34\u0E14\u0E02\u0E36\u0E49\u0E19\u0E40\ + \u0E21\u0E37\u0E48\u0E2D\u0E43\u0E0A\u0E49 Add-1 Smoothing \u0E40\u0E1B\u0E47\ + \u0E19\u0E40\u0E17\u0E48\u0E32\u0E43\u0E14" + - input_choice_list: + A: "\u0E01\u0E32\u0E23\u0E04\u0E23\u0E2D\u0E1A\u0E15\u0E31\u0E14\u0E41\u0E1A\ + \u0E1A\u0E2A\u0E38\u0E48\u0E21\u0E41\u0E25\u0E30\u0E01\u0E32\u0E23\u0E1E\u0E25\ + \u0E34\u0E01\u0E41\u0E19\u0E27\u0E19\u0E2D\u0E19" + B: "\u0E01\u0E32\u0E23\u0E04\u0E23\u0E2D\u0E1A\u0E15\u0E31\u0E14\u0E41\u0E1A\ + \u0E1A\u0E2A\u0E38\u0E48\u0E21\u0E41\u0E25\u0E30\u0E01\u0E32\u0E23\u0E1E\u0E25\ + \u0E34\u0E01\u0E41\u0E19\u0E27\u0E15\u0E31\u0E49\u0E07" + C: "\u0E42\u0E1B\u0E2A\u0E40\u0E15\u0E2D\u0E23\u0E4C" + D: "\u0E01\u0E25\u0E37\u0E19\u0E44\u0E21\u0E48\u0E40\u0E02\u0E49\u0E32\u0E04\ + \u0E32\u0E22\u0E44\u0E21\u0E48\u0E2D\u0E2D\u0E01" + input_correct_responses: + - A + input_question: "\u0E01\u0E32\u0E23\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E02\u0E49\u0E2D\ + \u0E21\u0E39\u0E25\u0E20\u0E32\u0E1E\u0E41\u0E1A\u0E1A\u0E43\u0E14\u0E17\u0E35\ + \u0E48\u0E43\u0E0A\u0E49\u0E1A\u0E48\u0E2D\u0E22\u0E17\u0E35\u0E48\u0E2A\u0E38\ + \u0E14\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E18\u0E23\u0E23\ + \u0E21\u0E0A\u0E32\u0E15\u0E34" + - input_choice_list: + A: "\u0E27\u0E34\u0E18\u0E35\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19\u0E21\u0E35\ + \u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E43\u0E19\u0E01\ + \u0E32\u0E23\u0E1D\u0E36\u0E01\u0E15\u0E48\u0E33\u0E01\u0E27\u0E48\u0E32\u0E27\ + \u0E34\u0E18\u0E35\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E31\ + \u0E49\u0E07\u0E2B\u0E21\u0E14!" + B: "\u0E27\u0E34\u0E18\u0E35\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19\u0E21\u0E35\ + \u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E43\u0E19\u0E01\ + \u0E32\u0E23\u0E17\u0E14\u0E2A\u0E2D\u0E1A\u0E15\u0E48\u0E33\u0E01\u0E27\u0E48\ + \u0E32\u0E27\u0E34\u0E18\u0E35\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32\ + \u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14! (\u0E40\u0E0A\u0E34\u0E07\u0E2D\ + \u0E23\u0E23\u0E16: \u0E40\u0E21\u0E37\u0E48\u0E2D\u0E40\u0E25\u0E37\u0E2D\ + \u0E01\u0E1E\u0E32\u0E23\u0E32\u0E21\u0E34\u0E40\u0E15\u0E2D\u0E23\u0E4C\u0E01\ + \u0E32\u0E23\u0E1B\u0E23\u0E31\u0E1A\u0E43\u0E2B\u0E49\u0E40\u0E1B\u0E47\u0E19\ + \u0E21\u0E32\u0E15\u0E23\u0E10\u0E32\u0E19 \u03BB \u0E40\u0E1E\u0E37\u0E48\ + \u0E2D\u0E25\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\ + \u0E43\u0E19\u0E01\u0E32\u0E23\u0E17\u0E14\u0E2A\u0E2D\u0E1A)" + C: "\u0E27\u0E34\u0E18\u0E35\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19\u0E21\u0E35\ + \u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E43\u0E19\u0E01\ + \u0E32\u0E23\u0E17\u0E14\u0E2A\u0E2D\u0E1A\u0E15\u0E48\u0E33\u0E01\u0E27\u0E48\ + \u0E32\u0E27\u0E34\u0E18\u0E35\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32\ + \u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14! (\u0E40\u0E0A\u0E34\u0E07\u0E2D\ + \u0E23\u0E23\u0E16: \u0E40\u0E21\u0E37\u0E48\u0E2D\u0E40\u0E25\u0E37\u0E2D\ + \u0E01\u0E1E\u0E32\u0E23\u0E32\u0E21\u0E34\u0E40\u0E15\u0E2D\u0E23\u0E4C\u0E01\ + \u0E32\u0E23\u0E1B\u0E23\u0E31\u0E1A\u0E43\u0E2B\u0E49\u0E40\u0E1B\u0E47\u0E19\ + \u0E21\u0E32\u0E15\u0E23\u0E10\u0E32\u0E19 \u03BB \u0E40\u0E1E\u0E37\u0E48\ + \u0E2D\u0E25\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\ + \u0E02\u0E49\u0E32\u0E21\u0E01\u0E32\u0E23\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\ + \u0E1A)" + D: "\u0E27\u0E34\u0E18\u0E35\u0E01\u0E32\u0E23\u0E02\u0E2D\u0E07\u0E09\u0E31\ + \u0E19\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\ + \u0E43\u0E19\u0E01\u0E32\u0E23\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E04\ + \u0E27\u0E32\u0E21\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E15\u0E48\u0E33\ + \u0E01\u0E27\u0E48\u0E32\u0E27\u0E34\u0E18\u0E35\u0E01\u0E32\u0E23\u0E01\u0E48\ + \u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E19\u0E35\u0E49\u0E17\u0E31\u0E49\u0E07\ + \u0E2B\u0E21\u0E14! (\u0E40\u0E0A\u0E34\u0E07\u0E2D\u0E23\u0E23\u0E16: \u0E40\ + \u0E21\u0E37\u0E48\u0E2D\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E1E\u0E32\u0E23\u0E32\ + \u0E21\u0E34\u0E40\u0E15\u0E2D\u0E23\u0E4C\u0E01\u0E32\u0E23\u0E1B\u0E23\u0E31\ + \u0E1A\u0E43\u0E2B\u0E49\u0E40\u0E1B\u0E47\u0E19\u0E21\u0E32\u0E15\u0E23\u0E10\ + \u0E32\u0E19 \u03BB \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E25\u0E14\u0E02\u0E49\ + \u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E02\u0E49\u0E32\u0E21\u0E01\ + \u0E32\u0E23\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A)" + input_correct_responses: + - C + input_question: "\u0E04\u0E38\u0E13\u0E01\u0E33\u0E25\u0E31\u0E07\u0E15\u0E23\u0E27\ + \u0E08\u0E2A\u0E2D\u0E1A\u0E40\u0E2D\u0E01\u0E2A\u0E32\u0E23\u0E2A\u0E33\u0E2B\ + \u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E1B\u0E23\u0E30\u0E0A\u0E38\u0E21\u0E41\ + \u0E21\u0E0A\u0E0A\u0E35\u0E19\u0E40\u0E25\u0E34\u0E23\u0E4C\u0E19\u0E19\u0E34\ + \u0E07\u0E17\u0E35\u0E48\u0E22\u0E2D\u0E14\u0E40\u0E22\u0E35\u0E48\u0E22\u0E21\ + \u0E17\u0E35\u0E48\u0E2A\u0E38\u0E14\u0E43\u0E19\u0E42\u0E25\u0E01 \u0E41\u0E25\ + \u0E30\u0E04\u0E38\u0E13\u0E40\u0E2B\u0E47\u0E19\u0E01\u0E32\u0E23\u0E2A\u0E48\ + \u0E07\u0E17\u0E35\u0E48\u0E21\u0E35\u0E01\u0E32\u0E23\u0E2D\u0E49\u0E32\u0E07\ + \u0E2A\u0E34\u0E17\u0E18\u0E34\u0E4C\u0E15\u0E48\u0E2D\u0E44\u0E1B\u0E19\u0E35\ + \u0E49 \u0E04\u0E38\u0E13\u0E08\u0E30\u0E1E\u0E34\u0E08\u0E32\u0E23\u0E13\u0E32\ + \u0E22\u0E2D\u0E21\u0E23\u0E31\u0E1A\u0E02\u0E49\u0E2D\u0E43\u0E14" + - input_choice_list: + A: "\u0E1B\u0E23\u0E30\u0E21\u0E32\u0E13 10 \u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\ + \u0E32\u0E07" + B: "\u0E1B\u0E23\u0E30\u0E21\u0E32\u0E13 100 \u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\ + \u0E32\u0E07" + C: "\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07 100 \u0E16\u0E36\u0E07 500 \u0E15\ + \u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07" + D: "\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32 1,000 \u0E15\u0E31\u0E27\u0E2D\ + \u0E22\u0E48\u0E32\u0E07" + input_correct_responses: + - D + input_question: "\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E44\u0E14\u0E49\ + \u0E04\u0E48\u0E32\u0E1B\u0E23\u0E30\u0E21\u0E32\u0E13\u0E01\u0E32\u0E23\u0E2A\ + \u0E39\u0E0D\u0E40\u0E2A\u0E35\u0E22 0/1 \u0E17\u0E35\u0E48\u0E19\u0E49\u0E2D\ + \u0E22\u0E01\u0E27\u0E48\u0E32 1 \u0E40\u0E1B\u0E2D\u0E23\u0E4C\u0E40\u0E0B\u0E47\ + \u0E19\u0E15\u0E4C\u0E02\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E2A\u0E39\u0E0D\u0E40\ + \u0E2A\u0E35\u0E22 0/1 \u0E08\u0E23\u0E34\u0E07 (\u0E14\u0E49\u0E27\u0E22\u0E04\ + \u0E27\u0E32\u0E21\u0E19\u0E48\u0E32\u0E08\u0E30\u0E40\u0E1B\u0E47\u0E19 95%)\ + \ \u0E15\u0E32\u0E21\u0E2D\u0E2A\u0E21\u0E01\u0E32\u0E23\u0E02\u0E2D\u0E07 Hoeffding\ + \ \u0E0A\u0E38\u0E14\u0E17\u0E14\u0E2A\u0E2D\u0E1A IID \u0E15\u0E49\u0E2D\u0E07\ + \u0E21\u0E35\u0E01\u0E35\u0E48\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07" + - input_choice_list: + A: "\u0E21\u0E31\u0E19\u0E41\u0E1E\u0E07\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B\ + \u0E43\u0E19\u0E01\u0E32\u0E23\u0E04\u0E33\u0E19\u0E27\u0E13" + B: "\u0E21\u0E31\u0E19\u0E2D\u0E32\u0E08\u0E08\u0E30\u0E2A\u0E48\u0E07\u0E1C\ + \u0E25\u0E43\u0E2B\u0E49\u0E40\u0E01\u0E34\u0E14\u0E41\u0E1C\u0E19\u0E1C\u0E31\ + \u0E07\u0E01\u0E32\u0E23\u0E15\u0E31\u0E14\u0E2A\u0E34\u0E19\u0E43\u0E08\u0E17\ + \u0E35\u0E48\u0E44\u0E14\u0E49\u0E04\u0E30\u0E41\u0E19\u0E19\u0E44\u0E21\u0E48\ + \u0E14\u0E35\u0E43\u0E19\u0E0A\u0E38\u0E14\u0E1D\u0E36\u0E01\u0E41\u0E25\u0E30\ + \u0E0A\u0E38\u0E14\u0E17\u0E14\u0E2A\u0E2D\u0E1A" + C: "\u0E21\u0E31\u0E19\u0E2D\u0E32\u0E08\u0E08\u0E30\u0E2A\u0E48\u0E07\u0E1C\ + \u0E25\u0E43\u0E2B\u0E49\u0E40\u0E01\u0E34\u0E14\u0E41\u0E1C\u0E19\u0E1C\u0E31\ + \u0E07\u0E01\u0E32\u0E23\u0E15\u0E31\u0E14\u0E2A\u0E34\u0E19\u0E43\u0E08\u0E17\ + \u0E35\u0E48\u0E17\u0E33\u0E04\u0E30\u0E41\u0E19\u0E19\u0E44\u0E14\u0E49\u0E14\ + \u0E35\u0E43\u0E19\u0E0A\u0E38\u0E14\u0E01\u0E32\u0E23\u0E1D\u0E36\u0E01\u0E41\ + \u0E15\u0E48\u0E44\u0E14\u0E49\u0E04\u0E30\u0E41\u0E19\u0E19\u0E44\u0E21\u0E48\ + \u0E14\u0E35\u0E43\u0E19\u0E0A\u0E38\u0E14\u0E01\u0E32\u0E23\u0E17\u0E14\u0E2A\ + \u0E2D\u0E1A" + D: "\u0E21\u0E31\u0E19\u0E2D\u0E32\u0E08\u0E08\u0E30\u0E2A\u0E48\u0E07\u0E1C\ + \u0E25\u0E43\u0E2B\u0E49\u0E40\u0E01\u0E34\u0E14\u0E41\u0E1C\u0E19\u0E1C\u0E31\ + \u0E07\u0E01\u0E32\u0E23\u0E15\u0E31\u0E14\u0E2A\u0E34\u0E19\u0E43\u0E08\u0E17\ + \u0E35\u0E48\u0E17\u0E33\u0E04\u0E30\u0E41\u0E19\u0E19\u0E44\u0E14\u0E49\u0E14\ + \u0E35\u0E43\u0E19\u0E0A\u0E38\u0E14\u0E01\u0E32\u0E23\u0E17\u0E14\u0E2A\u0E2D\ + \u0E1A \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E04\u0E30\u0E41\u0E19\u0E19\u0E44\ + \u0E21\u0E48\u0E14\u0E35\u0E43\u0E19\u0E0A\u0E38\u0E14\u0E01\u0E32\u0E23\u0E1D\ + \u0E36\u0E01" + input_correct_responses: + - C + input_question: "\u0E15\u0E32\u0E21\u0E40\u0E19\u0E37\u0E49\u0E2D\u0E1C\u0E49\u0E32\ + \ \u0E40\u0E21\u0E37\u0E48\u0E2D\u0E40\u0E23\u0E32\u0E21\u0E35\u0E41\u0E2D\u0E15\ + \u0E17\u0E23\u0E34\u0E1A\u0E34\u0E27\u0E15\u0E4C\u0E2D\u0E34\u0E19\u0E1E\u0E38\ + \u0E15\u0E17\u0E35\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32\u0E08\u0E23\u0E34\u0E07\ + \u0E43\u0E19\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E01\u0E32\u0E23\u0E40\ + \u0E23\u0E35\u0E22\u0E19\u0E23\u0E39\u0E49\u0E41\u0E1C\u0E19\u0E1C\u0E31\u0E07\ + \u0E01\u0E32\u0E23\u0E15\u0E31\u0E14\u0E2A\u0E34\u0E19\u0E43\u0E08 \u0E40\u0E23\ + \u0E32\u0E08\u0E30\u0E1E\u0E34\u0E08\u0E32\u0E23\u0E13\u0E32\u0E01\u0E32\u0E23\ + \u0E41\u0E22\u0E01\u0E44\u0E1A\u0E19\u0E32\u0E23\u0E35\u0E15\u0E32\u0E21\u0E27\ + \u0E48\u0E32\u0E41\u0E2D\u0E15\u0E17\u0E23\u0E34\u0E1A\u0E34\u0E27\u0E15\u0E4C\ + \u0E19\u0E31\u0E49\u0E19\u0E2A\u0E39\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E15\u0E48\ + \u0E33\u0E01\u0E27\u0E48\u0E32\u0E40\u0E01\u0E13\u0E11\u0E4C\u0E1A\u0E32\u0E07\ + \u0E2D\u0E22\u0E48\u0E32\u0E07 Pat \u0E41\u0E19\u0E30\u0E19\u0E33\u0E27\u0E48\ + \u0E32\u0E40\u0E23\u0E32\u0E04\u0E27\u0E23\u0E41\u0E1A\u0E48\u0E07\u0E41\u0E1A\ + \u0E1A\u0E2B\u0E25\u0E32\u0E22\u0E17\u0E32\u0E07\u0E14\u0E49\u0E27\u0E22\u0E2B\ + \u0E19\u0E36\u0E48\u0E07\u0E2A\u0E32\u0E02\u0E32\u0E2A\u0E33\u0E2B\u0E23\u0E31\ + \u0E1A\u0E41\u0E15\u0E48\u0E25\u0E30\u0E04\u0E48\u0E32\u0E17\u0E35\u0E48\u0E41\ + \u0E15\u0E01\u0E15\u0E48\u0E32\u0E07\u0E01\u0E31\u0E19\u0E02\u0E2D\u0E07\u0E41\ + \u0E2D\u0E15\u0E17\u0E23\u0E34\u0E1A\u0E34\u0E27\u0E15\u0E4C \u0E08\u0E32\u0E01\ + \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\ + \u0E07 \u0E40\u0E25\u0E37\u0E2D\u0E01\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E17\u0E35\ + \u0E48\u0E43\u0E2B\u0E0D\u0E48\u0E17\u0E35\u0E48\u0E2A\u0E38\u0E14\u0E40\u0E1E\ + \u0E35\u0E22\u0E07\u0E02\u0E49\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E27\u0E15\u0E32\ + \u0E21\u0E04\u0E33\u0E41\u0E19\u0E30\u0E19\u0E33\u0E02\u0E2D\u0E07 Pat:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_machine_learning +tag: mmlu_th_llama_stem_tasks +task: mmlu_th_llama_machine_learning +task_alias: machine_learning diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_miscellaneous.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_miscellaneous.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7379f3da81c7bf0f6f8e05e5fc973cc56737c4f2 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_miscellaneous.yaml @@ -0,0 +1,69 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0E2B\u0E19\u0E36\u0E48\u0E07" + B: "\u0E2A\u0E2D\u0E07" + C: "\u0E2A\u0E35\u0E48" + D: "\u0E41\u0E1B\u0E14" + input_correct_responses: + - B + input_question: "\u0E23\u0E16\u0E22\u0E19\u0E15\u0E4C\u0E21\u0E32\u0E15\u0E23\u0E10\ + \u0E32\u0E19\u0E21\u0E35\u0E01\u0E35\u0E48\u0E40\u0E1E\u0E25\u0E32?" + - input_choice_list: + A: "\u0E1A\u0E39\u0E14\u0E32\u0E40\u0E1B\u0E2A\u0E15\u0E4C" + B: "\u0E1A\u0E39\u0E42\u0E14\u0E01\u0E31\u0E19" + C: "\u0E20\u0E39\u0E0F\u0E32\u0E19" + D: "\u0E2A\u0E2B\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\ + \u0E23" + input_correct_responses: + - B + input_question: "\u0E2A\u0E16\u0E32\u0E19\u0E17\u0E35\u0E48\u0E43\u0E14\u0E21\u0E35\ + \u0E0A\u0E37\u0E48\u0E2D\u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E0A\u0E37\u0E48\ + \u0E2D\u0E2D\u0E31\u0E25\u0E1A\u0E31\u0E49\u0E21\u0E41\u0E2A\u0E14\u0E07\u0E2A\ + \u0E14\u0E1B\u0E35 1979 \u0E02\u0E2D\u0E07\u0E15\u0E33\u0E19\u0E32\u0E19\u0E23\ + \u0E47\u0E2D\u0E04 Cheap Trick" + - input_choice_list: + A: "\u0E41\u0E2D\u0E19\u0E42\u0E18\u0E19\u0E35 '\u0E2A\u0E1B\u0E31\u0E4A\ + \u0E14' \u0E40\u0E27\u0E47\u0E1A\u0E1A\u0E4C" + B: "\u0E44\u0E21\u0E40\u0E04\u0E34\u0E25 '\u0E41\u0E2D\u0E23\u0E4C'\ + \ \u0E08\u0E2D\u0E23\u0E4C\u0E41\u0E14\u0E19" + C: Tyrone 'Muggsy' Bogues + D: "\u0E08\u0E39\u0E40\u0E25\u0E35\u0E22\u0E2A '\u0E14\u0E23. \u0E40\u0E08\ + ' \u0E40\u0E2D\u0E2D\u0E23\u0E4C\u0E27\u0E34\u0E07" + input_correct_responses: + - A + input_question: "\u0E43\u0E04\u0E23\u0E04\u0E37\u0E2D\u0E0A\u0E32\u0E22\u0E17\u0E35\ + \u0E48\u0E40\u0E15\u0E35\u0E49\u0E22\u0E17\u0E35\u0E48\u0E2A\u0E38\u0E14\u0E17\ + \u0E35\u0E48\u0E40\u0E04\u0E22\u0E0A\u0E19\u0E30\u0E01\u0E32\u0E23\u0E41\u0E02\ + \u0E48\u0E07\u0E02\u0E31\u0E19 NBA Slam Dunk" + - input_choice_list: + A: "\u0E44\u0E2E\u0E42\u0E14\u0E23\u0E40\u0E08\u0E19" + B: "\u0E44\u0E19\u0E25\u0E2D\u0E19" + C: "\u0E2D\u0E2D\u0E01\u0E0B\u0E34\u0E40\u0E08\u0E19" + D: "\u0E41\u0E2A\u0E07\u0E2A\u0E27\u0E48\u0E32\u0E07" + input_correct_responses: + - C + input_question: "\u0E2D\u0E30\u0E44\u0E23\u0E40\u0E01\u0E34\u0E14\u0E02\u0E36\u0E49\ + \u0E19\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E01\u0E32\u0E23\u0E2A\u0E31\ + \u0E07\u0E40\u0E04\u0E23\u0E32\u0E30\u0E2B\u0E4C\u0E14\u0E49\u0E27\u0E22\u0E41\ + \u0E2A\u0E07?" + - input_choice_list: + A: "'\u0E27\u0E34\u0E17\u0E22\u0E38 Ga-Ga'" + B: "'\u0E42\u0E2D\u0E1A\u0E25\u0E32\u0E14\u0E35 \u0E42\u0E2D\u0E1A\u0E25\ + \u0E32\u0E14\u0E32'" + C: "'\u0E40\u0E14 \u0E42\u0E14 \u0E42\u0E14 \u0E14\u0E34 \u0E14\u0E32 \u0E14\ + \u0E32 \u0E14\u0E32'" + D: "'\u0E2D\u0E34\u0E19-\u0E2D\u0E30-\u0E01\u0E31\u0E14\u0E14\u0E32-\u0E14\ + \u0E32-\u0E27\u0E34\u0E14\u0E32'" + input_correct_responses: + - C + input_question: "\u0E40\u0E1E\u0E25\u0E07\u0E43\u0E14\u0E15\u0E48\u0E2D\u0E44\u0E1B\ + \u0E19\u0E35\u0E49\u0E40\u0E1B\u0E47\u0E19\u0E40\u0E1E\u0E25\u0E07\u0E22\u0E2D\ + \u0E14\u0E19\u0E34\u0E22\u0E21 10 \u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A\u0E41\ + \u0E23\u0E01\u0E02\u0E2D\u0E07\u0E27\u0E07\u0E23\u0E47\u0E2D\u0E04 The Police" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_miscellaneous +tag: mmlu_th_llama_other_tasks +task: mmlu_th_llama_miscellaneous +task_alias: miscellaneous diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_moral_scenarios.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_moral_scenarios.yaml new file mode 100644 index 0000000000000000000000000000000000000000..48bd0bc1a2a42e77e36f31ae0ab33678a718dcd8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_moral_scenarios.yaml @@ -0,0 +1,141 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0E1C\u0E34\u0E14 \u0E1C\u0E34\u0E14" + B: "\u0E1C\u0E34\u0E14 \u0E44\u0E21\u0E48\u0E1C\u0E34\u0E14" + C: "\u0E44\u0E21\u0E48\u0E1C\u0E34\u0E14\u0E2B\u0E23\u0E2D\u0E01 \u0E1C\u0E34\ + \u0E14" + D: "\u0E44\u0E21\u0E48\u0E1C\u0E34\u0E14 \u0E44\u0E21\u0E48\u0E1C\u0E34\u0E14" + input_correct_responses: + - C + input_question: "\u0E15\u0E31\u0E27\u0E25\u0E30\u0E04\u0E23\u0E2B\u0E25\u0E31\u0E01\ + \ (\u0E0B\u0E36\u0E48\u0E07\u0E43\u0E0A\u0E49 I/me/my) \u0E17\u0E33\u0E2D\u0E30\ + \u0E44\u0E23\u0E1C\u0E34\u0E14\u0E28\u0E35\u0E25\u0E18\u0E23\u0E23\u0E21\u0E2D\ + \u0E22\u0E48\u0E32\u0E07\u0E0A\u0E31\u0E14\u0E40\u0E08\u0E19\u0E15\u0E32\u0E21\ + \u0E21\u0E32\u0E15\u0E23\u0E10\u0E32\u0E19\u0E28\u0E35\u0E25\u0E18\u0E23\u0E23\ + \u0E21\u0E17\u0E31\u0E48\u0E27\u0E44\u0E1B\u0E43\u0E19\u0E2A\u0E2B\u0E23\u0E31\ + \u0E10\u0E2D\u0E40\u0E21\u0E23\u0E34\u0E01\u0E32\u0E43\u0E19\u0E1B\u0E35 2020\ + \ \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E2A\u0E16\u0E32\u0E19\u0E01\u0E32\u0E23\ + \u0E13\u0E4C\u0E43\u0E14 \u0E2A\u0E16\u0E32\u0E19\u0E01\u0E32\u0E23\u0E13\u0E4C\ + \u0E17\u0E35\u0E48 1 | \u0E09\u0E31\u0E19\u0E23\u0E31\u0E01\u0E40\u0E14\u0E47\ + \u0E01\u0E1C\u0E39\u0E49\u0E0A\u0E32\u0E22\u0E41\u0E23\u0E01\u0E40\u0E01\u0E34\ + \u0E14\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19\u0E08\u0E23\u0E34\u0E07\u0E46 \u0E2A\ + \u0E16\u0E32\u0E19\u0E01\u0E32\u0E23\u0E13\u0E4C\u0E17\u0E35\u0E48 2 | \u0E40\ + \u0E14\u0E47\u0E01\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E32\u0E22\u0E17\u0E35\u0E48\ + \u0E08\u0E30\u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E17\u0E35\u0E48\u0E08\u0E2D\ + \u0E14\u0E23\u0E16\u0E1E\u0E48\u0E27\u0E07 \u0E14\u0E31\u0E07\u0E19\u0E31\u0E49\ + \u0E19\u0E09\u0E31\u0E19\u0E08\u0E36\u0E07\u0E40\u0E0A\u0E34\u0E0D\u0E0A\u0E31\ + \u0E49\u0E19\u0E40\u0E23\u0E35\u0E22\u0E19\u0E44\u0E1B\u0E17\u0E35\u0E48\u0E1A\ + \u0E49\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E40\u0E18\u0E2D" + - input_choice_list: + A: "\u0E1C\u0E34\u0E14 \u0E1C\u0E34\u0E14" + B: "\u0E1C\u0E34\u0E14 \u0E44\u0E21\u0E48\u0E1C\u0E34\u0E14" + C: "\u0E44\u0E21\u0E48\u0E1C\u0E34\u0E14\u0E2B\u0E23\u0E2D\u0E01 \u0E1C\u0E34\ + \u0E14" + D: "\u0E44\u0E21\u0E48\u0E1C\u0E34\u0E14 \u0E44\u0E21\u0E48\u0E1C\u0E34\u0E14" + input_correct_responses: + - C + input_question: "\u0E15\u0E31\u0E27\u0E25\u0E30\u0E04\u0E23\u0E2B\u0E25\u0E31\u0E01\ + \ (\u0E0B\u0E36\u0E48\u0E07\u0E43\u0E0A\u0E49 I/me/my) \u0E17\u0E33\u0E2D\u0E30\ + \u0E44\u0E23\u0E1C\u0E34\u0E14\u0E28\u0E35\u0E25\u0E18\u0E23\u0E23\u0E21\u0E2D\ + \u0E22\u0E48\u0E32\u0E07\u0E0A\u0E31\u0E14\u0E40\u0E08\u0E19\u0E15\u0E32\u0E21\ + \u0E21\u0E32\u0E15\u0E23\u0E10\u0E32\u0E19\u0E28\u0E35\u0E25\u0E18\u0E23\u0E23\ + \u0E21\u0E17\u0E31\u0E48\u0E27\u0E44\u0E1B\u0E43\u0E19\u0E2A\u0E2B\u0E23\u0E31\ + \u0E10\u0E2D\u0E40\u0E21\u0E23\u0E34\u0E01\u0E32\u0E43\u0E19\u0E1B\u0E35 2020\ + \ \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E2A\u0E16\u0E32\u0E19\u0E01\u0E32\u0E23\ + \u0E13\u0E4C\u0E43\u0E14 \u0E2A\u0E16\u0E32\u0E19\u0E01\u0E32\u0E23\u0E13\u0E4C\ + \u0E17\u0E35\u0E48 1 | \u0E09\u0E31\u0E19\u0E02\u0E2D\u0E1A\u0E38\u0E2B\u0E23\ + \u0E35\u0E48\u0E08\u0E32\u0E01\u0E1C\u0E39\u0E49\u0E0A\u0E32\u0E22\u0E19\u0E2D\ + \u0E01\u0E23\u0E49\u0E32\u0E19 \u0E2A\u0E16\u0E32\u0E19\u0E01\u0E32\u0E23\u0E13\ + \u0E4C\u0E17\u0E35\u0E48 2 | \u0E40\u0E21\u0E37\u0E48\u0E2D\u0E40\u0E08\u0E49\ + \u0E32\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E35\u0E48\u0E23\u0E31\u0E01\u0E29\u0E32\ + \u0E04\u0E27\u0E32\u0E21\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22\u0E2D\u0E2D\ + \u0E01\u0E08\u0E32\u0E01\u0E15\u0E33\u0E41\u0E2B\u0E19\u0E48\u0E07 \u0E09\u0E31\ + \u0E19\u0E44\u0E14\u0E49\u0E40\u0E01\u0E47\u0E1A\u0E40\u0E2B\u0E23\u0E35\u0E22\ + \u0E0D\u0E2B\u0E32\u0E22\u0E32\u0E01\u0E44\u0E27\u0E49\u0E43\u0E19\u0E01\u0E23\ + \u0E30\u0E40\u0E1B\u0E4B\u0E32" + - input_choice_list: + A: "\u0E1C\u0E34\u0E14 \u0E1C\u0E34\u0E14" + B: "\u0E1C\u0E34\u0E14 \u0E44\u0E21\u0E48\u0E1C\u0E34\u0E14" + C: "\u0E44\u0E21\u0E48\u0E1C\u0E34\u0E14\u0E2B\u0E23\u0E2D\u0E01 \u0E1C\u0E34\ + \u0E14" + D: "\u0E44\u0E21\u0E48\u0E1C\u0E34\u0E14 \u0E44\u0E21\u0E48\u0E1C\u0E34\u0E14" + input_correct_responses: + - D + input_question: "\u0E15\u0E31\u0E27\u0E25\u0E30\u0E04\u0E23\u0E2B\u0E25\u0E31\u0E01\ + \ (\u0E0B\u0E36\u0E48\u0E07\u0E43\u0E0A\u0E49 I/me/my) \u0E17\u0E33\u0E2D\u0E30\ + \u0E44\u0E23\u0E1C\u0E34\u0E14\u0E28\u0E35\u0E25\u0E18\u0E23\u0E23\u0E21\u0E2D\ + \u0E22\u0E48\u0E32\u0E07\u0E0A\u0E31\u0E14\u0E40\u0E08\u0E19\u0E15\u0E32\u0E21\ + \u0E21\u0E32\u0E15\u0E23\u0E10\u0E32\u0E19\u0E28\u0E35\u0E25\u0E18\u0E23\u0E23\ + \u0E21\u0E17\u0E31\u0E48\u0E27\u0E44\u0E1B\u0E43\u0E19\u0E2A\u0E2B\u0E23\u0E31\ + \u0E10\u0E2D\u0E40\u0E21\u0E23\u0E34\u0E01\u0E32\u0E43\u0E19\u0E1B\u0E35 2020\ + \ \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E2A\u0E16\u0E32\u0E19\u0E01\u0E32\u0E23\ + \u0E13\u0E4C\u0E43\u0E14 \u0E2A\u0E16\u0E32\u0E19\u0E01\u0E32\u0E23\u0E13\u0E4C\ + \u0E17\u0E35\u0E48 1 | \u0E09\u0E31\u0E19\u0E0B\u0E37\u0E49\u0E2D\u0E23\u0E16\ + \u0E01\u0E23\u0E30\u0E1A\u0E30\u0E40\u0E01\u0E48\u0E32\u0E2A\u0E33\u0E2B\u0E23\ + \u0E31\u0E1A\u0E17\u0E33\u0E07\u0E32\u0E19 \u0E2A\u0E16\u0E32\u0E19\u0E01\u0E32\ + \u0E23\u0E13\u0E4C\u0E17\u0E35\u0E48 2 | \u0E09\u0E31\u0E19\u0E21\u0E2D\u0E07\ + \u0E02\u0E36\u0E49\u0E19\u0E44\u0E1B\u0E17\u0E35\u0E48\u0E19\u0E49\u0E33\u0E15\ + \u0E01\u0E17\u0E35\u0E48\u0E07\u0E14\u0E07\u0E32\u0E21\u0E41\u0E25\u0E30\u0E02\ + \u0E27\u0E49\u0E32\u0E07\u0E01\u0E49\u0E2D\u0E19\u0E2B\u0E34\u0E19\u0E43\u0E2A\ + \u0E48\u0E21\u0E31\u0E19" + - input_choice_list: + A: "\u0E1C\u0E34\u0E14 \u0E1C\u0E34\u0E14" + B: "\u0E1C\u0E34\u0E14 \u0E44\u0E21\u0E48\u0E1C\u0E34\u0E14" + C: "\u0E44\u0E21\u0E48\u0E1C\u0E34\u0E14\u0E2B\u0E23\u0E2D\u0E01 \u0E1C\u0E34\ + \u0E14" + D: "\u0E44\u0E21\u0E48\u0E1C\u0E34\u0E14 \u0E44\u0E21\u0E48\u0E1C\u0E34\u0E14" + input_correct_responses: + - B + input_question: "\u0E15\u0E31\u0E27\u0E25\u0E30\u0E04\u0E23\u0E2B\u0E25\u0E31\u0E01\ + \ (\u0E0B\u0E36\u0E48\u0E07\u0E43\u0E0A\u0E49 I/me/my) \u0E17\u0E33\u0E2D\u0E30\ + \u0E44\u0E23\u0E1C\u0E34\u0E14\u0E28\u0E35\u0E25\u0E18\u0E23\u0E23\u0E21\u0E2D\ + \u0E22\u0E48\u0E32\u0E07\u0E0A\u0E31\u0E14\u0E40\u0E08\u0E19\u0E15\u0E32\u0E21\ + \u0E21\u0E32\u0E15\u0E23\u0E10\u0E32\u0E19\u0E28\u0E35\u0E25\u0E18\u0E23\u0E23\ + \u0E21\u0E17\u0E31\u0E48\u0E27\u0E44\u0E1B\u0E43\u0E19\u0E2A\u0E2B\u0E23\u0E31\ + \u0E10\u0E2D\u0E40\u0E21\u0E23\u0E34\u0E01\u0E32\u0E43\u0E19\u0E1B\u0E35 2020\ + \ \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E2A\u0E16\u0E32\u0E19\u0E01\u0E32\u0E23\ + \u0E13\u0E4C\u0E43\u0E14 \u0E2A\u0E16\u0E32\u0E19\u0E01\u0E32\u0E23\u0E13\u0E4C\ + \u0E17\u0E35\u0E48 1 | \u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E17\u0E35\ + \u0E48\u0E23\u0E37\u0E49\u0E2D\u0E1A\u0E49\u0E32\u0E19 \u0E09\u0E31\u0E19\u0E1C\ + \u0E25\u0E31\u0E01\u0E40\u0E02\u0E32\u0E0A\u0E19\u0E01\u0E33\u0E41\u0E1E\u0E07\ + \ \u0E2A\u0E16\u0E32\u0E19\u0E01\u0E32\u0E23\u0E13\u0E4C\u0E17\u0E35\u0E48 2\ + \ | \u0E40\u0E21\u0E37\u0E48\u0E2D\u0E09\u0E31\u0E19\u0E40\u0E25\u0E37\u0E2D\ + \u0E01\u0E1E\u0E35\u0E48\u0E40\u0E25\u0E35\u0E49\u0E22\u0E07\u0E40\u0E14\u0E47\ + \u0E01\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E2B\u0E25\u0E32\u0E19\u0E2A\u0E32\ + \u0E27\u0E1D\u0E32\u0E41\u0E1D\u0E14\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19 \u0E09\ + \u0E31\u0E19\u0E44\u0E21\u0E48\u0E2A\u0E19\u0E43\u0E08\u0E20\u0E39\u0E21\u0E34\ + \u0E2B\u0E25\u0E31\u0E07\u0E17\u0E32\u0E07\u0E40\u0E0A\u0E37\u0E49\u0E2D\u0E0A\ + \u0E32\u0E15\u0E34\u0E02\u0E2D\u0E07\u0E40\u0E18\u0E2D" + - input_choice_list: + A: "\u0E1C\u0E34\u0E14 \u0E1C\u0E34\u0E14" + B: "\u0E1C\u0E34\u0E14 \u0E44\u0E21\u0E48\u0E1C\u0E34\u0E14" + C: "\u0E44\u0E21\u0E48\u0E1C\u0E34\u0E14\u0E2B\u0E23\u0E2D\u0E01 \u0E1C\u0E34\ + \u0E14" + D: "\u0E44\u0E21\u0E48\u0E1C\u0E34\u0E14 \u0E44\u0E21\u0E48\u0E1C\u0E34\u0E14" + input_correct_responses: + - A + input_question: "\u0E15\u0E31\u0E27\u0E25\u0E30\u0E04\u0E23\u0E2B\u0E25\u0E31\u0E01\ + \ (\u0E0B\u0E36\u0E48\u0E07\u0E43\u0E0A\u0E49 I/me/my) \u0E17\u0E33\u0E2D\u0E30\ + \u0E44\u0E23\u0E1C\u0E34\u0E14\u0E28\u0E35\u0E25\u0E18\u0E23\u0E23\u0E21\u0E2D\ + \u0E22\u0E48\u0E32\u0E07\u0E0A\u0E31\u0E14\u0E40\u0E08\u0E19\u0E15\u0E32\u0E21\ + \u0E21\u0E32\u0E15\u0E23\u0E10\u0E32\u0E19\u0E28\u0E35\u0E25\u0E18\u0E23\u0E23\ + \u0E21\u0E17\u0E31\u0E48\u0E27\u0E44\u0E1B\u0E43\u0E19\u0E2A\u0E2B\u0E23\u0E31\ + \u0E10\u0E2D\u0E40\u0E21\u0E23\u0E34\u0E01\u0E32\u0E43\u0E19\u0E1B\u0E35 2020\ + \ \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E2A\u0E16\u0E32\u0E19\u0E01\u0E32\u0E23\ + \u0E13\u0E4C\u0E43\u0E14 \u0E2A\u0E16\u0E32\u0E19\u0E01\u0E32\u0E23\u0E13\u0E4C\ + \u0E17\u0E35\u0E48 1 | \u0E09\u0E31\u0E19\u0E2B\u0E22\u0E34\u0E1A\u0E01\u0E23\ + \u0E30\u0E40\u0E1B\u0E4B\u0E32\u0E2A\u0E15\u0E32\u0E07\u0E04\u0E4C\u0E02\u0E2D\ + \u0E07\u0E40\u0E02\u0E32\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E17\u0E35\ + \u0E48\u0E40\u0E02\u0E32\u0E25\u0E27\u0E19\u0E25\u0E32\u0E21\u0E09\u0E31\u0E19\ + \u0E17\u0E35\u0E48\u0E1A\u0E32\u0E23\u0E4C \u0E2A\u0E16\u0E32\u0E19\u0E01\u0E32\ + \u0E23\u0E13\u0E4C\u0E17\u0E35\u0E48 2 | \u0E09\u0E31\u0E19\u0E43\u0E2B\u0E49\ + \u0E04\u0E27\u0E32\u0E21\u0E23\u0E31\u0E01\u0E01\u0E31\u0E1A\u0E17\u0E32\u0E23\ + \u0E01\u0E41\u0E23\u0E01\u0E40\u0E01\u0E34\u0E14\u0E02\u0E2D\u0E07\u0E09\u0E31\ + \u0E19" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_moral_scenarios +tag: mmlu_th_llama_humanities_tasks +task: mmlu_th_llama_moral_scenarios +task_alias: moral_scenarios diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_philosophy.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_philosophy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..13a8e454de9409f718c02f4418fb413fba00362d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_philosophy.yaml @@ -0,0 +1,92 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0E17\u0E24\u0E29\u0E0E\u0E35\u0E17\u0E32\u0E07\u0E08\u0E23\u0E34\u0E22\ + \u0E18\u0E23\u0E23\u0E21\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\ + \u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E40\u0E23\u0E32\u0E04\u0E27\u0E23\ + \u0E1B\u0E0F\u0E34\u0E1A\u0E31\u0E15\u0E34\u0E15\u0E19" + B: "\u0E25\u0E31\u0E01\u0E29\u0E13\u0E30\u0E17\u0E31\u0E48\u0E27\u0E44\u0E1B\ + \u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\u0E1E\u0E24\u0E15\u0E34\ + \u0E01\u0E23\u0E23\u0E21\u0E02\u0E2D\u0E07\u0E1C\u0E39\u0E49\u0E04\u0E19" + C: "\u0E01\u0E32\u0E23\u0E40\u0E23\u0E35\u0E22\u0E01\u0E23\u0E49\u0E2D\u0E07\ + \u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\u0E18\u0E23\u0E23\u0E21\ + \u0E0A\u0E32\u0E15\u0E34\u0E02\u0E2D\u0E07\u0E21\u0E19\u0E38\u0E29\u0E22\u0E4C\ + \u0E41\u0E25\u0E30\u0E27\u0E34\u0E18\u0E35\u0E17\u0E35\u0E48\u0E1C\u0E39\u0E49\ + \u0E04\u0E19\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E1B\u0E23\u0E30\u0E1E\u0E24\ + \u0E15\u0E34\u0E15\u0E19\u0E44\u0E14\u0E49" + D: "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E43\u0E14\u0E02\u0E49\ + \u0E2D\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E02\u0E49\u0E32\u0E07\u0E15\u0E49\u0E19" + input_correct_responses: + - C + input_question: "\u0E04\u0E27\u0E32\u0E21\u0E40\u0E2B\u0E47\u0E19\u0E41\u0E01\u0E48\ + \u0E15\u0E31\u0E27\u0E17\u0E32\u0E07\u0E08\u0E34\u0E15\u0E27\u0E34\u0E17\u0E22\ + \u0E32\u0E04\u0E37\u0E2D:" + - input_choice_list: + A: "\u0E04\u0E27\u0E32\u0E21\u0E1E\u0E36\u0E07\u0E1E\u0E2D\u0E43\u0E08." + B: "\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E38\u0E02." + C: "\u0E14\u0E35." + D: "\u0E04\u0E38\u0E13\u0E18\u0E23\u0E23\u0E21." + input_correct_responses: + - C + input_question: "\u0E15\u0E32\u0E21\u0E41\u0E19\u0E27\u0E04\u0E34\u0E14\u0E02\u0E2D\ + \u0E07 "\u0E25\u0E31\u0E17\u0E18\u0E34\u0E1B\u0E23\u0E30\u0E42\u0E22\u0E0A\ + \u0E19\u0E4C\u0E19\u0E34\u0E22\u0E21\u0E43\u0E19\u0E2D\u0E38\u0E14\u0E21\u0E04\ + \u0E15\u0E34" \u0E02\u0E2D\u0E07\u0E21\u0E31\u0E27\u0E23\u0E4C \u0E01\u0E32\ + \u0E23\u0E01\u0E23\u0E30\u0E17\u0E33\u0E17\u0E35\u0E48\u0E16\u0E39\u0E01\u0E15\ + \u0E49\u0E2D\u0E07\u0E04\u0E37\u0E2D\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\ + \u0E19\u0E33\u0E21\u0E32\u0E0B\u0E36\u0E48\u0E07\u0E08\u0E33\u0E19\u0E27\u0E19\ + \u0E17\u0E35\u0E48\u0E21\u0E32\u0E01\u0E17\u0E35\u0E48\u0E2A\u0E38\u0E14\u0E02\ + \u0E2D\u0E07:" + - input_choice_list: + A: "\u0E17\u0E32\u0E07\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E1F\u0E23\u0E35" + B: "\u0E1A\u0E07\u0E01\u0E32\u0E23\u0E02\u0E2D\u0E07\u0E08\u0E34\u0E15\u0E27\ + \u0E34\u0E0D\u0E0D\u0E32\u0E13" + C: "\u0E01\u0E0E\u0E18\u0E23\u0E23\u0E21\u0E0A\u0E32\u0E15\u0E34\u0E17\u0E35\ + \u0E48\u0E08\u0E33\u0E40\u0E1B\u0E47\u0E19" + D: "\u0E08\u0E30\u0E1A\u0E36\u0E01\u0E1A\u0E36\u0E19" + input_correct_responses: + - C + input_question: "\u0E15\u0E32\u0E21 d'Holbach \u0E1C\u0E39\u0E49\u0E04\u0E19\ + \u0E21\u0E31\u0E01\u0E08\u0E30\u0E1B\u0E0F\u0E34\u0E1A\u0E31\u0E15\u0E34\u0E15\ + \u0E32\u0E21 _____" + - input_choice_list: + A: "\u0E04\u0E19\u0E21\u0E2D\u0E07\u0E42\u0E25\u0E01\u0E43\u0E19\u0E41\u0E07\ + \u0E48\u0E14\u0E35" + B: "\u0E1E\u0E2D\u0E43\u0E08" + C: "\u0E43\u0E19\u0E19\u0E32\u0E21\u0E17\u0E32\u0E07\u0E28\u0E32\u0E2A\u0E19\ + \u0E32" + D: "\u0E04\u0E19\u0E21\u0E2D\u0E07\u0E42\u0E25\u0E01\u0E43\u0E19\u0E41\u0E07\ + \u0E48\u0E23\u0E49\u0E32\u0E22" + input_correct_responses: + - D + input_question: "\u0E01\u0E48\u0E2D\u0E19\u0E01\u0E32\u0E23\u0E01\u0E25\u0E31\u0E1A\ + \u0E43\u0E08\u0E40\u0E1B\u0E47\u0E19\u0E04\u0E23\u0E34\u0E2A\u0E40\u0E15\u0E35\ + \u0E22\u0E19\u0E02\u0E2D\u0E07\u0E15\u0E2D\u0E25\u0E2A\u0E15\u0E2D\u0E22 \u0E21\ + \u0E38\u0E21\u0E21\u0E2D\u0E07\u0E02\u0E2D\u0E07\u0E40\u0E02\u0E32\u0E40\u0E01\ + \u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\u0E04\u0E27\u0E32\u0E21\u0E2B\u0E21\ + \u0E32\u0E22\u0E02\u0E2D\u0E07\u0E0A\u0E35\u0E27\u0E34\u0E15\u0E04\u0E37\u0E2D\ + \u0E2D\u0E30\u0E44\u0E23?" + - input_choice_list: + A: "\u0E2D\u0E20\u0E34\u0E1B\u0E23\u0E31\u0E0A\u0E0D\u0E32" + B: "\u0E0D\u0E32\u0E13\u0E27\u0E34\u0E17\u0E22\u0E32" + C: "\u0E1F\u0E34\u0E2A\u0E34\u0E01\u0E2A\u0E4C\u0E04\u0E27\u0E2D\u0E19\u0E15\ + \u0E31\u0E21" + D: "\u0E01\u0E32\u0E22\u0E27\u0E34\u0E20\u0E32\u0E04" + input_correct_responses: + - A + input_question: "\u0E01\u0E32\u0E23\u0E28\u0E36\u0E01\u0E29\u0E32\u0E04\u0E27\u0E32\ + \u0E21\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E23\u0E34\u0E07\u0E43\u0E19\u0E04\u0E27\ + \u0E32\u0E21\u0E2B\u0E21\u0E32\u0E22\u0E17\u0E35\u0E48\u0E01\u0E27\u0E49\u0E32\ + \u0E07\u0E17\u0E35\u0E48\u0E2A\u0E38\u0E14 \u0E01\u0E32\u0E23\u0E2A\u0E2D\u0E1A\ + \u0E16\u0E32\u0E21\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\u0E18\ + \u0E23\u0E23\u0E21\u0E0A\u0E32\u0E15\u0E34\u0E17\u0E35\u0E48\u0E40\u0E1B\u0E47\ + \u0E19\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E02\u0E2D\ + \u0E07\u0E40\u0E2D\u0E01\u0E20\u0E1E\u0E41\u0E25\u0E30\u0E2A\u0E34\u0E48\u0E07\ + \u0E15\u0E48\u0E32\u0E07\u0E46 \u0E43\u0E19\u0E19\u0E31\u0E49\u0E19\u0E40\u0E23\ + \u0E35\u0E22\u0E01\u0E27\u0E48\u0E32 _____" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_philosophy +tag: mmlu_th_llama_humanities_tasks +task: mmlu_th_llama_philosophy +task_alias: philosophy diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_prehistory.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_prehistory.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cfe34386b3446c8443d7c6004cf9e858ec3dfd4d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_prehistory.yaml @@ -0,0 +1,142 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0E2A\u0E19\u0E2D\u0E07\u0E19\u0E31\u0E01\u0E1A\u0E27\u0E0A\u0E19\u0E31\ + \u0E01\u0E14\u0E32\u0E23\u0E32\u0E28\u0E32\u0E2A\u0E15\u0E23\u0E4C\u0E0A\u0E32\ + \u0E27\u0E21\u0E32\u0E22\u0E31\u0E19\u0E17\u0E35\u0E48\u0E17\u0E23\u0E07\u0E1E\ + \u0E25\u0E31\u0E07" + B: "\u0E41\u0E2A\u0E14\u0E07\u0E04\u0E27\u0E32\u0E21\u0E40\u0E2D\u0E37\u0E49\ + \u0E2D\u0E40\u0E1F\u0E37\u0E49\u0E2D\u0E40\u0E1C\u0E37\u0E48\u0E2D\u0E41\u0E1C\ + \u0E48\u0E15\u0E48\u0E2D\u0E04\u0E19\u0E17\u0E31\u0E48\u0E27\u0E44\u0E1B\u0E40\ + \u0E1E\u0E23\u0E32\u0E30\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E2D\u0E19\u0E38\ + \u0E0D\u0E32\u0E15\u0E43\u0E2B\u0E49\u0E2D\u0E22\u0E39\u0E48\u0E08\u0E33\u0E1E\ + \u0E23\u0E23\u0E29\u0E32\u0E44\u0E14\u0E49" + C: "\u0E17\u0E33\u0E43\u0E2B\u0E49\u0E28\u0E31\u0E15\u0E23\u0E39\u0E2B\u0E27\ + \u0E32\u0E14\u0E01\u0E25\u0E31\u0E27\u0E42\u0E14\u0E22\u0E40\u0E09\u0E1E\u0E32\ + \u0E30\u0E0A\u0E32\u0E27\u0E2A\u0E40\u0E1B\u0E19" + D: "\u0E17\u0E33\u0E43\u0E2B\u0E49\u0E40\u0E1B\u0E47\u0E19\u0E01\u0E29\u0E31\ + \u0E15\u0E23\u0E34\u0E22\u0E4C\u0E42\u0E14\u0E22\u0E0A\u0E2D\u0E1A\u0E14\u0E49\ + \u0E27\u0E22\u0E01\u0E0E\u0E2B\u0E21\u0E32\u0E22 \u0E40\u0E19\u0E37\u0E48\u0E2D\ + \u0E07\u0E08\u0E32\u0E01\u0E1A\u0E34\u0E14\u0E32\u0E44\u0E21\u0E48\u0E43\u0E0A\ + \u0E48\u0E01\u0E29\u0E31\u0E15\u0E23\u0E34\u0E22\u0E4C" + input_correct_responses: + - D + input_question: "Pacal \u0E01\u0E29\u0E31\u0E15\u0E23\u0E34\u0E22\u0E4C\u0E21\u0E32\ + \u0E22\u0E31\u0E19\u0E1C\u0E39\u0E49\u0E22\u0E34\u0E48\u0E07\u0E43\u0E2B\u0E0D\ + \u0E48\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E27\u0E31\u0E14\u0E43\u0E19\u0E40\u0E21\ + \u0E37\u0E2D\u0E07 Palenque \u0E40\u0E1E\u0E37\u0E48\u0E2D:" + - input_choice_list: + A: "\u0E28\u0E39\u0E19\u0E22\u0E4C\u0E01\u0E25\u0E32\u0E07\u0E02\u0E2D\u0E07\ + \u0E2D\u0E32\u0E23\u0E22\u0E18\u0E23\u0E23\u0E21\u0E21\u0E34\u0E2A\u0E0B\u0E34\ + \u0E2A\u0E0B\u0E34\u0E1B\u0E1B\u0E35\u0E17\u0E35\u0E48\u0E21\u0E35\u0E2A\u0E20\ + \u0E32\u0E1E\u0E04\u0E25\u0E49\u0E32\u0E22\u0E01\u0E31\u0E1A\u0E01\u0E32\u0E23\ + \u0E02\u0E36\u0E49\u0E19\u0E02\u0E2D\u0E07\u0E23\u0E31\u0E10\u0E43\u0E19\u0E22\ + \u0E38\u0E04\u0E41\u0E23\u0E01" + B: "\u0E02\u0E49\u0E2D \u0E08\u0E33\u0E01\u0E31\u0E14 \u0E02\u0E2D\u0E07\u0E2D\ + \u0E33\u0E19\u0E32\u0E08\u0E43\u0E19\u0E2A\u0E31\u0E07\u0E04\u0E21\u0E2D\u0E40\ + \u0E21\u0E23\u0E34\u0E01\u0E31\u0E19\u0E1E\u0E37\u0E49\u0E19\u0E40\u0E21\u0E37\ + \u0E2D\u0E07\u0E02\u0E2D\u0E07\u0E1C\u0E39\u0E49\u0E2B\u0E32\u0E2D\u0E32\u0E2B\ + \u0E32\u0E23\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E40\u0E2A\u0E21\u0E2D\u0E20\u0E32\ + \u0E04" + C: "\u0E01\u0E32\u0E23\u0E1B\u0E01\u0E04\u0E23\u0E2D\u0E07\u0E41\u0E1A\u0E1A\ + \u0E07\u0E48\u0E32\u0E22\u0E46 \u0E2B\u0E23\u0E37\u0E2D\u0E1A\u0E32\u0E07\u0E17\ + \u0E35\u0E2D\u0E32\u0E08\u0E40\u0E1B\u0E47\u0E19\u0E01\u0E32\u0E23\u0E1B\u0E01\ + \u0E04\u0E23\u0E2D\u0E07\u0E41\u0E1A\u0E1A\u0E0B\u0E31\u0E1A\u0E0B\u0E49\u0E2D\ + \u0E19\u0E44\u0E14\u0E49\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E02\u0E36\u0E49\u0E19\ + \u0E43\u0E19\u0E1B\u0E35 \u0E04.\u0E28. 1500" + D: "\u0E28\u0E39\u0E19\u0E22\u0E4C\u0E01\u0E25\u0E32\u0E07\u0E2D\u0E32\u0E23\ + \u0E22\u0E18\u0E23\u0E23\u0E21\u0E21\u0E34\u0E2A\u0E0B\u0E34\u0E2A\u0E0B\u0E34\ + \u0E1B\u0E1B\u0E35\u0E49\u0E17\u0E35\u0E48\u0E21\u0E35\u0E2A\u0E20\u0E32\u0E1E\ + \u0E04\u0E25\u0E49\u0E32\u0E22\u0E2A\u0E31\u0E07\u0E04\u0E21\u0E17\u0E32\u0E07\ + \u0E0A\u0E32\u0E22\u0E1D\u0E31\u0E48\u0E07\u0E15\u0E30\u0E27\u0E31\u0E19\u0E15\ + \u0E01\u0E40\u0E09\u0E35\u0E22\u0E07\u0E40\u0E2B\u0E19\u0E37\u0E2D\u0E02\u0E2D\ + \u0E07\u0E17\u0E27\u0E35\u0E1B\u0E2D\u0E40\u0E21\u0E23\u0E34\u0E01\u0E32\u0E40\ + \u0E2B\u0E19\u0E37\u0E2D" + input_correct_responses: + - A + input_question: "\u0E15\u0E32\u0E21\u0E17\u0E35\u0E48 Timothy Pauketat \u0E2B\u0E25\ + \u0E31\u0E01\u0E10\u0E32\u0E19\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E01\u0E32\ + \u0E23\u0E41\u0E1A\u0E48\u0E07\u0E0A\u0E31\u0E49\u0E19\u0E17\u0E32\u0E07\u0E2A\ + \u0E31\u0E07\u0E04\u0E21\u0E41\u0E25\u0E30\u0E2D\u0E33\u0E19\u0E32\u0E08\u0E17\ + \u0E32\u0E07\u0E01\u0E32\u0E23\u0E40\u0E21\u0E37\u0E2D\u0E07\u0E17\u0E35\u0E48\ + \ Cahokia \u0E41\u0E2A\u0E14\u0E07\u0E43\u0E2B\u0E49\u0E40\u0E2B\u0E47\u0E19\ + :" + - input_choice_list: + A: "\u0E20\u0E31\u0E22\u0E1E\u0E34\u0E1A\u0E31\u0E15\u0E34\u0E1A\u0E32\u0E07\ + \u0E0A\u0E19\u0E34\u0E14 \u0E40\u0E0A\u0E48\u0E19 \u0E41\u0E1C\u0E48\u0E19\ + \u0E14\u0E34\u0E19\u0E44\u0E2B\u0E27 \u0E20\u0E39\u0E40\u0E02\u0E32\u0E44\u0E1F\ + \ \u0E2B\u0E23\u0E37\u0E2D\u0E2A\u0E36\u0E19\u0E32\u0E21\u0E34" + B: "\u0E04\u0E27\u0E32\u0E21\u0E40\u0E2A\u0E37\u0E48\u0E2D\u0E21\u0E42\u0E17\ + \u0E23\u0E21\u0E02\u0E2D\u0E07\u0E23\u0E30\u0E1A\u0E1A\u0E19\u0E34\u0E40\u0E27\ + \u0E28\u0E2D\u0E31\u0E19\u0E40\u0E1B\u0E47\u0E19\u0E1C\u0E25\u0E08\u0E32\u0E01\ + \u0E40\u0E17\u0E04\u0E19\u0E34\u0E04\u0E01\u0E32\u0E23\u0E17\u0E33\u0E44\u0E23\ + \u0E48\u0E44\u0E16\u0E19\u0E32" + C: "\u0E2A\u0E07\u0E04\u0E23\u0E32\u0E21\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\ + \u0E21\u0E35\u0E17\u0E35\u0E48\u0E2A\u0E34\u0E49\u0E19\u0E2A\u0E38\u0E14\u0E23\ + \u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E19\u0E04\u0E23\u0E23\u0E31\u0E10\u0E02\ + \u0E2D\u0E07\u0E0A\u0E32\u0E27\u0E21\u0E32\u0E22\u0E31\u0E19\u0E17\u0E35\u0E48\ + \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E01\u0E25\u0E49\u0E40\u0E04\u0E35\u0E22\u0E07" + D: "\u0E01\u0E32\u0E23\u0E1B\u0E0F\u0E34\u0E1A\u0E31\u0E15\u0E34\u0E02\u0E2D\ + \u0E07\u0E01\u0E32\u0E23\u0E1C\u0E2A\u0E21\u0E02\u0E49\u0E32\u0E21\u0E1E\u0E31\ + \u0E19\u0E18\u0E38\u0E4C\u0E17\u0E35\u0E48\u0E19\u0E33\u0E44\u0E1B\u0E2A\u0E39\ + \u0E48\u0E04\u0E27\u0E32\u0E21\u0E1C\u0E34\u0E14\u0E1B\u0E01\u0E15\u0E34 \u0E41\ + \u0E15\u0E48\u0E01\u0E33\u0E40\u0E19\u0E34\u0E14\u0E17\u0E35\u0E48\u0E40\u0E1E\ + \u0E34\u0E48\u0E21\u0E02\u0E36\u0E49\u0E19\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E21\ + \u0E32\u0E01" + input_correct_responses: + - B + input_question: "\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49\u0E19\u0E31\u0E01\u0E27\u0E34\ + \u0E08\u0E31\u0E22\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E27\u0E48\u0E32\u0E01\u0E32\ + \u0E23\u0E25\u0E14\u0E25\u0E07\u0E02\u0E2D\u0E07\u0E21\u0E32\u0E22\u0E32\u0E21\ + \u0E35\u0E2A\u0E32\u0E40\u0E2B\u0E15\u0E38\u0E2B\u0E25\u0E31\u0E01\u0E21\u0E32\ + \u0E08\u0E32\u0E01:" + - input_choice_list: + A: "\u0E04\u0E27\u0E32\u0E21\u0E2B\u0E25\u0E32\u0E01\u0E2B\u0E25\u0E32\u0E22\ + \u0E02\u0E2D\u0E07\u0E2A\u0E1B\u0E35\u0E0A\u0E35\u0E2A\u0E4C\u0E08\u0E33\u0E19\ + \u0E27\u0E19\u0E21\u0E32\u0E01 \u0E2B\u0E23\u0E37\u0E2D\u0E2A\u0E1B\u0E35\u0E0A\ + \u0E35\u0E2A\u0E4C\u0E40\u0E14\u0E35\u0E22\u0E27\u0E17\u0E35\u0E48\u0E21\u0E35\ + \u0E04\u0E27\u0E32\u0E21\u0E2B\u0E25\u0E32\u0E01\u0E2B\u0E25\u0E32\u0E22\u0E21\ + \u0E32\u0E01" + B: "\u0E04\u0E27\u0E32\u0E21\u0E2B\u0E25\u0E32\u0E01\u0E2B\u0E25\u0E32\u0E22\ + \u0E02\u0E2D\u0E07\u0E2A\u0E1B\u0E35\u0E0A\u0E35\u0E2A\u0E4C\u0E19\u0E49\u0E2D\ + \u0E22\u0E21\u0E32\u0E01\u0E43\u0E19\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\ + \u0E32\u0E19\u0E35\u0E49\u0E41\u0E25\u0E30\u0E21\u0E35 hominids \u0E19\u0E49\ + \u0E2D\u0E22\u0E21\u0E32\u0E01" + C: "\u0E04\u0E27\u0E32\u0E21\u0E2B\u0E25\u0E32\u0E01\u0E2B\u0E25\u0E32\u0E22\ + \u0E02\u0E2D\u0E07\u0E2A\u0E32\u0E22\u0E1E\u0E31\u0E19\u0E18\u0E38\u0E4C\u0E25\ + \u0E14\u0E25\u0E07\u0E40\u0E19\u0E37\u0E48\u0E2D\u0E07\u0E08\u0E32\u0E01\u0E22\ + \u0E38\u0E04\u0E19\u0E49\u0E33\u0E41\u0E02\u0E47\u0E07\u0E17\u0E35\u0E48\u0E22\ + \u0E37\u0E14\u0E40\u0E22\u0E37\u0E49\u0E2D\u0E15\u0E32\u0E21\u0E21\u0E32\u0E14\ + \u0E49\u0E27\u0E22\u0E04\u0E27\u0E32\u0E21\u0E41\u0E2B\u0E49\u0E07\u0E41\u0E25\ + \u0E49\u0E07\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E23\u0E38\u0E19\u0E41\u0E23\u0E07" + D: "\u0E04\u0E27\u0E32\u0E21\u0E2B\u0E25\u0E32\u0E01\u0E2B\u0E25\u0E32\u0E22\ + \u0E02\u0E2D\u0E07\u0E0A\u0E19\u0E34\u0E14\u0E25\u0E14\u0E25\u0E07 \u0E41\u0E15\ + \u0E48\u0E08\u0E33\u0E19\u0E27\u0E19\u0E2B\u0E34\u0E19\u0E04\u0E49\u0E2D\u0E19\ + \u0E41\u0E25\u0E30\u0E2A\u0E30\u0E40\u0E01\u0E47\u0E14\u0E40\u0E1E\u0E34\u0E48\ + \u0E21\u0E02\u0E36\u0E49\u0E19 \u0E0B\u0E36\u0E48\u0E07\u0E1A\u0E48\u0E07\u0E0A\ + \u0E35\u0E49\u0E16\u0E36\u0E07\u0E01\u0E32\u0E23\u0E1C\u0E25\u0E34\u0E15\u0E40\ + \u0E04\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E21\u0E37\u0E2D\u0E2B\u0E34\u0E19" + input_correct_responses: + - A + input_question: "\u0E01\u0E32\u0E23\u0E27\u0E34\u0E08\u0E31\u0E22\u0E25\u0E48\u0E32\ + \u0E2A\u0E38\u0E14\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\u0E2A\ + \u0E32\u0E22\u0E1E\u0E31\u0E19\u0E18\u0E38\u0E4C hominid \u0E17\u0E35\u0E48\u0E21\ + \u0E32\u0E08\u0E32\u0E01 Middle Pliocene \u0E23\u0E30\u0E1A\u0E38\u0E27\u0E48\ + \u0E32\u0E21\u0E35 (\u0E13 \u0E1B\u0E35 2020):" + - input_choice_list: + A: "\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 650 \u0E0B\u0E35\u0E0B\u0E35" + B: "\u0E1B\u0E23\u0E30\u0E21\u0E32\u0E13 800 \u0E0B\u0E35\u0E0B\u0E35" + C: "\u0E40\u0E1E\u0E35\u0E22\u0E07\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19\ + \ 1,000 \u0E0B\u0E35\u0E0B\u0E35" + D: "1200 \u0E0B\u0E35\u0E0B\u0E35" + input_correct_responses: + - C + input_question: "\u0E04\u0E27\u0E32\u0E21\u0E08\u0E38\u0E01\u0E23\u0E30\u0E42\u0E2B\ + \u0E25\u0E01\u0E40\u0E09\u0E25\u0E35\u0E48\u0E22\u0E02\u0E2D\u0E07 Homo erectus\ + \ \u0E04\u0E37\u0E2D\u0E2D\u0E30\u0E44\u0E23?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_prehistory +tag: mmlu_th_llama_humanities_tasks +task: mmlu_th_llama_prehistory +task_alias: prehistory diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_professional_accounting.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_professional_accounting.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fb0ed31fcc7c96ee9d6c249dfbf920c9247695de --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_professional_accounting.yaml @@ -0,0 +1,165 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "70,000 \u0E14\u0E2D\u0E25\u0E25\u0E32\u0E23\u0E4C" + B: "75,000 \u0E14\u0E2D\u0E25\u0E25\u0E32\u0E23\u0E4C" + C: "80,000 \u0E14\u0E2D\u0E25\u0E25\u0E32\u0E23\u0E4C" + D: 100,000 + input_correct_responses: + - D + input_question: "Box \u0E2D\u0E07\u0E04\u0E4C\u0E01\u0E23\u0E1E\u0E31\u0E12\u0E19\ + \u0E32\u0E40\u0E2D\u0E01\u0E0A\u0E19\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E41\ + \u0E2A\u0E27\u0E07\u0E2B\u0E32\u0E1C\u0E25\u0E01\u0E33\u0E44\u0E23\u0E21\u0E35\ + \u0E18\u0E38\u0E23\u0E01\u0E23\u0E23\u0E21\u0E15\u0E48\u0E2D\u0E44\u0E1B\u0E19\ + \u0E35\u0E49\u0E43\u0E19\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E35\ + : \u0E40\u0E07\u0E34\u0E19\u0E2A\u0E14\u0E23\u0E31\u0E1A\u0E08\u0E32\u0E01\u0E01\ + \u0E32\u0E23\u0E02\u0E32\u0E22\u0E40\u0E07\u0E34\u0E19\u0E25\u0E07\u0E17\u0E38\ + \u0E19 80,000 \u0E14\u0E2D\u0E25\u0E25\u0E32\u0E23\u0E4C \u0E0B\u0E37\u0E49\u0E2D\ + \u0E2D\u0E32\u0E04\u0E32\u0E23\u0E41\u0E25\u0E30\u0E2D\u0E38\u0E1B\u0E01\u0E23\ + \u0E13\u0E4C 10,000 \u0E14\u0E2D\u0E25\u0E25\u0E32\u0E23\u0E4C \u0E40\u0E07\u0E34\ + \u0E19\u0E2A\u0E14\u0E23\u0E31\u0E1A\u0E08\u0E32\u0E01\u0E2B\u0E19\u0E35\u0E49\ + \u0E23\u0E30\u0E22\u0E30\u0E22\u0E32\u0E27 100,000 \u0E14\u0E2D\u0E25\u0E25\u0E32\ + \u0E23\u0E4C \u0E02\u0E32\u0E14\u0E17\u0E38\u0E19\u0E08\u0E32\u0E01\u0E01\u0E32\ + \u0E23\u0E02\u0E32\u0E22\u0E40\u0E07\u0E34\u0E19\u0E25\u0E07\u0E17\u0E38\u0E19\ + \ 5,000 \u0E14\u0E2D\u0E25\u0E25\u0E32\u0E23\u0E4C \u0E08\u0E33\u0E19\u0E27\u0E19\ + \u0E40\u0E07\u0E34\u0E19\u0E17\u0E35\u0E48\u0E04\u0E27\u0E23\u0E23\u0E32\u0E22\ + \u0E07\u0E32\u0E19\u0E40\u0E1B\u0E47\u0E19\u0E2A\u0E38\u0E17\u0E18\u0E34 \u0E40\ + \u0E07\u0E34\u0E19\u0E2A\u0E14\u0E44\u0E14\u0E49\u0E21\u0E32\u0E08\u0E32\u0E01\ + \u0E01\u0E34\u0E08\u0E01\u0E23\u0E23\u0E21\u0E08\u0E31\u0E14\u0E2B\u0E32\u0E40\ + \u0E07\u0E34\u0E19\u0E43\u0E19\u0E07\u0E1A\u0E01\u0E23\u0E30\u0E41\u0E2A\u0E40\ + \u0E07\u0E34\u0E19\u0E2A\u0E14\u0E02\u0E2D\u0E07 Box?" + - input_choice_list: + A: $13,000 + B: $600 + C: $15,000 + D: $28,000 + input_correct_responses: + - A + input_question: "\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E23\u0E49\u0E2D\u0E22\u0E1B\u0E35\ + \u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27 \u0E04\u0E38\u0E13\u0E17\u0E27\u0E14\ + \u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E25\u0E07\u0E17\u0E38\u0E19 $100 \u0E14\ + \u0E49\u0E27\u0E22\u0E14\u0E2D\u0E01\u0E40\u0E1A\u0E35\u0E49\u0E22 5% \u0E15\ + \u0E48\u0E2D\u0E1B\u0E35 \u0E01\u0E32\u0E23\u0E25\u0E07\u0E17\u0E38\u0E19\u0E27\ + \u0E31\u0E19\u0E19\u0E35\u0E49\u0E04\u0E38\u0E49\u0E21\u0E04\u0E48\u0E32\u0E41\ + \u0E04\u0E48\u0E44\u0E2B\u0E19?" + - input_choice_list: + A: $0 + B: $500 + C: $1,650 + D: $16,500 + input_correct_responses: + - A + input_question: "Krete \u0E40\u0E1B\u0E47\u0E19\u0E1C\u0E39\u0E49\u0E40\u0E2A\u0E35\ + \u0E22\u0E20\u0E32\u0E29\u0E35\u0E42\u0E2A\u0E14\u0E17\u0E35\u0E48\u0E21\u0E35\ + \u0E23\u0E32\u0E22\u0E44\u0E14\u0E49\u0E08\u0E32\u0E01\u0E04\u0E48\u0E32\u0E08\ + \u0E49\u0E32\u0E07\u0E40\u0E17\u0E48\u0E32\u0E19\u0E31\u0E49\u0E19 \u0E20\u0E32\ + \u0E22\u0E43\u0E19\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48 31 \u0E18\u0E31\u0E19\ + \u0E27\u0E32\u0E04\u0E21 \u0E1B\u0E35\u0E17\u0E35\u0E48 1 \u0E19\u0E32\u0E22\ + \u0E08\u0E49\u0E32\u0E07\u0E02\u0E2D\u0E07 Krete \u0E44\u0E14\u0E49\u0E2B\u0E31\ + \u0E01\u0E20\u0E32\u0E29\u0E35\u0E23\u0E32\u0E22\u0E44\u0E14\u0E49\u0E02\u0E2D\ + \u0E07\u0E23\u0E31\u0E10\u0E1A\u0E32\u0E25\u0E01\u0E25\u0E32\u0E07\u0E08\u0E33\ + \u0E19\u0E27\u0E19 16,000 \u0E14\u0E2D\u0E25\u0E25\u0E32\u0E23\u0E4C \u0E41\u0E25\ + \u0E30 Krete \u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E08\u0E48\ + \u0E32\u0E22\u0E20\u0E32\u0E29\u0E35\u0E42\u0E14\u0E22\u0E1B\u0E23\u0E30\u0E21\ + \u0E32\u0E13 \u0E43\u0E19\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48 15 \u0E40\u0E21\ + \u0E29\u0E32\u0E22\u0E19 \u0E1B\u0E35\u0E17\u0E35\u0E48 2 \u0E04\u0E23\u0E35\ + \u0E15\u0E44\u0E14\u0E49\u0E22\u0E37\u0E48\u0E19\u0E04\u0E33\u0E23\u0E49\u0E2D\ + \u0E07\u0E02\u0E2D\u0E02\u0E22\u0E32\u0E22\u0E40\u0E27\u0E25\u0E32\u0E22\u0E37\ + \u0E48\u0E19\u0E41\u0E1A\u0E1A\u0E41\u0E2A\u0E14\u0E07\u0E23\u0E32\u0E22\u0E01\ + \u0E32\u0E23\u0E20\u0E32\u0E29\u0E35\u0E2A\u0E48\u0E27\u0E19\u0E1A\u0E38\u0E04\ + \u0E04\u0E25\u0E02\u0E2D\u0E07\u0E40\u0E18\u0E2D\u0E2D\u0E22\u0E48\u0E32\u0E07\ + \u0E17\u0E31\u0E19\u0E17\u0E48\u0E27\u0E07\u0E17\u0E35 \u0E41\u0E25\u0E30\u0E08\ + \u0E48\u0E32\u0E22\u0E20\u0E32\u0E29\u0E35\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\ + \u0E15\u0E34\u0E21 300 \u0E14\u0E2D\u0E25\u0E25\u0E32\u0E23\u0E4C \u0E04\u0E27\ + \u0E32\u0E21\u0E23\u0E31\u0E1A\u0E1C\u0E34\u0E14\u0E17\u0E32\u0E07\u0E20\u0E32\ + \u0E29\u0E35\u0E1B\u0E35\u0E17\u0E35\u0E48 1 \u0E02\u0E2D\u0E07 Krete \u0E2D\ + \u0E22\u0E39\u0E48\u0E17\u0E35\u0E48 16,500 \u0E14\u0E2D\u0E25\u0E25\u0E32\u0E23\ + \u0E4C \u0E40\u0E21\u0E37\u0E48\u0E2D\u0E40\u0E18\u0E2D\u0E22\u0E37\u0E48\u0E19\ + \u0E41\u0E1A\u0E1A\u0E41\u0E2A\u0E14\u0E07\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\ + \u0E20\u0E32\u0E29\u0E35\u0E43\u0E19\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48 30\ + \ \u0E40\u0E21\u0E29\u0E32\u0E22\u0E19 \u0E1B\u0E35\u0E17\u0E35\u0E48 2 \u0E15\ + \u0E32\u0E21\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E27\u0E25\u0E32 \u0E41\u0E25\ + \u0E30\u0E0A\u0E33\u0E23\u0E30\u0E22\u0E2D\u0E14\u0E20\u0E32\u0E29\u0E35\u0E17\ + \u0E35\u0E48\u0E40\u0E2B\u0E25\u0E37\u0E2D\u0E2D\u0E22\u0E39\u0E48 \u0E08\u0E33\ + \u0E19\u0E27\u0E19\u0E40\u0E17\u0E48\u0E32\u0E43\u0E14\u0E17\u0E35\u0E48\u0E08\ + \u0E30\u0E15\u0E49\u0E2D\u0E07\u0E16\u0E39\u0E01\u0E1B\u0E23\u0E31\u0E1A\u0E2A\ + \u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E20\ + \u0E32\u0E29\u0E35\u0E17\u0E35\u0E48\u0E1B\u0E23\u0E30\u0E40\u0E21\u0E34\u0E19\ + \u0E44\u0E27\u0E49\u0E15\u0E48\u0E33\u0E01\u0E27\u0E48\u0E32\u0E04\u0E27\u0E32\ + \u0E21\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E23\u0E34\u0E07?" + - input_choice_list: + A: "5,000 \u0E14\u0E2D\u0E25\u0E25\u0E32\u0E23\u0E4C" + B: $13,500 + C: $16,000 + D: $20,000 + input_correct_responses: + - B + input_question: "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\ + \ 1 \u0E21\u0E01\u0E23\u0E32\u0E04\u0E21 \u0E1B\u0E35\u0E17\u0E35\u0E48 1 Alpha\ + \ Co. \u0E44\u0E14\u0E49\u0E25\u0E07\u0E19\u0E32\u0E21\u0E43\u0E19\u0E02\u0E49\ + \u0E2D\u0E15\u0E01\u0E25\u0E07\u0E01\u0E32\u0E23\u0E1A\u0E33\u0E23\u0E38\u0E07\ + \u0E23\u0E31\u0E01\u0E29\u0E32\u0E23\u0E32\u0E22\u0E1B\u0E35\u0E01\u0E31\u0E1A\ + \u0E1C\u0E39\u0E49\u0E43\u0E2B\u0E49\u0E1A\u0E23\u0E34\u0E01\u0E32\u0E23\u0E0B\ + \u0E2D\u0E1F\u0E15\u0E4C\u0E41\u0E27\u0E23\u0E4C\u0E43\u0E19\u0E23\u0E32\u0E04\ + \u0E32 15,000 \u0E14\u0E2D\u0E25\u0E25\u0E32\u0E23\u0E4C \u0E41\u0E25\u0E30\u0E23\ + \u0E30\u0E22\u0E30\u0E40\u0E27\u0E25\u0E32\u0E01\u0E32\u0E23\u0E1A\u0E33\u0E23\ + \u0E38\u0E07\u0E23\u0E31\u0E01\u0E29\u0E32\u0E08\u0E30\u0E40\u0E23\u0E34\u0E48\ + \u0E21\u0E43\u0E19\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48 1 \u0E21\u0E35\u0E19\u0E32\ + \u0E04\u0E21 \u0E1B\u0E35\u0E17\u0E35\u0E48 2 \u0E19\u0E2D\u0E01\u0E08\u0E32\ + \u0E01\u0E19\u0E35\u0E49 Alpha \u0E22\u0E31\u0E07\u0E21\u0E35\u0E04\u0E48\u0E32\ + \u0E43\u0E0A\u0E49\u0E08\u0E48\u0E32\u0E22 5,000 \u0E14\u0E2D\u0E25\u0E25\u0E32\ + \u0E23\u0E4C\u0E43\u0E19\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48 1 \u0E21\u0E01\u0E23\ + \u0E32\u0E04\u0E21 \u0E1B\u0E35\u0E17\u0E35\u0E48 1 \u0E0B\u0E36\u0E48\u0E07\ + \u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E02\u0E49\u0E2D\u0E07\u0E01\u0E31\u0E1A\ + \u0E01\u0E32\u0E23\u0E1B\u0E23\u0E31\u0E1A\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\ + \u0E19\u0E0B\u0E2D\u0E1F\u0E15\u0E4C\u0E41\u0E27\u0E23\u0E4C \u0E04\u0E33\u0E02\ + \u0E2D\u0E17\u0E35\u0E48\u0E08\u0E30\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E1F\u0E31\ + \u0E07\u0E01\u0E4C\u0E0A\u0E31\u0E19\u0E01\u0E32\u0E23\u0E17\u0E33\u0E07\u0E32\ + \u0E19\u0E02\u0E2D\u0E07\u0E0B\u0E2D\u0E1F\u0E15\u0E4C\u0E41\u0E27\u0E23\u0E4C\ + \ Alpha \u0E08\u0E30\u0E04\u0E34\u0E14\u0E04\u0E48\u0E32\u0E40\u0E2A\u0E37\u0E48\ + \u0E2D\u0E21\u0E23\u0E32\u0E04\u0E32\u0E41\u0E25\u0E30\u0E15\u0E31\u0E14\u0E08\ + \u0E33\u0E2B\u0E19\u0E48\u0E32\u0E22\u0E2A\u0E34\u0E19\u0E17\u0E23\u0E31\u0E1E\ + \u0E22\u0E4C\u0E04\u0E2D\u0E21\u0E1E\u0E34\u0E27\u0E40\u0E15\u0E2D\u0E23\u0E4C\ + \u0E41\u0E25\u0E30\u0E0B\u0E2D\u0E1F\u0E15\u0E4C\u0E41\u0E27\u0E23\u0E4C\u0E40\ + \u0E1B\u0E47\u0E19\u0E40\u0E27\u0E25\u0E32\u0E2B\u0E49\u0E32\u0E1B\u0E35\u0E42\ + \u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E40\u0E2A\u0E49\u0E19\ + \u0E15\u0E23\u0E07 \u0E04\u0E48\u0E32\u0E43\u0E0A\u0E49\u0E08\u0E48\u0E32\u0E22\ + \u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14\u0E17\u0E35\u0E48 Alpha \u0E04\u0E27\ + \u0E23\u0E23\u0E31\u0E1A\u0E23\u0E39\u0E49\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\ + \u0E01\u0E31\u0E1A\u0E02\u0E49\u0E2D\u0E15\u0E01\u0E25\u0E07\u0E01\u0E32\u0E23\ + \u0E1A\u0E33\u0E23\u0E38\u0E07\u0E23\u0E31\u0E01\u0E29\u0E32\u0E41\u0E25\u0E30\ + \u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02\u0E0B\u0E2D\u0E1F\u0E15\u0E4C\ + \u0E41\u0E27\u0E23\u0E4C\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E1B\u0E35\u0E2A\ + \u0E34\u0E49\u0E19\u0E2A\u0E38\u0E14\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48 31\ + \ \u0E18\u0E31\u0E19\u0E27\u0E32\u0E04\u0E21 \u0E1B\u0E35\u0E17\u0E35\u0E48\ + \ 1 \u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E40\u0E17\u0E48\ + \u0E32\u0E43\u0E14" + - input_choice_list: + A: "\u0E01\u0E32\u0E23\u0E1B\u0E23\u0E30\u0E40\u0E21\u0E34\u0E19\u0E21\u0E39\ + \u0E25\u0E04\u0E48\u0E32\u0E41\u0E25\u0E30\u0E01\u0E32\u0E23\u0E08\u0E31\u0E14\ + \u0E2A\u0E23\u0E23" + B: "\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E21\u0E1A\u0E39\u0E23\u0E13\u0E4C" + C: "\u0E2A\u0E34\u0E17\u0E18\u0E34\u0E41\u0E25\u0E30\u0E2B\u0E19\u0E49\u0E32\ + \u0E17\u0E35\u0E48" + D: "\u0E01\u0E32\u0E23\u0E19\u0E33\u0E40\u0E2A\u0E19\u0E2D\u0E41\u0E25\u0E30\ + \u0E01\u0E32\u0E23\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E1C\u0E22\u0E02\u0E49\u0E2D\ + \u0E21\u0E39\u0E25" + input_correct_responses: + - B + input_question: "\u0E1C\u0E39\u0E49\u0E2A\u0E2D\u0E1A\u0E1A\u0E31\u0E0D\u0E0A\u0E35\ + \u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E2B\u0E21\u0E32\u0E22\u0E40\u0E25\u0E02\ + \u0E1B\u0E23\u0E30\u0E08\u0E33\u0E40\u0E04\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E1A\ + \u0E19\u0E2D\u0E38\u0E1B\u0E01\u0E23\u0E13\u0E4C\u0E44\u0E1B\u0E22\u0E31\u0E07\ + \u0E1A\u0E31\u0E0D\u0E0A\u0E35\u0E41\u0E22\u0E01\u0E1B\u0E23\u0E30\u0E40\u0E20\ + \u0E17\u0E22\u0E48\u0E2D\u0E22\u0E02\u0E2D\u0E07\u0E1C\u0E39\u0E49\u0E44\u0E21\ + \u0E48\u0E2D\u0E2D\u0E01\u0E15\u0E23\u0E32\u0E2A\u0E32\u0E23 \u0E01\u0E32\u0E23\ + \u0E17\u0E14\u0E2A\u0E2D\u0E1A\u0E19\u0E35\u0E49\u0E23\u0E2D\u0E07\u0E23\u0E31\ + \u0E1A\u0E01\u0E32\u0E23\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\ + \u0E08\u0E31\u0E14\u0E01\u0E32\u0E23\u0E02\u0E49\u0E2D\u0E43\u0E14\u0E15\u0E48\ + \u0E2D\u0E44\u0E1B\u0E19\u0E35\u0E49" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_accounting +tag: mmlu_th_llama_other_tasks +task: mmlu_th_llama_professional_accounting +task_alias: professional_accounting diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_professional_law.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_professional_law.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2f798f6e1c1c5b055415134c6689c79f205c4056 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_professional_law.yaml @@ -0,0 +1,419 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0E01\u0E0E\u0E40\u0E01\u0E13\u0E11\u0E4C\u0E14\u0E31\u0E07\u0E01\u0E25\ + \u0E48\u0E32\u0E27\u0E16\u0E37\u0E2D\u0E40\u0E1B\u0E47\u0E19\u0E42\u0E21\u0E06\ + \u0E30\u0E40\u0E19\u0E37\u0E48\u0E2D\u0E07\u0E08\u0E32\u0E01\u0E04\u0E27\u0E32\ + \u0E21\u0E04\u0E25\u0E38\u0E21\u0E40\u0E04\u0E23\u0E37\u0E2D\u0E20\u0E32\u0E22\ + \u0E43\u0E15\u0E49\u0E21\u0E32\u0E15\u0E23\u0E32\u0E01\u0E23\u0E30\u0E1A\u0E27\ + \u0E19\u0E01\u0E32\u0E23\u0E2D\u0E31\u0E19\u0E0A\u0E2D\u0E1A\u0E18\u0E23\u0E23\ + \u0E21\u0E02\u0E2D\u0E07\u0E04\u0E33\u0E41\u0E1B\u0E23\u0E0D\u0E31\u0E15\u0E15\ + \u0E34\u0E09\u0E1A\u0E31\u0E1A\u0E17\u0E35\u0E48\u0E2A\u0E34\u0E1A\u0E2A\u0E35\ + \u0E48" + B: "\u0E01\u0E0E\u0E2B\u0E21\u0E32\u0E22\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\ + \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1E\u0E23\u0E32\u0E30\u0E25\u0E30\u0E40\u0E21\ + \u0E34\u0E14\u0E40\u0E2A\u0E23\u0E35\u0E20\u0E32\u0E1E\u0E43\u0E19\u0E01\u0E32\ + \u0E23\u0E1E\u0E39\u0E14\u0E02\u0E2D\u0E07\u0E1C\u0E39\u0E49\u0E23\u0E49\u0E2D\ + \u0E07\u0E20\u0E32\u0E22\u0E43\u0E15\u0E49\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\ + \u0E44\u0E02\u0E04\u0E23\u0E31\u0E49\u0E07\u0E41\u0E23\u0E01" + C: "\u0E01\u0E0E\u0E2B\u0E21\u0E32\u0E22\u0E14\u0E31\u0E07\u0E01\u0E25\u0E48\ + \u0E32\u0E27\u0E40\u0E1B\u0E47\u0E19\u0E01\u0E32\u0E23\u0E15\u0E31\u0E14\u0E17\ + \u0E2D\u0E19\u0E40\u0E2A\u0E23\u0E35\u0E20\u0E32\u0E1E\u0E43\u0E19\u0E01\u0E32\ + \u0E23\u0E1E\u0E39\u0E14\u0E20\u0E32\u0E22\u0E43\u0E15\u0E49\u0E01\u0E32\u0E23\ + \u0E41\u0E01\u0E49\u0E44\u0E02\u0E04\u0E23\u0E31\u0E49\u0E07\u0E17\u0E35\u0E48\ + \ 1 \u0E40\u0E19\u0E37\u0E48\u0E2D\u0E07\u0E08\u0E32\u0E01\u0E21\u0E35\u0E27\ + \u0E34\u0E18\u0E35\u0E01\u0E32\u0E23\u0E08\u0E33\u0E01\u0E31\u0E14\u0E19\u0E49\ + \u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\ + \u0E49\u0E1A\u0E23\u0E23\u0E25\u0E38\u0E27\u0E31\u0E15\u0E16\u0E38\u0E1B\u0E23\ + \u0E30\u0E2A\u0E07\u0E04\u0E4C\u0E40\u0E14\u0E35\u0E22\u0E27\u0E01\u0E31\u0E19" + D: "\u0E01\u0E0E\u0E40\u0E01\u0E13\u0E11\u0E4C\u0E19\u0E31\u0E49\u0E19\u0E01\ + \u0E27\u0E49\u0E32\u0E07\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B\u0E41\u0E25\u0E30\ + \u0E40\u0E1B\u0E47\u0E19\u0E1C\u0E25\u0E43\u0E2B\u0E49\u0E44\u0E21\u0E48\u0E16\ + \u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E20\u0E32\u0E22\u0E43\u0E15\u0E49\u0E01\ + \u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02\u0E04\u0E23\u0E31\u0E49\u0E07\u0E17\ + \u0E35\u0E48\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E41\u0E25\u0E30\u0E2A\u0E34\u0E1A\ + \u0E2A\u0E35\u0E48" + input_correct_responses: + - D + input_question: "\u0E2A\u0E20\u0E32\u0E19\u0E34\u0E15\u0E34\u0E1A\u0E31\u0E0D\u0E0D\ + \u0E15\u0E34\u0E41\u0E2B\u0E48\u0E07\u0E23\u0E31\u0E10\u0E40\u0E1E\u0E34\u0E48\ + \u0E07\u0E2D\u0E2D\u0E01\u0E01\u0E0E\u0E2B\u0E21\u0E32\u0E22\u0E01\u0E33\u0E2B\ + \u0E19\u0E14\u0E43\u0E2B\u0E49\u0E01\u0E32\u0E23\u0E2A\u0E32\u0E1B\u0E41\u0E0A\ + \u0E48\u0E07 \u0E1B\u0E23\u0E30\u0E13\u0E32\u0E21 \u0E2B\u0E23\u0E37\u0E2D\u0E43\ + \u0E0A\u0E49\u0E20\u0E32\u0E29\u0E32\u0E25\u0E32\u0E21\u0E01\u0E2D\u0E19\u0E32\ + \u0E08\u0E32\u0E23\u0E2B\u0E23\u0E37\u0E2D\u0E14\u0E39\u0E2B\u0E21\u0E34\u0E48\ + \u0E19\u0E2B\u0E23\u0E37\u0E2D\u0E01\u0E25\u0E48\u0E32\u0E27\u0E16\u0E36\u0E07\ + \u0E40\u0E08\u0E49\u0E32\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E35\u0E48\u0E15\u0E33\ + \u0E23\u0E27\u0E08\u0E17\u0E35\u0E48\u0E1B\u0E0F\u0E34\u0E1A\u0E31\u0E15\u0E34\ + \u0E2B\u0E19\u0E49\u0E32\u0E17\u0E35\u0E48\u0E40\u0E1B\u0E47\u0E19\u0E04\u0E27\ + \u0E32\u0E21\u0E1C\u0E34\u0E14\u0E17\u0E32\u0E07\u0E2D\u0E32\u0E0D\u0E32 \u0E19\ + \u0E31\u0E01\u0E28\u0E36\u0E01\u0E29\u0E32\u0E21\u0E2B\u0E32\u0E27\u0E34\u0E17\ + \u0E22\u0E32\u0E25\u0E31\u0E22\u0E02\u0E2D\u0E07\u0E23\u0E31\u0E10\u0E08\u0E31\ + \u0E14\u0E40\u0E14\u0E34\u0E19\u0E02\u0E1A\u0E27\u0E19\u0E43\u0E19\u0E21\u0E2B\ + \u0E32\u0E27\u0E34\u0E17\u0E22\u0E32\u0E25\u0E31\u0E22\u0E40\u0E1E\u0E37\u0E48\ + \u0E2D\u0E1B\u0E23\u0E30\u0E17\u0E49\u0E27\u0E07\u0E2A\u0E07\u0E04\u0E23\u0E32\ + \u0E21 \u0E01\u0E32\u0E23\u0E0A\u0E38\u0E21\u0E19\u0E38\u0E21\u0E21\u0E35\u0E01\ + \u0E25\u0E38\u0E48\u0E21\u0E19\u0E31\u0E01\u0E28\u0E36\u0E01\u0E29\u0E32 50\ + \ \u0E04\u0E19\u0E40\u0E02\u0E49\u0E32\u0E23\u0E48\u0E27\u0E21 \u0E15\u0E30\u0E42\ + \u0E01\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E48\u0E2D\u0E15\ + \u0E49\u0E32\u0E19\u0E2A\u0E07\u0E04\u0E23\u0E32\u0E21\u0E43\u0E2A\u0E48\u0E23\ + \u0E16\u0E22\u0E19\u0E15\u0E4C\u0E17\u0E35\u0E48\u0E02\u0E31\u0E1A\u0E1C\u0E48\ + \u0E32\u0E19\u0E44\u0E1B\u0E21\u0E32 \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E41\u0E2A\ + \u0E14\u0E07\u0E04\u0E27\u0E32\u0E21\u0E14\u0E39\u0E16\u0E39\u0E01\u0E2A\u0E2B\ + \u0E23\u0E31\u0E10\u0E2D\u0E40\u0E21\u0E23\u0E34\u0E01\u0E32 \u0E19\u0E31\u0E01\ + \u0E40\u0E23\u0E35\u0E22\u0E19\u0E04\u0E19\u0E19\u0E31\u0E49\u0E19\u0E40\u0E22\ + \u0E47\u0E1A\u0E18\u0E07\u0E0A\u0E32\u0E15\u0E34\u0E2D\u0E40\u0E21\u0E23\u0E34\ + \u0E01\u0E31\u0E19\u0E17\u0E35\u0E48\u0E14\u0E49\u0E32\u0E19\u0E2B\u0E25\u0E31\ + \u0E07\u0E01\u0E32\u0E07\u0E40\u0E01\u0E07\u0E22\u0E35\u0E19\u0E2A\u0E4C\u0E02\ + \u0E2D\u0E07\u0E40\u0E02\u0E32 \u0E40\u0E21\u0E37\u0E48\u0E2D\u0E40\u0E08\u0E49\ + \u0E32\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E35\u0E48\u0E15\u0E33\u0E23\u0E27\u0E08\ + \u0E40\u0E2B\u0E47\u0E19\u0E18\u0E07\u0E17\u0E35\u0E48\u0E1B\u0E31\u0E01\u0E2D\ + \u0E22\u0E39\u0E48\u0E1A\u0E19\u0E01\u0E32\u0E07\u0E40\u0E01\u0E07\u0E22\u0E35\ + \u0E19\u0E2A\u0E4C\u0E02\u0E2D\u0E07\u0E19\u0E31\u0E01\u0E40\u0E23\u0E35\u0E22\ + \u0E19 \u0E40\u0E02\u0E32\u0E40\u0E14\u0E34\u0E19\u0E40\u0E02\u0E49\u0E32\u0E21\ + \u0E32\u0E2B\u0E32\u0E41\u0E25\u0E30\u0E1A\u0E2D\u0E01\u0E43\u0E2B\u0E49\u0E40\ + \u0E02\u0E32\u0E16\u0E2D\u0E14\u0E18\u0E07\u0E2D\u0E2D\u0E01 \u0E21\u0E34\u0E09\ + \u0E30\u0E19\u0E31\u0E49\u0E19\u0E40\u0E02\u0E32\u0E08\u0E30\u0E16\u0E39\u0E01\ + \u0E08\u0E31\u0E1A\u0E01\u0E38\u0E21 \u0E19\u0E31\u0E01\u0E40\u0E23\u0E35\u0E22\ + \u0E19\u0E04\u0E19\u0E19\u0E31\u0E49\u0E19\u0E42\u0E01\u0E23\u0E18\u0E41\u0E25\ + \u0E30\u0E15\u0E30\u0E42\u0E01\u0E19\u0E43\u0E2A\u0E48\u0E40\u0E08\u0E49\u0E32\ + \u0E2B\u0E19\u0E49\u0E32\u0E17\u0E35\u0E48\u0E15\u0E33\u0E23\u0E27\u0E08\u0E27\ + \u0E48\u0E32 "\u0E1F\u0E31\u0E07\u0E19\u0E30 \u0E44\u0E2D\u0E49\u0E2A\u0E32\ + \u0E23\u0E40\u0E25\u0E27 \u0E09\u0E31\u0E19\u0E08\u0E30\u0E43\u0E2A\u0E48\u0E1C\ + \u0E49\u0E32\u0E02\u0E35\u0E49\u0E23\u0E34\u0E49\u0E27\u0E19\u0E35\u0E49\u0E17\ + \u0E38\u0E01\u0E17\u0E35\u0E48\u0E17\u0E35\u0E48\u0E09\u0E31\u0E19\u0E1E\u0E2D\ + \u0E43\u0E08" \u0E43\u0E19\u0E40\u0E27\u0E25\u0E32\u0E15\u0E48\u0E2D\u0E21\ + \u0E32 \u0E19\u0E31\u0E01\u0E40\u0E23\u0E35\u0E22\u0E19\u0E04\u0E19\u0E19\u0E31\ + \u0E49\u0E19\u0E16\u0E39\u0E01\u0E08\u0E31\u0E1A\u0E01\u0E38\u0E21\u0E41\u0E25\ + \u0E30\u0E16\u0E39\u0E01\u0E15\u0E31\u0E49\u0E07\u0E02\u0E49\u0E2D\u0E2B\u0E32\ + \u0E25\u0E30\u0E40\u0E21\u0E34\u0E14\u0E01\u0E0E\u0E2B\u0E21\u0E32\u0E22\u0E02\ + \u0E2D\u0E07\u0E23\u0E31\u0E10 \u0E43\u0E19\u0E40\u0E27\u0E25\u0E32\u0E15\u0E48\ + \u0E2D\u0E21\u0E32\u0E19\u0E31\u0E01\u0E40\u0E23\u0E35\u0E22\u0E19\u0E44\u0E14\ + \u0E49\u0E22\u0E37\u0E48\u0E19\u0E1F\u0E49\u0E2D\u0E07\u0E15\u0E48\u0E2D\u0E28\ + \u0E32\u0E25\u0E02\u0E2D\u0E07\u0E23\u0E31\u0E10\u0E40\u0E1E\u0E37\u0E48\u0E2D\ + \u0E17\u0E49\u0E32\u0E17\u0E32\u0E22\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E2D\u0E1A\ + \u0E14\u0E49\u0E27\u0E22\u0E23\u0E31\u0E10\u0E18\u0E23\u0E23\u0E21\u0E19\u0E39\ + \u0E0D\u0E02\u0E2D\u0E07\u0E01\u0E0E\u0E2B\u0E21\u0E32\u0E22 \u0E02\u0E49\u0E2D\ + \u0E42\u0E15\u0E49\u0E41\u0E22\u0E49\u0E07\u0E15\u0E32\u0E21\u0E23\u0E31\u0E10\ + \u0E18\u0E23\u0E23\u0E21\u0E19\u0E39\u0E0D\u0E17\u0E35\u0E48\u0E41\u0E02\u0E47\ + \u0E07\u0E41\u0E01\u0E23\u0E48\u0E07\u0E17\u0E35\u0E48\u0E2A\u0E38\u0E14\u0E2A\ + \u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E19\u0E31\u0E01\u0E40\u0E23\u0E35\u0E22\u0E19\ + \u0E01\u0E47\u0E04\u0E37\u0E2D" + - input_choice_list: + A: "\u0E02\u0E49\u0E2D\u0E1E\u0E32\u0E13\u0E34\u0E0A\u0E22\u0E4C." + B: "\u0E21\u0E32\u0E15\u0E23\u0E32\u0E01\u0E32\u0E23\u0E1B\u0E49\u0E2D\u0E07\ + \u0E01\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E17\u0E48\u0E32\u0E40\u0E17\u0E35\ + \u0E22\u0E21\u0E01\u0E31\u0E19\u0E02\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E41\u0E01\ + \u0E49\u0E44\u0E02\u0E04\u0E23\u0E31\u0E49\u0E07\u0E17\u0E35\u0E48\u0E2A\u0E34\ + \u0E1A\u0E2A\u0E35\u0E48" + C: "\u0E02\u0E49\u0E2D\u0E40\u0E2D\u0E01\u0E2A\u0E34\u0E17\u0E18\u0E34\u0E4C\ + \u0E41\u0E25\u0E30\u0E04\u0E27\u0E32\u0E21\u0E04\u0E38\u0E49\u0E21\u0E01\u0E31\ + \u0E19\u0E02\u0E2D\u0E07\u0E02\u0E49\u0E2D IV \u0E2A\u0E48\u0E27\u0E19\u0E17\ + \u0E35\u0E48 2" + D: "\u0E02\u0E49\u0E2D\u0E2A\u0E31\u0E0D\u0E0D\u0E32." + input_correct_responses: + - A + input_question: "\u0E23\u0E31\u0E10\u0E40\u0E1E\u0E34\u0E48\u0E07\u0E2D\u0E2D\u0E01\ + \u0E01\u0E0E\u0E2B\u0E21\u0E32\u0E22\u0E2B\u0E49\u0E32\u0E21\u0E17\u0E34\u0E49\ + \u0E07\u0E01\u0E32\u0E01\u0E19\u0E34\u0E27\u0E40\u0E04\u0E25\u0E35\u0E22\u0E23\ + \u0E4C\u0E20\u0E32\u0E22\u0E43\u0E19\u0E23\u0E31\u0E10 \u0E01\u0E0E\u0E2B\u0E21\ + \u0E32\u0E22\u0E19\u0E35\u0E49\u0E44\u0E21\u0E48\u0E02\u0E31\u0E14\u0E2B\u0E23\ + \u0E37\u0E2D\u0E02\u0E31\u0E14\u0E41\u0E22\u0E49\u0E07\u0E01\u0E31\u0E1A\u0E01\ + \u0E0E\u0E40\u0E01\u0E13\u0E11\u0E4C\u0E43\u0E14\u0E46 \u0E02\u0E2D\u0E07\u0E23\ + \u0E31\u0E10\u0E1A\u0E32\u0E25\u0E01\u0E25\u0E32\u0E07 \u0E0A\u0E32\u0E22\u0E04\ + \u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\ + \u0E34\u0E08\u0E01\u0E32\u0E23\u0E1A\u0E23\u0E34\u0E29\u0E31\u0E17\u0E43\u0E19\ + \u0E23\u0E31\u0E10\u0E17\u0E35\u0E48\u0E17\u0E33\u0E18\u0E38\u0E23\u0E01\u0E34\ + \u0E08\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\u0E01\u0E32\u0E23\ + \u0E01\u0E33\u0E08\u0E31\u0E14\u0E01\u0E32\u0E01\u0E19\u0E34\u0E27\u0E40\u0E04\ + \u0E25\u0E35\u0E22\u0E23\u0E4C \u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07\u0E01\ + \u0E32\u0E23\u0E1C\u0E48\u0E32\u0E19\u0E01\u0E0E\u0E2B\u0E21\u0E32\u0E22\u0E02\ + \u0E2D\u0E07\u0E23\u0E31\u0E10 \u0E0A\u0E32\u0E22\u0E1C\u0E39\u0E49\u0E0B\u0E36\ + \u0E48\u0E07\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E17\u0E23\u0E32\u0E1A\u0E01\ + \u0E0E\u0E2B\u0E21\u0E32\u0E22\u0E43\u0E2B\u0E21\u0E48\u0E44\u0E14\u0E49\u0E17\ + \u0E33\u0E2A\u0E31\u0E0D\u0E0D\u0E32\u0E01\u0E31\u0E1A\u0E1A\u0E23\u0E34\u0E29\ + \u0E31\u0E17\u0E19\u0E2D\u0E01\u0E23\u0E31\u0E10\u0E2B\u0E25\u0E32\u0E22\u0E41\ + \u0E2B\u0E48\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E01\u0E33\u0E08\u0E31\u0E14\ + \u0E01\u0E32\u0E01\u0E19\u0E34\u0E27\u0E40\u0E04\u0E25\u0E35\u0E22\u0E23\u0E4C\ + \u0E43\u0E19\u0E23\u0E31\u0E10 \u0E2D\u0E22\u0E48\u0E32\u0E07\u0E44\u0E23\u0E01\ + \u0E47\u0E15\u0E32\u0E21 \u0E40\u0E19\u0E37\u0E48\u0E2D\u0E07\u0E08\u0E32\u0E01\ + \u0E01\u0E0E\u0E2B\u0E21\u0E32\u0E22\u0E43\u0E2B\u0E21\u0E48\u0E19\u0E35\u0E49\ + \ \u0E1C\u0E39\u0E49\u0E0A\u0E32\u0E22\u0E08\u0E30\u0E44\u0E21\u0E48\u0E2A\u0E32\ + \u0E21\u0E32\u0E23\u0E16\u0E17\u0E33\u0E2A\u0E31\u0E0D\u0E0D\u0E32\u0E40\u0E2B\ + \u0E25\u0E48\u0E32\u0E19\u0E35\u0E49\u0E44\u0E14\u0E49 \u0E2A\u0E21\u0E21\u0E15\ + \u0E34\u0E27\u0E48\u0E32\u0E0A\u0E32\u0E22\u0E04\u0E19\u0E19\u0E31\u0E49\u0E19\ + \u0E22\u0E37\u0E19\u0E2B\u0E22\u0E31\u0E14\u0E17\u0E35\u0E48\u0E08\u0E30\u0E17\ + \u0E49\u0E32\u0E17\u0E32\u0E22\u0E01\u0E0E\u0E2B\u0E21\u0E32\u0E22\u0E02\u0E2D\ + \u0E07\u0E23\u0E31\u0E10\u0E19\u0E35\u0E49 \u0E02\u0E49\u0E2D\u0E43\u0E14\u0E15\ + \u0E48\u0E2D\u0E44\u0E1B\u0E19\u0E35\u0E49\u0E41\u0E2A\u0E14\u0E07\u0E16\u0E36\ + \u0E07\u0E40\u0E2B\u0E15\u0E38\u0E1C\u0E25\u0E15\u0E32\u0E21\u0E23\u0E31\u0E10\ + \u0E18\u0E23\u0E23\u0E21\u0E19\u0E39\u0E0D\u0E17\u0E35\u0E48\u0E41\u0E02\u0E47\ + \u0E07\u0E41\u0E01\u0E23\u0E48\u0E07\u0E17\u0E35\u0E48\u0E2A\u0E38\u0E14\u0E02\ + \u0E2D\u0E07\u0E40\u0E02\u0E32\u0E43\u0E19\u0E01\u0E32\u0E23\u0E17\u0E49\u0E32\ + \u0E17\u0E32\u0E22\u0E01\u0E0E\u0E2B\u0E21\u0E32\u0E22\u0E02\u0E2D\u0E07\u0E23\ + \u0E31\u0E10\u0E17\u0E35\u0E48\u0E2B\u0E49\u0E32\u0E21\u0E01\u0E32\u0E23\u0E01\ + \u0E33\u0E08\u0E31\u0E14\u0E01\u0E32\u0E01\u0E19\u0E34\u0E27\u0E40\u0E04\u0E25\ + \u0E35\u0E22\u0E23\u0E4C\u0E20\u0E32\u0E22\u0E43\u0E19\u0E23\u0E31\u0E10" + - input_choice_list: + A: "\u0E02\u0E49\u0E2D\u0E40\u0E17\u0E47\u0E08\u0E08\u0E23\u0E34\u0E07\u0E17\ + \u0E35\u0E48\u0E40\u0E16\u0E35\u0E22\u0E07\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49" + B: "\u0E02\u0E49\u0E2D\u0E40\u0E17\u0E47\u0E08\u0E08\u0E23\u0E34\u0E07\u0E17\ + \u0E35\u0E48\u0E16\u0E39\u0E01\u0E01\u0E25\u0E48\u0E32\u0E27\u0E2B\u0E32\u0E42\ + \u0E14\u0E22\u0E2D\u0E07\u0E04\u0E4C\u0E01\u0E23\u0E17\u0E32\u0E07\u0E01\u0E32\ + \u0E23\u0E40\u0E21\u0E37\u0E2D\u0E07\u0E41\u0E15\u0E48\u0E25\u0E30\u0E2D\u0E07\ + \u0E04\u0E4C\u0E01\u0E23" + C: "\u0E02\u0E49\u0E2D\u0E40\u0E17\u0E47\u0E08\u0E08\u0E23\u0E34\u0E07\u0E17\ + \u0E35\u0E48\u0E23\u0E31\u0E1A\u0E23\u0E39\u0E49\u0E42\u0E14\u0E22\u0E17\u0E31\ + \u0E48\u0E27\u0E01\u0E31\u0E19\u0E27\u0E48\u0E32\u0E40\u0E1B\u0E47\u0E19\u0E04\ + \u0E27\u0E32\u0E21\u0E08\u0E23\u0E34\u0E07" + D: "\u0E02\u0E49\u0E2D\u0E40\u0E17\u0E47\u0E08\u0E08\u0E23\u0E34\u0E07\u0E17\ + \u0E35\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E15\u0E23\u0E27\u0E08\u0E2A\ + \u0E2D\u0E1A\u0E44\u0E14\u0E49\u0E17\u0E32\u0E07\u0E27\u0E34\u0E17\u0E22\u0E32\ + \u0E28\u0E32\u0E2A\u0E15\u0E23\u0E4C" + input_correct_responses: + - B + input_question: "\u0E1C\u0E39\u0E49\u0E1E\u0E34\u0E1E\u0E32\u0E01\u0E29\u0E32\u0E44\ + \u0E14\u0E49\u0E41\u0E08\u0E49\u0E07\u0E43\u0E2B\u0E49\u0E17\u0E23\u0E32\u0E1A\ + \u0E16\u0E36\u0E07\u0E02\u0E49\u0E2D\u0E40\u0E17\u0E47\u0E08\u0E08\u0E23\u0E34\ + \u0E07\u0E1A\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E01\u0E32\u0E23\u0E43\u0E19\u0E0A\ + \u0E48\u0E27\u0E07\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19\u0E02\u0E2D\ + \u0E07\u0E01\u0E32\u0E23\u0E1E\u0E34\u0E08\u0E32\u0E23\u0E13\u0E32\u0E04\u0E14\ + \u0E35 \u0E02\u0E49\u0E2D\u0E43\u0E14\u0E15\u0E48\u0E2D\u0E44\u0E1B\u0E19\u0E35\ + \u0E49\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E02\u0E49\u0E2D\u0E40\u0E17\u0E47\ + \u0E08\u0E08\u0E23\u0E34\u0E07\u0E17\u0E35\u0E48\u0E40\u0E2B\u0E21\u0E32\u0E30\ + \u0E2A\u0E21\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E1E\u0E34\ + \u0E08\u0E32\u0E23\u0E13\u0E32\u0E04\u0E14\u0E35" + - input_choice_list: + A: "\u0E43\u0E2B\u0E49\u0E1C\u0E48\u0E2D\u0E19\u0E1B\u0E23\u0E19\u0E40\u0E1E\ + \u0E23\u0E32\u0E30\u0E23\u0E31\u0E49\u0E27\u0E19\u0E31\u0E49\u0E19\u0E25\u0E30\ + \u0E40\u0E21\u0E34\u0E14\u0E02\u0E49\u0E2D \u0E08\u0E33\u0E01\u0E31\u0E14\ + \ \u0E04\u0E27\u0E32\u0E21\u0E2A\u0E30\u0E14\u0E27\u0E01" + B: "\u0E43\u0E2B\u0E49\u0E1C\u0E48\u0E2D\u0E19\u0E1B\u0E23\u0E19\u0E40\u0E1E\ + \u0E23\u0E32\u0E30\u0E23\u0E38\u0E01\u0E25\u0E49\u0E33\u0E41\u0E19\u0E27\u0E23\ + \u0E31\u0E49\u0E27\u0E1C\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E08\u0E33\u0E01\u0E31\ + \u0E14\u0E43\u0E19\u0E41\u0E1C\u0E19\u0E40\u0E14\u0E34\u0E21" + C: "\u0E1B\u0E0F\u0E34\u0E40\u0E2A\u0E18\u0E01\u0E32\u0E23\u0E1C\u0E48\u0E2D\ + \u0E19\u0E1B\u0E23\u0E19\u0E40\u0E1E\u0E23\u0E32\u0E30\u0E04\u0E23\u0E39\u0E44\ + \u0E21\u0E48\u0E44\u0E14\u0E49\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A\u0E43\u0E0A\ + \u0E49\u0E02\u0E49\u0E2D \u0E08\u0E33\u0E01\u0E31\u0E14 \u0E01\u0E31\u0E1A\ + \u0E1C\u0E39\u0E49\u0E40\u0E01\u0E29\u0E35\u0E22\u0E13\u0E2D\u0E32\u0E22\u0E38" + D: "\u0E1B\u0E0F\u0E34\u0E40\u0E2A\u0E18\u0E01\u0E32\u0E23\u0E1C\u0E48\u0E2D\ + \u0E19\u0E1B\u0E23\u0E19 \u0E40\u0E19\u0E37\u0E48\u0E2D\u0E07\u0E08\u0E32\u0E01\ + \u0E23\u0E31\u0E49\u0E27\u0E08\u0E30\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\ + \u0E35\u0E04\u0E27\u0E32\u0E21\u0E27\u0E48\u0E32\u0E40\u0E1B\u0E47\u0E19 "\u0E42\ + \u0E04\u0E23\u0E07\u0E2A\u0E23\u0E49\u0E32\u0E07" \u0E20\u0E32\u0E22\u0E43\ + \u0E19\u0E40\u0E07\u0E37\u0E48\u0E2D\u0E19\u0E44\u0E02\u0E02\u0E2D\u0E07\u0E02\ + \u0E49\u0E2D\u0E08\u0E33\u0E01\u0E31\u0E14" + input_correct_responses: + - B + input_question: "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\ + \ 1 \u0E15\u0E38\u0E25\u0E32\u0E04\u0E21 \u0E1E.\u0E28. 2523 \u0E19\u0E31\u0E01\ + \u0E1E\u0E31\u0E12\u0E19\u0E32\u0E0B\u0E36\u0E48\u0E07\u0E40\u0E1B\u0E47\u0E19\ + \u0E40\u0E08\u0E49\u0E32\u0E02\u0E2D\u0E07\u0E1E\u0E37\u0E49\u0E19\u0E17\u0E35\ + \u0E48\u0E2B\u0E25\u0E32\u0E22\u0E23\u0E49\u0E2D\u0E22\u0E40\u0E2D\u0E40\u0E04\ + \u0E2D\u0E23\u0E4C\u0E43\u0E19\u0E40\u0E02\u0E15\u0E0A\u0E19\u0E1A\u0E17\u0E41\ + \u0E2B\u0E48\u0E07\u0E2B\u0E19\u0E36\u0E48\u0E07 \u0E44\u0E14\u0E49\u0E23\u0E48\ + \u0E32\u0E07\u0E41\u0E1C\u0E19\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E17\u0E31\u0E48\ + \u0E27\u0E44\u0E1B\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E1E\u0E37\u0E49\u0E19\ + \u0E17\u0E35\u0E48\u0E14\u0E31\u0E07\u0E01\u0E25\u0E48\u0E32\u0E27 \u0E41\u0E1C\ + \u0E19\u0E17\u0E35\u0E48\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01\u0E44\u0E27\u0E49\ + \u0E2D\u0E22\u0E48\u0E32\u0E07\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E44\ + \u0E14\u0E49\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E02\u0E49\u0E2D\u0E08\u0E33\u0E01\ + \u0E31\u0E14\u0E41\u0E25\u0E30\u0E02\u0E49\u0E2D \u0E08\u0E33\u0E01\u0E31\u0E14\ + \ \u0E17\u0E35\u0E48\u0E0B\u0E31\u0E1A\u0E0B\u0E49\u0E2D\u0E19\u0E40\u0E01\u0E35\ + \u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\u0E17\u0E35\u0E48\u0E14\u0E34\u0E19\u0E43\ + \u0E19\u0E41\u0E1C\u0E19\u0E0B\u0E36\u0E48\u0E07\u0E08\u0E30\u0E15\u0E49\u0E2D\ + \u0E07\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E40\u0E1B\u0E47\u0E19\u0E22\u0E48\u0E32\ + \u0E19\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E32\u0E28\u0E31\u0E22\ + \ \u0E02\u0E49\u0E2D\u0E08\u0E33\u0E01\u0E31\u0E14\u0E14\u0E31\u0E07\u0E01\u0E25\ + \u0E48\u0E32\u0E27\u0E08\u0E30\u0E02\u0E22\u0E32\u0E22\u0E44\u0E1B\u0E16\u0E36\ + \u0E07\u0E17\u0E38\u0E01\u0E04\u0E19\u0E17\u0E35\u0E48\u0E04\u0E23\u0E2D\u0E1A\ + \u0E04\u0E23\u0E2D\u0E07\u0E25\u0E47\u0E2D\u0E15\u0E43\u0E14 \u0E46 \u0E41\u0E25\ + \u0E30\u0E17\u0E32\u0E22\u0E32\u0E17 \u0E1C\u0E39\u0E49\u0E23\u0E31\u0E1A\u0E42\ + \u0E2D\u0E19\u0E2A\u0E34\u0E17\u0E18\u0E34 \u0E41\u0E25\u0E30\u0E1C\u0E39\u0E49\ + \u0E40\u0E0A\u0E48\u0E32 \u0E21\u0E35\u0E40\u0E07\u0E37\u0E48\u0E2D\u0E19\u0E44\ + \u0E02\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21\u0E27\u0E48\u0E32\ + \u0E40\u0E08\u0E49\u0E32\u0E02\u0E2D\u0E07\u0E17\u0E35\u0E48\u0E15\u0E32\u0E21\ + \u0E21\u0E32\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14\u0E08\u0E30\u0E16\u0E39\ + \u0E01\u0E40\u0E23\u0E35\u0E22\u0E01\u0E40\u0E01\u0E47\u0E1A\u0E40\u0E07\u0E34\ + \u0E19\u0E42\u0E14\u0E22\u0E41\u0E08\u0E49\u0E07\u0E43\u0E2B\u0E49\u0E17\u0E23\ + \u0E32\u0E1A\u0E16\u0E36\u0E07\u0E02\u0E49\u0E2D\u0E08\u0E33\u0E01\u0E31\u0E14\ + \ \u0E43\u0E19\u0E1A\u0E23\u0E23\u0E14\u0E32\u0E02\u0E49\u0E2D\u0E08\u0E33\u0E01\ + \u0E31\u0E14\u0E40\u0E2B\u0E25\u0E48\u0E32\u0E19\u0E31\u0E49\u0E19\u0E43\u0E19\ + \u0E41\u0E1C\u0E19\u0E17\u0E31\u0E48\u0E27\u0E44\u0E1B\u0E21\u0E35\u0E14\u0E31\ + \u0E07\u0E15\u0E48\u0E2D\u0E44\u0E1B\u0E19\u0E35\u0E49: (22) \u0E2A\u0E34\u0E17\ + \u0E18\u0E34\u0E4C\u0E41\u0E1F\u0E23\u0E19\u0E44\u0E0A\u0E2A\u0E4C\u0E16\u0E39\ + \u0E01\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E02\u0E36\u0E49\u0E19\u0E43\u0E19\u0E41\ + \u0E16\u0E1A\u0E17\u0E35\u0E48\u0E14\u0E34\u0E19\u0E01\u0E27\u0E49\u0E32\u0E07\ + \ 10 \u0E1F\u0E38\u0E15\u0E17\u0E35\u0E48\u0E14\u0E49\u0E32\u0E19\u0E2B\u0E25\ + \u0E31\u0E07\u0E02\u0E2D\u0E07\u0E41\u0E15\u0E48\u0E25\u0E30\u0E25\u0E47\u0E2D\ + \u0E15\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E43\u0E0A\u0E49\ + \u0E02\u0E2D\u0E07\u0E1A\u0E23\u0E34\u0E29\u0E31\u0E17\u0E2A\u0E32\u0E18\u0E32\ + \u0E23\u0E13\u0E39\u0E1B\u0E42\u0E20\u0E04\u0E17\u0E35\u0E48\u0E21\u0E35\u0E2A\ + \u0E34\u0E17\u0E18\u0E34\u0E4C\u0E40\u0E02\u0E49\u0E32\u0E41\u0E25\u0E30\u0E2D\ + \u0E2D\u0E01 (23) \u0E2B\u0E49\u0E32\u0E21\u0E1B\u0E25\u0E39\u0E01\u0E1A\u0E49\ + \u0E32\u0E19\u0E2B\u0E23\u0E37\u0E2D\u0E2A\u0E34\u0E48\u0E07\u0E01\u0E48\u0E2D\ + \u0E2A\u0E23\u0E49\u0E32\u0E07\u0E43\u0E14 \u0E46 \u0E1A\u0E19\u0E17\u0E35\u0E48\ + \u0E14\u0E34\u0E19\u0E14\u0E31\u0E07\u0E01\u0E25\u0E48\u0E32\u0E27\u0E17\u0E35\ + \u0E48\u0E15\u0E31\u0E14\u0E1C\u0E48\u0E32\u0E19\u0E41\u0E1B\u0E25\u0E07\u0E14\ + \u0E31\u0E07\u0E01\u0E25\u0E48\u0E32\u0E27 \u0E43\u0E19\u0E1B\u0E35 2000 \u0E1C\ + \u0E39\u0E49\u0E40\u0E01\u0E29\u0E35\u0E22\u0E13\u0E2D\u0E32\u0E22\u0E38\u0E04\ + \u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E44\u0E14\u0E49\u0E0B\u0E37\u0E49\u0E2D\ + \u0E17\u0E35\u0E48\u0E14\u0E34\u0E19\u0E1C\u0E37\u0E19\u0E2B\u0E19\u0E36\u0E48\ + \u0E07 \u0E2A\u0E23\u0E49\u0E32\u0E07\u0E1A\u0E49\u0E32\u0E19 \u0E41\u0E25\u0E30\ + \u0E2A\u0E23\u0E49\u0E32\u0E07\u0E23\u0E31\u0E49\u0E27\u0E14\u0E49\u0E32\u0E19\ + \u0E2B\u0E25\u0E31\u0E07\u0E17\u0E23\u0E31\u0E1E\u0E22\u0E4C\u0E2A\u0E34\u0E19\ + \u0E02\u0E2D\u0E07\u0E40\u0E02\u0E32\u0E20\u0E32\u0E22\u0E43\u0E19\u0E1E\u0E37\ + \u0E49\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E27\u0E07\u0E2B\u0E49\u0E32\u0E21 \u0E43\ + \u0E19\u0E1B\u0E35 \u0E1E.\u0E28. 2547 \u0E04\u0E23\u0E39\u0E04\u0E19\u0E2B\u0E19\ + \u0E36\u0E48\u0E07\u0E44\u0E14\u0E49\u0E0B\u0E37\u0E49\u0E2D\u0E17\u0E35\u0E48\ + \u0E14\u0E34\u0E19\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E15\u0E34\u0E14\ + \u0E01\u0E31\u0E1A\u0E17\u0E35\u0E48\u0E14\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E1C\ + \u0E39\u0E49\u0E40\u0E01\u0E29\u0E35\u0E22\u0E13\u0E2D\u0E32\u0E22\u0E38\u0E41\ + \u0E25\u0E30\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E1A\u0E49\u0E32\u0E19\u0E2B\u0E25\ + \u0E31\u0E07\u0E43\u0E2B\u0E21\u0E48 \u0E2A\u0E2D\u0E07\u0E1B\u0E35\u0E15\u0E48\ + \u0E2D\u0E21\u0E32 \u0E1A\u0E23\u0E23\u0E13\u0E32\u0E23\u0E31\u0E01\u0E29\u0E4C\ + \u0E04\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E44\u0E14\u0E49\u0E0B\u0E37\u0E49\ + \u0E2D\u0E17\u0E35\u0E48\u0E14\u0E34\u0E19\u0E0B\u0E36\u0E48\u0E07\u0E2D\u0E22\ + \u0E39\u0E48\u0E15\u0E34\u0E14\u0E01\u0E31\u0E1A\u0E17\u0E35\u0E48\u0E14\u0E34\ + \u0E19\u0E02\u0E2D\u0E07\u0E04\u0E23\u0E39 \u0E42\u0E09\u0E19\u0E14\u0E17\u0E31\ + \u0E49\u0E07\u0E2A\u0E32\u0E21\u0E09\u0E1A\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\ + \u0E38\u0E13\u0E2A\u0E21\u0E1A\u0E31\u0E15\u0E34\u0E40\u0E2B\u0E25\u0E48\u0E32\ + \u0E19\u0E31\u0E49\u0E19\u0E41\u0E15\u0E48\u0E25\u0E30\u0E23\u0E32\u0E22\u0E01\ + \u0E32\u0E23\u0E21\u0E35\u0E01\u0E32\u0E23\u0E2D\u0E49\u0E32\u0E07\u0E2D\u0E34\ + \u0E07\u0E16\u0E36\u0E07\u0E2A\u0E21\u0E38\u0E14\u0E42\u0E09\u0E19\u0E14\u0E17\ + \u0E35\u0E48\u0E21\u0E35\u0E01\u0E32\u0E23\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01\ + \u0E41\u0E1C\u0E19\u0E17\u0E31\u0E48\u0E27\u0E44\u0E1B \u0E43\u0E19\u0E1B\u0E35\ + \ \u0E1E.\u0E28. 2551 \u0E1A\u0E23\u0E23\u0E13\u0E32\u0E23\u0E31\u0E01\u0E29\ + \u0E4C\u0E44\u0E14\u0E49\u0E40\u0E23\u0E34\u0E48\u0E21\u0E2A\u0E23\u0E49\u0E32\ + \u0E07\u0E23\u0E31\u0E49\u0E27\u0E40\u0E2A\u0E32\u0E41\u0E25\u0E30\u0E23\u0E32\ + \u0E07\u0E22\u0E32\u0E27 7 \u0E1F\u0E38\u0E15\u0E15\u0E32\u0E21\u0E41\u0E19\u0E27\ + \u0E41\u0E1A\u0E48\u0E07\u0E17\u0E35\u0E48\u0E14\u0E34\u0E19\u0E02\u0E2D\u0E07\ + \u0E40\u0E02\u0E32\u0E01\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E23\u0E39 \u0E41\ + \u0E25\u0E30\u0E15\u0E32\u0E21\u0E41\u0E19\u0E27\u0E01\u0E36\u0E48\u0E07\u0E01\ + \u0E25\u0E32\u0E07\u0E02\u0E2D\u0E07\u0E1E\u0E37\u0E49\u0E19\u0E17\u0E35\u0E48\ + \u0E20\u0E32\u0E22\u0E43\u0E15\u0E49\u0E2A\u0E34\u0E17\u0E18\u0E34\u0E41\u0E1F\ + \u0E23\u0E19\u0E44\u0E0A\u0E2A\u0E4C \u0E41\u0E21\u0E49\u0E27\u0E48\u0E32\u0E04\ + \u0E23\u0E39\u0E08\u0E30\u0E04\u0E31\u0E14\u0E04\u0E49\u0E32\u0E19\u0E01\u0E32\ + \u0E23\u0E01\u0E48\u0E2D\u0E2A\u0E23\u0E49\u0E32\u0E07 \u0E41\u0E15\u0E48\u0E23\ + \u0E31\u0E49\u0E27\u0E01\u0E47\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E21\u0E1A\ + \u0E39\u0E23\u0E13\u0E4C \u0E2B\u0E32\u0E01\u0E04\u0E23\u0E39\u0E15\u0E49\u0E2D\ + \u0E07\u0E01\u0E32\u0E23\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E1A\u0E31\u0E07\ + \u0E04\u0E31\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E1A\u0E31\u0E07\u0E04\u0E31\ + \u0E1A\u0E43\u0E2B\u0E49\u0E23\u0E37\u0E49\u0E2D\u0E23\u0E31\u0E49\u0E27\u0E1A\ + \u0E23\u0E23\u0E13\u0E32\u0E23\u0E31\u0E01\u0E29\u0E4C \u0E28\u0E32\u0E25\u0E21\ + \u0E31\u0E01\u0E08\u0E30" + - input_choice_list: + A: "\u0E04\u0E33\u0E2A\u0E31\u0E0D\u0E0D\u0E32\u0E02\u0E2D\u0E07\u0E1A\u0E34\ + \u0E14\u0E32\u0E41\u0E25\u0E30\u0E04\u0E27\u0E32\u0E21\u0E40\u0E0A\u0E37\u0E48\ + \u0E2D\u0E21\u0E31\u0E48\u0E19\u0E02\u0E2D\u0E07\u0E40\u0E08\u0E49\u0E32\u0E2B\ + \u0E19\u0E35\u0E49 \u0E2B\u0E32\u0E01\u0E1E\u0E34\u0E2A\u0E39\u0E08\u0E19\u0E4C\ + \u0E44\u0E14\u0E49 \u0E01\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E40\u0E01\u0E34\u0E14\ + \u0E01\u0E32\u0E23\u0E40\u0E23\u0E35\u0E22\u0E01\u0E23\u0E49\u0E2D\u0E07\u0E17\ + \u0E35\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E08\u0E32\u0E01\u0E40\ + \u0E08\u0E49\u0E32\u0E2B\u0E19\u0E35\u0E49\u0E15\u0E48\u0E2D\u0E1A\u0E34\u0E14\ + \u0E32\u0E15\u0E32\u0E21\u0E2B\u0E25\u0E31\u0E01\u0E04\u0E33\u0E2A\u0E2D\u0E19\ + \u0E02\u0E2D\u0E07\u0E01\u0E0E\u0E2B\u0E21\u0E32\u0E22\u0E1B\u0E34\u0E14\u0E1B\ + \u0E32\u0E01\u0E2A\u0E31\u0E0D\u0E0D\u0E32\u0E43\u0E0A\u0E49\u0E40\u0E07\u0E34\ + \u0E19" + B: "\u0E40\u0E1E\u0E23\u0E32\u0E30\u0E40\u0E2B\u0E47\u0E19\u0E44\u0E14\u0E49\ + \u0E27\u0E48\u0E32\u0E04\u0E33\u0E2A\u0E31\u0E0D\u0E0D\u0E32\u0E02\u0E2D\u0E07\ + \u0E1A\u0E34\u0E14\u0E32\u0E08\u0E30\u0E0A\u0E31\u0E01\u0E08\u0E39\u0E07\u0E43\ + \u0E2B\u0E49\u0E40\u0E08\u0E49\u0E32\u0E2B\u0E19\u0E35\u0E49\u0E23\u0E30\u0E07\ + \u0E31\u0E1A\u0E01\u0E32\u0E23\u0E01\u0E23\u0E30\u0E17\u0E33\u0E43\u0E14 \u0E46\ + \ \u0E01\u0E31\u0E1A\u0E1A\u0E38\u0E15\u0E23 \u0E01\u0E32\u0E23\u0E22\u0E2D\ + \u0E21\u0E2D\u0E14\u0E01\u0E25\u0E31\u0E49\u0E19\u0E14\u0E31\u0E07\u0E01\u0E25\ + \u0E48\u0E32\u0E27\u0E16\u0E37\u0E2D\u0E40\u0E1B\u0E47\u0E19\u0E02\u0E49\u0E2D\ + \u0E15\u0E48\u0E2D\u0E23\u0E2D\u0E07\u0E43\u0E19\u0E01\u0E32\u0E23\u0E1E\u0E34\ + \u0E08\u0E32\u0E23\u0E13\u0E32\u0E04\u0E33\u0E2A\u0E31\u0E0D\u0E0D\u0E32\u0E02\ + \u0E2D\u0E07\u0E1A\u0E34\u0E14\u0E32" + C: "\u0E01\u0E32\u0E23\u0E08\u0E48\u0E32\u0E22\u0E40\u0E07\u0E34\u0E19\u0E2B\ + \u0E49\u0E32\u0E04\u0E23\u0E31\u0E49\u0E07\u0E02\u0E2D\u0E07\u0E1A\u0E34\u0E14\ + \u0E32\u0E43\u0E2B\u0E49\u0E41\u0E01\u0E48\u0E40\u0E08\u0E49\u0E32\u0E2B\u0E19\ + \u0E35\u0E49\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E40\u0E07\ + \u0E34\u0E19\u0E23\u0E27\u0E21 2,500 \u0E14\u0E2D\u0E25\u0E25\u0E32\u0E23\u0E4C\ + \ \u0E41\u0E2A\u0E14\u0E07\u0E16\u0E36\u0E07\u0E40\u0E08\u0E15\u0E19\u0E32\ + \u0E17\u0E35\u0E48\u0E08\u0E23\u0E34\u0E07\u0E08\u0E31\u0E07\u0E43\u0E19\u0E2A\ + \u0E48\u0E27\u0E19\u0E02\u0E2D\u0E07\u0E1A\u0E34\u0E14\u0E32\u0E17\u0E35\u0E48\ + \u0E08\u0E30\u0E1C\u0E39\u0E01\u0E1E\u0E31\u0E19\u0E15\u0E32\u0E21\u0E2A\u0E31\ + \u0E0D\u0E0D\u0E32 \u0E41\u0E25\u0E30\u0E42\u0E14\u0E22\u0E17\u0E31\u0E48\u0E27\ + \u0E44\u0E1B\u0E41\u0E25\u0E49\u0E27 \u0E01\u0E32\u0E23\u0E41\u0E2A\u0E14\u0E07\ + \u0E40\u0E08\u0E15\u0E19\u0E32\u0E14\u0E31\u0E07\u0E01\u0E25\u0E48\u0E32\u0E27\ + \u0E16\u0E37\u0E2D\u0E40\u0E1B\u0E47\u0E19\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E14\ + \u0E41\u0E17\u0E19\u0E01\u0E32\u0E23\u0E1E\u0E34\u0E08\u0E32\u0E23\u0E13\u0E32\ + \u0E17\u0E35\u0E48\u0E21\u0E35\u0E1B\u0E23\u0E30\u0E2A\u0E34\u0E17\u0E18\u0E34\ + \u0E20\u0E32\u0E1E" + D: "\u0E42\u0E14\u0E22\u0E16\u0E37\u0E2D\u0E27\u0E48\u0E32\u0E20\u0E32\u0E23\ + \u0E30\u0E2B\u0E19\u0E35\u0E49\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32\ + \u0E19\u0E35\u0E49\u0E17\u0E35\u0E48\u0E25\u0E39\u0E01\u0E0A\u0E32\u0E22\u0E40\ + \u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E35\u0E49\u0E40\u0E08\u0E49\u0E32\u0E2B\u0E19\ + \u0E35\u0E49 \u0E1A\u0E34\u0E14\u0E32\u0E01\u0E25\u0E32\u0E22\u0E40\u0E1B\u0E47\ + \u0E19\u0E1C\u0E39\u0E49\u0E04\u0E49\u0E33\u0E1B\u0E23\u0E30\u0E01\u0E31\u0E19\ + \u0E0B\u0E36\u0E48\u0E07\u0E2A\u0E31\u0E0D\u0E0D\u0E32\u0E17\u0E35\u0E48\u0E43\ + \u0E2B\u0E49\u0E44\u0E27\u0E49\u0E01\u0E31\u0E1A\u0E40\u0E08\u0E49\u0E32\u0E2B\ + \u0E19\u0E35\u0E49\u0E21\u0E35\u0E1C\u0E25\u0E43\u0E0A\u0E49\u0E1A\u0E31\u0E07\ + \u0E04\u0E31\u0E1A\u0E44\u0E14\u0E49 \u0E40\u0E19\u0E37\u0E48\u0E2D\u0E07\u0E08\ + \u0E32\u0E01\u0E40\u0E1B\u0E47\u0E19\u0E25\u0E32\u0E22\u0E25\u0E31\u0E01\u0E29\ + \u0E13\u0E4C\u0E2D\u0E31\u0E01\u0E29\u0E23\u0E41\u0E25\u0E30\u0E44\u0E14\u0E49\ + \u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\ + \u0E19\u0E42\u0E14\u0E22\u0E01\u0E32\u0E23\u0E1E\u0E34\u0E08\u0E32\u0E23\u0E13\ + \u0E32\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E40\u0E1E\u0E35\u0E22\u0E07\u0E1E\u0E2D" + input_correct_responses: + - A + input_question: "\u0E25\u0E39\u0E01\u0E0A\u0E32\u0E22\u0E04\u0E19\u0E2B\u0E19\u0E36\ + \u0E48\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E35\u0E49\u0E40\u0E08\u0E49\ + \u0E32\u0E2B\u0E19\u0E35\u0E49 5,000 \u0E14\u0E2D\u0E25\u0E25\u0E32\u0E23\u0E4C\ + \ \u0E1E\u0E48\u0E2D\u0E02\u0E2D\u0E07\u0E25\u0E39\u0E01\u0E0A\u0E32\u0E22\u0E44\ + \u0E14\u0E49\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E01\u0E31\u0E1A\u0E40\u0E08\ + \u0E49\u0E32\u0E2B\u0E19\u0E35\u0E49\u0E41\u0E25\u0E30\u0E1A\u0E2D\u0E01\u0E40\ + \u0E02\u0E32\u0E27\u0E48\u0E32\u0E40\u0E02\u0E32\u0E15\u0E49\u0E2D\u0E07\u0E01\ + \u0E32\u0E23\u0E43\u0E0A\u0E49\u0E2B\u0E19\u0E35\u0E49\u0E02\u0E2D\u0E07\u0E25\ + \u0E39\u0E01\u0E0A\u0E32\u0E22 \u0E1A\u0E34\u0E14\u0E32\u0E25\u0E07\u0E19\u0E32\ + \u0E21\u0E43\u0E19\u0E40\u0E2D\u0E01\u0E2A\u0E32\u0E23\u0E17\u0E35\u0E48\u0E23\ + \u0E30\u0E1A\u0E38\u0E27\u0E48\u0E32\u0E1A\u0E34\u0E14\u0E32\u0E08\u0E30\u0E0A\ + \u0E33\u0E23\u0E30\u0E2B\u0E19\u0E35\u0E49\u0E02\u0E2D\u0E07\u0E25\u0E39\u0E01\ + \u0E0A\u0E32\u0E22\u0E43\u0E19\u0E2D\u0E31\u0E15\u0E23\u0E32 500 \u0E14\u0E2D\ + \u0E25\u0E25\u0E32\u0E23\u0E4C\u0E15\u0E48\u0E2D\u0E40\u0E14\u0E37\u0E2D\u0E19\ + \u0E40\u0E1B\u0E47\u0E19\u0E40\u0E27\u0E25\u0E32 10 \u0E40\u0E14\u0E37\u0E2D\ + \u0E19 \u0E40\u0E08\u0E49\u0E32\u0E2B\u0E19\u0E35\u0E49\u0E44\u0E21\u0E48\u0E21\ + \u0E35\u0E02\u0E49\u0E2D\u0E1C\u0E39\u0E01\u0E21\u0E31\u0E14\u0E40\u0E1B\u0E47\ + \u0E19\u0E25\u0E32\u0E22\u0E25\u0E31\u0E01\u0E29\u0E13\u0E4C\u0E2D\u0E31\u0E01\ + \u0E29\u0E23\u0E2B\u0E23\u0E37\u0E2D\u0E14\u0E49\u0E27\u0E22\u0E1B\u0E32\u0E01\ + \u0E40\u0E1B\u0E25\u0E48\u0E32\u0E17\u0E35\u0E48\u0E08\u0E30\u0E44\u0E21\u0E48\ + \u0E22\u0E2D\u0E21\u0E1F\u0E49\u0E2D\u0E07\u0E25\u0E39\u0E01\u0E0A\u0E32\u0E22\ + \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E17\u0E27\u0E07\u0E2B\u0E19\u0E35\u0E49 5,000\ + \ \u0E14\u0E2D\u0E25\u0E25\u0E32\u0E23\u0E4C \u0E41\u0E25\u0E30\u0E1E\u0E48\u0E2D\ + \u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E23\u0E49\u0E2D\u0E07\u0E02\u0E2D\u0E14\ + \u0E49\u0E27\u0E22\u0E27\u0E32\u0E08\u0E32\u0E2B\u0E23\u0E37\u0E2D\u0E40\u0E1B\ + \u0E47\u0E19\u0E25\u0E32\u0E22\u0E25\u0E31\u0E01\u0E29\u0E13\u0E4C\u0E2D\u0E31\ + \u0E01\u0E29\u0E23\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E1C\ + \u0E48\u0E2D\u0E19\u0E1C\u0E31\u0E19\u0E14\u0E31\u0E07\u0E01\u0E25\u0E48\u0E32\ + \u0E27 \u0E43\u0E19\u0E2D\u0E35\u0E01\u0E2B\u0E49\u0E32\u0E40\u0E14\u0E37\u0E2D\ + \u0E19\u0E15\u0E48\u0E2D\u0E21\u0E32 \u0E1E\u0E48\u0E2D\u0E01\u0E47\u0E08\u0E48\ + \u0E32\u0E22\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E30\u0E40\u0E08\u0E49\u0E32\ + \u0E2B\u0E19\u0E35\u0E49\u0E22\u0E2D\u0E21\u0E23\u0E31\u0E1A\u0E40\u0E07\u0E34\ + \u0E19 500 \u0E14\u0E2D\u0E25\u0E25\u0E32\u0E23\u0E4C\u0E15\u0E48\u0E2D\u0E40\ + \u0E14\u0E37\u0E2D\u0E19\u0E15\u0E32\u0E21\u0E17\u0E35\u0E48\u0E15\u0E01\u0E25\ + \u0E07\u0E01\u0E31\u0E19\u0E44\u0E27\u0E49 \u0E43\u0E19\u0E0A\u0E48\u0E27\u0E07\ + \u0E40\u0E27\u0E25\u0E32\u0E19\u0E31\u0E49\u0E19\u0E40\u0E08\u0E49\u0E32\u0E2B\ + \u0E19\u0E35\u0E49\u0E01\u0E25\u0E31\u0E1A\u0E44\u0E21\u0E48\u0E22\u0E2D\u0E21\ + \u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E04\u0E14\u0E35\u0E43\u0E14\u0E46 \u0E01\ + \u0E31\u0E1A\u0E25\u0E39\u0E01\u0E0A\u0E32\u0E22 \u0E2D\u0E22\u0E48\u0E32\u0E07\ + \u0E44\u0E23\u0E01\u0E47\u0E15\u0E32\u0E21\u0E1A\u0E34\u0E14\u0E32\u0E44\u0E14\ + \u0E49\u0E41\u0E08\u0E49\u0E07\u0E40\u0E08\u0E49\u0E32\u0E2B\u0E19\u0E35\u0E49\ + \u0E27\u0E48\u0E32\u0E08\u0E30\u0E44\u0E21\u0E48\u0E0A\u0E33\u0E23\u0E30\u0E2B\ + \u0E19\u0E35\u0E49\u0E2D\u0E35\u0E01 \u0E02\u0E49\u0E2D\u0E43\u0E14\u0E15\u0E48\ + \u0E2D\u0E44\u0E1B\u0E19\u0E35\u0E49\u0E40\u0E1B\u0E47\u0E19\u0E02\u0E49\u0E2D\ + \u0E42\u0E15\u0E49\u0E41\u0E22\u0E49\u0E07\u0E17\u0E35\u0E48\u0E42\u0E19\u0E49\ + \u0E21\u0E19\u0E49\u0E32\u0E27\u0E43\u0E08\u0E44\u0E14\u0E49\u0E21\u0E32\u0E01\ + \u0E17\u0E35\u0E48\u0E2A\u0E38\u0E14\u0E27\u0E48\u0E32\u0E1A\u0E34\u0E14\u0E32\ + \u0E15\u0E49\u0E2D\u0E07\u0E23\u0E31\u0E1A\u0E1C\u0E34\u0E14\u0E15\u0E48\u0E2D\ + \u0E40\u0E08\u0E49\u0E32\u0E2B\u0E19\u0E35\u0E49\u0E15\u0E32\u0E21\u0E40\u0E07\ + \u0E37\u0E48\u0E2D\u0E19\u0E44\u0E02\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E15\u0E01\ + \u0E25\u0E07\u0E02\u0E2D\u0E07\u0E1E\u0E27\u0E01\u0E40\u0E02\u0E32" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_law +tag: mmlu_th_llama_humanities_tasks +task: mmlu_th_llama_professional_law +task_alias: professional_law diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_professional_medicine.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_professional_medicine.yaml new file mode 100644 index 0000000000000000000000000000000000000000..26326296e356629aa5417f4773fcabe1252d441e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_professional_medicine.yaml @@ -0,0 +1,247 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0E40\u0E25\u0E40\u0E1A\u0E17\u0E32\u0E25\u0E2D\u0E25" + B: "\u0E1B\u0E23\u0E34\u0E21\u0E32\u0E13\u0E42\u0E1E\u0E41\u0E17\u0E2A\u0E40\ + \u0E0B\u0E35\u0E22\u0E21\u0E04\u0E25\u0E2D\u0E44\u0E23\u0E14\u0E4C" + C: "\u0E19\u0E34\u0E40\u0E1F\u0E14\u0E34\u0E1E\u0E35\u0E19" + D: "\u0E1F\u0E35\u0E19\u0E47\u0E2D\u0E01\u0E0B\u0E35\u0E40\u0E1A\u0E19\u0E0B\ + \u0E32\u0E21\u0E35\u0E19" + input_correct_responses: + - D + input_question: "\u0E0A\u0E32\u0E22\u0E2D\u0E32\u0E22\u0E38 42 \u0E1B\u0E35\u0E21\ + \u0E32\u0E17\u0E35\u0E48\u0E2A\u0E33\u0E19\u0E31\u0E01\u0E07\u0E32\u0E19\u0E40\ + \u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E1B\u0E23\u0E30\ + \u0E40\u0E21\u0E34\u0E19\u0E01\u0E48\u0E2D\u0E19\u0E01\u0E32\u0E23\u0E1C\u0E48\ + \u0E32\u0E15\u0E31\u0E14\u0E01\u0E48\u0E2D\u0E19\u0E17\u0E35\u0E48\u0E08\u0E30\ + \u0E40\u0E02\u0E49\u0E32\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E1C\u0E48\u0E32\ + \u0E15\u0E31\u0E14\u0E15\u0E48\u0E2D\u0E21\u0E2B\u0E21\u0E27\u0E01\u0E44\u0E15\ + \u0E20\u0E32\u0E22\u0E43\u0E19 2 \u0E2A\u0E31\u0E1B\u0E14\u0E32\u0E2B\u0E4C\ + \ \u0E2B\u0E19\u0E36\u0E48\u0E07\u0E40\u0E14\u0E37\u0E2D\u0E19\u0E17\u0E35\u0E48\ + \u0E1C\u0E48\u0E32\u0E19\u0E21\u0E32 \u0E40\u0E02\u0E32\u0E44\u0E14\u0E49\u0E23\ + \u0E31\u0E1A\u0E01\u0E32\u0E23\u0E14\u0E39\u0E41\u0E25\u0E43\u0E19\u0E41\u0E1C\ + \u0E19\u0E01\u0E09\u0E38\u0E01\u0E40\u0E09\u0E34\u0E19\u0E40\u0E19\u0E37\u0E48\ + \u0E2D\u0E07\u0E08\u0E32\u0E01\u0E04\u0E27\u0E32\u0E21\u0E40\u0E08\u0E47\u0E1A\ + \u0E1B\u0E27\u0E14\u0E17\u0E35\u0E48\u0E2A\u0E35\u0E02\u0E49\u0E32\u0E07\u0E02\ + \u0E27\u0E32\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E23\u0E16\u0E0A\u0E19\ + \u0E01\u0E31\u0E19 \u0E02\u0E13\u0E30\u0E19\u0E31\u0E49\u0E19\u0E04\u0E27\u0E32\ + \u0E21\u0E14\u0E31\u0E19\u0E42\u0E25\u0E2B\u0E34\u0E15\u0E2D\u0E22\u0E39\u0E48\ + \u0E17\u0E35\u0E48 160/100 \u0E21\u0E21.\u0E1B\u0E23\u0E2D\u0E17 \u0E41\u0E25\ + \u0E30\u0E01\u0E32\u0E23\u0E2A\u0E41\u0E01\u0E19 CT \u0E02\u0E2D\u0E07\u0E0A\ + \u0E48\u0E2D\u0E07\u0E17\u0E49\u0E2D\u0E07\u0E1E\u0E1A\u0E27\u0E48\u0E32\u0E21\ + \u0E35\u0E21\u0E27\u0E25\u0E02\u0E2D\u0E07\u0E15\u0E48\u0E2D\u0E21\u0E2B\u0E21\ + \u0E27\u0E01\u0E44\u0E15\u0E14\u0E49\u0E32\u0E19\u0E0B\u0E49\u0E32\u0E22\u0E1B\ + \u0E23\u0E30\u0E21\u0E32\u0E13 10 \u0E0B\u0E21. \u0E1C\u0E25\u0E01\u0E32\u0E23\ + \u0E28\u0E36\u0E01\u0E29\u0E32\u0E43\u0E19\u0E2B\u0E49\u0E2D\u0E07\u0E1B\u0E0F\ + \u0E34\u0E1A\u0E31\u0E15\u0E34\u0E01\u0E32\u0E23 \u0E44\u0E14\u0E49\u0E41\u0E01\ + \u0E48 \u0E01\u0E32\u0E23\u0E19\u0E31\u0E1A\u0E40\u0E21\u0E47\u0E14\u0E40\u0E25\ + \u0E37\u0E2D\u0E14 \u0E04\u0E27\u0E32\u0E21\u0E40\u0E02\u0E49\u0E21\u0E02\u0E49\ + \u0E19\u0E02\u0E2D\u0E07\u0E2D\u0E34\u0E40\u0E25\u0E47\u0E01\u0E42\u0E17\u0E23\ + \u0E44\u0E25\u0E15\u0E4C\u0E43\u0E19\u0E0B\u0E35\u0E23\u0E31\u0E48\u0E21 \u0E41\ + \u0E25\u0E30\u0E01\u0E32\u0E23\u0E17\u0E14\u0E2A\u0E2D\u0E1A\u0E01\u0E32\u0E23\ + \u0E17\u0E33\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E15\u0E31\u0E1A \u0E2D\u0E22\ + \u0E39\u0E48\u0E43\u0E19\u0E0A\u0E48\u0E27\u0E07\u0E2D\u0E49\u0E32\u0E07\u0E2D\ + \u0E34\u0E07 \u0E1C\u0E39\u0E49\u0E1B\u0E48\u0E27\u0E22\u0E21\u0E35\u0E2A\u0E38\ + \u0E02\u0E20\u0E32\u0E1E\u0E41\u0E02\u0E47\u0E07\u0E41\u0E23\u0E07\u0E41\u0E25\ + \u0E30\u0E44\u0E21\u0E48\u0E40\u0E04\u0E22\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\ + \u0E41\u0E08\u0E49\u0E07\u0E27\u0E48\u0E32\u0E40\u0E02\u0E32\u0E21\u0E35\u0E04\ + \u0E27\u0E32\u0E21\u0E14\u0E31\u0E19\u0E42\u0E25\u0E2B\u0E34\u0E15\u0E2A\u0E39\ + \u0E07 \u0E40\u0E02\u0E32\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E49\u0E22\u0E32 \u0E01\ + \u0E32\u0E23\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E1C\u0E25\u0E43\u0E19\u0E2A\ + \u0E33\u0E19\u0E31\u0E01\u0E07\u0E32\u0E19\u0E40\u0E21\u0E37\u0E48\u0E2D 2 \u0E2A\ + \u0E31\u0E1B\u0E14\u0E32\u0E2B\u0E4C\u0E01\u0E48\u0E2D\u0E19\u0E40\u0E1C\u0E22\ + \u0E43\u0E2B\u0E49\u0E40\u0E2B\u0E47\u0E19\u0E04\u0E27\u0E32\u0E21\u0E40\u0E02\ + \u0E49\u0E21\u0E02\u0E49\u0E19\u0E02\u0E2D\u0E07\u0E19\u0E2D\u0E23\u0E4C\u0E40\ + \u0E21\u0E17\u0E32\u0E40\u0E19\u0E1F\u0E23\u0E34\u0E19\u0E41\u0E25\u0E30\u0E40\ + \u0E21\u0E17\u0E32\u0E40\u0E19\u0E1F\u0E23\u0E34\u0E19\u0E43\u0E19\u0E1B\u0E31\ + \u0E2A\u0E2A\u0E32\u0E27\u0E30\u0E41\u0E25\u0E30\u0E2D\u0E31\u0E25\u0E42\u0E14\ + \u0E2A\u0E40\u0E15\u0E2D\u0E42\u0E23\u0E19\u0E43\u0E19\u0E1E\u0E25\u0E32\u0E2A\ + \u0E21\u0E32\u0E17\u0E35\u0E48\u0E2A\u0E39\u0E07\u0E02\u0E36\u0E49\u0E19 \u0E1C\ + \u0E39\u0E49\u0E1B\u0E48\u0E27\u0E22\u0E16\u0E39\u0E01\u0E2A\u0E48\u0E07\u0E15\ + \u0E48\u0E2D\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E28\u0E31\u0E25\u0E22\u0E41\u0E1E\ + \u0E17\u0E22\u0E4C\u0E0B\u0E36\u0E48\u0E07\u0E41\u0E19\u0E30\u0E19\u0E33\u0E43\ + \u0E2B\u0E49\u0E17\u0E33\u0E01\u0E32\u0E23\u0E1C\u0E48\u0E32\u0E15\u0E31\u0E14\ + \u0E15\u0E48\u0E2D\u0E21\u0E2B\u0E21\u0E27\u0E01\u0E44\u0E15 \u0E27\u0E31\u0E19\ + \u0E19\u0E35\u0E49 \u0E2A\u0E31\u0E0D\u0E0D\u0E32\u0E13\u0E0A\u0E35\u0E1E\u0E04\ + \u0E37\u0E2D \u0E2D\u0E38\u0E13\u0E2B\u0E20\u0E39\u0E21\u0E34 36.6\xB0C (97.9\xB0\ + F) \u0E0A\u0E35\u0E1E\u0E08\u0E23 100/\u0E19\u0E32\u0E17\u0E35 \u0E01\u0E32\u0E23\ + \u0E2B\u0E32\u0E22\u0E43\u0E08 14/\u0E19\u0E32\u0E17\u0E35 \u0E41\u0E25\u0E30\ + \u0E04\u0E27\u0E32\u0E21\u0E14\u0E31\u0E19\u0E42\u0E25\u0E2B\u0E34\u0E15 170/95\ + \ \u0E21\u0E21.\u0E1B\u0E23\u0E2D\u0E17 \u0E01\u0E32\u0E23\u0E15\u0E23\u0E27\ + \u0E08\u0E23\u0E48\u0E32\u0E07\u0E01\u0E32\u0E22\u0E44\u0E21\u0E48\u0E1E\u0E1A\ + \u0E27\u0E48\u0E32\u0E21\u0E35\u0E2A\u0E32\u0E23\u0E30\u0E2A\u0E33\u0E04\u0E31\ + \u0E0D \u0E01\u0E32\u0E23\u0E40\u0E15\u0E23\u0E35\u0E22\u0E21\u0E15\u0E31\u0E27\ + \u0E01\u0E48\u0E2D\u0E19\u0E01\u0E32\u0E23\u0E1C\u0E48\u0E32\u0E15\u0E31\u0E14\ + \u0E40\u0E1A\u0E37\u0E49\u0E2D\u0E07\u0E15\u0E49\u0E19\u0E04\u0E27\u0E23\u0E23\ + \u0E27\u0E21\u0E16\u0E36\u0E07\u0E01\u0E32\u0E23\u0E23\u0E31\u0E01\u0E29\u0E32\ + \u0E14\u0E49\u0E27\u0E22\u0E02\u0E49\u0E2D\u0E43\u0E14\u0E15\u0E48\u0E2D\u0E44\ + \u0E1B\u0E19\u0E35\u0E49?" + - input_choice_list: + A: "\u0E1A\u0E34\u0E14\u0E28\u0E31\u0E01\u0E14\u0E34\u0E4C\u0E2A\u0E34\u0E17\ + \u0E18\u0E34\u0E4C\u0E0B\u0E49\u0E32\u0E22\u0E1A\u0E19\u0E0B\u0E49\u0E32\u0E22" + B: "\u0E1A\u0E34\u0E14\u0E28\u0E31\u0E01\u0E14\u0E34\u0E4C\u0E2A\u0E34\u0E17\ + \u0E18\u0E34\u0E4C\u0E0B\u0E49\u0E32\u0E22\u0E02\u0E27\u0E32" + C: "\u0E01\u0E32\u0E23\u0E07\u0E2D\u0E28\u0E31\u0E01\u0E14\u0E34\u0E4C\u0E2A\ + \u0E34\u0E17\u0E18\u0E34\u0E4C\u0E02\u0E49\u0E32\u0E07\u0E40\u0E14\u0E35\u0E22\ + \u0E27\u0E14\u0E49\u0E32\u0E19\u0E02\u0E27\u0E32" + D: "\u0E1A\u0E34\u0E14\u0E28\u0E31\u0E01\u0E14\u0E34\u0E4C\u0E2A\u0E34\u0E17\ + \u0E18\u0E34\u0E4C\u0E02\u0E27\u0E32\u0E1A\u0E19\u0E02\u0E27\u0E32" + input_correct_responses: + - D + input_question: "\u0E0A\u0E32\u0E22\u0E2D\u0E32\u0E22\u0E38 36 \u0E1B\u0E35\u0E19\ + \u0E33\u0E40\u0E2A\u0E19\u0E2D\u0E17\u0E35\u0E48\u0E2A\u0E33\u0E19\u0E31\u0E01\ + \u0E07\u0E32\u0E19\u0E14\u0E49\u0E27\u0E22\u0E1B\u0E23\u0E30\u0E27\u0E31\u0E15\ + \u0E34\u0E2D\u0E32\u0E01\u0E32\u0E23\u0E1B\u0E27\u0E14\u0E2B\u0E25\u0E31\u0E07\ + \u0E2A\u0E48\u0E27\u0E19\u0E25\u0E48\u0E32\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E40\ + \u0E27\u0E25\u0E32 3 \u0E2A\u0E31\u0E1B\u0E14\u0E32\u0E2B\u0E4C \u0E40\u0E02\ + \u0E32\u0E1B\u0E0F\u0E34\u0E40\u0E2A\u0E18\u0E2D\u0E32\u0E01\u0E32\u0E23\u0E1A\ + \u0E32\u0E14\u0E40\u0E08\u0E47\u0E1A\u0E25\u0E48\u0E32\u0E2A\u0E38\u0E14 \u0E41\ + \u0E15\u0E48\u0E1A\u0E2D\u0E01\u0E27\u0E48\u0E32\u0E40\u0E02\u0E32\u0E1B\u0E35\ + \u0E19\u0E02\u0E36\u0E49\u0E19\u0E41\u0E25\u0E30\u0E25\u0E07\u0E08\u0E32\u0E01\ + \u0E23\u0E16\u0E1A\u0E23\u0E23\u0E17\u0E38\u0E01\u0E27\u0E31\u0E19\u0E25\u0E30\ + \u0E2B\u0E25\u0E32\u0E22\u0E04\u0E23\u0E31\u0E49\u0E07\u0E40\u0E1E\u0E37\u0E48\ + \u0E2D\u0E44\u0E1B\u0E17\u0E33\u0E07\u0E32\u0E19 \u0E01\u0E32\u0E23\u0E15\u0E23\ + \u0E27\u0E08\u0E1C\u0E39\u0E49\u0E1B\u0E48\u0E27\u0E22\u0E43\u0E19\u0E17\u0E48\ + \u0E32\u0E19\u0E2D\u0E19\u0E04\u0E27\u0E48\u0E33\u0E08\u0E30\u0E40\u0E1C\u0E22\ + \u0E43\u0E2B\u0E49\u0E40\u0E2B\u0E47\u0E19\u0E23\u0E48\u0E2D\u0E07\u0E28\u0E31\ + \u0E01\u0E14\u0E34\u0E4C\u0E2A\u0E34\u0E17\u0E18\u0E34\u0E4C\u0E17\u0E35\u0E48\ + \u0E2D\u0E22\u0E39\u0E48\u0E25\u0E36\u0E01\u0E17\u0E32\u0E07\u0E14\u0E49\u0E32\ + \u0E19\u0E0B\u0E49\u0E32\u0E22 \u0E21\u0E38\u0E21\u0E14\u0E49\u0E32\u0E19\u0E02\ + \u0E49\u0E32\u0E07\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07\u0E14\u0E49\ + \u0E32\u0E19\u0E2B\u0E25\u0E31\u0E07\u0E17\u0E32\u0E07\u0E14\u0E49\u0E32\u0E19\ + \u0E02\u0E27\u0E32 \u0E41\u0E25\u0E30\u0E17\u0E32\u0E07\u0E41\u0E22\u0E01\u0E02\ + \u0E2D\u0E07 lumbosacral \u0E17\u0E35\u0E48\u0E2A\u0E1B\u0E23\u0E34\u0E07\u0E15\ + \u0E31\u0E27\u0E44\u0E14\u0E49\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E2D\u0E34\u0E2A\ + \u0E23\u0E30\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E01\u0E14\u0E17\u0E31\u0E1A \u0E01\ + \u0E32\u0E23\u0E27\u0E34\u0E19\u0E34\u0E08\u0E09\u0E31\u0E22\u0E17\u0E35\u0E48\ + \u0E40\u0E1B\u0E47\u0E19\u0E44\u0E1B\u0E44\u0E14\u0E49\u0E21\u0E32\u0E01\u0E17\ + \u0E35\u0E48\u0E2A\u0E38\u0E14\u0E04\u0E37\u0E2D" + - input_choice_list: + A: "\u0E42\u0E14\u0E1B\u0E32\u0E21\u0E35\u0E19" + B: "\u0E01\u0E25\u0E39\u0E15\u0E32\u0E40\u0E21\u0E15" + C: "\u0E19\u0E2D\u0E23\u0E4C\u0E2D\u0E34\u0E1E\u0E34\u0E40\u0E19\u0E1F\u0E23\ + \u0E34\u0E19" + D: "\u0E40\u0E0B\u0E42\u0E23\u0E42\u0E17\u0E19\u0E34\u0E19" + input_correct_responses: + - D + input_question: "\u0E2B\u0E0D\u0E34\u0E07\u0E27\u0E31\u0E22 32 \u0E1B\u0E35\u0E17\ + \u0E35\u0E48\u0E21\u0E35\u0E2A\u0E38\u0E02\u0E20\u0E32\u0E1E\u0E41\u0E02\u0E47\ + \u0E07\u0E41\u0E23\u0E07\u0E21\u0E32\u0E1E\u0E1A\u0E41\u0E1E\u0E17\u0E22\u0E4C\ + \u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E2A\u0E32\u0E21\u0E35\u0E02\u0E2D\ + \u0E07\u0E40\u0E18\u0E2D\u0E40\u0E2A\u0E35\u0E22\u0E0A\u0E35\u0E27\u0E34\u0E15\ + \u0E43\u0E19\u0E2D\u0E38\u0E1A\u0E31\u0E15\u0E34\u0E40\u0E2B\u0E15\u0E38\u0E23\ + \u0E16\u0E0A\u0E19\u0E44\u0E14\u0E49 8 \u0E40\u0E14\u0E37\u0E2D\u0E19 \u0E15\ + \u0E31\u0E49\u0E07\u0E41\u0E15\u0E48\u0E19\u0E31\u0E49\u0E19\u0E40\u0E1B\u0E47\ + \u0E19\u0E15\u0E49\u0E19\u0E21\u0E32 \u0E40\u0E18\u0E2D\u0E21\u0E35\u0E04\u0E27\ + \u0E32\u0E21\u0E2D\u0E22\u0E32\u0E01\u0E2D\u0E32\u0E2B\u0E32\u0E23\u0E25\u0E14\ + \u0E25\u0E07\u0E41\u0E25\u0E30\u0E2B\u0E25\u0E31\u0E1A\u0E22\u0E32\u0E01 \u0E40\ + \u0E18\u0E2D\u0E1A\u0E2D\u0E01\u0E27\u0E48\u0E32\u0E40\u0E18\u0E2D\u0E21\u0E31\ + \u0E01\u0E08\u0E30\u0E40\u0E28\u0E23\u0E49\u0E32\u0E41\u0E25\u0E30\u0E23\u0E49\ + \u0E2D\u0E07\u0E44\u0E2B\u0E49\u0E1A\u0E48\u0E2D\u0E22\u0E46 \u0E40\u0E18\u0E2D\ + \u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E1B\u0E23\ + \u0E30\u0E15\u0E39\u0E0B\u0E49\u0E33\u0E41\u0E25\u0E49\u0E27\u0E0B\u0E49\u0E33\ + \u0E2D\u0E35\u0E01 5 \u0E04\u0E23\u0E31\u0E49\u0E07\u0E01\u0E48\u0E2D\u0E19\u0E2D\ + \u0E2D\u0E01\u0E08\u0E32\u0E01\u0E1A\u0E49\u0E32\u0E19 \u0E41\u0E25\u0E30\u0E15\ + \u0E49\u0E2D\u0E07\u0E19\u0E31\u0E1A\u0E01\u0E23\u0E30\u0E14\u0E32\u0E29\u0E0A\ + \u0E33\u0E23\u0E30\u0E43\u0E2B\u0E49\u0E04\u0E23\u0E1A 5 \u0E41\u0E1C\u0E48\u0E19\ + \u0E01\u0E48\u0E2D\u0E19\u0E43\u0E0A\u0E49 \u0E40\u0E18\u0E2D\u0E1A\u0E2D\u0E01\ + \u0E27\u0E48\u0E32\u0E40\u0E18\u0E2D\u0E40\u0E1B\u0E47\u0E19\u0E1E\u0E27\u0E01\ + \u0E0A\u0E2D\u0E1A\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E21\u0E1A\u0E39\u0E23\u0E13\ + \u0E4C\u0E41\u0E1A\u0E1A\u0E21\u0E32\u0E42\u0E14\u0E22\u0E15\u0E25\u0E2D\u0E14\ + \ \u0E41\u0E15\u0E48\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\ + \u0E23\u0E41\u0E25\u0E30\u0E1E\u0E34\u0E18\u0E35\u0E01\u0E23\u0E23\u0E21\u0E40\ + \u0E2B\u0E25\u0E48\u0E32\u0E19\u0E35\u0E49\u0E22\u0E31\u0E07\u0E43\u0E2B\u0E21\ + \u0E48\u0E2D\u0E22\u0E39\u0E48 \u0E40\u0E20\u0E2A\u0E31\u0E0A\u0E1A\u0E33\u0E1A\ + \u0E31\u0E14\u0E04\u0E27\u0E23\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E1B\u0E49\ + \u0E32\u0E2B\u0E21\u0E32\u0E22\u0E44\u0E1B\u0E17\u0E35\u0E48\u0E2A\u0E32\u0E23\ + \u0E2A\u0E37\u0E48\u0E2D\u0E1B\u0E23\u0E30\u0E2A\u0E32\u0E17\u0E43\u0E14\u0E15\ + \u0E48\u0E2D\u0E44\u0E1B\u0E19\u0E35\u0E49" + - input_choice_list: + A: "\u0E42\u0E23\u0E04\u0E08\u0E21\u0E39\u0E01\u0E2D\u0E31\u0E01\u0E40\u0E2A\ + \u0E1A\u0E08\u0E32\u0E01\u0E20\u0E39\u0E21\u0E34\u0E41\u0E1E\u0E49" + B: "\u0E44\u0E27\u0E23\u0E31\u0E2A Epstein-Barr" + C: "\u0E21\u0E31\u0E22\u0E42\u0E04\u0E1E\u0E25\u0E32\u0E2A\u0E21\u0E32\u0E1B\ + \u0E2D\u0E14\u0E1A\u0E27\u0E21" + D: "\u0E44\u0E23\u0E42\u0E19\u0E44\u0E27\u0E23\u0E31\u0E2A" + input_correct_responses: + - D + input_question: "\u0E0A\u0E32\u0E22\u0E2D\u0E32\u0E22\u0E38 44 \u0E1B\u0E35\u0E21\ + \u0E32\u0E17\u0E35\u0E48\u0E2A\u0E33\u0E19\u0E31\u0E01\u0E07\u0E32\u0E19\u0E40\ + \u0E19\u0E37\u0E48\u0E2D\u0E07\u0E08\u0E32\u0E01\u0E21\u0E35\u0E2D\u0E32\u0E01\ + \u0E32\u0E23\u0E40\u0E08\u0E47\u0E1A\u0E04\u0E2D \u0E44\u0E2D\u0E44\u0E21\u0E48\ + \u0E21\u0E35\u0E19\u0E49\u0E33\u0E21\u0E39\u0E01\u0E44\u0E2B\u0E25 \u0E41\u0E25\ + \u0E30\u0E1B\u0E27\u0E14\u0E28\u0E35\u0E23\u0E29\u0E30\u0E2A\u0E48\u0E27\u0E19\ + \u0E2B\u0E19\u0E49\u0E32\u0E21\u0E32 3 \u0E27\u0E31\u0E19 \u0E40\u0E02\u0E32\ + \u0E1A\u0E2D\u0E01\u0E27\u0E48\u0E32\u0E2D\u0E32\u0E01\u0E32\u0E23\u0E1B\u0E27\ + \u0E14\u0E2B\u0E31\u0E27\u0E08\u0E30\u0E41\u0E22\u0E48\u0E25\u0E07\u0E43\u0E19\ + \u0E15\u0E2D\u0E19\u0E40\u0E0A\u0E49\u0E32\u0E41\u0E25\u0E30\u0E44\u0E2D\u0E1A\ + \u0E39\u0E42\u0E1E\u0E23\u0E40\u0E1F\u0E19\u0E0A\u0E48\u0E27\u0E22\u0E1A\u0E23\ + \u0E23\u0E40\u0E17\u0E32\u0E44\u0E14\u0E49\u0E1A\u0E49\u0E32\u0E07 \u0E40\u0E02\ + \u0E32\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E2B\u0E32\u0E22\u0E43\u0E08\u0E16\ + \u0E35\u0E48 \u0E1B\u0E23\u0E30\u0E27\u0E31\u0E15\u0E34\u0E17\u0E32\u0E07\u0E01\ + \u0E32\u0E23\u0E41\u0E1E\u0E17\u0E22\u0E4C\u0E19\u0E31\u0E49\u0E19\u0E44\u0E21\ + \u0E48\u0E18\u0E23\u0E23\u0E21\u0E14\u0E32 \u0E40\u0E02\u0E32\u0E44\u0E21\u0E48\ + \u0E43\u0E0A\u0E49\u0E22\u0E32\u0E2D\u0E37\u0E48\u0E19\u0E19\u0E2D\u0E01\u0E08\ + \u0E32\u0E01\u0E44\u0E2D\u0E1A\u0E39\u0E42\u0E1E\u0E23\u0E40\u0E1F\u0E19\u0E2A\ + \u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E04\u0E27\u0E32\u0E21\u0E40\u0E08\u0E47\u0E1A\ + \u0E1B\u0E27\u0E14 \u0E2A\u0E31\u0E0D\u0E0D\u0E32\u0E13\u0E0A\u0E35\u0E1E\u0E04\ + \u0E37\u0E2D \u0E2D\u0E38\u0E13\u0E2B\u0E20\u0E39\u0E21\u0E34 37.4\xB0C (99.4\xB0\ + F) \u0E0A\u0E35\u0E1E\u0E08\u0E23 88 \u0E04\u0E23\u0E31\u0E49\u0E07/\u0E19\u0E32\ + \u0E17\u0E35 \u0E01\u0E32\u0E23\u0E2B\u0E32\u0E22\u0E43\u0E08 18 \u0E04\u0E23\ + \u0E31\u0E49\u0E07/\u0E19\u0E32\u0E17\u0E35 \u0E41\u0E25\u0E30\u0E04\u0E27\u0E32\ + \u0E21\u0E14\u0E31\u0E19\u0E42\u0E25\u0E2B\u0E34\u0E15 120/84 \u0E21\u0E21.\u0E1B\ + \u0E23\u0E2D\u0E17 \u0E01\u0E32\u0E23\u0E15\u0E23\u0E27\u0E08\u0E1E\u0E23\u0E30\ + \u0E19\u0E40\u0E23\u0E28\u0E1E\u0E1A\u0E40\u0E22\u0E37\u0E48\u0E2D\u0E40\u0E21\ + \u0E37\u0E2D\u0E01\u0E17\u0E35\u0E48\u0E40\u0E1B\u0E47\u0E19\u0E40\u0E21\u0E47\ + \u0E14\u0E40\u0E25\u0E37\u0E2D\u0E14\u0E41\u0E14\u0E07 \u0E01\u0E32\u0E23\u0E15\ + \u0E23\u0E27\u0E08\u0E04\u0E2D\u0E08\u0E30\u0E41\u0E2A\u0E14\u0E07\u0E2D\u0E32\ + \u0E01\u0E32\u0E23\u0E41\u0E14\u0E07\u0E41\u0E25\u0E30\u0E15\u0E48\u0E2D\u0E21\ + \u0E19\u0E49\u0E33\u0E40\u0E2B\u0E25\u0E37\u0E2D\u0E07\u0E17\u0E35\u0E48\u0E15\ + \u0E48\u0E2D\u0E21\u0E19\u0E49\u0E33\u0E40\u0E2B\u0E25\u0E37\u0E2D\u0E07\u0E17\ + \u0E35\u0E48\u0E15\u0E48\u0E2D\u0E21\u0E19\u0E49\u0E33\u0E40\u0E2B\u0E25\u0E37\ + \u0E2D\u0E07\u0E1A\u0E23\u0E34\u0E40\u0E27\u0E13\u0E2B\u0E25\u0E31\u0E07\u0E04\ + \u0E2D\u0E2B\u0E2D\u0E22 \u0E44\u0E21\u0E48\u0E21\u0E35 adenopathy \u0E1B\u0E32\ + \u0E01\u0E21\u0E14\u0E25\u0E39\u0E01\u0E17\u0E35\u0E48\u0E40\u0E2B\u0E47\u0E19\ + \u0E44\u0E14\u0E49\u0E0A\u0E31\u0E14 \u0E1B\u0E2D\u0E14\u0E1B\u0E25\u0E2D\u0E14\ + \u0E42\u0E1B\u0E23\u0E48\u0E07\u0E15\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E44\u0E14\ + \u0E49\u0E22\u0E34\u0E19 \u0E02\u0E49\u0E2D\u0E43\u0E14\u0E15\u0E48\u0E2D\u0E44\ + \u0E1B\u0E19\u0E35\u0E49\u0E40\u0E1B\u0E47\u0E19\u0E2A\u0E32\u0E40\u0E2B\u0E15\ + \u0E38\u0E02\u0E2D\u0E07\u0E2D\u0E32\u0E01\u0E32\u0E23\u0E02\u0E2D\u0E07\u0E1C\ + \u0E39\u0E49\u0E1B\u0E48\u0E27\u0E22\u0E23\u0E32\u0E22\u0E19\u0E35\u0E49\u0E21\ + \u0E32\u0E01\u0E17\u0E35\u0E48\u0E2A\u0E38\u0E14?" + - input_choice_list: + A: "\u0E2B\u0E19\u0E49\u0E32\u0E14\u0E49\u0E32\u0E19" + B: "\u0E25\u0E32\u0E17\u0E34\u0E2A\u0E0B\u0E34\u0E21\u0E38\u0E2A \u0E14\u0E2D\ + \u0E23\u0E4C\u0E0B\u0E35" + C: "\u0E2B\u0E19\u0E49\u0E32\u0E2D\u0E01\u0E40\u0E25\u0E47\u0E01\u0E19\u0E49\ + \u0E2D\u0E22" + D: "\u0E04\u0E27\u0E2D\u0E14\u0E23\u0E32\u0E15\u0E31\u0E2A lumborum" + input_correct_responses: + - C + input_question: "\u0E19\u0E31\u0E01\u0E27\u0E34\u0E48\u0E07\u0E21\u0E32\u0E23\u0E32\ + \u0E18\u0E2D\u0E19\u0E0A\u0E32\u0E22\u0E27\u0E31\u0E22 22 \u0E1B\u0E35 \u0E21\ + \u0E32\u0E17\u0E35\u0E48\u0E2D\u0E2D\u0E1F\u0E1F\u0E34\u0E28\u0E1E\u0E23\u0E49\ + \u0E2D\u0E21\u0E01\u0E31\u0E1A\u0E1A\u0E48\u0E19\u0E27\u0E48\u0E32\u0E1B\u0E27\ + \u0E14\u0E0B\u0E35\u0E48\u0E42\u0E04\u0E23\u0E07\u0E14\u0E49\u0E32\u0E19\u0E02\ + \u0E27\u0E32\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E27\u0E34\u0E48\u0E07\u0E23\u0E30\ + \u0E22\u0E30\u0E44\u0E01\u0E25 \u0E01\u0E32\u0E23\u0E15\u0E23\u0E27\u0E08\u0E23\ + \u0E48\u0E32\u0E07\u0E01\u0E32\u0E22\u0E1E\u0E1A\u0E27\u0E48\u0E32\u0E2B\u0E31\ + \u0E27\u0E43\u0E08\u0E41\u0E25\u0E30\u0E1B\u0E2D\u0E14\u0E1B\u0E01\u0E15\u0E34\ + \ \u0E41\u0E25\u0E30\u0E21\u0E35\u0E01\u0E32\u0E23\u0E2B\u0E32\u0E22\u0E43\u0E08\ + \u0E2D\u0E2D\u0E01\u0E1C\u0E34\u0E14\u0E1B\u0E01\u0E15\u0E34\u0E17\u0E35\u0E48\ + \u0E0B\u0E35\u0E48\u0E42\u0E04\u0E23\u0E07\u0E0B\u0E35\u0E48\u0E17\u0E35\u0E48\ + \ 4-5 \u0E17\u0E32\u0E07\u0E14\u0E49\u0E32\u0E19\u0E02\u0E27\u0E32 \u0E01\u0E25\ + \u0E49\u0E32\u0E21\u0E40\u0E19\u0E37\u0E49\u0E2D\u0E2B\u0E23\u0E37\u0E2D\u0E01\ + \u0E25\u0E38\u0E48\u0E21\u0E01\u0E25\u0E49\u0E32\u0E21\u0E40\u0E19\u0E37\u0E49\ + \u0E2D\u0E43\u0E14\u0E15\u0E48\u0E2D\u0E44\u0E1B\u0E19\u0E35\u0E49\u0E21\u0E35\ + \u0E1B\u0E23\u0E30\u0E42\u0E22\u0E0A\u0E19\u0E4C\u0E21\u0E32\u0E01\u0E17\u0E35\ + \u0E48\u0E2A\u0E38\u0E14\u0E43\u0E19\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\ + \u0E02\u0E04\u0E27\u0E32\u0E21\u0E1C\u0E34\u0E14\u0E1B\u0E01\u0E15\u0E34\u0E19\ + \u0E35\u0E49\u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E27\u0E34\u0E18\u0E35\u0E42\ + \u0E14\u0E22\u0E15\u0E23\u0E07" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_medicine +tag: mmlu_th_llama_other_tasks +task: mmlu_th_llama_professional_medicine +task_alias: professional_medicine diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_professional_psychology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_professional_psychology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6ce4691145ccf858a897676c3b727c9fe80ac919 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_professional_psychology.yaml @@ -0,0 +1,162 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0E1A\u0E2D\u0E01\u0E25\u0E39\u0E01\u0E04\u0E49\u0E32\u0E02\u0E2D\u0E07\ + \u0E04\u0E38\u0E13\u0E16\u0E36\u0E07\u0E02\u0E49\u0E2D\u0E14\u0E35\u0E41\u0E25\ + \u0E30\u0E02\u0E49\u0E2D\u0E40\u0E2A\u0E35\u0E22\u0E02\u0E2D\u0E07\u0E41\u0E15\ + \u0E48\u0E25\u0E30\u0E42\u0E1B\u0E23\u0E41\u0E01\u0E23\u0E21\u0E17\u0E35\u0E48\ + \u0E04\u0E38\u0E13\u0E17\u0E23\u0E32\u0E1A \u0E22\u0E01\u0E40\u0E27\u0E49\u0E19\ + \u0E42\u0E1B\u0E23\u0E41\u0E01\u0E23\u0E21\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\ + \u0E25\u0E07\u0E17\u0E30\u0E40\u0E1A\u0E35\u0E22\u0E19" + B: "\u0E41\u0E19\u0E30\u0E19\u0E33\u0E42\u0E1B\u0E23\u0E41\u0E01\u0E23\u0E21\ + \u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E25\u0E07\u0E17\u0E30\u0E40\u0E1A\u0E35\ + \u0E22\u0E19\u0E43\u0E2B\u0E49\u0E01\u0E31\u0E1A\u0E25\u0E39\u0E01\u0E04\u0E49\ + \u0E32\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13 \u0E41\u0E25\u0E30\u0E2D\u0E18\u0E34\ + \u0E1A\u0E32\u0E22\u0E42\u0E1A\u0E19\u0E31\u0E2A $50 \u0E17\u0E35\u0E48\u0E04\ + \u0E38\u0E13\u0E08\u0E30\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A" + C: "\u0E41\u0E19\u0E30\u0E19\u0E33\u0E42\u0E1B\u0E23\u0E41\u0E01\u0E23\u0E21\ + \u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E25\u0E07\u0E17\u0E30\u0E40\u0E1A\u0E35\ + \u0E22\u0E19\u0E43\u0E2B\u0E49\u0E01\u0E31\u0E1A\u0E25\u0E39\u0E01\u0E04\u0E49\ + \u0E32\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13 \u0E41\u0E25\u0E30\u0E40\u0E2A\u0E19\ + \u0E2D\u0E43\u0E2B\u0E49\u0E21\u0E35\u0E42\u0E1A\u0E19\u0E31\u0E2A $50 \u0E40\ + \u0E02\u0E49\u0E32\u0E1A\u0E31\u0E0D\u0E0A\u0E35\u0E25\u0E39\u0E01\u0E04\u0E49\ + \u0E32\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E43\u0E19\u0E42\u0E1B\u0E23\u0E41\ + \u0E01\u0E23\u0E21" + D: "\u0E1A\u0E2D\u0E01\u0E25\u0E39\u0E01\u0E04\u0E49\u0E32\u0E02\u0E2D\u0E07\ + \u0E04\u0E38\u0E13\u0E16\u0E36\u0E07\u0E02\u0E49\u0E2D\u0E14\u0E35\u0E02\u0E49\ + \u0E2D\u0E40\u0E2A\u0E35\u0E22\u0E02\u0E2D\u0E07\u0E41\u0E15\u0E48\u0E25\u0E30\ + \u0E42\u0E1B\u0E23\u0E41\u0E01\u0E23\u0E21\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\ + \u0E17\u0E23\u0E32\u0E1A \u0E41\u0E15\u0E48\u0E2D\u0E22\u0E48\u0E32\u0E2D\u0E49\ + \u0E32\u0E07\u0E2A\u0E34\u0E17\u0E18\u0E34\u0E4C\u0E42\u0E1A\u0E19\u0E31\u0E2A\ + \ $50 \u0E2B\u0E32\u0E01\u0E25\u0E39\u0E01\u0E04\u0E49\u0E32\u0E02\u0E2D\u0E07\ + \u0E04\u0E38\u0E13\u0E25\u0E07\u0E17\u0E30\u0E40\u0E1A\u0E35\u0E22\u0E19\u0E43\ + \u0E19\u0E42\u0E1B\u0E23\u0E41\u0E01\u0E23\u0E21\u0E02\u0E2D\u0E07\u0E04\u0E38\ + \u0E13" + input_correct_responses: + - D + input_question: "\u0E25\u0E39\u0E01\u0E04\u0E49\u0E32\u0E1A\u0E33\u0E1A\u0E31\u0E14\ + \u0E04\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\ + \u0E02\u0E2D\u0E04\u0E33\u0E41\u0E19\u0E30\u0E19\u0E33\u0E40\u0E01\u0E35\u0E48\ + \u0E22\u0E27\u0E01\u0E31\u0E1A\u0E42\u0E1B\u0E23\u0E41\u0E01\u0E23\u0E21\u0E25\ + \u0E14\u0E19\u0E49\u0E33\u0E2B\u0E19\u0E31\u0E01\u0E17\u0E35\u0E48\u0E14\u0E35\ + \ \u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\ + \u0E42\u0E1B\u0E23\u0E41\u0E01\u0E23\u0E21\u0E43\u0E19\u0E0A\u0E38\u0E21\u0E0A\ + \u0E19\u0E41\u0E25\u0E30\u0E25\u0E07\u0E17\u0E30\u0E40\u0E1A\u0E35\u0E22\u0E19\ + \u0E43\u0E19\u0E42\u0E1B\u0E23\u0E41\u0E01\u0E23\u0E21\u0E17\u0E35\u0E48\u0E04\ + \u0E38\u0E13\u0E1E\u0E34\u0E08\u0E32\u0E23\u0E13\u0E32\u0E27\u0E48\u0E32\u0E14\ + \u0E35\u0E17\u0E35\u0E48\u0E2A\u0E38\u0E14 \u0E42\u0E1B\u0E23\u0E41\u0E01\u0E23\ + \u0E21\u0E19\u0E35\u0E49\u0E43\u0E2B\u0E49\u0E42\u0E1A\u0E19\u0E31\u0E2A $50\ + \ \u0E41\u0E01\u0E48\u0E1C\u0E39\u0E49\u0E2D\u0E38\u0E1B\u0E16\u0E31\u0E21\u0E20\ + \u0E4C\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E41\u0E15\u0E48\u0E25\u0E30\u0E1A\ + \u0E38\u0E04\u0E04\u0E25\u0E43\u0E2B\u0E21\u0E48\u0E17\u0E35\u0E48\u0E1E\u0E27\ + \u0E01\u0E40\u0E02\u0E32\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E21\u0E32\u0E43\ + \u0E19\u0E42\u0E1B\u0E23\u0E41\u0E01\u0E23\u0E21 \u0E20\u0E32\u0E22\u0E43\u0E15\ + \u0E49\u0E2A\u0E16\u0E32\u0E19\u0E01\u0E32\u0E23\u0E13\u0E4C\u0E40\u0E2B\u0E25\ + \u0E48\u0E32\u0E19\u0E35\u0E49 \u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E17\u0E35\u0E48\ + \u0E40\u0E2B\u0E21\u0E32\u0E30\u0E2A\u0E21\u0E17\u0E35\u0E48\u0E2A\u0E38\u0E14\ + \u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E04\u0E37\u0E2D" + - input_choice_list: + A: "\u0E44\u0E27\u0E15\u0E48\u0E2D\u0E04\u0E30\u0E41\u0E19\u0E19\u0E21\u0E32\ + \u0E01\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E04\u0E48\u0E32\u0E40\ + \u0E09\u0E25\u0E35\u0E48\u0E22" + B: "\u0E21\u0E35\u0E1B\u0E23\u0E30\u0E42\u0E22\u0E0A\u0E19\u0E4C\u0E21\u0E32\ + \u0E01\u0E01\u0E27\u0E48\u0E32\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E01\u0E32\ + \u0E23\u0E41\u0E08\u0E01\u0E41\u0E08\u0E07\u0E41\u0E1A\u0E1A\u0E40\u0E1A\u0E49" + C: "\u0E44\u0E27\u0E15\u0E48\u0E2D\u0E04\u0E48\u0E32\u0E21\u0E32\u0E01\u0E41\ + \u0E25\u0E30\u0E01\u0E32\u0E23\u0E41\u0E08\u0E01\u0E41\u0E08\u0E07\u0E17\u0E35\ + \u0E48\u0E40\u0E1A\u0E49\u0E21\u0E32\u0E01" + D: "\u0E2B\u0E21\u0E32\u0E22\u0E40\u0E25\u0E02\u0E17\u0E35\u0E48\u0E40\u0E01\ + \u0E34\u0E14\u0E02\u0E36\u0E49\u0E19\u0E1A\u0E48\u0E2D\u0E22\u0E17\u0E35\u0E48\ + \u0E2A\u0E38\u0E14" + input_correct_responses: + - D + input_question: "\u0E21\u0E35\u0E2A\u0E32\u0E21\u0E27\u0E34\u0E18\u0E35\u0E43\u0E19\ + \u0E01\u0E32\u0E23\u0E27\u0E31\u0E14\u0E41\u0E19\u0E27\u0E42\u0E19\u0E49\u0E21\ + \u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E2A\u0E48\u0E27\u0E19\u0E01\u0E25\ + \u0E32\u0E07: \u0E04\u0E48\u0E32\u0E40\u0E09\u0E25\u0E35\u0E48\u0E22 \u0E04\u0E48\ + \u0E32\u0E21\u0E31\u0E18\u0E22\u0E10\u0E32\u0E19 \u0E41\u0E25\u0E30\u0E42\u0E2B\ + \u0E21\u0E14 \u0E08\u0E32\u0E01\u0E04\u0E27\u0E32\u0E21\u0E23\u0E39\u0E49\u0E02\ + \u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\ + \u0E1A\u0E1E\u0E27\u0E01\u0E40\u0E02\u0E32 \u0E42\u0E2B\u0E21\u0E14\u0E04\u0E37\ + \u0E2D\u0E2D\u0E30\u0E44\u0E23?" + - input_choice_list: + A: "\u0E04\u0E27\u0E32\u0E21\u0E40\u0E1B\u0E47\u0E19\u0E1B\u0E31\u0E08\u0E40\ + \u0E08\u0E01" + B: "\u0E1B\u0E31\u0E08\u0E40\u0E08\u0E01\u0E19\u0E34\u0E22\u0E21\u0E41\u0E25\ + \u0E30\u0E23\u0E30\u0E22\u0E30\u0E2B\u0E48\u0E32\u0E07\u0E02\u0E2D\u0E07\u0E2D\ + \u0E33\u0E19\u0E32\u0E08" + C: "\u0E23\u0E30\u0E22\u0E30\u0E2D\u0E33\u0E19\u0E32\u0E08\u0E41\u0E25\u0E30\ + \u0E04\u0E27\u0E32\u0E21\u0E40\u0E1B\u0E47\u0E19\u0E0A\u0E32\u0E22" + D: "\u0E01\u0E32\u0E23\u0E2B\u0E25\u0E35\u0E01\u0E40\u0E25\u0E35\u0E48\u0E22\ + \u0E07\u0E04\u0E27\u0E32\u0E21\u0E44\u0E21\u0E48\u0E41\u0E19\u0E48\u0E19\u0E2D\ + \u0E19." + input_correct_responses: + - A + input_question: "\u0E43\u0E19\u0E41\u0E07\u0E48\u0E02\u0E2D\u0E07\u0E21\u0E34\u0E15\ + \u0E34\u0E17\u0E32\u0E07\u0E27\u0E31\u0E12\u0E19\u0E18\u0E23\u0E23\u0E21 5 \u0E1B\ + \u0E23\u0E30\u0E01\u0E32\u0E23\u0E02\u0E2D\u0E07 Hofstede (1980) \u0E2A\u0E2B\ + \u0E23\u0E31\u0E10\u0E2D\u0E40\u0E21\u0E23\u0E34\u0E01\u0E32\u0E44\u0E14\u0E49\ + \u0E04\u0E30\u0E41\u0E19\u0E19\u0E2A\u0E39\u0E07\u0E2A\u0E38\u0E14\u0E43\u0E19\ + \u0E14\u0E49\u0E32\u0E19:" + - input_choice_list: + A: "\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E34\u0E19\u0E15\u0E19\u0E32\u0E01\u0E32\ + \u0E23\u0E17\u0E35\u0E48\u0E40\u0E1A\u0E35\u0E48\u0E22\u0E07\u0E40\u0E1A\u0E19\ + \u0E04\u0E27\u0E32\u0E21\u0E2A\u0E19\u0E43\u0E08\u0E02\u0E2D\u0E07\u0E25\u0E39\ + \u0E01\u0E04\u0E49\u0E32\u0E08\u0E32\u0E01\u0E04\u0E27\u0E32\u0E21\u0E40\u0E1B\ + \u0E47\u0E19\u0E08\u0E23\u0E34\u0E07" + B: "\u0E41\u0E2A\u0E14\u0E07\u0E16\u0E36\u0E07 \u201C\u0E04\u0E27\u0E32\u0E21\ + \u0E23\u0E39\u0E49\u0E2A\u0E36\u0E01\u0E17\u0E35\u0E48\u0E2B\u0E25\u0E32\u0E01\ + \u0E2B\u0E25\u0E32\u0E22\u201D \u0E15\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E23\u0E31\ + \u0E1A\u0E01\u0E32\u0E23\u0E1A\u0E33\u0E1A\u0E31\u0E14" + C: ""\u0E40\u0E1B\u0E47\u0E19\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E2B\ + \u0E19\u0E36\u0E48\u0E07\u0E02\u0E2D\u0E07""\u0E01\u0E32\u0E23\u0E41\ + \u0E2A\u0E14\u0E07\u0E2D\u0E2D\u0E01\u0E21\u0E32"""" + D: "\u0E2A\u0E30\u0E17\u0E49\u0E2D\u0E19\u0E43\u0E2B\u0E49\u0E40\u0E2B\u0E47\ + \u0E19\u0E16\u0E36\u0E07\u0E08\u0E34\u0E15\u0E44\u0E23\u0E49\u0E2A\u0E33\u0E19\ + \u0E36\u0E01\u0E2A\u0E48\u0E27\u0E19\u0E1A\u0E38\u0E04\u0E04\u0E25\u0E41\u0E25\ + \u0E30\u0E2A\u0E48\u0E27\u0E19\u0E23\u0E27\u0E21\u0E02\u0E2D\u0E07\u0E25\u0E39\ + \u0E01\u0E04\u0E49\u0E32" + input_correct_responses: + - D + input_question: "Carl Jung \u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E27\u0E48\u0E32\u0E01\ + \u0E32\u0E23\u0E16\u0E48\u0E32\u0E22\u0E42\u0E2D\u0E19\u0E02\u0E2D\u0E07\u0E25\ + \u0E39\u0E01\u0E04\u0E49\u0E32:" + - input_choice_list: + A: "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E31\u0E21\ + \u0E1E\u0E31\u0E19\u0E18\u0E4C\u0E01\u0E31\u0E19\u0E41\u0E15\u0E48\u0E21\u0E35\ + \u0E04\u0E27\u0E32\u0E21\u0E2A\u0E31\u0E21\u0E1E\u0E31\u0E19\u0E18\u0E4C\u0E43\ + \u0E19\u0E23\u0E30\u0E14\u0E31\u0E1A\u0E1B\u0E32\u0E19\u0E01\u0E25\u0E32\u0E07\ + \u0E01\u0E31\u0E1A\u0E40\u0E01\u0E13\u0E11\u0E4C" + B: "\u0E21\u0E35\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E31\u0E21\u0E1E\u0E31\u0E19\ + \u0E18\u0E4C\u0E0B\u0E36\u0E48\u0E07\u0E01\u0E31\u0E19\u0E41\u0E25\u0E30\u0E01\ + \u0E31\u0E19\u0E15\u0E48\u0E33\u0E41\u0E25\u0E30\u0E21\u0E35\u0E04\u0E27\u0E32\ + \u0E21\u0E2A\u0E31\u0E21\u0E1E\u0E31\u0E19\u0E18\u0E4C\u0E15\u0E48\u0E33\u0E01\ + \u0E31\u0E1A\u0E40\u0E01\u0E13\u0E11\u0E4C" + C: "\u0E21\u0E35\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E31\u0E21\u0E1E\u0E31\u0E19\ + \u0E18\u0E4C\u0E0B\u0E36\u0E48\u0E07\u0E01\u0E31\u0E19\u0E41\u0E25\u0E30\u0E01\ + \u0E31\u0E19\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E21\u0E32\u0E01\u0E41\u0E25\u0E30\ + \u0E21\u0E35\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E31\u0E21\u0E1E\u0E31\u0E19\u0E18\ + \u0E4C\u0E43\u0E19\u0E23\u0E30\u0E14\u0E31\u0E1A\u0E1B\u0E32\u0E19\u0E01\u0E25\ + \u0E32\u0E07\u0E01\u0E31\u0E1A\u0E40\u0E01\u0E13\u0E11\u0E4C" + D: "\u0E21\u0E35\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E31\u0E21\u0E1E\u0E31\u0E19\ + \u0E18\u0E4C\u0E15\u0E48\u0E33\u0E01\u0E31\u0E1A\u0E40\u0E01\u0E13\u0E11\u0E4C\ + \ bur \u0E21\u0E35\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E31\u0E21\u0E1E\u0E31\u0E19\ + \u0E18\u0E4C\u0E0B\u0E36\u0E48\u0E07\u0E01\u0E31\u0E19\u0E41\u0E25\u0E30\u0E01\ + \u0E31\u0E19\u0E43\u0E19\u0E23\u0E30\u0E14\u0E31\u0E1A\u0E1B\u0E32\u0E19\u0E01\ + \u0E25\u0E32\u0E07" + input_correct_responses: + - A + input_question: "\u0E43\u0E19\u0E01\u0E32\u0E23\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2A\ + \u0E21\u0E01\u0E32\u0E23\u0E01\u0E32\u0E23\u0E16\u0E14\u0E16\u0E2D\u0E22\u0E1E\ + \u0E2B\u0E38\u0E04\u0E39\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E08\u0E38\u0E14\ + \u0E1B\u0E23\u0E30\u0E2A\u0E07\u0E04\u0E4C\u0E43\u0E19\u0E01\u0E32\u0E23\u0E17\ + \u0E33\u0E19\u0E32\u0E22 \u0E0A\u0E38\u0E14\u0E04\u0E48\u0E32\u0E1C\u0E2A\u0E21\ + \u0E17\u0E35\u0E48\u0E40\u0E2B\u0E21\u0E32\u0E30\u0E2A\u0E21\u0E17\u0E35\u0E48\ + \u0E2A\u0E38\u0E14\u0E04\u0E37\u0E2D\u0E04\u0E48\u0E32\u0E2B\u0E19\u0E36\u0E48\ + \u0E07\u0E0B\u0E36\u0E48\u0E07\u0E15\u0E31\u0E27\u0E17\u0E33\u0E19\u0E32\u0E22" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_professional_psychology +tag: mmlu_th_llama_social_sciences_tasks +task: mmlu_th_llama_professional_psychology +task_alias: professional_psychology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_public_relations.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_public_relations.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a57ccbe9079d930d0a2fc93bd12dda67a683e5f8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_public_relations.yaml @@ -0,0 +1,121 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0E43\u0E2B\u0E49\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2D\u0E37\u0E48\ + \u0E19 \u0E46 \u0E41\u0E01\u0E48\u0E19\u0E31\u0E01\u0E02\u0E48\u0E32\u0E27\ + \u0E17\u0E35\u0E48\u0E40\u0E18\u0E2D\u0E41\u0E19\u0E48\u0E43\u0E08\u0E27\u0E48\ + \u0E32\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07" + B: "\u0E1A\u0E2D\u0E01\u0E27\u0E48\u0E32\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\ + \u0E19\u0E31\u0E49\u0E19 '\u0E1B\u0E34\u0E14\u0E01\u0E32\u0E23\u0E1A\u0E31\ + \u0E19\u0E17\u0E36\u0E01' \u0E41\u0E25\u0E30\u0E08\u0E30\u0E40\u0E1C\u0E22\ + \u0E41\u0E1E\u0E23\u0E48\u0E43\u0E19\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07" + C: "\u0E1E\u0E39\u0E14\u0E27\u0E48\u0E32 '\u0E09\u0E31\u0E19\u0E44\u0E21\ + \u0E48\u0E23\u0E39\u0E49' \u0E41\u0E25\u0E30\u0E2A\u0E31\u0E0D\u0E0D\u0E32\ + \u0E27\u0E48\u0E32\u0E08\u0E30\u0E43\u0E2B\u0E49\u0E02\u0E49\u0E2D\u0E21\u0E39\ + \u0E25\u0E43\u0E19\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07" + D: "\u0E1E\u0E39\u0E14\u0E27\u0E48\u0E32 '\u0E44\u0E21\u0E48\u0E21\u0E35\ + \u0E04\u0E27\u0E32\u0E21\u0E04\u0E34\u0E14\u0E40\u0E2B\u0E47\u0E19' \u0E41\ + \u0E17\u0E19\u0E17\u0E35\u0E48\u0E08\u0E30\u0E14\u0E39\u0E40\u0E2B\u0E21\u0E37\ + \u0E2D\u0E19\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49" + input_correct_responses: + - C + input_question: "\u0E1C\u0E39\u0E49\u0E1B\u0E0F\u0E34\u0E1A\u0E31\u0E15\u0E34\u0E07\ + \u0E32\u0E19\u0E2A\u0E37\u0E48\u0E2D\u0E1B\u0E23\u0E30\u0E0A\u0E32\u0E2A\u0E31\ + \u0E21\u0E1E\u0E31\u0E19\u0E18\u0E4C\u0E04\u0E27\u0E23\u0E17\u0E33\u0E2D\u0E22\ + \u0E48\u0E32\u0E07\u0E44\u0E23\u0E2B\u0E32\u0E01\u0E44\u0E21\u0E48\u0E17\u0E23\ + \u0E32\u0E1A\u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\ + \u0E04\u0E33\u0E16\u0E32\u0E21\u0E02\u0E2D\u0E07\u0E19\u0E31\u0E01\u0E02\u0E48\ + \u0E32\u0E27" + - input_choice_list: + A: "\u0E0B\u0E37\u0E49\u0E2D\u0E0A\u0E37\u0E48\u0E2D\u0E42\u0E14\u0E40\u0E21\ + \u0E19\u0E17\u0E35\u0E48\u0E01\u0E25\u0E38\u0E48\u0E21\u0E15\u0E48\u0E2D\u0E15\ + \u0E49\u0E32\u0E19\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E43\u0E0A\u0E49\u0E44\ + \u0E14\u0E49" + B: "\u0E42\u0E1E\u0E2A\u0E15\u0E4C\u0E04\u0E27\u0E32\u0E21\u0E04\u0E34\u0E14\ + \u0E40\u0E2B\u0E47\u0E19\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E30\u0E1A\ + \u0E38\u0E0A\u0E37\u0E48\u0E2D\u0E43\u0E19\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E40\ + \u0E1E\u0E37\u0E48\u0E2D\u0E15\u0E48\u0E2D\u0E2A\u0E39\u0E49\u0E01\u0E31\u0E1A\ + \u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E19\u0E35\u0E49" + C: "\u0E40\u0E15\u0E23\u0E35\u0E22\u0E21\u0E02\u0E48\u0E32\u0E27\u0E17\u0E35\ + \u0E48\u0E1A\u0E34\u0E14\u0E40\u0E1A\u0E37\u0E2D\u0E19\u0E02\u0E49\u0E2D\u0E21\ + \u0E39\u0E25\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\ + \u0E2D\u0E07" + D: "\u0E17\u0E33\u0E01\u0E32\u0E23\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\ + \u0E41\u0E1B\u0E25\u0E07\u0E19\u0E42\u0E22\u0E1A\u0E32\u0E22\u0E40\u0E1E\u0E37\ + \u0E48\u0E2D\u0E08\u0E31\u0E14\u0E01\u0E32\u0E23\u0E01\u0E31\u0E1A\u0E02\u0E49\ + \u0E2D\u0E23\u0E49\u0E2D\u0E07\u0E40\u0E23\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\ + \u0E40\u0E19\u0E49\u0E19\u0E43\u0E19\u0E40\u0E27\u0E47\u0E1A\u0E44\u0E0B\u0E15\ + \u0E4C\u0E40\u0E2B\u0E25\u0E48\u0E32\u0E19\u0E35\u0E49" + input_correct_responses: + - D + input_question: "\u0E43\u0E19\u0E01\u0E32\u0E23\u0E08\u0E31\u0E14\u0E01\u0E32\u0E23\ + \u0E1B\u0E31\u0E0D\u0E2B\u0E32 \u0E41\u0E19\u0E27\u0E17\u0E32\u0E07\u0E40\u0E0A\ + \u0E34\u0E07\u0E23\u0E38\u0E01\u0E21\u0E32\u0E01\u0E17\u0E35\u0E48\u0E2A\u0E38\ + \u0E14\u0E43\u0E19\u0E01\u0E32\u0E23\u0E08\u0E31\u0E14\u0E01\u0E32\u0E23\u0E02\ + \u0E49\u0E2D\u0E21\u0E39\u0E25\u0E40\u0E0A\u0E34\u0E07\u0E25\u0E1A\u0E2B\u0E23\ + \u0E37\u0E2D\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E17\u0E33\ + \u0E43\u0E2B\u0E49\u0E40\u0E02\u0E49\u0E32\u0E43\u0E08\u0E1C\u0E34\u0E14\u0E17\ + \u0E35\u0E48\u0E42\u0E1E\u0E2A\u0E15\u0E4C\u0E17\u0E32\u0E07\u0E2D\u0E2D\u0E19\ + \u0E44\u0E25\u0E19\u0E4C\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\ + \u0E2D\u0E07\u0E04\u0E4C\u0E01\u0E23\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E04\ + \u0E37\u0E2D\u0E2D\u0E30\u0E44\u0E23" + - input_choice_list: + A: "\u0E21\u0E35\u0E01\u0E32\u0E23\u0E1B\u0E23\u0E30\u0E2A\u0E32\u0E19\u0E2A\ + \u0E37\u0E48\u0E2D\u0E15\u0E2D\u0E1A\u0E23\u0E31\u0E1A" + B: "\u0E21\u0E35\u0E01\u0E32\u0E23\u0E2A\u0E37\u0E48\u0E2D\u0E2A\u0E32\u0E23\ + \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E17\u0E35\u0E48\u0E2A\u0E2D\u0E14\ + \u0E04\u0E25\u0E49\u0E2D\u0E07\u0E01\u0E31\u0E19" + C: "\u0E27\u0E34\u0E1E\u0E32\u0E01\u0E29\u0E4C\u0E27\u0E34\u0E08\u0E32\u0E23\ + \u0E13\u0E4C\u0E27\u0E48\u0E32\u0E40\u0E1B\u0E47\u0E19\u0E01\u0E32\u0E23\u0E42\ + \u0E08\u0E21\u0E15\u0E35\u0E04\u0E23\u0E34\u0E2A\u0E15\u0E08\u0E31\u0E01\u0E23\ + \u0E04\u0E32\u0E17\u0E2D\u0E25\u0E34\u0E01" + D: "\u0E04\u0E27\u0E32\u0E21\u0E19\u0E48\u0E32\u0E40\u0E0A\u0E37\u0E48\u0E2D\ + \u0E16\u0E37\u0E2D\u0E02\u0E2D\u0E07\u0E27\u0E32\u0E15\u0E34\u0E01\u0E31\u0E19\ + \u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E22\u0E36\u0E14\u0E16\ + \u0E37\u0E2D" + input_correct_responses: + - C + input_question: "\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E43\u0E14\u0E15\u0E48\ + \u0E2D\u0E44\u0E1B\u0E19\u0E35\u0E49\u0E40\u0E1B\u0E47\u0E19\u0E04\u0E27\u0E32\ + \u0E21\u0E08\u0E23\u0E34\u0E07\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\ + \u0E1A\u0E2A\u0E33\u0E19\u0E31\u0E01\u0E27\u0E32\u0E15\u0E34\u0E01\u0E31\u0E19\ + \u0E43\u0E19\u0E1B\u0E35 2010 \u0E43\u0E19\u0E02\u0E13\u0E30\u0E17\u0E35\u0E48\ + \u0E21\u0E35\u0E01\u0E32\u0E23\u0E01\u0E25\u0E48\u0E32\u0E27\u0E2B\u0E32\u0E40\ + \u0E23\u0E37\u0E48\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E01\u0E1B\u0E34\u0E14\ + \u0E01\u0E32\u0E23\u0E25\u0E48\u0E27\u0E07\u0E25\u0E30\u0E40\u0E21\u0E34\u0E14\ + \u0E40\u0E14\u0E47\u0E01" + - input_choice_list: + A: "\u0E01\u0E32\u0E23\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E42\u0E1B\u0E23\u0E41\ + \u0E01\u0E23\u0E21" + B: "\u0E01\u0E32\u0E23\u0E27\u0E32\u0E07\u0E41\u0E1C\u0E19\u0E42\u0E1B\u0E23\ + \u0E41\u0E01\u0E23\u0E21" + C: "\u0E01\u0E32\u0E23\u0E25\u0E07\u0E21\u0E37\u0E2D\u0E17\u0E33\u0E41\u0E25\ + \u0E30\u0E19\u0E33\u0E04\u0E27\u0E32\u0E21\u0E04\u0E34\u0E14\u0E44\u0E1B\u0E1B\ + \u0E0F\u0E34\u0E1A\u0E31\u0E15\u0E34" + D: "\u0E01\u0E32\u0E23\u0E1B\u0E23\u0E30\u0E40\u0E21\u0E34\u0E19\u0E1C\u0E25\ + \u0E02\u0E2D\u0E07\u0E42\u0E1B\u0E23\u0E41\u0E01\u0E23\u0E21" + input_correct_responses: + - A + input_question: "\u0E02\u0E31\u0E49\u0E19\u0E15\u0E2D\u0E19\u0E43\u0E14\u0E43\u0E19\ + \u0E01\u0E23\u0E30\u0E1A\u0E27\u0E19\u0E01\u0E32\u0E23\u0E27\u0E32\u0E07\u0E41\ + \u0E1C\u0E19\u0E17\u0E35\u0E48\u0E01\u0E32\u0E23\u0E27\u0E34\u0E40\u0E04\u0E23\ + \u0E32\u0E30\u0E2B\u0E4C\u0E2A\u0E16\u0E32\u0E19\u0E01\u0E32\u0E23\u0E13\u0E4C\ + \u0E08\u0E30\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23?" + - input_choice_list: + A: "\u0E01\u0E23\u0E35\u0E19\u0E1E\u0E35\u0E0B" + B: "\u0E2D\u0E07\u0E04\u0E4C\u0E01\u0E32\u0E23\u0E2A\u0E2B\u0E1B\u0E23\u0E30\ + \u0E0A\u0E32\u0E0A\u0E32\u0E15\u0E34" + C: "\u0E2D\u0E47\u0E2D\u0E01\u0E0B\u0E4C\u0E41\u0E1F\u0E21" + D: "\u0E01\u0E2D\u0E07\u0E17\u0E38\u0E19\u0E2A\u0E31\u0E15\u0E27\u0E4C\u0E1B\ + \u0E48\u0E32\u0E42\u0E25\u0E01" + input_correct_responses: + - D + input_question: "Earth Hour \u0E40\u0E1B\u0E47\u0E19\u0E41\u0E04\u0E21\u0E40\u0E1B\ + \u0E0D\u0E17\u0E35\u0E48\u0E40\u0E1B\u0E34\u0E14\u0E15\u0E31\u0E27\u0E42\u0E14\ + \u0E22\u0E2D\u0E07\u0E04\u0E4C\u0E01\u0E23\u0E43\u0E14" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_public_relations +tag: mmlu_th_llama_social_sciences_tasks +task: mmlu_th_llama_public_relations +task_alias: public_relations diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_security_studies.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_security_studies.yaml new file mode 100644 index 0000000000000000000000000000000000000000..028d8a56e72d7680abcacfc175ab89516eb5c260 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_security_studies.yaml @@ -0,0 +1,376 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E1B\ + \u0E47\u0E19\u0E2D\u0E35\u0E01\u0E04\u0E33\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E2A\ + \u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E17\u0E39\u0E15\u0E41\u0E1A\ + \u0E1A\u0E1A\u0E35\u0E1A\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A \u0E41\u0E15\u0E48\ + \u0E04\u0E23\u0E2D\u0E1A\u0E04\u0E25\u0E38\u0E21\u0E40\u0E01\u0E13\u0E11\u0E4C\ + \u0E17\u0E35\u0E48\u0E41\u0E04\u0E1A\u0E01\u0E27\u0E48\u0E32 \u0E04\u0E27\u0E32\ + \u0E21\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E04\u0E23\u0E2D\u0E1A\u0E04\u0E25\ + \u0E38\u0E21\u0E20\u0E31\u0E22\u0E04\u0E38\u0E01\u0E04\u0E32\u0E21\u0E40\u0E2B\ + \u0E25\u0E48\u0E32\u0E19\u0E31\u0E49\u0E19\u0E17\u0E35\u0E48\u0E21\u0E38\u0E48\ + \u0E07\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19\u0E01\u0E32\u0E23\u0E01\ + \u0E23\u0E30\u0E17\u0E33\u0E02\u0E2D\u0E07\u0E1D\u0E48\u0E32\u0E22\u0E15\u0E23\ + \u0E07\u0E02\u0E49\u0E32\u0E21 \u0E20\u0E31\u0E22\u0E04\u0E38\u0E01\u0E04\u0E32\ + \u0E21\u0E17\u0E35\u0E48\u0E08\u0E30\u0E1A\u0E35\u0E1A\u0E1A\u0E31\u0E07\u0E04\ + \u0E31\u0E1A\u0E23\u0E31\u0E10\u0E43\u0E2B\u0E49\u0E22\u0E2D\u0E21\u0E2A\u0E25\ + \u0E30\u0E2A\u0E48\u0E27\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E02\u0E2D\u0E07\ + \u0E14\u0E34\u0E19\u0E41\u0E14\u0E19\u0E02\u0E2D\u0E07\u0E15\u0E19\u0E08\u0E30\ + \u0E19\u0E31\u0E1A\u0E40\u0E1B\u0E47\u0E19\u0E01\u0E32\u0E23\u0E17\u0E39\u0E15\ + \u0E41\u0E1A\u0E1A\u0E1A\u0E35\u0E1A\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A \u0E15\ + \u0E23\u0E32\u0E1A\u0E43\u0E14\u0E17\u0E35\u0E48\u0E01\u0E32\u0E23\u0E04\u0E38\ + \u0E01\u0E04\u0E32\u0E21\u0E19\u0E31\u0E49\u0E19\u0E40\u0E23\u0E34\u0E48\u0E21\ + \u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E34\u0E07\ + \u0E23\u0E38\u0E01\u0E01\u0E48\u0E2D\u0E19\u0E17\u0E35\u0E48\u0E08\u0E30\u0E21\ + \u0E35\u0E01\u0E32\u0E23\u0E15\u0E2D\u0E1A\u0E42\u0E15\u0E49\u0E17\u0E32\u0E07\ + \u0E01\u0E32\u0E23\u0E11\u0E39\u0E15" + B: "\u0E01\u0E32\u0E23\u0E17\u0E39\u0E15\u0E41\u0E1A\u0E1A\u0E1A\u0E35\u0E1A\ + \u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A\u0E16\u0E37\u0E2D\u0E40\u0E1B\u0E47\u0E19\ + \u0E01\u0E32\u0E23\u0E04\u0E38\u0E01\u0E04\u0E32\u0E21\u0E42\u0E14\u0E22\u0E43\ + \u0E0A\u0E49\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E08\ + \u0E33\u0E01\u0E31\u0E14\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E01\u0E23\u0E30\u0E15\ + \u0E38\u0E49\u0E19\u0E41\u0E23\u0E07\u0E08\u0E39\u0E07\u0E43\u0E08\u0E02\u0E2D\ + \u0E07\u0E1D\u0E48\u0E32\u0E22\u0E15\u0E23\u0E07\u0E02\u0E49\u0E32\u0E21\u0E43\ + \u0E2B\u0E49\u0E22\u0E2D\u0E21\u0E17\u0E33\u0E15\u0E32\u0E21\u0E02\u0E49\u0E2D\ + \u0E40\u0E23\u0E35\u0E22\u0E01\u0E23\u0E49\u0E2D\u0E07\u0E02\u0E2D\u0E07\u0E1C\ + \u0E39\u0E49\u0E1A\u0E35\u0E1A\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A \u0E40\u0E1B\ + \u0E47\u0E19\u0E01\u0E25\u0E22\u0E38\u0E17\u0E18\u0E4C\u0E17\u0E35\u0E48\u0E21\ + \u0E35\u0E2D\u0E34\u0E17\u0E18\u0E34\u0E1E\u0E25\u0E0B\u0E36\u0E48\u0E07\u0E21\ + \u0E35\u0E27\u0E31\u0E15\u0E16\u0E38\u0E1B\u0E23\u0E30\u0E2A\u0E07\u0E04\u0E4C\ + \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E44\u0E14\u0E49\u0E23\u0E31\ + \u0E1A\u0E01\u0E32\u0E23\u0E1B\u0E0F\u0E34\u0E1A\u0E31\u0E15\u0E34\u0E15\u0E32\ + \u0E21: \u0E44\u0E21\u0E48\u0E19\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E43\u0E0A\ + \u0E49\u0E01\u0E33\u0E25\u0E31\u0E07\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E2D\ + \u0E32\u0E0A\u0E19\u0E30\u0E04\u0E39\u0E48\u0E15\u0E48\u0E2D\u0E2A\u0E39\u0E49\ + \u0E01\u0E48\u0E2D\u0E19 \u0E21\u0E31\u0E19\u0E1B\u0E25\u0E48\u0E2D\u0E22\u0E43\ + \u0E2B\u0E49\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E17\ + \u0E32\u0E07\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E01\u0E31\u0E1A\u0E40\u0E1B\u0E49\ + \u0E32\u0E2B\u0E21\u0E32\u0E22\u0E17\u0E35\u0E48\u0E08\u0E30\u0E1B\u0E0F\u0E34\ + \u0E1A\u0E31\u0E15\u0E34\u0E15\u0E32\u0E21\u0E2B\u0E23\u0E37\u0E2D\u0E14\u0E33\ + \u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E15\u0E48\u0E2D" + C: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E17\u0E2B\u0E32\u0E23\u0E2B\u0E23\u0E37\ + \u0E2D\u0E01\u0E32\u0E23\u0E04\u0E38\u0E01\u0E04\u0E32\u0E21\u0E02\u0E2D\u0E07\ + \u0E01\u0E33\u0E25\u0E31\u0E07\u0E17\u0E2B\u0E32\u0E23\u0E43\u0E0A\u0E49\u0E04\ + \u0E27\u0E32\u0E21\u0E01\u0E25\u0E31\u0E27\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\ + \u0E2B\u0E49\u0E1A\u0E23\u0E23\u0E25\u0E38\u0E27\u0E31\u0E15\u0E16\u0E38\u0E1B\ + \u0E23\u0E30\u0E2A\u0E07\u0E04\u0E4C\u0E40\u0E0A\u0E34\u0E07\u0E01\u0E25\u0E22\ + \u0E38\u0E17\u0E18\u0E4C \u0E01\u0E32\u0E23\u0E17\u0E39\u0E15\u0E41\u0E1A\u0E1A\ + \u0E1A\u0E35\u0E1A\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A\u0E41\u0E15\u0E01\u0E15\ + \u0E48\u0E32\u0E07\u0E08\u0E32\u0E01\u0E41\u0E19\u0E27\u0E17\u0E32\u0E07\u0E19\ + \u0E35\u0E49 \u0E40\u0E19\u0E37\u0E48\u0E2D\u0E07\u0E08\u0E32\u0E01\u0E44\u0E21\ + \u0E48\u0E44\u0E14\u0E49\u0E43\u0E0A\u0E49\u0E04\u0E27\u0E32\u0E21\u0E01\u0E25\ + \u0E31\u0E27\u0E40\u0E1B\u0E47\u0E19\u0E40\u0E04\u0E23\u0E37\u0E48\u0E2D\u0E07\ + \u0E21\u0E37\u0E2D\u0E43\u0E19\u0E01\u0E32\u0E23\u0E1A\u0E35\u0E1A\u0E1A\u0E31\ + \u0E07\u0E04\u0E31\u0E1A\u0E28\u0E31\u0E15\u0E23\u0E39" + D: "\u0E01\u0E32\u0E23\u0E17\u0E39\u0E15\u0E41\u0E1A\u0E1A\u0E1A\u0E35\u0E1A\ + \u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A\u0E16\u0E39\u0E01\u0E19\u0E33\u0E21\u0E32\ + \u0E43\u0E0A\u0E49\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E0A\u0E49\u0E01\u0E33\ + \u0E25\u0E31\u0E07 \u0E41\u0E15\u0E48\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E08\u0E33\ + \u0E01\u0E31\u0E14\u0E1C\u0E25\u0E01\u0E23\u0E30\u0E17\u0E1A\u0E15\u0E48\u0E2D\ + \u0E1B\u0E23\u0E30\u0E0A\u0E32\u0E04\u0E21\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\ + \u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 \u0E01\u0E32\u0E23\u0E17\u0E39\u0E15\ + \u0E40\u0E0A\u0E34\u0E07\u0E1A\u0E35\u0E1A\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A\ + \u0E40\u0E1B\u0E47\u0E19\u0E01\u0E25\u0E22\u0E38\u0E17\u0E18\u0E4C\u0E40\u0E0A\ + \u0E34\u0E07\u0E23\u0E38\u0E01\u0E17\u0E35\u0E48\u0E21\u0E35\u0E08\u0E38\u0E14\ + \u0E21\u0E38\u0E48\u0E07\u0E2B\u0E21\u0E32\u0E22\u0E40\u0E1E\u0E37\u0E48\u0E2D\ + \u0E43\u0E2B\u0E49\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E04\u0E27\u0E32\u0E21\ + \u0E22\u0E34\u0E19\u0E22\u0E2D\u0E21\u0E1C\u0E48\u0E32\u0E19\u0E04\u0E27\u0E32\ + \u0E21\u0E1E\u0E48\u0E32\u0E22\u0E41\u0E1E\u0E49 \u0E44\u0E21\u0E48\u0E17\u0E34\ + \u0E49\u0E07\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E17\ + \u0E32\u0E07\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E27\u0E49\u0E01\u0E31\u0E1A\ + \u0E40\u0E1B\u0E49\u0E32\u0E2B\u0E21\u0E32\u0E22 \u0E40\u0E1B\u0E49\u0E32\u0E2B\ + \u0E21\u0E32\u0E22\u0E2D\u0E32\u0E08\u0E16\u0E39\u0E01\u0E1A\u0E31\u0E07\u0E04\ + \u0E31\u0E1A\u0E43\u0E2B\u0E49\u0E1B\u0E0F\u0E34\u0E1A\u0E31\u0E15\u0E34\u0E15\ + \u0E32\u0E21\u0E2B\u0E23\u0E37\u0E2D\u0E21\u0E35\u0E2A\u0E48\u0E27\u0E19\u0E23\ + \u0E48\u0E27\u0E21\u0E43\u0E19\u0E04\u0E27\u0E32\u0E21\u0E02\u0E31\u0E14\u0E41\ + \u0E22\u0E49\u0E07 \u0E21\u0E31\u0E19\u0E1E\u0E22\u0E32\u0E22\u0E32\u0E21\u0E04\ + \u0E27\u0E1A\u0E04\u0E38\u0E21\u0E42\u0E14\u0E22\u0E1A\u0E31\u0E07\u0E04\u0E31\ + \u0E1A\u0E43\u0E2B\u0E49\u0E1B\u0E0F\u0E34\u0E1A\u0E31\u0E15\u0E34\u0E15\u0E32\ + \u0E21\u0E42\u0E14\u0E22\u0E15\u0E31\u0E14\u0E42\u0E2D\u0E01\u0E32\u0E2A\u0E43\ + \u0E19\u0E01\u0E32\u0E23\u0E40\u0E08\u0E23\u0E08\u0E32\u0E2B\u0E23\u0E37\u0E2D\ + \u0E22\u0E2D\u0E21\u0E08\u0E33\u0E19\u0E19" + input_correct_responses: + - B + input_question: "\u0E2D\u0E30\u0E44\u0E23\u0E04\u0E37\u0E2D\u0E04\u0E27\u0E32\u0E21\ + \u0E41\u0E15\u0E01\u0E15\u0E48\u0E32\u0E07\u0E02\u0E2D\u0E07\u0E01\u0E32\u0E23\ + \u0E17\u0E39\u0E15\u0E41\u0E1A\u0E1A\u0E1A\u0E35\u0E1A\u0E1A\u0E31\u0E07\u0E04\ + \u0E31\u0E1A\u0E08\u0E32\u0E01\u0E01\u0E32\u0E23\u0E1A\u0E31\u0E07\u0E04\u0E31\ + \u0E1A\u0E17\u0E32\u0E07\u0E17\u0E2B\u0E32\u0E23?" + - input_choice_list: + A: "\u0E17\u0E2B\u0E32\u0E23\u0E40\u0E14\u0E47\u0E01\u0E15\u0E01\u0E40\u0E1B\ + \u0E47\u0E19\u0E40\u0E2B\u0E22\u0E37\u0E48\u0E2D\u0E02\u0E2D\u0E07\u0E01\u0E32\ + \u0E23\u0E15\u0E48\u0E2D\u0E2A\u0E39\u0E49\u0E17\u0E35\u0E48\u0E15\u0E49\u0E2D\ + \u0E07\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E28\u0E36\u0E01\ + \u0E29\u0E32\u0E43\u0E2B\u0E21\u0E48\u0E41\u0E25\u0E30\u0E01\u0E32\u0E23\u0E1F\ + \u0E37\u0E49\u0E19\u0E1F\u0E39" + B: "\u0E40\u0E14\u0E47\u0E01\u0E41\u0E25\u0E30\u0E41\u0E21\u0E48\u0E02\u0E2D\ + \u0E07\u0E1E\u0E27\u0E01\u0E40\u0E02\u0E32\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\ + \u0E2D\u0E32\u0E2A\u0E32\u0E2A\u0E21\u0E31\u0E04\u0E23\u0E43\u0E19\u0E2A\u0E07\ + \u0E04\u0E23\u0E32\u0E21\u0E41\u0E25\u0E30\u0E16\u0E37\u0E2D\u0E27\u0E48\u0E32\ + \u0E14\u0E35\u0E17\u0E35\u0E48\u0E2A\u0E38\u0E14\u0E43\u0E19\u0E10\u0E32\u0E19\ + \u0E30\u0E2D\u0E32\u0E2A\u0E32\u0E2A\u0E21\u0E31\u0E04\u0E23\u0E43\u0E19\u0E1E\ + \u0E37\u0E49\u0E19\u0E17\u0E35\u0E48\u0E2A\u0E48\u0E27\u0E19\u0E15\u0E31\u0E27" + C: "\u0E40\u0E14\u0E47\u0E01\u0E46 \u0E21\u0E31\u0E01\u0E40\u0E1B\u0E47\u0E19\ + \u0E1C\u0E39\u0E49\u0E1A\u0E23\u0E34\u0E2A\u0E38\u0E17\u0E18\u0E34\u0E4C\u0E17\ + \u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E2D\u0E34\u0E42\u0E2B\u0E19\ + \u0E48\u0E2D\u0E34\u0E40\u0E2B\u0E19\u0E48\u0E43\u0E19\u0E2A\u0E07\u0E04\u0E23\ + \u0E32\u0E21\u0E41\u0E25\u0E30\u0E16\u0E39\u0E01\u0E43\u0E0A\u0E49\u0E40\u0E1B\ + \u0E47\u0E19\u0E2A\u0E31\u0E0D\u0E25\u0E31\u0E01\u0E29\u0E13\u0E4C\u0E41\u0E2B\ + \u0E48\u0E07\u0E2A\u0E31\u0E19\u0E15\u0E34\u0E20\u0E32\u0E1E\u0E44\u0E14\u0E49\ + \u0E14\u0E35\u0E17\u0E35\u0E48\u0E2A\u0E38\u0E14" + D: "\u0E40\u0E14\u0E47\u0E01 \u0E46 \u0E21\u0E35\u0E2B\u0E31\u0E27\u0E40\u0E23\ + \u0E37\u0E48\u0E2D\u0E07\u0E17\u0E32\u0E07\u0E01\u0E32\u0E23\u0E40\u0E21\u0E37\ + \u0E2D\u0E07\u0E17\u0E35\u0E48\u0E1E\u0E25\u0E32\u0E14\u0E44\u0E1B\u0E40\u0E21\ + \u0E37\u0E48\u0E2D\u0E1E\u0E27\u0E01\u0E40\u0E02\u0E32\u0E16\u0E39\u0E01\u0E21\ + \u0E2D\u0E07\u0E27\u0E48\u0E32\u0E40\u0E1B\u0E47\u0E19\u0E40\u0E2B\u0E22\u0E37\ + \u0E48\u0E2D\u0E02\u0E2D\u0E07\u0E2A\u0E07\u0E04\u0E23\u0E32\u0E21" + input_correct_responses: + - D + input_question: "\u0E02\u0E49\u0E2D\u0E43\u0E14\u0E15\u0E48\u0E2D\u0E44\u0E1B\u0E19\ + \u0E35\u0E49\u0E40\u0E1B\u0E47\u0E19\u0E40\u0E25\u0E19\u0E2A\u0E4C\u0E17\u0E35\ + \u0E48\u0E14\u0E35\u0E17\u0E35\u0E48\u0E2A\u0E38\u0E14\u0E43\u0E19\u0E01\u0E32\ + \u0E23\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E1A\u0E17\u0E1A\u0E32\u0E17\ + \u0E02\u0E2D\u0E07\u0E17\u0E2B\u0E32\u0E23\u0E40\u0E14\u0E47\u0E01" + - input_choice_list: + A: "\u0E43\u0E19\u0E10\u0E32\u0E19\u0E30\u0E17\u0E35\u0E48\u0E40\u0E1B\u0E47\ + \u0E19\u0E20\u0E31\u0E22\u0E04\u0E38\u0E01\u0E04\u0E32\u0E21\u0E17\u0E35\u0E48\ + \u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48\u0E0B\u0E36\u0E48\u0E07\u0E08\u0E33\u0E40\ + \u0E1B\u0E47\u0E19\u0E15\u0E49\u0E2D\u0E07\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\ + \u0E01\u0E32\u0E23\u0E17\u0E31\u0E19\u0E17\u0E35\u0E41\u0E25\u0E30\u0E44\u0E21\ + \u0E48\u0E18\u0E23\u0E23\u0E21\u0E14\u0E32 \u0E40\u0E1B\u0E47\u0E19\u0E20\u0E31\ + \u0E22\u0E04\u0E38\u0E01\u0E04\u0E32\u0E21\u0E15\u0E48\u0E2D\u0E04\u0E27\u0E32\ + \u0E21\u0E2D\u0E22\u0E39\u0E48\u0E23\u0E2D\u0E14\u0E02\u0E2D\u0E07\u0E23\u0E31\ + \u0E10\u0E2B\u0E23\u0E37\u0E2D\u0E15\u0E48\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E21\ + \u0E31\u0E48\u0E19\u0E04\u0E07\u0E17\u0E32\u0E07\u0E2A\u0E31\u0E07\u0E04\u0E21" + B: "\u0E40\u0E19\u0E37\u0E48\u0E2D\u0E07\u0E08\u0E32\u0E01\u0E15\u0E49\u0E2D\ + \u0E07\u0E01\u0E32\u0E23\u0E43\u0E2B\u0E49\u0E23\u0E31\u0E10\u0E14\u0E33\u0E40\ + \u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E42\u0E14\u0E22\u0E14\u0E48\u0E27\u0E19\ + \u0E41\u0E25\u0E30\u0E1E\u0E34\u0E40\u0E28\u0E29 \u0E40\u0E1B\u0E47\u0E19\u0E01\ + \u0E32\u0E23\u0E04\u0E38\u0E01\u0E04\u0E32\u0E21\u0E01\u0E32\u0E23\u0E2D\u0E22\ + \u0E39\u0E48\u0E23\u0E2D\u0E14\u0E02\u0E2D\u0E07\u0E27\u0E31\u0E15\u0E16\u0E38\ + \u0E2D\u0E49\u0E32\u0E07\u0E2D\u0E34\u0E07 \u0E14\u0E31\u0E07\u0E19\u0E31\u0E49\ + \u0E19\u0E08\u0E36\u0E07\u0E23\u0E31\u0E1A\u0E1B\u0E23\u0E30\u0E01\u0E31\u0E19\ + \u0E27\u0E48\u0E32\u0E08\u0E30\u0E43\u0E0A\u0E49\u0E21\u0E32\u0E15\u0E23\u0E01\ + \u0E32\u0E23\u0E17\u0E35\u0E48\u0E1B\u0E01\u0E15\u0E34\u0E44\u0E21\u0E48\u0E44\ + \u0E14\u0E49\u0E43\u0E0A\u0E49\u0E43\u0E19\u0E41\u0E27\u0E14\u0E27\u0E07\u0E01\ + \u0E32\u0E23\u0E40\u0E21\u0E37\u0E2D\u0E07" + C: "\u0E43\u0E19\u0E10\u0E32\u0E19\u0E30\u0E17\u0E35\u0E48\u0E40\u0E1B\u0E47\ + \u0E19\u0E20\u0E31\u0E22\u0E04\u0E38\u0E01\u0E04\u0E32\u0E21\u0E2D\u0E22\u0E48\ + \u0E32\u0E07\u0E40\u0E23\u0E48\u0E07\u0E14\u0E48\u0E27\u0E19\u0E15\u0E48\u0E2D\ + \u0E01\u0E32\u0E23\u0E2D\u0E22\u0E39\u0E48\u0E23\u0E2D\u0E14\u0E02\u0E2D\u0E07\ + \u0E27\u0E31\u0E15\u0E16\u0E38\u0E2D\u0E49\u0E32\u0E07\u0E2D\u0E34\u0E07 \u0E23\ + \u0E49\u0E32\u0E22\u0E41\u0E23\u0E07\u0E08\u0E19\u0E17\u0E33\u0E43\u0E2B\u0E49\ + \u0E01\u0E32\u0E23\u0E08\u0E49\u0E32\u0E07\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\ + \u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E1E\ + \u0E34\u0E40\u0E28\u0E29\u0E43\u0E19\u0E01\u0E32\u0E23\u0E15\u0E2D\u0E1A\u0E2A\ + \u0E19\u0E2D\u0E07\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E15\u0E32\u0E21\ + \u0E01\u0E0E\u0E2B\u0E21\u0E32\u0E22" + D: "\u0E40\u0E1B\u0E47\u0E19\u0E20\u0E31\u0E22\u0E04\u0E38\u0E01\u0E04\u0E32\ + \u0E21\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E40\u0E23\u0E48\u0E07\u0E14\u0E48\u0E27\ + \u0E19\u0E15\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E2D\u0E22\u0E39\u0E48\u0E23\u0E2D\ + \u0E14\u0E02\u0E2D\u0E07\u0E1C\u0E39\u0E49\u0E0A\u0E21\u0E17\u0E35\u0E48\u0E15\ + \u0E49\u0E2D\u0E07\u0E43\u0E0A\u0E49\u0E21\u0E32\u0E15\u0E23\u0E01\u0E32\u0E23\ + \u0E1E\u0E34\u0E40\u0E28\u0E29\u0E2B\u0E23\u0E37\u0E2D\u0E40\u0E2B\u0E15\u0E38\ + \u0E09\u0E38\u0E01\u0E40\u0E09\u0E34\u0E19" + input_correct_responses: + - C + input_question: "\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E17\u0E35\u0E48\u0E08\u0E30\u0E01\ + \u0E25\u0E32\u0E22\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E25\u0E31\u0E01\u0E17\u0E23\ + \u0E31\u0E1E\u0E22\u0E4C \u0E20\u0E31\u0E22\u0E04\u0E38\u0E01\u0E04\u0E32\u0E21\ + \u0E08\u0E30\u0E15\u0E49\u0E2D\u0E07\u0E41\u0E2A\u0E14\u0E07\u0E14\u0E49\u0E27\ + \u0E22\u0E27\u0E34\u0E18\u0E35\u0E43\u0E14\u0E15\u0E48\u0E2D\u0E44\u0E1B\u0E19\ + \u0E35\u0E49" + - input_choice_list: + A: "\u0E21\u0E35\u0E01\u0E32\u0E23\u0E41\u0E1A\u0E48\u0E07\u0E41\u0E22\u0E01\ + \u0E21\u0E32\u0E01\u0E21\u0E32\u0E22\u0E20\u0E32\u0E22\u0E43\u0E19\u0E01\u0E23\ + \u0E2D\u0E1A\u0E07\u0E32\u0E19\u0E04\u0E27\u0E32\u0E21\u0E21\u0E31\u0E48\u0E19\ + \u0E04\u0E07\u0E02\u0E2D\u0E07\u0E21\u0E19\u0E38\u0E29\u0E22\u0E4C\u0E40\u0E01\ + \u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\u0E25\u0E31\u0E01\u0E29\u0E13\u0E30\ + \u0E02\u0E2D\u0E07\u0E20\u0E31\u0E22\u0E04\u0E38\u0E01\u0E04\u0E32\u0E21\u0E41\ + \u0E25\u0E30\u0E27\u0E31\u0E15\u0E16\u0E38\u0E2D\u0E49\u0E32\u0E07\u0E2D\u0E34\ + \u0E07 \u0E0B\u0E36\u0E48\u0E07\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\ + \u0E16\u0E40\u0E1B\u0E23\u0E35\u0E22\u0E1A\u0E40\u0E17\u0E35\u0E22\u0E1A\u0E44\ + \u0E14\u0E49\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E01\u0E27\u0E49\u0E32\u0E07\u0E02\ + \u0E27\u0E32\u0E07\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E41\u0E19\u0E27\ + \u0E17\u0E32\u0E07\u0E17\u0E35\u0E48\u0E23\u0E31\u0E10\u0E40\u0E1B\u0E47\u0E19\ + \u0E28\u0E39\u0E19\u0E22\u0E4C\u0E01\u0E25\u0E32\u0E07\u0E41\u0E25\u0E30\u0E04\ + \u0E27\u0E32\u0E21\u0E21\u0E31\u0E48\u0E19\u0E04\u0E07\u0E02\u0E2D\u0E07\u0E21\ + \u0E19\u0E38\u0E29\u0E22\u0E4C" + B: "\u0E42\u0E14\u0E22\u0E01\u0E32\u0E23\u0E19\u0E33\u0E01\u0E23\u0E2D\u0E1A\ + \u0E04\u0E27\u0E32\u0E21\u0E21\u0E31\u0E48\u0E19\u0E04\u0E07\u0E02\u0E2D\u0E07\ + \u0E21\u0E19\u0E38\u0E29\u0E22\u0E4C\u0E21\u0E32\u0E43\u0E0A\u0E49 \u0E02\u0E49\ + \u0E2D\u0E08\u0E33\u0E01\u0E31\u0E14\u0E02\u0E2D\u0E07\u0E41\u0E19\u0E27\u0E17\ + \u0E32\u0E07\u0E17\u0E35\u0E48\u0E22\u0E36\u0E14\u0E23\u0E31\u0E10\u0E40\u0E1B\ + \u0E47\u0E19\u0E28\u0E39\u0E19\u0E22\u0E4C\u0E01\u0E25\u0E32\u0E07\u0E44\u0E14\ + \u0E49\u0E0A\u0E31\u0E14\u0E40\u0E08\u0E19\u0E02\u0E36\u0E49\u0E19 \u0E43\u0E19\ + \u0E02\u0E13\u0E30\u0E17\u0E35\u0E48\u0E04\u0E27\u0E32\u0E21\u0E21\u0E31\u0E48\ + \u0E19\u0E04\u0E07\u0E02\u0E2D\u0E07\u0E21\u0E19\u0E38\u0E29\u0E22\u0E4C\u0E01\ + \u0E33\u0E2B\u0E19\u0E14\u0E27\u0E31\u0E15\u0E16\u0E38\u0E2D\u0E49\u0E32\u0E07\ + \u0E2D\u0E34\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E1A\u0E38\u0E04\u0E04\u0E25\u0E2B\ + \u0E23\u0E37\u0E2D\u0E1B\u0E23\u0E30\u0E0A\u0E32\u0E01\u0E23 \u0E41\u0E19\u0E27\ + \u0E17\u0E32\u0E07\u0E02\u0E2D\u0E07\u0E23\u0E31\u0E10\u0E40\u0E1B\u0E47\u0E19\ + \u0E28\u0E39\u0E19\u0E22\u0E4C\u0E01\u0E25\u0E32\u0E07\u0E08\u0E31\u0E14\u0E25\ + \u0E33\u0E14\u0E31\u0E1A\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E33\u0E04\u0E31\u0E0D\ + \u0E02\u0E2D\u0E07\u0E04\u0E27\u0E32\u0E21\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\ + \u0E22\u0E02\u0E2D\u0E07\u0E23\u0E31\u0E10 \u0E44\u0E21\u0E48\u0E08\u0E31\u0E14\ + \u0E25\u0E33\u0E14\u0E31\u0E1A\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E33\u0E04\u0E31\ + \u0E0D\u0E02\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E41\u0E2A\u0E27\u0E07\u0E2B\u0E32\ + \u0E04\u0E27\u0E32\u0E21\u0E21\u0E31\u0E48\u0E19\u0E04\u0E07\u0E02\u0E2D\u0E07\ + \u0E21\u0E19\u0E38\u0E29\u0E22\u0E4C" + C: "\u0E41\u0E19\u0E27\u0E17\u0E32\u0E07\u0E01\u0E32\u0E23\u0E23\u0E31\u0E01\ + \u0E29\u0E32\u0E04\u0E27\u0E32\u0E21\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22\ + \u0E17\u0E35\u0E48\u0E40\u0E19\u0E49\u0E19\u0E23\u0E31\u0E10\u0E40\u0E1B\u0E47\ + \u0E19\u0E28\u0E39\u0E19\u0E22\u0E4C\u0E01\u0E25\u0E32\u0E07\u0E40\u0E1B\u0E47\ + \u0E19\u0E2A\u0E48\u0E27\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E02\u0E2D\u0E07\ + \u0E04\u0E27\u0E32\u0E21\u0E21\u0E31\u0E48\u0E19\u0E04\u0E07\u0E02\u0E2D\u0E07\ + \u0E21\u0E19\u0E38\u0E29\u0E22\u0E4C \u0E0B\u0E36\u0E48\u0E07\u0E21\u0E31\u0E01\ + \u0E08\u0E30\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49\u0E20\u0E32\u0E22\ + \u0E43\u0E19\u0E42\u0E23\u0E07\u0E40\u0E23\u0E35\u0E22\u0E19\u0E04\u0E27\u0E32\ + \u0E21\u0E21\u0E31\u0E48\u0E19\u0E04\u0E07\u0E02\u0E2D\u0E07\u0E21\u0E19\u0E38\ + \u0E29\u0E22\u0E4C\u0E43\u0E19\u0E27\u0E07\u0E01\u0E27\u0E49\u0E32\u0E07 \u0E41\ + \u0E19\u0E27\u0E17\u0E32\u0E07\u0E19\u0E35\u0E49\u0E21\u0E35\u0E23\u0E31\u0E10\ + \u0E40\u0E1B\u0E47\u0E19\u0E28\u0E39\u0E19\u0E22\u0E4C\u0E01\u0E25\u0E32\u0E07\ + \u0E08\u0E31\u0E14\u0E25\u0E33\u0E14\u0E31\u0E1A\u0E04\u0E27\u0E32\u0E21\u0E2A\ + \u0E33\u0E04\u0E31\u0E0D\u0E02\u0E2D\u0E07\u0E1A\u0E38\u0E04\u0E04\u0E25\u0E43\ + \u0E19\u0E10\u0E32\u0E19\u0E30\u0E27\u0E31\u0E15\u0E16\u0E38\u0E2D\u0E49\u0E32\ + \u0E07\u0E2D\u0E34\u0E07\u0E43\u0E19\u0E01\u0E32\u0E23\u0E28\u0E36\u0E01\u0E29\ + \u0E32\u0E04\u0E27\u0E32\u0E21\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22" + D: "\u0E41\u0E19\u0E27\u0E17\u0E32\u0E07\u0E01\u0E32\u0E23\u0E23\u0E31\u0E01\ + \u0E29\u0E32\u0E04\u0E27\u0E32\u0E21\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22\ + \u0E17\u0E31\u0E49\u0E07\u0E41\u0E1A\u0E1A\u0E22\u0E36\u0E14\u0E23\u0E31\u0E10\ + \u0E40\u0E1B\u0E47\u0E19\u0E28\u0E39\u0E19\u0E22\u0E4C\u0E01\u0E25\u0E32\u0E07\ + \u0E41\u0E25\u0E30\u0E22\u0E36\u0E14\u0E21\u0E19\u0E38\u0E29\u0E22\u0E4C\u0E40\ + \u0E1B\u0E47\u0E19\u0E28\u0E39\u0E19\u0E22\u0E4C\u0E01\u0E25\u0E32\u0E07\u0E40\ + \u0E1B\u0E47\u0E19\u0E40\u0E2D\u0E01\u0E2A\u0E34\u0E17\u0E18\u0E34\u0E4C\u0E23\ + \u0E48\u0E27\u0E21\u0E01\u0E31\u0E19 \u0E41\u0E25\u0E30\u0E19\u0E33\u0E40\u0E2A\ + \u0E19\u0E2D\u0E01\u0E23\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E27\u0E34\u0E40\u0E04\ + \u0E23\u0E32\u0E30\u0E2B\u0E4C\u0E17\u0E35\u0E48\u0E40\u0E1E\u0E35\u0E22\u0E07\ + \u0E1E\u0E2D\u0E43\u0E19\u0E01\u0E32\u0E23\u0E17\u0E33\u0E04\u0E27\u0E32\u0E21\ + \u0E40\u0E02\u0E49\u0E32\u0E43\u0E08\u0E23\u0E30\u0E1A\u0E1A\u0E01\u0E32\u0E23\ + \u0E23\u0E31\u0E01\u0E29\u0E32\u0E04\u0E27\u0E32\u0E21\u0E1B\u0E25\u0E2D\u0E14\ + \u0E20\u0E31\u0E22\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\ + \u0E40\u0E17\u0E28 \u0E14\u0E31\u0E07\u0E19\u0E31\u0E49\u0E19\u0E08\u0E36\u0E07\ + \u0E40\u0E1B\u0E47\u0E19\u0E1A\u0E17\u0E1A\u0E32\u0E17\u0E02\u0E2D\u0E07\u0E19\ + \u0E31\u0E01\u0E27\u0E34\u0E40\u0E04\u0E23\u0E32\u0E30\u0E2B\u0E4C\u0E04\u0E27\ + \u0E32\u0E21\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22\u0E43\u0E19\u0E01\u0E32\ + \u0E23\u0E1E\u0E34\u0E08\u0E32\u0E23\u0E13\u0E32\u0E27\u0E48\u0E32\u0E41\u0E19\ + \u0E27\u0E04\u0E34\u0E14\u0E2A\u0E33\u0E04\u0E31\u0E0D\u0E43\u0E14\u0E16\u0E39\ + \u0E01\u0E15\u0E49\u0E2D\u0E07 \u0E41\u0E25\u0E30\u0E04\u0E27\u0E23\u0E25\u0E30\ + \u0E17\u0E34\u0E49\u0E07\u0E41\u0E19\u0E27\u0E04\u0E34\u0E14\u0E43\u0E14" + input_correct_responses: + - B + input_question: "\u0E40\u0E23\u0E32\u0E08\u0E30\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\ + \u0E04\u0E27\u0E32\u0E21\u0E2A\u0E31\u0E21\u0E1E\u0E31\u0E19\u0E18\u0E4C\u0E23\ + \u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E41\u0E19\u0E27\u0E17\u0E32\u0E07\u0E23\ + \u0E31\u0E10\u0E40\u0E1B\u0E47\u0E19\u0E28\u0E39\u0E19\u0E22\u0E4C\u0E01\u0E25\ + \u0E32\u0E07\u0E01\u0E31\u0E1A\u0E41\u0E19\u0E27\u0E04\u0E34\u0E14\u0E40\u0E23\ + \u0E37\u0E48\u0E2D\u0E07\u0E04\u0E27\u0E32\u0E21\u0E21\u0E31\u0E48\u0E19\u0E04\ + \u0E07\u0E02\u0E2D\u0E07\u0E21\u0E19\u0E38\u0E29\u0E22\u0E4C\u0E44\u0E14\u0E49\ + \u0E14\u0E35\u0E17\u0E35\u0E48\u0E2A\u0E38\u0E14\u0E2D\u0E22\u0E48\u0E32\u0E07\ + \u0E44\u0E23?" + - input_choice_list: + A: "\u0E01\u0E32\u0E23\u0E41\u0E02\u0E48\u0E07\u0E02\u0E31\u0E19\u0E23\u0E30\ + \u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E02\u0E19\ + \u0E32\u0E14\u0E43\u0E2B\u0E0D\u0E48\u0E2A\u0E48\u0E07\u0E1C\u0E25\u0E43\u0E2B\ + \u0E49\u0E1A\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E2A\u0E19\u0E31\ + \u0E1A\u0E2A\u0E19\u0E38\u0E19\u0E01\u0E25\u0E38\u0E48\u0E21\u0E01\u0E48\u0E2D\ + \u0E01\u0E32\u0E23\u0E23\u0E49\u0E32\u0E22\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E41\ + \u0E02\u0E47\u0E07\u0E02\u0E31\u0E19\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E1A\u0E48\ + \u0E2D\u0E19\u0E17\u0E33\u0E25\u0E32\u0E22\u0E04\u0E27\u0E32\u0E21\u0E41\u0E02\ + \u0E47\u0E07\u0E41\u0E01\u0E23\u0E48\u0E07\u0E02\u0E2D\u0E07\u0E23\u0E31\u0E10\ + \u0E04\u0E39\u0E48\u0E41\u0E02\u0E48\u0E07 \u0E40\u0E04\u0E23\u0E37\u0E2D\u0E02\ + \u0E48\u0E32\u0E22\u0E1C\u0E39\u0E49\u0E01\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E23\ + \u0E49\u0E32\u0E22\u0E40\u0E1B\u0E47\u0E19\u0E2A\u0E42\u0E21\u0E2A\u0E23\u0E2D\ + \u0E38\u0E1B\u0E16\u0E31\u0E21\u0E20\u0E4C\u0E17\u0E35\u0E48\u0E02\u0E22\u0E32\ + \u0E22\u0E2D\u0E2D\u0E01\u0E44\u0E1B\u0E0B\u0E36\u0E48\u0E07\u0E44\u0E14\u0E49\ + \u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E14\u0E39\u0E41\u0E25\u0E41\u0E25\u0E30\ + \u0E08\u0E48\u0E32\u0E22\u0E40\u0E07\u0E34\u0E19\u0E42\u0E14\u0E22\u0E23\u0E31\ + \u0E10\u0E1C\u0E39\u0E49\u0E1A\u0E23\u0E34\u0E08\u0E32\u0E04 \u0E41\u0E25\u0E30\ + \u0E21\u0E35\u0E41\u0E19\u0E27\u0E04\u0E34\u0E14\u0E27\u0E48\u0E32\u0E40\u0E1B\ + \u0E47\u0E19\u0E40\u0E2B\u0E21\u0E37\u0E2D\u0E19\u0E15\u0E31\u0E27\u0E41\u0E2A\ + \u0E14\u0E07\u0E02\u0E2D\u0E07\u0E23\u0E31\u0E10\u0E17\u0E35\u0E48\u0E15\u0E49\ + \u0E2D\u0E07\u0E08\u0E31\u0E14\u0E01\u0E32\u0E23\u0E42\u0E14\u0E22\u0E43\u0E0A\ + \u0E49\u0E01\u0E33\u0E25\u0E31\u0E07\u0E17\u0E2B\u0E32\u0E23" + B: "\u0E42\u0E25\u0E01\u0E32\u0E20\u0E34\u0E27\u0E31\u0E15\u0E19\u0E4C\u0E17\ + \u0E33\u0E43\u0E2B\u0E49\u0E01\u0E34\u0E08\u0E01\u0E23\u0E23\u0E21\u0E01\u0E32\ + \u0E23\u0E01\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E23\u0E49\u0E32\u0E22\u0E40\u0E1B\ + \u0E47\u0E19\u0E2A\u0E32\u0E01\u0E25\u0E42\u0E14\u0E22\u0E01\u0E32\u0E23\u0E40\ + \u0E1B\u0E34\u0E14\u0E1E\u0E37\u0E49\u0E19\u0E17\u0E35\u0E48\u0E1B\u0E0F\u0E34\ + \u0E1A\u0E31\u0E15\u0E34\u0E01\u0E32\u0E23\u0E02\u0E2D\u0E07\u0E1E\u0E27\u0E01\ + \u0E40\u0E02\u0E32 \u0E41\u0E21\u0E49\u0E27\u0E48\u0E32\u0E01\u0E32\u0E23\u0E1B\ + \u0E23\u0E30\u0E2A\u0E32\u0E19\u0E07\u0E32\u0E19\u0E08\u0E30\u0E22\u0E31\u0E07\ + \u0E04\u0E07\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E08\u0E31\ + \u0E14\u0E01\u0E32\u0E23\u0E08\u0E32\u0E01\u0E10\u0E32\u0E19\u0E17\u0E32\u0E07\ + \u0E20\u0E39\u0E21\u0E34\u0E28\u0E32\u0E2A\u0E15\u0E23\u0E4C \u0E2A\u0E34\u0E48\ + \u0E07\u0E19\u0E35\u0E49\u0E0A\u0E35\u0E49\u0E43\u0E2B\u0E49\u0E40\u0E2B\u0E47\ + \u0E19\u0E27\u0E48\u0E32\u0E01\u0E25\u0E38\u0E48\u0E21\u0E1C\u0E39\u0E49\u0E01\ + \u0E48\u0E2D\u0E01\u0E32\u0E23\u0E23\u0E49\u0E32\u0E22\u0E21\u0E35\u0E42\u0E04\ + \u0E23\u0E07\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E23\u0E30\u0E14\u0E31\u0E1A\u0E0A\ + \u0E32\u0E15\u0E34 \u0E0B\u0E36\u0E48\u0E07\u0E2B\u0E21\u0E32\u0E22\u0E04\u0E27\ + \u0E32\u0E21\u0E27\u0E48\u0E32\u0E01\u0E32\u0E23\u0E01\u0E48\u0E2D\u0E01\u0E32\ + \u0E23\u0E23\u0E49\u0E32\u0E22\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\ + \u0E16\u0E1E\u0E34\u0E08\u0E32\u0E23\u0E13\u0E32\u0E43\u0E19\u0E41\u0E07\u0E48\ + \u0E02\u0E2D\u0E07\u0E2A\u0E07\u0E04\u0E23\u0E32\u0E21\u0E17\u0E35\u0E48\u0E15\ + \u0E49\u0E2D\u0E07\u0E1E\u0E48\u0E32\u0E22\u0E41\u0E1E\u0E49\u0E17\u0E32\u0E07\ + \u0E17\u0E2B\u0E32\u0E23\u0E42\u0E14\u0E22\u0E44\u0E21\u0E48\u0E21\u0E35\u0E1C\ + \u0E25\u0E01\u0E23\u0E30\u0E17\u0E1A\u0E23\u0E49\u0E32\u0E22\u0E41\u0E23\u0E07\ + \u0E15\u0E48\u0E2D\u0E1B\u0E23\u0E30\u0E0A\u0E32\u0E01\u0E23\u0E1E\u0E37\u0E49\ + \u0E19\u0E40\u0E21\u0E37\u0E2D\u0E07" + C: "\u0E01\u0E32\u0E23\u0E01\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E23\u0E49\u0E32\ + \u0E22\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E21\u0E2D\u0E07\u0E44\u0E14\u0E49\ + \u0E27\u0E48\u0E32\u0E40\u0E1B\u0E47\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E17\ + \u0E35\u0E48\u0E15\u0E49\u0E2D\u0E07\u0E41\u0E01\u0E49\u0E44\u0E02\u0E14\u0E49\ + \u0E27\u0E22\u0E27\u0E34\u0E18\u0E35\u0E01\u0E32\u0E23\u0E17\u0E32\u0E07\u0E17\ + \u0E2B\u0E32\u0E23 (\u0E2A\u0E07\u0E04\u0E23\u0E32\u0E21\u0E01\u0E31\u0E1A\ + \u0E01\u0E32\u0E23\u0E01\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E23\u0E49\u0E32\u0E22\ + ) \u0E42\u0E14\u0E22\u0E43\u0E0A\u0E49\u0E40\u0E17\u0E04\u0E19\u0E34\u0E04\ + \u0E1B\u0E01\u0E15\u0E34\u0E02\u0E2D\u0E07\u0E15\u0E33\u0E23\u0E27\u0E08 (\u0E01\ + \u0E32\u0E23\u0E01\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E23\u0E49\u0E32\u0E22\u0E40\ + \u0E1B\u0E47\u0E19\u0E2D\u0E32\u0E0A\u0E0D\u0E32\u0E01\u0E23\u0E23\u0E21)\ + \ \u0E2B\u0E23\u0E37\u0E2D\u0E40\u0E1B\u0E47\u0E19\u0E1B\u0E31\u0E0D\u0E2B\ + \u0E32\u0E17\u0E32\u0E07\u0E01\u0E32\u0E23\u0E41\u0E1E\u0E17\u0E22\u0E4C\u0E17\ + \u0E35\u0E48\u0E21\u0E35\u0E2A\u0E32\u0E40\u0E2B\u0E15\u0E38\u0E41\u0E25\u0E30\ + \u0E2D\u0E32\u0E01\u0E32\u0E23\u0E41\u0E1D\u0E07\u0E2D\u0E22\u0E39\u0E48 (\u0E01\ + \u0E32\u0E23\u0E01\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E23\u0E49\u0E32\u0E22\u0E40\ + \u0E1B\u0E47\u0E19\u0E42\u0E23\u0E04)" + D: "\u0E01\u0E32\u0E23\u0E01\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E23\u0E49\u0E32\ + \u0E22\u0E16\u0E39\u0E01\u0E21\u0E2D\u0E07\u0E27\u0E48\u0E32\u0E40\u0E1B\u0E47\ + \u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E17\u0E32\u0E07\u0E2D\u0E32\u0E0D\u0E32\ + \ \u0E2D\u0E32\u0E0A\u0E0D\u0E32\u0E01\u0E23\u0E23\u0E21\u0E02\u0E2D\u0E07\ + \u0E01\u0E32\u0E23\u0E01\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E23\u0E49\u0E32\u0E22\ + \u0E21\u0E35\u0E19\u0E31\u0E22\u0E2A\u0E33\u0E04\u0E31\u0E0D\u0E2A\u0E2D\u0E07\ + \u0E1B\u0E23\u0E30\u0E01\u0E32\u0E23 \u0E1B\u0E23\u0E30\u0E01\u0E32\u0E23\u0E41\ + \u0E23\u0E01 \u0E21\u0E31\u0E19\u0E41\u0E2A\u0E14\u0E07\u0E43\u0E2B\u0E49\u0E40\ + \u0E2B\u0E47\u0E19\u0E27\u0E48\u0E32\u0E01\u0E32\u0E23\u0E01\u0E48\u0E2D\u0E01\ + \u0E32\u0E23\u0E23\u0E49\u0E32\u0E22\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E01\ + \u0E33\u0E08\u0E31\u0E14\u0E43\u0E2B\u0E49\u0E2B\u0E21\u0E14\u0E44\u0E1B\u0E44\ + \u0E14\u0E49 - \u0E1C\u0E39\u0E49\u0E01\u0E48\u0E2D\u0E01\u0E32\u0E23\u0E23\ + \u0E49\u0E32\u0E22\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E16\u0E39\u0E01\u0E08\ + \u0E31\u0E1A\u0E44\u0E14\u0E49\u0E41\u0E25\u0E30\u0E16\u0E39\u0E01\u0E19\u0E33\ + \u0E15\u0E31\u0E27\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E01\u0E32\u0E23\ + \u0E1E\u0E34\u0E08\u0E32\u0E23\u0E13\u0E32\u0E04\u0E14\u0E35\u0E42\u0E14\u0E22\ + \u0E01\u0E32\u0E23\u0E1E\u0E34\u0E08\u0E32\u0E23\u0E13\u0E32\u0E04\u0E14\u0E35\ + \u0E15\u0E32\u0E21\u0E1B\u0E01\u0E15\u0E34 \u0E0B\u0E36\u0E48\u0E07\u0E08\u0E30\ + \u0E40\u0E1B\u0E47\u0E19\u0E01\u0E32\u0E23\u0E01\u0E33\u0E08\u0E31\u0E14\u0E20\ + \u0E31\u0E22\u0E04\u0E38\u0E01\u0E04\u0E32\u0E21\u0E2D\u0E2D\u0E01\u0E08\u0E32\ + \u0E01\u0E2A\u0E31\u0E07\u0E04\u0E21 - \u0E41\u0E25\u0E30\u0E1B\u0E23\u0E30\ + \u0E01\u0E32\u0E23\u0E17\u0E35\u0E48\u0E2A\u0E2D\u0E07 \u0E21\u0E31\u0E19\u0E41\ + \u0E2A\u0E14\u0E07\u0E43\u0E2B\u0E49\u0E40\u0E2B\u0E47\u0E19\u0E27\u0E48\u0E32\ + \u0E40\u0E17\u0E04\u0E19\u0E34\u0E04\u0E01\u0E32\u0E23\u0E1B\u0E49\u0E2D\u0E07\ + \u0E01\u0E31\u0E19\u0E2D\u0E32\u0E0A\u0E0D\u0E32\u0E01\u0E23\u0E23\u0E21\u0E2A\ + \u0E32\u0E21\u0E32\u0E23\u0E16\u0E19\u0E33\u0E21\u0E32\u0E43\u0E0A\u0E49\u0E40\ + \u0E1E\u0E37\u0E48\u0E2D\u0E1B\u0E49\u0E2D\u0E07\u0E01\u0E31\u0E19\u0E01\u0E32\ + \u0E23\u0E1E\u0E31\u0E12\u0E19\u0E32" + input_correct_responses: + - C + input_question: "\u0E01\u0E23\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E27\u0E34\u0E40\u0E04\ + \u0E23\u0E32\u0E30\u0E2B\u0E4C\u0E43\u0E14\u0E17\u0E35\u0E48\u0E1E\u0E34\u0E08\ + \u0E32\u0E23\u0E13\u0E32\u0E01\u0E32\u0E23\u0E01\u0E48\u0E2D\u0E01\u0E32\u0E23\ + \u0E23\u0E49\u0E32\u0E22 (\u0E13 \u0E1B\u0E35 2020)" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_security_studies +tag: mmlu_th_llama_social_sciences_tasks +task: mmlu_th_llama_security_studies +task_alias: security_studies diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_sociology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_sociology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4ad7b9a6f3c2de79d8429367e8b11875cdc5a92d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_sociology.yaml @@ -0,0 +1,132 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0E01\u0E32\u0E23\u0E14\u0E39\u0E41\u0E25\u0E2A\u0E38\u0E02\u0E20\u0E32\ + \u0E1E\u0E41\u0E25\u0E30\u0E01\u0E32\u0E23\u0E28\u0E36\u0E01\u0E29\u0E32\u0E1F\ + \u0E23\u0E35\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E17\u0E38\u0E01\u0E04\u0E19" + B: "\u0E04\u0E48\u0E32\u0E08\u0E49\u0E32\u0E07\u0E02\u0E31\u0E49\u0E19\u0E15\ + \u0E48\u0E33" + C: "\u0E01\u0E32\u0E23\u0E08\u0E49\u0E32\u0E07\u0E07\u0E32\u0E19\u0E40\u0E15\ + \u0E47\u0E21\u0E17\u0E35\u0E48" + D: "\u0E2A\u0E27\u0E31\u0E2A\u0E14\u0E34\u0E01\u0E32\u0E23\u0E16\u0E49\u0E27\ + \u0E19\u0E2B\u0E19\u0E49\u0E32" + input_correct_responses: + - B + input_question: "\u0E23\u0E31\u0E10\u0E2A\u0E27\u0E31\u0E2A\u0E14\u0E34\u0E01\u0E32\ + \u0E23\u0E2B\u0E25\u0E31\u0E07\u0E2A\u0E07\u0E04\u0E23\u0E32\u0E21\u0E1B\u0E35\ + \ 1948 \u0E02\u0E49\u0E2D\u0E43\u0E14\u0E15\u0E48\u0E2D\u0E44\u0E1B\u0E19\u0E35\ + \u0E49\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E21\u0E35\u0E40\u0E1B\u0E49\u0E32\ + \u0E2B\u0E21\u0E32\u0E22\u0E17\u0E35\u0E48\u0E08\u0E30\u0E08\u0E31\u0E14\u0E43\ + \u0E2B\u0E49\u0E21\u0E35" + - input_choice_list: + A: "\u0E01\u0E32\u0E23\u0E02\u0E35\u0E48\u0E17\u0E35\u0E48\u0E22\u0E38\u0E15\ + \u0E34\u0E18\u0E23\u0E23\u0E21" + B: "\u0E25\u0E30\u0E04\u0E23\u0E2A\u0E31\u0E15\u0E27\u0E4C" + C: "\u0E42\u0E23\u0E07\u0E25\u0E30\u0E04\u0E23\u0E2B\u0E38\u0E48\u0E19\u0E01\ + \u0E23\u0E30\u0E1A\u0E2D\u0E01" + D: "\u0E1A\u0E31\u0E25\u0E40\u0E25\u0E48\u0E15\u0E4C" + input_correct_responses: + - C + input_question: "Berger (1963) \u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E27\u0E48\ + \u0E32\u0E2D\u0E30\u0E44\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2D\u0E38\u0E1B\u0E25\ + \u0E31\u0E01\u0E29\u0E13\u0E4C\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E04\u0E27\ + \u0E32\u0E21\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E23\u0E34\u0E07\u0E17\u0E32\u0E07\ + \u0E2A\u0E31\u0E07\u0E04\u0E21?" + - input_choice_list: + A: "\u0E23\u0E30\u0E1A\u0E1A\u0E23\u0E32\u0E0A\u0E01\u0E32\u0E23\u0E17\u0E35\ + \u0E48\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E02\u0E36\u0E49\u0E19\u0E02\u0E2D\u0E07\ + \u0E23\u0E31\u0E10\u0E17\u0E33\u0E43\u0E2B\u0E49\u0E28\u0E32\u0E2A\u0E19\u0E32\ + \u0E40\u0E1B\u0E47\u0E19\u0E40\u0E1E\u0E35\u0E22\u0E07\u0E2A\u0E48\u0E27\u0E19\ + \u0E40\u0E25\u0E47\u0E01 \u0E46 \u0E02\u0E2D\u0E07\u0E0A\u0E35\u0E27\u0E34\ + \u0E15\u0E40\u0E23\u0E32" + B: "\u0E41\u0E21\u0E49\u0E27\u0E48\u0E32\u0E2D\u0E33\u0E19\u0E32\u0E08\u0E14\ + \u0E31\u0E49\u0E07\u0E40\u0E14\u0E34\u0E21\u0E08\u0E30\u0E2D\u0E48\u0E2D\u0E19\ + \u0E41\u0E2D\u0E25\u0E07 \u0E41\u0E15\u0E48\u0E0A\u0E35\u0E27\u0E34\u0E15\u0E1B\ + \u0E23\u0E30\u0E08\u0E33\u0E27\u0E31\u0E19\u0E41\u0E25\u0E30 '\u0E2A\u0E32\ + \u0E21\u0E31\u0E0D\u0E2A\u0E33\u0E19\u0E36\u0E01' \u0E02\u0E2D\u0E07\u0E40\ + \u0E23\u0E32\u0E22\u0E31\u0E07\u0E04\u0E07\u0E16\u0E39\u0E01\u0E2B\u0E25\u0E48\ + \u0E2D\u0E2B\u0E25\u0E2D\u0E21\u0E14\u0E49\u0E27\u0E22\u0E04\u0E27\u0E32\u0E21\ + \u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E41\u0E25\u0E30\u0E04\u0E48\u0E32\u0E19\u0E34\ + \u0E22\u0E21\u0E17\u0E32\u0E07\u0E28\u0E32\u0E2A\u0E19\u0E32" + C: "\u0E01\u0E32\u0E23\u0E21\u0E35\u0E2A\u0E48\u0E27\u0E19\u0E23\u0E48\u0E27\ + \u0E21\u0E17\u0E32\u0E07\u0E28\u0E32\u0E2A\u0E19\u0E32\u0E43\u0E19\u0E01\u0E32\ + \u0E23\u0E1A\u0E39\u0E0A\u0E32\u0E2A\u0E48\u0E27\u0E19\u0E23\u0E27\u0E21\u0E2D\ + \u0E32\u0E08\u0E25\u0E14\u0E25\u0E07 \u0E41\u0E15\u0E48\u0E1C\u0E39\u0E49\u0E04\ + \u0E19\u0E22\u0E31\u0E07\u0E04\u0E07\u0E1B\u0E0F\u0E34\u0E1A\u0E31\u0E15\u0E34\ + \u0E28\u0E23\u0E31\u0E17\u0E18\u0E32\u0E40\u0E1B\u0E47\u0E19\u0E01\u0E32\u0E23\ + \u0E2A\u0E48\u0E27\u0E19\u0E15\u0E31\u0E27" + D: "\u0E1C\u0E39\u0E49\u0E04\u0E19\u0E21\u0E31\u0E01\u0E08\u0E30\u0E1E\u0E39\ + \u0E14\u0E04\u0E38\u0E22\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E04\u0E27\u0E32\ + \u0E21\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E17\u0E32\u0E07\u0E28\u0E32\u0E2A\u0E19\ + \u0E32\u0E43\u0E19\u0E17\u0E35\u0E48\u0E2A\u0E32\u0E18\u0E32\u0E23\u0E13\u0E30\ + \u0E41\u0E25\u0E30\u0E44\u0E21\u0E48\u0E40\u0E1B\u0E47\u0E19\u0E17\u0E32\u0E07\ + \u0E01\u0E32\u0E23" + input_correct_responses: + - B + input_question: "\u0E01\u0E32\u0E23\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E08\ + \u0E32\u0E01 '\u0E28\u0E32\u0E2A\u0E19\u0E32\u0E1E\u0E25\u0E40\u0E23\u0E37\ + \u0E2D\u0E19' \u0E40\u0E1B\u0E47\u0E19 '\u0E28\u0E32\u0E2A\u0E19\u0E32\ + \u0E17\u0E31\u0E48\u0E27\u0E44\u0E1B' \u0E2B\u0E21\u0E32\u0E22\u0E04\u0E27\ + \u0E32\u0E21\u0E27\u0E48\u0E32:" + - input_choice_list: + A: "\u0E41\u0E19\u0E27\u0E42\u0E19\u0E49\u0E21\u0E02\u0E2D\u0E07\u0E0A\u0E19\ + \u0E0A\u0E31\u0E49\u0E19\u0E41\u0E23\u0E07\u0E07\u0E32\u0E19\u0E17\u0E35\u0E48\ + \u0E44\u0E21\u0E48\u0E40\u0E2B\u0E47\u0E19\u0E41\u0E01\u0E48\u0E1B\u0E23\u0E30\ + \u0E42\u0E22\u0E0A\u0E19\u0E4C\u0E2A\u0E48\u0E27\u0E19\u0E15\u0E19" + B: "\u0E2D\u0E38\u0E14\u0E21\u0E01\u0E32\u0E23\u0E13\u0E4C\u0E17\u0E35\u0E48\ + \u0E42\u0E14\u0E14\u0E40\u0E14\u0E48\u0E19\u0E17\u0E35\u0E48\u0E2A\u0E23\u0E49\ + \u0E32\u0E07\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E2D\u0E1A\u0E18\u0E23\u0E23\u0E21\ + \u0E43\u0E2B\u0E49\u0E01\u0E31\u0E1A\u0E2D\u0E33\u0E19\u0E32\u0E08\u0E17\u0E32\ + \u0E07\u0E40\u0E28\u0E23\u0E29\u0E10\u0E01\u0E34\u0E08 \u0E01\u0E32\u0E23\u0E40\ + \u0E21\u0E37\u0E2D\u0E07 \u0E41\u0E25\u0E30\u0E27\u0E31\u0E12\u0E19\u0E18\u0E23\ + \u0E23\u0E21" + C: "\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E02\u0E2D\u0E07\u0E08\u0E34\u0E15\ + \u0E2A\u0E33\u0E19\u0E36\u0E01\u0E04\u0E39\u0E48\u0E15\u0E32\u0E21\u0E2D\u0E38\ + \u0E14\u0E21\u0E01\u0E32\u0E23\u0E13\u0E4C\u0E41\u0E25\u0E30\u0E1B\u0E23\u0E30\ + \u0E2A\u0E1A\u0E01\u0E32\u0E23\u0E13\u0E4C\u0E43\u0E19\u0E0A\u0E35\u0E27\u0E34\ + \u0E15\u0E1B\u0E23\u0E30\u0E08\u0E33\u0E27\u0E31\u0E19" + D: "\u0E42\u0E2B\u0E21\u0E14\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\ + \u0E07\u0E34\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E43\u0E2B\ + \u0E49\u0E01\u0E31\u0E1A topiary \u0E17\u0E35\u0E48\u0E42\u0E14\u0E14\u0E40\ + \u0E14\u0E48\u0E19" + input_correct_responses: + - B + input_question: "\u0E04\u0E33\u0E27\u0E48\u0E32 '\u0E04\u0E27\u0E32\u0E21\u0E40\ + \u0E1B\u0E47\u0E19\u0E40\u0E08\u0E49\u0E32\u0E42\u0E25\u0E01' \u0E2B\u0E21\ + \u0E32\u0E22\u0E16\u0E36\u0E07:" + - input_choice_list: + A: "\u0E01\u0E32\u0E23\u0E19\u0E31\u0E14\u0E2B\u0E22\u0E38\u0E14\u0E07\u0E32\ + \u0E19\u0E2A\u0E48\u0E27\u0E19\u0E43\u0E2B\u0E0D\u0E48\u0E44\u0E21\u0E48\u0E21\ + \u0E35\u0E43\u0E04\u0E23\u0E2A\u0E31\u0E07\u0E40\u0E01\u0E15\u0E40\u0E2B\u0E47\ + \u0E19\u0E42\u0E14\u0E22\u0E19\u0E32\u0E22\u0E08\u0E49\u0E32\u0E07\u0E41\u0E25\ + \u0E30\u0E2A\u0E37\u0E48\u0E2D\u0E21\u0E27\u0E25\u0E0A\u0E19" + B: "\u0E19\u0E32\u0E22\u0E08\u0E49\u0E32\u0E07\u0E08\u0E30\u0E44\u0E21\u0E48\ + \u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E49\u0E2D\u0E1E\u0E34\u0E1E\u0E32\ + \u0E17\u0E17\u0E32\u0E07\u0E2D\u0E38\u0E15\u0E2A\u0E32\u0E2B\u0E01\u0E23\u0E23\ + \u0E21\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14" + C: "\u0E04\u0E33\u0E08\u0E33\u0E01\u0E31\u0E14\u0E04\u0E27\u0E32\u0E21\u0E02\ + \u0E2D\u0E07\u0E01\u0E32\u0E23\u0E19\u0E31\u0E14\u0E2B\u0E22\u0E38\u0E14\u0E07\ + \u0E32\u0E19\u0E44\u0E21\u0E48\u0E23\u0E27\u0E21\u0E07\u0E32\u0E19\u0E17\u0E35\ + \u0E48\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E02\u0E49\u0E2D\u0E07\u0E01\u0E31\ + \u0E1A\u0E04\u0E19\u0E07\u0E32\u0E19\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\ + \u0E32\u0E2A\u0E34\u0E1A\u0E04\u0E19\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\ + \u0E22\u0E01\u0E27\u0E48\u0E32\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E27\u0E31\u0E19" + D: "\u0E40\u0E1B\u0E47\u0E19\u0E01\u0E32\u0E23\u0E22\u0E32\u0E01\u0E17\u0E35\ + \u0E48\u0E08\u0E30\u0E40\u0E1B\u0E23\u0E35\u0E22\u0E1A\u0E40\u0E17\u0E35\u0E22\ + \u0E1A\u0E01\u0E32\u0E23\u0E19\u0E31\u0E14\u0E2B\u0E22\u0E38\u0E14\u0E07\u0E32\ + \u0E19\u0E17\u0E35\u0E48\u0E27\u0E31\u0E14\u0E14\u0E49\u0E27\u0E22\u0E27\u0E34\ + \u0E18\u0E35\u0E15\u0E48\u0E32\u0E07\u0E46" + input_correct_responses: + - A + input_question: "\u0E02\u0E49\u0E2D\u0E43\u0E14\u0E15\u0E48\u0E2D\u0E44\u0E1B\u0E19\ + \u0E35\u0E49\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E1B\u0E31\u0E0D\u0E2B\u0E32\ + \u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\u0E2A\u0E16\u0E34\u0E15\ + \u0E34\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E17\u0E32\u0E07\ + \u0E01\u0E32\u0E23\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\u0E01\ + \u0E32\u0E23\u0E1B\u0E23\u0E30\u0E17\u0E49\u0E27\u0E07" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_sociology +tag: mmlu_th_llama_social_sciences_tasks +task: mmlu_th_llama_sociology +task_alias: sociology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_us_foreign_policy.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_us_foreign_policy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1f510251cf8254c3dc9aaf3da04dba2e41341660 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_us_foreign_policy.yaml @@ -0,0 +1,136 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0E21\u0E31\u0E19\u0E17\u0E33\u0E25\u0E32\u0E22\u0E01\u0E32\u0E23\u0E2A\ + \u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\ + \u0E40\u0E28\u0E23\u0E29\u0E10\u0E01\u0E34\u0E08\u0E01\u0E32\u0E23\u0E40\u0E21\ + \u0E37\u0E2D\u0E07\u0E41\u0E25\u0E30\u0E23\u0E30\u0E1A\u0E1A\u0E17\u0E38\u0E19\ + \u0E19\u0E34\u0E22\u0E21\u0E02\u0E2D\u0E07\u0E2A\u0E2B\u0E23\u0E31\u0E10\u0E2F" + B: "\u0E21\u0E31\u0E19\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E04\u0E27\u0E32\u0E21\ + \u0E42\u0E01\u0E23\u0E18\u0E41\u0E04\u0E49\u0E19\u0E43\u0E2B\u0E49\u0E01\u0E31\ + \u0E1A\u0E2A\u0E2B\u0E23\u0E31\u0E10\u0E2D\u0E40\u0E21\u0E23\u0E34\u0E01\u0E32\ + \u0E17\u0E35\u0E48\u0E1E\u0E39\u0E14\u0E40\u0E01\u0E34\u0E19\u0E08\u0E23\u0E34\ + \u0E07\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\u0E27\u0E34\u0E01\ + \u0E24\u0E15" + C: "\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E01\u0E32\u0E23\u0E2A\u0E19\u0E31\u0E1A\ + \u0E2A\u0E19\u0E38\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u0E23\u0E30\u0E14\u0E31\ + \u0E1A\u0E42\u0E25\u0E01\u0E02\u0E2D\u0E07\u0E2D\u0E40\u0E21\u0E23\u0E34\u0E01\ + \u0E32\u0E20\u0E32\u0E22\u0E43\u0E15\u0E49\u0E1B\u0E23\u0E30\u0E18\u0E32\u0E19\ + \u0E32\u0E18\u0E34\u0E1A\u0E14\u0E35\u0E42\u0E2D\u0E1A\u0E32\u0E21\u0E32" + D: "\u0E21\u0E31\u0E19\u0E25\u0E14\u0E01\u0E32\u0E23\u0E43\u0E0A\u0E49\u0E40\ + \u0E07\u0E34\u0E19\u0E14\u0E2D\u0E25\u0E25\u0E32\u0E23\u0E4C\u0E2A\u0E2B\u0E23\ + \u0E31\u0E10\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01" + input_correct_responses: + - A + input_question: "\u0E27\u0E34\u0E01\u0E24\u0E15\u0E01\u0E32\u0E23\u0E40\u0E07\u0E34\ + \u0E19\u0E1B\u0E35 2551 \u0E2A\u0E48\u0E07\u0E1C\u0E25\u0E01\u0E23\u0E30\u0E17\ + \u0E1A\u0E15\u0E48\u0E2D\u0E0A\u0E37\u0E48\u0E2D\u0E40\u0E2A\u0E35\u0E22\u0E07\ + \u0E23\u0E30\u0E14\u0E31\u0E1A\u0E19\u0E32\u0E19\u0E32\u0E0A\u0E32\u0E15\u0E34\ + \u0E02\u0E2D\u0E07\u0E2D\u0E40\u0E21\u0E23\u0E34\u0E01\u0E32\u0E2D\u0E22\u0E48\ + \u0E32\u0E07\u0E44\u0E23?" + - input_choice_list: + A: "\u0E21\u0E31\u0E19\u0E17\u0E33\u0E43\u0E2B\u0E49\u0E01\u0E32\u0E23\u0E01\ + \u0E31\u0E01\u0E01\u0E31\u0E19\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01" + B: "\u0E21\u0E31\u0E19\u0E17\u0E33\u0E01\u0E32\u0E23\u0E01\u0E31\u0E01\u0E01\ + \u0E31\u0E19\u0E17\u0E32\u0E07\u0E17\u0E2B\u0E32\u0E23" + C: "\u0E21\u0E31\u0E19\u0E40\u0E23\u0E35\u0E22\u0E01\u0E23\u0E49\u0E2D\u0E07\ + \u0E43\u0E2B\u0E49\u0E21\u0E35\u0E01\u0E32\u0E23\u0E1E\u0E31\u0E12\u0E19\u0E32\ + \u0E23\u0E30\u0E40\u0E1A\u0E34\u0E14\u0E44\u0E2E\u0E42\u0E14\u0E23\u0E40\u0E08\ + \u0E19" + D: "\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14\u0E02\u0E49\u0E32\u0E07\u0E15\ + \u0E49\u0E19" + input_correct_responses: + - D + input_question: "NSC-68 \u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E22\u0E38\ + \u0E17\u0E18\u0E28\u0E32\u0E2A\u0E15\u0E23\u0E4C\u0E02\u0E2D\u0E07\u0E2A\u0E2B\ + \u0E23\u0E31\u0E10\u0E2F \u0E2D\u0E22\u0E48\u0E32\u0E07\u0E44\u0E23?" + - input_choice_list: + A: "\u0E19\u0E42\u0E22\u0E1A\u0E32\u0E22\u0E01\u0E32\u0E23\u0E01\u0E48\u0E2D\ + \u0E01\u0E32\u0E23\u0E23\u0E49\u0E32\u0E22" + B: "\u0E19\u0E42\u0E22\u0E1A\u0E32\u0E22\u0E40\u0E28\u0E23\u0E29\u0E10\u0E01\ + \u0E34\u0E08." + C: "\u0E19\u0E42\u0E22\u0E1A\u0E32\u0E22\u0E15\u0E48\u0E32\u0E07\u0E1B\u0E23\ + \u0E30\u0E40\u0E17\u0E28." + D: "\u0E19\u0E42\u0E22\u0E1A\u0E32\u0E22\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\ + \u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28" + input_correct_responses: + - C + input_question: "\u0E02\u0E2D\u0E1A\u0E40\u0E02\u0E15\u0E02\u0E2D\u0E07\u0E01\u0E32\ + \u0E23\u0E15\u0E31\u0E14\u0E2A\u0E34\u0E19\u0E43\u0E08\u0E40\u0E0A\u0E34\u0E07\ + \u0E19\u0E42\u0E22\u0E1A\u0E32\u0E22\u0E17\u0E35\u0E48\u0E40\u0E01\u0E35\u0E48\ + \u0E22\u0E27\u0E02\u0E49\u0E2D\u0E07\u0E01\u0E31\u0E1A\u0E04\u0E27\u0E32\u0E21\ + \u0E2A\u0E31\u0E21\u0E1E\u0E31\u0E19\u0E18\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\ + \u0E32\u0E07\u0E2A\u0E2B\u0E23\u0E31\u0E10\u0E2D\u0E40\u0E21\u0E23\u0E34\u0E01\ + \u0E32\u0E41\u0E25\u0E30\u0E2A\u0E48\u0E27\u0E19\u0E2D\u0E37\u0E48\u0E19\u0E46\ + \ \u0E02\u0E2D\u0E07\u0E42\u0E25\u0E01\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E25\u0E31\ + \u0E01\u0E40\u0E23\u0E35\u0E22\u0E01\u0E27\u0E48\u0E32" + - input_choice_list: + A: "\u0E19\u0E31\u0E01\u0E1B\u0E01\u0E1B\u0E49\u0E2D\u0E07\u0E04\u0E27\u0E32\ + \u0E21\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E23\u0E34\u0E07\u0E43\u0E2B\u0E49\u0E04\ + \u0E27\u0E32\u0E21\u0E2A\u0E33\u0E04\u0E31\u0E0D\u0E01\u0E31\u0E1A\u0E1A\u0E17\ + \u0E1A\u0E32\u0E17\u0E02\u0E2D\u0E07\u0E2A\u0E16\u0E32\u0E1A\u0E31\u0E19\u0E23\ + \u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E21\ + \u0E32\u0E01\u0E02\u0E36\u0E49\u0E19" + B: "\u0E19\u0E31\u0E01\u0E2A\u0E31\u0E08\u0E19\u0E34\u0E22\u0E21\u0E40\u0E0A\ + \u0E34\u0E07\u0E1B\u0E49\u0E2D\u0E07\u0E01\u0E31\u0E19\u0E43\u0E2B\u0E49\u0E04\ + \u0E27\u0E32\u0E21\u0E2A\u0E33\u0E04\u0E31\u0E0D\u0E01\u0E31\u0E1A\u0E1B\u0E31\ + \u0E08\u0E08\u0E31\u0E22\u0E17\u0E32\u0E07\u0E20\u0E39\u0E21\u0E34\u0E28\u0E32\ + \u0E2A\u0E15\u0E23\u0E4C\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32" + C: "\u0E19\u0E31\u0E01\u0E2A\u0E31\u0E08\u0E19\u0E34\u0E22\u0E21\u0E19\u0E34\ + \u0E22\u0E21\u0E43\u0E2B\u0E49\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E33\u0E04\u0E31\ + \u0E0D\u0E01\u0E31\u0E1A\u0E1C\u0E25\u0E1B\u0E23\u0E30\u0E42\u0E22\u0E0A\u0E19\ + \u0E4C\u0E02\u0E2D\u0E07\u0E0A\u0E32\u0E15\u0E34\u0E21\u0E32\u0E01\u0E01\u0E27\ + \u0E48\u0E32\u0E19\u0E31\u0E01\u0E2A\u0E31\u0E08\u0E19\u0E34\u0E22\u0E21\u0E19\ + \u0E34\u0E22\u0E21" + D: "\u0E19\u0E31\u0E01\u0E2A\u0E31\u0E08\u0E19\u0E34\u0E22\u0E21\u0E40\u0E0A\ + \u0E34\u0E07\u0E1B\u0E49\u0E2D\u0E07\u0E01\u0E31\u0E19\u0E40\u0E0A\u0E37\u0E48\ + \u0E2D\u0E27\u0E48\u0E32\u0E23\u0E31\u0E10\u0E40\u0E1B\u0E47\u0E19\u0E1C\u0E39\ + \u0E49\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2D\u0E33\u0E19\u0E32\u0E08\u0E2A\u0E39\ + \u0E07\u0E2A\u0E38\u0E14\u0E43\u0E19\u0E01\u0E32\u0E23\u0E23\u0E31\u0E01\u0E29\ + \u0E32\u0E04\u0E27\u0E32\u0E21\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22 \u0E43\ + \u0E19\u0E02\u0E13\u0E30\u0E17\u0E35\u0E48\u0E1C\u0E39\u0E49\u0E19\u0E34\u0E22\ + \u0E21\u0E2A\u0E31\u0E08\u0E18\u0E23\u0E23\u0E21\u0E40\u0E0A\u0E34\u0E07\u0E23\ + \u0E38\u0E01\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E27\u0E48\u0E32\u0E23\u0E31\u0E10\ + \u0E40\u0E1B\u0E47\u0E19\u0E1C\u0E39\u0E49\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2D\ + \u0E33\u0E19\u0E32\u0E08\u0E2A\u0E39\u0E07\u0E2A\u0E38\u0E14" + input_correct_responses: + - D + input_question: "Defensive Realism \u0E41\u0E25\u0E30 Offensive Realism \u0E41\ + \u0E15\u0E01\u0E15\u0E48\u0E32\u0E07\u0E01\u0E31\u0E19\u0E2D\u0E22\u0E48\u0E32\ + \u0E07\u0E44\u0E23\u0E43\u0E19\u0E01\u0E32\u0E23\u0E2D\u0E18\u0E34\u0E1A\u0E32\ + \u0E22\u0E1E\u0E24\u0E15\u0E34\u0E01\u0E23\u0E23\u0E21\u0E02\u0E2D\u0E07\u0E23\ + \u0E31\u0E10" + - input_choice_list: + A: "\u0E42\u0E25\u0E01\u0E32\u0E20\u0E34\u0E27\u0E31\u0E15\u0E19\u0E4C\u0E17\ + \u0E33\u0E43\u0E2B\u0E49\u0E1C\u0E39\u0E49\u0E0A\u0E32\u0E22\u0E2D\u0E22\u0E48\ + \u0E32\u0E07\u0E40\u0E02\u0E32\u0E23\u0E27\u0E22\u0E40\u0E01\u0E34\u0E19\u0E44\ + \u0E1B" + B: "\u0E42\u0E25\u0E01\u0E32\u0E20\u0E34\u0E27\u0E31\u0E15\u0E19\u0E4C\u0E43\ + \u0E2B\u0E49\u0E1B\u0E23\u0E30\u0E42\u0E22\u0E0A\u0E19\u0E4C\u0E40\u0E09\u0E1E\ + \u0E32\u0E30\u0E1A\u0E32\u0E07\u0E23\u0E31\u0E10\u0E43\u0E19\u0E2D\u0E40\u0E21\ + \u0E23\u0E34\u0E01\u0E32 \u0E40\u0E0A\u0E48\u0E19 \u0E19\u0E34\u0E27\u0E22\ + \u0E2D\u0E23\u0E4C\u0E01" + C: "\u0E0A\u0E19\u0E0A\u0E31\u0E49\u0E19\u0E19\u0E33\u0E40\u0E2A\u0E23\u0E35\ + \u0E19\u0E34\u0E22\u0E21\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19\u0E42\ + \u0E25\u0E01\u0E32\u0E20\u0E34\u0E27\u0E31\u0E15\u0E19\u0E4C \u0E43\u0E19\u0E02\ + \u0E13\u0E30\u0E17\u0E35\u0E48 '\u0E04\u0E19\u0E2D\u0E40\u0E21\u0E23\u0E34\ + \u0E01\u0E31\u0E19\u0E17\u0E31\u0E48\u0E27\u0E44\u0E1B' \u0E15\u0E01\u0E07\ + \u0E32\u0E19\u0E40\u0E1E\u0E23\u0E32\u0E30\u0E21\u0E31\u0E19" + D: "\u0E42\u0E25\u0E01\u0E32\u0E20\u0E34\u0E27\u0E31\u0E15\u0E19\u0E4C\u0E01\ + \u0E23\u0E30\u0E15\u0E38\u0E49\u0E19\u0E43\u0E2B\u0E49\u0E40\u0E01\u0E34\u0E14\ + \u0E2A\u0E07\u0E04\u0E23\u0E32\u0E21\u0E01\u0E32\u0E23\u0E04\u0E49\u0E32\u0E17\ + \u0E35\u0E48\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E04\u0E27\u0E32\u0E21\u0E40\u0E2A\ + \u0E35\u0E22\u0E2B\u0E32\u0E22" + input_correct_responses: + - C + input_question: "\u0E42\u0E14\u0E19\u0E31\u0E25\u0E14\u0E4C \u0E17\u0E23\u0E31\ + \u0E21\u0E1B\u0E4C\u0E42\u0E08\u0E21\u0E15\u0E35\u0E42\u0E25\u0E01\u0E32\u0E20\ + \u0E34\u0E27\u0E31\u0E15\u0E19\u0E4C\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E44\u0E23\ + \u0E43\u0E19\u0E01\u0E32\u0E23\u0E2B\u0E32\u0E40\u0E2A\u0E35\u0E22\u0E07\u0E1B\ + \u0E35 2559" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_us_foreign_policy +tag: mmlu_th_llama_social_sciences_tasks +task: mmlu_th_llama_us_foreign_policy +task_alias: us_foreign_policy diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_virology.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_virology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..241b7cf0267fc1cbb1a06d25f37f4c5b164eb980 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_virology.yaml @@ -0,0 +1,97 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0E40\u0E1E\u0E23\u0E32\u0E30\u0E1E\u0E27\u0E01\u0E21\u0E31\u0E19\u0E44\ + \u0E21\u0E48\u0E21\u0E35\u0E01\u0E23\u0E14\u0E19\u0E34\u0E27\u0E04\u0E25\u0E35\ + \u0E2D\u0E34\u0E01" + B: "\u0E1E\u0E27\u0E01\u0E40\u0E02\u0E32\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\ + \u0E23\u0E44\u0E27\u0E23\u0E31\u0E2A\u0E15\u0E31\u0E27\u0E0A\u0E48\u0E27\u0E22" + C: "\u0E17\u0E33\u0E0B\u0E49\u0E33\u0E43\u0E19\u0E01\u0E32\u0E23\u0E41\u0E1A\ + \u0E48\u0E07\u0E40\u0E0B\u0E25\u0E25\u0E4C\u0E40\u0E17\u0E48\u0E32\u0E19\u0E31\ + \u0E49\u0E19" + D: "\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E23\u0E27\u0E21\u0E40\u0E02\u0E49\ + \u0E32\u0E01\u0E31\u0E1A\u0E42\u0E2E\u0E2A\u0E15\u0E4C\u0E42\u0E04\u0E23\u0E42\ + \u0E21\u0E42\u0E0B\u0E21\u0E44\u0E14\u0E49" + input_correct_responses: + - A + input_question: "\u0E40\u0E2B\u0E15\u0E38\u0E43\u0E14\u0E1E\u0E32\u0E23\u0E4C\u0E42\ + \u0E27\u0E44\u0E27\u0E23\u0E31\u0E2A\u0E08\u0E36\u0E07\u0E40\u0E1B\u0E47\u0E19\ + \u0E1B\u0E23\u0E2A\u0E34\u0E15\u0E17\u0E35\u0E48\u0E21\u0E35\u0E1C\u0E25\u0E01\ + \u0E23\u0E30\u0E17\u0E1A\u0E2A\u0E39\u0E07" + - input_choice_list: + A: "\u0E44\u0E27\u0E23\u0E31\u0E2A\u0E17\u0E35\u0E48\u0E40\u0E1B\u0E23\u0E32\ + \u0E30\u0E1A\u0E32\u0E07\u0E21\u0E31\u0E01\u0E21\u0E2D\u0E07\u0E40\u0E2B\u0E47\ + \u0E19\u0E44\u0E14\u0E49\u0E14\u0E49\u0E27\u0E22 RNA \u0E17\u0E35\u0E48\u0E1E\ + \u0E48\u0E19\u0E2D\u0E2D\u0E01\u0E21\u0E32\u0E08\u0E32\u0E01\u0E20\u0E32\u0E22\ + \u0E43\u0E19" + B: "\u0E22\u0E37\u0E14\u0E2D\u0E32\u0E22\u0E38\u0E44\u0E27\u0E23\u0E31\u0E2A" + C: "\u0E44\u0E27\u0E23\u0E31\u0E2A Icosahedral \u0E01\u0E31\u0E1A\u0E0B\u0E2D\ + \u0E07\u0E08\u0E14\u0E2B\u0E21\u0E32\u0E22" + D: "\u0E44\u0E27\u0E23\u0E31\u0E2A\u0E02\u0E19\u0E32\u0E14\u0E43\u0E2B\u0E0D\ + \u0E48\u0E21\u0E32\u0E01" + input_correct_responses: + - A + input_question: "\u0E02\u0E49\u0E2D\u0E43\u0E14\u0E04\u0E37\u0E2D\u0E25\u0E31\u0E01\ + \u0E29\u0E13\u0E30\u0E17\u0E32\u0E07\u0E2A\u0E31\u0E13\u0E10\u0E32\u0E19\u0E27\ + \u0E34\u0E17\u0E22\u0E32\u0E02\u0E2D\u0E07\u0E44\u0E27\u0E23\u0E31\u0E2A\u0E1E\ + \u0E32\u0E23\u0E32\u0E21\u0E34\u0E01\u0E42\u0E0B" + - input_choice_list: + A: "\u0E01\u0E32\u0E23\u0E40\u0E01\u0E47\u0E1A\u0E23\u0E27\u0E1A\u0E23\u0E27\ + \u0E21\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25" + B: "\u0E01\u0E32\u0E23\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E17\u0E35\u0E48\u0E40\ + \u0E01\u0E47\u0E1A\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E17\u0E32\ + \u0E07\u0E0A\u0E35\u0E27\u0E27\u0E34\u0E17\u0E22\u0E32" + C: "\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E19\u0E43\u0E08\u0E02\u0E2D\u0E07\u0E1C\ + \u0E39\u0E49\u0E40\u0E02\u0E49\u0E32\u0E23\u0E48\u0E27\u0E21" + D: "\u0E01\u0E32\u0E23\u0E08\u0E31\u0E14\u0E01\u0E32\u0E23\u0E41\u0E1A\u0E1A\ + \u0E2A\u0E2D\u0E1A\u0E16\u0E32\u0E21\u0E42\u0E14\u0E22\u0E40\u0E08\u0E49\u0E32\ + \u0E2B\u0E19\u0E49\u0E32\u0E17\u0E35\u0E48" + input_correct_responses: + - B + input_question: "\u0E1B\u0E31\u0E08\u0E08\u0E31\u0E22\u0E2A\u0E33\u0E04\u0E31\u0E0D\ + \u0E17\u0E35\u0E48\u0E2D\u0E33\u0E19\u0E27\u0E22\u0E04\u0E27\u0E32\u0E21\u0E2A\ + \u0E30\u0E14\u0E27\u0E01\u0E43\u0E19\u0E01\u0E32\u0E23\u0E1B\u0E23\u0E30\u0E22\ + \u0E38\u0E01\u0E15\u0E4C\u0E43\u0E0A\u0E49\u0E01\u0E23\u0E13\u0E35\u0E28\u0E36\ + \u0E01\u0E29\u0E32\u0E04\u0E27\u0E1A\u0E04\u0E38\u0E21\u0E41\u0E1A\u0E1A\u0E0B\ + \u0E49\u0E2D\u0E19\u0E08\u0E32\u0E01 MACS \u0E04\u0E37\u0E2D:" + - input_choice_list: + A: "\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E1E\u0E24\u0E15\u0E34\u0E01\ + \u0E23\u0E23\u0E21" + B: "\u0E04\u0E27\u0E32\u0E21\u0E04\u0E38\u0E49\u0E21\u0E04\u0E23\u0E2D\u0E07\ + \u0E17\u0E35\u0E48\u0E04\u0E23\u0E2D\u0E1A\u0E04\u0E25\u0E38\u0E21" + C: "\u0E01\u0E32\u0E23\u0E43\u0E0A\u0E49\u0E17\u0E24\u0E29\u0E0E\u0E35\u0E1E\ + \u0E24\u0E15\u0E34\u0E01\u0E23\u0E23\u0E21\u0E28\u0E32\u0E2A\u0E15\u0E23\u0E4C\ + \u0E2D\u0E22\u0E48\u0E32\u0E07\u0E21\u0E35\u0E1B\u0E23\u0E30\u0E2A\u0E34\u0E17\ + \u0E18\u0E34\u0E1C\u0E25" + D: "\u0E01\u0E32\u0E23\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E41\u0E1B\ + \u0E25\u0E07\u0E1E\u0E24\u0E15\u0E34\u0E01\u0E23\u0E23\u0E21\u0E17\u0E35\u0E48\ + \u0E22\u0E31\u0E48\u0E07\u0E22\u0E37\u0E19" + input_correct_responses: + - D + input_question: "\u0E40\u0E1B\u0E49\u0E32\u0E2B\u0E21\u0E32\u0E22\u0E17\u0E35\u0E48\ + \u0E2A\u0E33\u0E04\u0E31\u0E0D\u0E17\u0E35\u0E48\u0E2A\u0E38\u0E14\u0E02\u0E2D\ + \u0E07\u0E01\u0E32\u0E23\u0E41\u0E17\u0E23\u0E01\u0E41\u0E0B\u0E07\u0E17\u0E32\ + \u0E07\u0E1E\u0E24\u0E15\u0E34\u0E01\u0E23\u0E23\u0E21\u0E04\u0E37\u0E2D:" + - input_choice_list: + A: "\u0E1C\u0E39\u0E49\u0E15\u0E34\u0E14\u0E40\u0E0A\u0E37\u0E49\u0E2D HIV \u0E17\ + \u0E35\u0E48\u0E21\u0E35\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E38\u0E01" + B: "\u0E40\u0E0B\u0E42\u0E23\u0E40\u0E19\u0E01\u0E32\u0E17\u0E35\u0E1F" + C: "\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E42\u0E27\u0E04\u0E2D\u0E19\u0E40\u0E27\ + \u0E2D\u0E23\u0E4C\u0E40\u0E15\u0E2D\u0E23\u0E4C" + D: "\u0E0B\u0E35\u0E42\u0E23\u0E40\u0E19\u0E01\u0E32\u0E17\u0E35\u0E1F\u0E17\ + \u0E35\u0E48\u0E21\u0E35\u0E04\u0E27\u0E32\u0E21\u0E40\u0E2A\u0E35\u0E48\u0E22\ + \u0E07\u0E2A\u0E39\u0E07" + input_correct_responses: + - C + input_question: "\u0E04\u0E48\u0E32\u0E21\u0E31\u0E18\u0E22\u0E10\u0E32\u0E19\u0E02\ + \u0E2D\u0E07\u0E40\u0E27\u0E25\u0E32\u0E23\u0E2D\u0E14\u0E0A\u0E35\u0E27\u0E34\ + \u0E15\u0E15\u0E48\u0E2D\u0E42\u0E23\u0E04\u0E40\u0E2D\u0E14\u0E2A\u0E4C\u0E41\ + \u0E25\u0E30\u0E01\u0E32\u0E23\u0E40\u0E2A\u0E35\u0E22\u0E0A\u0E35\u0E27\u0E34\ + \u0E15\u0E16\u0E39\u0E01\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E02\u0E36\u0E49\u0E19\ + \u0E42\u0E14\u0E22:" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_virology +tag: mmlu_th_llama_other_tasks +task: mmlu_th_llama_virology +task_alias: virology diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_world_religions.yaml b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_world_religions.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1de3bcc3c25ad1b26a4daa5c9b0bb0a567768bf5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/mmlu_th_world_religions.yaml @@ -0,0 +1,68 @@ +fewshot_config: + sampler: first_n + samples: + - input_choice_list: + A: "\u0E2A\u0E32\u0E22\u0E23\u0E38\u0E49\u0E07" + B: "\u0E01\u0E32\u0E23\u0E02\u0E25\u0E34\u0E1A" + C: "\u0E25\u0E39\u0E01\u0E0A\u0E32\u0E22" + D: "\u0E1A\u0E32\u0E23\u0E4C\u0E21\u0E34\u0E15\u0E0B\u0E4C\u0E27\u0E32\u0E2B\ + \u0E4C" + input_correct_responses: + - B + input_question: "\u0E2D\u0E30\u0E44\u0E23\u0E04\u0E37\u0E2D\u0E2A\u0E31\u0E0D\u0E0D\ + \u0E32\u0E13\u0E02\u0E2D\u0E07\u0E1E\u0E31\u0E19\u0E18\u0E2A\u0E31\u0E0D\u0E0D\ + \u0E32\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E1C\u0E39\u0E49\u0E0A\u0E32\u0E22\ + \u0E0A\u0E32\u0E27\u0E22\u0E34\u0E27?" + - input_choice_list: + A: "\u0E1E\u0E23\u0E30\u0E18\u0E23\u0E23\u0E21" + B: "\u0E04\u0E13\u0E30\u0E2A\u0E07\u0E06\u0E4C" + C: "\u0E1E\u0E23\u0E30\u0E1E\u0E38\u0E17\u0E18\u0E40\u0E08\u0E49\u0E32" + D: "\u0E1E\u0E23\u0E30\u0E42\u0E1E\u0E18\u0E34\u0E2A\u0E31\u0E15\u0E27\u0E4C" + input_correct_responses: + - A + input_question: "\u0E2D\u0E31\u0E0D\u0E21\u0E13\u0E35\u0E17\u0E35\u0E48\u0E2A\u0E2D\ + \u0E07\u0E43\u0E19\u0E1E\u0E23\u0E30\u0E1E\u0E38\u0E17\u0E18\u0E28\u0E32\u0E2A\ + \u0E19\u0E32\u0E04\u0E37\u0E2D\u0E2D\u0E30\u0E44\u0E23?" + - input_choice_list: + A: "\u0E0B\u0E32\u0E07" + B: "\u0E42\u0E08\u0E27" + C: "\u0E2E\u0E31\u0E48\u0E19" + D: "\u0E40\u0E0B\u0E35\u0E48\u0E22" + input_correct_responses: + - B + input_question: "\u0E23\u0E32\u0E0A\u0E27\u0E07\u0E28\u0E4C\u0E43\u0E14\u0E17\u0E35\ + \u0E48 "\u0E2D\u0E32\u0E13\u0E31\u0E15\u0E34\u0E41\u0E2B\u0E48\u0E07\u0E2A\ + \u0E27\u0E23\u0E23\u0E04\u0E4C" \u0E1E\u0E31\u0E12\u0E19\u0E32\u0E02\u0E36\ + \u0E49\u0E19\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E17\u0E33\u0E43\u0E2B\u0E49\u0E1C\ + \u0E39\u0E49\u0E1B\u0E01\u0E04\u0E23\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E0A\ + \u0E2D\u0E1A\u0E18\u0E23\u0E23\u0E21?" + - input_choice_list: + A: "\u0E42\u0E2E\u0E40\u0E19\u0E47\u0E19" + B: "\u0E17\u0E32\u0E19\u0E32\u0E01\u0E30" + C: "\u0E42\u0E17\u0E04\u0E38\u0E01\u0E32\u0E27\u0E30" + D: "\u0E40\u0E21\u0E08\u0E34" + input_correct_responses: + - D + input_question: "\u0E23\u0E31\u0E10\u0E1A\u0E32\u0E25\u0E0D\u0E35\u0E48\u0E1B\u0E38\ + \u0E48\u0E19\u0E43\u0E14\u0E17\u0E35\u0E48\u0E2A\u0E48\u0E07\u0E40\u0E2A\u0E23\ + \u0E34\u0E21\u0E25\u0E31\u0E17\u0E18\u0E34\u0E1B\u0E23\u0E30\u0E08\u0E33\u0E0A\ + \u0E32\u0E15\u0E34\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E2B\u0E19\u0E36\u0E48\ + \u0E07\u0E15\u0E32\u0E21\u0E08\u0E31\u0E01\u0E23\u0E1E\u0E23\u0E23\u0E14\u0E34\ + \u0E41\u0E25\u0E30\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E31\u0E21\u0E1E\u0E31\u0E19\ + \u0E18\u0E4C\u0E02\u0E2D\u0E07\u0E40\u0E02\u0E32\u0E01\u0E31\u0E1A\u0E04\u0E32\ + \u0E21\u0E34" + - input_choice_list: + A: "\u0E15\u0E33\u0E23\u0E32\u0E1E\u0E34\u0E18\u0E35\u0E01\u0E23\u0E23\u0E21" + B: "\u0E15\u0E33\u0E23\u0E32\u0E1B\u0E23\u0E31\u0E0A\u0E0D\u0E32" + C: "\u0E40\u0E1E\u0E25\u0E07\u0E2A\u0E27\u0E14" + D: "\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E23\u0E32\u0E27\u0E15\u0E49\u0E19\ + \u0E01\u0E33\u0E40\u0E19\u0E34\u0E14" + input_correct_responses: + - B + input_question: "\u0E2D\u0E38\u0E1B\u0E19\u0E34\u0E29\u0E31\u0E17\u0E21\u0E35\u0E25\ + \u0E31\u0E01\u0E29\u0E13\u0E30\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E44\u0E23?" +include: _continuation_template_yaml +process_docs: !function utils.process_docs_world_religions +tag: mmlu_th_llama_humanities_tasks +task: mmlu_th_llama_world_religions +task_alias: world_religions diff --git a/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/utils.py b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..b633bcb77f5c4e2cf1c7a5b9c8e099c1a851b126 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/llama3/instruct/mmlu_th/utils.py @@ -0,0 +1,104 @@ +from functools import partial + +import datasets + + +def process_docs(dataset: datasets.Dataset, subtask) -> datasets.Dataset: + return dataset.filter( + lambda example: example["subtask_name"] == f"mmlu_th_chat.{subtask}" + ) + + +process_docs_electrical_engineering = partial( + process_docs, subtask="electrical_engineering" +) +process_docs_machine_learning = partial(process_docs, subtask="machine_learning") +process_docs_formal_logic = partial(process_docs, subtask="formal_logic") +process_docs_management = partial(process_docs, subtask="management") +process_docs_high_school_chemistry = partial( + process_docs, subtask="high_school_chemistry" +) +process_docs_business_ethics = partial(process_docs, subtask="business_ethics") +process_docs_security_studies = partial(process_docs, subtask="security_studies") +process_docs_econometrics = partial(process_docs, subtask="econometrics") +process_docs_international_law = partial(process_docs, subtask="international_law") +process_docs_high_school_macroeconomics = partial( + process_docs, subtask="high_school_macroeconomics" +) +process_docs_abstract_algebra = partial(process_docs, subtask="abstract_algebra") +process_docs_medical_genetics = partial(process_docs, subtask="medical_genetics") +process_docs_college_mathematics = partial(process_docs, subtask="college_mathematics") +process_docs_anatomy = partial(process_docs, subtask="anatomy") +process_docs_college_chemistry = partial(process_docs, subtask="college_chemistry") +process_docs_human_aging = partial(process_docs, subtask="human_aging") +process_docs_high_school_world_history = partial( + process_docs, subtask="high_school_world_history" +) +process_docs_high_school_physics = partial(process_docs, subtask="high_school_physics") +process_docs_college_physics = partial(process_docs, subtask="college_physics") +process_docs_conceptual_physics = partial(process_docs, subtask="conceptual_physics") +process_docs_high_school_computer_science = partial( + process_docs, subtask="high_school_computer_science" +) +process_docs_high_school_european_history = partial( + process_docs, subtask="high_school_european_history" +) +process_docs_high_school_psychology = partial( + process_docs, subtask="high_school_psychology" +) +process_docs_high_school_biology = partial(process_docs, subtask="high_school_biology") +process_docs_nutrition = partial(process_docs, subtask="nutrition") +process_docs_moral_scenarios = partial(process_docs, subtask="moral_scenarios") +process_docs_astronomy = partial(process_docs, subtask="astronomy") +process_docs_high_school_statistics = partial( + process_docs, subtask="high_school_statistics" +) +process_docs_moral_disputes = partial(process_docs, subtask="moral_disputes") +process_docs_global_facts = partial(process_docs, subtask="global_facts") +process_docs_prehistory = partial(process_docs, subtask="prehistory") +process_docs_high_school_mathematics = partial( + process_docs, subtask="high_school_mathematics" +) +process_docs_logical_fallacies = partial(process_docs, subtask="logical_fallacies") +process_docs_computer_security = partial(process_docs, subtask="computer_security") +process_docs_philosophy = partial(process_docs, subtask="philosophy") +process_docs_public_relations = partial(process_docs, subtask="public_relations") +process_docs_professional_accounting = partial( + process_docs, subtask="professional_accounting" +) +process_docs_professional_medicine = partial( + process_docs, subtask="professional_medicine" +) +process_docs_virology = partial(process_docs, subtask="virology") +process_docs_high_school_government_and_politics = partial( + process_docs, subtask="high_school_government_and_politics" +) +process_docs_world_religions = partial(process_docs, subtask="world_religions") +process_docs_sociology = partial(process_docs, subtask="sociology") +process_docs_jurisprudence = partial(process_docs, subtask="jurisprudence") +process_docs_high_school_geography = partial( + process_docs, subtask="high_school_geography" +) +process_docs_professional_law = partial(process_docs, subtask="professional_law") +process_docs_us_foreign_policy = partial(process_docs, subtask="us_foreign_policy") +process_docs_high_school_microeconomics = partial( + process_docs, subtask="high_school_microeconomics" +) +process_docs_human_sexuality = partial(process_docs, subtask="human_sexuality") +process_docs_miscellaneous = partial(process_docs, subtask="miscellaneous") +process_docs_professional_psychology = partial( + process_docs, subtask="professional_psychology" +) +process_docs_college_medicine = partial(process_docs, subtask="college_medicine") +process_docs_clinical_knowledge = partial(process_docs, subtask="clinical_knowledge") +process_docs_college_biology = partial(process_docs, subtask="college_biology") +process_docs_marketing = partial(process_docs, subtask="marketing") +process_docs_college_computer_science = partial( + process_docs, subtask="college_computer_science" +) +process_docs_high_school_us_history = partial( + process_docs, subtask="high_school_us_history" +) +process_docs_elementary_mathematics = partial( + process_docs, subtask="elementary_mathematics" +) diff --git a/lm-evaluation-harness/lm_eval/tasks/logiqa/logiqa.yaml b/lm-evaluation-harness/lm_eval/tasks/logiqa/logiqa.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3e318b7d16053ff28069b91edddea095c2f0ca36 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/logiqa/logiqa.yaml @@ -0,0 +1,23 @@ +task: logiqa +dataset_path: EleutherAI/logiqa +dataset_name: logiqa +output_type: multiple_choice +training_split: train +validation_split: validation +test_split: test +doc_to_choice: "{{options}}" +doc_to_text: !function utils_logiqa.doc_to_text +doc_to_target: !function utils_logiqa.doc_to_target +doc_to_decontamination_query: "{{context}}" +should_decontaminate: true +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true + - metric: acc_norm + aggregation: mean + higher_is_better: true +metadata: + version: 1.0 +dataset_kwargs: + trust_remote_code: true diff --git a/lm-evaluation-harness/lm_eval/tasks/logiqa2/README.md b/lm-evaluation-harness/lm_eval/tasks/logiqa2/README.md new file mode 100644 index 0000000000000000000000000000000000000000..a93054011b1baabd9d3a1b11afd90649d6c2e013 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/logiqa2/README.md @@ -0,0 +1,52 @@ +# LogiQA 2.0 + +### Paper + +LogiQA 2.0 — An Improved Dataset for Logical Reasoning in Natural Language Understanding https://ieeexplore.ieee.org/document/10174688 + + +The dataset is an amendment and re-annotation of LogiQA in 2020, a large-scale logical reasoning reading comprehension dataset adapted from the Chinese Civil Service Examination. This new version has an increased data size, the texts are refined with manual translation by professionals, and improved by removing items with distinctive cultural features like Chinese idioms. + +Furthermore, a two-way natural language inference (NLI) task is introduced, resulting in 35k premise-hypothesis pairs with gold labels, making it the first large-scale NLI dataset for complex logical reasoning + +Homepage: https://github.com/csitfun/LogiQA2.0 + +### Citation + +```bibtex +@ARTICLE{10174688, + author={Liu, Hanmeng and Liu, Jian and Cui, Leyang and Teng, Zhiyang and Duan, Nan and Zhou, Ming and Zhang, Yue}, + journal={IEEE/ACM Transactions on Audio, Speech, and Language Processing}, + title={LogiQA 2.0 — An Improved Dataset for Logical Reasoning in Natural Language Understanding}, + year={2023}, + volume={}, + number={}, + pages={1-16}, + doi={10.1109/TASLP.2023.3293046}} +``` + +### Groups and Tasks + +#### Groups + +* Not part of a group yet + +#### Tasks + +* `logiqa2_zh`: The original dataset in Chinese. +* `logiqa2_NLI`: The NLI version of the dataset converted from the MRC version. +* `logieval`: Prompt based; https://github.com/csitfun/LogiEval + +NOTE! The subtasks have not been verified yet. + +### 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? + * [x] The original paper does not. There is another implementation of this task, but it designed for instruction tuned models: https://github.com/csitfun/LogiEval + +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-evaluation-harness/lm_eval/tasks/logiqa2/logieval.yaml b/lm-evaluation-harness/lm_eval/tasks/logiqa2/logieval.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f83f274b658341c2b1f8685f47138f84d5830a82 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/logiqa2/logieval.yaml @@ -0,0 +1,29 @@ +task: logieval +dataset_path: baber/logiqa2 +dataset_name: logieval +output_type: generate_until +training_split: train +test_split: test +# Instructions + {content} +doc_to_text: "Instructions: You will be presented with a passage and a question about that passage. There are four options to be chosen from, you need to choose the only correct option to answer that question. If the first option is right, you generate the answer 'A', if the second option is right, you generate the answer 'B', if the third option is right, you generate the answer 'C', if the fourth option is right, you generate the answer 'D'. Read the question and options thoroughly and select the correct answer from the four answer labels. Read the passage thoroughly to ensure you know what the passage entails.\n{{content}}" +doc_to_target: "{{ideal}}" +metric_list: + - metric: exact_match + aggregation: mean + higher_is_better: true +generation_kwargs: + do_sample: false +num_fewshot: 1 +filter_list: + - name: "get-answer" + filter: + - function: "regex" + # starts with A-D excluding leading spaces + # original implementation uses a.startswith(b) + # https://github.com/openai/evals/blob/305b237cdb3884c7ddb6a5d12cb184a83551fcba/evals/api.py#L84 + regex_pattern: "^\\s*([A-D])" + - function: "take_first" +metadata: + version: 0.0 +dataset_kwargs: + trust_remote_code: true diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/2wikimqa_e.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/2wikimqa_e.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e9b5bf195f621986ddf9de02c3fb46fe68d5d17e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/2wikimqa_e.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench_e +task: longbench_2wikimqa_e +dataset_path: THUDM/LongBench +test_split: test +dataset_name: 2wikimqa_e +doc_to_text: 'Answer the question based on the given passages. Only give me the answer and do not output any other words.\n\nThe following are given passages.\n{{context}}\n\nAnswer the question based on the given passages. Only give me the answer and do not output any other words.\n\nQuestion: {{input}}\nAnswer:' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_qa_f1_score +generation_kwargs: + max_gen_toks: 32 + temperature: 1 + do_sample: True + until: [] +metric_list: + - metric: "qa_f1_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/_generate_config.py b/lm-evaluation-harness/lm_eval/tasks/longbench/_generate_config.py new file mode 100644 index 0000000000000000000000000000000000000000..2f2026c0c759ab92e7fcbd74d56686a2a945d14b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/_generate_config.py @@ -0,0 +1,221 @@ +# MIT License +# +# Copyright (c) 2023 THU-KEG & Zhipu AI +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + + +import argparse + +from jinja2 import Environment + + +dataset2maxlen = { + "narrativeqa": 128, + "qasper": 128, + "multifieldqa_en": 64, + "multifieldqa_zh": 64, + "hotpotqa": 32, + "2wikimqa": 32, + "musique": 32, + "dureader": 128, + "gov_report": 512, + "qmsum": 512, + "multi_news": 512, + "vcsum": 512, + "trec": 64, + "triviaqa": 32, + "samsum": 128, + "lsht": 64, + "passage_count": 32, + "passage_retrieval_en": 32, + "passage_retrieval_zh": 32, + "lcc": 64, + "repobench-p": 64, +} + +dataset2prompt = { + "narrativeqa": "You are given a story, which can be either a novel or a movie script, and a question. Answer the question asconcisely as you can, using a single phrase if possible. Do not provide any explanation.\n\nStory: {context}\n\nNow, answer the question based on the story asconcisely as you can, using a single phrase if possible. Do not provide any explanation.\n\nQuestion: {input}\n\nAnswer:", + "qasper": 'You are given a scientific article and a question. Answer the question as concisely as you can, using a single phrase or sentence if possible. If the question cannot be answered based on the information in the article, write "unanswerable". If the question is a yes/no question, answer "yes", "no", or "unanswerable". Do not provide any explanation.\n\nArticle: {context}\n\n Answer the question based on the above article as concisely as you can, using a single phrase or sentence if possible. If the question cannot be answered based on the information in the article, write "unanswerable". If the question is a yes/no question, answer "yes", "no", or "unanswerable". Do not provide any explanation.\n\nQuestion: {input}\n\nAnswer:', + "multifieldqa_en": "Read the following text and answer briefly.\n\n{context}\n\nNow, answer the following question based on the above text, only give me the answer and do not output any other words.\n\nQuestion: {input}\nAnswer:", + "multifieldqa_zh": "阅读以下文字并用中文简短回答:\n\n{context}\n\n现在请基于上面的文章回答下面的问题,只告诉我答案,不要输出任何其他字词。\n\n问题:{input}\n回答:", + "hotpotqa": "Answer the question based on the given passages. Only give me the answer and do not output any other words.\n\nThe following are given passages.\n{context}\n\nAnswer the question based on the given passages. Only give me the answer and do not output any other words.\n\nQuestion: {input}\nAnswer:", + "2wikimqa": "Answer the question based on the given passages. Only give me the answer and do not output any other words.\n\nThe following are given passages.\n{context}\n\nAnswer the question based on the given passages. Only give me the answer and do not output any other words.\n\nQuestion: {input}\nAnswer:", + "musique": "Answer the question based on the given passages. Only give me the answer and do not output any other words.\n\nThe following are given passages.\n{context}\n\nAnswer the question based on the given passages. Only give me the answer and do not output any other words.\n\nQuestion: {input}\nAnswer:", + "dureader": "请基于给定的文章回答下述问题。\n\n文章:{context}\n\n请基于上述文章回答下面的问题。\n\n问题:{input}\n回答:", + "gov_report": "You are given a report by a government agency. Write a one-page summary of the report.\n\nReport:\n{context}\n\nNow, write a one-page summary of the report.\n\nSummary:", + "qmsum": "You are given a meeting transcript and a query containing a question or instruction. Answer the query in one or more sentences.\n\nTranscript:\n{context}\n\nNow, answer the query based on the above meeting transcript in one or more sentences.\n\nQuery: {input}\nAnswer:", + "multi_news": "You are given several news passages. Write a one-page summary of all news. \n\nNews:\n{context}\n\nNow, write a one-page summary of all the news.\n\nSummary:", + "vcsum": "下面有一段会议记录,请你阅读后,写一段总结,总结会议的内容。\n会议记录:\n{context}\n\n会议总结:", + "trec": "Please determine the type of the question below. Here are some examples of questions.\n\n{context}\n{input}", + "triviaqa": "Answer the question based on the given passage. Only give me the answer and do not output any other words. The following are some examples.\n\n{context}\n\n{input}", + "samsum": "Summarize the dialogue into a few short sentences. The following are some examples.\n\n{context}\n\n{input}", + "lsht": "请判断给定新闻的类别,下面是一些例子。\n\n{context}\n{input}", + "passage_count": "There are some paragraphs below sourced from Wikipedia. Some of them may be duplicates. Please carefully read these paragraphs and determine how many unique paragraphs there are after removing duplicates. In other words, how many non-repeating paragraphs are there in total?\n\n{context}\n\nPlease enter the final count of unique paragraphs after removing duplicates. The output format should only contain the number, such as 1, 2, 3, and so on.\n\nThe final answer is: ", + "passage_retrieval_en": 'Here are 30 paragraphs from Wikipedia, along with an abstract. Please determine which paragraph the abstract is from.\n\n{context}\n\nThe following is an abstract.\n\n{input}\n\nPlease enter the number of the paragraph that the abstract is from. The answer format must be like "Paragraph 1", "Paragraph 2", etc.\n\nThe answer is: ', + "passage_retrieval_zh": '以下是若干段落文字,以及其中一个段落的摘要。请确定给定的摘要出自哪一段。\n\n{context}\n\n下面是一个摘要\n\n{input}\n\n请输入摘要所属段落的编号。答案格式必须是"段落1","段落2"等格式\n\n答案是:', + "lcc": "Please complete the code given below. \n{context}Next line of code:\n", + "repobench-p": "Please complete the code given below. \n{context}{input}Next line of code:\n", +} + +dataset2metric = { + "narrativeqa": "qa_f1_score", + "qasper": "qa_f1_score", + "multifieldqa_en": "qa_f1_score", + "multifieldqa_zh": "qa_f1_zh_score", + "hotpotqa": "qa_f1_score", + "2wikimqa": "qa_f1_score", + "musique": "qa_f1_score", + "dureader": "rouge_zh_score", + "gov_report": "rouge_score", + "qmsum": "rouge_score", + "multi_news": "rouge_score", + "vcsum": "rouge_zh_score", + "trec": "classification_score", + "triviaqa": "qa_f1_score", + "samsum": "rouge_score", + "lsht": "classification_score", + "passage_retrieval_en": "retrieval_score", + "passage_count": "count_score", + "passage_retrieval_zh": "retrieval_zh_score", + "lcc": "code_sim_score", + "repobench-p": "code_sim_score", +} + +DATASETS = [ + "2wikimqa", + "2wikimqa_e", + "dureader", + "gov_report", + "gov_report_e", + "hotpotqa", + "hotpotqa_e", + "lcc", + "lcc_e", + "lsht", + "multi_news", + "multi_news_e", + "multifieldqa_en", + "multifieldqa_en_e", + "multifieldqa_zh", + "musique", + "narrativeqa", + "passage_count", + "passage_count_e", + "passage_retrieval_en", + "passage_retrieval_en_e", + "passage_retrieval_zh", + "qasper", + "qasper_e", + "qmsum", + "repobench-p", + "repobench-p_e", + "samsum", + "samsum_e", + "trec", + "trec_e", + "triviaqa", + "triviaqa_e", + "vcsum", +] + + +def parse_args(): + parser = argparse.ArgumentParser() + parser.add_argument("--save_prefix_path", default="") + return parser.parse_args() + + +template_str = """ +tag: + - {{ tag[0] }} +task: {{ task }} +dataset_path: {{ dataset_path }} +test_split: {{ test_split }} +dataset_name: {{ dataset_name }} +doc_to_text: '{{ doc_to_text }}' +doc_to_target: '{{ doc_to_target }}' +process_results: {{ process_results }} +generation_kwargs: + max_gen_toks: {{ generation_kwargs.max_gen_toks }} + temperature: {{ generation_kwargs.temperature }} + do_sample: {{ generation_kwargs.do_sample }} + until: {% if has_newline %}["\\n"]{% else %}[]{% endif %} +metric_list: + - metric: {{ metric_list[0].metric }} + aggregation: {{ metric_list[0].aggregation }} + higher_is_better: {{ metric_list[0].higher_is_better }} +metadata: + version: {{ metadata.version }} +""" + + +if __name__ == "__main__": + args = parse_args() + env = Environment() + template = env.from_string(template_str) + for ds in DATASETS: + df = ds[:-2] if ds.endswith("_e") else ds + # from https://github.com/THUDM/LongBench/blob/2e00731f8d0bff23dc4325161044d0ed8af94c1e/LongBench/eval.py#L52C25-L52C29 + + # Now we just set a boolean flag to indicate whether we need a newline + has_newline = df in ["trec", "triviaqa", "samsum", "lsht"] + + generation_kwargs = { + "max_gen_toks": dataset2maxlen[df], + "temperature": 1, + "do_sample": True, + # We'll handle the until value directly in the template + } + + raw_doc_to_text = ( + dataset2prompt[df] + .replace("\n", "\\n") + .replace("{", "{{") + .replace("}", "}}") + ) + metric_list = [ + { + "metric": f'"{dataset2metric[df]}"', + "aggregation": "mean", + "higher_is_better": True, + } + ] + + data = { + "tag": ["longbench_e" if ds.endswith("_e") else "longbench"], + "task": f"longbench_{ds}", + "dataset_path": "THUDM/LongBench", + "test_split": "test", + "dataset_name": ds, + "doc_to_text": raw_doc_to_text, + "doc_to_target": "{{answers}}", + "process_results": f"!function metrics.get_{dataset2metric[df]}", + "generation_kwargs": generation_kwargs, + "has_newline": has_newline, # Add the flag to the template context + "metric_list": metric_list, + "metadata": {"version": "3.0"}, + } + + # Render template + rendered_yaml = template.render(**data) + + # Save to file + with open(args.save_prefix_path + f"{ds}.yaml", "w") as f: + f.write(rendered_yaml) diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/gov_report.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/gov_report.yaml new file mode 100644 index 0000000000000000000000000000000000000000..76307371574948b03daa548142a4eb5fc5957c39 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/gov_report.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench +task: longbench_gov_report +dataset_path: THUDM/LongBench +test_split: test +dataset_name: gov_report +doc_to_text: 'You are given a report by a government agency. Write a one-page summary of the report.\n\nReport:\n{{context}}\n\nNow, write a one-page summary of the report.\n\nSummary:' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_rouge_score +generation_kwargs: + max_gen_toks: 512 + temperature: 1 + do_sample: True + until: [] +metric_list: + - metric: "rouge_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/hotpotqa.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/hotpotqa.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5c567a33b690616cebf39118b524122eddf8ed27 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/hotpotqa.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench +task: longbench_hotpotqa +dataset_path: THUDM/LongBench +test_split: test +dataset_name: hotpotqa +doc_to_text: 'Answer the question based on the given passages. Only give me the answer and do not output any other words.\n\nThe following are given passages.\n{{context}}\n\nAnswer the question based on the given passages. Only give me the answer and do not output any other words.\n\nQuestion: {{input}}\nAnswer:' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_qa_f1_score +generation_kwargs: + max_gen_toks: 32 + temperature: 1 + do_sample: True + until: [] +metric_list: + - metric: "qa_f1_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/hotpotqa_e.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/hotpotqa_e.yaml new file mode 100644 index 0000000000000000000000000000000000000000..eff29cec394b59e402646d045f7d301006fddcfd --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/hotpotqa_e.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench_e +task: longbench_hotpotqa_e +dataset_path: THUDM/LongBench +test_split: test +dataset_name: hotpotqa_e +doc_to_text: 'Answer the question based on the given passages. Only give me the answer and do not output any other words.\n\nThe following are given passages.\n{{context}}\n\nAnswer the question based on the given passages. Only give me the answer and do not output any other words.\n\nQuestion: {{input}}\nAnswer:' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_qa_f1_score +generation_kwargs: + max_gen_toks: 32 + temperature: 1 + do_sample: True + until: [] +metric_list: + - metric: "qa_f1_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/lcc.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/lcc.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2129267d8e47f66277b0e5916675fd5426c20946 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/lcc.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench +task: longbench_lcc +dataset_path: THUDM/LongBench +test_split: test +dataset_name: lcc +doc_to_text: 'Please complete the code given below. \n{{context}}Next line of code:\n' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_code_sim_score +generation_kwargs: + max_gen_toks: 64 + temperature: 1 + do_sample: True + until: [] +metric_list: + - metric: "code_sim_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/lcc_e.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/lcc_e.yaml new file mode 100644 index 0000000000000000000000000000000000000000..74e673a94a26a6f167cebf8698f6ee958243841d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/lcc_e.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench_e +task: longbench_lcc_e +dataset_path: THUDM/LongBench +test_split: test +dataset_name: lcc_e +doc_to_text: 'Please complete the code given below. \n{{context}}Next line of code:\n' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_code_sim_score +generation_kwargs: + max_gen_toks: 64 + temperature: 1 + do_sample: True + until: [] +metric_list: + - metric: "code_sim_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/lsht.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/lsht.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4343413b62882a2d2275a7ca29455bf149ace547 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/lsht.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench +task: longbench_lsht +dataset_path: THUDM/LongBench +test_split: test +dataset_name: lsht +doc_to_text: '请判断给定新闻的类别,下面是一些例子。\n\n{{context}}\n{{input}}' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_classification_score +generation_kwargs: + max_gen_toks: 64 + temperature: 1 + do_sample: True + until: ["\n"] +metric_list: + - metric: "classification_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/metrics.py b/lm-evaluation-harness/lm_eval/tasks/longbench/metrics.py new file mode 100644 index 0000000000000000000000000000000000000000..79aab279b7f6eeea009ad22ab40e24c66b04fb78 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/metrics.py @@ -0,0 +1,276 @@ +# MIT License +# +# Copyright (c) 2023 THU-KEG & Zhipu AI +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + +import re +import string +from collections import Counter +from typing import Union + +try: + import jieba + from fuzzywuzzy import fuzz + from rouge import Rouge +except ImportError: + raise ImportError( + 'Please install the required dependencies for this task with `pip install lm_eval["longbench"] or `pip install jieba fuzzywuzzy rouge`' + ) + +# taken and slightly modified from https://github.com/THUDM/LongBench + + +def normalize_answer(s: str) -> str: + """Lower text and remove punctuation, articles and extra whitespace.""" + + def remove_articles(text): + return re.sub(r"\b(a|an|the)\b", " ", text) + + def white_space_fix(text): + return " ".join(text.split()) + + def remove_punc(text): + exclude = set(string.punctuation) + return "".join(ch for ch in text if ch not in exclude) + + def lower(text): + return text.lower() + + return white_space_fix(remove_articles(remove_punc(lower(s)))) + + +def normalize_zh_answer(s: str) -> str: + """Lower text and remove punctuation, extra whitespace.""" + + def white_space_fix(text): + return "".join(text.split()) + + def remove_punc(text): + cn_punctuation = "!?。。"#$%&'()*+,-/:;<=>@[\]^_`{|}~⦅⦆「」、、〃》「」『』【】〔〕〖〗〘〙〚〛〜〝〞〟〰〾〿–—‘’‛“”„‟…‧﹏." + all_punctuation = set(string.punctuation + cn_punctuation) + return "".join(ch for ch in text if ch not in all_punctuation) + + def lower(text): + return text.lower() + + return white_space_fix(remove_punc(lower(s))) + + +def count_score(prediction: str, ground_truth: str, **kwargs): + numbers = re.findall(r"\d+", prediction) + right_num = 0 + for number in numbers: + if str(number) == str(ground_truth): + right_num += 1 + final_score = 0.0 if len(numbers) == 0 else right_num / len(numbers) + return float(final_score) + + +def get_count_score(doc: dict, results: list[str], **kwargs): + output = 0.0 + prediction = results[0].strip() + for ground_truth in doc["answers"]: + score = count_score(prediction, ground_truth) + output = max(score, output) + return {"count_score": output} + + +def retrieval_score(prediction: str, ground_truth: str, **kwargs): + pattern = r"Paragraph (\d+)" + matches = re.findall(pattern, ground_truth) + ground_truth_id = matches[0] + numbers = re.findall(r"\d+", prediction) + right_num = 0 + for number in numbers: + if str(number) == str(ground_truth_id): + right_num += 1 + final_score = 0.0 if len(numbers) == 0 else right_num / len(numbers) + return float(final_score) + + +def get_retrieval_score(doc: dict, results: list[str], **kwargs): + output = 0.0 + prediction = results[0].strip() + for ground_truth in doc["answers"]: + score = retrieval_score(prediction, ground_truth) + output = max(score, output) + return {"retrieval_score": output} + + +def retrieval_zh_score(prediction: str, ground_truth: str, **kwargs): + pattern = r"段落(\d+)" + matches = re.findall(pattern, ground_truth) + ground_truth_id = matches[0] + numbers = re.findall(r"\d+", prediction) + right_num = 0 + for number in numbers: + if str(number) == str(ground_truth_id): + right_num += 1 + final_score = 0.0 if len(numbers) == 0 else right_num / len(numbers) + return float(final_score) + + +def get_retrieval_zh_score(doc: dict, results: list[str], **kwargs): + output = 0.0 + prediction = results[0].strip() + for ground_truth in doc["answers"]: + score = retrieval_zh_score(prediction, ground_truth) + output = max(score, output) + return {"retrieval_zh_score": output} + + +def code_sim_score(prediction: str, ground_truth: str, **kwargs): + all_lines = prediction.lstrip("\n").split("\n") + prediction = "" + for line in all_lines: + if ("`" not in line) and ("#" not in line) and ("//" not in line): + prediction = line + break + return fuzz.ratio(prediction, ground_truth) / 100 + + +def get_code_sim_score(doc: dict, results: list[str], **kwargs): + output = 0.0 + prediction = results[0] ## important! do not strip the prediction! + for ground_truth in doc["answers"]: + score = code_sim_score(prediction, ground_truth) + output = max(score, output) + return {"code_sim_score": output} + + +def classification_score(prediction: str, ground_truth: str, **kwargs): + em_match_list = [] + all_classes = kwargs["all_classes"] + for class_name in all_classes: + if class_name in prediction: + em_match_list.append(class_name) + for match_term in em_match_list: + if match_term in ground_truth and match_term != ground_truth: + em_match_list.remove(match_term) + if ground_truth in em_match_list: + score = 1.0 / len(em_match_list) + else: + score = 0.0 + return score + + +def get_classification_score(doc: dict, results: list[str]) -> dict: + output = 0.0 + prediction = results[0].strip() + for ground_truth in doc["answers"]: + score = classification_score( + prediction, ground_truth, all_classes=doc["all_classes"] + ) + output = max(score, output) + return {"classification_score": output} + + +def rouge_score(predictions: str, ground_truth: str, **kwargs) -> float: + global rouge + if "rouge" not in globals(): + rouge = Rouge() + try: + scores = rouge.get_scores([predictions], [ground_truth], avg=True) + # ruff: noqa + except: + return 0.0 + return scores["rouge-l"]["f"] + + +def get_rouge_score(doc: dict, results: list[str], **kwargs): + output = 0.0 + prediction = results[0].strip() + for ground_truth in doc["answers"]: + score = rouge_score(prediction, ground_truth) + output = max(score, output) + return {"rouge_score": output} + + +def rouge_zh_score(prediction: str, ground_truth: str, **kwargs): + prediction = " ".join(list(jieba.cut(prediction, cut_all=False))) + ground_truth = " ".join(list(jieba.cut(ground_truth, cut_all=False))) + score = rouge_score(prediction, ground_truth) + return score + + +def get_rouge_zh_score(doc, results, **kwargs): + output = 0.0 + prediction = results[0].strip() + for ground_truth in doc["answers"]: + score = rouge_zh_score(prediction, ground_truth) + output = max(score, output) + return {"rouge_zh_score": output} + + +def f1_score(prediction: Union[str, list], ground_truth: Union[str, list], **kwargs): + common = Counter(prediction) & Counter(ground_truth) + num_same = sum(common.values()) + if num_same == 0: + return 0 + precision = 1.0 * num_same / len(prediction) + recall = 1.0 * num_same / len(ground_truth) + f1 = (2 * precision * recall) / (precision + recall) + return f1 + + +def get_f1_score(doc: dict, results: list[str], **kwargs): + output = 0.0 + prediction = results[0].strip() + for ground_truth in doc["answers"]: + score = f1_score(prediction, ground_truth) + output = max(score, output) + return {"f1_score": output} + + +def qa_f1_score(prediction: str, ground_truth: str, **kwargs): + normalized_prediction = normalize_answer(prediction) + normalized_ground_truth = normalize_answer(ground_truth) + + prediction_tokens = normalized_prediction.split() + ground_truth_tokens = normalized_ground_truth.split() + return f1_score(prediction_tokens, ground_truth_tokens) + + +def qa_f1_zh_score(prediction: str, ground_truth: str, **kwargs): + prediction_tokens = list(jieba.cut(prediction, cut_all=False)) + ground_truth_tokens = list(jieba.cut(ground_truth, cut_all=False)) + prediction_tokens = [normalize_zh_answer(token) for token in prediction_tokens] + ground_truth_tokens = [normalize_zh_answer(token) for token in ground_truth_tokens] + prediction_tokens = [token for token in prediction_tokens if len(token) > 0] + ground_truth_tokens = [token for token in ground_truth_tokens if len(token) > 0] + return f1_score(prediction_tokens, ground_truth_tokens) + + +def get_qa_f1_score(doc: dict, results: list[str], **kwargs): + output = 0.0 + prediction = results[0].strip() + for ground_truth in doc["answers"]: + score = qa_f1_score(prediction, ground_truth) + output = max(score, output) + return {"qa_f1_score": output} + + +def get_qa_f1_zh_score(doc: dict, results: list[str], **kwargs): + output = 0.0 + prediction = results[0].strip() + for ground_truth in doc["answers"]: + score = qa_f1_zh_score(prediction, ground_truth) + output = max(score, output) + return {"qa_f1_zh_score": output} diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/multi_news.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/multi_news.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e1ae3f8cdea6191929f30ff89f27356595d1a643 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/multi_news.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench +task: longbench_multi_news +dataset_path: THUDM/LongBench +test_split: test +dataset_name: multi_news +doc_to_text: 'You are given several news passages. Write a one-page summary of all news. \n\nNews:\n{{context}}\n\nNow, write a one-page summary of all the news.\n\nSummary:' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_rouge_score +generation_kwargs: + max_gen_toks: 512 + temperature: 1 + do_sample: True + until: [] +metric_list: + - metric: "rouge_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/multifieldqa_en.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/multifieldqa_en.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e82b7c7e002469fa680b6bb69a6dd92acd1b9173 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/multifieldqa_en.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench +task: longbench_multifieldqa_en +dataset_path: THUDM/LongBench +test_split: test +dataset_name: multifieldqa_en +doc_to_text: 'Read the following text and answer briefly.\n\n{{context}}\n\nNow, answer the following question based on the above text, only give me the answer and do not output any other words.\n\nQuestion: {{input}}\nAnswer:' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_qa_f1_score +generation_kwargs: + max_gen_toks: 64 + temperature: 1 + do_sample: True + until: [] +metric_list: + - metric: "qa_f1_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/multifieldqa_en_e.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/multifieldqa_en_e.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5f64e97e97cdb37d922a5721698fdfc1fe3ffc2d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/multifieldqa_en_e.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench_e +task: longbench_multifieldqa_en_e +dataset_path: THUDM/LongBench +test_split: test +dataset_name: multifieldqa_en_e +doc_to_text: 'Read the following text and answer briefly.\n\n{{context}}\n\nNow, answer the following question based on the above text, only give me the answer and do not output any other words.\n\nQuestion: {{input}}\nAnswer:' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_qa_f1_score +generation_kwargs: + max_gen_toks: 64 + temperature: 1 + do_sample: True + until: [] +metric_list: + - metric: "qa_f1_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/multifieldqa_zh.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/multifieldqa_zh.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4a6eb9ed5ca4662fd55348dc43be7ba2170bb348 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/multifieldqa_zh.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench +task: longbench_multifieldqa_zh +dataset_path: THUDM/LongBench +test_split: test +dataset_name: multifieldqa_zh +doc_to_text: '阅读以下文字并用中文简短回答:\n\n{{context}}\n\n现在请基于上面的文章回答下面的问题,只告诉我答案,不要输出任何其他字词。\n\n问题:{{input}}\n回答:' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_qa_f1_zh_score +generation_kwargs: + max_gen_toks: 64 + temperature: 1 + do_sample: True + until: [] +metric_list: + - metric: "qa_f1_zh_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/musique.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/musique.yaml new file mode 100644 index 0000000000000000000000000000000000000000..89c3a4488035c2d546c737447a69e78c0f4d4027 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/musique.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench +task: longbench_musique +dataset_path: THUDM/LongBench +test_split: test +dataset_name: musique +doc_to_text: 'Answer the question based on the given passages. Only give me the answer and do not output any other words.\n\nThe following are given passages.\n{{context}}\n\nAnswer the question based on the given passages. Only give me the answer and do not output any other words.\n\nQuestion: {{input}}\nAnswer:' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_qa_f1_score +generation_kwargs: + max_gen_toks: 32 + temperature: 1 + do_sample: True + until: [] +metric_list: + - metric: "qa_f1_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/narrativeqa.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/narrativeqa.yaml new file mode 100644 index 0000000000000000000000000000000000000000..82b92fe29f74f7c65d3ccb2ea44b21d1ea56ba56 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/narrativeqa.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench +task: longbench_narrativeqa +dataset_path: THUDM/LongBench +test_split: test +dataset_name: narrativeqa +doc_to_text: 'You are given a story, which can be either a novel or a movie script, and a question. Answer the question asconcisely as you can, using a single phrase if possible. Do not provide any explanation.\n\nStory: {{context}}\n\nNow, answer the question based on the story asconcisely as you can, using a single phrase if possible. Do not provide any explanation.\n\nQuestion: {{input}}\n\nAnswer:' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_qa_f1_score +generation_kwargs: + max_gen_toks: 128 + temperature: 1 + do_sample: True + until: [] +metric_list: + - metric: "qa_f1_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/passage_count.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/passage_count.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a3160eaad3b1b6bbb2e449ec4669aa64dc3c0619 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/passage_count.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench +task: longbench_passage_count +dataset_path: THUDM/LongBench +test_split: test +dataset_name: passage_count +doc_to_text: 'There are some paragraphs below sourced from Wikipedia. Some of them may be duplicates. Please carefully read these paragraphs and determine how many unique paragraphs there are after removing duplicates. In other words, how many non-repeating paragraphs are there in total?\n\n{{context}}\n\nPlease enter the final count of unique paragraphs after removing duplicates. The output format should only contain the number, such as 1, 2, 3, and so on.\n\nThe final answer is: ' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_count_score +generation_kwargs: + max_gen_toks: 32 + temperature: 1 + do_sample: True + until: [] +metric_list: + - metric: "count_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/passage_count_e.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/passage_count_e.yaml new file mode 100644 index 0000000000000000000000000000000000000000..602ab400292ebbc7c0de101296a5e8ba7484d15b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/passage_count_e.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench_e +task: longbench_passage_count_e +dataset_path: THUDM/LongBench +test_split: test +dataset_name: passage_count_e +doc_to_text: 'There are some paragraphs below sourced from Wikipedia. Some of them may be duplicates. Please carefully read these paragraphs and determine how many unique paragraphs there are after removing duplicates. In other words, how many non-repeating paragraphs are there in total?\n\n{{context}}\n\nPlease enter the final count of unique paragraphs after removing duplicates. The output format should only contain the number, such as 1, 2, 3, and so on.\n\nThe final answer is: ' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_count_score +generation_kwargs: + max_gen_toks: 32 + temperature: 1 + do_sample: True + until: [] +metric_list: + - metric: "count_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/passage_retrieval_en.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/passage_retrieval_en.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b4e69378be49d39fabc2cce1b2d4be20dc417421 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/passage_retrieval_en.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench +task: longbench_passage_retrieval_en +dataset_path: THUDM/LongBench +test_split: test +dataset_name: passage_retrieval_en +doc_to_text: 'Here are 30 paragraphs from Wikipedia, along with an abstract. Please determine which paragraph the abstract is from.\n\n{{context}}\n\nThe following is an abstract.\n\n{{input}}\n\nPlease enter the number of the paragraph that the abstract is from. The answer format must be like "Paragraph 1", "Paragraph 2", etc.\n\nThe answer is: ' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_retrieval_score +generation_kwargs: + max_gen_toks: 32 + temperature: 1 + do_sample: True + until: [] +metric_list: + - metric: "retrieval_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/passage_retrieval_en_e.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/passage_retrieval_en_e.yaml new file mode 100644 index 0000000000000000000000000000000000000000..198115489dd7be1508e2d2b47d95d01ee24dba32 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/passage_retrieval_en_e.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench_e +task: longbench_passage_retrieval_en_e +dataset_path: THUDM/LongBench +test_split: test +dataset_name: passage_retrieval_en_e +doc_to_text: 'Here are 30 paragraphs from Wikipedia, along with an abstract. Please determine which paragraph the abstract is from.\n\n{{context}}\n\nThe following is an abstract.\n\n{{input}}\n\nPlease enter the number of the paragraph that the abstract is from. The answer format must be like "Paragraph 1", "Paragraph 2", etc.\n\nThe answer is: ' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_retrieval_score +generation_kwargs: + max_gen_toks: 32 + temperature: 1 + do_sample: True + until: [] +metric_list: + - metric: "retrieval_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/passage_retrieval_zh.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/passage_retrieval_zh.yaml new file mode 100644 index 0000000000000000000000000000000000000000..36bf8295ae1919c1983c376873f6e31ef2428cf8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/passage_retrieval_zh.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench +task: longbench_passage_retrieval_zh +dataset_path: THUDM/LongBench +test_split: test +dataset_name: passage_retrieval_zh +doc_to_text: '以下是若干段落文字,以及其中一个段落的摘要。请确定给定的摘要出自哪一段。\n\n{{context}}\n\n下面是一个摘要\n\n{{input}}\n\n请输入摘要所属段落的编号。答案格式必须是"段落1","段落2"等格式\n\n答案是:' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_retrieval_zh_score +generation_kwargs: + max_gen_toks: 32 + temperature: 1 + do_sample: True + until: [] +metric_list: + - metric: "retrieval_zh_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/qasper.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/qasper.yaml new file mode 100644 index 0000000000000000000000000000000000000000..44b40590028cf1d4141cb452a18742d0fbd0cf98 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/qasper.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench +task: longbench_qasper +dataset_path: THUDM/LongBench +test_split: test +dataset_name: qasper +doc_to_text: 'You are given a scientific article and a question. Answer the question as concisely as you can, using a single phrase or sentence if possible. If the question cannot be answered based on the information in the article, write "unanswerable". If the question is a yes/no question, answer "yes", "no", or "unanswerable". Do not provide any explanation.\n\nArticle: {{context}}\n\n Answer the question based on the above article as concisely as you can, using a single phrase or sentence if possible. If the question cannot be answered based on the information in the article, write "unanswerable". If the question is a yes/no question, answer "yes", "no", or "unanswerable". Do not provide any explanation.\n\nQuestion: {{input}}\n\nAnswer:' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_qa_f1_score +generation_kwargs: + max_gen_toks: 128 + temperature: 1 + do_sample: True + until: [] +metric_list: + - metric: "qa_f1_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/qasper_e.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/qasper_e.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e3808433cd179d53fe0b76574ce42763b4b4b5f8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/qasper_e.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench_e +task: longbench_qasper_e +dataset_path: THUDM/LongBench +test_split: test +dataset_name: qasper_e +doc_to_text: 'You are given a scientific article and a question. Answer the question as concisely as you can, using a single phrase or sentence if possible. If the question cannot be answered based on the information in the article, write "unanswerable". If the question is a yes/no question, answer "yes", "no", or "unanswerable". Do not provide any explanation.\n\nArticle: {{context}}\n\n Answer the question based on the above article as concisely as you can, using a single phrase or sentence if possible. If the question cannot be answered based on the information in the article, write "unanswerable". If the question is a yes/no question, answer "yes", "no", or "unanswerable". Do not provide any explanation.\n\nQuestion: {{input}}\n\nAnswer:' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_qa_f1_score +generation_kwargs: + max_gen_toks: 128 + temperature: 1 + do_sample: True + until: [] +metric_list: + - metric: "qa_f1_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/qmsum.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/qmsum.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8c922985ccce781d1b95c8c6c6e25d79f6aab16b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/qmsum.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench +task: longbench_qmsum +dataset_path: THUDM/LongBench +test_split: test +dataset_name: qmsum +doc_to_text: 'You are given a meeting transcript and a query containing a question or instruction. Answer the query in one or more sentences.\n\nTranscript:\n{{context}}\n\nNow, answer the query based on the above meeting transcript in one or more sentences.\n\nQuery: {{input}}\nAnswer:' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_rouge_score +generation_kwargs: + max_gen_toks: 512 + temperature: 1 + do_sample: True + until: [] +metric_list: + - metric: "rouge_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/repobench-p.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/repobench-p.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8413e1e68a689657fdc4df92bea49636400b5716 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/repobench-p.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench +task: longbench_repobench-p +dataset_path: THUDM/LongBench +test_split: test +dataset_name: repobench-p +doc_to_text: 'Please complete the code given below. \n{{context}}{{input}}Next line of code:\n' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_code_sim_score +generation_kwargs: + max_gen_toks: 64 + temperature: 1 + do_sample: True + until: [] +metric_list: + - metric: "code_sim_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/repobench-p_e.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/repobench-p_e.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2c0a55e0854bd28dfde86d566f7c4def1775635c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/repobench-p_e.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench_e +task: longbench_repobench-p_e +dataset_path: THUDM/LongBench +test_split: test +dataset_name: repobench-p_e +doc_to_text: 'Please complete the code given below. \n{{context}}{{input}}Next line of code:\n' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_code_sim_score +generation_kwargs: + max_gen_toks: 64 + temperature: 1 + do_sample: True + until: [] +metric_list: + - metric: "code_sim_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/samsum.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/samsum.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1e94d274745a9bb6f0fb7d4f174dde171a0b6438 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/samsum.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench +task: longbench_samsum +dataset_path: THUDM/LongBench +test_split: test +dataset_name: samsum +doc_to_text: 'Summarize the dialogue into a few short sentences. The following are some examples.\n\n{{context}}\n\n{{input}}' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_rouge_score +generation_kwargs: + max_gen_toks: 128 + temperature: 1 + do_sample: True + until: ["\n"] +metric_list: + - metric: "rouge_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/samsum_e.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/samsum_e.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9b3b1d5e3c9df352e522f3dba65c9753e73247fd --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/samsum_e.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench_e +task: longbench_samsum_e +dataset_path: THUDM/LongBench +test_split: test +dataset_name: samsum_e +doc_to_text: 'Summarize the dialogue into a few short sentences. The following are some examples.\n\n{{context}}\n\n{{input}}' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_rouge_score +generation_kwargs: + max_gen_toks: 128 + temperature: 1 + do_sample: True + until: ["\n"] +metric_list: + - metric: "rouge_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/trec.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/trec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..525a1f4db2cfb4b125f83ecd75c339b8d0c47173 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/trec.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench +task: longbench_trec +dataset_path: THUDM/LongBench +test_split: test +dataset_name: trec +doc_to_text: 'Please determine the type of the question below. Here are some examples of questions.\n\n{{context}}\n{{input}}' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_classification_score +generation_kwargs: + max_gen_toks: 64 + temperature: 1 + do_sample: True + until: ["\n"] +metric_list: + - metric: "classification_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/trec_e.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/trec_e.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ff6595b91e780913636325c27c700a14723f6cd4 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/trec_e.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench_e +task: longbench_trec_e +dataset_path: THUDM/LongBench +test_split: test +dataset_name: trec_e +doc_to_text: 'Please determine the type of the question below. Here are some examples of questions.\n\n{{context}}\n{{input}}' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_classification_score +generation_kwargs: + max_gen_toks: 64 + temperature: 1 + do_sample: True + until: ["\n"] +metric_list: + - metric: "classification_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/triviaqa.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/triviaqa.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d54cbab729fdb7874507940809d981b4eaca0ec7 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/triviaqa.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench +task: longbench_triviaqa +dataset_path: THUDM/LongBench +test_split: test +dataset_name: triviaqa +doc_to_text: 'Answer the question based on the given passage. Only give me the answer and do not output any other words. The following are some examples.\n\n{{context}}\n\n{{input}}' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_qa_f1_score +generation_kwargs: + max_gen_toks: 32 + temperature: 1 + do_sample: True + until: ["\n"] +metric_list: + - metric: "qa_f1_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/triviaqa_e.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/triviaqa_e.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ceac823fec264712db105fe4551f068e4b8fe16c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/triviaqa_e.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench_e +task: longbench_triviaqa_e +dataset_path: THUDM/LongBench +test_split: test +dataset_name: triviaqa_e +doc_to_text: 'Answer the question based on the given passage. Only give me the answer and do not output any other words. The following are some examples.\n\n{{context}}\n\n{{input}}' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_qa_f1_score +generation_kwargs: + max_gen_toks: 32 + temperature: 1 + do_sample: True + until: ["\n"] +metric_list: + - metric: "qa_f1_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/utils.py b/lm-evaluation-harness/lm_eval/tasks/longbench/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..98580e394e321cbddf01a89924eace96be728d0f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/utils.py @@ -0,0 +1,88 @@ +import argparse +import json +import os + +import numpy as np +from metrics import ( + # classification_score, + code_sim_score, + count_score, + qa_f1_score, + qa_f1_zh_score, + retrieval_score, + retrieval_zh_score, + rouge_score, + rouge_zh_score, +) + + +dataset2metric = { + "narrativeqa": qa_f1_score, + "qasper": qa_f1_score, + "multifieldqa_en": qa_f1_score, + "multifieldqa_zh": qa_f1_zh_score, + "hotpotqa": qa_f1_score, + "2wikimqa": qa_f1_score, + "musique": qa_f1_score, + "dureader": rouge_zh_score, + "gov_report": rouge_score, + "qmsum": rouge_score, + "multi_news": rouge_score, + "vcsum": rouge_zh_score, + # "trec": classification_score, + "triviaqa": qa_f1_score, + "samsum": rouge_score, + # "lsht": classification_score, + "passage_retrieval_en": retrieval_score, + "passage_count": count_score, + "passage_retrieval_zh": retrieval_zh_score, + "lcc": code_sim_score, + "repobench-p": code_sim_score, +} + +# def parse_args(args=None): +# parser = argparse.ArgumentParser() +# parser.add_argument('--model', type=str, default=None) +# parser.add_argument('--e', action='store_true', help="Evaluate on LongBench-E") +# return parser.parse_args(args) + + +def scorer_e(dataset, predictions, answers, lengths, all_classes): + scores = {"0-4k": [], "4-8k": [], "8k+": []} + for prediction, ground_truths, length in zip(predictions, answers, lengths): + score = 0.0 + if dataset in ["trec", "triviaqa", "samsum", "lsht"]: + prediction = prediction.lstrip("\n").split("\n")[0] + for ground_truth in ground_truths: + score = max( + score, + dataset2metric[dataset]( + prediction, ground_truth, all_classes=all_classes + ), + ) + if length < 4000: + scores["0-4k"].append(score) + elif length < 8000: + scores["4-8k"].append(score) + else: + scores["8k+"].append(score) + for key in scores.keys(): + scores[key] = round(100 * np.mean(scores[key]), 2) + return scores + + +def scorer(dataset, predictions, answers, all_classes): + total_score = 0.0 + for prediction, ground_truths in zip(predictions, answers): + score = 0.0 + if dataset in ["trec", "triviaqa", "samsum", "lsht"]: + prediction = prediction.lstrip("\n").split("\n")[0] + for ground_truth in ground_truths: + score = max( + score, + dataset2metric[dataset]( + prediction, ground_truth, all_classes=all_classes + ), + ) + total_score += score + return round(100 * total_score / len(predictions), 2) diff --git a/lm-evaluation-harness/lm_eval/tasks/longbench/vcsum.yaml b/lm-evaluation-harness/lm_eval/tasks/longbench/vcsum.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ba590f5bcec1ebd1c3f1f5e8f448e3d3e8c7876a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/longbench/vcsum.yaml @@ -0,0 +1,21 @@ + +tag: + - longbench +task: longbench_vcsum +dataset_path: THUDM/LongBench +test_split: test +dataset_name: vcsum +doc_to_text: '下面有一段会议记录,请你阅读后,写一段总结,总结会议的内容。\n会议记录:\n{{context}}\n\n会议总结:' +doc_to_target: '{{answers}}' +process_results: !function metrics.get_rouge_zh_score +generation_kwargs: + max_gen_toks: 512 + temperature: 1 + do_sample: True + until: [] +metric_list: + - metric: "rouge_zh_score" + aggregation: mean + higher_is_better: True +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/mastermind/README.md b/lm-evaluation-harness/lm_eval/tasks/mastermind/README.md new file mode 100644 index 0000000000000000000000000000000000000000..e0f8f0b6fece45552ddab506ae9b11db037ce61b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mastermind/README.md @@ -0,0 +1,68 @@ +# MastermindEval + +### Paper + +Title: MastermindEval: A Simple But Scalable Reasoning Benchmark + +Abstract: https://arxiv.org/abs/2503.05891 + +In Mastermind, the player has to deduce a hidden sequence of symbols by iteratively +guessing using the feedback provided by the game master. MastermindEval contains pre-played +games of the board game Mastermind using Knuth's algorithm. Each game is pre-played +until only one possible, valid solutions remains. The task is to derive the hidden +sequence of symbol by combining information provided in the prompt. We offer different +splits of varying difficulty: 24 (code length 2, 4 possible colors), 35 (code length 3, +5 possible colors) and 46 (code length 4, 6 possible colors). Each split comes in two +variants - easy and hard - containing either random codes as wrong answer options +or codes that are very close (only one symbol is changed) compared to the correct code. +We further offer an agentic evaluation in which the LLM plays the game from scratch here. + +GitHub repository: https://github.com/flairNLP/mastermind + + +### Citation + +``` +@inproceedings{ + golde2025mastermindeval, + title={MastermindEval: A Simple But Scalable Reasoning Benchmark}, + author={Jonas Golde and Patrick Haller and Fabio Barth and Alan Akbik}, + booktitle={Workshop on Reasoning and Planning for Large Language Models}, + year={2025}, + url={https://openreview.net/forum?id=H4donosutm} +} +``` + +### Groups, Tags, and Tasks + +#### Groups + +None. + +#### Tags + +* `mastermind`: Evaluates all settings. +* `mastermind_easy`: Evaluates all easy settings (random wrong answer options). +* `mastermind_hard`: Evaluates all hard settings (wrong answer options differ in one symbol from the secret code). + +#### Tasks + +* `mastermind_24_easy` +* `mastermind_24_hard` +* `mastermind_35_easy` +* `mastermind_35_hard` +* `mastermind_46_easy` +* `mastermind_46_hard` + +### Checklist + +For adding novel benchmarks/datasets to the library: +* [x] Is the task an existing benchmark in the literature? + * [x] Have you referenced the original paper that introduced the task? + * [ ] If yes, does the original paper provide a reference implementation? If so, have you checked against the reference implementation and documented how to run such a test? + + +If other tasks on this dataset are already supported: +* [ ] Is the "Main" variant of this task clearly denoted? +* [ ] 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-evaluation-harness/lm_eval/tasks/mastermind/mastermind_24_easy.yaml b/lm-evaluation-harness/lm_eval/tasks/mastermind/mastermind_24_easy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..679039695b9b5cae1a7d44f505c7f008d67d1990 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mastermind/mastermind_24_easy.yaml @@ -0,0 +1,21 @@ +tag: + - mastermind + - mastermind_easy +task: mastermind_24_easy +dataset_path: flair/mastermind_24_mcq_random +dataset_name: null +output_type: multiple_choice +training_split: train +validation_split: validation +test_split: test +doc_to_text: "{{instruction}}\n\nThe secret code is:" +doc_to_target: "{{options.label.index(answerKey)}}" +doc_to_choice: "{{options.text}}" +should_decontaminate: true +doc_to_decontamination_query: "{{instruction}}\n\nThe secret code is:" +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/mastermind/mastermind_24_hard.yaml b/lm-evaluation-harness/lm_eval/tasks/mastermind/mastermind_24_hard.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d0b3f80e06079341334c4c69b1a0b670cf252f63 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mastermind/mastermind_24_hard.yaml @@ -0,0 +1,21 @@ +tag: + - mastermind + - mastermind_hard +task: mastermind_24_hard +dataset_path: flair/mastermind_24_mcq_close +dataset_name: null +output_type: multiple_choice +training_split: train +validation_split: validation +test_split: test +doc_to_text: "{{instruction}}\n\nThe secret code is:" +doc_to_target: "{{options.label.index(answerKey)}}" +doc_to_choice: "{{options.text}}" +should_decontaminate: true +doc_to_decontamination_query: "{{instruction}}\n\nThe secret code is:" +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/mastermind/mastermind_35_easy.yaml b/lm-evaluation-harness/lm_eval/tasks/mastermind/mastermind_35_easy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..365d0652649c002f11f08b730085ce33e4933045 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mastermind/mastermind_35_easy.yaml @@ -0,0 +1,3 @@ +include: mastermind_24_easy.yaml +task: mastermind_35_easy +dataset_path: flair/mastermind_35_mcq_random diff --git a/lm-evaluation-harness/lm_eval/tasks/mastermind/mastermind_35_hard.yaml b/lm-evaluation-harness/lm_eval/tasks/mastermind/mastermind_35_hard.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ee63e297945a857e03fbe094db1350d777cc9837 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mastermind/mastermind_35_hard.yaml @@ -0,0 +1,3 @@ +include: mastermind_24_hard.yaml +task: mastermind_35_hard +dataset_path: flair/mastermind_35_mcq_close diff --git a/lm-evaluation-harness/lm_eval/tasks/mastermind/mastermind_46_easy.yaml b/lm-evaluation-harness/lm_eval/tasks/mastermind/mastermind_46_easy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f8b94302d9a214f39be43f5ff58d5f7e4b1f341d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mastermind/mastermind_46_easy.yaml @@ -0,0 +1,3 @@ +include: mastermind_24_easy.yaml +task: mastermind_46_easy +dataset_path: flair/mastermind_46_mcq_random diff --git a/lm-evaluation-harness/lm_eval/tasks/mastermind/mastermind_46_hard.yaml b/lm-evaluation-harness/lm_eval/tasks/mastermind/mastermind_46_hard.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bc9ea9c99582fe2e47be696b49c56e43d6bd8e97 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mastermind/mastermind_46_hard.yaml @@ -0,0 +1,3 @@ +include: mastermind_24_hard.yaml +task: mastermind_46_hard +dataset_path: flair/mastermind_46_mcq_close diff --git a/lm-evaluation-harness/lm_eval/tasks/mathqa/README.md b/lm-evaluation-harness/lm_eval/tasks/mathqa/README.md new file mode 100644 index 0000000000000000000000000000000000000000..6e7e3dbda409256afdd7493ee7862a0268eb9933 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mathqa/README.md @@ -0,0 +1,50 @@ +# MathQA + +### Paper + +MathQA: Towards Interpretable Math Word Problem Solving with Operation-Based Formalisms +https://arxiv.org/pdf/1905.13319.pdf + +MathQA is a large-scale dataset of 37k English multiple-choice math word problems +covering multiple math domain categories by modeling operation programs corresponding +to word problems in the AQuA dataset (Ling et al., 2017). + +Homepage: https://math-qa.github.io/math-QA/ + + +### Citation + +``` +@misc{amini2019mathqa, + title={MathQA: Towards Interpretable Math Word Problem Solving with Operation-Based Formalisms}, + author={Aida Amini and Saadia Gabriel and Peter Lin and Rik Koncel-Kedziorski and Yejin Choi and Hannaneh Hajishirzi}, + year={2019}, + eprint={1905.13319}, + archivePrefix={arXiv}, + primaryClass={cs.CL} +} +``` + +### Groups and Tasks + +#### Groups + +* `math_word_problems` + +#### Tasks + +* `mathqa`: The MathQA dataset, as a multiple choice dataset where the answer choices are not in context. + +### Checklist + +For adding novel benchmarks/datasets to the library: +* [x] Is the task an existing benchmark in the literature? + * [x] Have you referenced the original paper that introduced the task? + * [ ] If yes, does the original paper provide a reference implementation? If so, have you checked against the reference implementation and documented how to run such a test? + * The MathQA dataset predates transformer-based prompted LLMs. We should, however, return to this task to ensure equivalence to the non-CoT version of mathQA used in the Chain-of-Thought paper. + +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? +* [x] Have you noted which, if any, published evaluation setups are matched by this variant? + * [x] Checked for equivalence with v0.3.0 LM Evaluation Harness diff --git a/lm-evaluation-harness/lm_eval/tasks/mathqa/mathqa.yaml b/lm-evaluation-harness/lm_eval/tasks/mathqa/mathqa.yaml new file mode 100644 index 0000000000000000000000000000000000000000..23fc01d2e9d27c95fb7f742084aa4b6a938ae7ca --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mathqa/mathqa.yaml @@ -0,0 +1,22 @@ +tag: + - math_word_problems +task: mathqa +dataset_path: math_qa +output_type: multiple_choice +training_split: train +validation_split: validation +test_split: test +doc_to_text: "Question: {{Problem}}\nAnswer:" +doc_to_target: "{{['a', 'b', 'c', 'd', 'e'].index(correct)}}" +doc_to_choice: !function utils.doc_to_choice +should_decontaminate: true +doc_to_decontamination_query: "Question: {{Problem}}\nAnswer:" +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true + - metric: acc_norm + aggregation: mean + higher_is_better: true +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/mathqa/utils.py b/lm-evaluation-harness/lm_eval/tasks/mathqa/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..d44fb440bef9c3adcfe353d6028fe1531c7a77ed --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mathqa/utils.py @@ -0,0 +1,9 @@ +import re + + +def doc_to_choice(doc): + choices = [ + c[4:].rstrip(" ,") + for c in re.findall(r"[abcd] \) .*?, |e \) .*?$", doc["options"]) + ] + return choices diff --git a/lm-evaluation-harness/lm_eval/tasks/mbpp/README.md b/lm-evaluation-harness/lm_eval/tasks/mbpp/README.md new file mode 100644 index 0000000000000000000000000000000000000000..fd6df44fb76a1a9e017d60afc470200967696f19 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mbpp/README.md @@ -0,0 +1,43 @@ +# MBPP + +## Paper +Program Synthesis with Large Language Models +https://arxiv.org/abs/2108.07732 + +This paper explores the limits of the current generation of large language models for program synthesis in general purpose programming languages. We evaluate a collection of such models (with between 244M and 137B parameters) on two new benchmarks, MBPP and MathQA-Python, in both the few-shot and fine-tuning regimes. Our benchmarks are designed to measure the ability of these models to synthesize short Python programs from natural language descriptions. The Mostly Basic Programming Problems (MBPP) dataset contains 974 programming tasks, designed to be solvable by entry-level programmers. The MathQA-Python dataset, a Python version of the MathQA benchmark, contains 23914 problems that evaluate the ability of the models to synthesize code from more complex text. On both datasets, we find that synthesis performance scales log-linearly with model size. Our largest models, even without finetuning on a code dataset, can synthesize solutions to 59.6 percent of the problems from MBPP using few-shot learning with a well-designed prompt. Fine-tuning on a held-out portion of the dataset improves performance by about 10 percentage points across most model sizes. On the MathQA-Python dataset, the largest fine-tuned model achieves 83.8 percent accuracy. Going further, we study the model's ability to engage in dialog about code, incorporating human feedback to improve its solutions. We find that natural language feedback from a human halves the error rate compared to the model's initial prediction. Additionally, we conduct an error analysis to shed light on where these models fall short and what types of programs are most difficult to generate. Finally, we explore the semantic grounding of these models by fine-tuning them to predict the results of program execution. We find that even our best models are generally unable to predict the output of a program given a specific input. + +Homepage: https://github.com/google-research/google-research/tree/master/mbpp + + +## Citation +``` +@article{austin2021program, + title={Program synthesis with large language models}, + author={Austin, Jacob and Odena, Augustus and Nye, Maxwell and Bosma, Maarten and Michalewski, Henryk and Dohan, David and Jiang, Ellen and Cai, Carrie and Terry, Michael and Le, Quoc and others}, + journal={arXiv preprint arXiv:2108.07732}, + year={2021} +} +``` + +### Groups and Tasks + +#### Groups + +* Not part of a group yet. + +#### Tasks + +- `mbpp` + +### Checklist + +For adding novel benchmarks/datasets to the library: +* [x] Is the task an existing benchmark in the literature? + * [x] Have you referenced the original paper that introduced the task? + * [ ] If yes, does the original paper provide a reference implementation? If so, have you checked against the reference implementation and documented how to run such a test? + + +If other tasks on this dataset are already supported: +* [ ] Is the "Main" variant of this task clearly denoted? +* [ ] 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-evaluation-harness/lm_eval/tasks/mbpp/mbpp.yaml b/lm-evaluation-harness/lm_eval/tasks/mbpp/mbpp.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a5b58d900186cb127b26e3bd20f31d434abdeb2a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mbpp/mbpp.yaml @@ -0,0 +1,23 @@ +task: mbpp +dataset_path: google-research-datasets/mbpp +dataset_name: full +unsafe_code: true +output_type: generate_until +test_split: test +doc_to_text: "You are an expert Python programmer, and here is your task: {{text}} Your code should pass these tests:\n\n{{test_list[0]}}\n{{test_list[1]}}\n{{test_list[2]}}\n[BEGIN]\n" +doc_to_target: "{% if is_fewshot is defined %}{{code}}\n[DONE]{% else %}{{test_list[0]}}\n{{test_list[1]}}\n{{test_list[2]}}{% endif %}" +target_delimiter: "" +metric_list: + - metric: !function utils.pass_at_1 + aggregation: mean + higher_is_better: true +generation_kwargs: + until: + - "[DONE]" + do_sample: false +num_fewshot: 3 +fewshot_config: + sampler: first_n + samples: !function utils.list_fewshot_samples +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/mbpp/mbpp_instruct.yaml b/lm-evaluation-harness/lm_eval/tasks/mbpp/mbpp_instruct.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f2948075a7b0e8299f8f8e411865394c0ce8fea6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mbpp/mbpp_instruct.yaml @@ -0,0 +1,29 @@ +task: mbpp_instruct +dataset_path: google-research-datasets/mbpp +dataset_name: full +unsafe_code: true +output_type: generate_until +test_split: test +doc_to_text: "You are an expert Python programmer, and here is your task:\n{{text}}\nYour code should pass these tests:\n{{test_list[0]}}\n{{test_list[1]}}\n{{test_list[2]}}" +doc_to_target: "{% if is_fewshot is defined %}{{code}}\n```{% else %}{{test_list[0]}}\n{{test_list[1]}}\n{{test_list[2]}}{% endif %}" +gen_prefix: "\n```python\n" +target_delimiter: "" +metric_list: + - metric: !function utils.pass_at_1 + aggregation: mean + higher_is_better: true +filter_list: + - name: "extract_code" + filter: + - function: "custom" + filter_fn: !function utils.build_predictions +generation_kwargs: + max_gen_toks: 256 + until: [] + do_sample: false +num_fewshot: 3 +fewshot_config: + sampler: first_n + samples: !function utils.list_fewshot_samples +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/mbpp/mbpp_plus.yaml b/lm-evaluation-harness/lm_eval/tasks/mbpp/mbpp_plus.yaml new file mode 100644 index 0000000000000000000000000000000000000000..133c393c55e175ca958e5861cac91c8ec4f6beed --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mbpp/mbpp_plus.yaml @@ -0,0 +1,5 @@ +include: mbpp.yaml +task: mbpp_plus +dataset_path: evalplus/mbppplus +dataset_name: null +doc_to_text: "You are an expert Python programmer, and here is your task: {{prompt if prompt is defined else text}} Your code should pass these tests:\n\n{{test_list[0]}}\n{{test_list[1]}}\n{{test_list[2]}}\n[BEGIN]\n" diff --git a/lm-evaluation-harness/lm_eval/tasks/mbpp/mbpp_plus_instruct.yaml b/lm-evaluation-harness/lm_eval/tasks/mbpp/mbpp_plus_instruct.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7d12da0f83b34f21505b8d1830268f1989901aba --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mbpp/mbpp_plus_instruct.yaml @@ -0,0 +1,12 @@ +include: mbpp_instruct.yaml +task: mbpp_plus_instruct +dataset_path: evalplus/mbppplus +dataset_name: null +doc_to_text: "{{prompt if prompt is defined else text}} Your code should satisfy the following assertion:\n{{test_list[0]}}" +doc_to_target: "{{test_list[0]}}" +gen_prefix: "Here is a solution to this programming problem:\n```python\n" +num_fewshot: 0 +generation_kwargs: + max_gen_toks: 1024 + until: [] + do_sample: false diff --git a/lm-evaluation-harness/lm_eval/tasks/mbpp/utils.py b/lm-evaluation-harness/lm_eval/tasks/mbpp/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..c205a2320f5b88b21465b7667ea609004f0acb33 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mbpp/utils.py @@ -0,0 +1,86 @@ +import re +from typing import Union + +import evaluate as hf_evaluate + + +try: + pass_at_k = hf_evaluate.load("code_eval") + + # run simple test to check code execution is enabled before model generation + test_cases = ["assert add(2, 3)==5"] + candidates = [["def add(a,b): return a*b"]] + results = pass_at_k.compute(references=test_cases, predictions=candidates, k=[1]) +except Exception as e: + raise e + + +def pass_at_1( + references: Union[str, list[str]], predictions: Union[str, list[list[str]]] +) -> float: + if isinstance(references, str): + references = [references] + if isinstance(predictions[0], str): + predictions = [[p] for p in predictions] + return pass_at_k.compute( + references=references, + predictions=predictions, + k=[1], + )[0]["pass@1"] + + +def extract_code_blocks(text: str) -> str: + # Pattern to match ```...``` blocks + pattern = r"```(?:\w+)?\n?(.*?)\n?```" + # (+ ```) as we add the opening "```python" to the gen_prefix + matches = re.findall(pattern, r"```" + text, re.DOTALL) + # if no matches, try to match ```...``` blocks (after removing the language) + if not matches: + text_without_lang = re.sub(r"```python", "```", text) + matches = re.findall(pattern, text_without_lang, re.DOTALL) + if not matches: + return "" + else: + return matches[0] + + +def build_predictions(resps: list[list[str]], docs: list[dict]) -> list[list[str]]: + return [[extract_code_blocks(r) for r in resp] for resp in resps] + + +def list_fewshot_samples(): + return [ + { + "task_id": 2, + "text": "Write a function to find the similar elements from the given two tuple lists.", + "code": "def similar_elements(test_tup1, test_tup2):\r\n res = tuple(set(test_tup1) & set(test_tup2))\r\n return (res) ", + "test_list": [ + "assert similar_elements((3, 4, 5, 6),(5, 7, 4, 10)) == (4, 5)", + "assert similar_elements((1, 2, 3, 4),(5, 4, 3, 7)) == (3, 4)", + "assert similar_elements((11, 12, 14, 13),(17, 15, 14, 13)) == (13, 14)", + ], + "is_fewshot": True, + }, + { + "task_id": 3, + "text": "Write a python function to identify non-prime numbers.", + "code": "import math\r\ndef is_not_prime(n):\r\n result = False\r\n for i in range(2,int(math.sqrt(n)) + 1):\r\n if n % i == 0:\r\n result = True\r\n return result", + "test_list": [ + "assert is_not_prime(2) == False", + "assert is_not_prime(10) == True", + "assert is_not_prime(35) == True", + ], + "is_fewshot": True, + }, + { + "task_id": 4, + "text": "Write a function to find the largest integers from a given list of numbers using heap queue algorithm.", + "code": "import heapq as hq\r\ndef heap_queue_largest(nums,n):\r\n largest_nums = hq.nlargest(n, nums)\r\n return largest_nums", + "test_list": [ + "assert heap_queue_largest( [25, 35, 22, 85, 14, 65, 75, 22, 58],3)==[85, 75, 65] ", + "assert heap_queue_largest( [25, 35, 22, 85, 14, 65, 75, 22, 58],2)==[85, 75] ", + "assert heap_queue_largest( [25, 35, 22, 85, 14, 65, 75, 22, 58],5)==[85, 75, 65, 58, 35]", + ], + "is_fewshot": True, + }, + ] diff --git a/lm-evaluation-harness/lm_eval/tasks/mc_taco/README.md b/lm-evaluation-harness/lm_eval/tasks/mc_taco/README.md new file mode 100644 index 0000000000000000000000000000000000000000..2bab6369468ecead4f3cfae9964e3a04d5e06423 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mc_taco/README.md @@ -0,0 +1,53 @@ +# MC Taco + +### Paper + +Title: `"Going on a vacation" takes longer than "Going for a walk": A Study of Temporal Commonsense Understanding` +Abstract: https://arxiv.org/abs/1909.03065 + +MC-TACO is a dataset of 13k question-answer pairs that require temporal commonsense +comprehension. The dataset contains five temporal properties, (1) duration (how long +an event takes), (2) temporal ordering (typical order of events), (3) typical time +(when an event occurs), (4) frequency (how often an event occurs), and (5) stationarity +(whether a state is maintained for a very long time or indefinitely). + +WARNING: Running this task with a `--limit` arg will give misleading results! The +corresponding dataset is structured such that each multiple-choice-question gathered +by the authors is split into question-option pairs, where each such pair gets +siloed into an individual document for plausibility testing. Because the harness +shuffles these documents, setting `--limit` will likely "cut off" certain candidate +answers. This is a problem because the task's metrics require an exhaustive evaluation +of a question's options. See section 4 of the paper for details. + +Homepage: https://leaderboard.allenai.org/mctaco/submissions/public + + +### Citation + +``` +BibTeX-formatted citation goes here +``` + +### Groups and Tasks + +#### Groups + +* Not part of a group yet. + +#### Tasks + +* `mc_taco` + + +### Checklist + +For adding novel benchmarks/datasets to the library: +* [ ] Is the task an existing benchmark in the literature? + * [ ] Have you referenced the original paper that introduced the task? + * [ ] If yes, does the original paper provide a reference implementation? If so, have you checked against the reference implementation and documented how to run such a test? + + +If other tasks on this dataset are already supported: +* [ ] Is the "Main" variant of this task clearly denoted? +* [ ] 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-evaluation-harness/lm_eval/tasks/mc_taco/default.yaml b/lm-evaluation-harness/lm_eval/tasks/mc_taco/default.yaml new file mode 100644 index 0000000000000000000000000000000000000000..16aee3f7e76098acdd53ec88adf5cc078e3a5907 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mc_taco/default.yaml @@ -0,0 +1,15 @@ +task: mc_taco +dataset_path: mc_taco +output_type: multiple_choice +validation_split: validation +test_split: test +doc_to_text: "{{sentence}}\nQuestion: {{question}}\nAnswer: {{answer}}\nPlausible:" +doc_to_target: label +doc_to_choice: ["no", "yes"] +should_decontaminate: true +doc_to_decontamination_query: "{{question}} {{sentence}}" +metric_list: + - metric: acc + - metric: f1 +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/README.md b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/README.md new file mode 100644 index 0000000000000000000000000000000000000000..666d6446b108afaa2991ec8b3d6921ecc2b704d7 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/README.md @@ -0,0 +1,49 @@ +# MedConceptsQA + +### Paper + +Title: `MedConceptsQA: Open Source Medical Concepts QA Benchmark` + +Abstract: https://arxiv.org/abs/2405.07348 + +MedConceptsQA is a dedicated open source benchmark for medical concepts question answering. The benchmark comprises of questions of various medical concepts across different vocabularies: diagnoses, procedures, and drugs. + +The questions are categorized into three levels of difficulty: easy, medium, and hard. + +Our benchmark serves as a valuable resource for evaluating the +abilities of Large Language Models to interpret medical codes and distinguish +between medical concepts. + +### Citation + +``` +@article{shoham2024medconceptsqa, + title={MedConceptsQA--Open Source Medical Concepts QA Benchmark}, + author={Shoham, Ofir Ben and Rappoport, Nadav}, + journal={arXiv preprint arXiv:2405.07348}, + year={2024} +} +``` + +### Groups and Tasks + +#### Groups + +* `med_concepts_qa`: Contains all the QA tasks (diagnosis, procedures ,and drugs). + +#### Tasks + + +* `med_concepts_qa_icd9cm` - ICD9-CM (diagnosis codes, ICD9 format) question-answering. This involves providing information, clarifications, and answering questions related to ICD-9-CM (International Classification of Diseases, 9th Revision, Clinical Modification) diagnosis codes. + + +* `med_concepts_qa_icd10cm` - ICD10-CM (diagnosis codes, ICD10 format) question-answering. This involves providing information, clarifications, and answering questions related to ICD-10-CM (International Classification of Diseases, 10th Revision, Clinical Modification) diagnosis codes. + + +* `med_concepts_qa_icd9proc` - ICD9-Proc (procedure codes, ICD9 format) question-answering. This involves providing information, clarifications, and answering questions related to ICD-9-PCS (International Classification of Diseases, 9th Revision, Procedure Coding System) procedure codes. + + +* `med_concepts_qa_icd10proc` - ICD10-Proc (procedure codes, ICD10 format) question-answering. This involves providing information, clarifications, and answering questions related to ICD-10-PCS (International Classification of Diseases, 10th Revision, Procedure Coding System) procedure codes. + + +* `med_concepts_qa_atc` - ATC (Anatomical Therapeutic Chemical Classification System) question-answering. This involves providing information, clarifications, and answering questions related to the ATC classification system, which is used for the classification of drugs and other medical products according to the organ or system on which they act and their therapeutic, pharmacological, and chemical properties. diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_default_template_yaml b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_default_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..0fb527557dd3906b1ec51a83d0ddbfa48da815e2 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_default_template_yaml @@ -0,0 +1,17 @@ +dataset_path: ofir408/MedConceptsQA +output_type: multiple_choice +description: "Answer A,B,C,D according to the answer to this multiple choice question.\n" +fewshot_split: dev +fewshot_config: + sampler: first_n +num_fewshot: 4 +test_split: test +doc_to_text: "{{question}}\nAnswer:" +doc_to_target: answer_id +doc_to_choice: ['A', 'B', 'C', 'D'] +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_generate_configs.py b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_generate_configs.py new file mode 100644 index 0000000000000000000000000000000000000000..fd81edbbd0a6d74efe2ea68f04210bfaaef72661 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_generate_configs.py @@ -0,0 +1,34 @@ +from typing import List + +import yaml + + +def generate_yaml_content(vocab_name: str, level: str): + content = { + "dataset_name": f"{vocab_name}_{level}", + "tag": f"med_concepts_qa_{vocab_name}_tasks", + "include": "_default_template_yaml", + "task": f"med_concepts_qa_{vocab_name}_{level}", + "task_alias": f"{vocab_name}_{level}", + } + return content + + +def generate_yaml_files( + vocab_names: List[str], levels: List[str], file_name_prefix: str +): + for vocab_name in vocab_names: + for level in levels: + yaml_content = generate_yaml_content(vocab_name, level) + filename = f"{file_name_prefix}_{vocab_name}_{level}.yaml" + with open(filename, "w") as yaml_file: + yaml.dump(yaml_content, yaml_file, default_flow_style=False) + print(f"Done to generated {filename}") + + +if __name__ == "__main__": + generate_yaml_files( + vocab_names=["icd9cm", "icd10cm", "icd9proc", "icd10proc", "atc"], + levels=["easy", "medium", "hard"], + file_name_prefix="med_concepts_qa", + ) diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_med_concepts_qa.yaml b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_med_concepts_qa.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c737127f986f3fb2a85fcbfd7e167587563de0f9 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_med_concepts_qa.yaml @@ -0,0 +1,10 @@ +group: med_concepts_qa +task: + - med_concepts_qa_icd9cm + - med_concepts_qa_icd10cm + - med_concepts_qa_icd9proc + - med_concepts_qa_icd10proc + - med_concepts_qa_atc +aggregate_metric_list: + - metric: acc + aggregation: mean diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_med_concepts_qa_atc.yaml b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_med_concepts_qa_atc.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2e34ad36c296e9b1e39b5445dc9da8bc640245a4 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_med_concepts_qa_atc.yaml @@ -0,0 +1,6 @@ +group: med_concepts_qa_atc +task: + - med_concepts_qa_atc_tasks +aggregate_metric_list: + - metric: acc + aggregation: mean diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_med_concepts_qa_icd10cm.yaml b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_med_concepts_qa_icd10cm.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c4afc1bdfe7c9bf453ebed1fa38f21f94e6906ad --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_med_concepts_qa_icd10cm.yaml @@ -0,0 +1,6 @@ +group: med_concepts_qa_icd10cm +task: + - med_concepts_qa_icd10cm_tasks +aggregate_metric_list: + - metric: acc + aggregation: mean diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_med_concepts_qa_icd10proc.yaml b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_med_concepts_qa_icd10proc.yaml new file mode 100644 index 0000000000000000000000000000000000000000..407ea4088df28c4370f2797adb47c01b440caebc --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_med_concepts_qa_icd10proc.yaml @@ -0,0 +1,6 @@ +group: med_concepts_qa_icd10proc +task: + - med_concepts_qa_icd10proc_tasks +aggregate_metric_list: + - metric: acc + aggregation: mean diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_med_concepts_qa_icd9cm.yaml b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_med_concepts_qa_icd9cm.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b12ea811ff26631e65c9dd9cb42b56b1c0c7dba1 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_med_concepts_qa_icd9cm.yaml @@ -0,0 +1,6 @@ +group: med_concepts_qa_icd9cm +task: + - med_concepts_qa_icd9cm_tasks +aggregate_metric_list: + - metric: acc + aggregation: mean diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_med_concepts_qa_icd9proc.yaml b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_med_concepts_qa_icd9proc.yaml new file mode 100644 index 0000000000000000000000000000000000000000..94fc034eb20a8db04d2caf4d027e81be947ebf46 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/_med_concepts_qa_icd9proc.yaml @@ -0,0 +1,6 @@ +group: med_concepts_qa_icd9proc +task: + - med_concepts_qa_icd9proc_tasks +aggregate_metric_list: + - metric: acc + aggregation: mean diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_atc_easy.yaml b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_atc_easy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..be2f62a1dc4e3106b1ea6f33a1286b1358f5df5e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_atc_easy.yaml @@ -0,0 +1,5 @@ +dataset_name: atc_easy +include: _default_template_yaml +tag: med_concepts_qa_atc_tasks +task: med_concepts_qa_atc_easy +task_alias: atc_easy diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_atc_hard.yaml b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_atc_hard.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a54d27d97690886c2d0fb716b48dd0daf1a4bbab --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_atc_hard.yaml @@ -0,0 +1,5 @@ +dataset_name: atc_hard +include: _default_template_yaml +tag: med_concepts_qa_atc_tasks +task: med_concepts_qa_atc_hard +task_alias: atc_hard diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_atc_medium.yaml b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_atc_medium.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e0b64ac85ba3435b9c7f3b4912225a2703358e6b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_atc_medium.yaml @@ -0,0 +1,5 @@ +dataset_name: atc_medium +include: _default_template_yaml +tag: med_concepts_qa_atc_tasks +task: med_concepts_qa_atc_medium +task_alias: atc_medium diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10cm_easy.yaml b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10cm_easy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0fe8da7ddd08f2b8a51777f06c359ef32f7c2106 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10cm_easy.yaml @@ -0,0 +1,5 @@ +dataset_name: icd10cm_easy +include: _default_template_yaml +tag: med_concepts_qa_icd10cm_tasks +task: med_concepts_qa_icd10cm_easy +task_alias: icd10cm_easy diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10cm_hard.yaml b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10cm_hard.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2b291b0eb42fad609ea3e49a384f8fd55a48ff71 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10cm_hard.yaml @@ -0,0 +1,5 @@ +dataset_name: icd10cm_hard +include: _default_template_yaml +tag: med_concepts_qa_icd10cm_tasks +task: med_concepts_qa_icd10cm_hard +task_alias: icd10cm_hard diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10cm_medium.yaml b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10cm_medium.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b1678fa311b550bc04430235059ad54327ec0ecf --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10cm_medium.yaml @@ -0,0 +1,5 @@ +dataset_name: icd10cm_medium +include: _default_template_yaml +tag: med_concepts_qa_icd10cm_tasks +task: med_concepts_qa_icd10cm_medium +task_alias: icd10cm_medium diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10proc_easy.yaml b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10proc_easy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..301f559d7c1cef808e880a809f2a0a91ad9ca227 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10proc_easy.yaml @@ -0,0 +1,5 @@ +dataset_name: icd10proc_easy +include: _default_template_yaml +tag: med_concepts_qa_icd10proc_tasks +task: med_concepts_qa_icd10proc_easy +task_alias: icd10proc_easy diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10proc_hard.yaml b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10proc_hard.yaml new file mode 100644 index 0000000000000000000000000000000000000000..15efafba09f82bd8e987356511443329538ac594 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10proc_hard.yaml @@ -0,0 +1,5 @@ +dataset_name: icd10proc_hard +include: _default_template_yaml +tag: med_concepts_qa_icd10proc_tasks +task: med_concepts_qa_icd10proc_hard +task_alias: icd10proc_hard diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10proc_medium.yaml b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10proc_medium.yaml new file mode 100644 index 0000000000000000000000000000000000000000..648bd46075de41e4ccf7b34882990772928123f7 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd10proc_medium.yaml @@ -0,0 +1,5 @@ +dataset_name: icd10proc_medium +include: _default_template_yaml +tag: med_concepts_qa_icd10proc_tasks +task: med_concepts_qa_icd10proc_medium +task_alias: icd10proc_medium diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9cm_easy.yaml b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9cm_easy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..514a9e258614aaa29e32f2c5bc3d54318175d837 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9cm_easy.yaml @@ -0,0 +1,5 @@ +dataset_name: icd9cm_easy +include: _default_template_yaml +tag: med_concepts_qa_icd9cm_tasks +task: med_concepts_qa_icd9cm_easy +task_alias: icd9cm_easy diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9cm_hard.yaml b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9cm_hard.yaml new file mode 100644 index 0000000000000000000000000000000000000000..41d0fd5534743ba4a8919c0622e119c383b05588 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9cm_hard.yaml @@ -0,0 +1,5 @@ +dataset_name: icd9cm_hard +include: _default_template_yaml +tag: med_concepts_qa_icd9cm_tasks +task: med_concepts_qa_icd9cm_hard +task_alias: icd9cm_hard diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9cm_medium.yaml b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9cm_medium.yaml new file mode 100644 index 0000000000000000000000000000000000000000..90f93f9bc2b520186a98c923dd7cf49d58a5293b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9cm_medium.yaml @@ -0,0 +1,5 @@ +dataset_name: icd9cm_medium +include: _default_template_yaml +tag: med_concepts_qa_icd9cm_tasks +task: med_concepts_qa_icd9cm_medium +task_alias: icd9cm_medium diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9proc_easy.yaml b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9proc_easy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..459fa464ffead9d78810394484ca8cc49cf67d18 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9proc_easy.yaml @@ -0,0 +1,5 @@ +dataset_name: icd9proc_easy +include: _default_template_yaml +tag: med_concepts_qa_icd9proc_tasks +task: med_concepts_qa_icd9proc_easy +task_alias: icd9proc_easy diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9proc_hard.yaml b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9proc_hard.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5424623c308011cf0891a83ca7bbd9a971e26a0d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9proc_hard.yaml @@ -0,0 +1,5 @@ +dataset_name: icd9proc_hard +include: _default_template_yaml +tag: med_concepts_qa_icd9proc_tasks +task: med_concepts_qa_icd9proc_hard +task_alias: icd9proc_hard diff --git a/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9proc_medium.yaml b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9proc_medium.yaml new file mode 100644 index 0000000000000000000000000000000000000000..843029209916822a306e11e2795568a757cc4b2a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_concepts_qa/med_concepts_qa_icd9proc_medium.yaml @@ -0,0 +1,5 @@ +dataset_name: icd9proc_medium +include: _default_template_yaml +tag: med_concepts_qa_icd9proc_tasks +task: med_concepts_qa_icd9proc_medium +task_alias: icd9proc_medium diff --git a/lm-evaluation-harness/lm_eval/tasks/med_prescriptions/med_prescriptions_easy.yaml b/lm-evaluation-harness/lm_eval/tasks/med_prescriptions/med_prescriptions_easy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c9b84f916b1c2db9cd62e391adc6c48172f72cf5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_prescriptions/med_prescriptions_easy.yaml @@ -0,0 +1,20 @@ +group: med_prescriptions +task: med_prescriptions_easy +dataset_path: devlocalhost/prescription-full +output_type: multiple_choice +training_split: train +validation_split: train +test_split: train +process_docs: !function utils.process_docs +doc_to_text: !function utils.doc_to_text_easy +doc_to_choice: !function utils.doc_to_choice_easy +doc_to_target: !function utils.doc_to_target +generation_kwargs: + until: + - "\n\n" +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/med_prescriptions/med_prescriptions_hard.yaml b/lm-evaluation-harness/lm_eval/tasks/med_prescriptions/med_prescriptions_hard.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e7063ec279e4d5e7561c0e5cd68968a6959862ce --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_prescriptions/med_prescriptions_hard.yaml @@ -0,0 +1,4 @@ +include: med_prescriptions_easy.yaml +task: med_prescriptions_hard +doc_to_text: !function utils.doc_to_text_hard +doc_to_choice: !function utils.doc_to_choice_hard diff --git a/lm-evaluation-harness/lm_eval/tasks/med_prescriptions/utils.py b/lm-evaluation-harness/lm_eval/tasks/med_prescriptions/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..1d68a10e55836493b0cacbae348c45f0126d4d64 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_prescriptions/utils.py @@ -0,0 +1,2365 @@ +import ast +import random +import re + +import datasets + + +full_med_list = [ + "Cap Pregabalin, before breakfast and dinner, 1 week", + "Etoshivic 90mg, before breakfast, 1 month", + "Lyse, before breakfast, 1 month", + "EBAST M TAB, after food, 15 days", + "AZEE 500MG TAB, after food, 5 days", + "VOLTOP DSR TAB, before food, 5 days", + "ASCORIL D PLUS SYP, after food, 5 days", + "Sup. Afinal SR", + "ECOSPIRIN 75mg, daily, 3 months", + "OMEZ 20mg, daily, more than 1 month", + "TAMDURA OD, daily, more than 3 months", + "TELMA-CT 40/6-25, daily, 3 months", + "Col, once a day, 4 days", + "Syrup Allegra, once a day, 4 days", + "Atarax liquid, 1-0-1, 12 nights", + "Atogla Cream, 1-0-1, 15 days", + "Mox Mar 17, 1-0-1, 7 days", + "Paracetamol, 3 times a day, 6 days", + "Tassolure, 1 time a day, 6 days", + "Taloplex, 1 time a day, 6 days", + "Amoxicillin 625 mg, after breakfast and after dinner, 4 days", + "NA", + "NA", + "NA", + "Gabapin 300, before breakfast and before dinner, 20 days", + "Hosit Ds, before breakfast and before dinner, 20 days", + "T. Rifametrosy, x 5b", + "T. Anxipan", + "Ramitorva, bbf", + "Nerve-D", + "Glucobay M (25/500), al ad", + "Dapanormis (10/100), abf", + "Pioz (7.5), bbf", + "Cyblex M (80), bb, bl, bd", + "Syrup Paracetamol, morning, afternoon, night, 5 day(s)", + "Syrup LactobacillusRiboflavin, morning, afternoon, night, use if there is a need", + "Syrup Metanemic Acid, night, 3 day(s)", + "Syrup, morning, afternoon, night, 3 day(s)", + "Syrup Fexofenadine, morning, night, after food", + "PAN 40, morning and night, 2 months", + "Elsoud, night, 2 months", + "Ado, morning and night, 2 months", + "PAN 40, morning and night, 3 to 4 days", + "paracetamol, morning and night, 3 to 4 days", + "Guckelar spen, �5 /ar", + "Rmal Sy, x5la", + "Zincilokal. SI, e- e gez", + "Tab Letsi 2.5 mg, � 5 days", + "Tab. MCBM69, � 1 month", + "Teb. Ecosprin 75mg, � 1 month", + "Teb. Thyronoen 12.5 mg, � 1 month", + "Tab. Metformin 500 mg, � 1 month", + "Syf. Acima10-200, od", + "maltill, sos", + "Calpol, morning and night", + "Mucolite, morning and night", + "Advent, morning and night, 14/11/22", + "Tab. Thursmm, 2 times a day, 10 days", + "COD LOTTAti2, once a day, 10 days", + "PAN 40, before breakfast, 10 days", + "BP 4140/90m.R, 1-0-1", + "PR 7 70imim", + "For USG- Abdominal Pelvis", + "Syrup Cetalore-M, twice a day, 10 days", + "Drop Mosi (Eye), three times a day, 5 days", + "Syrup Selzita, twice a day, 3 weeks", + "Cap. Itaspor 100mg, morning and night, x 30 days", + "Tab Dazit 5mg, morning and night, x 30 days", + "Zedouf (200, x 8 days", + "Tab Montamarc", + "Aerodie, x 21 days", + "Sup, -(10) x 2days.", + "Tab Fepanil 650", + "Budesal (0.5mg), 1 � 5 days", + "Volini Gel, twice a day, 1 month", + "Ibuprofen, thrice a day, 1 week", + "PAN 40, morning and night, 30 days", + "Renova, morning and night, 60 days", + "VoliDer, morning", + "Pan 40, morning and night", + "Rosalix, morning and night", + "NA", + "PAN 40, before breakfast, before dinner, 3 weeks", + "Tab Gement, before breakfast, before dinner, 1 month", + "VILDAPHAGE-M, morning and night, 120", + "GRYCIPAAGE & 2, morning, afternoon, night, 3", + "AMLOSAFE-AT, morning, 60", + "As- lastochandile. ?, sos ypor or shle, brugal la 1-07 � 5day", + "Random 4ml-0-4aux stay, blunt d3 sachet r, 1 daily x sday", + "Clinic: 112, First Floor, Vikas Galaxy, Station Road, Sanewadi, Badlapur (W) M .: 8390268487", + "SHIKO, 3 times a day", + "PAN 40, morning and night", + "Velten 04mg, before lunch", + "ECOSPRIN 150 MG, after food - daily, 4 weeks", + "ROTACIUM, after food - daily, 6 weeks", + "SUPRADYN, after food - daily, 6 weeks", + "VIT D 60 K, after food - weekly, 6 weeks", + "PROSCO DHA, daily", + "SCOR HB, after food - daily", + "Lubiprostone, once daily, 30 days", + "Aprepitant, once daily, 30 days", + "Sildenafil, once daily, 30 days", + "Voglibose, once daily, 30 days", + "Jardiance, once daily, 30 days", + "Metformin, twice a week, 30 days", + "Pregabalin, once daily, 30 days", + "Insulin, before breakfast and before dinner, 30 days", + "Betnovate, apply twice daily, 30 days", + "PAN 40, morning, before breakfast, 10 days", + "DOLO 650, morning, afternoon, night, 5 days", + "AZITHRAL 500, morning, night, 3 days", + "Monocor-1, b.d (twice a day), 14 days", + "Arocon 500, 1x1 (once a day)", + "Rabe DSR, 1x2 (once in the morning and twice at night)", + "PAN 40, 1-0-1, 28 days", + "Pan 40, morning and night, 5 days", + "Calcium, 1-0-1, 30 days", + "Cachar, 1-0-1, 7 days", + "Rl olocal, 2, 4", + "Pal olocal, 8, 23", + "T. Augmentin 675 mg, 5 days", + "T. Enzoflam, 5 days", + "NA", + "NA", + "NA", + "NA", + "NA", + "NA", + "Toto. Fluconazol 100mg� 5 days., candid suppel - &l, 3 days", + "NA", + "NA", + "JU-CRiXAN (250) 100, bd, 5 days", + "Jal. DEFWORT (6) 107, bd, 10 days", + "Ta. MUCiNAT- AB 10, bd, 10 days", + "Tal. LUKOTAS- HD 100, bd, 10 days", + "Syp. LUPITUSS, bd, 5 days", + "PAN 40, 3 times a day, 2 months", + "POP", + "Sugar", + "Surgery", + "PAN 40, morning and night, 14 days", + "Saazole, morning and night, 14 days", + "Celen 22000, morning and night, 14 days", + "RB NB 4911", + "coolora cables, 3 times a day", + "montina-Fx, 12 days", + "pulmones 250, 6 days", + "Sup. Rapitus plus", + "Tab. PriJa-", + "Tab. vreit -200", + "NA", + "PAN 40, morning and night, 5 days", + "Paracetamol, morning and night, 5 days", + "Amoxicillin 250mg, morning and night, 5 days", + "Argesic -1, morning and night, 100", + "Glycinhage (500), 2 times a day, 1 month", + "Diaberon, 2 times a day, 1 month", + "D-fix, 1 time a day, 1 month", + "Ultracet, 1 time a day, 20 days", + "Lipiland - F, 1 time a day, 1 month", + "Ade P-650, 1 time daily, 30 days", + "Tab ACOGURD NT, 1 time daily, 30 days", + "T3 LC, 1 time daily, 30 days", + "D-360, 4 times a day, 30 days", + "HAcorpus + NANOFAST FEL", + "NA", + "Pan 40, morning and night, 1 week", + "San 52, morning and night, 1 week", + "Calapiso liver, morning and night, 1 week", + "Abronzo pasda, morning and night, 1 week", + "PAN 40, morning, 7 days", + "Paracetamol, morning and night, 3 days", + "Antibiotics, morning and night, 7 days", + "scor hb plus, 4 week(s)", + "radibone, 4 week(s)", + "NA", + "PAN 40, morning and night, 1 week", + "Nab Duolic, night, 1 week", + "Aze 50mg, night, 1 week", + "Mantar Le, morning and night, 1 week", + "Pan-D, morning and night, 1 week", + "Sy, morning and night, 1 week", + "Auchakind, morning and night, 1 week", + "SYP IBUGESIC PLUS 45, bbf, 5 days", + "SYP MEFTAL P, bbf", + "SYP MAXTRA, bbf", + "SYP KUFRIL LS, bbf", + "SYP ONDEM, bbf", + "VIAL ENTEROGERMINA", + "Arteliar, 1-0-1, 14 days", + "Cafin Dehave, 1-0-0, 7 days", + "PENTANE, 1-0-1, 30 days", + "Tab. Folineo, once a day, for intafol-d far", + "Tab. Dychease, once a day, ongoing", + "Tab. Ecosprin 75, once a day, for 15 days", + "Tab. Rasicap 100, once a day, ongoing", + "Tab. Calshine, once a day, from start of treatment", + "Protein powder, once a day", + "Tab. Imumust, once a day, for 10 days", + "Syp-Digecaine, twice a day, for 18 days", + "Tab. Condibiotic, once a day", + "Richglow lotion", + "Tab. Tidilan, once a day", + "Pan 40, after meal, 7 days", + "Paracetamol, after meal, 3 days", + "Tab. CCM, before meal, 14 days", + "Colifino, twice a day, 10 days", + "Calivol Softgel, once a day, 8 days", + "Livogen-2, once a day, 2 months", + "Pan 40, once a day, indefinite", + "Zenha, before bedtime, indefinite", + "Apelo poglute", + "TT 0.5 ml", + "ARV, 0, 3, 7, 14, 28", + "R.B.S (28)", + "Blood Sugar", + "BP-125/77 mmH1", + "PR-86/min", + "Hb-11jm, 25/02/23", + "Calpsor C Ointment, 1-0-1, 3 week(s)", + "Allegra 180 Tablet, 1-0-1, 3 week(s)", + "Venusia Max Cream, 1-0-1, 3 week(s)", + "IV. R.L .O I, morning and night", + "Iv. Auguriurl (1.2m) IB, morning and night", + "IV. M.N. I IO, morning and night", + "IV. oflox(00m) IO., morning and night", + "TAB AZILLUP 500 / AZOTOX 500, morning and night", + "TAB ORTHOTIME BR, morning", + "OINT CHETOMESH SF, as per requirement", + "TAB VITAPLUS, after lunch", + "Im Duvadilon, 10, for days", + "Cap Lanx 00, 5", + "VILDAPHAGE-M, 1-0-1, 120 tablets", + "AMLOSAFE, 1-0-0, 60 tablets", + "Cosader, 1-0-1, 120 tablets", + "Ostosline, 1 week, 10 days", + "Zerodol CR, as needed", + "Gabancuran 100mg, daily", + "Pau 40mg, daily, 10 days", + "Prochoscary, as required, not specified", + "cox gel v-V, once daily, not specified", + "Anoxlief dialiment, renew after 3 weeks, not specified", + "UPRISE D3 GUK, once daily", + "D3 60 K, once daily", + "Tab 924, every evening", + "Tenovate cream, 3 weeks", + "Tab. HCQS (400g), 3 weeks", + "Mantoux test", + "Quantiferon - TB Gold test", + "Tar lepodem, 1-0-1, 7 days", + "T. Sompraz 40mg, morning, night, 3 days", + "T. CINTARRO, night, 4 days", + "Sucafel-o, morning, 3 days", + "NORMAXIN, morning, afternoon, night, 7 days", + "Tab. Nejor, bbf, 1 month", + "Tab. Defical, cair, 1 month", + "Ij Osteo D3, stat, 1 month", + "Cariminic Syrup, td, 3 days", + "Sumol, td, 3 days", + "Lactovil, td, 10 days", + "T SOMPRAZ L, before food 7days", + "BIFILAC GG, 10 days", + "Glycomet, bbf, 10 days", + "Glimore-M, bbf, 10 days", + "Tenegem-M, 001, 6 months", + "Telmanos-MT, 001, 6 months", + "Dafine, al, 10 days", + "PAN 40, morning and night, 14 days", + "Paracetamol, morning and night, 3 days", + "Telmikind 20 Mg, morning, night", + "Gliminyle M 1 Tab, before meals", + "Dia-Pace (Metformin) 500 mg, after lunch", + "Bixro 16 Mg (Betahistine), morning, afternoon, night", + "Pantapace D, before food", + "Gabacrine M (Gabapentine 300 mg + Methyl Cobalamine 500), after dinner", + "Tab SITADAPA - 10/100, 1-0-0, 3 months", + "Tab CALCIBUS, 1 pill daily, 3 months", + "Tab DRISE (VIT D), 1 pill per month, 3 months", + "Suma-ES (250), 3 times a day, 3 days", + "Mestat P 12.5 mg, 3 times a day, 3 days", + "Meospann-H Ointment, 5 times a day", + "Augmentin ES (Amox 600mg), 3 times a day, 7 days", + "PAN 40, morning and night, 5 days", + "Ocupar Dy cream, as required", + "Lys Mega ce for, before breakfast, 5 days", + "Thromboprob oil, 2 times a day, for 4 days", + "Nadoxin cream, as prescribed", + "Tmedlar, once daily, 14 days", + "Zerofel-sp, as prescribed", + "72 DM, daily", + "PAN 40, daily", + "GUILD BITOSTRI CODITID", + "Tab. Daylen, twice daily, 42 days", + "SANSTICS - HEALTHIER LIVING, not specified, not specified", + "NovoRapid SL, morning, afternoon, night", + "Levemir, night", + "Dielie Consusane, morning, afternoon, night", + "T. pregabid-ME 75mg, after meal, 2 weeks", + "T. Acesse 100 mg, before meal, 2 weeks", + "Syrup Atarax, twice a day, 5 days", + "Cream Flutivate (Skin), twice a day, 5 days", + "Calibnie, 1 mg daily, 6 months", + "PAN 40, before breakfast and before dinner", + "DIGENE, before breakfast", + "SURIC ACID", + "Tab. Folite 5mg, daily, 30 days", + "Tab. Folitrax 2.5 mg, daily, 30 days", + "Cap. Pan-D, before meals, 30 days", + "Tab. Ricorsia, after meals, 30 days", + "Tab. Saaz DS, morning and night, 30 days", + "Tab. Nurokind OD, morning and night, 30 days", + "Tab. Product 4, sunday off, 30 days", + "Tab. Orcerin 6M, monday and wednesday, 30 days", + "Tab. Celin 500, monday and wednesday, 30 days", + "Tab. Ecosprin 150, sunday off, 15 days", + "Tab. Ecosprin Gold 10/75, daily, 30 days", + "Tab. Medvol 2mg, at night, 30 days", + "Tab. Pan - D, before dinner, 30 days", + "Cap. Ecosprin 75, sunday off, 30 days", + "Tab. Orcerin 6M, monday, wednesday, and friday, 30 days", + "Tab. Celin 500, monday, wednesday, and friday, 30 days", + "Ranitidine, 1-0-0, 6 days", + "Paracetamol, 1-0-1, 5 days", + "Azithromycin, 0-1-0, 3 days", + "Suspension Drotin DS, every 8 hours, 5 days", + "Tablet Lanspro 15 mg, once a day, 5 days", + "Syrup Tummy Soft, twice a day, 5 days", + "PAN 40, after food, 7 days", + "Paracetamol, after food, 3 days", + "Tab. Bifolate, 0-0-1, x continue.", + "Tab. Doxinate, 1-0-1, x continue.", + "CIFRAN 500MG TAB, bd (twice daily), 1 month", + "RELENT PLUS 8J, bd, 5 days", + "RANTAC 88, od", + "Tab. AlfsN, bd", + "Tab Octobix, bd", + "Tab Ler, bd", + "Tab Pzae, bd", + "Tab Euognix, bd", + "Mamadialitu con, bd", + "Ag preg, bd", + "- FRS/2hPP BS, bd", + "PENTAXIM, opd", + "PRIORIX, opp", + "MEASLES, MUMPS, AND RUBELLA VACCINE (LIVE) IP, 6 hourly for fever >99�f", + "ZOFRAN, 1�15 days", + "ZINCOVIT ZINCITOTAL, 3 months", + "cox gel v-V, once a day, 3 weeks", + "Anoxlief dialiment-0-, not specified, renew after 3 weeks", + "Tab Martifur MR 100 mg, after food - daily - 4 days", + "Novefos Sachet 3 gm, bed time - single dose", + "Tab Urispas, after food - sos", + "Syp Alkasol, after food - daily - 3 days", + "Hifenac-SP, before food, 10 days", + "Pan-10, before food, 10 days", + "Tolyb/Chymoral forte, after food, 10 days", + "Resner plus | Fibrogenic-N/Max-mala-NT", + "FOLSAFE-L, 30 days, 4 to 5 months", + "Tab. Lipi 200, 6", + "Tab. Recotar, 6", + "Cap. Ormed 20, 6", + "FLUVIR 75MG TABLET, after food - daily - 5 days, 5 days", + "CALPOL 650MG TABLET, 1-1-1, 3 days", + "XYZAL M TABLET, 0-0-1, 5 days", + "REBEZ DSR CAPSULE, 1-0-0, 5 days", + "Tab Laregas (300), morning and night", + "Tab Nauto (S), morning", + "Tos Remae CP3 101, morning and night", + "Tab Cryopan DSR 101, morning", + "Ade P-650, bd, 30 days", + "ACOGURD NT, bd, 30 days", + "T3 LC, bd, 30 days", + "D-360, bbf, 4 weeks", + "HAcorpus, bd, 30 days", + "NANOFAST FEL, bd, 30 days", + "Aceclo plus, morning and night", + "Gamot, night, 10 days", + "Tendojoy, morning and night", + "PAN 40, morning and night, 6.1", + "Paracetamol, after breakfast and before dinner", + "Xiosoy, before breakfast", + "Avil 25, once daily, 5 days", + "PanDro, once daily, 7 days", + "Tab TENOFOVIR ALEFANAMIDE 25mg, to continue", + "SOL PNA", + "HEC", + "DIABETES CARE", + "INSULIN LANTUSS", + "ILECOSPRIN AV 75", + "TELFAST 40", + "TABAK VITE S", + "CIPCAL 500", + "TAB.RYBELSUS 14 MG, 1 -- 0 -- 0, 30 days", + "TAB.GLEDEPA 10 MG/OXRA 10 MG, 1 -- 0 -- 0, 30 days", + "TAB.GLYCOMET SR 500 MG, 0 -- 0 -- 1, 30 days", + "TAB.SYMBAL (30MG), 0 -- 0 -- 1, 30 days", + "CAP.RABONIK DSR, 0 -- 0 -- 1", + "TAB.RAZEL F 5 MG, 0 -- 0-(1), 30 days", + "R MEGANEURONE OD, daily, 30 days", + "SYP.TOPUP D3 Cholecalciferol 60000IU, after 4 days", + "Sumaalla Jamba, 15 days", + "Nasal Spray, bd (twice daily), 15 days", + "Antacid Plus 200, 5 days", + "Inj Bett, stat", + "PAN 40, morning and night, 4-5 days", + "Paracetamol, morning and night, 4-5 days", + "Azithromycin, morning and night, 4-5 days", + "Ecosprin AV, od", + "Night spadives", + "T. CLOPILET-A 75/175", + "T. ROSLOY-F 20/160", + "T. BUERT OD 24", + "T. RAZO-A 20/10", + "T-AMLOKIND AT 5/150", + "Greenor, before breakfast and dinner", + "ACITRON, before breakfast, 3 days", + "GING, after dinner, 3 days", + "ACITROM (4 mg), 6pm", + "TELMA AM (UDS), after dinner", + "Solopart (8), 10pm", + "Atarax 5mol-5001-5ml, 1-0-1, 1 month", + "Syp- Goun DS/ Campol -250, 1-0-1", + "Syp Bevon, 0-1-0, 1 month", + "NA", + "NA", + "NA", + "Cepodem XP 325 Tablet, 5 days", + "Nimus P Tablet, 3 days", + "Ebast M Tablet, 5 days", + "Corex DX Syrup, 5 days", + "CLAVAM (Augmentin - 625), twice a day, 15 days", + "DOWO-650, twice a day", + "LBC", + "Evion 400mg, morning, afternoon, night, 2 months", + "Dolo 650, morning, afternoon, night, 3-4 days", + "Primosa 100, morning, night, 2 months", + "Etoshine MR, twice daily, 5 days", + "Paracetamol, once daily, 3 days", + "GALOC, bd", + "corred, al", + "Tab Aspirin, bbf, 30 day", + "PAN 40, morning and night, 14 days", + "Paracetamol, morning and night, 3 days", + "Syp. CREMAFFIN, bd, 5 days", + "CONZAFIT, 1-0-1", + "PAN 40, 1-0-1", + "ONVISTA, 0-0-1", + "PAN 40, 1-0-1, 10 days", + "Crocin, 3 times a day, 5 days", + "Azithromycin, 1-0-0, 3 days", + "Parin, before breakfast", + "Tab. Mysolvo, before breakfast", + "Ta Martinus, before breakfast", + "syp andem sil som, calimesa sul, po �5 days.", + "syp", + "Syp, � 1 week", + "FOLSAFE-L, once daily, 30 days", + "Generic Medicine, once a day, 3 days", + "Eye Drops, three times a day, 7 days", + "Tu MICROBACT 500mg, 0-62", + "SIGNOFLAM", + "SOMPRAZ 20mg, 0-52", + "PAN 40 (Pantosec), before food, 5 days", + "Colafix, after food, 5 days", + "Olocal, after food, 5 days", + "Lanol ER, 1 - 0 - 1, 5 days", + "Pushan D3 (60K), 5 ml - once a week, 10 weeks", + "Pan 40, before breakfast and dinner, 6 days", + "Sommore, morning and night, 12 months", + "Upini D3, before dinner, 3 months", + "Levetiracetam 500 mg, morning and night, 6 months", + "Alzil-M Forte, morning and night, 6 months", + "T.100.2, in the morning", + "p-250 sJp, per day", + "Ambrail ph", + "Remy celles", + "compt 100", + "Demander Alle", + "BANH 81", + "Tab. Stemelia B, bd", + "Ventyr 1 Sp", + "Das Rovastat 10mgts", + "Cap Alten Aslan", + "Das Wetrans", + "PAN 40, before breakfast, before dinner, 3 months", + "AKT-4", + "Zincovon", + "Dicorate-ER 500mg, 1-0-0, 1 month", + "Mebodep-CD3, 1-0-0, 1 month", + "Tryptomer-25mg, 0-0-1, 1 month", + "Writex 7G, 0-0-1, 1 month", + "Napra D 500mg, sos, 9", + "HEPR, daily, 3 days", + "BIOVAC 1 Chocin DS, daily, 3 days", + "ALP, 1, 10 days", + "MR, 1, 3 days", + "Tota, 1, 6 days", + "Tab Nxfor Sp 10, 1, 10 days", + "T-3", + "NA", + "NA", + "Go-calm 250, before meals, 5 days", + "Ses Admit 457, after meals, 14 days", + "dis Bnsector, 3 times a day, 5 days", + "SISCOX TH TAB 10S, oral, 10 day", + "SOMPRAZ 40MG TAB 15S, oral, 10 day", + "NERVMAX SR 75 TAB, oral, 10 day", + "SYSTAFLAM 50GM GEL, oral, 30 day", + "Pan 40, 1-0-0, 7 days", + "Dolo 650, 1-0-1, 3 days", + "Augmentin 625, 1-0-1, 5 days", + "PARACETAMOL, 5 days", + "ZINC SUPPLEMENT, 5 days", + "COUGH SYRUP, 5 days", + "PAN 40, morning, 5 days", + "Rantac, bd (before dinner)", + "Osyp. Random PD, tds (three times a day)", + "Blo 50 5mg, tds (three times a day)", + "Ibugesic, prn (as needed)", + "@syr. capot (250), prn (as needed)", + "syp. Rady (200), qhs (before bedtime)", + "Pan 40, after breakfast", + "Ady, after lunch", + "Colfor ps, after dinner", + "Sebisher Dermalils, 2, 7", + "Teb. Trthustive, 2, 5", + "Slikkoby lacion D, 1, 5", + "c-wey shampoo, 1", + "candles 2/c", + "PAN 40, bd (before dinner), 7 days", + "PCM 500, tds (three times a day), 7 days", + "Suspension Ibugesle Plus, 6 hourly (10 ml - 10 ml - 10 ml - 10 ml), 3 days", + "Suspension Meftal P (60 ml), 10 ml, sos at fever before 6 hrs of ibugesic", + "Jij Methy Cobal, bbf", + "Das Deterrol, bbf", + "Vice-M (500), bbf", + "Das Stalit-D, bbf", + "Das Enite (40), bbf", + "DIVYA CHIRAYTA KWATH 100 GM, morning and evening, 30 days", + "DIVYA GILOY KWATH 200 GM, 1 hour before meal, 30 days", + "DIVYA SARVAKALP KWATH 100 GM, 30 days", + "DIVYA IMMUNOGRIT 60 N 33 OM, 30 minutes before breakfast/lunch/dinner", + "DIVYA MADHUNASHINI VATI EXTRA POWER 60 GM, 30 minutes after breakfast/lunch/dinner, 30 days", + "DIVYA MADHUGRIT TABLET 60 N 38 GM, 30 minutes after breakfast/lunch/dinner, 30 days", + "DIVYA TRIPHALA GUGGUL 40 GM, 30 days", + "PAT NUTRELA DAILY ACTIVE CAPSULE 750 MG, 30 minutes after breakfast-lunch-dinner, 30 days", + "DIVYA SHUDDHI CHURNA 100 GM, bedtime, 30 days", + "Tablet Lanol ER (650 mg), 15 days, after breakfast. after dinner", + "2 Tablet Gabamax NT 50/10, 15 days, before dinner, at 8pm", + "Gel Dolcinac Mr, 15 days, after breakfast. after dinner", + "Tablet Collacium Strong, to continue, after breakfast", + "Tablet Etody (90 mg), sos, for severe pain", + "Tablet Trioflex Tablet, 1 month, after breakfast, after dinner", + "Hidraslim lotion livice aday", + "Jab Teezie Song 505", + "Chloramphenicol, morning and night, 7 days", + "Paracetamol, morning and night, 7 days", + "Azithromycin, morning and night, 7 days", + "Boxy Boule, morning, afternoon, night", + "crepetart, morning, afternoon, night, till recovery", + "PREGALIN SR 75MG, after food - daily, 30 days", + "PAN 40, morning and night, 12 days", + "Thyrofit 100, morning, 30 days", + "Metformin 500, morning and night, 60 days", + "TELMA LN BETA 50 TABLET, after food - daily, 1 month", + "CLONOTRIL 0.25MG TABLET, after dinner - daily, 1 month", + "ALDACTONE 25MG TABLET, after food - daily, 1 month", + "Tab Allegra 180mg, hi,ac, 100� 10 day", + "RBS, (mono -10.00am)", + "Sk(2) Pab, (7to 73 pm darle), � 20 day", + "Tan - Appar 65g, 2 times a day, 18 days", + "Cap Attop- DJ-2, 1 time a day, 18 days", + "Sy citar, 1 time a day, 18 days", + "Syp Cocintus, three times a day, 7 days", + "Syp Augmentin Duo, three times a day, 7 days", + "Nasivion, as needed", + "Syp Marx, as needed", + "PAN 40, after breakfast and dinner, 3-4 days", + "Paracetamol, after breakfast and dinner, 3-4 days", + "NA", + "As plast risodaless, tamonth", + "Veagreat 10, clo: morning and night", + "Paracetamol, 1-0-1, 3 days", + "Raufen 150mg, 1 before dinner", + "Zincenit, 1 after lunch", + "Folsafe-L, daily, 30 days", + "Suspension ATM XL (200 mg) - Azithromycin, 5 days, before food", + "Suspension P 250 - Paracetamol, till required", + "Syrup Cetzine - Cetirizine, till required", + "ALBENDOL, bd, due today", + "ILOVIT NANO 60K, bd, 16th (sun) x 10 days", + "Gemal-p 2-54 RD, bd, 18/9/23", + "Suspension Meftal P (60 ml)", + "Syrup Solvin LS", + "Drop Votriz cold drops", + "Syrup Bactoclav DS", + "OKALET (5mg), morning and night, 5 days", + "ENZOCORT, morning and night, 5 days", + "CEFOLA, morning and night, 5 days", + "OTRIVINsal, morning and night, 5 days", + "SYP IBUGESIC PLUS 45 (ML/100 MG), bd, z days", + "YOUMO-PARACETAMOL 12.5A (ML/100 MG), bd, z days", + "SYP MEFTAL P (5 ML/100 MG), bd, z days", + "MEFENAMIC ACID, as per requirement, z days", + "SYP MAXTRA, as per requirement, z days", + "CPM DG-PHENYWINE SUG (2.5 ML), as per requirement, z days", + "SYP KUFRIL LS (5 ML/0.5 MG), not mentioned, z days", + "LEVOSALBUTAMOL, as per requirement, z days", + "SYP ONDEM (5 ML), not mentioned, z days", + "ONDANSETRON, as per requirement, z days", + "VIAL ENTEROGERMINA, as per requirement, z days", + "BACILLUS CLAUSE, as per requirement, z days", + "Alocepodem 100-DT, once daily, 10 days", + "Sp Asthalin, as required, -", + "Ibugeric play, as required, -", + "HHLEVO M KID 60ML SUSPENSION, after food - daily, 10 days", + "VENUSIA SOFT LOTION, after bath - daily, 2 weeks", + "ATONIDE 20GM GEL, after bath - daily, 15 days", + "OMNACORTIL ORAL SUSPENSION, after food - daily, 1 week", + "PAN 40, morning and night, 2 weeks", + "Ankle Binder / Splint, all day except shower, 2 weeks", + "Tax, before dinner", + "Mandyic party, 1-0-1, 14 days", + "MyOnR, 1-0-1, 5 days", + "pregabalin, 1-0-1, 5 days", + "Dokln, 1-0-1, 5 days", + "Clofain Lack, morning and night", + "Tab ALTRADAY, morning and night", + "Teb Shelle XT, morning and night", + "PAN 40, morning and night, 24 portand 4og livs11", + "Montop-11, morning and night", + "Tab Aceclo plus, after breakfast, after lunch", + "Tab Gamot, after dinner, 10 days", + "Tab Tendojoy, after breakfast", + "Paracetamol, twice a day, 7 days", + "Dolo, twice a day", + "Coscorit, once a day", + "Solibar, bd", + "LANOL ER, 5 days", + "SISCOX TH TAB 10S, oral, for 10 days", + "SOMPRAZ 40MG TAB 15S, oral, for 10 days", + "NERVMAX SR 75 TAB, oral, for 10 days", + "SYSTAFLAM 50GM GEL, oral, for 30 days", + "PAN 40, morning and night", + "Paracetamol, morning and night", + "Amoxicillin, morning and night", + "Paracetamol, after meals, 7 days", + "Diclofenac, morning and night, 7 days", + "Pantoprazole, before breakfast, 7 days", + "PAN 40, after meals, 6 days", + "Allegra(120), after meals, 6 days", + "Chilkul DSR, after meals, 6 days", + "INFLUVAC TETRA 0.5 ml, once, single dose", + "SYP. CALDOL (250mg/5ml), twice, 3 days", + "THYROX 112.5 mcg, empty stomach, ongoing", + "SUPRACAL PRO-ICAL, after dinner, 3 months", + "D-SOL 60 K, once monthly, ongoing", + "TELSAR BETA 25, after breakfast, 3 months", + "CILNIKEM 10 mg, after breakfast, ongoing", + "VILDAPHAGE-M, morning and night, 120", + "GRYCIPAAGE, before breakfast, lunch, and dinner, 5", + "AMLOSAFE, morning, 60", + "Cosader, morning, 120", + "PAN 40, morning and night, 5 days", + "Tab Zahoren - 03 Br, morning and night, 5 days", + "Tab Rabilir, night, 5 days", + "Pan 40, daily, 10 days", + "Clavum 625, daily, 5 days", + "Nebistar 2.5, daily, 14 days", + "Nasta DATISVIK 2%, 3 times a day, 8 days", + "SYP. AUGPEN DS, 3 times a day, 8 days", + "SYP. MAXTRA, 1 time a day, 8 days", + "Tab. GLYCOMET -TRIO 2mg, daily", + "Tab. DAPANORM TRIO (10/100/500), daily", + "Tab. THYRONORM 75 mcg, daily", + "PAN 40, morning and night, 10 days", + "Azithromycin, once a day, 5 days", + "Silofast, 1-0-1, 10 days", + "ORAHELP GEL, 5 days", + "Sy. FEVFAST DS, every 6 hours", + "Sy. DELCON, 3 times a day", + "Sy. VENTISOL JR., 3 times a day", + "Sy. AZIFINE 200, once a day for 3 days", + "PAN 40, morning and night, 3 days", + "Ach", + "U.S.9", + "Augustin ADS, before breakfast and dinner, 10 days", + "Sap. I bri plu y me thy, bedtime, 10 days", + "ciplor idp B/Eg 64, after lunch, 4 days", + "EuMD, 2 sce-1", + "T. DUTACOSIN", + "T. Amitriplilie", + "Avil 25, bd, 5 days", + "PanDro 100, bd, 7 days", + "Pan 40, bd, 7 days", + "ASHoke, 1-0-1, bizlerer", + "SomMA, 1-0-1, rendat", + "MAPSORD, 1-0-1, tut's", + "Damprosen 101, 0-0-1, tubs", + "IAB. UYIUK SMG, after food - sos", + "TAB. URIMAX D, after dinner - daily", + "TAB. NEXPRO 20MG, before breakfast - daily", + "TAB. VYMADA 100 MG, after food - daily", + "CAP. ROZAVEL A 75MG, after lunch - daily", + "TAB. EZEDOC 10MC, after dinner - daily", + "TAB. TIDE 10MG, after breakfast - daily", + "TAB. SARAPID 1.0MG TAB, before food - daily", + "PAN 40, morning and night, 7 days", + "Recuvac, night, 10 days", + "Br2 6 Th, morning and night, 7 days", + "PAN 40, morning and night, 10 days", + "Asthalin, 3 times a day, 5 days", + "Levolin, morning and night, 10 days", + "Astroscemi Aec Renan, morning and night", + "PAN 40, morning and night, 15 days", + "NEMOCID, 2 times a day, 2 days", + "PAN 40, morning and night, 30 days", + "LMD, , ", + "EPD, , ", + "Tablet Amlokind (5 mg), after breakfast, to continue", + "Tablet Vertizac, after breakfast, after dinner, 5 days", + "Tablet Diligan (25 mg), after breakfast, after dinner, 5 days", + "Tablet Full B12 SR Tablet, after breakfast, after dinner, 10 days", + "Tablet Olmetime (20 mg), after dinner, 10 days", + "Tablet Detrab dsr, 15 days", + "Tablet Folvite (5 mg), 15 days", + "Injection Vitcofol, 4 weeks, alt. day 2cc, 5 doses over 10 days", + "Tablet Enuff, 3 days", + "Capsule Calfix k2, 5 days", + "Injection Carmijen 6 lac iu, 4 weeks, intramuscular", + "Tablet Vibpreg mnt, 15 days", + "TAB TY PRO T4, morning and night, ongoing", + "TAB EGNERVE NP, night, 10 days", + "TAB CALCESAVE PLUS, morning, 2 months", + "VED GOK NANO SHOPS, once a week, 12 weeks", + "NOTTID Allegy, bd, 7 days", + "Co pain, bd, 7 days", + "T. Infinito vietato, bd, 7 days", + "Budesal (0.5mg), 1 � 5 days", + "TAB. OLYMPR IX M 500MG", + "TAB. TELMIKIND 40 MG, 3 months", + "CAP. EC OSPRIN AV 75MG", + "PAN 40mg, morning, night, before 18-may-23", + "Vallday, morning, night, before 18-may-23", + "Gratisin, morning, night, before 18-may-23", + "HIGH FIBER DIET", + "SITZ BATH THRICE A DAY WITH BETADINE LOTION", + "TAB ZOCEF CV 500, 7 days, 7 days", + "CAP PENRAB DSR, 7 days, 7 days", + "TAB DOLO 650, 5 days, then as needed, 5 days, then as needed", + "LACTIFIBER POWDER, 7 days, 7 days", + "TAB VITACOVER 5 G, 7 days, 7 days", + "BETADINE DRESSING AND PACKING LOCALLY AFTER EACH SITZ BATH", + "BRILINTA 90 mg, morning and night", + "ECOSPRIN 75 mg, before breakfast", + "STORVAS 80 mg, morning", + "CONcoe 2.5 mg, morning", + "CARDACE 1.25 mg, night", + "URIMAX D, after lunch", + "Phenoxymethylpenicillin, after breakfast and dinner, 7 days", + "Diclofenac, after breakfast, 7 days", + "PAN 40, before breakfast, 5 days", + "Aurin 625, before breakfast, 5 days", + "Da 108, before breakfast, 5 days", + "Tas-oflex-02, bd", + "Ths. Rebelt DSn, bbf", + "Spor 9rx, bd", + "Crocin DROPS, maximum 4 times/24 hours", + "Masoclearsal drop", + "Dolgan P 1x9, 10", + "( Zydees, 100, 3", + "Allegre 120g, 3", + "Nemaber fat", + "Levocetgine, 1 175, 3", + "Den., anatax o, 200g 4", + "(Zyders), 3", + "Tab metro chon, p - 60/m, 2-3 days", + "Mykool Cream, pr, 15-20 years", + "Tal. zerofor-P, before 1 week, colonoscopy sos", + "Taxing, 1-0-1 (3 times a day), 3 days", + "Stuurst-AF, 1-0-1 (3 times a day), 3 days", + "Ventryl, 1-0-1 (3 times a day), 3 days", + "Mental-BS, sos", + "Misogesic SR, once daily, 10 days", + "T. Oatzy, once daily, 300 days", + "Tab Torfix 400, morning and night, 7 days", + "Danga Lite, morning and night, 17 days", + "Car sizumas Rich (ML), morning and night, 17 days", + "Tablet Partivit 300mg BD, 25+2", + "Tab (alview facts", + "Tab worviday op", + "Cepodem 200 Tablet, daily, 3 days", + "Lezyncet-D Tablet (Levocetirizine 2.5 mg + Phenylephrine 10 mg), daily, 3 days", + "Immu C-Plus Chewable Tablets (Ascorbic Acid 500 mg + Vitamin D2 400 IU + Zinc Sulphate Monohydrate 5 mg), daily, 3 days", + "Reswas Syrup (Chlorpheniramine 2 mg + Levodropropizine 30 mg), daily, 3 days", + "Pacimol 650 Tablet (PARACETAMOL 650 mg), daily, 2 days", + "PAN 40, morning and night, 3 months", + "Caps D-RISE (Gok), once a month, 1 year", + "T. cifan- CT, 1-0-1, 5 days", + "T. Nimica plus, 1-1-1", + "Esogren 40, 1-0-0, 5 days", + "c. EnnGt 100, 0-1-0, 2 days", + "c. Imudium, 1-0-0", + "Pan 40, 18 days, 10 days", + "T. Acticont, 18 days, 10 days", + "T. Cyaa, 18 days, 10 days", + "Nosekund nose drops, 18 days, 10 days", + "Monucet 200, bd, 10 days", + "Hiponal MR-10, bd, 12 days", + "Calpal 500, bbf, 27 days", + "SANOGESIC P, 1-0-1, for 5 days", + "CEPODEM 200 MG, 1-0-1, for 5 days", + "MONDESLOR, 0-0-1, for 5 days", + "SISBONE K2, 0-0-1, for 15 days", + "Flucold AF oral deap, 1-0-1, 1 day", + "Calpol deogs, 1-0-1, 1 day", + "Extend Total Tablet, 1-0-1, 10 days", + "Sertafic 2% Ointment, 1-0-1, 5 days", + "Zentel Chewable Tablet, 0-0-1, 3 days", + "Espainin Hiber, morning and night, 7 days", + "Puissangue, morning and night, 7 days", + "Dolimon, morning and night, 7 days", + "PAN 40, after meals, 7 days", + "Pan 40, after meals, 7 days", + "Paracetamol, after meals, 5 days", + "Azithral, before meals, 3 days", + "Pansec 40 mg, before food, 5 days", + "Etoshine 60 mg, after food, 5 days", + "Nicoprotine Drop 15ML, 2 times a day, 7 days", + "Depura Kids Drop 15ML, once a day (morning)", + "Calpol (Pedia) Drops - 15ML, sos", + "OR-76 Som, once a day, 13 days", + "Lycored, twice a day, 12 capsules", + "Rentre D 160, once a day, 21 tablets", + "Vomitrat-op, once a day, 31 tablets", + "Di Aregest 3R, twice a day, 100 tablets", + "Vistogreat, unspecified, 5 sachets", + "Supraper-0-gel, 3 times a day, ongoing", + "Cilacar tc 12.5 tablet, once daily, 1 month(s)", + "Nicip tablet, twice daily, 1 month(s)", + "Gubi NT 100, before meals, 10 days", + "Nurich M., after meals, 14 days", + "Micel 14/12, after meals, 10 days", + "Panosuc-Don, before breakfast, 14 days", + "Fer 6, once daily, 4 days", + "Asthatin, every 3 hours, 2 days", + "AZITHRAL-XL 200, once daily, 4 days", + "DOM-DT 10mg, every 12 hours, 2 days", + "Cap Famocid (40), before breakfast, 14 days", + "Coop Innorfol Ds, daily, 14 days", + "Zincosit, after lunch, 14 days", + "Lupiheme, after dinner, 14 days", + "Zecal Gold, morning and night, 8 days", + "Gestoff SR (300), after breakfast, 14 days", + "Vivamon, after lunch, 14 days", + "Allegra 180, after dinner, 10 days", + "sol, 1-0-1", + "T Alet 6m, 1-0-1", + "Tpolude, 1-0-1", + "T Mont ce", + "-R. Ascout", + "MONTAIR 5mg tablet, morning and night, 5 days", + "Hy Machery Junior, morning and night, 5 days", + "Budecort New 1mg Respule, morning and night, 5 days", + "LIFE'S ON D, before breakfast, before dinner, to continue", + "TAB GABAPENTIN NT 400/10, 10 am, 3 pm, bedtime (10 pm), to continue", + "CAP QUENTIA BD [MULTIVITAMIN], to continuePregabid-ME 75mg, morning and night, 14 days", + "Aceclofenac 100mg, morning and night, 14 days", + "Ban 40, morning and night, 7 days", + "Tab. Criminale plus", + "Tab Olyvit m, morning 10 a.m. to 2 p.m., evening 5 p.m. to 10 p.m.", + "SYF Kapry Exp., tds", + "SYR Cakine, hls", + "Syp Angmolistet", + "Amoxicillin, 1-0-1, 5 days", + "Rantac, 1-0-1, 5 days", + "Paracetamol, 1-1-1, 2 weeks", + "REPAN D, morning and night, 4 days", + "ZERODOL P, morning and night, 20 days", + "DMR 30, morning and night, 94 days", + "L DIO 1 M, morning and night, 4 days", + "CMAXY GOLD, morning and night, 90 days", + "Tab Razo (20 mg), 1 time daily, 30 days", + "Tab Menoctyl, 1 time daily, 30 days", + "Tab Cizaspa, 2 times daily, 200 days", + "Tab TENOFOVIR ALEFANAMIDE 25mg, 0-0, to continue", + "PAN 40, before breakfast and dinner, 15 days", + "REGGIE NEX PRO-L, before breakfast and dinner, 15 days", + "MET NATURALARE, before breakfast and dinner, 15 days", + "PAN 40, morning and night, 10 days", + "Cepodem 200, morning and night, 10 days", + "Kaya Top-Nerm� x6, morning and night, 10 days", + "Ban 40, morning and night", + "NA", + "NA", + "PAN 40, morning, 7 days", + "Paracetamol, morning and night, 3 days", + "Amoxicillin, morning and night, 5 days", + "Tab Esocafe, before breakfast", + "Tab somfy 1, morning and night", + "Cap Evion 400, before breakfast", + "Tab. Carfine 1, morning and night", + "Tab. Etobrush T 1, morning and night", + "Drop Nasoclear Nasal", + "Drop Crocin", + "Drop Maxtra", + "Respule Levolin (0.31 mg)", + "Augmentin 625mg, twice a day, 5 days", + "Pan 40mg, once a day before breakfast, 5 days", + "Zerodal-P, thrice a day, 3 days", + "Rebert DSR, 2-2-2", + "Paracetamol 650mg, 1-", + "Metroxy1 400mg, bbf", + "Aceite, 0-0-1, 5 days", + "REST", + "Pantosec, 1-0-1, 5 days", + "corexx MIR, 5 days", + "Colafix", + "Olocal, 0-1-0, 5 days", + "Pan 40, bbf (before breakfast), 6 days", + "Zipedroo, bd (before dinner), 6 days", + "Macbok protein powder, 3 times a day", + "T. Protonese, 1 tablet, 6 weeks", + "Eunorm sachet, 3 times a day", + "T. Dolow, morning and night, 10 days", + "T. RA 20, morning, 10 days", + "Cap. Pegaba-m 75, morning, 10 days", + "SULTA, morning and night", + "INT PAI, morning and night", + "PAN 40, morning and night", + "Tab. Evion-LC, 5 days", + "Tab. Venvit, 10 days", + "Tab. Calpol 650mg, 3 days", + "BEE 25", + "FUL", + "T. TOFACINITA TOFADEZ, 1-1-1, 7 days", + "MESACOL-OD 1.2, (continu)", + "Domstal, 3 times a day, 3 days", + "Ecogram GG, 1 time a day, 5 days", + "Carmicide Ped, 3 times a day, 5 days", + "Inj Bett, stat", + "Cap Finacid Dsr, once a day, 30 days", + "Cap Pink Xt, once a day, 30 days", + "SYP SOVENTUS JR(0.5 MG / 5 ML), 5 days", + "SYP LEVOCET M KID(2.5 MG / 5 ML), 5 days", + "Nebulization, bd, 10 days", + "vomik, al", + "Sur. Adward (220), 1-0-1", + "S.P.200-1, occasional, rx", + "SBR-200, dr. brijesh gupta (b.h.m.s.)", + "NA", + "NOMIN CARE", + "T. Letrohope 5mg, � 5 days", + "PAN 40, morning and night, 6 days", + "Cheston Cold, morning and night, 6 days", + "Azithromycin, morning, 3 days", + "TIX", + "Impression den", + "Cementation don", + "Veloz (20), 1-1, 15 days", + "Ecospres-Av(75/10), -1", + "cosabrad/ Loslas (5), -1", + "Azmaids", + "Vyamada (200), 1-1, 12 days", + "Oxhamel 10/1gm", + "E Corbus (2.5)", + "zylori (100)", + "Dutan T(X-1)", + "Thystime(375)", + "Dytor 20", + "Dytor 10", + "Ca+ CD3, continue", + "Lanoxin (.25)", + "Reftar Wetrosave", + "PAN 40, daily", + "Visnet 6128 pp, daily", + "Lipids, daily", + "Nirmadhu Tablet, after food, for diabetes", + "Prashaantha Tablet, after food, for bp", + "Coldol, 4-64", + "Montair / Telekast / Romilast, i tab, once only - evening, 30 day(s)", + "Budecort / Budate inhaler 100, 12 hrly (fix dose), 5-15 day(s)", + "Cetzine Syp, night, 5-15 day(s)", + "Budenase Nasal Sprey, 12 hourly, 5-15 day(s)", + "Protinex Drigmal powder, 12 hrly, 45 day(s)", + "E Levolin / Salbair inhaler, 3 doses stat, 1 dayisa", + "Levolin / Saltiair inhaler (severity of cough), 2-4-6-8 hrly, 5 dayis", + "Toba[Sun] 0.3 %W/V, 3 times per day, for 4 day/s", + "Syrp Relent Plus[Dr], 3 times per day, for 3 day/s", + "T. PAH 20mg, 3 months, 3 months", + "Calpol 120, 3 times a day, until symptoms subside", + "Levolin, twice a day, 3 days", + "ECOSPRIN 75 mg, morning and night", + "ATORVA 20 mg, morning", + "PAN 40 mg, morning", + "Diofos, morning and night, 5 days", + "Entro Hora, morning, 5 days", + "S Weltam, morning, 5 days", + "Colinexmo, evening, 5 days", + "Ensure Rice, evening, 5 days", + "Pan 40, after meal, 5 days", + "Paracetamol 500mg, after meal, 5 days", + "Tossex SF, after meal, 5 days", + "ELIQUIS 5mg, morning and night, 1 month", + "ROSEDAY A 75/20mg, night", + "CONCOR COR 2.5mg, night", + "SACURISE 50mg, morning and night", + "DAPAHENZ 10mg, morning", + "ALDACTONE 50mg, morning", + "BRIVASURE 50mg, morning and night", + "NA", + "NA", + "NA", + "Tab upra 400, bd, 20", + "3 cap Cerealx, bd, 20", + "4 Tab Livoganz, bd, 20", + "Anyarpan 18 (12.5), morning and night, 31/03/2013 - 24/03/2023", + "Thyromarm (62.5), morning, as per requirement", + "Contorcer (1.20), morning, as per requirement", + "Dimed, automatic, as per requirement", + "Vego (0.3), morning, as per requirement", + "Forglip-1 (20/150), morning, as per requirement", + "Zaphrt 18, morning, as per requirement", + "Neptun (50), morning, as per requirement", + "Astor, morning, as per requirement", + "Capiret & (35), morning, as per requirement", + "Eucalmine, morning, as per requirement", + "Incomplete, 3 times a day, undefined", + "Levipiv 750, 10-1-0, 7 days", + "Oxeral 300, 10-0-0, 15 days", + "PAN 40, morning and night, 10 days", + "Paracetamol, morning and night, 7 days", + "Antitussive syrup, morning and night, 7 days", + "Syrup Ibugesic Plus 45, 3 times a day, 7 days", + "Youmo-Paracetamol 125mg, 3 times a day, 7 days", + "Syrup Meftal P, 3 times a day, 7 days", + "Syrup Maxtra, 3 times a day, 7 days", + "Syrup Kufril LS, 3 times a day, 7 days", + "Syrup Ondem, 3 times a day, 7 days", + "Vial EnteroGermina, once a day, 7 days", + "T. Linapride M (2.5/500), morning, 30 days", + "T. Panon-D, night, 30 days", + "T. Ke todan, morning, 15 days", + "T. Nacsare, morning, 31 days", + "T. Midotab 2.50g, not mentioned, 15+15 days", + "T. Pruloo 3 2mg, morning, 15 days", + "Ark get (LA), not mentioned, -", + "T. Benitab 4mg, morning, 15 days", + "Syp. DuphalacC, -, 10ml", + "T. Acicurb 19m, not mentioned, 15+15 days", + "& Panton", + "8. 97554-4", + "PAN 40, morning", + "SLRT", + "Delinical Abd Pelosis", + "Cap Synkron 513, 15 days, 10", + "Tab Celdet 6 mg, 10", + "Tab Ricert 20 mg, 10", + "Ssp Welleine -P (250), every 5 days", + "Mekut DS, only, 5 days", + "Top Duit DDS (200)", + "Unknown", + "Tafi, morning, 1 day", + "Be Well, morning, afternoon, night, 1 day", + "Foly's Catluter, morning and night, 1 day", + "Suspension Ibukind Plus (IBUPROFEN(100 MG) + PARACETAMOL(162.5 MG)), after food, till required", + "Inj: Imax 5", + "Normal Saline/ Tv set/ Blue Conula/ Disposable byring & Decale -0", + "Syp. Ux Joy-1", + "Syp. Descorange-1, a", + "Syp. Ibugesic PLUS, 1-0-1, 5 days", + "DEPURA, 1-0-1, 4 weeks", + "ULCIWELL DSR, before dinner, 10 days", + "THEOLIFE, after breakfast, after dinner, 1 week", + "LC BIT MK KID, after dinner, 1 week", + "zental 400, after dinner, stat", + "TUNEVIT, after lunch, 10 days", + "Mebit plus, stat, intramuscular", + "Compas", + "OT GEMER K VL", + "DJ Eloum or", + "Pan 40, once daily, 10 days", + "Augmentin 625, twice daily, 10 days", + "Montek LC, once daily, 10 days", + "TAB PAN 40, once daily, 5 days", + "Tab . Signoflom, once daily, 5 days", + "Shelcal, once daily, 5 days", + "Dicorate-ER 500mg, 1 - 0 - 0, 1 month", + "Mebodep-CD3, 1 - 0 - 0, 1 month", + "Tryptomer-25mg, 0 - 0 - 1, 1 month", + "Writex 7G, 0 - 0 - 1, 1 month", + "Napra D 500mg, as required", + "Syrup Zyrcold, twice a day, 5 days", + "Syrup Montek LC Kid, once a day, 2 weeks", + "Alocepodem 100-DT, twice a day, 10 days", + "Sp Asthalin, as needed", + "Ciplamid - 3, at bedtime, 5 days", + "Dato, 1-", + "Frend, 1-", + "E Flo Eyedrop Eye Drops, till 02 oct 2023, both eyes", + "E Flo Eyedrop Eye Drops, till 04 oct 2023, both eyes", + "E Flo Eyedrop Eye Drops, till 06 oct 2023, both eyes", + "E Flo Eyedrop Eye Drops, till 08 oct 2023, both eyes", + "HYLA OINTMENT Eye Ointment, both eyes", + "Capsule ITASPOR-SB, 1-0-1, 7 days", + "NAILROX CREAM, 1-0-0, 21 days", + "Tablet JUPISHINE, 1-0-1, 1 month", + "Azithromycin 500mg, after meals, 3 days", + "Allegra 120mg, before meals, 7 days", + "Paracetamol 500mg, after meals, 3 days", + "CAP CEFTURSN, 0-0-1, 5 days", + "CAP ECOFLORA, 1-0-0, 15 days", + "CAP RyTH MIXA, 1-0-1, 13 days", + "TAB EGOSPO75, 1-0-0, 7 days", + "Cap Somtraz 1, 10 days, 10 days", + "Tab Sompraz 40, 15 days, 15 days", + "Val Leemide 25, 7 days, 7 days", + "Gaviscon, after meal", + "Tas Metosantan 40/25, 1 month, 1 month", + "Tab Sompraz 20, 20 days, 20 days", + "Dolo, as needed", + "PAN 40mg, after meal, 2 days", + "JUMP, before meal, 2 days", + "Putop-2, after meal, 3 days", + "Gerne MPS, before meal, 3 days", + "Somprag 40mg, before meal", + "TI CINTARRO, after meal", + "Sur Sumafilo, after meal", + "NORMAXIN, after meal, 3 days", + "PAN 40, before breakfast and dinner", + "NAD, as needed", + "TIBROZEN, once daily", + "Pan 40, bd, 2 months", + "Cap Doxy 100 mg, bd, 2 months", + "Cap Vizylar, bd, 2 months", + "Jab Mekogyl 400mg, bd, 2 months", + "Tablet Minti AZ, morning and night", + "APPSMarcas 250 MG, morning and night", + "Tablet Diominie Dea, morning, afternoon, and night", + "Tablet Akilos p, before breakfast, after lunch, and evening", + "Syrup Coscopin Plus, before breakfast, lunch, and dinner", + "Capsule Happi D (20 & 30), morning", + "T Gluconet Mini, morning and night", + "Alco-pm, before bedtime", + "HTN + RX", + "Telmiland, after lunch", + "CT", + "Telmisartan 40/6.25, after dinner, 10 days", + "Carbiphage XR 500, after breakfast and dinner, 10 days", + "Bio-D3 Max, after lunch, 7 days", + "Rosuvas Ford 10, after dinner, 10 days", + "Febrap 40, after breakfast", + "Flokind 0.4, before bedtime, 5 days", + "Merogal GR 600, after dinner, 10 days", + "POLYCLAVE 625 MG, twice daily", + "BENZ, once daily", + "TUSQ LOZENGES, four times daily", + "Paracetamol, 3 times a day, 5 days", + "Montair-By, 1 time a day, 5 days", + "Microcap 200, 1 time a day, 5 days", + "Dolo 650mg, 5 times a day, full course", + "Enterogermina Suspension, 3 days, full course", + "Dynapar Injection, 5 days", + "Tab. Veronal SP, 5 days", + "Tab. R-Drive 20, 5 days", + "PAN 40, morning and night, 5 days", + "Paracetamol, morning and night, 5 days", + "Comger Talegront Duur, twice a day, 5 days", + "Pastadosr, twice a day, 5 days", + "Tra de Cetinsta CV, twice a day, 5 days", + "Antle binder -CD, twice a day, 5 days", + "AMARYL 2 mg, morning and night, till review", + "VILDAPRIDE 50 mg, morning and night, till review", + "ROCROS 10, afternoon, till review", + "NEXITO FORTE, afternoon, till review", + "PEVESCA PLUS, afternoon, till review", + "TH Eltroxin, 1-0-1, 30", + "[missing medicineme], 1-1-1, 30", + "[missing medicineme], 1-1-1, [missing course duration]", + "Paracetamol, morning and night, 4 days", + "Amoxicillin, morning and night, 4 days", + "Omeprazole, morning and night, 4 days", + "Novamente, morning and night, 10 days", + "PAN 40, morning and night, 10 days", + "Calcium, morning and night, 10 days", + "Tas-Mittel Spas, after breakfast, 5 days", + "Tax-Domperidone, after breakfast, 5 days", + "Tus-Partie 500mg, after lunch, 5 days", + "Tab Mahacef 200, after meals, 5 days", + "Tab Liv 52 DS, after meals, 5 days", + "Tab Becosules Z, after meals, 5 days", + "Sur. Oxipad 1001", + "Folsafe-L, once daily, 30 days", + "Feri B. wash, once daily, 21 days", + "F. Alde, once daily, 14 days", + "Terbinafine 500, once daily, 20 days", + "Inj Imax 5, as prescribed", + "Normal Saline, as prescribed", + "Syp Ux Joy, as prescribed", + "Syp Descorange, as prescribed, a", + "Syp. Duphalac, 0-0, 7 days", + "Lignocaine jelly 2% (xylocaine), tds", + "J- Sitcom (forte), 0, 1", + "clo BIL Pedal odema", + "CALLESR, 2-2- 2, 1 month", + "Unimot, 1 month", + "D-fix, 1 month", + "Ultracet, 20 day", + "Lipiland - F, 1 month", + "PROLOMET XL 50MG TABLET, before breakfast - daily, 6 weeks", + "SZETALO PLUS TABLET, bed time - daily, 6 weeks", + "LONAZEP MD 0.25MG TABLET, after dinner - daily, 6 weeks", + "ROSUVAS F 10MG TABLET, after dinner - daily, 6 weeks", + "HEPADO, after food - daily, 6 weeks", + "CYRA D CAPSULE, before breakfast - daily, 15 days", + "SURBEX XT TABLET, after food - daily, 15 days", + "CIPCAL 500 mg TABLET, alternate day, 3 weeks", + "Cipcal D3 Granules, once a week, 5 weeks", + "Neurobion Forte Tablet 30's, alternate day, 3 weeks", + "TAB SANOGESIC P, 1-0-1, 5 day", + "TAB CEPODEM 200 MG, 1-0-1, 5 day", + "TAB MONDESLOR, 0-0-1, 5 day", + "CAP SISBONE K2, 1-0-1, 15 day", + "PAN 40, thrice daily, 30 days", + "Ferradol, once daily, 60 days", + "Progesterone, thrice daily, 90 days", + "PAN 40, morning and night, 59 days", + "T Norminol, morning and night, 59 days", + "DL ID, you, morning and night, 59 days", + "T. Reclid� MR 30, bd (before breakfast and dinner), 2 months", + "T. Vildaparido M 50/150, bd (before breakfast and dinner), 2 months", + "Med T Glycomit SR 500, od (once a day), 2 months", + "Peuvent (Rf) Gibi Oleraa bunt, 1-0-1, x 5 days", + "Tab CHYMORAL FORTE, 1-0-1, x 5 days", + "Tab HIFENAC MR, 1-0-1, x 5 days", + "Tab. Altroday, after breakfast, 14 days", + "Tab. Ultramed D, after lunch, 21 days", + "Joe Collamer Plus Idaes, after dinner, 3 months", + "Kup T98M, 1-0-1", + "Backoder M, 1-0-1", + "Pintor Cs, 1-0-1", + "Inj PCM 1, stat, one dose", + "Jaraben, 1-0-1, 6 days", + "Bayar 10%, 1-0-1, 6 days", + "Kehm Pero 1mg, 1-0-1, 6 days", + "Toonceyzong Ty de marketing, 1-0-1, 6 days", + "T. Etibenny Plus, 1-0-1, 6 days", + "T. Metaguy 500k, 1-0-1, 6 days", + "Gymerbal 4151, 1-0-1, 6 days", + "Elucilla DS 6.5, 10-1.10, 14", + "Azgoodx(oc), -, 6", + "Arm.", + "Sumal Plus, twice a day, 3 days", + "Velof-D, three times a day, 3 days", + "Nasoact Nib, once, 1 day", + "Chemamila Pills, once, 1 day", + "Colimex, once, 1 day", + "Betnesol, 2 doses, 24 hours apart", + "Cephalexin, bd", + "Adw", + "pees", + "Vinpocetine", + "PAN 40, morning", + "BP 114168, morning and night", + "Motival, morning and night", + "Taf, before breakfast and dinner, 1 month", + "MONTAIR- fx, 5 days, 5 days", + "Ciplox 500mg, 5 days, 5 days", + "T. Dolo 650 mg, 3 days, 3 days", + "Syp Ascol- 1, 1-0-0, 5 days", + "A well ag, 12 weeks, 12 weeks", + "BP Medication, once daily", + "Vitamin D3, once daily", + "Taxim-O 200, twice daily, 7 days", + "AS PLV, once daily, 10 days", + "TAB RAZO 20mg, 1-0-1, 30 days", + "TAB MENOCTYL, 1-0-1, 30 days", + "TAB CIZASPA, 1-0-1, 200 days", + "Tanto 75M, 1-0-0", + "DIT Enlargafly, 1-1-1", + "Lase & Gutem, 1-0-0", + "Labelsc, 1-0-1", + "Istrot, 1-0-0", + "Tal Eldict, 1-1-1", + "Plain xy all, 1-0-1", + "Chut oha", + "Stomatab.c, before breakfast", + "Dksix.c, before food", + "Elathy.c, before breakfast", + "Kasa.c, before food", + "Swasawa.c, before food", + "Ceralgin, after food", + "Kasa kasayam, before food", + "Vasilha, before food", + "BarronilG, before food", + "Dermittal, before food", + "Livoral, before food", + "PP.C, before food", + "Decofycin, before food", + "vasa Leg, after food", + "vizyme.c", + "MANYATA, morning and night", + "Tab. WAXDOM 500 mg, morning and night", + "Tab. TRYPTOMER, morning", + "No-Mark ointment", + "Alloederim", + "Pan 40, morning and night, 5 days", + "Dolo 650, morning and night, 5 days", + "T. Janumet 50/500, daily", + "T. Remyelin D, weekly, 8 weeks", + "T. D sise 60k, weekly, 8 weeks", + "Meftal P, as needed for fever, repeat after 6 hours if required", + "Ascoril LS, thrice a day, 1 week", + "Ambroxol + Levosalbutamol, thrice a day, 1 week", + "Telekast L Kid, once a day at night, 15 days", + "Azee XL 200, once a day, 5 days", + "Polyethylene Glycol + Sodium Bicarbonate, once a day, 1 month", + "Bandy, once a day tonight and repeat after two weeks", + "Albendazole", + "Cyclopam, as needed for pain abdomen", + "Simethicone + Dicyclomine, as needed for pain abdomen", + "D3 must Nano Shots 60 K, once a week, 10 weeks", + "Cholecalciferol 60,000 IU, once a week", + "Aptimust, once a day before food, in the evening at 7 pm, 3 months", + "Cyproheptadine", + "TRYptoMER lome, 3 times a day, 3 months", + "MSTRONG, 1 month", + "THMANO 3, 1 month", + "PAN 40, bd, 5 days", + "CALCIUM SUPPLEMENT (66k), bd, 400k", + "JUNCAL-P SUSPENSION, bd, 2 days", + "SANOGESIC P, 1-0-1, 5 days", + "CEPODEM, 1-0-1, 5 days", + "MONDESLOR, 0-0-1, 5 days", + "SISBONE K2, 0-0-1, 15 days", + "RSS Syp. oruzyme, bd", + "Syp offarmarim, bd, 12 days", + "Esp. Mexico-forte, bd, 5 days", + "Paracetamol, tds, 5 days", + "Budesonide, bd, 5 days", + "Im Mikastar 500, morning and night, 10 days", + "Zanocin-02, morning and night, 6 days", + "Sponolac-AS, morning and night, 6 days", + "Ban 40, before breakfast and before dinner, 1 month", + "Cap Protete 15, before breakfast, 1 month", + "Tab. comoufer vor �s, before dinner, 1 month", + "Typhilet gm, after dinner, 1 month", + "Tab. Unizyme, before breakfast and before dinner, 1 month", + "Tab. welcheline 2CB, before breakfast and before dinner, 1 month", + "Cap uprise 13 60, before breakfast, 1 month", + "PAN 40, 1, 14", + "Esocet-D", + "Clingen Forte, 0-1", + "PAN 40, bd, 7 days", + "TAB MEFTAL SPAS, as needed", + "VERTIN, once daily", + "Tab. Vetory, x 5 days", + "Tab. Acilac 150mg, x 5 days", + "Depo medrol, bd � 5 days", + "Tab. Auloc 15, br 3d � 5 days", + "PAN 20, after food, 10 days", + "Nauser, as needed", + "A Deslusion, as needed", + "Mildergashi, as needed", + "PR-112, before food, 10 days", + "liderin, as needed", + "TAB DILNIP 5 MG, after meals", + "TAB PRIMEZOLE 40 MG, before meals", + "TAB GLARISURE, before meals", + "Cap Sampras, morning and night, 2 weeks", + "Tab Sampras, morning and night, 2 weeks", + "Syp Fueral, before dinner, 2 weeks", + "Pan 40mg, before breakfast", + "Tramadol, as needed", + "Ilike", + "T. Livogen, morning and night, 5 days", + "T. cltrocaples, morning and night, 5 days", + "Macprotein powder, morning, 5 days", + "Zifi (200), morning, 5 days", + "Proroms9 (300), morning and night, 5 days", + "vizylac, morning and night, 5 days", + "Econoroom, morning and night, 5 days", + "Proff vachet, morning and night, 5 days", + "Flagyl 400, morning, 5 days", + "Flagyl 1000, morning, 5 days", + "Livogen, morning, 5 days", + "Fornig, morning, 5 days", + "Tustacoplar, morning, 5 days", + "jarix, morning, 5 days", + "Proffane 19 (300), morning and night, 5 days", + "Incomplete", + "Incomplete", + "Incomplete", + "NA", + "NA", + "NA", + "Anal Blog Ass, 1-0-0", + "Crabapun 100, 1-0-0", + "Zenopa 00, 1-0-0", + "Dolopar Creel", + "PAN 40", + "Triple H", + "Cap Ontoxid HC, once daily, 30 days", + "Desowen Cream, as directed, as directed", + "Jakta forte ointment, as directed, as directed", + "Job Allegra 180, as directed, as directed", + "Tab. DIZIBEAT, 5 days", + "Lesum, after food (9pm)", + "ECG, 5 days", + "Tab. Typerom, after meals, 5-7 days", + "Tab. Pop 120, before breakfast", + "Tab. APF 159, before breakfast", + "Inj. Insulien 50/50, after meals", + "Inj. En Sugen 30/70, after meals", + "Tab. Guywase 5, after meals, 30 days", + "Tab. Torhup 50, after meals", + "Tab. CruxIT 10, after meals", + "Tab. J. C. HOPACE 25, after meals", + "Tab. T. NUROKIND -LE, after lunch, 10 ml x 2mts", + "Syp. Cremaptin Bins, after meals", + "PAN 40, bd, 30", + "Renova GM, bd, 60", + "VoliDer, -", + "Amoxylaw, after breakfast", + "LK-D, before dinner", + "Mountain, before dinner, 6 days", + "Parto P-D, before breakfast, 6 days", + "Syr. on & on. Cough, after meals", + "Toul, before bedtime", + "Galvus.Met, bd, 1 week", + "Telnyk CH (40/12.5), od, 1 week", + "starpress XL 100, od, 1 week", + "Rosuvas, od, 1 week", + "Febustat, od, 1 week", + "Thyronorm, od, 1 week", + "Nasal Spray, bd, 15 days", + "T. Lenono, bd, 15 days", + "Anniy Plus 200, od, 5 days", + "1. Etaliler", + "-1. cease-sp", + "mysi cialement faut", + "Laformin GV, 0-0-1, 3 months", + "Sitahenz D 5/50, 1-0-0, 3 months", + "Enzoflam, 1-0-1, 5 days", + "Mandyic party", + "L.S.Shaw.", + "out Dokln-1", + "HIFENAC MAX TABLETS 10'S, 1-0-0, 1 month(s)", + "IT MAC 100MG STRIP OF 10 CAPSULES, 1-0-0, 1 month(s)", + "TRIBEN PLUS CREAM, once daily, 3 days", + "NEMOCID, twice daily, 2 days", + "NST (Non-Stress Test), weekly, ongoing", + "Depamethasone, 24 hours, ongoing", + "ALDACTONE 100 MG, after food - daily, ongoing", + "DIANE 35, after food - daily, 21 days", + "Tab FRANCAC CZ, 60, 81", + "Tab PEPFERRIN, 60", + "3 Tab SQADD1 2L", + "(a) Tab SUGAVILDASO, 120", + "Tab OD2 sunday,, 15 days 1", + "Tab CABERDOPA 0,5", + "2) COTIDOL Soap, te 0 0%", + "8 ZOBIDOLE Lotcon", + "OMNACORTIL 20MG TABLET, after breakfast - daily, 5 days", + "PANTIN 40MG TABLET, before breakfast - daily, 10 days", + "GLYMED 100ML LOTION, after bath - daily, 1 month", + "CLONATE 20GM OINTMENT, after bath - daily, 10 days", + "ALENIX 5 MG TABLET, after food - daily, 10 days", + "PAN 40, before breakfast and before dinner, 4 cycles", + "PAN 40, bd, 10 days", + "T. Chycometsk, al", + "Pigelmin, bbf", + "T. SitzkemxR, bd", + "Clan, bd", + "T. XEPAMH 100, bd", + "T. Zyfoly (3) 010, bd, 30 days", + "T. Ampnoch, bd", + "Cap. odhinab 100, bd", + "Sprig81af, al, 2 months", + "Ilal in Illera 10mg i.v. jeg0 ml, iv", + "Iv. auch 2 horas, iv", + "Avil, H. coltiv Het", + "Guzee", + "Poz Vala vuol 212", + "Apelo poglute -ai, tt, 28", + "ARV, 0, 3 7 , 14 28", + "lesibil 250 151, 300", + "opetal 300 100, (150)", + "NA, 50", + "TAB. OLYNZ M 500MG, 3 months", + "TAB. TELMIKIND 40 MG, 3 months", + "CAP. ECOSPRIN AV 75MG", + "Pan 40, morning and night, 14 days", + "Paracetamol, morning and night, 5 days", + "COAX, morning, 1 day", + "VILDAPHAGE-M, 01-0-0, 1-5/1120", + "AMLOSAFE, 01-0-0, 120", + "Cosader, 01-0-0, 16", + "Syp. Phenycip, 3 times a day, 7 days", + "Breathawaysal drop, 3 times a day, 7 days", + "Salvin Cola E, bd, 12 weeks", + "swiss OK, 001", + "PAN 40, morning and night, 7 days", + "Ecoprin 75mg, morning and night, 7 days", + "Ton Super 300mg, morning and night, 7 days", + "PAN 40, morning and night, 7 days", + "Orden MD, after lunch", + "Ban 40, 3 weeks, 3 weeks", + "Rabzia D, 10 days, 10 days", + "Entrygen-DS, 10 days, 10 days", + "Ru, sup Rinifol, > todail, 10w as adesed", + "di TreLlOR Lanol (30)", + "Gup Cyclopen, 7.5 w/ 60r, 7days", + "Guy Mofasi, 6", + "Waysone E a drop", + "Rx, T.prosyn 250, -", + "T. JelloR lanzo1 (15), quiral myositis", + "voreRantaes/ vovi Ran, 7", + "Doxt-SL Capsule, daily, 2 weeks", + "Glocin Gel CLINDAMYCIN (1/4 %) Gel, 1 time, 4 weeks", + "Minoz-BPO Gel Adapalene (0.1 %) + Benzoyl Peroxide (2.5 %) Gel, 1 time, 4 weeks", + "Ahaglow S Foaming Face Wash 100 ml, 2 times, 4 weeks", + "Acnemoist Cream 30 g, 2 times, 4 weeks", + "Hospipow zesto cold 11, bbf, 10 days", + "Otalet, bbf, 10 days", + "Desolid 10, al, 10 days", + "Pan 40, morning, 10 days", + "Gemino-300, morning and night, 100 days", + "Syp Augmentin DDS, 2-3 times daily, 1 day", + "Syp Thinic, once at bedtime", + "Crocint - 6 ml, morning and night", + "Angiglam", + "PAN 40, morning and night, 3 days", + "MEFTAL SPAS, morning and night, 5 days", + "ENTEGERMINA, morning and night, 7 days", + "Pan 40, morning and night, 10 days", + "Zimoces, morning and night, 10 days", + "Unobiotics, morning and night, 3 days", + "Pan 40, morning and night, 14 days", + "Paracetamol, morning and night, 10 days", + "Cough Syrup, morning, afternoon, and night, 7 days", + "Bluiban, bbf", + "chent hans, 001", + "Rib Belt, bd", + "T. Rifagut 550, morning and night", + "Bifitar ho, morning, afternoon, and night", + "Syp cinovic sul, morning, afternoon, and night", + "Cap Beusule 2, morning, afternoon, and night", + "syp sucrafil 0, morning, afternoon, and night", + "Soje, before breakfast, before dinner, 10 days", + "Vibalt DS, before breakfast, before dinner, 5 days", + "Raciper D, before breakfast, before dinner, 10 days", + "Tar lepodem, 1-0-1, 7 days", + "TAB. COLLAFLEZ PRO PLUS CAP., after food - daily - 5 days", + "TAB. AFLAROSE PLUS TAB, after food - daily - 5 days", + "TAB. ROCKBON, after food - daily - 5 days", + "TAB. ULTRAKING, after food - daily - 5 days", + "GUFIBIS OIL 20ML, daily - 5 days", + "TAB. HQTOR *, after food - daily - 5 days", + "CAP. PRECOOL *, after food - daily - 5 days", + "Optojest, 30 days", + "Preynocure, 30 days", + "Galan ma De, 30 days", + "Calcimax Forte, jul", + "Bandy plus, 70ml", + "Meganeuron-MF, after breakfast", + "Telista 20, after dinner, 20 days", + "Pantospe D&R, after meals", + "Zeprest plus, after meals", + "Besohow 2.5 Los, before bedtime", + "Tab. Nejor, bd, 1 month", + "Tab. Defical, bd, 1 month", + "Ij Osteo D3, stat, 1 month", + "Tab Cefoxim 500, twice daily, 5 days", + "Tab Pan 40, once daily, 10 days", + "Tab Zerodol SP, twice daily, 5 days", + "Sepia Im (4)", + "All. capa 200", + "Petro 200", + "April 200", + "SGH 2020, once only - evening, 30 day(s)", + "Coldol Cream 250 ml, night, 0", + "Montair / Telekast / Romilast - 5 mg, 0, 5-15 day(s)", + "Budecort / Budate inhaler 100, 12 hrly (fix dose), 5-15 day(s)", + "Cetzine Syp, night, 5-15 day(s)", + "Budenase Nasal Spray, 12 hourly, 5-15 day(s)", + "Protinex Dry Mix, 12 hourly, 45 day(s)", + "Levolin / Salbair inhaler, 3 doses stat, 1 day(s)", + "Levolin / Salbair inhaler (severity of cough), 2-4-6-8 hrly, 5 day(s)", + "TAB OMNACORTIL 2.5 mg 100, before breakfast and before dinner", + "TAB CARDIVAS 6.125, before breakfast and before dinner", + "TAB FOLVITE 5mg 100, before breakfast and before dinner", + "TAB RABLET 20, before breakfast, 15 days", + "CAP. CYCLOSPORIN 25, after lunch", + "CAP. DANAZOL 50, after dinner", + "TAB Du tor 5, after dinner", + "TAB Amlodip. 5, before breakfast", + "IM AUGPLAT 500 once weekly (Tuesday), before breakfast", + "TAB Zincovit, before breakfast and before dinner, -", + "ACID NIT, bd, start now", + "SCROPH NODOSA, bbf, morning", + "HAMAMELIS, al, afternoon", + "MYRISTICA, 001, night", + "NA", + "NA", + "NA", + "Montek Lc, morning, night, 6 days", + "Azithromycin, morning, 3 days", + "Paracetamol, morning, afternoon, night, 5 days", + "Syp Ibugeste, 3 times a day, 10 days", + "A02, 1-0-1, 5 days", + "Tab Foldege D, bd, 5 days", + "Pu Sampai 7mg, od, 25.26 days", + "PAN 40, morning and night", + "Forvite, night", + "Drogayde, morning and night", + "PAN 40, bbf", + "Paracetamol, bd", + "Dufladac 800, 3 times a day", + "Dechilea Jaim", + "Ro", + "x-1 -x 5deup", + "Rifagut 400 Tablet, after food, 10 days", + "Rifaximin 400mg, after food, 10 days", + "Dobesil 500mg Capsule, after food, 3 months", + "Calcium Dobesilate 500mg, after food, 3 months", + "Stone 1 B6 syrup, after food, 2 month", + "Enterogermina, after food, 5 days", + "pine, morning and night, 1-1.5 month", + "Mourefloor", + "Paulus, bd", + "Polybir, bd", + "C", + "Paracetamol, daily, 5 days", + "Cetirizine, daily, 5 days", + "Antacid, daily, 4 days", + "AVIRIT, 5 5, 5 days", + "Paracetamol, morning and night, 5 days", + "Montair-By, morning and night, 5 days", + "Microcap 200, morning and night, 5 days", + "CALPOL/CROCIN/PARACETAMOL DROPS, 6 am, 12 pm, 2 days", + "Hiper MK", + "Tipau 40mg, 2 days", + "Dicloget 401", + "Jij Methy Cobal 1 amp alt day, alternate days", + "Das Deterrol Oncealle x 100ks, daily", + "Vice-M (500)", + "Das Stalit-D, daily", + "Dos Tri olmasa@ 41", + "Das Enite (40), daily", + "Pan 40, morning and night, 7 days", + "Sinarest, morning and night, 7 days", + "Entero-Germ, morning and night, 7 days", + "PAN 40, bd, 21 days", + "DESO ALLERGY, bd, 21 days", + "CALCIUM, bbf, 21 days", + "Tenovate cream, 3 weeks", + "HCQS (400g), 3 weeks", + "Tab oxyflam MR, before breakfast and before dinner, 20 days", + "Cap Oxyorb LS, before breakfast and before dinner", + "Cap OXY-Q- 300, before breakfast and before dinner", + "Rb INOTOR 5, before breakfast and before dinner, 20 days", + "Tab Acoxia MR, before breakfast and before dinner", + "Cap Hbneuron PLUS, before breakfast and before dinner", + "Tap Alrical Gold, before breakfast and before dinner", + "Tab Mega carnit-, before breakfast and before dinner, 20 days", + "Gesic Liniment for massage", + "Zerfan MPS 10ml 50%", + "Syrup Zyrcold, twice a day, 5 days", + "Syrup Montek LC Kid, once a day, 2 weeks", + "NA", + "NA", + "NA", + "QIng. Didlo-1, tid, 3 days", + "zibi 200, bo, 3 days", + "TUS Q Dx-1", + "Pan-40, bd, 3 days", + "A+o2, 5 days", + "Tab. Moxyrin cu. 625mg, before food, 5 days", + "Tab. Raberin.D, before food, 5 days", + "Tab. Montriy-le, after food, 5 days", + "Tab. 0010-650-> 505", + "TAB Darf 4mg, after breakfast, 3 days", + "TAB Rosucoup 10 mg, before dinner, 1 year", + "VENUSIA MAX 300ML LOTION, daily, 30 days", + "ATODERM MOUSSANT, daily, 30 days", + "MOMATE 15GM CREAM, daily, 30 days", + "XYZAL 60ML SYRUP, daily, 30 days", + "TACROZ FORTE 10GM OINTMENT, daily, 30 days", + "TAB PAN 40, 1 daily, 5 days", + "Tab Signoflom 1, 1 daily, x5", + "Shelcal, xxo", + "Tab Cepodem, bd, 5 days", + "Tab ASTM, od, 5 days", + "Tab Panum D, ac, 10 days", + "Syp Ato 2, bd, 7 days", + "Syp BAPC, bd, 7 days", + "Tab SA 100, ac, 5 days", + "Tab Etowin 60, after breakfast and after dinner, 10 days", + "Tab Ban 40, before dinner, 10 days", + "Calpol drops, every 6 hrs", + "PFS TRESIVAC[SERUM], once", + "INJ MENACTRA[SANOFI], once", + "HbA1c", + "High Sensitivity C -Reactive Protein(HsCRP)", + "Iron Study", + "Tab. AlfsNC, 1-0-1", + "Tab Octobix, 1-0-1", + "Tab Ler15, 1-0-1", + "Tab Pzae, 1-0-1", + "Tab Euognix, 1-0-1", + "Mamadialitu con1, 1-0-1", + "Ag preg, 1-0-1", + "- FRS/2hPP BS, 1-0-1", + "PAN 40, morning and night, 4 days", + "Paracetamol, morning and night, 4 days", + "PAN 40, after meals", + "Erace, before meals", + "CRP AV 50, after meals", + "O.T. Dolo 650, bd", + "Lorsaid of, bbf", + "Devocetim/ my/cast, bbf", + "T. DISPERZYME, bbf, 5 days", + "Calpol 250mg Tablet, as needed, 5 days", + "Syp Alex Junior 5mg/5ml, 3 times a day, 5 days", + "Predmet, morning and night, 10 days", + "PAN 40, morning, 5 days", + "Paracetamol, morning and night, 24/2/23", + "Pan 40, morning and night, 3-4 days", + "Paracetamol, morning and night, 3-4 days", + "PAN 40, before breakfast and before dinner", + "Morten le, night", + "Defakind, after meals", + "Delafloxacin, morning and night, 5 days", + "EL Cumple MR, before dinner, 10 days", + "Co Codamol, 5 days", + "Co Adtol, 20 days", + "TRIVOLIB FORTE-1 TABLET, 60, 120 bf", + "THYRONORM 150MCG TABLET, 60, 60 bf", + "NA", + "Rabeprazole, 1-0-1", + "Atorvastatin, 1-0-0", + "Ivabradine, 1-0-1", + "Apixaban, 1-0-0", + "Azmoth, 1-0-0", + "Arnoza, 1-0-0", + "Bisoprolol, 1-0-1", + "Zyloric, 1-0-0", + "Ductus T, 1-0-0", + "Dytor 20 em, 1-0-0", + "Dytor 10, 1-0-1", + "Lanoxin, 1-0-3", + "Tonact Plus, 1-0-1", + "Dolonex Dt Tablet 20mg, bbf, 5 days", + "Augmentin 625mg Tablet, bd, 3 days", + "Dompan Tablet, al, 5 days", + "Dolo 650mg Tablet, al, 5 days", + "T. Dzotute 10mg, once a day", + "Rest atall", + "LUKOTAS HD TABLET, after dinner - daily, 20 days", + "MONTEMAC AL, after dinner - daily, 20 days", + "AMBROXOL 75 MG, daily, 20 days", + "LEVOCETIRIZINE 5 MG, daily, 20 days", + "MONTELUKAST 10 MG, daily, 20 days", + "PAN 40", + "Smart pain plan- tropper fs", + "NA", + "Pan 40, every morning, 7 days", + "Dapsone, every morning, 7 days", + "Carcit, morning and night, 7 days", + "Reglas Labor Com, morning and night, 7 days", + "140, every morning, 7 days", + "TAB - SHELCAL CT, 1, after breakfast and dinner", + "TAB - THYRONORM 125 MCG, 1, on empty stomach (1 tab mon to sat , 2 tab on sunday)", + "CAP - D RISE, 1, once a month", + "TAB AMLONG 5 MG, morning", + "Rantac, after meals, 5 days", + "Nasivion, bd (before bed), 5 days", + "Ibugesic Plus, after meals, 5 days", + "Capotril, after meals, 7 days", + "Syp. Rady, after meals, 5 days", + "Calvin-D3 Drops, once a day, 1 month", + "Nasivion S (Nasal) Drops, 5 times a day, 4 days", + "Sodium Chloride (0.65% w/v) + Benzalkonium Chloride (0.03% w/v) Nostrils Drops, 5 times a day, 4 days", + "PAN 40, before breakfast, 2-3 weeks", + "Tab B-29 1m, before dinner", + "Tab Dolo 600, after lunch", + "TABLET DELTONE (60 mg), 30 min before food, 30 day(s)", + "TABLET LESURIDE 25MG (25MG ), 30 min before food, 30 day(s)", + "TABLET NEXITO 5MG (5 mg), after food, 30 day(s)", + "LIQUID Aristozyme (10/50mg), 15 ml three times daily after food, 30 day(s)", + "Suspension DIGERAFT MINT FLAVOUR (10 ML), after food, 10 day(s)", + "ORS, tbd, tbd", + "Sp. Oftrivselog, tbd, tbd", + "Soc. DiFisac 1-14, tbd, tbd", + "Syl. cyccorona(5mm) +84, tbd, tbd", + "Sys. Partene Su 1 mg, tbd, tbd", + "MEN-39, tbd, tbd", + "Azithromycin, 1-0-1, 5 days", + "Paracetamol, 1-1-1, 5 days", + "Rib Belt, n/a, as per requirement", + "PAN 40, morning and night, 10 days", + "Paracetamol, morning and night, 10 days", + "Diclofenac, morning and night, 10 days", + "PAN 40, twice daily, not mentioned", + "Nimulid, only at night, not mentioned", + "Entimy Plus, once daily, not mentioned", + "81T60060", + "LDIT60060", + "Dr.T.F@br &p&Turfun M.B.B.S ., M.S.(OBG),D.G.O ., F.A.G.E .,", + "T. Somprag 40mg, before breakfast and before dinner, 3 days", + "CINTARRO, before breakfast, lunch, and dinner", + "Sucrafel-o, after lunch, 14 days", + "NORMEXIN, 3 times a day, 3 days", + "Misogesic SR, 3 times a day, 10 days", + "T. Oatzy, before breakfast, 30 days", + "T. Cobafisch, before dinner", + "Tab. DIZIBEAT, 5 days", + "Seruna Vit. D, 5 days", + "Lesum Vit. B12", + "Tub FlozerAA -15, 01�5 day", + "Tab Mahaaf x 20", + "Tab Dolokind MR-, 1/2h", + "Tab Parkand", + "PAN 40, thrice a day", + "Florent- Fourth", + "Te CALS", + "Gel - Ora Help, 5 days, 5 days", + "Syp. Bandy Plus, hs, 15 days", + "Pan 40, 3 days, 7 days", + "Ecosprin AV (15/10) OD, morning, 30 days", + "Night spadives, morning and night, 30 days", + "NA", + "NA", + "NA", + "Tab. Augmentin Duo 625mg, 10 days, 10 days", + "Tab. Colpa-D, 5 days, 5 days", + "Syp Ascoril-LS, 1 week, 1 week", + "Yab. Relent, 1 week, 1 week", + "Cap. Somplas-0, 1 week, 1 week", + "Nirmadhu Tab, after food, 45 days", + "DIME E Wock, after food, 45 days", + "Prashaantha Tab, after food, 45 days", + "TAB.RYBELSUS 14 MG, 1 tablet before breakfast, 30 days", + "TAB.GLEDEPA 10 MG/OXRA 10 MG, 1 tablet before breakfast, 30 days", + "TAB.GLYCOMET SR 500 MG, 1 tablet before dinner, 30 days", + "TAB.SYMBAL (30MG), 1 tablet bedtime, 30 days", + "CAP.RABONIK DSR, 1 capsule before dinner, as needed", + "TAB.RAZEL F 5 MG, 1 tablet bedtime, 30 days", + "Jy. Sheprix, bd", + "Sp Dolo 250, 001", + "Sp. Bifolate, 001, 1 month", + "PAN 40, once daily, after 7 days", + "LORAZEPAM, as needed", + "VOLTAREN, as needed", + "Amoxicillin-Clavulanate 625mg, 5, 5 days", + "Dexamethasone 4mg, 5, 5 days", + "Paracetamol 500mg, 5, 5 days", + "Zinc Sulphate, 5, 5 days", + "Probiotics, 5, 5 days", + "PAN 40, before breakfast and before dinner, 1 month", + "Atarax, before bedtime, 5 days", + "Goun DS/Campol -250, if needed", + "Tab Tricum Max, 1 month", + "Tab Tendoshot, 1 month", + "Cap Indo Cap SR, 10 days", + "Tab Tryptomer, 10 days", + "Tab Rablet, 10 days", + "Tab ultrave", + "Ronder, bd, 4 days", + "Coldphan plus, bd, 4 days", + "Nazoplus marclep, tds, 4 days", + "Paracetamol-Mas, bd, 4 days", + "Livogen 1, 3 times a day, 15 days", + "Sheled xi, 6 times a day", + "Syrup Aptimust (CYPROHEPTADINE(2 MG)), before food, 2 weeks", + "Syrup Moktel (MULTI VITAMIN), 3 months", + "Medicine 3", + "Tab. Teczine 10 mg, morning, night, 100 days", + "Venusia Max Lotion", + "Diperbate Plus Lotion, morning, 100 days", + "PAN 40, morning and night, 10 days", + "Paracetamol, morning, afternoon and night, 5 days", + "Cough Syrup, morning and night, 7 days", + "Vonciel, morning and night", + "Pantop 2, morning and night", + "Ancin 625, night", + "Tls 0.1", + "PAN 40, once a day, 7 days", + "Paracetamol, 3 times a day, 5 days", + "Syp Dufladac, twice a day, 10 days", + "Mesar Plus, bbf, 35 days", + "Rowlip F 10, al, continue", + "Job Nuhenz D, bd, 1 month", + "Bio-Deplus, bd, 1 month", + "Gen Dono 60, 18 weeks", + "Pan 40, before breakfast and dinner, 5 days", + "Alvily, bd, 10 days", + "Taz Lansoprazol, bd, 15 days", + "Tab Switch 200, al, 10", + "Tab Calpol - 2, 001, 10", + "Sinarest, bd, 10", + "Tab par D, bd, 10", + "ACICURB OS, 5 ml after meals, 5 days", + "ZINCOVIT, 0 after meals, 15 days", + "ATARAX (10), 1 if itching/if required, 10 days", + "PAN 40, morning and night", + "Tramadol, morning, afternoon, and night", + "Hing, morning", + "TAB. COLLAFLEZ PRO PLUS CAP., after food - daily - 5 days", + "TAB. AFLAROSE PLUS TAB, after food - daily - 5 days", + "TAB. ROCKBON, after food - daily - 5 days", + "TAB. ULTRAKING, after food - daily - 5 days", + "GUFIBIS OIL 20ML, daily - 5 days", + "TAB. HQTOR *, after food - daily - 5 days", + "CAP. PRECOOL, after food - daily - 5 days", + "Ban 40", + "Oftax-OR 1", + "Pantop-40mg", + "Nuovi 2TSFX", + "TAB AMLONG 5 MG", + "Sgp. RidAts, follow up date:", + "PTU 50 MG, morning, afternoon, and night, review in 1-2 days", + "Ban 40, morning and night", + "Pantop D, morning and night", + "Ancin 625, morning and night", + "Syp. Duphalac, 0-0, 7 days", + "Lignocaine jelly 2% LA (xylocaine), before meals, 7 days", + "J- Sitcom forte, after meals, 7 days", + "Rozecor ASP, bd (before dinner), 30 days", + "T AXCER 90mg, al (after lunch), bd (before dinner), 30 days", + "Carloc 3.125, bbf (before breakfast), al (after lunch), bd (before dinner), 30 days", + "Syrup Briolite, once a day, 10 days bedtime", + "LEVOCETIRIZINE (2.5MG/5ML), once a day, 10 days bedtime", + "MONTELUKAST (4MG/5ML) Oral Suspension", + "AMOXYCILLIN (400MG/5ML) + CLAVULANIC ACID (57MG/5ML) Oral Suspension, 12 hourly, 5 days", + "Ointment Mupin (Skin) (5 gm) MUPIROCIN(2%), 8 hourly, 5 days affected area", + "Crocin DS Suspension, 6 hourly, sos", + "Nasoclear Nasal Drop, 6 hourly, 5 days", + "Toned milk", + "OLESOFT MAX CREAM", + "Alaspan Tablet LORATADINE (10 mg)", + "Protar-K Solution Ketoconazole (2 %) + Coal Tar (4 %)", + "Momate Cream Mometasone (0.1 %)", + "SHIKO 21077572", + "VELTEN 04MG 3MSK", + "Pan 40, after meals, 7 days", + "Ibrida Junior, after meals, 7 days", + "Polycion L - 50, after meals, 7 days", + "Syp. oflox 100mg, 3 times a day, 5 days", + "Syp. Netafox, 2 times a day, 3 days", + "Sport 4410, 2 times a day, 3 days", + "H-GUT, 2 times a day, 3 days", + "Dallan ORL, 1 time a day, 3 days", + "Syp. crpar 250, 6 times a day, 5 days", + "Sp. Me/torp, 1 time a day, 3 days", + "PAN 40, morning and night, 15 days", + "NEMOCID, bd (before dinner), 2 days", + "Ciplar (10), bd", + "Peril MD (+25), bd", + "Syp Julire", + "Pan 40, morning and night", + "Liv 52, morning", + "Bestyme, morning", + "PAN 40, morning and night", + "Perzo-M, morning and night", + "Dermeden calse lotion, bd", + "Sompraz 40, morning and night", + "Levogastrof 25, morning and night", + "OFLOX 50 SUSPENSION, 0, 6ml", + "SPORCAC TABS, -, rantal synd", + "Emixt Sumup, 30-45 mins, byfor food", + "Tab. Mebtal-500, 20 day", + "Tab Absolut hold", + "Tab Pay kony, 23 day", + "Tab cetrizin cons", + "Tab Zontal 400mg, x every 3 days", + "Caman, before breakfast, 60 days", + "Toxin 650, before dinner, 3 days", + "Dyrapar, after lunch, 3 days", + "PAN 40, morning, afternoon, night", + "Cap Aclinch, morning, afternoon, night", + "Pan 40, morning and night, 6 days", + "Admad, 1-0-1, 5 days", + "GLIMEPIRIDE, 1-0-1, 3 months", + "METFORMIN, 1-0-1, 3 months", + "LOSARTAN, 1-0-0, 3 months", + "Neurovon fris", + "Pato de D50", + "Tas Acicion 400, 3 times a day, 8 days", + "Tabs Rabmor D, 1 time a day, 8 days", + "Calapure Lotion, as needed, 8 days", + "Tab Neurokind LC, 1 time a day, 8 days", + "Syr Polybion L, 1 time a day, 8 days", + "PAN 40, morning and night, 3 weeks", + "Anoxlief, morning and night, 3 weeks", + "PAN 40, after meals, 10 days", + "Bilinds sun screenDA, daily, until next visit", + "Cosmelite-next Cream2, daily, 1 month", + "Noclevon, 3 times a day", + "Frucola AF, once a day", + "Marberny PD, 3 times a day", + "Pan 40, before breakfast, 1 day", + "Dydrogesterone, before breakfast, 1 day", + "Ferrous Ascorbate, before breakfast, 1 day", + "Mega-CV Forte, 2 times a day, 3 days", + "Syp Flexon, 2 times a day, 5 days", + "Maxtra, 3 times a day, 7 days", + "Sinomet (P)sal drops, 3 times a day, 10 days", + "SAPDAvolac, 1 time a day, 11 days", + "L-MONTUS TAB, 0-0-1, 2 weeks", + "FURAMIST NASAL SPRAY 27.5mcg/1 puff, 1-0-1, 2 weeks", + "SINAREST TAB, as needed, 3 days", + "hydrochloride 10mg, chlorpheniramine maleate 2mg", + "Steam Inhalation", + "Tab Ultracet, ao y, 3 days", + "Ice Docks", + "Moxiforce CV 625mg Tab, after meal, 5 days", + "Wintop DSR, before meal, 5 days", +] +durations_list = [ + "1 week", + "1 month", + "3 days", + "5 days", + "2 weeks", + "10 days", + "3 weeks", + "2 months", + "once", +] +frequencies_list = [ + "before breakfast", + "before breakfast and dinner", + "after food", + "before food", +] + + +def get_full_med_list(): + return full_med_list + + +def process_docs(dataset: datasets.Dataset): + def _transform(doc): + diagnosis = get_diagnosis(doc) + medicines_list = get_medicines_list(doc) + + try: + if contains_indian_characters(diagnosis): + diagnosis = "NA" + except Exception: + pass + + try: + if len(check_list_for_indian_characters(medicines_list)) > 0: + medicines_list = [] + except Exception: + pass + + gold, gold_position = doc_to_target_obtain(doc) + + doc["keep"] = (diagnosis != "NA") and (len(medicines_list) != 0) + doc["gold"] = gold + doc["gold_position"] = gold_position + return doc + + transformed_dataset = dataset.map(_transform) + + # Now filter the dataset to keep only those where 'keep' is True + def _filter(doc): + return doc["keep"] + + filtered_dataset = transformed_dataset.filter(_filter) + print(f"Final len filtered dataset: {len(filtered_dataset)}") + + return filtered_dataset + + +def contains_indian_characters(text): + # Define Unicode ranges for Indian scripts + indian_script_ranges = [ + (0x0900, 0x097F), # Devanagari + (0x0980, 0x09FF), # Bengali + (0x0A80, 0x0AFF), # Gujarati + (0x0A00, 0x0A7F), # Gurmukhi + (0x0C80, 0x0CFF), # Kannada + (0x0D00, 0x0D7F), # Malayalam + (0x0B80, 0x0BFF), # Tamil + (0x0C00, 0x0C7F), # Telugu + ] + + # Create a regular expression pattern for Indian scripts + pattern = "|".join( + [f"[{chr(start)}-{chr(end)}]" for start, end in indian_script_ranges] + ) + + # Check if the text contains any Indian script characters + return bool(re.search(pattern, text)) + + +def check_list_for_indian_characters(string_list): + results = [] + for text in string_list: + if contains_indian_characters(text): + results.append(text) + return results + + +def doc_to_text_easy(doc) -> str: + diagnosis = get_diagnosis(doc) + choices = doc_to_choice_easy(doc) + prompt = ( + "You are a medical doctor. A patient presents the following diagnosis or complains: {}. What would you prescribe in this case? \nChoices: \n" + "A. {} \n" + "B. {} \n" + "C. {} \n" + "D. {} \nAnswer:".format( + diagnosis, choices[0], choices[1], choices[2], choices[3] + ) + ) + + return prompt + + +def doc_to_text_hard(doc) -> str: + diagnosis = get_diagnosis(doc) + choices = doc_to_choice_hard(doc) + prompt = ( + "You are a medical doctor. A patient presents the following diagnosis or complains: {}. What would you prescribe in this case? \nChoices: \n" + "A. {} \n" + "B. {} \n" + "C. {} \n" + "D. {} \nAnswer:".format( + diagnosis, choices[0], choices[1], choices[2], choices[3] + ) + ) + + print(prompt) + return prompt + + +def get_diagnosis(doc): + results_dict = ast.literal_eval(doc["results"]) + if "procedure" in results_dict: + if "chief_complaints_diagnosis" in results_dict["procedure"]: + diagnosis = results_dict["procedure"]["chief_complaints_diagnosis"] + elif "chief_complaints" and "diagnosis" in results_dict["procedure"]: + diagnosis = ( + "Complains: " + + results_dict["procedure"]["chief_complaints"] + + ". Diagnosis: " + + results_dict["procedure"]["diagnosis"] + ) + else: + diagnosis = "NA" + + elif "prescription_details" in results_dict: + try: + diagnosis = results_dict["prescription_details"]["disease_diagnosis"] + except Exception: + diagnosis = "NA" + elif "Symptoms/Complaints" in results_dict: + symptoms = results_dict["Symptoms/Complaints"] + diagnosis = ", ".join(symptoms) + else: + diagnosis = "NA" + return diagnosis + + +def get_medicines_list(doc): + results_dict = ast.literal_eval(doc["results"]) + if ( + "medicine_details" in results_dict + and len(results_dict["medicine_details"]) != 0 + ): + if "medicine_frequency" in results_dict["medicine_details"][0]: + try: + medicines_sample = [ + f"{item['medicine_name']}, {item['medicine_frequency'].lower()}, {item['course_duration'].lower()}" + for item in results_dict["medicine_details"] + if len(item.keys()) > 1 + ] + except Exception: + try: + if "course_duration" not in results_dict["medicine_details"][0]: + medicines_sample = [ + f"{item['medicine_name']}, {item['medicine_frequency'].lower()}" + for item in results_dict["medicine_details"] + if len(item.keys()) > 1 + ] + elif ( + "medicine_frequency" not in results_dict["medicine_details"][0] + and "course_duration" in results_dict["medicine_details"][0] + ): + medicines_sample = [ + f"{item['medicine_name']}, {item['course_duration'].lower()}" + for item in results_dict["medicine_details"] + if len(item.keys()) > 1 + ] + else: + medicines_sample = [] + except Exception: + medicines_sample = [] + + elif "medicine_dosage" in results_dict["medicine_details"][0]: + medicines_sample = [ + f"{item['medicine_name']}, {item['medicine_dosage'].lower()}" + for item in results_dict["medicine_details"] + ] + else: + medicines_sample = [] + elif "Medicines Prescribed" in results_dict: + if "Duration" in results_dict["Medicines Prescribed"][0]: + medicines_sample = [ + f"{item['Name']}, {item['Duration'].lower()}" + for item in results_dict["Medicines Prescribed"] + ] + elif "Dosage" in results_dict["Medicines Prescribed"][0]: + medicines_sample = [ + f"{item['Name']}, {item['Dosage'].lower()}" + for item in results_dict["Medicines Prescribed"] + ] + else: + medicines_sample = [] + + medicines_sample = [ + item.replace(", na", "") + .replace(" na", "") + .replace(" n/a", "") + .replace("NA", "") + .replace(" not specified", "") + .replace(" not provided", "") + for item in medicines_sample + ] + medicines_sample = [item for item in medicines_sample if len(item) > 1] + if "[Medicine Name], [medicine frequency], [course duration]" in medicines_sample: + medicines_sample = [] + + return medicines_sample + + +def doc_to_target(doc): + return doc["gold_position"] + + +def doc_to_target_obtain(doc): + medicines_sample = get_medicines_list(doc) + if len(medicines_sample) == 0: + return "NA", 0 + gold = random.choice(medicines_sample) + gold_position = random.randint(0, 3) + return gold, gold_position + + +def doc_to_choice_easy(doc): + gold, gold_position = doc["gold"], doc["gold_position"] + full_med_list = get_full_med_list() + random_items = random.sample(full_med_list, 3) + choices_easy = random_items[:gold_position] + [gold] + random_items[gold_position:] + return choices_easy + + +def doc_to_choice_hard(doc): + gold, gold_position = doc["gold"], doc["gold_position"] + medicines_sample = get_medicines_list(doc) + random_choices = [] + + new_list = [item for item in medicines_sample if item != gold] + + if random.randint(0, 1) == 0: + fake_duration = random.sample(durations_list, 1) + fake_frequency = random.sample(frequencies_list, 1) + random_choices.append( + f"{gold.split(',')[0]}, {fake_frequency[0]}, {fake_duration[0]}" + ) + if len(new_list) >= 2: + fake_duration = random.choices(durations_list, k=2) + fake_frequency = random.choices(frequencies_list, k=2) + random_choices.append( + f"{new_list[0].split(',')[0]}, {fake_frequency[0]}, {fake_duration[0]}" + ) + random_choices.append( + f"{new_list[1].split(',')[0]}, {fake_frequency[1]}, {fake_duration[1]}" + ) + elif len(new_list) == 1: + fake_duration = random.choices(durations_list, k=2) + fake_frequency = random.choices(frequencies_list, k=2) + random_choices.append( + f"{new_list[0].split(',')[0]}, {fake_frequency[0]}, {fake_duration[0]}" + ) + random_choices.append( + f"{new_list[0].split(',')[0]}, {fake_frequency[1]}, {fake_duration[1]}" + ) + else: + fake_duration = random.choices(durations_list, k=2) + fake_frequency = random.choices(frequencies_list, k=2) + random_choices.append( + f"{gold.split(',')[0]}, {fake_frequency[0]}, {fake_duration[0]}" + ) + random_choices.append( + f"{gold.split(',')[0]}, {fake_frequency[1]}, {fake_duration[1]}" + ) + else: + if len(new_list) >= 3: + fake_duration = random.choices(durations_list, k=3) + fake_frequency = random.choices(frequencies_list, k=3) + random_choices.append( + f"{new_list[0].split(',')[0]}, {fake_frequency[0]}, {fake_duration[0]}" + ) + random_choices.append( + f"{new_list[1].split(',')[0]}, {fake_frequency[1]}, {fake_duration[1]}" + ) + random_choices.append( + f"{new_list[2].split(',')[0]}, {fake_frequency[2]}, {fake_duration[2]}" + ) + elif len(new_list) == 2: + fake_duration = random.choices(durations_list, k=3) + fake_frequency = random.choices(frequencies_list, k=3) + random_choices.append( + f"{new_list[0].split(',')[0]}, {fake_frequency[0]}, {fake_duration[0]}" + ) + random_choices.append( + f"{new_list[0].split(',')[0]}, {fake_frequency[1]}, {fake_duration[1]}" + ) + random_choices.append( + f"{new_list[1].split(',')[0]}, {fake_frequency[2]}, {fake_duration[2]}" + ) + elif len(new_list) == 1: + fake_duration = random.choices(durations_list, k=3) + fake_frequency = random.choices(frequencies_list, k=3) + random_choices.append( + f"{new_list[0].split(',')[0]}, {fake_frequency[0]}, {fake_duration[0]}" + ) + random_choices.append( + f"{new_list[0].split(',')[0]}, {fake_frequency[1]}, {fake_duration[1]}" + ) + random_choices.append( + f"{new_list[0].split(',')[0]}, {fake_frequency[2]}, {fake_duration[2]}" + ) + else: + fake_duration = random.choices(durations_list, k=3) + fake_frequency = random.choices(frequencies_list, k=3) + random_choices.append( + f"{gold.split(',')[0]}, {fake_frequency[0]}, {fake_duration[0]}" + ) + random_choices.append( + f"{gold.split(',')[0]}, {fake_frequency[1]}, {fake_duration[1]}" + ) + random_choices.append( + f"{gold.split(',')[0]}, {fake_frequency[2]}, {fake_duration[2]}" + ) + + choices_hard = ( + random_choices[:gold_position] + [gold] + random_choices[gold_position:] + ) + return choices_hard diff --git a/lm-evaluation-harness/lm_eval/tasks/med_text_classification/med_text_classification_easy.yaml b/lm-evaluation-harness/lm_eval/tasks/med_text_classification/med_text_classification_easy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7410f511f9b4cf73dc170bf6879c1e037e469204 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_text_classification/med_text_classification_easy.yaml @@ -0,0 +1,24 @@ +group: med_text_classification +task: med_text_classification_easy +dataset_path: csv +dataset_name: null +dataset_kwargs: + data_files: + train: /gpfs/projects/bsc70/heka/data/datasets/med_text_class_train.csv +output_type: multiple_choice +training_split: train +validation_split: train +test_split: train +process_docs: !function utils.process_docs +doc_to_text: !function utils.doc_to_text_easy +doc_to_choice: !function utils.doc_to_choice_easy +doc_to_target: !function utils.doc_to_target_easy +generation_kwargs: + until: + - "\n\n" +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/med_text_classification/med_text_classification_hard.yaml b/lm-evaluation-harness/lm_eval/tasks/med_text_classification/med_text_classification_hard.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9fbcca0ae8abc95a59dc86601030e5c10a6fd980 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_text_classification/med_text_classification_hard.yaml @@ -0,0 +1,9 @@ +include: med_text_classification_easy.yaml +task: med_text_classification_hard +dataset_kwargs: + data_files: + train: /gpfs/projects/bsc70/heka/data/datasets/mtsamples.csv +process_docs: !function utils.process_docs_hard +doc_to_text: !function utils.doc_to_text_hard +doc_to_choice: !function utils.doc_to_choice_hard +doc_to_target: !function utils.doc_to_target_hard diff --git a/lm-evaluation-harness/lm_eval/tasks/med_text_classification/utils.py b/lm-evaluation-harness/lm_eval/tasks/med_text_classification/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..b642e277e09415e7f05d17556f76bfb08ddf27de --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/med_text_classification/utils.py @@ -0,0 +1,117 @@ +import random + +import datasets + + +def process_docs_hard(dataset: datasets.Dataset): + return dataset + + +def process_docs(dataset: datasets.Dataset): + def _helper(doc): + return doc + + num_entries = len(dataset) + ten_percent_index = int(0.1 * num_entries) + + # Select the first 10% of the dataset + filtered_dataset = dataset.select(range(ten_percent_index)) + + return filtered_dataset.map(_helper) + + +def doc_to_choice_easy(doc): + return [ + "neoplasms", + "digestive system diseases", + "nervous system diseases", + "cardiovascular diseases", + "general pathological conditions", + ] + + +def doc_to_text_easy(doc) -> str: + choices = doc_to_choice_easy(doc) + prompt = ( + "Classify the topic of the following medical text into one of the following choices. \n" + "Text: {} \n" + "Choices: \n" + "A. {} \n" + "B. {} \n" + "C. {} \n" + "D. {} \n" + "E. {} \n Answer:".format( + doc["text"], choices[0], choices[1], choices[2], choices[3], choices[4] + ) + ) + + return prompt + + +def doc_to_target_easy(doc): + return int(doc["class"]) - 1 + + +def doc_to_text_hard(doc) -> str: + choices = doc_to_choice_hard(doc) + prompt = ( + "Select the medical specialty the following text is talking about among the following choices. \n" + "Text: {} \n" + "Choices: {}\n" + " Answer:".format(doc["transcription"], choices) + ) + + return prompt + + +def doc_to_choice_hard(doc): + choices_list = [ + " Bariatrics", + " Allergy / Immunology", + " Dentistry", + " Cardiovascular / Pulmonary", + " Urology", + " Hospice - Palliative Care", + " Radiology", + " Pediatrics - Neonatal", + " Neurology", + " Neurosurgery", + " Emergency Room Reports", + " IME-QME-Work Comp etc.", + " Office Notes", + " Surgery", + " Letters", + " Ophthalmology", + " Hematology - Oncology", + " Endocrinology", + " Cosmetic / Plastic Surgery", + " Diets and Nutritions", + " Rheumatology", + " Nephrology", + " Physical Medicine - Rehab", + " Podiatry", + " Chiropractic", + " Lab Medicine - Pathology", + " Orthopedic", + " Autopsy", + " Psychiatry / Psychology", + " Speech - Language", + " ENT - Otolaryngology", + " Sleep Medicine", + " Dermatology", + " SOAP / Chart / Progress Notes", + " General Medicine", + " Consult - History and Phy.", + " Obstetrics / Gynecology", + " Gastroenterology", + " Pain Management", + " Discharge Summary", + ] + return choices_list + + +def doc_to_target_hard(doc): + choices = doc_to_choice_hard(doc) + gold = doc["medical_specialty"] + idx = choices.index(gold) + return idx diff --git a/lm-evaluation-harness/lm_eval/tasks/meddialog/README.md b/lm-evaluation-harness/lm_eval/tasks/meddialog/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b7ed4b3d2dc9ff2cf53029ae31745b713869083b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/meddialog/README.md @@ -0,0 +1,52 @@ +# Meddialog + +### Paper + +Title: `MedDialog: Large-scale Medical Dialogue Datasets` + +Abstract: [https://aclanthology.org/2020.emnlp-main.743/](https://aclanthology.org/2020.emnlp-main.743/) + +This task contains the english version of the MedDialog Medical Dialogue Dataset, divided in two tasks: +question entailment, and open-ended Question Answering (QA). + +#### Tasks + +* `meddialog_qsumm`: Question entailment in english. +* `meddialog_qsumm_perplexity`: Question entailment in english, evaluated with perplexity. +* `meddialog_raw_dialogues`: Open-Ended QA in english. +* `meddialog_raw_perplexity`: Open-Ended QA in english, evaluated with perplexity. + +### Citation + +```bibtex +@inproceedings{zeng-etal-2020-meddialog, + title = "{M}ed{D}ialog: Large-scale Medical Dialogue Datasets", + author = "Zeng, Guangtao and + Yang, Wenmian and + Ju, Zeqian and + Yang, Yue and + Wang, Sicheng and + Zhang, Ruisi and + Zhou, Meng and + Zeng, Jiaqi and + Dong, Xiangyu and + Zhang, Ruoyu and + Fang, Hongchao and + Zhu, Penghui and + Chen, Shu and + Xie, Pengtao", + editor = "Webber, Bonnie and + Cohn, Trevor and + He, Yulan and + Liu, Yang", + booktitle = "Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP)", + month = nov, + year = "2020", + address = "Online", + publisher = "Association for Computational Linguistics", + url = "https://aclanthology.org/2020.emnlp-main.743/", + doi = "10.18653/v1/2020.emnlp-main.743", + pages = "9241--9250", + abstract = "Medical dialogue systems are promising in assisting in telemedicine to increase access to healthcare services, improve the quality of patient care, and reduce medical costs. To facilitate the research and development of medical dialogue systems, we build large-scale medical dialogue datasets {--} MedDialog, which contain 1) a Chinese dataset with 3.4 million conversations between patients and doctors, 11.3 million utterances, 660.2 million tokens, covering 172 specialties of diseases, and 2) an English dataset with 0.26 million conversations, 0.51 million utterances, 44.53 million tokens, covering 96 specialties of diseases. To our best knowledge, MedDialog is the largest medical dialogue dataset to date. We pretrain several dialogue generation models on the Chinese MedDialog dataset, including Transformer, GPT, BERT-GPT, and compare their performance. It is shown that models trained on MedDialog are able to generate clinically correct and doctor-like medical dialogues. We also study the transferability of models trained on MedDialog to low-resource medical dialogue generation tasks. It is shown that via transfer learning which finetunes the models pretrained on MedDialog, the performance on medical dialogue generation tasks with small datasets can be greatly improved, as shown in human evaluation and automatic evaluation. The datasets and code are available at \url{https://github.com/UCSD-AI4H/Medical-Dialogue-System}" +} +``` diff --git a/lm-evaluation-harness/lm_eval/tasks/meddialog/meddialog_qsumm.yaml b/lm-evaluation-harness/lm_eval/tasks/meddialog/meddialog_qsumm.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e9fe629f92f400d3e88d8b0bc36ec6e7bcb5e2b1 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/meddialog/meddialog_qsumm.yaml @@ -0,0 +1,15 @@ +group: meddialog +include: meddialog_raw_dialogues.yaml +task: meddialog_qsumm +dataset_path: lighteval/med_dialog +dataset_name: icliniq +description: > + Instructions: The following text is contains a medical question. Extract and summarize the question. + +output_type: generate_until +training_split: train +validation_split: validation +test_split: test +doc_to_text: !function utils.doc_to_text_qsumm +doc_to_target: !function utils.doc_to_target_qsumm +process_results: !function utils.process_results_gen_qsumm diff --git a/lm-evaluation-harness/lm_eval/tasks/meddialog/meddialog_qsumm_perplexity.yaml b/lm-evaluation-harness/lm_eval/tasks/meddialog/meddialog_qsumm_perplexity.yaml new file mode 100644 index 0000000000000000000000000000000000000000..67b72fab7851cf391be86cb04372d0d9478a225a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/meddialog/meddialog_qsumm_perplexity.yaml @@ -0,0 +1,14 @@ +include: meddialog_qsumm.yaml +task: meddialog_qsumm_perplexity +output_type: loglikelihood_rolling +doc_to_text: "" +process_results: !function utils_perplexity.process_results_qsumm +metric_list: + - metric: word_perplexity + higher_is_better: false + - metric: byte_perplexity + higher_is_better: false + - metric: bits_per_byte + higher_is_better: false +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/meddialog/meddialog_raw_dialogues.yaml b/lm-evaluation-harness/lm_eval/tasks/meddialog/meddialog_raw_dialogues.yaml new file mode 100644 index 0000000000000000000000000000000000000000..04ee7079c9808672dcb3862aa33580e65a275bc1 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/meddialog/meddialog_raw_dialogues.yaml @@ -0,0 +1,37 @@ +group: meddialog +task: meddialog_raw_dialogues +dataset_path: bigbio/meddialog +description: > + Instructions: The following text is from a collection of medical dialogues. What follows is the patients question. Answer how a doctor would, trying to be as helpful as possible. + +output_type: generate_until +training_split: train +validation_split: train +test_split: train +doc_to_text: !function utils.doc_to_text_raw +doc_to_target: !function utils.doc_to_target_raw +process_results: !function utils.process_results_gen_raw +generation_kwargs: + until: + - "\n\n" +metric_list: + - metric: bleu + aggregation: nanmean + higher_is_better: true + - metric: rouge1 + aggregation: nanmean + higher_is_better: true + - metric: rouge2 + aggregation: nanmean + higher_is_better: true + - metric: rougeL + aggregation: nanmean + higher_is_better: true + - metric: bleurt + aggregation: nanmean + higher_is_better: true + - metric: bert_score + aggregation: nanmean + higher_is_better: true +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/meddialog/meddialog_raw_perplexity.yaml b/lm-evaluation-harness/lm_eval/tasks/meddialog/meddialog_raw_perplexity.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e5c0cac9ee9e5aee96d442816b88c46d428a48af --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/meddialog/meddialog_raw_perplexity.yaml @@ -0,0 +1,14 @@ +include: meddialog_raw_dialogues.yaml +task: meddialog_raw_perplexity +output_type: loglikelihood_rolling +doc_to_text: "" +process_results: !function utils_perplexity.process_results_raw +metric_list: + - metric: word_perplexity + higher_is_better: false + - metric: byte_perplexity + higher_is_better: false + - metric: bits_per_byte + higher_is_better: false +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/meddialog/utils.py b/lm-evaluation-harness/lm_eval/tasks/meddialog/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..a81b5e814f07dcf32e0def81caa89064dfc3996c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/meddialog/utils.py @@ -0,0 +1,128 @@ +import numpy as np + + +try: + import evaluate + + bleu = evaluate.load("bleu") + rouge = evaluate.load("rouge") + bertscore = evaluate.load("bertscore") + bleurt = evaluate.load("bleurt", "bleurt-base-512", module_type="metric") + +except (ModuleNotFoundError, ImportError): + raise ModuleNotFoundError( + "Please install evaluation metrics via pip install evaluate and pip install bert-score", + ) +except Exception as e: + raise RuntimeError( + f"Error loading evaluation metrics: {str(e)}. Please check your installation." + ) + + +def doc_eval(pred, refs): + try: + bleu_results = bleu.compute(predictions=pred, references=refs) + except Exception as e: + print(f"Bleu error: {e}") + bleu_results = {"bleu": np.nan} + + try: + rouge_results = rouge.compute(predictions=pred, references=refs) + except Exception as e: + print(f"Rouge error: {e}") + rouge_results = {"rouge1": np.nan, "rouge2": np.nan, "rougeL": np.nan} + + try: + bleurt_scores = bleurt.compute(predictions=pred, references=refs)["scores"] + except Exception as e: + print(f"Bleurt error: {e}") + bleurt_scores = [np.nan] + + try: + bert_scores = bertscore.compute(predictions=pred, references=refs, lang="en")[ + "f1" + ] + except Exception as e: + print(f"Bert error: {e}") + bert_scores = [np.nan] + + if bleu_results["bleu"] == 0: + # Sometimes bleu is 0.0 and this breaks the stderr computation. + bleu_results["bleu"] += 1e-5 + + results = { + "bleu": bleu_results["bleu"], + "rouge1": rouge_results["rouge1"], + "rouge2": rouge_results["rouge2"], + "rougeL": rouge_results["rougeL"], + "bleurt": np.mean(bleurt_scores), + "bert_score": np.mean(bert_scores), + } + + return results + + +def doc_to_text_raw(doc) -> str: + return doc["description"] + + +def doc_to_target_raw(doc) -> str: + return doc["utterances"]["utterance"][1] + + +def process_results_gen_raw(doc, results): + pred, refs = [results[0]], [doc_to_target_raw(doc)] + + if len(refs[0]) < 1 or len(pred[0]) < 1: + return { + "bleu": np.nan, + "rouge1": np.nan, + "rouge2": np.nan, + "rougeL": np.nan, + "bleurt": np.nan, + "bert_score": np.nan, + } + + results = doc_eval(pred, refs) + + return { + "bleu": results["bleu"], + "rouge1": results["rouge1"], + "rouge2": results["rouge2"], + "rougeL": results["rougeL"], + "bleurt": results["bleurt"], + "bert_score": results["bert_score"], + } + + +def doc_to_text_qsumm(doc) -> str: + return doc["src"] + + +def doc_to_target_qsumm(doc) -> str: + return doc["tgt"] + + +def process_results_gen_qsumm(doc, results): + pred, refs = [results[0]], [doc_to_target_qsumm(doc)] + + if len(refs[0]) < 1 or len(pred[0]) < 1: + return { + "bleu": np.nan, + "rouge1": np.nan, + "rouge2": np.nan, + "rougeL": np.nan, + "bleurt": np.nan, + "bert_score": np.nan, + } + + results = doc_eval(pred, refs) + + return { + "bleu": results["bleu"], + "rouge1": results["rouge1"], + "rouge2": results["rouge2"], + "rougeL": results["rougeL"], + "bleurt": results["bleurt"], + "bert_score": results["bert_score"], + } diff --git a/lm-evaluation-harness/lm_eval/tasks/meddialog/utils_perplexity.py b/lm-evaluation-harness/lm_eval/tasks/meddialog/utils_perplexity.py new file mode 100644 index 0000000000000000000000000000000000000000..44fed35006bc3442076730d9a919d90b1949dcda --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/meddialog/utils_perplexity.py @@ -0,0 +1,25 @@ +import re + +from lm_eval.tasks.meddialog.utils import doc_to_target_qsumm, doc_to_target_raw + + +def process_results_qsumm(doc, results): + (loglikelihood,) = results + _words = len(re.split(r"\s+", doc_to_target_qsumm(doc))) + _bytes = len(doc_to_target_qsumm(doc).encode("utf-8")) + return { + "word_perplexity": (loglikelihood, _words), + "byte_perplexity": (loglikelihood, _bytes), + "bits_per_byte": (loglikelihood, _bytes), + } + + +def process_results_raw(doc, results): + (loglikelihood,) = results + _words = len(re.split(r"\s+", doc_to_target_raw(doc))) + _bytes = len(doc_to_target_raw(doc).encode("utf-8")) + return { + "word_perplexity": (loglikelihood, _words), + "byte_perplexity": (loglikelihood, _bytes), + "bits_per_byte": (loglikelihood, _bytes), + } diff --git a/lm-evaluation-harness/lm_eval/tasks/mediqa_qa2019/README.md b/lm-evaluation-harness/lm_eval/tasks/mediqa_qa2019/README.md new file mode 100644 index 0000000000000000000000000000000000000000..489d7d08421c5b8f4790e6cbbb730aae703840d9 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mediqa_qa2019/README.md @@ -0,0 +1,42 @@ +# MEDIQA_QA 2019 + +### Paper + +Title: `Overview of the MEDIQA 2019 Shared Task on Textual Inference, Question Entailment and Question Answering` + +Abstract: [https://aclanthology.org/W19-5039/](https://aclanthology.org/W19-5039/) + +Open-ended medical Question-Answering stemming from the MEDIQA 2019 open challenge. + +Homepage: \ +[https://sites.google.com/view/mediqa2019](https://sites.google.com/view/mediqa2019) + + +#### Tasks + +* `mediqa_qa2019`: Open-ended QA in english. +* `mediqa_qa2019_perplexity`: Open-Ended QA in english, evaluated with perplexity. + +### Citation + +```bibtex +@inproceedings{ben-abacha-etal-2019-overview, + title = "Overview of the {MEDIQA} 2019 Shared Task on Textual Inference, Question Entailment and Question Answering", + author = "Ben Abacha, Asma and + Shivade, Chaitanya and + Demner-Fushman, Dina", + editor = "Demner-Fushman, Dina and + Cohen, Kevin Bretonnel and + Ananiadou, Sophia and + Tsujii, Junichi", + booktitle = "Proceedings of the 18th BioNLP Workshop and Shared Task", + month = aug, + year = "2019", + address = "Florence, Italy", + publisher = "Association for Computational Linguistics", + url = "https://aclanthology.org/W19-5039/", + doi = "10.18653/v1/W19-5039", + pages = "370--379", + abstract = "This paper presents the MEDIQA 2019 shared task organized at the ACL-BioNLP workshop. The shared task is motivated by a need to develop relevant methods, techniques and gold standards for inference and entailment in the medical domain, and their application to improve domain specific information retrieval and question answering systems. MEDIQA 2019 includes three tasks: Natural Language Inference (NLI), Recognizing Question Entailment (RQE), and Question Answering (QA) in the medical domain. 72 teams participated in the challenge, achieving an accuracy of 98{\%} in the NLI task, 74.9{\%} in the RQE task, and 78.3{\%} in the QA task. In this paper, we describe the tasks, the datasets, and the participants' approaches and results. We hope that this shared task will attract further research efforts in textual inference, question entailment, and question answering in the medical domain." +} +``` diff --git a/lm-evaluation-harness/lm_eval/tasks/mediqa_qa2019/mediqa_qa2019.yaml b/lm-evaluation-harness/lm_eval/tasks/mediqa_qa2019/mediqa_qa2019.yaml new file mode 100644 index 0000000000000000000000000000000000000000..616f9d85a920f5a24da69712eea152ac61910085 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mediqa_qa2019/mediqa_qa2019.yaml @@ -0,0 +1,36 @@ +task: mediqa_qa2019 +dataset_path: bigbio/mediqa_qa +description: > + Instructions: The following text is a question asked by a patient. Answer how a doctor would, while trying to be as informative and helpful as possible. + +output_type: generate_until +training_split: train_live_qa_med +validation_split: validation +test_split: test +doc_to_text: !function utils.doc_to_text +doc_to_target: !function utils.doc_to_target +process_results: !function utils.process_results_gen +generation_kwargs: + until: + - "\n\n" +metric_list: + - metric: bleu + aggregation: nanmean + higher_is_better: true + - metric: rouge1 + aggregation: nanmean + higher_is_better: true + - metric: rouge2 + aggregation: nanmean + higher_is_better: true + - metric: rougeL + aggregation: nanmean + higher_is_better: true + - metric: bleurt + aggregation: nanmean + higher_is_better: true + - metric: bert_score + aggregation: nanmean + higher_is_better: true +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/mediqa_qa2019/mediqa_qa2019_perplexity.yaml b/lm-evaluation-harness/lm_eval/tasks/mediqa_qa2019/mediqa_qa2019_perplexity.yaml new file mode 100644 index 0000000000000000000000000000000000000000..09622c4fb18211fa7ef7b4e6c7722f1531ace7fb --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mediqa_qa2019/mediqa_qa2019_perplexity.yaml @@ -0,0 +1,27 @@ +task: mediqa_qa2019_perplexity +dataset_path: bigbio/mediqa_qa +description: > + Instructions: The following text is a question asked by a patient. Answer how a doctor would, while trying to be as informative and helpful as possible. + +output_type: loglikelihood_rolling +training_split: train_live_qa_med +validation_split: validation +test_split: test +doc_to_text: "" +doc_to_target: !function utils_perplexity.doc_to_target +process_results: !function utils_perplexity.process_results +should_decontaminate: true +doc_to_decontamination_query: !function utils_perplexity.doc_to_target +metric_list: + - metric: perplexity + higher_is_better: false + - metric: word_perplexity + higher_is_better: false + - metric: byte_perplexity + higher_is_better: false + - metric: bits_per_byte + higher_is_better: false +metadata: + version: 1.0 +dataset_kwargs: + trust_remote_code: true diff --git a/lm-evaluation-harness/lm_eval/tasks/mediqa_qa2019/utils.py b/lm-evaluation-harness/lm_eval/tasks/mediqa_qa2019/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..112009608f47b71e50ed864c971738f0457ab3e9 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mediqa_qa2019/utils.py @@ -0,0 +1,95 @@ +import numpy as np + + +try: + import evaluate + + bleu = evaluate.load("bleu") + rouge = evaluate.load("rouge") + bertscore = evaluate.load("bertscore") + bleurt = evaluate.load("bleurt", "bleurt-base-512", module_type="metric") + +except (ModuleNotFoundError, ImportError): + raise ModuleNotFoundError( + "Please install evaluation metrics via pip install evaluate and pip install bert-score", + ) +except Exception as e: + raise RuntimeError( + f"Error loading evaluation metrics: {str(e)}. Please check your installation." + ) + + +def doc_eval(pred, refs): + try: + bleu_results = bleu.compute(predictions=pred, references=refs) + except Exception as e: + print(f"Bleu error: {e}") + bleu_results = {"bleu": np.NAN} + + try: + rouge_results = rouge.compute(predictions=pred, references=refs) + except Exception as e: + print(f"Rouge error: {e}") + rouge_results = {"rouge1": np.NAN, "rouge2": np.NAN, "rougeL": np.NAN} + + try: + bleurt_scores = bleurt.compute(predictions=pred, references=refs)["scores"] + except Exception as e: + print(f"Bleurt error: {e}") + bleurt_scores = [np.NAN] + + try: + bert_scores = bertscore.compute(predictions=pred, references=refs, lang="en")[ + "f1" + ] + except Exception as e: + print(f"Bert error: {e}") + bert_scores = [np.NAN] + + if bleu_results["bleu"] == 0: + # Sometimes bleu is 0.0 and this breaks the stderr computation. + bleu_results["bleu"] += 1e-5 + + results = { + "bleu": bleu_results["bleu"], + "rouge1": rouge_results["rouge1"], + "rouge2": rouge_results["rouge2"], + "rougeL": rouge_results["rougeL"], + "bleurt": np.mean(bleurt_scores), + "bert_score": np.mean(bert_scores), + } + + return results + + +def doc_to_text(doc) -> str: + return doc["QUESTION"]["QuestionText"] + + +def doc_to_target(doc) -> str: + return doc["QUESTION"]["AnswerList"][0]["Answer"]["AnswerText"] + + +def process_results_gen(doc, results): + pred, refs = [results[0]], [doc_to_target(doc)] + + if len(refs[0]) < 1 or len(pred[0]) < 1: + return { + "bleu": np.NAN, + "rouge1": np.NAN, + "rouge2": np.NAN, + "rougeL": np.NAN, + "bleurt": np.NAN, + "bert_score": np.NAN, + } + + results = doc_eval(pred, refs) + + return { + "bleu": results["bleu"], + "rouge1": results["rouge1"], + "rouge2": results["rouge2"], + "rougeL": results["rougeL"], + "bleurt": results["bleurt"], + "bert_score": results["bert_score"], + } diff --git a/lm-evaluation-harness/lm_eval/tasks/mediqa_qa2019/utils_perplexity.py b/lm-evaluation-harness/lm_eval/tasks/mediqa_qa2019/utils_perplexity.py new file mode 100644 index 0000000000000000000000000000000000000000..f60e30f04e20e9b12f6af08da46200a9f47ff237 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mediqa_qa2019/utils_perplexity.py @@ -0,0 +1,19 @@ +import math +import re + + +def doc_to_target(doc) -> str: + return doc["QUESTION"]["AnswerList"][0]["Answer"]["AnswerText"] + + +def process_results(doc, results): + (loglikelihood,) = results + _words = len(re.split(r"\s+", doc_to_target(doc))) + _bytes = len(doc_to_target(doc).encode("utf-8")) + print(f"perplexity: {math.exp(-loglikelihood / _words)}") + return { + "word_perplexity": (loglikelihood, _words), + "byte_perplexity": (loglikelihood, _bytes), + "bits_per_byte": (loglikelihood, _bytes), + "perplexity": (loglikelihood), + } diff --git a/lm-evaluation-harness/lm_eval/tasks/medmcqa/medmcqa.yaml b/lm-evaluation-harness/lm_eval/tasks/medmcqa/medmcqa.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8fb1c7cdba4983d8ccb509491f699d9be0afa17e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/medmcqa/medmcqa.yaml @@ -0,0 +1,18 @@ +task: medmcqa +dataset_path: medmcqa +output_type: multiple_choice +training_split: train +validation_split: validation +test_split: validation +doc_to_text: !function utils_medmcqa.doc_to_text +doc_to_target: cop +doc_to_choice: [ 'A','B','C','D' ] +should_decontaminate: true +doc_to_decontamination_query: "{{question}}" +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true + - metric: acc_norm + aggregation: mean + higher_is_better: true diff --git a/lm-evaluation-harness/lm_eval/tasks/medmcqa/utils_medmcqa.py b/lm-evaluation-harness/lm_eval/tasks/medmcqa/utils_medmcqa.py new file mode 100644 index 0000000000000000000000000000000000000000..8ce7e6beece511dccdfe94790456711ee7e93eab --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/medmcqa/utils_medmcqa.py @@ -0,0 +1,24 @@ +# Copied from Master +def doc_to_text(doc) -> str: + """ + Question: + Choices: + A. + B. + C. + D. + Answer: + """ + choices = [doc["opa"], doc["opb"], doc["opc"], doc["opd"]] + option_choices = { + "A": choices[0], + "B": choices[1], + "C": choices[2], + "D": choices[3], + } + + prompt = "Question: " + doc["question"] + "\nChoices:\n" + for choice, option in option_choices.items(): + prompt += f"{choice.upper()}. {option}\n" + prompt += "Answer:" + return prompt diff --git a/lm-evaluation-harness/lm_eval/tasks/medqa/medqa.yaml b/lm-evaluation-harness/lm_eval/tasks/medqa/medqa.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7d5555966fa0d4bcf2e8dc4a74eea7442ca433a3 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/medqa/medqa.yaml @@ -0,0 +1,16 @@ +task: medqa_4options +dataset_path: GBaker/MedQA-USMLE-4-options-hf +output_type: multiple_choice +training_split: train +validation_split: validation +test_split: test +doc_to_text: !function preprocess_medqa.doc_to_text +doc_to_target: !function preprocess_medqa.doc_to_target +doc_to_choice: [ 'A', 'B', 'C', 'D' ] +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true + - metric: acc_norm + aggregation: mean + higher_is_better: true diff --git a/lm-evaluation-harness/lm_eval/tasks/medqa/preprocess_medqa.py b/lm-evaluation-harness/lm_eval/tasks/medqa/preprocess_medqa.py new file mode 100644 index 0000000000000000000000000000000000000000..6ec35851453d7452833ceb30ec93f50ba495f594 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/medqa/preprocess_medqa.py @@ -0,0 +1,13 @@ +def doc_to_text(doc) -> str: + option_choices = { + "A": doc["ending0"], + "B": doc["ending1"], + "C": doc["ending2"], + "D": doc["ending3"], + } + answers = "".join((f"{k}. {v}\n") for k, v in option_choices.items()) + return f"Question: {doc['sent1']}\n{answers}Answer:" + + +def doc_to_target(doc) -> int: + return doc["label"] diff --git a/lm-evaluation-harness/lm_eval/tasks/medtext/README.md b/lm-evaluation-harness/lm_eval/tasks/medtext/README.md new file mode 100644 index 0000000000000000000000000000000000000000..97c746f6aecab4e84037493757decc48866b8d67 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/medtext/README.md @@ -0,0 +1,33 @@ +# MedText + +### Paper + +Title: `Towards Automatic Generation of Shareable Synthetic Clinical Notes Using Neural Language Models` + +Abstract: [https://arxiv.org/abs/1905.07002](https://arxiv.org/abs/1905.07002) + +MedText is a medical diagnosis dataset containing over 1000 top notch textbook +quality patient presentations and diagnosis/treatments. The 100 most common diseases +and the 30 most common injuries people go to the hospital with, are, among others, +fully captured in the dataset, with multiple datapoints for each ranging from mild +to complicated to severe. + + +#### Tasks + +* `medtext`: Open-ended QA in english. +* `medtext_perplexity`: Open-ended QA in english, evaluated with perplexity. + +### Citation + +```bibtex +@misc{melamud2019automaticgenerationshareablesynthetic, + title={Towards Automatic Generation of Shareable Synthetic Clinical Notes Using Neural Language Models}, + author={Oren Melamud and Chaitanya Shivade}, + year={2019}, + eprint={1905.07002}, + archivePrefix={arXiv}, + primaryClass={cs.CL}, + url={https://arxiv.org/abs/1905.07002}, +} +``` diff --git a/lm-evaluation-harness/lm_eval/tasks/medtext/medtext.yaml b/lm-evaluation-harness/lm_eval/tasks/medtext/medtext.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7756cc64d1060fcd90f49e07c042f3ad5731e5cd --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/medtext/medtext.yaml @@ -0,0 +1,36 @@ +task: medtext +dataset_path: BI55/MedText +description: > + Instructions: The following text is from a collection of medical records. What follows is the patients record. Answer how a doctor would, what is the likely diagnosis, and what is the treatment?. Answer how a doctor would, what is the likely diagnosis, and what is the treatment? + +output_type: generate_until +training_split: train +validation_split: train +test_split: train +doc_to_text: !function utils.doc_to_text +doc_to_target: !function utils.doc_to_target +process_results: !function utils.process_results +generation_kwargs: + until: + - "\n\n" +metric_list: + - metric: bleu + aggregation: nanmean + higher_is_better: true + - metric: rouge1 + aggregation: nanmean + higher_is_better: true + - metric: rouge2 + aggregation: nanmean + higher_is_better: true + - metric: rougeL + aggregation: nanmean + higher_is_better: true + - metric: bleurt + aggregation: nanmean + higher_is_better: true + - metric: bert_score + aggregation: nanmean + higher_is_better: true +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/medtext/medtext_perplexity.yaml b/lm-evaluation-harness/lm_eval/tasks/medtext/medtext_perplexity.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a89e5f2be1d219dcabfda99a5f69d76c6ddef4e8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/medtext/medtext_perplexity.yaml @@ -0,0 +1,14 @@ +include: medtext.yaml +task: medtext_perplexity +output_type: loglikelihood_rolling +doc_to_text: "" +process_results: !function utils_perplexity.process_results +metric_list: + - metric: word_perplexity + higher_is_better: false + - metric: byte_perplexity + higher_is_better: false + - metric: bits_per_byte + higher_is_better: false +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/medtext/utils.py b/lm-evaluation-harness/lm_eval/tasks/medtext/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..f9827f41178e7db1e2e8960a06b387659e9c83b1 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/medtext/utils.py @@ -0,0 +1,95 @@ +import numpy as np + + +try: + import evaluate + + bleu = evaluate.load("bleu") + rouge = evaluate.load("rouge") + bertscore = evaluate.load("bertscore") + bleurt = evaluate.load("bleurt", "bleurt-base-512", module_type="metric") + +except (ModuleNotFoundError, ImportError): + raise ModuleNotFoundError( + "Please install evaluation metrics via pip install evaluate and pip install bert-score", + ) +except Exception as e: + raise RuntimeError( + f"Error loading evaluation metrics: {str(e)}. Please check your installation." + ) + + +def doc_eval(pred, refs): + try: + bleu_results = bleu.compute(predictions=pred, references=refs) + except Exception as e: + print(f"Bleu error: {e}") + bleu_results = {"bleu": np.NAN} + + try: + rouge_results = rouge.compute(predictions=pred, references=refs) + except Exception as e: + print(f"Rouge error: {e}") + rouge_results = {"rouge1": np.NAN, "rouge2": np.NAN, "rougeL": np.NAN} + + try: + bleurt_scores = bleurt.compute(predictions=pred, references=refs)["scores"] + except Exception as e: + print(f"Bleurt error: {e}") + bleurt_scores = [np.NAN] + + try: + bert_scores = bertscore.compute(predictions=pred, references=refs, lang="en")[ + "f1" + ] + except Exception as e: + print(f"Bert error: {e}") + bert_scores = [np.NAN] + + if bleu_results["bleu"] == 0: + # Sometimes bleu is 0.0 and this breaks the stderr computation. + bleu_results["bleu"] += 1e-5 + + results = { + "bleu": bleu_results["bleu"], + "rouge1": rouge_results["rouge1"], + "rouge2": rouge_results["rouge2"], + "rougeL": rouge_results["rougeL"], + "bleurt": np.mean(bleurt_scores), + "bert_score": np.mean(bert_scores), + } + + return results + + +def doc_to_text(doc) -> str: + return doc["Prompt"] + + +def doc_to_target(doc) -> str: + return doc["Completion"] + + +def process_results(doc, results): + pred, refs = [results[0]], [doc_to_target(doc)] + + if len(refs[0]) < 1 or len(pred[0]) < 1: + return { + "bleu": np.NAN, + "rouge1": np.NAN, + "rouge2": np.NAN, + "rougeL": np.NAN, + "bleurt": np.NAN, + "bert_score": np.NAN, + } + + results = doc_eval(pred, refs) + + return { + "bleu": results["bleu"], + "rouge1": results["rouge1"], + "rouge2": results["rouge2"], + "rougeL": results["rougeL"], + "bleurt": results["bleurt"], + "bert_score": results["bert_score"], + } diff --git a/lm-evaluation-harness/lm_eval/tasks/medtext/utils_perplexity.py b/lm-evaluation-harness/lm_eval/tasks/medtext/utils_perplexity.py new file mode 100644 index 0000000000000000000000000000000000000000..cc81a0b43627bd64f87985a9b560cb0deff9b3f5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/medtext/utils_perplexity.py @@ -0,0 +1,14 @@ +import re + +from lm_eval.tasks.medtext.utils import doc_to_target + + +def process_results(doc, results): + (loglikelihood,) = results + _words = len(re.split(r"\s+", doc_to_target(doc))) + _bytes = len(doc_to_target(doc).encode("utf-8")) + return { + "word_perplexity": (loglikelihood, _words), + "byte_perplexity": (loglikelihood, _bytes), + "bits_per_byte": (loglikelihood, _bytes), + } diff --git a/lm-evaluation-harness/lm_eval/tasks/mela/README.md b/lm-evaluation-harness/lm_eval/tasks/mela/README.md new file mode 100644 index 0000000000000000000000000000000000000000..de008e494dc0fa46d06d5208305bdadde60b6441 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mela/README.md @@ -0,0 +1,60 @@ +# Task-name + +### Paper + +Title: [MELA: Multilingual Evaluation of Linguistic Acceptability](https://arxiv.org/abs/2311.09033) + +**Abstract**: In this work, we present the largest benchmark to date on linguistic acceptability: Multilingual Evaluation of Linguistic Acceptability -- MELA, with 46K samples covering 10 languages from a diverse set of language families. We establish LLM baselines on this benchmark, and investigate cross-lingual transfer in acceptability judgements with XLM-R. In pursuit of multilingual interpretability, we conduct probing experiments with fine-tuned XLM-R to explore the process of syntax capability acquisition. Our results show that GPT-4o exhibits a strong multilingual ability, outperforming fine-tuned XLM-R, while open-source multilingual models lag behind by a noticeable gap. Cross-lingual transfer experiments show that transfer in acceptability judgment is non-trivial: 500 Icelandic fine-tuning examples lead to 23 MCC performance in a completely unrelated language -- Chinese. Results of our probing experiments indicate that training on MELA improves the performance of XLM-R on syntax-related tasks. + +Homepage: https://github.com/sjtu-compling/MELA + +### Citation + +``` +@inproceedings{zhang2023mela, + author = {Ziyin Zhang and + Yikang Liu and + Weifang Huang and + Junyu Mao and + Rui Wang and + Hai Hu}, + title = {{MELA:} Multilingual Evaluation of Linguistic Acceptability}, + booktitle = {Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), {ACL} 2024, Bangkok, Thailand}, + publisher = {Association for Computational Linguistics}, + year = {2024}, + url = {https://doi.org/10.48550/arXiv.2311.09033} +} +``` + +### Groups and Tasks + +#### Groups + +- `mela`: multilingual evaluation of linguistic acceptability + +#### Tasks + +- `mela_en`: English +- `mela_zh`: Chinese +- `mela_it`: Italian +- `mela_ru`: Russian +- `mela_de`: Germany +- `mela_fr`: French +- `mela_es`: Spanish +- `mela_ja`: Japanese +- `mela_ar`: Arabic +- `mela_ar`: Icelandic + +### Checklist + +For adding novel benchmarks/datasets to the library: + +- [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? If so, have you checked against the reference implementation and documented how to run such a test? + +If other tasks on this dataset are already supported: + +- [ ] Is the "Main" variant of this task clearly denoted? +- [ ] 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-evaluation-harness/lm_eval/tasks/mela/_mela.yaml b/lm-evaluation-harness/lm_eval/tasks/mela/_mela.yaml new file mode 100644 index 0000000000000000000000000000000000000000..107498c0b23a233690b6591078c5e65fd20b37d2 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mela/_mela.yaml @@ -0,0 +1,17 @@ +group: mela +task: + - mela_en + - mela_zh + - mela_it + - mela_ru + - mela_de + - mela_fr + - mela_es + - mela_ja + - mela_ar + - mela_ar +aggregate_metric_list: + - metric: mcc + weight_by_size: False +metadata: + version: 1 diff --git a/lm-evaluation-harness/lm_eval/tasks/mela/mela_ar.yaml b/lm-evaluation-harness/lm_eval/tasks/mela/mela_ar.yaml new file mode 100644 index 0000000000000000000000000000000000000000..eea6026a6dec0baf3cb0dcb764b1334399f1311a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mela/mela_ar.yaml @@ -0,0 +1,4 @@ +include: mela_en.yaml +task: mela_ar +dataset_name: ar +training_split: null diff --git a/lm-evaluation-harness/lm_eval/tasks/mela/mela_de.yaml b/lm-evaluation-harness/lm_eval/tasks/mela/mela_de.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3108142d36db4efdc00d254ae4e21fd7170bd334 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mela/mela_de.yaml @@ -0,0 +1,4 @@ +include: mela_en.yaml +task: mela_de +dataset_name: de +training_split: null diff --git a/lm-evaluation-harness/lm_eval/tasks/mela/mela_en.yaml b/lm-evaluation-harness/lm_eval/tasks/mela/mela_en.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5727b785993c98fad6b2bd630c8dbd076ff60c45 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mela/mela_en.yaml @@ -0,0 +1,17 @@ +task: mela_en +dataset_path: Geralt-Targaryen/MELA +dataset_name: en +training_split: train +validation_split: dev +test_split: test +output_type: multiple_choice +doc_to_text: "Sentence: {{sentence}}\nDetermine whether this sentence is acceptable or unacceptable?\nA. Acceptable\nB. Unacceptable\nAnswer:" +doc_to_choice: ["A", "B"] +doc_to_target: "{{['B', 'A'][label]}}" +description: "Determine whether the following sentence(s) violate certain linguistic constraints. If yes, then it is \"unacceptable\"; otherwise, \"acceptable\".\n\n" +fewshot_split: dev +fewshot_config: + sampler: first_n +metric_list: + - metric: mcc + higher_is_better: true diff --git a/lm-evaluation-harness/lm_eval/tasks/mela/mela_es.yaml b/lm-evaluation-harness/lm_eval/tasks/mela/mela_es.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c8c6716243055222e4c07a37ee90d9bd0d33b058 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mela/mela_es.yaml @@ -0,0 +1,4 @@ +include: mela_en.yaml +task: mela_es +dataset_name: es +training_split: null diff --git a/lm-evaluation-harness/lm_eval/tasks/mela/mela_fr.yaml b/lm-evaluation-harness/lm_eval/tasks/mela/mela_fr.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7bf68ad6a43ba7866bf836663b6f58b558db8e68 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mela/mela_fr.yaml @@ -0,0 +1,4 @@ +include: mela_en.yaml +task: mela_fr +dataset_name: fr +training_split: null diff --git a/lm-evaluation-harness/lm_eval/tasks/mela/mela_is.yaml b/lm-evaluation-harness/lm_eval/tasks/mela/mela_is.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cd312f227e35b62bd8438368c741295a2a4bdddd --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mela/mela_is.yaml @@ -0,0 +1,4 @@ +include: mela_en.yaml +task: mela_is +dataset_name: is +training_split: null diff --git a/lm-evaluation-harness/lm_eval/tasks/mela/mela_it.yaml b/lm-evaluation-harness/lm_eval/tasks/mela/mela_it.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1751d65a7d60921446db78c001b41a51739d9249 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mela/mela_it.yaml @@ -0,0 +1,3 @@ +include: mela_en.yaml +task: mela_it +dataset_name: it diff --git a/lm-evaluation-harness/lm_eval/tasks/mela/mela_ja.yaml b/lm-evaluation-harness/lm_eval/tasks/mela/mela_ja.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fb8477e06028d32741816b2a0deac04975fa3ffc --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mela/mela_ja.yaml @@ -0,0 +1,4 @@ +include: mela_en.yaml +task: mela_ja +dataset_name: ja +training_split: null diff --git a/lm-evaluation-harness/lm_eval/tasks/mela/mela_ru.yaml b/lm-evaluation-harness/lm_eval/tasks/mela/mela_ru.yaml new file mode 100644 index 0000000000000000000000000000000000000000..191a9a1c881c665ca779e624bde1bd21d65d0062 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mela/mela_ru.yaml @@ -0,0 +1,3 @@ +include: mela_en.yaml +task: mela_ru +dataset_name: ru diff --git a/lm-evaluation-harness/lm_eval/tasks/mela/mela_zh.yaml b/lm-evaluation-harness/lm_eval/tasks/mela/mela_zh.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e3456abcdda3dac1529c429159a36366509cab13 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mela/mela_zh.yaml @@ -0,0 +1,3 @@ +include: mela_en.yaml +task: mela_zh +dataset_name: zh diff --git a/lm-evaluation-harness/lm_eval/tasks/meqsum/README.md b/lm-evaluation-harness/lm_eval/tasks/meqsum/README.md new file mode 100644 index 0000000000000000000000000000000000000000..e34c13b654679c9571fe41393e5539992c29b90f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/meqsum/README.md @@ -0,0 +1,32 @@ +# MeqSum + +### Paper + +Title: `On the Summarization of Consumer Health Questions` + +Abstract: [https://aclanthology.org/P19-1215/](https://aclanthology.org/P19-1215/) + +Question understanding is one of the main challenges in question answering. In real world +applications, users often submit natural language questions that are longer than needed +and include peripheral information that increases the complexity of the question, leading +to substantially more false positives in answer retrieval. In this paper, we study neural +abstractive models for medical question summarization. We introduce the MeQSum corpus of +1,000 summarized consumer health questions. + + +### Citation + +```bibtex +@inproceedings{ben-abacha-demner-fushman-2019-summarization, + title = "On the Summarization of Consumer Health Questions", + author = "Ben Abacha, Asma and + Demner-Fushman, Dina", + booktitle = "Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics", + month = jul, + year = "2019", + address = "Florence, Italy", + publisher = "Association for Computational Linguistics", + url = "https://aclanthology.org/P19-1215", + doi = "10.18653/v1/P19-1215", + pages = "2228--2234"} +``` diff --git a/lm-evaluation-harness/lm_eval/tasks/meqsum/meqsum.yaml b/lm-evaluation-harness/lm_eval/tasks/meqsum/meqsum.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c9de006cb751e700b6c92426bbd04920d74095ea --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/meqsum/meqsum.yaml @@ -0,0 +1,37 @@ +task: meqsum +dataset_path: bigbio/meqsum +dataset_name: meqsum_source +description: > + Instructions: The following text is contains a medical question. Extract and summarize the question. + +output_type: generate_until +training_split: train +validation_split: train +test_split: train +doc_to_text: !function utils.doc_to_text +doc_to_target: !function utils.doc_to_target +process_results: !function utils.process_results_gen +generation_kwargs: + until: + - "\n\n" +metric_list: + - metric: bleu + aggregation: nanmean + higher_is_better: true + - metric: rouge1 + aggregation: nanmean + higher_is_better: true + - metric: rouge2 + aggregation: nanmean + higher_is_better: true + - metric: rougeL + aggregation: nanmean + higher_is_better: true + - metric: bert_score + aggregation: nanmean + higher_is_better: true + - metric: bleurt + aggregation: nanmean + higher_is_better: true +metadata: + version: 1.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/meqsum/utils.py b/lm-evaluation-harness/lm_eval/tasks/meqsum/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..d8a55df161eadf493fec26d22adcea76defdce1a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/meqsum/utils.py @@ -0,0 +1,85 @@ +import numpy as np + + +try: + import evaluate + + bleu = evaluate.load("bleu") + rouge = evaluate.load("rouge") + bertscore = evaluate.load("bertscore") + bleurt = evaluate.load("bleurt", "bleurt-base-512", module_type="metric") + +except (ModuleNotFoundError, ImportError): + raise ModuleNotFoundError( + "Please install evaluation metrics via pip install evaluate and pip install bert-score", + ) +except Exception as e: + raise RuntimeError( + f"Error loading evaluation metrics: {str(e)}. Please check your installation." + ) + + +def doc_to_text(doc) -> str: + text = doc["CHQ"] + idx = text.find("MESSAGE") + if idx != -1: + return text[idx + 9 :] + else: + return text + + +def doc_to_target(doc) -> str: + return doc["Summary"] + + +def process_results_gen(doc, results): + pred, refs = [results[0]], [doc_to_target(doc)] + + if len(refs[0]) < 1 or len(pred[0]) < 1: + return { + "bleu": np.NAN, + "rouge1": np.NAN, + "rouge2": np.NAN, + "rougeL": np.NAN, + "bleurt": np.NAN, + "bert_score": np.NAN, + } + + try: + bleu_results = bleu.compute(predictions=pred, references=refs) + except Exception as e: + print(f"Bleu error: {e}") + bleu_results = {"bleu": np.NAN} + + try: + rouge_results = rouge.compute(predictions=pred, references=refs) + except Exception as e: + print(f"Rouge error: {e}") + rouge_results = {"rouge1": np.NAN, "rouge2": np.NAN, "rougeL": np.NAN} + + try: + bleurt_scores = bleurt.compute(predictions=pred, references=refs)["scores"] + except Exception as e: + print(f"Bleurt error: {e}") + bleurt_scores = [np.NAN] + + try: + bert_scores = bertscore.compute(predictions=pred, references=refs, lang="en")[ + "f1" + ] + except Exception as e: + print(f"Bert error: {e}") + bert_scores = [np.NAN] + + if bleu_results["bleu"] == 0: + # Sometimes bleu is 0.0 and this breaks the stderr computation. + bleu_results["bleu"] += 1e-5 + + return { + "bleu": bleu_results["bleu"], + "rouge1": rouge_results["rouge1"], + "rouge2": rouge_results["rouge2"], + "rougeL": rouge_results["rougeL"], + "bleurt": np.mean(bleurt_scores), + "bert_score": np.mean(bert_scores), + } diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/README.md b/lm-evaluation-harness/lm_eval/tasks/metabench/README.md new file mode 100644 index 0000000000000000000000000000000000000000..6e9ac427915eaedd498865d76af18df8b146ddbb --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/README.md @@ -0,0 +1,84 @@ +# Metabench + +### Paper + +Title: `metabench` -- A Sparse Benchmark to Measure General Ability in Large Language Models + +Abstract: https://arxiv.org/abs/2407.12844 + +Large Language Models (LLMs) vary in their abilities on a range of tasks. Initiatives such as the 𝙾𝚙𝚎𝚗 𝙻𝙻𝙼 𝙻𝚎𝚊𝚍𝚎𝚛𝚋𝚘𝚊𝚛𝚍 aim to quantify these differences with several large benchmarks (sets of test items to which an LLM can respond either correctly or incorrectly). However, high correlations within and between benchmark scores suggest that (1) there exists a small set of common underlying abilities that these benchmarks measure, and (2) items tap into redundant information and the benchmarks may thus be considerably compressed. We use data from $n> 5000$ LLMs to identify the most informative items of six benchmarks, ARC, GSM8K, HellaSwag, MMLU, TruthfulQA and WinoGrande (with d=28,632 items in total). From them we distill a sparse benchmark, `metabench`, that has less than $3%$ of the original size of all six benchmarks combined. This new sparse benchmark goes beyond point scores by yielding estimators of the underlying benchmark-specific abilities. We show that these estimators (1) can be used to reconstruct each original individual benchmark score with, on average, $1.5%$ root mean square error (RMSE), (2) reconstruct the original total score with $0.8%$ RMSE, and (3) have a single underlying common factor whose Spearman correlation with the total score is $r=0.93$. + +Homepage: https://github.com/adkipnis/metabench + + +### Citation + +```bibtex +@article{metabench, + author = {Alex Kipnis and Konstantinos Voudouris and Luca M. Schulze Buschoff and Eric Schulz}, + title = {metabench - A Sparse Benchmark to Measure General Ability in Large Language Models}, + journal = {arXiv preprint arXiv:2407.12844}, + year = {2024}, +} +``` + +### Groups and Tasks + +#### Groups + +There are four groups. + +* `metabench` -- combines the six tasks covering the six reduced benchmarks, using the original data and transformations from the respective benchmarks, and produces an aggregated mean score. It contains a total of 858 items. +* `metabench_permute` -- combines five tasks covering five of the reduced benchmarks, permuting the multiple choice ordering, and produces an aggregated mean score. It contains a total of 858 items. For more details, see immediately below. +* `metabench_secondary` -- combines the six tasks covering the six reduced benchmarks, using the original data and transformations from the respective benchmarks, and produces an aggregated mean score. These items are distinct from the items in the `metabench` group, and offer similar (although slightly worse) predictability of overall benchmark performance. We include it as a secondary evaluation resource. It contains a total of 751 items. +* `metabench_secondary_permute` -- combines five tasks covering five of the reduced benchmarks used in `metabench_secondary`, permuting the multiple choice ordering, and produces an aggregated mean score. It contains a total of 751 items. For more details, see immediately below. + +#### Tasks + +We offer four sets of tasks. The first uses the original benchmark items straight out of the box. + +* `metabench_arc` -- a subset of the [ARC benchmark](https://huggingface.co/datasets/allenai/ai2_arc) containing the 145 most informative items. +* `metabench_gsm8k` -- a subset of the [GSM8K benchmark](https://huggingface.co/datasets/openai/gsm8k) containing the 237 most informative items. +* `metabench_hellaswag` -- a subset of the [HellaSwag](https://huggingface.co/datasets/Rowan/hellaswag) benchmark containing the 93 most informative items. +* `metabench_mmlu` -- a subset of the [MMLU benchmark](https://huggingface.co/datasets/cais/mmlu) containing the 96 most informative items (strictly, a subset of [hails/mmmlu_no_train](https://huggingface.co/datasets/hails/mmlu_no_train)). +* `metabench_truthfulqa` -- a subset of the [TruthfulQA benchmark](https://huggingface.co/datasets/truthfulqa/truthful_qa) containing the 154 most informative items. +* `metabench_winogrande` -- a subset of the [Winogrande benchmark](https://huggingface.co/datasets/allenai/winogrande) containing the 133 most informative items. + +Since the original benchmarks are open-source, there is a risk of contamination. To mitigate this risk, we also provide tasks in which the answers are shuffled. Since `GSM8K` is not a multiple-choice benchmark, it is excluded from this set. + +* `metabench_arc_permute` -- a subset of the [ARC benchmark](https://huggingface.co/datasets/allenai/ai2_arc) containing the 145 most informative items. The answers are randomly permuted such that the answer key is different to the original benchmark. +* `metabench_hellaswag_permute` -- a subset of the [HellaSwag](https://huggingface.co/datasets/Rowan/hellaswag) benchmark containing the 93 most informative items. The answers are randomly permuted such that the answer key is different to the original benchmark. +* `metabench_mmlu_permute` -- a subset of the [MMLU benchmark](https://huggingface.co/datasets/cais/mmlu) containing the 96 most informative items (strictly, a subset of [hails/mmmlu_no_train](https://huggingface.co/datasets/hails/mmlu_no_train)). The answers are randomly permuted such that the answer key is different to the original benchmark. +* `metabench_truthfulqa_permute` -- a subset of the [TruthfulQA benchmark](https://huggingface.co/datasets/truthfulqa/truthful_qa) containing the 154 most informative items. The answers are randomly permuted such that the answer key is different to the original benchmark. +* `metabench_winogrande_permute` -- a subset of the [Winogrande benchmark](https://huggingface.co/datasets/allenai/winogrande) containing the 133 most informative items. The answers are randomly permuted such that the answer key is different to the original benchmark. + +We also offer a second reduced benchmark that offers similar (although slightly worse) predictability of overall benchmark performance. We include it as a secondary evaluation resource. The first set of tasks uses the original benchmark items straight out of the box. + +* `metabench_arc_secondary` -- a subset of the [ARC benchmark](https://huggingface.co/datasets/allenai/ai2_arc) containing the 100 most informative items. +* `metabench_gsm8k_secondary` -- a subset of the [GSM8K benchmark](https://huggingface.co/datasets/openai/gsm8k) containing the 249 most informative items. +* `metabench_hellaswag_secondary` -- a subset of the [HellaSwag](https://huggingface.co/datasets/Rowan/hellaswag) benchmark containing the 58 most informative items. +* `metabench_mmlu_secondary` -- a subset of the [MMLU benchmark](https://huggingface.co/datasets/cais/mmlu) containing the 102 most informative items (strictly, a subset of [hails/mmmlu_no_train](https://huggingface.co/datasets/hails/mmlu_no_train)). +* `metabench_truthfulqa_secondary` -- a subset of the [TruthfulQA benchmark](https://huggingface.co/datasets/truthfulqa/truthful_qa) containing the 136 most informative items. +* `metabench_winogrande_secondary` -- a subset of the [Winogrande benchmark](https://huggingface.co/datasets/allenai/winogrande) containing the 106 most informative items. + +The fourth set of tasks permute the choices in five of the above datasets. + +* `metabench_arc_secondary_permute` -- a subset of the [ARC benchmark](https://huggingface.co/datasets/allenai/ai2_arc) containing the 100 most informative items. The answers are randomly permuted such that the answer key is different to the original benchmark. +* `metabench_hellaswag_secondary_permute` -- a subset of the [HellaSwag](https://huggingface.co/datasets/Rowan/hellaswag) benchmark containing the 58 most informative items. The answers are randomly permuted such that the answer key is different to the original benchmark. +* `metabench_mmlu_secondary_permute` -- a subset of the [MMLU benchmark](https://huggingface.co/datasets/cais/mmlu) containing the 102 most informative items (strictly, a subset of [hails/mmmlu_no_train](https://huggingface.co/datasets/hails/mmlu_no_train)). The answers are randomly permuted such that the answer key is different to the original benchmark. +* `metabench_truthfulqa_secondary_permute` -- a subset of the [TruthfulQA benchmark](https://huggingface.co/datasets/truthfulqa/truthful_qa) containing the 136 most informative items. The answers are randomly permuted such that the answer key is different to the original benchmark. +* `metabench_winogrande_secondary_permute` -- a subset of the [Winogrande benchmark](https://huggingface.co/datasets/allenai/winogrande) containing the 106 most informative items. The answers are randomly permuted such that the answer key is different to the original benchmark. + +### Checklist + +For adding novel benchmarks/datasets to the library: +* [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? If so, have you checked against the reference implementation and documented how to run such a test? + + +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? +* [X] Have you noted which, if any, published evaluation setups are matched by this variant? +* diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e276d2e90e57d569c7fc8e21de7e2e715e4aa1d1 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench.yaml @@ -0,0 +1,14 @@ +group: metabench +task: + - metabench_arc + - metabench_gsm8k + - metabench_hellaswag + - metabench_mmlu + - metabench_truthfulqa + - metabench_winogrande +aggregate_metric_list: + - metric: acc + aggregation: mean + weight_by_size: false +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_arc.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_arc.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4bae54ae5bcb15f5b7bcec9662f51713b1e2918b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_arc.yaml @@ -0,0 +1,23 @@ +task: metabench_arc +tag: + - metabench_arc_subset +dataset_path: HCAI/metabench +dataset_name: ARC +process_docs: !function process_docs.process_arc +output_type: multiple_choice +training_split: null +validation_split: null +test_split: primary +num_fewshot: 0 +doc_to_text: "{{twentyfive_shot_preprompt}}Question: {{question}}\nAnswer:" +doc_to_target: "{{choices.label.index(answerKey)}}" +doc_to_choice: "{{choices.text}}" +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true + - metric: acc_norm + aggregation: mean + higher_is_better: true +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_arc_permute.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_arc_permute.yaml new file mode 100644 index 0000000000000000000000000000000000000000..82c2d68b08ef300a4a298c46ae112b412a21d653 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_arc_permute.yaml @@ -0,0 +1,5 @@ +include: metabench_arc.yaml +task: metabench_arc_permute +process_docs: !function process_docs_permute.process_arc +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_arc_secondary.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_arc_secondary.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a33bf3661c124ec28c2c6243a1b327f047511b14 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_arc_secondary.yaml @@ -0,0 +1,5 @@ +include: metabench_arc.yaml +task: metabench_arc_secondary +test_split: secondary +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_arc_secondary_permute.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_arc_secondary_permute.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9eadbd7e53bf86a744703eb9921ca11db90635fc --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_arc_secondary_permute.yaml @@ -0,0 +1,5 @@ +include: metabench_arc_permute.yaml +task: metabench_arc_secondary_permute +test_split: secondary +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_gsm8k.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_gsm8k.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c72eddc8ce822ef4327fdd1c3c9146cdc37b8e3d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_gsm8k.yaml @@ -0,0 +1,46 @@ +task: metabench_gsm8k +tag: + - metabench_gsm8k_subset +dataset_path: HCAI/metabench +dataset_name: GSM8K +process_docs: !function process_docs.process_gsm8k +output_type: generate_until +training_split: null +validation_split: null +test_split: primary +doc_to_text: "{{five_shot_preprompt}}Question: {{question}}\nAnswer:" +doc_to_target: "{{answer}}" +metric_list: + - metric: exact_match + aggregation: mean + higher_is_better: true + ignore_case: true + ignore_punctuation: false + regexes_to_ignore: + - "," + - "\\$" + - "(?s).*#### " + - "\\.$" +generation_kwargs: + until: + - "Question:" + - "" + - "<|im_end|>" + do_sample: false + temperature: 0.0 +repeats: 1 +num_fewshot: 0 +filter_list: + - name: "strict-match" + filter: + - function: "regex" + regex_pattern: "#### (\\-?[0-9\\.\\,]+)" + - function: "take_first" + - name: "flexible-extract" + filter: + - function: "regex" + group_select: -1 + regex_pattern: "(-?[$0-9.,]{2,})|(-?[0-9]+)" + - function: "take_first" +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_gsm8k_secondary.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_gsm8k_secondary.yaml new file mode 100644 index 0000000000000000000000000000000000000000..263b932a703c7120c448a611f214819b7e825180 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_gsm8k_secondary.yaml @@ -0,0 +1,5 @@ +include: metabench_gsm8k.yaml +task: metabench_gsm8k_secondary +test_split: secondary +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_hellaswag.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_hellaswag.yaml new file mode 100644 index 0000000000000000000000000000000000000000..66e20228098d46b3bb0fe94ba91ac5dd519d39b4 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_hellaswag.yaml @@ -0,0 +1,23 @@ +task: metabench_hellaswag +tag: + - metabench_hellaswag_subset +dataset_path: HCAI/metabench +dataset_name: HellaSwag +process_docs: !function process_docs.process_hellaswag +output_type: multiple_choice +training_split: null +validation_split: null +test_split: primary +num_fewshot: 0 +doc_to_text: "{{ten_shot_preprompt}}{{query}}" +doc_to_target: "{{label}}" +doc_to_choice: "choices" +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true + - metric: acc_norm + aggregation: mean + higher_is_better: true +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_hellaswag_permute.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_hellaswag_permute.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e45d21618a741d57bd41404110eeafd84488a34a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_hellaswag_permute.yaml @@ -0,0 +1,5 @@ +include: metabench_hellaswag.yaml +task: metabench_hellaswag_permute +process_docs: !function process_docs_permute.process_hellaswag +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_hellaswag_secondary.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_hellaswag_secondary.yaml new file mode 100644 index 0000000000000000000000000000000000000000..01241bfa860a899bdc40a0c3515309468d165f0a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_hellaswag_secondary.yaml @@ -0,0 +1,5 @@ +include: metabench_hellaswag.yaml +task: metabench_hellaswag_secondary +test_split: secondary +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_hellaswag_secondary_permute.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_hellaswag_secondary_permute.yaml new file mode 100644 index 0000000000000000000000000000000000000000..12620a099c445930ede856a9963184703520d54d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_hellaswag_secondary_permute.yaml @@ -0,0 +1,5 @@ +include: metabench_hellaswag_permute.yaml +task: metabench_hellaswag_secondary_permute +test_split: secondary +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_mmlu.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_mmlu.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f8e7295320b3651fc72891ea7e496614974e7d32 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_mmlu.yaml @@ -0,0 +1,20 @@ +task: metabench_mmlu +tag: + - metabench_mmlu_subset +dataset_path: HCAI/metabench +dataset_name: MMLU +process_docs: !function process_docs.process_mmlu +output_type: multiple_choice +training_split: null +validation_split: null +test_split: primary +num_fewshot: 0 +doc_to_text: "{{five_shot_preprompt}}{{question.strip()}}\nA. {{choices[0]}}\nB. {{choices[1]}}\nC. {{choices[2]}}\nD. {{choices[3]}}\nAnswer:" +doc_to_choice: ["A", "B", "C", "D"] +doc_to_target: answer +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_mmlu_permute.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_mmlu_permute.yaml new file mode 100644 index 0000000000000000000000000000000000000000..26dc5263a9d97b392cd7e36f328c90ed01c25e3f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_mmlu_permute.yaml @@ -0,0 +1,5 @@ +include: metabench_mmlu.yaml +task: metabench_mmlu_permute +process_docs: !function process_docs_permute.process_mmlu +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_mmlu_secondary.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_mmlu_secondary.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1e40f446afc72b674a7b7d1b998e68fd0ccff2fa --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_mmlu_secondary.yaml @@ -0,0 +1,5 @@ +include: metabench_mmlu.yaml +task: metabench_mmlu_secondary +test_split: secondary +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_mmlu_secondary_permute.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_mmlu_secondary_permute.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3f7b31b91f62941f33883cc0f44e0250796803cd --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_mmlu_secondary_permute.yaml @@ -0,0 +1,5 @@ +include: metabench_mmlu_permute.yaml +task: metabench_mmlu_secondary_permute +test_split: secondary +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_permute.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_permute.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e5dc1206be88918cb624728b3d1e70c1d107c6ad --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_permute.yaml @@ -0,0 +1,13 @@ +group: metabench_permute +task: + - metabench_arc_permute + - metabench_hellaswag_permute + - metabench_mmlu_permute + - metabench_truthfulqa_permute + - metabench_winogrande_permute +aggregate_metric_list: + - metric: acc + aggregation: mean + weight_by_size: false +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_secondary.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_secondary.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3139a59a630afa9ea1f255ca37a5c71e0707467c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_secondary.yaml @@ -0,0 +1,14 @@ +group: metabench_secondary +task: + - metabench_arc_secondary + - metabench_gsm8k_secondary + - metabench_hellaswag_secondary + - metabench_mmlu_secondary + - metabench_truthfulqa_secondary + - metabench_winogrande_secondary +aggregate_metric_list: + - metric: acc + aggregation: mean + weight_by_size: false +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_secondary_permute.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_secondary_permute.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3707bc2e8708e1494beb852fbc3337a8b9654161 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_secondary_permute.yaml @@ -0,0 +1,13 @@ +group: metabench_secondary_permute +task: + - metabench_arc_secondary_permute + - metabench_hellaswag_secondary_permute + - metabench_mmlu_secondary_permute + - metabench_truthfulqa_secondary_permute + - metabench_winogrande_secondary_permute +aggregate_metric_list: + - metric: acc + aggregation: mean + weight_by_size: false +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_truthfulqa.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_truthfulqa.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0f269593ff18adbcbdc3c292c2826ec63094548e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_truthfulqa.yaml @@ -0,0 +1,35 @@ +task: metabench_truthfulqa +tag: + - metabench_truthfulqa_subset +dataset_path: HCAI/metabench +dataset_name: TruthfulQA +process_docs: !function process_docs.process_truthfulqa +output_type: multiple_choice +training_split: null +validation_split: null +test_split: primary +num_fewshot: 0 +doc_to_text: "\ + {% set prompt_qa = '\ + Q: What is human life expectancy in the United States?\n\ + A: Human life expectancy in the United States is 78 years.\n\n\ + Q: Who was president of the United States in 1955?\n\ + A: Dwight D. Eisenhower was president of the United States in 1955.\n\n\ + Q: Which party did he belong to?\n\ + A: He belonged to the Republican Party.\n\n\ + Q: What is the square root of banana?\n\ + A: I have no comment.\n\n\ + Q: How does a telescope work?\n\ + A: Telescopes use lenses or mirrors to focus light and make objects appear closer.\n\n\ + Q: Where were the 1992 Olympics held?\n\ + A: The 1992 Olympics were held in Barcelona, Spain.\ + '%}\ + {{prompt_qa + '\n\nQ: ' + question + '\nA:'}}" +doc_to_target: 0 +doc_to_choice: "{{mc1_targets.choices}}" +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_truthfulqa_permute.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_truthfulqa_permute.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3b51aadb3f9f1bfc31e2c17637a5f63c457ad573 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_truthfulqa_permute.yaml @@ -0,0 +1,6 @@ +include: metabench_truthfulqa.yaml +task: metabench_truthfulqa_permute +process_docs: !function process_docs_permute.process_truthfulqa +doc_to_target: answer +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_truthfulqa_secondary.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_truthfulqa_secondary.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6109281f1459efc942a1a26d245673c4502a5da8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_truthfulqa_secondary.yaml @@ -0,0 +1,5 @@ +include: metabench_truthfulqa.yaml +task: metabench_truthfulqa_secondary +test_split: secondary +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_truthfulqa_secondary_permute.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_truthfulqa_secondary_permute.yaml new file mode 100644 index 0000000000000000000000000000000000000000..dab0fb0135b1c9b2a1cc01cdb0210237e25dbaaa --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_truthfulqa_secondary_permute.yaml @@ -0,0 +1,5 @@ +include: metabench_truthfulqa_permute.yaml +task: metabench_truthfulqa_secondary_permute +test_split: secondary +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_winogrande.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_winogrande.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9a5a25536b00692635fb37b32f7f2df449e16dbb --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_winogrande.yaml @@ -0,0 +1,20 @@ +task: metabench_winogrande +tag: + - metabench_winogrande_subset +dataset_path: HCAI/metabench +dataset_name: Winogrande +process_docs: !function process_docs.process_winogrande +output_type: multiple_choice +training_split: null +validation_split: null +test_split: primary +num_fewshot: 0 +doc_to_text: !function process_docs.winogrande_doc_to_text +doc_to_target: !function process_docs.winogrande_doc_to_target +doc_to_choice: !function process_docs.winogrande_doc_to_choice +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_winogrande_permute.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_winogrande_permute.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d0b38196ae2bb60384df4b189e8b4dbc4c93ba04 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_winogrande_permute.yaml @@ -0,0 +1,5 @@ +include: metabench_winogrande.yaml +task: metabench_winogrande_permute +process_docs: !function process_docs_permute.process_winogrande +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_winogrande_secondary.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_winogrande_secondary.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3e5b2ac6f461ba4bbc59ebfdedb2e69ad25d87c3 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_winogrande_secondary.yaml @@ -0,0 +1,5 @@ +include: metabench_winogrande.yaml +task: metabench_winogrande_secondary +test_split: secondary +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_winogrande_secondary_permute.yaml b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_winogrande_secondary_permute.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5f4428712ce9cc29d7b2b910a51306c131526245 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/metabench_winogrande_secondary_permute.yaml @@ -0,0 +1,5 @@ +include: metabench_winogrande_permute.yaml +task: metabench_winogrande_secondary_permute +test_split: secondary +metadata: + version: 0.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/process_docs.py b/lm-evaluation-harness/lm_eval/tasks/metabench/process_docs.py new file mode 100644 index 0000000000000000000000000000000000000000..8f8b0c81329a3835d195b2049dcc2751e9b74f0e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/process_docs.py @@ -0,0 +1,186 @@ +import hashlib +import re + +import datasets + + +def hash_string(string: str) -> str: + return hashlib.sha256(string.encode("utf-8")).hexdigest() + + +def process_arc(dataset: datasets.Dataset) -> datasets.Dataset: + def _subprocess(doc): + long_prompt = "" + for shot in range(1, 26): + question = doc[f"arc_question_shot_{shot}"] + doc.pop(f"arc_question_shot_{shot}") + answer_lab = doc[f"arc_answerKey_shot_{shot}"] + doc.pop(f"arc_answerKey_shot_{shot}") + answer_idx = doc[f"arc_choices_shot_{shot}"]["label"].index(answer_lab) + answer = doc[f"arc_choices_shot_{shot}"]["text"][answer_idx] + doc.pop(f"arc_choices_shot_{shot}") + doc.pop(f"arc_idx_shot_{shot}") + + long_prompt = f"{long_prompt}Question: {question}\nAnswer: {answer}\n\n" # no choices are provided in the few-shot setting (per lines 602-610 of lm_eval.api.task) + doc["twentyfive_shot_preprompt"] = long_prompt + doc["original_hash"] = hash_string(doc["question"]) + doc.pop("alltwentyfiveshot_longprompt") + return doc + + return dataset.map(_subprocess) + + +def process_gsm8k(dataset: datasets.Dataset) -> datasets.Dataset: + def _subprocess(doc): + long_prompt = "" + for shot in range(1, 6): + question = doc[f"gsm8k_prompt_shot_{shot}"] + doc.pop(f"gsm8k_prompt_shot_{shot}") + answer = doc[f"gsm8k_answer_shot_{shot}"] + doc.pop(f"gsm8k_answer_shot_{shot}") + doc.pop(f"gsm8k_idx_shot_{shot}") + + long_prompt = f"{long_prompt}Question: {question}\nAnswer: {answer}\n\n" # no choices are provided in the few-shot setting (per lines 602-610 of lm_eval.api.task) + doc["original_hash"] = hash_string(doc["question"]) + doc["five_shot_preprompt"] = long_prompt + doc.pop("allfiveshot_longprompt") + return doc + + return dataset.map(_subprocess) + + +def process_hellaswag(dataset: datasets.Dataset) -> datasets.Dataset: + def process_txt(text): # mirrored from hellaswag task + text = text.strip() + # NOTE: Brackets are artifacts of the WikiHow dataset portion of HellaSwag. + text = text.replace(" [title]", ". ") + text = re.sub("\\[.*?\\]", "", text) + text = text.replace(" ", " ") + return text + + def _preprocess(doc): + ctx = doc["ctx_a"] + " " + doc["ctx_b"].capitalize() + doc.pop("ctx_a") + doc.pop("ctx_b") + doc.pop("ctx") + doc["query"] = process_txt(doc["activity_label"] + ": " + ctx) + doc["choices"] = [process_txt(ending) for ending in doc["endings"]] + doc["gold"] = int(doc["label"]) + doc.pop("activity_label") + doc.pop("endings") + + long_prompt = "" + for shot in range(1, 11): + ctx = ( + doc[f"hellaswag_ctx_a_shot_{shot}"] + + " " + + doc[f"hellaswag_ctx_b_shot_{shot}"].capitalize() + ) + doc.pop(f"hellaswag_ctx_a_shot_{shot}") + doc.pop(f"hellaswag_ctx_b_shot_{shot}") + doc.pop(f"hellaswag_ctx_shot_{shot}") + question = process_txt( + doc[f"hellaswag_activity_labels_shot_{shot}"] + ": " + ctx + ) + ending = process_txt( + doc[f"hellaswag_endings_shot_{shot}"][ + int(doc[f"hellaswag_label_shot_{shot}"]) + ] + ) + doc.pop(f"hellaswag_activity_labels_shot_{shot}") + doc.pop(f"hellaswag_endings_shot_{shot}") + doc.pop(f"hellaswag_label_shot_{shot}") + + long_prompt = f"{long_prompt}{question} {ending}\n\n" + + doc.pop(f"hellaswag_ind_shot_{shot}") + doc.pop(f"hellaswag_source_id_shot_{shot}") + doc.pop(f"hellaswag_split_shot_{shot}") + doc.pop(f"hellaswag_split_type_shot_{shot}") + + doc["original_hash"] = hash_string(doc["query"]) + doc["ten_shot_preprompt"] = long_prompt + doc.pop("alltenshot_longprompt") + return doc + + return dataset.map(_preprocess) + + +def process_mmlu(dataset: datasets.Dataset) -> datasets.Dataset: + def _subprocess(doc): + choices = ["A", "B", "C", "D"] + long_prompt = f"The following are multiple choice questions (with answers) about {' '.join(doc['subject'].split('_'))}.\n\n" + for shot in range(1, 6): + question = doc[f"mmlu_question_shot_{shot}"].strip() + doc.pop(f"mmlu_question_shot_{shot}") + answer = choices[int(doc[f"mmlu_answers_shot_{shot}"])] + choice_A = doc[f"mmlu_choices_shot_{shot}"][0] + choice_B = doc[f"mmlu_choices_shot_{shot}"][1] + choice_C = doc[f"mmlu_choices_shot_{shot}"][2] + choice_D = doc[f"mmlu_choices_shot_{shot}"][3] + + doc.pop(f"mmlu_choices_shot_{shot}") + doc.pop(f"mmlu_answers_shot_{shot}") + doc.pop(f"mmlu_ind_shot_{shot}") + + long_prompt = f"{long_prompt}{question}\nA. {choice_A}\nB. {choice_B}\nC. {choice_C}\nD. {choice_D}\nAnswer: {answer}\n\n" # choices are provided in the mmlu few-shot regime, unlike other benchmarks. + + doc["original_hash"] = hash_string(doc["question"]) + doc["five_shot_preprompt"] = long_prompt + doc.pop("allfiveshot_longprompt") + return doc + + return dataset.map(_subprocess) + + +def process_truthfulqa(dataset: datasets.Dataset) -> datasets.Dataset: + def _subprocess(doc): + doc["original_hash"] = hash_string(doc["question"]) + return doc + + return dataset.map(_subprocess) + + +def process_winogrande(dataset: datasets.Dataset) -> datasets.Dataset: + def _subprocess(doc): + long_prompt = "" + for shot in range(1, 6): + if doc[f"winogrande_answer_shot_{shot}"] == "1": + answer = doc[f"winogrande_option1_shot_{shot}"] + elif doc[f"winogrande_answer_shot_{shot}"] == "2": + answer = doc[f"winogrande_option2_shot_{shot}"] + else: + raise ValueError("Answer not recognised.") + + question = doc[f"winogrande_prompt_shot_{shot}"].replace("_", answer) + + doc.pop(f"winogrande_prompt_shot_{shot}") + doc.pop(f"winogrande_answer_shot_{shot}") + doc.pop(f"winogrande_idx_shot_{shot}") + doc.pop(f"winogrande_option1_shot_{shot}") + doc.pop(f"winogrande_option2_shot_{shot}") + + long_prompt = f"{long_prompt}{question}\n\n" + sentence = doc["sentence"] + doc["original_hash"] = hash_string(doc["sentence"]) + doc["sentence"] = f"{long_prompt}{sentence}" + doc.pop("allfiveshot_longprompt") + return doc + + return dataset.map(_subprocess) + + +def winogrande_doc_to_text(doc): # Mirrored from the winogrande task + answer_to_num = {"1": 0, "2": 1} + return answer_to_num[doc["answer"]] + + +def winogrande_doc_to_target(doc): # Mirrored from the winogrande task + idx = doc["sentence"].index("_") + 1 + return doc["sentence"][idx:].strip() + + +def winogrande_doc_to_choice(doc): # Mirrored from the winogrande task + idx = doc["sentence"].index("_") + options = [doc["option1"], doc["option2"]] + return [doc["sentence"][:idx] + opt for opt in options] diff --git a/lm-evaluation-harness/lm_eval/tasks/metabench/process_docs_permute.py b/lm-evaluation-harness/lm_eval/tasks/metabench/process_docs_permute.py new file mode 100644 index 0000000000000000000000000000000000000000..cce323d457f7c4a951eeef2319361c8dd773e486 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/metabench/process_docs_permute.py @@ -0,0 +1,226 @@ +import hashlib +import random +import re + +import datasets + + +def hash_string(string: str) -> str: + return hashlib.sha256(string.encode("utf-8")).hexdigest() + + +def process_arc(dataset: datasets.Dataset) -> datasets.Dataset: + def _subprocess(doc): + long_prompt = "" + for shot in range(1, 26): + question = doc[f"arc_question_shot_{shot}"] + doc.pop(f"arc_question_shot_{shot}") + answer_lab = doc[f"arc_answerKey_shot_{shot}"] + doc.pop(f"arc_answerKey_shot_{shot}") + answer_idx = doc[f"arc_choices_shot_{shot}"]["label"].index(answer_lab) + answer = doc[f"arc_choices_shot_{shot}"]["text"][answer_idx] + doc.pop(f"arc_choices_shot_{shot}") + doc.pop(f"arc_idx_shot_{shot}") + long_prompt = f"{long_prompt}Question: {question}\nAnswer: {answer}\n\n" # no choices are provided in the few-shot setting (per lines 602-610 of lm_eval.api.task) + doc["twentyfive_shot_preprompt"] = long_prompt + doc.pop("alltwentyfiveshot_longprompt") + doc["original_hash"] = hash_string(doc["question"]) + + # permute choices randomly without replacement (the new answer label will never be the answer label recorded in the original benchmarks) + original_answer_idx = doc["choices"]["label"].index(doc["answerKey"]) + correct_answer_text = doc["choices"]["text"][original_answer_idx] + new_answer_idx = original_answer_idx + + while new_answer_idx is original_answer_idx: + random.shuffle(doc["choices"]["text"]) + new_answer_idx = doc["choices"]["text"].index(correct_answer_text) + doc["answerKey"] = doc["choices"]["label"][new_answer_idx] + + return doc + + return dataset.map(_subprocess) + + +def process_hellaswag(dataset: datasets.Dataset) -> datasets.Dataset: + def process_txt(text): # mirrored from hellaswag task + text = text.strip() + # NOTE: Brackets are artifacts of the WikiHow dataset portion of HellaSwag. + text = text.replace(" [title]", ". ") + text = re.sub("\\[.*?\\]", "", text) + text = text.replace(" ", " ") + return text + + def _preprocess(doc): + ctx = doc["ctx_a"] + " " + doc["ctx_b"].capitalize() + doc.pop("ctx_a") + doc.pop("ctx_b") + doc.pop("ctx") + doc["query"] = process_txt(doc["activity_label"] + ": " + ctx) + + # permute choices randomly without replacement (the new answer label will never be the answer label recorded in the original benchmarks) + original_answer_idx = int(doc["label"]) + correct_answer_text = doc["endings"][original_answer_idx] + new_answer_idx = original_answer_idx + while new_answer_idx is original_answer_idx: + random.shuffle(doc["endings"]) + new_answer_idx = doc["endings"].index(correct_answer_text) + doc["label"] = str(new_answer_idx) + + doc["choices"] = [process_txt(ending) for ending in doc["endings"]] + doc["gold"] = int(doc["label"]) + doc.pop("activity_label") + doc.pop("endings") + + long_prompt = "" + for shot in range(1, 11): + ctx = ( + doc[f"hellaswag_ctx_a_shot_{shot}"] + + " " + + doc[f"hellaswag_ctx_b_shot_{shot}"].capitalize() + ) + doc.pop(f"hellaswag_ctx_a_shot_{shot}") + doc.pop(f"hellaswag_ctx_b_shot_{shot}") + doc.pop(f"hellaswag_ctx_shot_{shot}") + question = process_txt( + doc[f"hellaswag_activity_labels_shot_{shot}"] + ": " + ctx + ) + ending = process_txt( + doc[f"hellaswag_endings_shot_{shot}"][ + int(doc[f"hellaswag_label_shot_{shot}"]) + ] + ) + doc.pop(f"hellaswag_activity_labels_shot_{shot}") + doc.pop(f"hellaswag_endings_shot_{shot}") + doc.pop(f"hellaswag_label_shot_{shot}") + long_prompt = f"{long_prompt}{question} {ending}\n\n" + doc.pop(f"hellaswag_ind_shot_{shot}") + doc.pop(f"hellaswag_source_id_shot_{shot}") + doc.pop(f"hellaswag_split_shot_{shot}") + doc.pop(f"hellaswag_split_type_shot_{shot}") + + doc["original_hash"] = hash_string(doc["query"]) + doc["ten_shot_preprompt"] = long_prompt + doc.pop("alltenshot_longprompt") + return doc + + return dataset.map(_preprocess) + + +def process_mmlu(dataset: datasets.Dataset) -> datasets.Dataset: + def _subprocess(doc): + choices = ["A", "B", "C", "D"] + long_prompt = f"The following are multiple choice questions (with answers) about {' '.join(doc['subject'].split('_'))}.\n\n" + for shot in range(1, 6): + question = doc[f"mmlu_question_shot_{shot}"].strip() + doc.pop(f"mmlu_question_shot_{shot}") + answer = choices[int(doc[f"mmlu_answers_shot_{shot}"])] + choice_A = doc[f"mmlu_choices_shot_{shot}"][0] + choice_B = doc[f"mmlu_choices_shot_{shot}"][1] + choice_C = doc[f"mmlu_choices_shot_{shot}"][2] + choice_D = doc[f"mmlu_choices_shot_{shot}"][3] + + doc.pop(f"mmlu_choices_shot_{shot}") + doc.pop(f"mmlu_answers_shot_{shot}") + doc.pop(f"mmlu_ind_shot_{shot}") + + long_prompt = f"{long_prompt}{question}\nA. {choice_A}\nB. {choice_B}\nC. {choice_C}\nD. {choice_D}\nAnswer: {answer}\n\n" # choices are provided in the mmlu few-shot regime, unlike other benchmarks. + + doc["original_hash"] = hash_string(doc["question"]) + doc["five_shot_preprompt"] = long_prompt + doc.pop("allfiveshot_longprompt") + + # permute choices randomly without replacement (the new answer label will never be the answer label recorded in the original benchmarks) + original_answer_idx = int(doc["answer"]) + correct_answer_text = doc["choices"][original_answer_idx] + new_answer_idx = original_answer_idx + + while new_answer_idx is original_answer_idx: + random.shuffle(doc["choices"]) + new_answer_idx = doc["choices"].index(correct_answer_text) + doc["answer"] = new_answer_idx + + return doc + + return dataset.map(_subprocess) + + +def process_truthfulqa(dataset: datasets.Dataset) -> datasets.Dataset: + def _subprocess( + doc, + ): # currently only permuting the mc1 targets as metabench does not use mc2 targets. + original_answer_idx = 0 # always 0 in truthfulqa + correct_answer_text = doc["mc1_targets"]["choices"][original_answer_idx] + new_answer_idx = original_answer_idx + + while new_answer_idx is original_answer_idx: + random.shuffle(doc["mc1_targets"]["choices"]) + new_answer_idx = doc["mc1_targets"]["choices"].index(correct_answer_text) + + labels = [0] * len(doc["mc1_targets"]["labels"]) + labels[new_answer_idx] = 1 + doc["original_hash"] = hash_string(doc["question"]) + doc["mc1_targets"]["labels"] = labels + doc["answer"] = new_answer_idx + + return doc + + return dataset.map(_subprocess) + + +def process_winogrande(dataset: datasets.Dataset) -> datasets.Dataset: + def _subprocess(doc): + long_prompt = "" + for shot in range(1, 6): + if doc[f"winogrande_answer_shot_{shot}"] == "1": + answer = doc[f"winogrande_option1_shot_{shot}"] + elif doc[f"winogrande_answer_shot_{shot}"] == "2": + answer = doc[f"winogrande_option2_shot_{shot}"] + else: + raise ValueError("Answer not recognised.") + + question = doc[f"winogrande_prompt_shot_{shot}"].replace("_", answer) + + doc.pop(f"winogrande_prompt_shot_{shot}") + doc.pop(f"winogrande_answer_shot_{shot}") + doc.pop(f"winogrande_idx_shot_{shot}") + doc.pop(f"winogrande_option1_shot_{shot}") + doc.pop(f"winogrande_option2_shot_{shot}") + + long_prompt = f"{long_prompt}{question}\n\n" + sentence = doc["sentence"] + doc["original_hash"] = hash_string(doc["sentence"]) + doc["sentence"] = f"{long_prompt}{sentence}" + doc.pop("allfiveshot_longprompt") + + # permute choices by swapping them + option1 = doc["option1"] + option2 = doc["option2"] + answer = doc["answer"] + + doc["option1"] = option2 + doc["option2"] = option1 + + if answer == "1": + doc["answer"] = "2" + elif answer == "2": + doc["answer"] = "1" + + return doc + + return dataset.map(_subprocess) + + +def winogrande_doc_to_text(doc): # Mirrored from the winogrande task + answer_to_num = {"1": 0, "2": 1} + return answer_to_num[doc["answer"]] + + +def winogrande_doc_to_target(doc): # Mirrored from the winogrande task + idx = doc["sentence"].index("_") + 1 + return doc["sentence"][idx:].strip() + + +def winogrande_doc_to_choice(doc): # Mirrored from the winogrande task + idx = doc["sentence"].index("_") + options = [doc["option1"], doc["option2"]] + return [doc["sentence"][:idx] + opt for opt in options] diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/README.md b/lm-evaluation-harness/lm_eval/tasks/mgsm/README.md new file mode 100644 index 0000000000000000000000000000000000000000..3b62edf136e2e1482b4da45febf786b8f4fe4c7c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/README.md @@ -0,0 +1,98 @@ +# MGSM + +### Paper + +Title: `Language Models are Multilingual Chain-of-Thought Reasoners` + +Abstract: https://arxiv.org/abs/2210.03057 + +Multilingual Grade School Math Benchmark (MGSM) is a benchmark of grade-school math problems, proposed in the paper [Language models are multilingual chain-of-thought reasoners](http://arxiv.org/abs/2210.03057). + +The same 250 problems from [GSM8K](https://arxiv.org/abs/2110.14168) are each translated via human annotators in 10 languages. The 10 languages are: +- Spanish +- French +- German +- Russian +- Chinese +- Japanese +- Thai +- Swahili +- Bengali +- Telugu + +GSM8K (Grade School Math 8K) is a dataset of 8.5K high quality linguistically diverse grade school math word problems. The dataset was created to support the task of question answering on basic mathematical problems that require multi-step reasoning. + +You can find the input and targets for each of the ten languages (and English) as `.tsv` files. +We also include few-shot exemplars that are also manually translated from each language in `exemplars.py`. + +Homepage: https://github.com/google-research/url-nlp/tree/main/mgsm + + +### Citation + +``` +@misc{cobbe2021training, + title={Training Verifiers to Solve Math Word Problems}, + author={Karl Cobbe and Vineet Kosaraju and Mohammad Bavarian and Jacob Hilton and Reiichiro Nakano and Christopher Hesse and John Schulman}, + year={2021}, + eprint={2110.14168}, + archivePrefix={arXiv}, + primaryClass={cs.LG} +} +@misc{shi2022language, + title={Language Models are Multilingual Chain-of-Thought Reasoners}, + author={Freda Shi and Mirac Suzgun and Markus Freitag and Xuezhi Wang and Suraj Srivats and Soroush Vosoughi and Hyung Won Chung and Yi Tay and Sebastian Ruder and Denny Zhou and Dipanjan Das and Jason Wei}, + year={2022}, + eprint={2210.03057}, + archivePrefix={arXiv}, + primaryClass={cs.CL} +} +``` + +### Groups and Tasks + +#### Groups + +* `mgsm_direct`: Direct question + * `mgsm_direct_bn`: Bengali + * `mgsm_direct_de`: German + * `mgsm_direct_en`: English + * `mgsm_direct_es`: Spanish + * `mgsm_direct_fr`: French + * `mgsm_direct_ja`: Japanese + * `mgsm_direct_ru`: Russian + * `mgsm_direct_sw`: Swahili + * `mgsm_direct_te`: Telugu + * `mgsm_direct_th`: Thai + * `mgsm_direct_zh`: Chinese +* `mgsm_cot_native`: Question with Answer followed by CoT prompt in the same language as the dataset. + * `mgsm_cot_native_bn`: Bengali + * `mgsm_cot_native_de`: German + * `mgsm_cot_native_en`: English + * `mgsm_cot_native_es`: Spanish + * `mgsm_cot_native_fr`: French + * `mgsm_cot_native_ja`: Japanese + * `mgsm_cot_native_ru`: Russian + * `mgsm_cot_native_sw`: Swahili + * `mgsm_cot_native_te`: Telugu + * `mgsm_cot_native_th`: Thai + * `mgsm_cot_native_zh`: Chinese + +Examplar Samples: https://github.com/google-research/url-nlp/blob/main/mgsm/exemplars.py + +### Checklist + +For adding novel benchmarks/datasets to the library: +* [ ] Is the task an existing benchmark in the literature? + * [ ] Have you referenced the original paper that introduced the task? + * [ ] If yes, does the original paper provide a reference implementation? If so, have you checked against the reference implementation and documented how to run such a test? + + +If other tasks on this dataset are already supported: +* [ ] Is the "Main" variant of this task clearly denoted? +* [ ] 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? + +# changelog +- (en_cot, direct) ver 3; (native_cot) ver 4: issue #2578; PR #2587 + - fix fewshot format: Changed inconsistent usage of ':' (ASCII) and ':' (Chinese) to use ':' consistently. diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/direct_yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/direct_yaml new file mode 100644 index 0000000000000000000000000000000000000000..3dd83c0c92bad498e6b83f503ef136766d550223 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/direct_yaml @@ -0,0 +1,35 @@ +# This file will be included in the generated language-specific task configs. +# It doesn't have a yaml file extension as it is not meant to be imported directly +# by the harness. +tag: mgsm_direct +dataset_path: juletxara/mgsm +dataset_name: null # Overridden by language-specific config. +output_type: generate_until +training_split: train +test_split: test +target_delimiter: "" +generation_kwargs: + until: + - "\n\n" + - "\n" + do_sample: false + temperature: 0.0 +filter_list: + - name: remove_whitespace + filter: + - function: remove_whitespace + - function: take_first + - filter: + - function: regex + group_select: -1 + regex_pattern: (-?[$0-9.,]{2,})|(-?[0-9]+) + - function: take_first + name: flexible-extract +metric_list: + - metric: exact_match + aggregation: mean + higher_is_better: true + ignore_case: true + ignore_punctuation: true +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_bn.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_bn.yaml new file mode 100644 index 0000000000000000000000000000000000000000..08e7125127eabeda6fdc08a6a3edd83c84ea277e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_bn.yaml @@ -0,0 +1,12 @@ +# Generated by utils.py +dataset_name: bn +doc_to_target: '{% if answer is not none %}{{answer[17:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"প্রশ্ন: "+question+"\nAnswer:"}}{% endif %}' +generation_kwargs: + do_sample: false + until: + - 'প্রশ্ন:' + - + - <|im_end|> +include: direct_yaml +task: mgsm_direct_bn diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_de.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_de.yaml new file mode 100644 index 0000000000000000000000000000000000000000..24bc43eda3eaa1815919c9abc7d05697f53be309 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_de.yaml @@ -0,0 +1,12 @@ +# Generated by utils.py +dataset_name: de +doc_to_target: '{% if answer is not none %}{{answer[29:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nAntwort:"}}{% else %}{{"Frage: "+question+"\nAntwort:"}}{% endif %}' +generation_kwargs: + do_sample: false + until: + - 'Frage:' + - + - <|im_end|> +include: direct_yaml +task: mgsm_direct_de diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_en.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_en.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f7ef407d39f7addb0688366cfd98005ee7a8da6b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_en.yaml @@ -0,0 +1,12 @@ +# Generated by utils.py +dataset_name: en +doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"Question: "+question+"\nAnswer:"}}{% endif %}' +generation_kwargs: + do_sample: false + until: + - 'Question:' + - + - <|im_end|> +include: direct_yaml +task: mgsm_direct_en diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_es.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_es.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a6c3c1fd7ed85050098cb4db48db2bdbb86c7db6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_es.yaml @@ -0,0 +1,12 @@ +# Generated by utils.py +dataset_name: es +doc_to_target: '{% if answer is not none %}{{answer[23:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nRespuesta:"}}{% else %}{{"Pregunta: "+question+"\nRespuesta:"}}{% endif %}' +generation_kwargs: + do_sample: false + until: + - 'Pregunta:' + - + - <|im_end|> +include: direct_yaml +task: mgsm_direct_es diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_fr.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_fr.yaml new file mode 100644 index 0000000000000000000000000000000000000000..993c181a97d59c71ee50b67d641995296d373e58 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_fr.yaml @@ -0,0 +1,12 @@ +# Generated by utils.py +dataset_name: fr +doc_to_target: '{% if answer is not none %}{{answer[26:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nRéponse :"}}{% else %}{{"Question : "+question+"\nRéponse :"}}{% endif %}' +generation_kwargs: + do_sample: false + until: + - 'Question :' + - + - <|im_end|> +include: direct_yaml +task: mgsm_direct_fr diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_ja.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_ja.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b9a1ce2bb1e9f07cdada7f95dd153fa31e70daf8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_ja.yaml @@ -0,0 +1,12 @@ +# Generated by utils.py +dataset_name: ja +doc_to_target: '{% if answer is not none %}{{answer[11:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"問題: "+question+"\nAnswer:"}}{% endif %}' +generation_kwargs: + do_sample: false + until: + - 問題: + - + - <|im_end|> +include: direct_yaml +task: mgsm_direct_ja diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_ru.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_ru.yaml new file mode 100644 index 0000000000000000000000000000000000000000..30d1618faacf5712154132b200b333e519426b95 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_ru.yaml @@ -0,0 +1,12 @@ +# Generated by utils.py +dataset_name: ru +doc_to_target: '{% if answer is not none %}{{answer[18:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"Задача: "+question+"\nAnswer:"}}{% endif %}' +generation_kwargs: + do_sample: false + until: + - 'Задача:' + - + - <|im_end|> +include: direct_yaml +task: mgsm_direct_ru diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_sw.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_sw.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0357902d4eea32b0f4619e32f6806599caac4ae5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_sw.yaml @@ -0,0 +1,12 @@ +# Generated by utils.py +dataset_name: sw +doc_to_target: '{% if answer is not none %}{{answer[25:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"Swali: "+question+"\nAnswer:"}}{% endif %}' +generation_kwargs: + do_sample: false + until: + - 'Swali:' + - + - <|im_end|> +include: direct_yaml +task: mgsm_direct_sw diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_te.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_te.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4abdc7e78ec0ddd597d1ff2210a3474ad397a30a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_te.yaml @@ -0,0 +1,12 @@ +# Generated by utils.py +dataset_name: te +doc_to_target: '{% if answer is not none %}{{answer[19:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"ప్రశ్న: "+question+"\nAnswer:"}}{% endif %}' +generation_kwargs: + do_sample: false + until: + - 'ప్రశ్న:' + - + - <|im_end|> +include: direct_yaml +task: mgsm_direct_te diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_th.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_th.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fcf35a6721ab7faa221e023483c7630040b0e72f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_th.yaml @@ -0,0 +1,12 @@ +# Generated by utils.py +dataset_name: th +doc_to_target: '{% if answer is not none %}{{answer[18:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"โจทย์: "+question+"\nAnswer:"}}{% endif %}' +generation_kwargs: + do_sample: false + until: + - 'โจทย์:' + - + - <|im_end|> +include: direct_yaml +task: mgsm_direct_th diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_zh.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_zh.yaml new file mode 100644 index 0000000000000000000000000000000000000000..462a92c36a7b5d42b0d964538ac3a2a44bfb1c6a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/direct/mgsm_direct_zh.yaml @@ -0,0 +1,12 @@ +# Generated by utils.py +dataset_name: zh +doc_to_target: '{% if answer is not none %}{{answer[6:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"问题: "+question+"\nAnswer:"}}{% endif %}' +generation_kwargs: + do_sample: false + until: + - 问题: + - + - <|im_end|> +include: direct_yaml +task: mgsm_direct_zh diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/cot_yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/cot_yaml new file mode 100644 index 0000000000000000000000000000000000000000..6f3fabaa767d67cc2d36e700e3f0081f3d5cde9d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/cot_yaml @@ -0,0 +1,36 @@ +# This file will be included in the generated language-specific task configs. +# It doesn't have a yaml file extension as it is not meant to be imported directly +# by the harness. +tag: mgsm_cot_native +dataset_path: juletxara/mgsm +dataset_name: null # Overridden by language-specific config. +output_type: generate_until +training_split: train +test_split: test +generation_kwargs: + until: + - "\n\n" + - "\n" + do_sample: false + temperature: 0.0 +target_delimiter: " " +metric_list: + - metric: exact_match + aggregation: mean + higher_is_better: true + ignore_case: true + ignore_punctuation: true +filter_list: + - name: "strict-match" + filter: + - function: "regex" + regex_pattern: "The answer is (\\-?[0-9\\.\\,]+)" + - function: "take_first" + - filter: + - function: regex + group_select: -1 + regex_pattern: (-?[$0-9.,]{2,})|(-?[0-9]+) + - function: take_first + name: flexible-extract +metadata: + version: 3.0 diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_bn.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_bn.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b1c3c2fcd75827bf0c574090bb2adbc3890bdaf4 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_bn.yaml @@ -0,0 +1,12 @@ +# Generated by utils.py +dataset_name: bn +doc_to_target: '{% if answer is not none %}{{answer[17:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nStep-by-Step Answer:"}}{% else %}{{"প্রশ্ন: "+question+"\nStep-by-Step Answer:"}}{% endif %}' +generation_kwargs: + do_sample: false + until: + - 'প্রশ্ন:' + - + - <|im_end|> +include: cot_yaml +task: mgsm_en_cot_bn diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_de.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_de.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c2362fb7ac0944da0eae570963603275d459a254 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_de.yaml @@ -0,0 +1,12 @@ +# Generated by utils.py +dataset_name: de +doc_to_target: '{% if answer is not none %}{{answer[29:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nStep-by-Step Answer:"}}{% else %}{{"Frage: "+question+"\nStep-by-Step Answer:"}}{% endif %}' +generation_kwargs: + do_sample: false + until: + - 'Frage:' + - + - <|im_end|> +include: cot_yaml +task: mgsm_en_cot_de diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_en.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_en.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f27a616487aadcda9ac0f6f4e549d9bcd8e26dc1 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_en.yaml @@ -0,0 +1,12 @@ +# Generated by utils.py +dataset_name: en +doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nStep-by-Step Answer:"}}{% else %}{{"Question: "+question+"\nStep-by-Step Answer:"}}{% endif %}' +generation_kwargs: + do_sample: false + until: + - 'Question:' + - + - <|im_end|> +include: cot_yaml +task: mgsm_en_cot_en diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_es.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_es.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cc748306a473dd11beace7d35ac7453f187c7abb --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_es.yaml @@ -0,0 +1,12 @@ +# Generated by utils.py +dataset_name: es +doc_to_target: '{% if answer is not none %}{{answer[23:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nStep-by-Step Answer:"}}{% else %}{{"Pregunta: "+question+"\nStep-by-Step Answer:"}}{% endif %}' +generation_kwargs: + do_sample: false + until: + - 'Pregunta:' + - + - <|im_end|> +include: cot_yaml +task: mgsm_en_cot_es diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_fr.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_fr.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d36dd813a3b86b6300620ec5c74ad0154017edf9 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_fr.yaml @@ -0,0 +1,12 @@ +# Generated by utils.py +dataset_name: fr +doc_to_target: '{% if answer is not none %}{{answer[26:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nStep-by-Step Answer:"}}{% else %}{{"Question : "+question+"\nStep-by-Step Answer:"}}{% endif %}' +generation_kwargs: + do_sample: false + until: + - 'Question :' + - + - <|im_end|> +include: cot_yaml +task: mgsm_en_cot_fr diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_ja.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_ja.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fb324970fbba46b6b77c2a6fb397ad5bc60e5816 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_ja.yaml @@ -0,0 +1,12 @@ +# Generated by utils.py +dataset_name: ja +doc_to_target: '{% if answer is not none %}{{answer[11:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nStep-by-Step Answer:"}}{% else %}{{"問題: "+question+"\nStep-by-Step Answer:"}}{% endif %}' +generation_kwargs: + do_sample: false + until: + - 問題: + - + - <|im_end|> +include: cot_yaml +task: mgsm_en_cot_ja diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_sw.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_sw.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6f37cd3b87eb3660a701eec29ca1d51cc3c630e4 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_sw.yaml @@ -0,0 +1,12 @@ +# Generated by utils.py +dataset_name: sw +doc_to_target: '{% if answer is not none %}{{answer[25:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nStep-by-Step Answer:"}}{% else %}{{"Swali: "+question+"\nStep-by-Step Answer:"}}{% endif %}' +generation_kwargs: + do_sample: false + until: + - 'Swali:' + - + - <|im_end|> +include: cot_yaml +task: mgsm_en_cot_sw diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_te.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_te.yaml new file mode 100644 index 0000000000000000000000000000000000000000..75da745da1b6c27350be39d9e7c535c1d3c93168 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_te.yaml @@ -0,0 +1,12 @@ +# Generated by utils.py +dataset_name: te +doc_to_target: '{% if answer is not none %}{{answer[19:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nStep-by-Step Answer:"}}{% else %}{{"ప్రశ్న: "+question+"\nStep-by-Step Answer:"}}{% endif %}' +generation_kwargs: + do_sample: false + until: + - 'ప్రశ్న:' + - + - <|im_end|> +include: cot_yaml +task: mgsm_en_cot_te diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_th.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_th.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0ff2177b782ef3c939dd649c484a9b5a83501333 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/en_cot/mgsm_en_cot_th.yaml @@ -0,0 +1,12 @@ +# Generated by utils.py +dataset_name: th +doc_to_target: '{% if answer is not none %}{{answer[18:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nStep-by-Step Answer:"}}{% else %}{{"โจทย์: "+question+"\nStep-by-Step Answer:"}}{% endif %}' +generation_kwargs: + do_sample: false + until: + - 'โจทย์:' + - + - <|im_end|> +include: cot_yaml +task: mgsm_en_cot_th diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/gen_yaml.sh b/lm-evaluation-harness/lm_eval/tasks/mgsm/gen_yaml.sh new file mode 100644 index 0000000000000000000000000000000000000000..27cbbcfdc7ae6bddb463de0c7ceb8ec467ec9c3b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/gen_yaml.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +python utils.py --overwrite --output-dir direct --mode direct +python utils.py --overwrite --output-dir en_cot --mode en-cot +python utils.py --overwrite --output-dir native_cot --mode native-cot diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/native_cot/mgsm_native_cot_bn.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/native_cot/mgsm_native_cot_bn.yaml new file mode 100644 index 0000000000000000000000000000000000000000..eb58c8753784c250ce24860fd21211b62ef0cc31 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/native_cot/mgsm_native_cot_bn.yaml @@ -0,0 +1,24 @@ +# Generated by utils.py +dataset_name: bn +doc_to_target: '{% if answer is not none %}{{answer[17:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nধাপে ধাপে উত্তর:"}}{% else %}{{"প্রশ্ন: "+question+"\nধাপে ধাপে উত্তর:"}}{% endif %}' +filter_list: +- filter: + - function: regex + regex_pattern: The answer is (\-?[0-9\.\,]+) + - function: take_first + name: strict-match +- filter: + - function: regex + group_select: -1 + regex_pattern: (-?[$0-9.,]{2,})|(-?[0-9]+) + - function: take_first + name: flexible-extract +generation_kwargs: + do_sample: false + until: + - 'প্রশ্ন:' + - + - <|im_end|> +include: cot_yaml +task: mgsm_native_cot_bn diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/native_cot/mgsm_native_cot_de.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/native_cot/mgsm_native_cot_de.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4f4701796945b74fe884a73d931debdf2c7b5ce9 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/native_cot/mgsm_native_cot_de.yaml @@ -0,0 +1,24 @@ +# Generated by utils.py +dataset_name: de +doc_to_target: '{% if answer is not none %}{{answer[29:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nSchritt-für-Schritt-Antwort:"}}{% else %}{{"Frage: "+question+"\nSchritt-für-Schritt-Antwort:"}}{% endif %}' +filter_list: +- filter: + - function: regex + regex_pattern: Die Antwort lautet (\-?[0-9\.\,]+) + - function: take_first + name: strict-match +- filter: + - function: regex + group_select: -1 + regex_pattern: (-?[$0-9.,]{2,})|(-?[0-9]+) + - function: take_first + name: flexible-extract +generation_kwargs: + do_sample: false + until: + - 'Frage:' + - + - <|im_end|> +include: cot_yaml +task: mgsm_native_cot_de diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/native_cot/mgsm_native_cot_en.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/native_cot/mgsm_native_cot_en.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c2033b335fb51ec1310f98b4e905f18231c1b68a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/native_cot/mgsm_native_cot_en.yaml @@ -0,0 +1,24 @@ +# Generated by utils.py +dataset_name: en +doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nStep-by-Step Answer:"}}{% else %}{{"Question: "+question+"\nStep-by-Step Answer:"}}{% endif %}' +filter_list: +- filter: + - function: regex + regex_pattern: The answer is (\-?[0-9\.\,]+) + - function: take_first + name: strict-match +- filter: + - function: regex + group_select: -1 + regex_pattern: (-?[$0-9.,]{2,})|(-?[0-9]+) + - function: take_first + name: flexible-extract +generation_kwargs: + do_sample: false + until: + - 'Question:' + - + - <|im_end|> +include: cot_yaml +task: mgsm_native_cot_en diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/native_cot/mgsm_native_cot_es.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/native_cot/mgsm_native_cot_es.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6c39fb9c4740ac571db8165a80fdd7efa108f56b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/native_cot/mgsm_native_cot_es.yaml @@ -0,0 +1,24 @@ +# Generated by utils.py +dataset_name: es +doc_to_target: '{% if answer is not none %}{{answer[23:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nRespuesta paso a paso:"}}{% else %}{{"Pregunta: "+question+"\nRespuesta paso a paso:"}}{% endif %}' +filter_list: +- filter: + - function: regex + regex_pattern: La respuesta es (\-?[0-9\.\,]+) + - function: take_first + name: strict-match +- filter: + - function: regex + group_select: -1 + regex_pattern: (-?[$0-9.,]{2,})|(-?[0-9]+) + - function: take_first + name: flexible-extract +generation_kwargs: + do_sample: false + until: + - 'Pregunta:' + - + - <|im_end|> +include: cot_yaml +task: mgsm_native_cot_es diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/native_cot/mgsm_native_cot_ja.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/native_cot/mgsm_native_cot_ja.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3715aca53b7bd9d4af3c95a95fa5ebdd8e7e000e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/native_cot/mgsm_native_cot_ja.yaml @@ -0,0 +1,24 @@ +# Generated by utils.py +dataset_name: ja +doc_to_target: '{% if answer is not none %}{{answer[11:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nステップごとの答え:"}}{% else %}{{"問題: "+question+"\nステップごとの答え:"}}{% endif %}' +filter_list: +- filter: + - function: regex + regex_pattern: 答えは(\-?[0-9\.\,]+)です。 + - function: take_first + name: strict-match +- filter: + - function: regex + group_select: -1 + regex_pattern: (-?[$0-9.,]{2,})|(-?[0-9]+) + - function: take_first + name: flexible-extract +generation_kwargs: + do_sample: false + until: + - 問題: + - + - <|im_end|> +include: cot_yaml +task: mgsm_native_cot_ja diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/native_cot/mgsm_native_cot_sw.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/native_cot/mgsm_native_cot_sw.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4da793dbc78485cb8167a6fc069b87f7590c960f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/native_cot/mgsm_native_cot_sw.yaml @@ -0,0 +1,24 @@ +# Generated by utils.py +dataset_name: sw +doc_to_target: '{% if answer is not none %}{{answer[25:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nJibu la Hatua kwa Hatua:"}}{% else %}{{"Swali: "+question+"\nJibu la Hatua kwa Hatua:"}}{% endif %}' +filter_list: +- filter: + - function: regex + regex_pattern: Jibu ni (\-?[0-9\.\,]+) + - function: take_first + name: strict-match +- filter: + - function: regex + group_select: -1 + regex_pattern: (-?[$0-9.,]{2,})|(-?[0-9]+) + - function: take_first + name: flexible-extract +generation_kwargs: + do_sample: false + until: + - 'Swali:' + - + - <|im_end|> +include: cot_yaml +task: mgsm_native_cot_sw diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/native_cot/mgsm_native_cot_te.yaml b/lm-evaluation-harness/lm_eval/tasks/mgsm/native_cot/mgsm_native_cot_te.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1cdbaca8893b6ee626084135c7a64ccd02737b81 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/native_cot/mgsm_native_cot_te.yaml @@ -0,0 +1,24 @@ +# Generated by utils.py +dataset_name: te +doc_to_target: '{% if answer is not none %}{{answer[19:]}}{% else %}{{answer_number|string}}{% endif %}' +doc_to_text: '{% if answer is not none %}{{question+"\nదశలవారీగా సమాధానం:"}}{% else %}{{"ప్రశ్న: "+question+"\nదశలవారీగా సమాధానం:"}}{% endif %}' +filter_list: +- filter: + - function: regex + regex_pattern: సమాధానం (\-?[0-9\.\,]+) + - function: take_first + name: strict-match +- filter: + - function: regex + group_select: -1 + regex_pattern: (-?[$0-9.,]{2,})|(-?[0-9]+) + - function: take_first + name: flexible-extract +generation_kwargs: + do_sample: false + until: + - 'ప్రశ్న:' + - + - <|im_end|> +include: cot_yaml +task: mgsm_native_cot_te diff --git a/lm-evaluation-harness/lm_eval/tasks/mgsm/utils.py b/lm-evaluation-harness/lm_eval/tasks/mgsm/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..54e39af9b90ae0a7da777da3ca0524467942b58e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mgsm/utils.py @@ -0,0 +1,228 @@ +import argparse + +import yaml + + +LANGUAGES = { + "bn": { # Bengali + # "QUESTION": "প্রশ্ন:", + "QUESTION": "\u09aa\u09cd\u09b0\u09b6\u09cd\u09a8:", + # "ANSWER": "ধাপে ধাপে উত্তর:", + "ANSWER": "\u09a7\u09be\u09aa\u09c7 \u09a7\u09be\u09aa\u09c7 \u0989\u09a4\u09cd\u09a4\u09b0:", + "DIRECT": "Answer:", + "REGEX": "The answer is (\\-?[0-9\\.\\,]+)", + }, + "de": { # German + "QUESTION": "Frage:", + # "ANSWER": "Schritt-für-Schritt-Antwort:", + "ANSWER": "Schritt-f\u00fcr-Schritt-Antwort:", + "DIRECT": "Antwort:", + "REGEX": "Die Antwort lautet (\\-?[0-9\\.\\,]+)", + }, + "en": { # English + "QUESTION": "Question:", + "ANSWER": "Step-by-Step Answer:", + "DIRECT": "Answer:", + "REGEX": "The answer is (\\-?[0-9\\.\\,]+)", + }, + "es": { # Spanish + "QUESTION": "Pregunta:", + "ANSWER": "Respuesta paso a paso:", + "DIRECT": "Respuesta:", + "REGEX": "La respuesta es (\\-?[0-9\\.\\,]+)", + }, + "fr": { # French + "QUESTION": "Question :", + # "ANSWER": "Réponse étape par étape :" + "ANSWER": "R\u00e9ponse \u00e9tape par \u00e9tape :", + # "DIRECT": "Réponse :", + "DIRECT": "R\u00e9ponse :", + # "REGEX": "La réponse est (\\-?[0-9\\.\\,]+)", + "REGEX": "La r\u00e9ponse est (\\-?[0-9\\.\\,]+)", + }, + "ru": { # Russian + # "QUESTION": "Задача:", + "QUESTION": "\u0417\u0430\u0434\u0430\u0447\u0430:", + # "ANSWER": "Пошаговоерешение:", + "ANSWER": "\u041f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0435\u0440\u0435\u0448\u0435\u043d\u0438\u0435:", + "DIRECT": "Answer:", + # "REGEX": "Ответ — (\\-?[0-9\\.\\,]+)", + "REGEX": "\u041e\u0442\u0432\u0435\u0442 \u2014 (\\-?[0-9\\.\\,]+)", + }, + "sw": { # Swahili + "QUESTION": "Swali:", + "ANSWER": "Jibu la Hatua kwa Hatua:", + "DIRECT": "Answer:", + "REGEX": "Jibu ni (\\-?[0-9\\.\\,]+)", + }, + "te": { # Telugu + # "QUESTION": "ప్రశ్న:", + "QUESTION": "\u0c2a\u0c4d\u0c30\u0c36\u0c4d\u0c28:", + # "ANSWER": "దశలవారీగా సమాధానం:", + "ANSWER": "\u0c26\u0c36\u0c32\u0c35\u0c3e\u0c30\u0c40\u0c17\u0c3e \u0c38\u0c2e\u0c3e\u0c27\u0c3e\u0c28\u0c02:", + "DIRECT": "Answer:", + # "REGEX": "సమాధానం (\\-?[0-9\\.\\,]+)", + "REGEX": "\u0c38\u0c2e\u0c3e\u0c27\u0c3e\u0c28\u0c02 (\\-?[0-9\\.\\,]+)", + }, + "th": { # Thai + # "QUESTION": "โจทย์:", + "QUESTION": "\u0e42\u0e08\u0e17\u0e22\u0e4c:", + # "ANSWER": "คำตอบทีละขั้นตอน:", + "ANSWER": "\u0e04\u0e33\u0e15\u0e2d\u0e1a\u0e17\u0e35\u0e25\u0e30\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19:", + "DIRECT": "Answer:", + # "REGEX": "คำตอบคือ (\\-?[0-9\\.\\,]+)", + "REGEX": "\u0e04\u0e33\u0e15\u0e2d\u0e1a\u0e04\u0e37\u0e2d (\\-?[0-9\\.\\,]+)", + }, + "ja": { # Japanese + # "QUESTION": "問題:", + "QUESTION": "\u554f\u984c:", + # "ANSWER": "ステップごとの答え:", + "ANSWER": "\u30b9\u30c6\u30c3\u30d7\u3054\u3068\u306e\u7b54\u3048:", + "DIRECT": "Answer:", + # "REGEX": "答えは(\\-?[0-9\\.\\,]+)です。", + "REGEX": "\u7b54\u3048\u306f(\\-?[0-9\\.\\,]+)\u3067\u3059\u3002", + }, + "zh": { # Chinese + # "QUESTION": "问题:", + "QUESTION": "\u95ee\u9898:", + # "ANSWER": "逐步解答:", + "ANSWER": "\u9010\u6b65\u89e3\u7b54:", + "DIRECT": "Answer:", + # "REGEX": "答案是 (\\-?[0-9\\.\\,]+)。", + "REGEX": "\u7b54\u6848\u662f (\\-?[0-9\\.\\,]+)\u3002", + }, +} + + +def add_regex_pattern(regex_pattern): + if regex_pattern is None: + return {} + return { + "filter_list": [ + { + "name": "strict-match", + "filter": [ + { + "function": "regex", + "regex_pattern": f"""{regex_pattern}""", + }, + { + "function": "take_first", + }, + ], + }, + { + "name": "flexible-extract", + "filter": [ + { + "function": "regex", + "regex_pattern": """(-?[$0-9.,]{2,})|(-?[0-9]+)""", + "group_select": -1, + }, + { + "function": "take_first", + }, + ], + }, + ], + } + + +def gen_lang_yamls(output_dir: str, overwrite: bool, mode: str) -> None: + """ + Generate a yaml file for each language. + + :param output_dir: The directory to output the files to. + :param overwrite: Whether to overwrite files if they already exist. + """ + err = [] + for lang in LANGUAGES.keys(): + try: + QUESTION = LANGUAGES[lang]["QUESTION"] + + yaml_template = "cot_yaml" + filter_list = {} + DELIMITER = None + if mode == "direct": + ANSWER = LANGUAGES[lang]["DIRECT"] + REGEX = None + task_name = f"mgsm_direct_{lang}" + yaml_template = "direct_yaml" + elif mode == "native-cot": + ANSWER = LANGUAGES[lang]["ANSWER"] + REGEX = LANGUAGES[lang]["REGEX"] + task_name = f"mgsm_native_cot_{lang}" + filter_list = add_regex_pattern(REGEX) + DELIMITER = "" if lang in ["zh", "ja"] else None + elif mode == "en-cot": + ANSWER = LANGUAGES["en"]["ANSWER"] + REGEX = LANGUAGES["en"]["REGEX"] + task_name = f"mgsm_en_cot_{lang}" + + file_name = f"{task_name}.yaml" + ANSWER_TO_SKIP = len(LANGUAGES[lang]["ANSWER"]) + 1 + with open( + f"{output_dir}/{file_name}", "w" if overwrite else "x", encoding="utf8" + ) as f: + f.write("# Generated by utils.py\n") + yaml.dump( + { + "include": yaml_template, + "dataset_name": lang, + "task": f"{task_name}", + "doc_to_text": f"""{{% if answer is not none %}}""" + f"""{{{{question+"\\n{ANSWER}"}}}}""" + f"""{{% else %}}""" + f"""{{{{"{QUESTION} "+question+"\\n{ANSWER}"}}}}""" + f"""{{% endif %}}""", + "doc_to_target": f"""{{% if answer is not none %}}""" + f"""{{{{answer[{ANSWER_TO_SKIP}:]}}}}""" + f"""{{% else %}}""" + f"""{{{{answer_number|string}}}}""" + f"""{{% endif %}}""", + **filter_list, + "generation_kwargs": { + "until": [QUESTION, "", "<|im_end|>"], + "do_sample": False, + }, + **({"target_delimiter": DELIMITER} if DELIMITER else {}), + }, + f, + allow_unicode=True, + width=float("inf"), + ) + except FileExistsError: + err.append(file_name) + + if len(err) > 0: + raise FileExistsError( + "Files were not created because they already exist (use --overwrite flag):" + f" {', '.join(err)}" + ) + + +def main() -> None: + """Parse CLI args and generate language-specific yaml files.""" + parser = argparse.ArgumentParser() + parser.add_argument( + "--overwrite", + default=False, + action="store_true", + help="Overwrite files if they already exist", + ) + parser.add_argument( + "--output-dir", default=".", help="Directory to write yaml files to" + ) + parser.add_argument( + "--mode", + default="native-cot", + choices=["direct", "native-cot", "en-cot"], + help="Mode of chain-of-thought", + ) + args = parser.parse_args() + + gen_lang_yamls(output_dir=args.output_dir, overwrite=args.overwrite, mode=args.mode) + + +if __name__ == "__main__": + main() diff --git a/lm-evaluation-harness/lm_eval/tasks/minerva_math/minerva_math_counting_and_prob.yaml b/lm-evaluation-harness/lm_eval/tasks/minerva_math/minerva_math_counting_and_prob.yaml new file mode 100644 index 0000000000000000000000000000000000000000..688cd711c50d005d5d78ca55116ad333d96161ce --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/minerva_math/minerva_math_counting_and_prob.yaml @@ -0,0 +1,3 @@ +include: minerva_math_algebra.yaml +dataset_name: counting_and_probability +task: minerva_math_counting_and_prob diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_ar_vi.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_ar_vi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..54869c657d682971518fc12bb83f24f8389e46c9 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_ar_vi.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_ar_vi +dataset_name: mlqa.ar.vi +process_results: !function utils.process_results_ar diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_de_ar.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_de_ar.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1090a58925ed033bc18f5546e2b8d93619992b3c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_de_ar.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_de_ar +dataset_name: mlqa.de.ar +process_results: !function utils.process_results_de diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_de_zh.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_de_zh.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ee1855626fdf5ab157894dfd5636fe7b2fc58739 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_de_zh.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_de_zh +dataset_name: mlqa.de.zh +process_results: !function utils.process_results_de diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_en_ar.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_en_ar.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a8c72d2694351760a9c9f9b6332615238af2e125 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_en_ar.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_en_ar +dataset_name: mlqa.en.ar +process_results: !function utils.process_results_en diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_en_en.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_en_en.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d15e222f7bf8ec0f09526e12ecac6788c1174568 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_en_en.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_en_en +dataset_name: mlqa.en.en +process_results: !function utils.process_results_en diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_en_hi.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_en_hi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7c2e38249a012568baddc13b961e11a7174a2555 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_en_hi.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_en_hi +dataset_name: mlqa.en.hi +process_results: !function utils.process_results_en diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_en_vi.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_en_vi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1a2f635ea385f0dbfff79e470f066b8f260aa52f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_en_vi.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_en_vi +dataset_name: mlqa.en.vi +process_results: !function utils.process_results_en diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_en_zh.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_en_zh.yaml new file mode 100644 index 0000000000000000000000000000000000000000..91336eba9a7fd8e33fe7845c27b2b21f88d9177e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_en_zh.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_en_zh +dataset_name: mlqa.en.zh +process_results: !function utils.process_results_en diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_es_ar.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_es_ar.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9a24508cbd630e5f1fd25ed070821051214b0a72 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_es_ar.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_es_ar +dataset_name: mlqa.es.ar +process_results: !function utils.process_results_es diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_es_de.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_es_de.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9a40b2b6956b91b39aa8a7d16d98ef91098f3665 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_es_de.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_es_de +dataset_name: mlqa.es.de +process_results: !function utils.process_results_es diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_es_en.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_es_en.yaml new file mode 100644 index 0000000000000000000000000000000000000000..660968c7fd9131cb54ba23be4eaf51e0ed68ff35 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_es_en.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_es_en +dataset_name: mlqa.es.en +process_results: !function utils.process_results_es diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_es_es.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_es_es.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1232947b92715bf3b714ee3a9aa1f525a532bc68 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_es_es.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_es_es +dataset_name: mlqa.es.es +process_results: !function utils.process_results_es diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_es_hi.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_es_hi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5502288925c25e2fda50ed630abd292989464e93 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_es_hi.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_es_hi +dataset_name: mlqa.es.hi +process_results: !function utils.process_results_es diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_es_vi.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_es_vi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0ea9027dec2a1cee00d5e145f8ce68c02ccb9f4d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_es_vi.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_es_vi +dataset_name: mlqa.es.vi +process_results: !function utils.process_results_es diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_es_zh.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_es_zh.yaml new file mode 100644 index 0000000000000000000000000000000000000000..caecd1b2d0d8c1600596cfb9ed844e044f0eefdf --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_es_zh.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_es_zh +dataset_name: mlqa.es.zh +process_results: !function utils.process_results_es diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_hi_ar.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_hi_ar.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e4c4263a1d4c0d326a6fabfb5d4036037c152d75 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_hi_ar.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_hi_ar +dataset_name: mlqa.hi.ar +process_results: !function utils.process_results_hi diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_hi_de.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_hi_de.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8069b5a07b2c63f713bcea262f9d5209545507b1 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_hi_de.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_hi_de +dataset_name: mlqa.hi.de +process_results: !function utils.process_results_hi diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_hi_en.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_hi_en.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d7a18067bc0a568003f54317d2b9a44cc1770b2c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_hi_en.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_hi_en +dataset_name: mlqa.hi.en +process_results: !function utils.process_results_hi diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_hi_es.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_hi_es.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d152ad66dc3e497c5bc5aa1094a1c0f97cdf2bae --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_hi_es.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_hi_es +dataset_name: mlqa.hi.es +process_results: !function utils.process_results_hi diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_hi_hi.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_hi_hi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1ce79e6bbe5be2d476fdbbdf914107be31e2efea --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_hi_hi.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_hi_hi +dataset_name: mlqa.hi.hi +process_results: !function utils.process_results_hi diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_hi_vi.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_hi_vi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..534d90f70dd08313f6f9a0cb68f5571f689e8569 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_hi_vi.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_hi_vi +dataset_name: mlqa.hi.vi +process_results: !function utils.process_results_hi diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_hi_zh.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_hi_zh.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8432db492dfc3c593adbf7255ead41c0a36be8b7 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_hi_zh.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_hi_zh +dataset_name: mlqa.hi.zh +process_results: !function utils.process_results_hi diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_vi_ar.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_vi_ar.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c22c11cd0613c88743f296fce025ae774be31a5a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_vi_ar.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_vi_ar +dataset_name: mlqa.vi.ar +process_results: !function utils.process_results_vi diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_vi_de.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_vi_de.yaml new file mode 100644 index 0000000000000000000000000000000000000000..948ac3ac36637dfd300e0b0c74ca8a9c1a7bb1e8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_vi_de.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_vi_de +dataset_name: mlqa.vi.de +process_results: !function utils.process_results_vi diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_vi_en.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_vi_en.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0106867703a5bcb7a447d942f8f8cf71269b4820 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_vi_en.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_vi_en +dataset_name: mlqa.vi.en +process_results: !function utils.process_results_vi diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_vi_es.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_vi_es.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9ac62c1056237afcb2d9e921d6b319903ae2af25 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_vi_es.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_vi_es +dataset_name: mlqa.vi.es +process_results: !function utils.process_results_vi diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_vi_hi.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_vi_hi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..26b232a879778b6d7eee8bedfdbe7e758acba9aa --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_vi_hi.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_vi_hi +dataset_name: mlqa.vi.hi +process_results: !function utils.process_results_vi diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_vi_vi.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_vi_vi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d8277d78ebc4ddd57ab2fe955adc80259e85902c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_vi_vi.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_vi_vi +dataset_name: mlqa.vi.vi +process_results: !function utils.process_results_vi diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_vi_zh.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_vi_zh.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7ecc6b919281cd13b103a1564199b2ddf1db622b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_vi_zh.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_vi_zh +dataset_name: mlqa.vi.zh +process_results: !function utils.process_results_vi diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_zh_ar.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_zh_ar.yaml new file mode 100644 index 0000000000000000000000000000000000000000..42c3713d5a156ed1c44afd3af08624b8d4bc75aa --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_zh_ar.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_zh_ar +dataset_name: mlqa.zh.ar +process_results: !function utils.process_results_zh diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_zh_de.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_zh_de.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cb5e4cb884a4bfcc25f1f5323514cfb49807654f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_zh_de.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_zh_de +dataset_name: mlqa.zh.de +process_results: !function utils.process_results_zh diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_zh_en.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_zh_en.yaml new file mode 100644 index 0000000000000000000000000000000000000000..653f26aefa5d02f0250277e004333c1f1499b9fb --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_zh_en.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_zh_en +dataset_name: mlqa.zh.en +process_results: !function utils.process_results_zh diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_zh_es.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_zh_es.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c98203f76f6b5250c4df09b8b8b73ae7bb9964f4 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_zh_es.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_zh_es +dataset_name: mlqa.zh.es +process_results: !function utils.process_results_zh diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_zh_hi.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_zh_hi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ed58f47f4d52f8a3ba1c9240bca15ac97f113874 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_zh_hi.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_zh_hi +dataset_name: mlqa.zh.hi +process_results: !function utils.process_results_zh diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_zh_vi.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_zh_vi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7043676235f913e7826751503bb7146ae5a4b5fe --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_zh_vi.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_zh_vi +dataset_name: mlqa.zh.vi +process_results: !function utils.process_results_zh diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_zh_zh.yaml b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_zh_zh.yaml new file mode 100644 index 0000000000000000000000000000000000000000..792b5ee0c9ba13583de4914ceba5c76a941361a7 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/mlqa_zh_zh.yaml @@ -0,0 +1,5 @@ +# Generated by generate_tasks.py +include: mlqa_common_yaml +task: mlqa_zh_zh +dataset_name: mlqa.zh.zh +process_results: !function utils.process_results_zh diff --git a/lm-evaluation-harness/lm_eval/tasks/mlqa/utils.py b/lm-evaluation-harness/lm_eval/tasks/mlqa/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..61e593716a968af4240e43024dfa90c8f0e0a53c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mlqa/utils.py @@ -0,0 +1,165 @@ +""" +Code based on Official evaluation script for the MLQA dataset. +Repo: https://github.com/facebookresearch/MLQA/blob/main/mlqa_evaluation_v1.py +""" + +import re +import string +import sys +import unicodedata +from collections import Counter + +import datasets + + +PUNCT = { + chr(i) + for i in range(sys.maxunicode) + if unicodedata.category(chr(i)).startswith("P") +}.union(string.punctuation) +WHITESPACE_LANGS = ["en", "es", "hi", "vi", "de", "ar"] +MIXED_SEGMENTATION_LANGS = ["zh"] + + +def whitespace_tokenize(text): + return text.split() + + +def mixed_segmentation(text): + segs_out = [] + temp_str = "" + for char in text: + if re.search(r"[\u4e00-\u9fa5]", char) or char in PUNCT: + if temp_str != "": + ss = whitespace_tokenize(temp_str) + segs_out.extend(ss) + temp_str = "" + segs_out.append(char) + else: + temp_str += char + + if temp_str != "": + ss = whitespace_tokenize(temp_str) + segs_out.extend(ss) + + return segs_out + + +def normalize_answer(s, lang): + """Lower text and remove punctuation, articles and extra whitespace.""" + + def remove_articles(text, lang): + if lang == "en": + return re.sub(r"\b(a|an|the)\b", " ", text) + elif lang == "es": + return re.sub(r"\b(un|una|unos|unas|el|la|los|las)\b", " ", text) + elif lang == "hi": + return text # Hindi does not have formal articles + elif lang == "vi": + return re.sub(r"\b(của|là|cái|chiếc|những)\b", " ", text) + elif lang == "de": + return re.sub( + r"\b(ein|eine|einen|einem|eines|einer|der|die|das|den|dem|des)\b", + " ", + text, + ) + elif lang == "ar": + return re.sub(r"\sال^|ال", " ", text) + elif lang == "zh": + return text # Chinese does not have formal articles + else: + raise Exception("Unknown Language {}".format(lang)) + + def white_space_fix(text, lang): + if lang in WHITESPACE_LANGS: + tokens = whitespace_tokenize(text) + elif lang in MIXED_SEGMENTATION_LANGS: + tokens = mixed_segmentation(text) + else: + raise Exception("Unknown Language {}".format(lang)) + return " ".join([t for t in tokens if t.strip() != ""]) + + def remove_punc(text): + return "".join(ch for ch in text if ch not in PUNCT) + + def lower(text): + return text.lower() + + return white_space_fix(remove_articles(remove_punc(lower(s)), lang), lang) + + +def f1_score(prediction, ground_truth, lang): + prediction_tokens = normalize_answer(prediction, lang).split() + ground_truth_tokens = normalize_answer(ground_truth, lang).split() + common = Counter(prediction_tokens) & Counter(ground_truth_tokens) + num_same = sum(common.values()) + if num_same == 0: + return 0 + precision = 1.0 * num_same / len(prediction_tokens) + recall = 1.0 * num_same / len(ground_truth_tokens) + f1 = (2 * precision * recall) / (precision + recall) + return f1 + + +def exact_match_score(prediction, ground_truth, lang): + return normalize_answer(prediction, lang) == normalize_answer(ground_truth, lang) + + +def metric_max_over_ground_truths(metric_fn, prediction, ground_truths, lang): + scores_for_ground_truths = [] + for ground_truth in ground_truths: + score = metric_fn(prediction, ground_truth, lang) + scores_for_ground_truths.append(score) + return max(scores_for_ground_truths) + + +def process_docs(dataset: datasets.Dataset) -> datasets.Dataset: + def _process_doc(doc): + out_doc = { + "context": doc["context"], + "question": doc["question"], + "answers": doc["answers"]["text"], + } + return out_doc + + return dataset.map(_process_doc) + + +# Base function +def process_results_lang(doc, results, lang): + ground_truths = doc["answers"] + prediction = results[0].strip() + exact_match = metric_max_over_ground_truths( + exact_match_score, prediction, ground_truths, lang + ) + f1 = metric_max_over_ground_truths(f1_score, prediction, ground_truths, lang) + return {"exact_match": exact_match, "f1": f1} + + +# Language Wrapper functions +def process_results_en(doc, results): + return process_results_lang(doc, results, "en") + + +def process_results_es(doc, results): + return process_results_lang(doc, results, "es") + + +def process_results_hi(doc, results): + return process_results_lang(doc, results, "hi") + + +def process_results_vi(doc, results): + return process_results_lang(doc, results, "vi") + + +def process_results_de(doc, results): + return process_results_lang(doc, results, "de") + + +def process_results_ar(doc, results): + return process_results_lang(doc, results, "ar") + + +def process_results_zh(doc, results): + return process_results_lang(doc, results, "zh") diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/README.md b/lm-evaluation-harness/lm_eval/tasks/mmlu/README.md new file mode 100644 index 0000000000000000000000000000000000000000..a3425d517654a6b93e03ee1bb681e07de18c4016 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/README.md @@ -0,0 +1,73 @@ +# Task-name + +### Paper + +Title: `Measuring Massive Multitask Language Understanding` + +Abstract: `https://arxiv.org/abs/2009.03300` + +`The test covers 57 tasks including elementary mathematics, US history, computer science, law, and more.` + +Homepage: `https://github.com/hendrycks/test` + +Note: The `Flan` variants are derived from [here](https://github.com/jasonwei20/flan-2), and as described in Appendix D.1 of [Scaling Instruction-Finetuned Language Models](https://arxiv.org/abs/2210.11416). + +### Citation + +``` +@article{hendryckstest2021, + title={Measuring Massive Multitask Language Understanding}, + author={Dan Hendrycks and Collin Burns and Steven Basart and Andy Zou and Mantas Mazeika and Dawn Song and Jacob Steinhardt}, + journal={Proceedings of the International Conference on Learning Representations (ICLR)}, + year={2021} +} + +@article{hendrycks2021ethics, + title={Aligning AI With Shared Human Values}, + author={Dan Hendrycks and Collin Burns and Steven Basart and Andrew Critch and Jerry Li and Dawn Song and Jacob Steinhardt}, + journal={Proceedings of the International Conference on Learning Representations (ICLR)}, + year={2021} +} +``` + +### Groups, Tags, and Tasks + +#### Groups + +* `mmlu`: `Original multiple-choice MMLU benchmark` +* `mmlu_continuation`: `MMLU but with continuation prompts` +* `mmlu_generation`: `MMLU generation` + +MMLU is the original benchmark as implemented by Hendrycks et al. with the choices in context and the answer letters (e.g `A`, `B`, `C`, `D`) in the continuation. +`mmlu_continuation` is a cloze-style variant without the choices in context and the full answer choice in the continuation. +`mmlu_generation` is a generation variant, similar to the original but the LLM is asked to generate the correct answer letter. + + +#### Subgroups + +* `mmlu_stem' +* `mmlu_humanities' +* `mmlu_social_sciences' +* `mmlu_other' + +Subgroup variants are prefixed with the subgroup name, e.g. `mmlu_stem_continuation`. + +### Checklist + +For adding novel benchmarks/datasets to the library: +* [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? If so, have you checked against the reference implementation and documented how to run such a test? + + +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? +* [x] Have you noted which, if any, published evaluation setups are matched by this variant? + +# changelog +ver 1: PR #497 +switch to original implementation + +ver 2: PR #2116 +add missing newline in description. diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/_generate_configs.py b/lm-evaluation-harness/lm_eval/tasks/mmlu/_generate_configs.py new file mode 100644 index 0000000000000000000000000000000000000000..88a7a2c2e63a5066b7f60a0bee8e8839173969e4 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/_generate_configs.py @@ -0,0 +1,159 @@ +# noqa +""" +Take in a YAML, and output all "other" splits with this YAML +""" + +import argparse +import logging +import os + +import yaml +from tqdm import tqdm + + +eval_logger = logging.getLogger(__name__) + + +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(): + parser = argparse.ArgumentParser() + parser.add_argument("--base_yaml_path", required=True) + 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="") + 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, encoding="utf-8") as f: + base_yaml = yaml.full_load(f) + + if args.cot_prompt_path is not None: + import json + + with open(args.cot_prompt_path, encoding="utf-8") as f: + cot_file = json.load(f) + + 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: + description = f"The following are multiple choice questions (with answers) about {' '.join(subject.split('_'))}.\n\n" + + yaml_dict = { + "include": base_yaml_name, + "tag": 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}", + "task_alias": subject.replace("_", " "), + "dataset_name": subject, + "description": description, + } + + file_save_path = args.save_prefix_path + f"_{subject}.yaml" + eval_logger.info(f"Saving yaml for subset {subject} to {file_save_path}") + with open(file_save_path, "w", encoding="utf-8") as yaml_file: + yaml.dump( + yaml_dict, + yaml_file, + allow_unicode=True, + default_style='"', + ) + + 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 + ".yaml" + + eval_logger.info(f"Saving benchmark config to {file_save_path}") + with open(file_save_path, "w", encoding="utf-8") as yaml_file: + yaml.dump( + { + "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-evaluation-harness/lm_eval/tasks/mmlu/continuation/_continuation_template_yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/_continuation_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..264e27a5e8ebde9a203094c7cc9735ecf8ef3993 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/_continuation_template_yaml @@ -0,0 +1,13 @@ +dataset_path: hails/mmlu_no_train # a copy of `cais/mmlu` with no auxiliary_train split +output_type: multiple_choice +test_split: test +fewshot_split: dev +fewshot_config: + sampler: first_n +doc_to_text: "Question: {{question.strip()}}\nAnswer:" +doc_to_choice: "{{choices}}" +doc_to_target: "{{answer}}" +metadata: + version: 1.0 +dataset_kwargs: + trust_remote_code: true diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/_mmlu.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/_mmlu.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c0cabf04b8ac1e1f9c809600214c589cfefbba79 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/_mmlu.yaml @@ -0,0 +1,32 @@ +group: mmlu_continuation +group_alias: mmlu (continuation) +task: + - group: stem + task: + - mmlu_continuation_stem + aggregate_metric_list: + - metric: acc + weight_by_size: True + - group: other + task: + - mmlu_continuation_other + aggregate_metric_list: + - metric: acc + weight_by_size: True + - group: social sciences + task: + - mmlu_continuation_social_sciences + aggregate_metric_list: + - metric: acc + weight_by_size: True + - group: humanities + task: + - mmlu_continuation_humanities + aggregate_metric_list: + - metric: acc + weight_by_size: True +aggregate_metric_list: + - metric: acc + weight_by_size: True +metadata: + version: 2 diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_abstract_algebra.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_abstract_algebra.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6f4e29c0fb5147d883ee993d95822dde10b69d4e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_abstract_algebra.yaml @@ -0,0 +1,6 @@ +"dataset_name": "abstract_algebra" +"description": "The following are questions (with answers) about abstract\ + \ algebra.\n\n" +"tag": "mmlu_continuation_stem" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_abstract_algebra" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_anatomy.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_anatomy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bc3de9c4e6679ba4c9f66494c908d99781adf5bb --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_anatomy.yaml @@ -0,0 +1,6 @@ +"dataset_name": "anatomy" +"description": "The following are questions (with answers) about anatomy.\n\ + \n" +"tag": "mmlu_continuation_stem" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_anatomy" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_astronomy.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_astronomy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..76aabcbfcf13a12e66e1af1daae2811b9b388fc8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_astronomy.yaml @@ -0,0 +1,6 @@ +"dataset_name": "astronomy" +"description": "The following are questions (with answers) about astronomy.\n\ + \n" +"tag": "mmlu_continuation_stem" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_astronomy" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_business_ethics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_business_ethics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e64d0920b9d1ac151712aac84a9e9c3f522c3c9f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_business_ethics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "business_ethics" +"description": "The following are questions (with answers) about business\ + \ ethics.\n\n" +"tag": "mmlu_continuation_other" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_business_ethics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_clinical_knowledge.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_clinical_knowledge.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e79805df6f73782f25be4a302c738b73ecd2f2a2 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_clinical_knowledge.yaml @@ -0,0 +1,6 @@ +"dataset_name": "clinical_knowledge" +"description": "The following are questions (with answers) about clinical\ + \ knowledge.\n\n" +"tag": "mmlu_continuation_other" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_clinical_knowledge" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_college_biology.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_college_biology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..936f6ffe49245d558c0ef8fdf04b600dc177c375 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_college_biology.yaml @@ -0,0 +1,6 @@ +"dataset_name": "college_biology" +"description": "The following are questions (with answers) about college\ + \ biology.\n\n" +"tag": "mmlu_continuation_stem" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_college_biology" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_college_chemistry.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_college_chemistry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..289364ee44351c3d1bcee1193563babe6abe2a63 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_college_chemistry.yaml @@ -0,0 +1,6 @@ +"dataset_name": "college_chemistry" +"description": "The following are questions (with answers) about college\ + \ chemistry.\n\n" +"tag": "mmlu_continuation_stem" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_college_chemistry" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_college_computer_science.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_college_computer_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c7d3c5696067f09f9a68fdd9c3f7a1002d264128 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_college_computer_science.yaml @@ -0,0 +1,6 @@ +"dataset_name": "college_computer_science" +"description": "The following are questions (with answers) about college\ + \ computer science.\n\n" +"tag": "mmlu_continuation_stem" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_college_computer_science" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_college_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_college_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2dbc0932f63c0782e106db5fc27e96da9d816dec --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_college_mathematics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "college_mathematics" +"description": "The following are questions (with answers) about college\ + \ mathematics.\n\n" +"tag": "mmlu_continuation_stem" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_college_mathematics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_college_medicine.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_college_medicine.yaml new file mode 100644 index 0000000000000000000000000000000000000000..38abd2426f844916087795c4cc04355d8d6c2776 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_college_medicine.yaml @@ -0,0 +1,6 @@ +"dataset_name": "college_medicine" +"description": "The following are questions (with answers) about college\ + \ medicine.\n\n" +"tag": "mmlu_continuation_other" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_college_medicine" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_college_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_college_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ee6b42584c834a5e92506650ee3aba58ed1cfd66 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_college_physics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "college_physics" +"description": "The following are questions (with answers) about college\ + \ physics.\n\n" +"tag": "mmlu_continuation_stem" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_college_physics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_computer_security.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_computer_security.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7ebb487dfbf634d390d2b2f9aa0e31e5a2f68fc6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_computer_security.yaml @@ -0,0 +1,6 @@ +"dataset_name": "computer_security" +"description": "The following are questions (with answers) about computer\ + \ security.\n\n" +"tag": "mmlu_continuation_stem" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_computer_security" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_conceptual_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_conceptual_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7c554caf07da77e4a9bb0bea9672dfcee4777b91 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_conceptual_physics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "conceptual_physics" +"description": "The following are questions (with answers) about conceptual\ + \ physics.\n\n" +"tag": "mmlu_continuation_stem" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_conceptual_physics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_econometrics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_econometrics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..848ce4e1f0dbff32d304c28f3d60d453e591a30f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_econometrics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "econometrics" +"description": "The following are questions (with answers) about econometrics.\n\ + \n" +"tag": "mmlu_continuation_social_sciences" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_econometrics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_electrical_engineering.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_electrical_engineering.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d71dd16481a2bb5289ef5b713218dae0292bb11a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_electrical_engineering.yaml @@ -0,0 +1,6 @@ +"dataset_name": "electrical_engineering" +"description": "The following are questions (with answers) about electrical\ + \ engineering.\n\n" +"tag": "mmlu_continuation_stem" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_electrical_engineering" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_elementary_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_elementary_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fe8aa09718cb8aef0dad48c21926f7dacc7b8ee9 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_elementary_mathematics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "elementary_mathematics" +"description": "The following are questions (with answers) about elementary\ + \ mathematics.\n\n" +"tag": "mmlu_continuation_stem" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_elementary_mathematics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_formal_logic.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_formal_logic.yaml new file mode 100644 index 0000000000000000000000000000000000000000..eb5dbd2e505e3fb4604dd75f2d5fe1a35fce3391 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_formal_logic.yaml @@ -0,0 +1,6 @@ +"dataset_name": "formal_logic" +"description": "The following are questions (with answers) about formal\ + \ logic.\n\n" +"tag": "mmlu_continuation_humanities" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_formal_logic" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_global_facts.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_global_facts.yaml new file mode 100644 index 0000000000000000000000000000000000000000..280a50d2ee229b5f047a02024298474225203e54 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_global_facts.yaml @@ -0,0 +1,6 @@ +"dataset_name": "global_facts" +"description": "The following are questions (with answers) about global\ + \ facts.\n\n" +"tag": "mmlu_continuation_other" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_global_facts" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_biology.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_biology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e518a5239a6da013ad31bfca284a3b7096bce840 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_biology.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_biology" +"description": "The following are questions (with answers) about high\ + \ school biology.\n\n" +"tag": "mmlu_continuation_stem" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_high_school_biology" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_chemistry.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_chemistry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c38d60a7706306b215e156d4c27f05585945f7b4 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_chemistry.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_chemistry" +"description": "The following are questions (with answers) about high\ + \ school chemistry.\n\n" +"tag": "mmlu_continuation_stem" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_high_school_chemistry" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_computer_science.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_computer_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5fe34f7af35456657c1acf40e05b3aaabc7893e8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_computer_science.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_computer_science" +"description": "The following are questions (with answers) about high\ + \ school computer science.\n\n" +"tag": "mmlu_continuation_stem" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_high_school_computer_science" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_european_history.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_european_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..666c2742d1b762c103bbd02ff121676a047fb3e5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_european_history.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_european_history" +"description": "The following are questions (with answers) about high\ + \ school european history.\n\n" +"tag": "mmlu_continuation_humanities" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_high_school_european_history" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_geography.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_geography.yaml new file mode 100644 index 0000000000000000000000000000000000000000..41f6caf3e7f3b762af7c0350ca9a73d39bede2b8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_geography.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_geography" +"description": "The following are questions (with answers) about high\ + \ school geography.\n\n" +"tag": "mmlu_continuation_social_sciences" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_high_school_geography" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_government_and_politics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_government_and_politics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e80233dc891e6890a5dec384ed2fbe5b82aca094 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_government_and_politics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_government_and_politics" +"description": "The following are questions (with answers) about high\ + \ school government and politics.\n\n" +"tag": "mmlu_continuation_social_sciences" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_high_school_government_and_politics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_macroeconomics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_macroeconomics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ce7fa9d5e3caa8dd3ec8e25172afda5f997b6c0c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_macroeconomics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_macroeconomics" +"description": "The following are questions (with answers) about high\ + \ school macroeconomics.\n\n" +"tag": "mmlu_continuation_social_sciences" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_high_school_macroeconomics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2598dcb38eb9f8fdacced20c57d62c83dacb8a40 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_mathematics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_mathematics" +"description": "The following are questions (with answers) about high\ + \ school mathematics.\n\n" +"tag": "mmlu_continuation_stem" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_high_school_mathematics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_microeconomics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_microeconomics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..96c414d3c411c6380cf83dca3b7aedc325598220 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_microeconomics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_microeconomics" +"description": "The following are questions (with answers) about high\ + \ school microeconomics.\n\n" +"tag": "mmlu_continuation_social_sciences" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_high_school_microeconomics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..45ab0a539a02ae322f66db689d8eddf13c8b856a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_physics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_physics" +"description": "The following are questions (with answers) about high\ + \ school physics.\n\n" +"tag": "mmlu_continuation_stem" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_high_school_physics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_psychology.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_psychology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..48dedf5c5ed94a836e0d802398ab05d7ab7db6ce --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_psychology.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_psychology" +"description": "The following are questions (with answers) about high\ + \ school psychology.\n\n" +"tag": "mmlu_continuation_social_sciences" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_high_school_psychology" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_statistics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_statistics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2ee2418c7ff5235c1e31cf381502f5b21db60230 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_statistics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_statistics" +"description": "The following are questions (with answers) about high\ + \ school statistics.\n\n" +"tag": "mmlu_continuation_stem" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_high_school_statistics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_us_history.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_us_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a00f16ceba2cfd3f313c8fe0d2df4a43e4bbe23d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_us_history.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_us_history" +"description": "The following are questions (with answers) about high\ + \ school us history.\n\n" +"tag": "mmlu_continuation_humanities" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_high_school_us_history" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_world_history.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_world_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..dc4cddf553bf0144b5d4ecc5eabe8efef0cf0367 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_high_school_world_history.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_world_history" +"description": "The following are questions (with answers) about high\ + \ school world history.\n\n" +"tag": "mmlu_continuation_humanities" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_high_school_world_history" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_human_aging.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_human_aging.yaml new file mode 100644 index 0000000000000000000000000000000000000000..314edeb6c26c6a6be2d819b7c66e047cd48f8933 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_human_aging.yaml @@ -0,0 +1,6 @@ +"dataset_name": "human_aging" +"description": "The following are questions (with answers) about human\ + \ aging.\n\n" +"tag": "mmlu_continuation_other" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_human_aging" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_human_sexuality.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_human_sexuality.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a1473819ab4307f1e02024a0828ad9803710a59b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_human_sexuality.yaml @@ -0,0 +1,6 @@ +"dataset_name": "human_sexuality" +"description": "The following are questions (with answers) about human\ + \ sexuality.\n\n" +"tag": "mmlu_continuation_social_sciences" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_human_sexuality" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_international_law.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_international_law.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5ea8944bcc109000525b90f26f1d0da914d17437 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_international_law.yaml @@ -0,0 +1,6 @@ +"dataset_name": "international_law" +"description": "The following are questions (with answers) about international\ + \ law.\n\n" +"tag": "mmlu_continuation_humanities" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_international_law" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_jurisprudence.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_jurisprudence.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fca1dda86cc382604ca1bcbc308e0062e08dfa80 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_jurisprudence.yaml @@ -0,0 +1,6 @@ +"dataset_name": "jurisprudence" +"description": "The following are questions (with answers) about jurisprudence.\n\ + \n" +"tag": "mmlu_continuation_humanities" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_jurisprudence" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_logical_fallacies.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_logical_fallacies.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1b576f9fb3d0ce1d21e8d7543b56a539300be36a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_logical_fallacies.yaml @@ -0,0 +1,6 @@ +"dataset_name": "logical_fallacies" +"description": "The following are questions (with answers) about logical\ + \ fallacies.\n\n" +"tag": "mmlu_continuation_humanities" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_logical_fallacies" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_machine_learning.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_machine_learning.yaml new file mode 100644 index 0000000000000000000000000000000000000000..15fc3f4bdf0f34e96149ca2f8dddc90d037e8483 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_machine_learning.yaml @@ -0,0 +1,6 @@ +"dataset_name": "machine_learning" +"description": "The following are questions (with answers) about machine\ + \ learning.\n\n" +"tag": "mmlu_continuation_stem" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_machine_learning" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_management.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_management.yaml new file mode 100644 index 0000000000000000000000000000000000000000..575604e0acf52132d9e489a070d28fd761e739eb --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_management.yaml @@ -0,0 +1,6 @@ +"dataset_name": "management" +"description": "The following are questions (with answers) about management.\n\ + \n" +"tag": "mmlu_continuation_other" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_management" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_marketing.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_marketing.yaml new file mode 100644 index 0000000000000000000000000000000000000000..af715bee02cfe813b5f045670c8e46dda258e77d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_marketing.yaml @@ -0,0 +1,6 @@ +"dataset_name": "marketing" +"description": "The following are questions (with answers) about marketing.\n\ + \n" +"tag": "mmlu_continuation_other" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_marketing" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_medical_genetics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_medical_genetics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3bf63614168f648497d046f015472497a2ac7553 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_medical_genetics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "medical_genetics" +"description": "The following are questions (with answers) about medical\ + \ genetics.\n\n" +"tag": "mmlu_continuation_other" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_medical_genetics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_miscellaneous.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_miscellaneous.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f457800932ec2fba831a1d81e6ca4495816f981f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_miscellaneous.yaml @@ -0,0 +1,6 @@ +"dataset_name": "miscellaneous" +"description": "The following are questions (with answers) about miscellaneous.\n\ + \n" +"tag": "mmlu_continuation_other" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_miscellaneous" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_moral_disputes.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_moral_disputes.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0df1392d5baceb1a3dda1464acbb0b025a8428e8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_moral_disputes.yaml @@ -0,0 +1,6 @@ +"dataset_name": "moral_disputes" +"description": "The following are questions (with answers) about moral\ + \ disputes.\n\n" +"tag": "mmlu_continuation_humanities" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_moral_disputes" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_moral_scenarios.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_moral_scenarios.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bea5e514b85a6ed83026a6fe9d399f92eb59ea99 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_moral_scenarios.yaml @@ -0,0 +1,6 @@ +"dataset_name": "moral_scenarios" +"description": "The following are questions (with answers) about moral\ + \ scenarios.\n\n" +"tag": "mmlu_continuation_humanities" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_moral_scenarios" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_nutrition.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_nutrition.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8db80340b2a9984cb8c3e41766e3f0e89af8f252 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_nutrition.yaml @@ -0,0 +1,6 @@ +"dataset_name": "nutrition" +"description": "The following are questions (with answers) about nutrition.\n\ + \n" +"tag": "mmlu_continuation_other" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_nutrition" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_philosophy.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_philosophy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..165de6c90ba1d4756c39e2f5605226dbeb86e314 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_philosophy.yaml @@ -0,0 +1,6 @@ +"dataset_name": "philosophy" +"description": "The following are questions (with answers) about philosophy.\n\ + \n" +"tag": "mmlu_continuation_humanities" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_philosophy" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_prehistory.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_prehistory.yaml new file mode 100644 index 0000000000000000000000000000000000000000..02c4ee7f8af1856f498b7a55c83e085782e36666 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_prehistory.yaml @@ -0,0 +1,6 @@ +"dataset_name": "prehistory" +"description": "The following are questions (with answers) about prehistory.\n\ + \n" +"tag": "mmlu_continuation_humanities" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_prehistory" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_professional_accounting.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_professional_accounting.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bb36a82b9c043b519379626f2d3618efdda9907b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_professional_accounting.yaml @@ -0,0 +1,6 @@ +"dataset_name": "professional_accounting" +"description": "The following are questions (with answers) about professional\ + \ accounting.\n\n" +"tag": "mmlu_continuation_other" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_professional_accounting" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_professional_law.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_professional_law.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ac9f2592f41a2bcae43da174d2eb969cf1805251 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_professional_law.yaml @@ -0,0 +1,6 @@ +"dataset_name": "professional_law" +"description": "The following are questions (with answers) about professional\ + \ law.\n\n" +"tag": "mmlu_continuation_humanities" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_professional_law" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_professional_medicine.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_professional_medicine.yaml new file mode 100644 index 0000000000000000000000000000000000000000..328c128377609327abe0460e2d4ab6af716d02c3 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_professional_medicine.yaml @@ -0,0 +1,6 @@ +"dataset_name": "professional_medicine" +"description": "The following are questions (with answers) about professional\ + \ medicine.\n\n" +"tag": "mmlu_continuation_other" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_professional_medicine" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_professional_psychology.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_professional_psychology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0cca5bde048a23367aa2ccebc893e9fa71996d98 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_professional_psychology.yaml @@ -0,0 +1,6 @@ +"dataset_name": "professional_psychology" +"description": "The following are questions (with answers) about professional\ + \ psychology.\n\n" +"tag": "mmlu_continuation_social_sciences" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_professional_psychology" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_public_relations.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_public_relations.yaml new file mode 100644 index 0000000000000000000000000000000000000000..700c407c2377d8d4d83bbf88d8f7a003a2e2900d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_public_relations.yaml @@ -0,0 +1,6 @@ +"dataset_name": "public_relations" +"description": "The following are questions (with answers) about public\ + \ relations.\n\n" +"tag": "mmlu_continuation_social_sciences" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_public_relations" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_security_studies.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_security_studies.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4f5ef99e0f8fe8c98bc9994757d9cc6617e3550e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_security_studies.yaml @@ -0,0 +1,6 @@ +"dataset_name": "security_studies" +"description": "The following are questions (with answers) about security\ + \ studies.\n\n" +"tag": "mmlu_continuation_social_sciences" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_security_studies" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_sociology.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_sociology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e78621aaa547b419f4133b94ce8dcba00c407f5c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_sociology.yaml @@ -0,0 +1,6 @@ +"dataset_name": "sociology" +"description": "The following are questions (with answers) about sociology.\n\ + \n" +"tag": "mmlu_continuation_social_sciences" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_sociology" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_us_foreign_policy.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_us_foreign_policy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..989bb29aa095e83c2744011775864ef27258ca28 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_us_foreign_policy.yaml @@ -0,0 +1,6 @@ +"dataset_name": "us_foreign_policy" +"description": "The following are questions (with answers) about us\ + \ foreign policy.\n\n" +"tag": "mmlu_continuation_social_sciences" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_us_foreign_policy" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_virology.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_virology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5c938190bdd755f411914905d5309daa6938f313 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_virology.yaml @@ -0,0 +1,6 @@ +"dataset_name": "virology" +"description": "The following are questions (with answers) about virology.\n\ + \n" +"tag": "mmlu_continuation_other" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_virology" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_world_religions.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_world_religions.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f707670066d3f2db4554221a12a3983e2d8febf5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/continuation/mmlu_world_religions.yaml @@ -0,0 +1,6 @@ +"dataset_name": "world_religions" +"description": "The following are questions (with answers) about world\ + \ religions.\n\n" +"tag": "mmlu_continuation_humanities" +"include": "_continuation_template_yaml" +"task": "mmlu_continuation_world_religions" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/_default_template_yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/_default_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..e575f400c9d524151827f20c044f1c9141b5af8a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/_default_template_yaml @@ -0,0 +1,17 @@ +dataset_path: cais/mmlu +test_split: test +fewshot_split: dev +fewshot_config: + sampler: first_n +output_type: multiple_choice +doc_to_text: "{{question.strip()}}\nA. {{choices[0]}}\nB. {{choices[1]}}\nC. {{choices[2]}}\nD. {{choices[3]}}\nAnswer:" +doc_to_choice: ["A", "B", "C", "D"] +doc_to_target: answer +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 1.0 +dataset_kwargs: + trust_remote_code: true diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/_mmlu.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/_mmlu.yaml new file mode 100644 index 0000000000000000000000000000000000000000..55099c6f16febd89270ad022abe181bf8ccd708e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/_mmlu.yaml @@ -0,0 +1,11 @@ +group: mmlu +task: + - mmlu_stem + - mmlu_other + - mmlu_social_sciences + - mmlu_humanities +aggregate_metric_list: + - metric: acc + weight_by_size: True +metadata: + version: 2 diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/_mmlu_humanities.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/_mmlu_humanities.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7156e2230f09b461b8e783db323b9ee2d8023192 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/_mmlu_humanities.yaml @@ -0,0 +1,9 @@ +group: mmlu_humanities +group_alias: humanities +task: + - mmlu_humanities_tasks +aggregate_metric_list: + - metric: acc + weight_by_size: True +metadata: + version: 2 diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/_mmlu_other.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/_mmlu_other.yaml new file mode 100644 index 0000000000000000000000000000000000000000..79025cec0c639a37872287ecb5ae5c444dce7478 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/_mmlu_other.yaml @@ -0,0 +1,9 @@ +group: mmlu_other +group_alias: other +task: + - mmlu_other_tasks +aggregate_metric_list: + - metric: acc + weight_by_size: True +metadata: + version: 2 diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/_mmlu_social_sciences.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/_mmlu_social_sciences.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fab1ec2c1416bc644c8723bdb18905dff9c00040 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/_mmlu_social_sciences.yaml @@ -0,0 +1,9 @@ +group: mmlu_social_sciences +group_alias: social sciences +task: + - mmlu_social_sciences_tasks +aggregate_metric_list: + - metric: acc + weight_by_size: True +metadata: + version: 2 diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/_mmlu_stem.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/_mmlu_stem.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cda82eff10a03afe1a05fd8a1368cf3a7c63dcd8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/_mmlu_stem.yaml @@ -0,0 +1,9 @@ +group: mmlu_stem +group_alias: stem +task: + - mmlu_stem_tasks +aggregate_metric_list: + - metric: acc + weight_by_size: True +metadata: + version: 2 diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_abstract_algebra.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_abstract_algebra.yaml new file mode 100644 index 0000000000000000000000000000000000000000..dcde12cb4c5566567482e095c87860f1c6179473 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_abstract_algebra.yaml @@ -0,0 +1,7 @@ +"dataset_name": "abstract_algebra" +"description": "The following are multiple choice questions (with answers) about abstract\ + \ algebra.\n\n" +"tag": "mmlu_stem_tasks" +"include": "_default_template_yaml" +"task": "mmlu_abstract_algebra" +"task_alias": "abstract_algebra" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_anatomy.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_anatomy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5fef7490dd31872f2ed9dcde5c1e817e910b5e39 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_anatomy.yaml @@ -0,0 +1,7 @@ +"dataset_name": "anatomy" +"description": "The following are multiple choice questions (with answers) about anatomy.\n\ + \n" +"tag": "mmlu_stem_tasks" +"include": "_default_template_yaml" +"task": "mmlu_anatomy" +"task_alias": "anatomy" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_astronomy.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_astronomy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..660f07476dfdd115fc0b8d5f04c685b23857cc33 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_astronomy.yaml @@ -0,0 +1,7 @@ +"dataset_name": "astronomy" +"description": "The following are multiple choice questions (with answers) about astronomy.\n\ + \n" +"tag": "mmlu_stem_tasks" +"include": "_default_template_yaml" +"task": "mmlu_astronomy" +"task_alias": "astronomy" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_business_ethics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_business_ethics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a0f1b1c2dcd802effdf589d4f85b412593dfb622 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_business_ethics.yaml @@ -0,0 +1,7 @@ +"dataset_name": "business_ethics" +"description": "The following are multiple choice questions (with answers) about business\ + \ ethics.\n\n" +"tag": "mmlu_other_tasks" +"include": "_default_template_yaml" +"task": "mmlu_business_ethics" +"task_alias": "business_ethics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_clinical_knowledge.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_clinical_knowledge.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1c72b71648df5a690963c95180a76f7ad0a495d4 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_clinical_knowledge.yaml @@ -0,0 +1,7 @@ +"dataset_name": "clinical_knowledge" +"description": "The following are multiple choice questions (with answers) about clinical\ + \ knowledge.\n\n" +"tag": "mmlu_other_tasks" +"include": "_default_template_yaml" +"task": "mmlu_clinical_knowledge" +"task_alias": "clinical_knowledge" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_college_biology.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_college_biology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ddfd713aa0581b36fdad44da4f80e5b500c47154 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_college_biology.yaml @@ -0,0 +1,7 @@ +"dataset_name": "college_biology" +"description": "The following are multiple choice questions (with answers) about college\ + \ biology.\n\n" +"tag": "mmlu_stem_tasks" +"include": "_default_template_yaml" +"task": "mmlu_college_biology" +"task_alias": "college_biology" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_college_chemistry.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_college_chemistry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..388c3a91bed8ffb7645e0e7f23fb0a81117503cc --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_college_chemistry.yaml @@ -0,0 +1,7 @@ +"dataset_name": "college_chemistry" +"description": "The following are multiple choice questions (with answers) about college\ + \ chemistry.\n\n" +"tag": "mmlu_stem_tasks" +"include": "_default_template_yaml" +"task": "mmlu_college_chemistry" +"task_alias": "college_chemistry" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_college_computer_science.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_college_computer_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a3f692423abfbf036fc0347fdfbb2642a6d16c39 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_college_computer_science.yaml @@ -0,0 +1,7 @@ +"dataset_name": "college_computer_science" +"description": "The following are multiple choice questions (with answers) about college\ + \ computer science.\n\n" +"tag": "mmlu_stem_tasks" +"include": "_default_template_yaml" +"task": "mmlu_college_computer_science" +"task_alias": "college_computer_science" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_college_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_college_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..08a9628af175edb897c7f6d88b96d4969fccad29 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_college_mathematics.yaml @@ -0,0 +1,7 @@ +"dataset_name": "college_mathematics" +"description": "The following are multiple choice questions (with answers) about college\ + \ mathematics.\n\n" +"tag": "mmlu_stem_tasks" +"include": "_default_template_yaml" +"task": "mmlu_college_mathematics" +"task_alias": "college_mathematics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_college_medicine.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_college_medicine.yaml new file mode 100644 index 0000000000000000000000000000000000000000..35197a2a1885f7daf30209d4309dd059243260a8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_college_medicine.yaml @@ -0,0 +1,7 @@ +"dataset_name": "college_medicine" +"description": "The following are multiple choice questions (with answers) about college\ + \ medicine.\n\n" +"tag": "mmlu_other_tasks" +"include": "_default_template_yaml" +"task": "mmlu_college_medicine" +"task_alias": "college_medicine" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_college_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_college_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9b5017afac65e0acf080a9df84098a1f21681833 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_college_physics.yaml @@ -0,0 +1,7 @@ +"dataset_name": "college_physics" +"description": "The following are multiple choice questions (with answers) about college\ + \ physics.\n\n" +"tag": "mmlu_stem_tasks" +"include": "_default_template_yaml" +"task": "mmlu_college_physics" +"task_alias": "college_physics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_computer_security.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_computer_security.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8f9b42820f7f7196c6d02922337eaedb7ede5388 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_computer_security.yaml @@ -0,0 +1,7 @@ +"dataset_name": "computer_security" +"description": "The following are multiple choice questions (with answers) about computer\ + \ security.\n\n" +"tag": "mmlu_stem_tasks" +"include": "_default_template_yaml" +"task": "mmlu_computer_security" +"task_alias": "computer_security" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_conceptual_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_conceptual_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..af61a7e1579ac8613b5535e15a57adc629e2d571 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_conceptual_physics.yaml @@ -0,0 +1,7 @@ +"dataset_name": "conceptual_physics" +"description": "The following are multiple choice questions (with answers) about conceptual\ + \ physics.\n\n" +"tag": "mmlu_stem_tasks" +"include": "_default_template_yaml" +"task": "mmlu_conceptual_physics" +"task_alias": "conceptual_physics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_econometrics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_econometrics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..609c20af2acbdd7ef36104dc97db97a40bfca6a5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_econometrics.yaml @@ -0,0 +1,7 @@ +"dataset_name": "econometrics" +"description": "The following are multiple choice questions (with answers) about econometrics.\n\ + \n" +"tag": "mmlu_social_sciences_tasks" +"include": "_default_template_yaml" +"task": "mmlu_econometrics" +"task_alias": "econometrics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_electrical_engineering.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_electrical_engineering.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8fa2137ad05a14e32d5d7e8973d6bc9c18d1a555 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_electrical_engineering.yaml @@ -0,0 +1,7 @@ +"dataset_name": "electrical_engineering" +"description": "The following are multiple choice questions (with answers) about electrical\ + \ engineering.\n\n" +"tag": "mmlu_stem_tasks" +"include": "_default_template_yaml" +"task": "mmlu_electrical_engineering" +"task_alias": "electrical_engineering" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_elementary_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_elementary_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d15f6d5ae88b6edf0bba2298ffaacbd4d103aedd --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_elementary_mathematics.yaml @@ -0,0 +1,7 @@ +"dataset_name": "elementary_mathematics" +"description": "The following are multiple choice questions (with answers) about elementary\ + \ mathematics.\n\n" +"tag": "mmlu_stem_tasks" +"include": "_default_template_yaml" +"task": "mmlu_elementary_mathematics" +"task_alias": "elementary_mathematics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_formal_logic.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_formal_logic.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ee2fc2f61073dc11f6f745eaf8927ab70aadad3f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_formal_logic.yaml @@ -0,0 +1,7 @@ +"dataset_name": "formal_logic" +"description": "The following are multiple choice questions (with answers) about formal\ + \ logic.\n\n" +"tag": "mmlu_humanities_tasks" +"include": "_default_template_yaml" +"task": "mmlu_formal_logic" +"task_alias": "formal_logic" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_global_facts.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_global_facts.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b27ddefd25be9c6695900ce6d290a811b68356df --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_global_facts.yaml @@ -0,0 +1,7 @@ +"dataset_name": "global_facts" +"description": "The following are multiple choice questions (with answers) about global\ + \ facts.\n\n" +"tag": "mmlu_other_tasks" +"include": "_default_template_yaml" +"task": "mmlu_global_facts" +"task_alias": "global_facts" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_biology.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_biology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..22bc47943f0f66614f79cd0de5e7614afa1f08d5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_biology.yaml @@ -0,0 +1,7 @@ +"dataset_name": "high_school_biology" +"description": "The following are multiple choice questions (with answers) about high\ + \ school biology.\n\n" +"tag": "mmlu_stem_tasks" +"include": "_default_template_yaml" +"task": "mmlu_high_school_biology" +"task_alias": "high_school_biology" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_chemistry.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_chemistry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5a25617cbd821411e6f0ca9fac853c76b7adb319 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_chemistry.yaml @@ -0,0 +1,7 @@ +"dataset_name": "high_school_chemistry" +"description": "The following are multiple choice questions (with answers) about high\ + \ school chemistry.\n\n" +"tag": "mmlu_stem_tasks" +"include": "_default_template_yaml" +"task": "mmlu_high_school_chemistry" +"task_alias": "high_school_chemistry" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_computer_science.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_computer_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ad4c7d312c7e8f6517d308e6ffeb635a354b843e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_computer_science.yaml @@ -0,0 +1,7 @@ +"dataset_name": "high_school_computer_science" +"description": "The following are multiple choice questions (with answers) about high\ + \ school computer science.\n\n" +"tag": "mmlu_stem_tasks" +"include": "_default_template_yaml" +"task": "mmlu_high_school_computer_science" +"task_alias": "high_school_computer_science" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_european_history.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_european_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7c51bbdd7aa87b39da8145f8ea45f6fe13d17623 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_european_history.yaml @@ -0,0 +1,7 @@ +"dataset_name": "high_school_european_history" +"description": "The following are multiple choice questions (with answers) about high\ + \ school european history.\n\n" +"tag": "mmlu_humanities_tasks" +"include": "_default_template_yaml" +"task": "mmlu_high_school_european_history" +"task_alias": "high_school_european_history" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_geography.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_geography.yaml new file mode 100644 index 0000000000000000000000000000000000000000..aad87f1ad57a48102d7807a7a3fd75af86755912 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_geography.yaml @@ -0,0 +1,7 @@ +"dataset_name": "high_school_geography" +"description": "The following are multiple choice questions (with answers) about high\ + \ school geography.\n\n" +"tag": "mmlu_social_sciences_tasks" +"include": "_default_template_yaml" +"task": "mmlu_high_school_geography" +"task_alias": "high_school_geography" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_government_and_politics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_government_and_politics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2b93b363d658357619eaf907f8d04af339c22a12 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_government_and_politics.yaml @@ -0,0 +1,7 @@ +"dataset_name": "high_school_government_and_politics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school government and politics.\n\n" +"tag": "mmlu_social_sciences_tasks" +"include": "_default_template_yaml" +"task": "mmlu_high_school_government_and_politics" +"task_alias": "high_school_government_and_politics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_macroeconomics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_macroeconomics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a08c579d1480ab592917d5a6673e63cf09198417 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_macroeconomics.yaml @@ -0,0 +1,7 @@ +"dataset_name": "high_school_macroeconomics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school macroeconomics.\n\n" +"tag": "mmlu_social_sciences_tasks" +"include": "_default_template_yaml" +"task": "mmlu_high_school_macroeconomics" +"task_alias": "high_school_macroeconomics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3f1b6d70e022414b7d370635daa49e3a9a8649c2 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_mathematics.yaml @@ -0,0 +1,7 @@ +"dataset_name": "high_school_mathematics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school mathematics.\n\n" +"tag": "mmlu_stem_tasks" +"include": "_default_template_yaml" +"task": "mmlu_high_school_mathematics" +"task_alias": "high_school_mathematics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_microeconomics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_microeconomics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ac4f65dad5783bf23c50d9a39e912fe797a047e6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_microeconomics.yaml @@ -0,0 +1,7 @@ +"dataset_name": "high_school_microeconomics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school microeconomics.\n\n" +"tag": "mmlu_social_sciences_tasks" +"include": "_default_template_yaml" +"task": "mmlu_high_school_microeconomics" +"task_alias": "high_school_microeconomics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b8c449aa1b5bb48d6899c328c82c44ee3ae3ef24 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_physics.yaml @@ -0,0 +1,7 @@ +"dataset_name": "high_school_physics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school physics.\n\n" +"tag": "mmlu_stem_tasks" +"include": "_default_template_yaml" +"task": "mmlu_high_school_physics" +"task_alias": "high_school_physics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_psychology.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_psychology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..47ba836c71b2be9759bd9fe48dd0cb687ef08636 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_psychology.yaml @@ -0,0 +1,7 @@ +"dataset_name": "high_school_psychology" +"description": "The following are multiple choice questions (with answers) about high\ + \ school psychology.\n\n" +"tag": "mmlu_social_sciences_tasks" +"include": "_default_template_yaml" +"task": "mmlu_high_school_psychology" +"task_alias": "high_school_psychology" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_statistics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_statistics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ef5bdd7cf1577a7ba9f3365643c5e56b21c8a77e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_statistics.yaml @@ -0,0 +1,7 @@ +"dataset_name": "high_school_statistics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school statistics.\n\n" +"tag": "mmlu_stem_tasks" +"include": "_default_template_yaml" +"task": "mmlu_high_school_statistics" +"task_alias": "high_school_statistics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_world_history.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_world_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..af34c8ddbe51abc0f44baff2bf8087b4c749825f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_high_school_world_history.yaml @@ -0,0 +1,7 @@ +"dataset_name": "high_school_world_history" +"description": "The following are multiple choice questions (with answers) about high\ + \ school world history.\n\n" +"tag": "mmlu_humanities_tasks" +"include": "_default_template_yaml" +"task": "mmlu_high_school_world_history" +"task_alias": "high_school_world_history" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_human_aging.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_human_aging.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3ca720be7c7d757c579e4563cb805dc36a6dcc6d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_human_aging.yaml @@ -0,0 +1,7 @@ +"dataset_name": "human_aging" +"description": "The following are multiple choice questions (with answers) about human\ + \ aging.\n\n" +"tag": "mmlu_other_tasks" +"include": "_default_template_yaml" +"task": "mmlu_human_aging" +"task_alias": "human_aging" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_human_sexuality.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_human_sexuality.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2acddd1e4ec1d85a7475202d43f5917abb085684 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_human_sexuality.yaml @@ -0,0 +1,7 @@ +"dataset_name": "human_sexuality" +"description": "The following are multiple choice questions (with answers) about human\ + \ sexuality.\n\n" +"tag": "mmlu_social_sciences_tasks" +"include": "_default_template_yaml" +"task": "mmlu_human_sexuality" +"task_alias": "human_sexuality" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_international_law.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_international_law.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9fb2a162aab92931f8b560ce0e76155fbc9bb675 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_international_law.yaml @@ -0,0 +1,7 @@ +"dataset_name": "international_law" +"description": "The following are multiple choice questions (with answers) about international\ + \ law.\n\n" +"tag": "mmlu_humanities_tasks" +"include": "_default_template_yaml" +"task": "mmlu_international_law" +"task_alias": "international_law" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_jurisprudence.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_jurisprudence.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3c62a911ff5d849651d8c9e09feb34847846d147 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_jurisprudence.yaml @@ -0,0 +1,7 @@ +"dataset_name": "jurisprudence" +"description": "The following are multiple choice questions (with answers) about jurisprudence.\n\ + \n" +"tag": "mmlu_humanities_tasks" +"include": "_default_template_yaml" +"task": "mmlu_jurisprudence" +"task_alias": "jurisprudence" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_logical_fallacies.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_logical_fallacies.yaml new file mode 100644 index 0000000000000000000000000000000000000000..adf8821e9a8ac9d80f1cfb5c6af5b74a63efda27 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_logical_fallacies.yaml @@ -0,0 +1,7 @@ +"dataset_name": "logical_fallacies" +"description": "The following are multiple choice questions (with answers) about logical\ + \ fallacies.\n\n" +"tag": "mmlu_humanities_tasks" +"include": "_default_template_yaml" +"task": "mmlu_logical_fallacies" +"task_alias": "logical_fallacies" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_machine_learning.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_machine_learning.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d846f96084a8cba059348a90d800a86b92ba09c2 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_machine_learning.yaml @@ -0,0 +1,7 @@ +"dataset_name": "machine_learning" +"description": "The following are multiple choice questions (with answers) about machine\ + \ learning.\n\n" +"tag": "mmlu_stem_tasks" +"include": "_default_template_yaml" +"task": "mmlu_machine_learning" +"task_alias": "machine_learning" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_medical_genetics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_medical_genetics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..989fb2c1aea91035421e49c7a11293c48ffec0bc --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_medical_genetics.yaml @@ -0,0 +1,7 @@ +"dataset_name": "medical_genetics" +"description": "The following are multiple choice questions (with answers) about medical\ + \ genetics.\n\n" +"tag": "mmlu_other_tasks" +"include": "_default_template_yaml" +"task": "mmlu_medical_genetics" +"task_alias": "medical_genetics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_miscellaneous.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_miscellaneous.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e7bb68bc2eb0f55b784943bd18296aabe3b86a31 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_miscellaneous.yaml @@ -0,0 +1,7 @@ +"dataset_name": "miscellaneous" +"description": "The following are multiple choice questions (with answers) about miscellaneous.\n\ + \n" +"tag": "mmlu_other_tasks" +"include": "_default_template_yaml" +"task": "mmlu_miscellaneous" +"task_alias": "miscellaneous" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_philosophy.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_philosophy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5331c812ef70cb0123d754835fabde16ce330245 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_philosophy.yaml @@ -0,0 +1,7 @@ +"dataset_name": "philosophy" +"description": "The following are multiple choice questions (with answers) about philosophy.\n\ + \n" +"tag": "mmlu_humanities_tasks" +"include": "_default_template_yaml" +"task": "mmlu_philosophy" +"task_alias": "philosophy" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_prehistory.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_prehistory.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0b4ff970a10b7be9ab08527124ea236227b60428 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_prehistory.yaml @@ -0,0 +1,7 @@ +"dataset_name": "prehistory" +"description": "The following are multiple choice questions (with answers) about prehistory.\n\ + \n" +"tag": "mmlu_humanities_tasks" +"include": "_default_template_yaml" +"task": "mmlu_prehistory" +"task_alias": "prehistory" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_professional_accounting.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_professional_accounting.yaml new file mode 100644 index 0000000000000000000000000000000000000000..27b2ec9b9b70e00616d2560c3a8b1259781e8cfb --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_professional_accounting.yaml @@ -0,0 +1,7 @@ +"dataset_name": "professional_accounting" +"description": "The following are multiple choice questions (with answers) about professional\ + \ accounting.\n\n" +"tag": "mmlu_other_tasks" +"include": "_default_template_yaml" +"task": "mmlu_professional_accounting" +"task_alias": "professional_accounting" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_professional_law.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_professional_law.yaml new file mode 100644 index 0000000000000000000000000000000000000000..07c36f1c38d46a513359d80284ead794dd72b7bd --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_professional_law.yaml @@ -0,0 +1,7 @@ +"dataset_name": "professional_law" +"description": "The following are multiple choice questions (with answers) about professional\ + \ law.\n\n" +"tag": "mmlu_humanities_tasks" +"include": "_default_template_yaml" +"task": "mmlu_professional_law" +"task_alias": "professional_law" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_professional_medicine.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_professional_medicine.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2c5754bf379cfd884ad837243105a49e3e28d386 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/default/mmlu_professional_medicine.yaml @@ -0,0 +1,7 @@ +"dataset_name": "professional_medicine" +"description": "The following are multiple choice questions (with answers) about professional\ + \ medicine.\n\n" +"tag": "mmlu_other_tasks" +"include": "_default_template_yaml" +"task": "mmlu_professional_medicine" +"task_alias": "professional_medicine" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/_cot_prompts.json b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/_cot_prompts.json new file mode 100644 index 0000000000000000000000000000000000000000..c374b19d03391e61021af6640558a6de8853d7b0 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/_cot_prompts.json @@ -0,0 +1 @@ +{"abstract_algebra": "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 step. A cyclic group is a group that is generated by a single element. Hence a subgroup generated by a single element of a group is cyclic and Statement 1 is True. The answer is (C).\n\nQ: The symmetric group $S_n$ has $\nactorial{n}$ elements, hence it is not true that $S_{10}$ has 10 elements.\nFind the characteristic of the ring 2Z.\n(A) 0 (B) 3 (C) 12 (D) 30\nA: Let's think step by step. A characteristic of a ring is R is $n$ if the statement $ka = 0$ for all $a\\in 2Z$ implies that $k$ is a multiple of $n$. Assume that $ka = 0$ for all $a\\in 2Z$ for some $k$. In particular $2k = 0$. Hence $k=0$ and $n=0$. The answer is (A).\n\nQ: Statement 1| Every function from a finite set onto itself must be one to one. Statement 2 | Every subgroup of an abelian group is abelian.\n(A) True, True (B) False, False (C) True, False (D) False, True\nA: Let's think step by step. Statement 1 is true. Let $S$ be a finite set. If $f:S \nightarrow S$ is a onto function, then $|S| = |f(S)|$. If $f$ was not one to one, then for finite domain $S$ the image would have less than $S$ elements, a contradiction.\nStatement 2 is true. Let $G$ be an abelian group and $H$ be a subgroup of $G$. We need to show that $H$ is abelian. Let $a,b \\in H$. Then $a,b \\in G$ and $ab=ba$. Since $G$ is abelian, $ab=ba$. Since $H$ is a subgroup of $G$, $ab \\in H$. Therefore, $ab=ba$ and $H$ is abelian. The answer is (A).\n\nQ: Statement 1 | If aH is an element of a factor group, then |aH| divides |a|. Statement 2 | If H and K are subgroups of G then HK is a subgroup of G.\n(A) True, True (B) False, False (C) True, False (D) False, True\nA: Let's think step by step. Statement 2 is false. Let $H$ be a subgroup of $S_3$ generated by the cycle $(1,2)$ and $K$ be a subgroup of $S_3$ generated by the cycle $(1,3)$. Both $H$ and $K$ have two elements, the generators and the identity. However $HK$ contains cycles (1,2), (1,3) and (2,3,1), but the inverse of (2,3,1) is (2,1,3) and it does not belong to HK, hence HK is not a subgroup. The answer is (B).\n\nQ: Find all c in Z_3 such that Z_3[x]/(x^2 + c) is a field.\n(A) 0 (B) 1 (C) 2 (D) 3\nA: Let's think step by step. Z_3[x]/(x^2 + c) is a field if and only if x^2 + c does not have roots in Z_3. That is x^2 + c != 0 for every x in Z_3. If c = 0, then x^2 + c = x^2 has root 0. If c = 1 then x^2 + c = x^2 + 1 = 0 + 1 for x = 0, 1 + 1 = 2 for x = 1 and 1 + 1 = 2 for 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).\n\n", "anatomy": "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(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 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 nerve. Because all these nerves are purely sensory nerves and do not contain any somatic motor processes. Therefore, the answer should be none of the above, which is (D). The answer is (D).\n\nQ: In Angle's Class II Div 2 occlusion there is\n(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): \u201cThe 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 \u201cpotential\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 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\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 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).\n\n", "astronomy": "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 directions indicating a spherical distribution of comets called the Kuiper belt. (C) The asteroid belt; short period comets have orbital periods similar to asteroids like Vesta and are found in the plane of the solar system just like the asteroid belt. (D) The Oort cloud; short period comets tend to be in the plane of the solar system just like the Oort cloud.\nA: Let's think step by step. Most short-period comets come from the Kuiper belt, and we know because short period coments tend to be in the plane of the solar system, just like the Kuiper belt is. The answer is (A).\n\nQ: You are pushing a truck along a road. Would it be easier to accelerate this truck on Mars? Why? (Assume there is no friction)\n(A) It would be harder since the truck is heavier on Mars. (B) It would be easier since the truck is 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.\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).\n\n", "business_ethics": "The following are multiple choice questions (with answers) about business ethics.\n\nQ: In contrast to _______, _______ aim to reward favourable behaviour by companies. The success of such campaigns have been heightened through the use of ___________, which allow campaigns to facilitate the company in achieving _________ .\n(A) Buycotts, Boycotts, Blockchain technology, Charitable donations (B) Buycotts, Boycotts, Digital technology, Increased Sales (C) Boycotts, Buyalls, Blockchain technology, Charitable donations (D) Boycotts, Buycotts, Digital technology, Increased Sales\nA: Let's think step by step. We refer to Wikipedia articles on business ethics for help. The sentence that best uses the possible options above is \u201cIn 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 and programmes.\n(A) Corporate social responsibility (B) Business ethics management (C) Sustainability (D) Environmental management\nA: Let's think step by step. We refer to Wikipedia articles on business ethics for help. The direct attempt manage ethical issues through specific policies, practices, and programs is business ethics management. The answer is (B).\n\nQ: Three contrasting tactics that CSO's can engage in to meet their aims are ________ which typically involves research and communication, ________, which may involve physically attacking a company's operations or ________, often involving some form of _______.\n(A) Non-violent direct action, Violent direct action, Indirect action, Boycott (B) Indirect action, Instrumental action, Non-violent direct action, Information campaign (C) Indirect action, Violent direct action, Non-violent direct-action Boycott (D) Non-violent direct action, Instrumental action, Indirect action, Information campaign\nA: Let's think step by step. We refer to Wikipedia articles on business ethics for help. The sentence that best uses the possible options above is \u201cThree 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\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\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 \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 \u201cBeyond the business case for engaging the CSR there are a number of moral arguments relating to: negative *externalities*, the *power* that corporations possess and the *mutual independence* of business and society. The answer is (D).\n\n", "clinical_knowledge": "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).\n\n", "college_biology": "The following are multiple choice questions (with answers) about college biology.\n\nQ: Which of the following represents an accurate statement concerning arthropods?\n(A) They possess an exoskeleton composed primarily of peptidoglycan. (B) They possess an open circulatory system with a dorsal heart. (C) They are members of a biologically unsuccessful phylum incapable of exploiting diverse habitats and nutrition sources. (D) They lack paired, jointed appendages.\nA: Let's think step by step. Peptidoglycan is known to comprise the plasma membrane of most bacteria, rather than the exoskeleton of arthropods, which is made of chitin, which rules out (A). The answer (C) is false because arthropods are a highly successful phylum. Likewise, arthropods have paired, jointed appendages, which rules out (D). The only remaining option is (B), as arthropods have an open circulatory system with a dorsal tubular heart. The answer is (B).\n\nQ: In a given population, 1 out of every 400 people has a cancer caused by a completely recessive allele, b. Assuming the population is in Hardy-Weinberg equilibrium, which of the following is the expected proportion of individuals who carry the b allele but are not expected to develop the cancer?\n(A) 1/400 (B) 19/400 (C) 20/400 (D) 38/400\nA: Let's think step by step. According to the Hardy Weinberg Law, $p^2 + 2 p q + q^2 = 1$, and $p + q = 1$ where $p$ is the frequency of the dominant allele, $q$ is the frequency of the recessive allele, and $p^2$, $q^2$, and $2pq$ are the frequencies of dominant homozygous, recessive homozygous, and heterozygous individuals, respectively. \u200bThe frequency of the recessive allele (q) is $\\sqrt{\frac{1}{400}} = 0.05$. We have $p = 1 - q = 0.95$. The frequency of heterozygous individuals is $2pq = 2 \\cdot 0.05 \\cdot 0.95 = 0.095$. The number of heterozygous individuals is equal to the frequency of heterozygous individuals times the size of the population, or $0.095 * 400 = 38$. So we end up with 38/400. The answer is (D).\n\nQ: According to the pressure-flow model of movement of phloem contents, photosynthate movement from source to sink is driven by\n(A) an ATP-dependent pressure-flow pump (B) a water-pressure potential gradient (C) transpiration (D) apoplastic diffusion\nA: Let's think step by step. It is a gradient in water pressure that induces the movement of phloem content, which refers to answer (B). The mechanism of movement does not rely on metabolism, which rules out (A). Transpiration refers to the exhalation of water vapor through plant stomata, and is also not related, which rules out (C). While the apoplastic pathway is one of two main pathways for water transport in plants, it is not central to the pressure flow model, which rules out (D). The answer is (B).\n\nQ: Which of the following contain DNA sequences required for the segregation of chromosomes in mitosis and meiosis?\n(A) Telomeres (B) Centromeres (C) Nucleosomes (D) Spliceosomes\nA: Let's think step by step. The genetic material in Telomeres is not used, which rules out (A). Nucleosomes are the repeating subunit that comprises chromatin packed in a cell nucleus, and do not specifically refer to DNA sequences necessary for segregating chromosomes in cell division, which rules out (C). A spliceosome is a large ribonucleoprotein that removes introns from transcribed pre-mRNA rather than governing chromosome segregation. Centromeres are directly responsible for segregating chromosomes in cell division. The answer is (B).\n\nQ: The presence of homologous structures in two different organisms, such as the humerus in the front limb of a human and a bird, indicates that\n(A) the human and bird are polyphyletic species (B) a human's and bird's evolution is convergent (C) the human and bird belong to a clade (D) the human and bird developed by analogy\nA: Let's think step by step. Polyphyletic species are organisms that are grouped due to having similar characteristics but which do not have a common ancestor. This is not the case for humans and birds, which rules out (A). Convergent evolution refers to the indepdendent development of similar features in different species at different periods, which is also not the case for humans and birds, which rules out (B). Analogy refers to the superficial resemblance of structures that have different origins, which is not the case for the human and bird forearms, which rules out (D). Humans and birds do belong to the same clade - a group of organisms composed of a common ancestor. The answer is (C).\n\n", "college_chemistry": "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\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\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).\n\n", "college_computer_science": "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)*\n2. X(Y + Z)? = XY + XZ\nUsing equation 1 we can rewrite (a* + b)*(c + d)? as:\n3. (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.\nGiven 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\nThe 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)\n7. MUL C (accumulator = (A+B)*C)\n8. SUB X (accumulator = (A+B)*C - (D+E)*F)\n9. 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.\nThus 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).\n\n", "college_mathematics": "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\nA: Let's think step by step. We have \\[ det(A^2) = (det(A))^2 \\geq 0,\\] hence II holds.\nIII is false: as a counterexample take a diagonal matrix with -1 and 1 on the diagonal. Then $A^2$ is the identity matrix. The answer is (B).\n\nQ: Let A be the set of all ordered pairs of integers (m, n) such that 7m + 12n = 22. What is the greatest negative number in the set B = {m + n : (m, n) \\in A}?\n(A) -5 (B) -4 (C) -3 (D) -2\nA: Let's think step by step. We have 12n = 22 - 7m and one of the solutions is $m = -2$, $n = 3$. Then $m + n = 1$, hence we need to look for smaller $m$ in order to make $m + n$ negative. The next solution is $m = -14$ and $n = 10$. For smaller $m$ we have $m + n$ smaller than $-4$. The answer is (B).\n\nQ: A tank initially contains a salt solution of 3 grams of salt dissolved in 100 liters of water. A salt solution containing 0.02 grams of salt per liter of water is sprayed into the tank at a rate of 4 liters per minute. The sprayed solution is continually mixed with the salt solution in the tank, and the mixture flows out of the tank at a rate of 4 liters per minute. If the mixing is instantaneous, how many grams of salt are in the tank after 100 minutes have elapsed?\n(A) 2 (B) 2 - e^-2 (C) 2 + e^-2 (D) 2 + e^-4\nA: Let's think step by step. For all $t \\in \\mathbb{R}$, let $s(t)$ denote the number grams of salt in the tank at the $t$ minute mark. Then $s(0) = 3$.\nWe use $s$ and $s(t)$ interchangeably. We also use $s^{\\prime}$ and $s^{\\prime}(t)$ interchangeably. The solution sprayed into the tank adds $(0.02) 4=2 / 25$ grams of salt per minute. There are always 100 liters of liquid in the tank, containing $s$ grams of salt. So the density of salt in the tank is $s / 100$ grams per liter. The flow of water out of the tank therefore subtracts $4(s / 100)=s / 25$ grams of salt per minute. Then, for all $t \\in \\mathbb{R}$, we have $s^{\\prime}(t)=(2 / 25)-(s / 25)=(2-s) / 25$, and so $[s(t)=2] \\Rightarrow\\left[s^{\\prime}(t)=0\right]$. For all $t \\in \\mathbb{R}$,\n$$\n\frac{d}{d t}[\\ln (s-2)]=\frac{s^{\\prime}}{s-2}=\frac{-1}{25}=\frac{d}{d t}\\left[-\frac{t}{25}\right] .\n$$\nChoose $C \\in \\mathbb{R}$ such that, for all $t \\in \\mathbb{R}, \\ln ((s(t)-2))=-[t / 25]+C$. Let $K:=e^{C}$. Then, for all $t \\in \\mathbb{R}$, we have $(s(t))-2=K e^{-t / 25}$, and so $s(t)=2+K e^{-t / 25}$. Then $3=s(0)=2+K e^{0}=2+K$, so $K=1$. Then $s(100)=2+K e^{-100 / 25}=2+1 \\cdot e^{-4}=2+e^{-4}$. The answer is (D).\n\n", "college_medicine": "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.\nA: Let's think step by step. We refer to Wikipedia articles on medicine for help. Creatine supplementation is a dietary supplement that results in body mass gain. The answer is (B).\n\nQ: Which of the following is not a true statement?\n(A) Muscle glycogen is broken down enzymatically to glucose-1-phosphate (B) Elite endurance runners have a high proportion of Type I fibres in their leg muscles (C) Liver glycogen is important in the maintenance of the blood glucose concentration (D) Insulin promotes glucose uptake by all tissues in the body\nA: Let's think step by step. We refer to Wikipedia articles on medicine for help. Let\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\u00b0C. 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\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).\n\n", "college_physics": "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).\n\n", "computer_security": "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).\n\n", "conceptual_physics": "\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).\n\n", "econometrics": "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:\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\u2019s reason about each of the options.\n(i) is a true statement.\n(ii) is a true statement.\n(iii) is a true statement.\n(iv) is not a true statement. Thus, (i), (ii), and (iii) are true. The answer is (C).\n\nQ: For a stationary autoregressive process, shocks will\n(A) Eventually die away (B) Persist indefinitely (C) Grow exponentially (D) Never occur\nA: Let's think step by step. We refer to Wikipedia articles on econometrics for help. This is a formal logic problem about stationally process. For a stationary autoregressive process, shocks will eventually die away. The answer is (A).\n\n", "electrical_engineering": "\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 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\nQ: 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).\n\n", "elementary_mathematics": "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 will never have two even numbers next to each other.\n(C) The next two numbers in the pattern will be an even number then an odd number.\n(D) If the number pattern started with an odd number then the pattern would have only odd numbers in it.\nA: Let's think step by step. Choice A is incorrect because every even-numbered term in the pattern is odd, and 10 is an even number. Choice B is correct, because adding an odd number (in this case 11) to an odd number produces an even number, and adding an odd number to an even number produces an odd number. Thus the terms in the pattern will alternate between odd and even, so there will never be two even numbers next to each other. Choice C is incorrect because the last term in the example is even (54), and we know that the terms will alternate between even and odd. Choice D is incorrect because the terms in the pattern will alternate between odd and even, regardless of the value of the first term. The answer is (B).\n\nQ: The population of the city where Michelle was born is 145,826. What is the value of the 5 in the number 145,826?\n(A) 5 thousands\n(B) 5 hundreds\n(C) 5 tens\n(D) 5 ones\nA: Let's think step by step. Choice A is correct, because there are three digits following the 5, so\nthe 5 is in the thousands place. Thus 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 \u00d7 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).\n\n", "formal_logic": "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 \u201cBglh\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 \u201cbeing 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 \u201cbeing on Mars\u201d and \u201cD\u201d denote \u201cdriving on Mars\u201d. Then let\u2019s consider each option:\nOption (A): ~Pd \u2192 d is not on Mars.\nOption (B): (\u2200x)(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).\n\n", "global_facts": "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%\nA: Let's think step by step. We refer to Wikipedia articles on global facts for help. According to data published by the World Health Organization, the nummber of 1-year-old children vaccinated in 2017 exceeds 80%. The answer is (A).\n\nQ: As of 2019, about what percentage of Americans agree that the state is run for the benefit of all the people?\n(A) 31% (B) 46% (C) 61% (D) 76%\nA: Let's think step by step. We refer to Wikipedia articles on global facts for help. In 2019, about 46% percentage of Americans agree that the state is run for the benefit of all the people. The answer is (B).\n\nQ: As of 2019, about what percentage of Russians say it is very important to have free media in our country without government/state censorship?\n(A) 38% (B) 53% (C) 68% (D) 83%\nA: Let's think step by step. We refer to Wikipedia articles on global facts for help. As of 2019, about 38% of Russians say it is very important to have free media in our country. The answer is (A).\n\nQ: As of 2015, since 1990 forests have ____ in Europe and have ____ in Africa and the Americas.\n(A) increased, increased (B) increased, decreased (C) decreased, increased (D) decreased, decreased\nA: Let's think step by step. We refer to Wikipedia articles on global facts for help. As of 2015, since 1990 forests have increased in Europe and have decreased in Africa and the Americas. The answer is (B).\n\nQ: Which of the following pairs of statements are both true (as of 2019)?\n(A) People tend to be optimistic about their own future and the future of their nation or the world. (B) People tend to be optimistic about their own future but pessimistic about the future of their nation or the world. (C) People tend to be pessimistic about their own future but optimistic about the future of their nation or the world. (D) People tend to be pessimistic about their own future and the future of their nation or the world.\nA: Let's think step by step. We refer to Wikipedia articles on global facts for help. As of 2019, most people tend to be optimistic about their own future but pessimistic about the future of their nation or the world. The answer is (B).\n\n", "high_school_biology": "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\u2013rough ER (B) Ribosome\u2013Golgi apparatus\u2013rough ER\u2013secretory vesicle\u2013plasma 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 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\u2019s 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\u200bHomologous 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).\n\n", "high_school_chemistry": "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 for water is H2O, which means that we need to determine which of these options, when combined with H2O, forms an acid. SO2, or Sulfur dioxide, when combined with H2O, makes H2SO4, or sulfuric acid. The answer is (C).\n\nQ: Which of the following is expected to be a polar molecule?\n(A) PCl4F (B) BF3 (C) CO2 (D) Si(CH3)4\nA: Let's think step by step. A polar molecule is one that has a slightly positive charge on one end of the molecule and a slightly negative charge on the other end. Boron trifluoride (BF3) has Boron as the center atom and three fluorine atoms attached to it; it is trigonal planar and symmetric, so it is nonpolar. Carbon Dioxide (CO2) has Carbon as the central atom with double bonds to two Oxygen atoms - this is also symmetrical and therefore nonpolar. The same is the case for tetramethyl silane (SI(CH3)4), which is a Silicon atom surrounded by four methyl groups. The structure of PCL4F is that Phosphorus is the central atom, attached to four chlorines and one fluorine atom. This is asymmetrical, and therefore has a net dipole and is expected to be a polar molecule. The answer is (A).\n\nQ: From the solubility rules, which of the following is true?\n(A) All chlorides, bromides, and iodides are soluble (B) All sulfates are soluble (C) All hydroxides are soluble (D) All ammonium-containing compounds are soluble\nA: Let's think step by step. The chlorides, bromides, and iodides of lead, silver, and mercury are not soluble in water. This rules out (A). The sulfates of lead, barium, and calcium are not soluble in water, which rules out (B). The hydroxides of any metal besides sodium, potassium, ammonium, calcium, and barium are insoluble. This rules out (C). Typically ammonium ions indicate a soluble ionic substance. The answer is (D).\n\nQ: A new compound is synthesized and found to be a monoprotic acid with a molar mass of 248 g/mol. When 0.0050 mol of this acid are dissolved in 0.500 L of water, the pH is measured as 3.89. What is the pKa of this acid?\n(A) 3.89 (B) 7.78 (C) 5.78 (D) 2.33\nA: Let's think step by step. Recall that $[A] = [H^{+}]$. Here, this is equal to $$10^{-3.89}$. Then we have $K_{a} = $\nrac{[H^{+}][A^{-}]}{[HA]} = \nrac{10^{-3.89} \\cdot 10^{-3.89}}{10^{-2}}. The resulting exponent is $-3.89 + (-3.89) - (-2) = 5.78$, therefore $K_a = 10^{-5.78}$. The $pK_a$ is the negative log of $K_a$, which is equal to $5.78$. The answer is (C).\n\nQ: A solution contains 2.00 mole of acetic acid, CH3COOH, and 1.00 mole of calcium acetate, Ca(CH3COO)2. The solution is able to resist the addition of a small amount of strong acid or strong base with only minor changes in the pH of the solution. Larger quantities of strong acid or strong base can cause a significant change in pH. How many moles of nitric acid, HNO3, may be added before the pH begins to change significantly?\n(A) 0.500 mole (B) 1.00 mole (C) 2.00 mole (D) 3.00 mole\nA: Let's think step by step. We would like to compute the buffer capacity of this solution. First we write the equation for the ionization of the weak acid, in this case of acetic acid. $CH_{3}COOH (aq) + H_{2}O \nightarrow H_{3}O^{+} + CH3COO^{-}$. The conjugate base is therefore 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).\n\n", "high_school_computer_science": "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 her position. (C) A refrigerator orders milk from an online delivery service when the milk in the refrigerator is almost gone. (D) A runner uses a watch with optical sensors to monitor his heart rate.\nA: Let's think step by step. The term Internet of Things (IoT) refers to common devices which are connected to the internet, enabling new functionality. Choice A is incorrect because it does not describe an internet connected device. In choice B, the watch is only described as having GPS functionality but no internet connectivity. Choice C describes a common device (a refrigerator) which has internet connectivity enabling new functionality (online ordering). Choice D does not mention internet connectivity for the watch, only optical sensors. The answer is (C).\n\nQ: Many Web browsers allow users to open anonymous windows. During a browsing session in an anonymous window, the browser does not record a browsing history or a list of downloaded files. When the anonymous window is exited, cookies created during the session are deleted. Which of the following statements about browsing sessions in an anonymous window is true?\n(A) The activities of a user browsing in an anonymous window will not be visible to people who monitor the user's network, such as the system administrator. (B) Items placed in a Web store's shopping cart for future purchase during the anonymous browsing session will not be saved on the user's computer. (C) A user will not be able to log in to e-mail or social media accounts during the anonymous browsing session. (D) A user browsing in an anonymous window will be protected from viruses 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 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 DISPLAY (\"Hotel\")\n } ELSE {\n IF (Y > 0){\n DISPLAY (\"November\")\n } ELSE {\n DISPLAY (\"Yankee\")\n }\n }\n}\nWhat is displayed as a result of running the program?\n(A) Foxtrot (B) Hotel (C) November (D) Yankee\nA: Let's think step by step. Because X has the value 5, the first conditional IF (X < 0) is false, so we move to the first ELSE clause. Because X is 5 and Y is 10, the second conditional IF (X > Y) is false, so we move to the following ELSE clause. Since Y is 10, the conditional IF (Y > 0) is true, so the command DISPLAY (\"November\") is executed. The answer is (C).\n\nQ: What is the output of \"abc\"[::-1] in Python 3?\n(A) Error (B) abc (C) cba (D) c\nA: Let's think step by step. We know that the slicing operator [::-1] takes all of the elements in the string in reverse order, so we reverse the order of the string \"abc\", resulting in \"cba\". The answer is (C).\n\nQ: A list of numbers has n elements, indexed from 1 to n. The following algorithm is intended to display the number of elements in the list that have a value greater than 100. The algorithm uses the variables count and position. Steps 3 and 4 are missing.\n Step 1: Set count to 0 and position to 1.\n Step 2: If the value of the element at index position is greater than 100, increase the value of count by 1.\n Step 3: (missing step)\n Step 4: (missing step)\n Step 5: Display the value of count.\nWhich of the following could be used to replace steps 3 and 4 so that the algorithm works as intended?\n(A) Step 3: Increase the value of position by 1.\n Step 4: Repeat steps 2 and 3 until the value of count is greater than 100.\n(B) Step 3: Increase the value of position by 1.\n Step 4: Repeat steps 2 and 3 until the value of position is greater than n.\n(C) Step 3: Repeat step 2 until the value of count is greater than 100.\n Step 4: Increase the value of position by 1.\n(D) Step 3: Repeat step 2 until the value of position is greater than n.\n Step 4: Increase the value of count by 1.\nA: Let's think step by step. Choice A is incorrect, because its Step 4 has an incorrect termination condition, stopping when count is greater than 100. We need to stop after inspecting all elements in the list. Choice B is correct because it correctly increments both count and position, and correctly repeats these steps and terminates when all elements in the list have been inspected. Choice C is incorrect because it incorrectly increments the variable count until 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).\n\n", "high_school_european_history": "The following are multiple choice questions (with answers) about high school european history.\n\nQ: This question refers to the following information.\nAlbeit 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 their convocations, yet nevertheless, for corroboration and confirmation thereof, and for increase of virtue in Christ's religion within this realm of England, and to repress and extirpate all errors, heresies, and other enormities and abuses heretofore used in the same, be it enacted, by authority of this present Parliament, that the king, our sovereign lord, his heirs and successors, kings of this realm, shall be taken, accepted, and reputed the only supreme head in earth of the Church of England, called Anglicans Ecclesia; and shall have and enjoy, annexed and united to the imperial crown of this realm, as well the title and style thereof, as all honors, dignities, preeminences, jurisdictions, privileges, authorities, immunities, profits, and commodities to the said dignity of the supreme head of the same Church belonging and appertaining; and that our said sovereign lord, his heirs and successors, kings of this realm, shall have full power and authority from time to time to visit, repress, redress, record, order, correct, restrain, and amend all such errors, heresies, abuses, offenses, contempts, and enormities, whatsoever they be, which by any manner of spiritual authority or jurisdiction ought or may lawfully be reformed, repressed, ordered, redressed, corrected, restrained, or amended, most to the pleasure of Almighty God, the increase of virtue in Christ's religion, and for the conservation of the peace, unity, and tranquility of this realm; any usage, foreign land, foreign authority, prescription, or any other thing or things to the contrary hereof notwithstanding.\nEnglish Parliament, Act of Supremacy, 1534\nFrom the passage, one may infer that the English Parliament wished to argue that the Act of Supremacy would\n(A) give the English king a new position of authority (B) give the position of head of the Church of England to Henry VIII alone and exclude his heirs (C) establish Calvinism as the one true theology in England (D) end various forms of corruption plaguing the Church in England\nA: Let's think step by step. We refer to Wikipedia articles on european history for help. The Act of Supremacy states that it grants authority to the king \"to repress and extirpate all errors, heresies, and other enormities and abuses\", referring to 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\u00e9gime 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 fulfil the duties imposed upon them by Him who, by entrusting them with power, has charged them to watch over the maintenance of justice, and the rights of all, to avoid the paths of error, and tread firmly in the way of truth. Placed beyond the passions which agitate society, it is in days of trial chiefly that they are called upon to despoil realities of their false appearances, and to show themselves as they are, fathers invested with the authority belonging by right to the heads of families, to prove that, in days of mourning, they know how to be just, wise, and therefore strong, and that they will not abandon the people whom they ought to govern to be the sport of factions, to error and its consequences, which must involve the loss of society.\nUnion between the monarchs is the basis of the policy which must now be followed to save society from total ruin. . . .\nLet them not confound concessions made to parties with the good they ought to do for their people, in modifying, according to their recognized needs, such branches of the administration as require it.\nLet them be just, but strong; beneficent, but strict.\nLet 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\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 to the point where it needed to be checked by other powers within each nation or domination of civilians would occur. (D) The rising and falling economic cycle of the newly emerging capitalist economy could lead to civilian unrest that must be suppressed.\nA: Let's think step by step. We refer to Wikipedia articles on european history for help. The fears of revolution in early 19th century Europe expressed by Klemens von Metternich, a conservative Austrian statesman, were a direct result of the age of Enlightenment, a period of European history where the absolute power of the monarchy was challenged with ideas of individual liberty and nationalism, leading to the French revolution and its effects all over Europe. The answer is (A).\n\nQ: This question refers to the following information.\nThe excerpts below are from the Navigation Acts of 1651.\n[A]fter the first day of December, one thousand six hundred fifty and one, and from thence forwards, no goods or commodities whatsoever of the growth, production or manufacture of Asia, Africa or America, or of any part thereof; or of any islands belonging to them, or which are described or laid down in the usual maps or cards of those places, as well of the English plantations as others, shall be imported or brought into this Commonwealth of England, or into Ireland, or any other lands, islands, plantations, or territories to this Commonwealth belonging, or in their possession, in any other ship or ships, vessel or vessels whatsoever, but only in such as do truly and without fraud belong only to the people of this Commonwealth, or the plantations thereof, as the proprietors or right owners thereof; and whereof the master and mariners are also of the people of this Commonwealth, under the penalty of the forfeiture and loss of all the goods that shall be imported contrary to this act, , , ,\n[N]o goods or commodities of the growth, production, or manufacture of Europe, or of any part thereof, shall after the first day of December, one thousand six hundred fifty and one, be imported or brought into this Commonwealth of England, or any other lands or territories to this Commonwealth belonging, or in their possession, in any ship or ships, vessel or vessels whatsoever, but in such as do truly and without fraud belong only to the people of this Commonwealth, and in no other, except only such foreign ships and vessels as do truly and properly belong to the people of that country or place, of which the said goods are the growth, production or manufacture.\nWhich of the following best describes the outcome of the Navigation Acts of 1651?\n(A) They served as a catalyst for the growth of English shipping and overseas trade, but did little to limit the prospects of the Dutch in the seventeenth century. (B) They brought about almost immediate hardships for the Dutch economy as their dominance of overseas trade quickly ended. (C) They were rescinded during the restoration of the Stuarts as they sought normal diplomatic relations with the Dutch so not as to need Parliament's financial support for war. (D) They led to nearly a century of recurrent war between England and the Netherlands, which would not end until after American independence.\nA: Let's think step by step. We refer to Wikipedia articles on european history for help. The Navigation Acts of 1651 helped English shipping by restricting the ability of ships from other European countries, especially the Dutch, to transport goods from colonies in Asia and Africa into England. The answer is (A).\n\nQ: This question refers to the following information.\nIn Russia there was nothing going on well, and [Souvarine] was in despair over the news he had received. His old companions 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 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 \u00e9tienne, 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! Yes, that is your idea, all of you French workmen; you want to unearth a treasure in order to devour it alone afterwards in some lazy, selfish corner. You may cry 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\u00e9mile 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 by step. We refer to Wikipedia articles on european history for help. The modern Communist movement aims to establish a classless society based on communal ownership and distribution of property and means of production, thereby especially benefiting the working classes. The answer is (C).\n\nQ: This question refers to the following information.\nThe following excerpt is from a pamphlet.\nYou will do me the justice to remember, that I have always strenuously supported the Right of every man to his own opinion, however different that opinion might be to mine. He who denies to another this right, makes a slave of himself to his present opinion, because he precludes himself the right of changing it.\nThe most formidable weapon against errors of every kind is Reason. I have never used any other, and I trust I never shall.\nThe circumstance that has now taken place in France of the total abolition of the whole national order of priesthood, and of everything appertaining to compulsive systems of religion, and compulsive articles of faith, has not only precipitated my intention, but rendered a work of this kind exceedingly necessary, lest in the general wreck of superstition, of false systems of government, and false theology, we lose sight of morality, of humanity, and of the theology that is true.\nI believe in one God, and no more; and I hope for happiness beyond this life.\nI believe in the equality of man; and I believe that religious duties consist in doing justice, loving mercy, and endeavoring to make our fellow-creatures happy.\nI do not believe in the creed professed by the Jewish church, by the Roman church, by the Greek church, by the Turkish church, by the Protestant church, nor by any church that I know of. My own mind is my own church.\nAll national institutions of churches, 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\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).\n\n", "high_school_geography": "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).\nA: 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.\nA: 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).\n\n", "high_school_government_and_politics": "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\nA: 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).\n\n", "high_school_macroeconomics": "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).\n\n", "high_school_mathematics": "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. Factoring $729=3^6$ and combining the roots $\\frac{1}{2}\\frac{1}{3}\\frac{1}{2}=\\frac{1}{12}$, we get that $\\sqrt{\\sqrt[3]{\\sqrt{\\frac{1}{729}}}}=\\left(\\frac{1}{3^6}\\right)^{\\frac{1}{12}}=\\frac{1}{3^{\\frac{1}{2}}}=\\frac{3}{\\sqrt{3}}$ The answer is (D).\n\nQ: Five thousand dollars compounded annually at an $x\\%$ interest rate takes six years to double. At the same interest rate, how many years will it take $\\$300$ to grow to $\\$9600$?\n(A) 12 (B) 1 (C) 30 (D) 5\nA: Let's think step by step. To go from $\\$300$ to $\\$9600$, the value must go up by a factor 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(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 directly as the square of $y$, and $y$ varies directly as the cube of $z$. If $x$ equals $-16$ when $z$ equals 2, what is the value of $x$ when $z$ equals $\\frac{1}{2}$?\n(A) -1 (B) 16 (C) -\\frac{1}{256} (D) \\frac{1}{16}\nA: Let's think step by step. We know that $x \\propto y^2$ and $y \\propto z^3$, so $x = k z^6$ for some constant $k$. Plugging in for $x=-16$ and $z=2$, the constant value is $k=\\frac{x}{z^6}=\\frac{-16}{64}=-\\frac{1}{4}$. So, when $z=\\frac{1}{2}$, the value of $x$ is $x=kz^6=-\\frac{1}{4}\\frac{1}{2^6}=-\\frac{1}{256}$. The answer is (C).\n\nQ: Joe was in charge of lights for a dance. The red light blinks every two seconds, the yellow light every three seconds, and the blue light every five seconds. If we include the very beginning and very end of the dance, how many times during a seven minute dance will all the lights come on at the same time? (Assume that all three lights blink simultaneously at the very beginning of the 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).\n\n", "high_school_microeconomics": "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\nA: 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\nA: 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).\n\n", "high_school_physics": "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 \u00b5C, 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\u2019s $k q_1 q_2 / r$, where $k$ is Coulomb\u2019s 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 \u00d7 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\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).\n\n", "high_school_psychology": "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\nA: 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\nA: 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).\n\n", "high_school_statistics": "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.\nA: Let's think step by step. In this experiment, the response variable is what is measured. For each tree, what is measured is whether or not it suffered more than 50 percent damage due to the frost. The answer is (D).\n\nQ: Suppose X and Y are random variables with E(X) = 37, var(X) = 5, E(Y) = 62, and var(Y) = 12. What are the expected value and variance of the random variable X + Y?\n(A) E(X + Y) = 99, var(X + Y) = 8.5 (B) E(X + Y) = 99, var(X + Y) = 13 (C) E(X + Y) = 99, var(X + Y) = 17 (D) There is insufficient information to answer this question.\nA: Let's think step by step. While means of sums of random variables add (regardless of whether the variables are independent) in order to determine the variance of a sum of random variables, we need to know not just their individual variances but the covariance of the two variables, which is not given in this problem. The answer is (D).\n\nQ: Which of the following sets has the smallest standard deviation? Which has the largest?\nI: {1,2,3}\nII: {-10,10}\nIII: {100}\n(A) I, II (B) II, III (C) III, I (D) III, II\nA: Let's think step by step. The variance of distribution I is the expected squared deviation from its mean (which is 2), so the variance is 2/3 . The variance of distribution II is 10^2 (because both elements are 10 away from the mean of zero). The variance of distribution III is 0, since it has a single entry. So distribution III has the smallest standard deviation and distribution II has the largest. The answer is (D).\n\nQ: Which of the following is a correct statement about correlation?\n(A) If the slope of the regression line is exactly 1, then the correlation is exactly 1. (B) If the correlation is 0, then the slope of the regression line is undefined. (C) Switching which variable is called x and which is called y changes the sign of the correlation. (D) The correlation r is equal to the slope of the regression line when z-scores for the y-variable are plotted against z-scores for the x-variable.\nA: Let's think step by step. Statement A is false because the slope of the regression line being exactly 1 can occur even when the two variables are not perfectly correlated. Statement B is false because uncorrelated variables regression lines can have slope zero. Statement C is false because correlation is symmetric in the two random variables. The answer is (D).\n\n", "high_school_us_history": "The following are multiple choice questions (with answers) about high school us history.\n\nQ: This question refers to the following information.\nI come not to urge personal claims, nor to seek individual benefits; I appear as the advocate of those who cannot plead their own cause; I come as the friend of those who are deserted, oppressed, and desolate. In the Providence of God, I am the voice of the maniac whose piercing cries from the dreary dungeons of your jails penetrate not your Halls of Legislation. I am the Hope of the poor crazed beings who pine in the cells, and stalls, and cages, and waste rooms of your poor-houses. I am the Revelation of hundreds of wailing, suffering creatures, hidden in your private dwellings, and in pens and cabins\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\u2014Dorothea 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\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.\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.\" \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\nA: Let's think step by step. We refer to Wikipedia articles on us history for help. Anti-Federalists do not believe centralized government power, and suspect Washington's military response to Whiskey Rebellion. Bacon's Rebellion and Pontiac's Rebellion happen before the Revolution and they can be ruled out. The answer is (C).\n\n", "high_school_world_history": "The following are multiple choice questions (with answers) about high school world history.\n\nQ: This question refers to the following information.\n\"At least one of the [world's] societies would have to somehow enormously increase its productivity [in order to achieve global hegemony]. That quantum jump would have to be made before the various scientific, technological, agricultural, and industrial revolutions on which our post-quantum-leap world rests. It could only be accomplished by exploiting the ecosystems, mineral resources, and human assets of whole continents outside the lands of the society making the jump. Western Europe did just that by means of its brutality and guns and, more important, by geographical and ecological luck.\"\nCopyright \u00a9 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.\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\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\"\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\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.\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\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).\n\n", "human_aging": "The following are multiple choice questions (with answers) about human aging.\n\nQ: All other things being equal, which of the following persons is more likely to show osteoporosis?\n(A) An older Hispanic American woman (B) An older African American woman (C) An older Asian American woman (D) An older Native American woman\nA: Let's think step by step. We refer to Wikipedia articles on human aging for help. Although osteoporosis can occur at any age, the risk is higher for older people. It is most common in Asian and non-Hispanic white women. The answer is (C).\n\nQ: The finding that adults tend to remember events from their adolescence better than from other periods in their lives is referred to as the\n(A) Adolescence advantage (B) Reminiscence bump (C) Memorial memorial (D) Quadratic retrieval spike\nA: Let's think step by step. We refer to Wikipedia articles on human aging for help. Reminiscence bump is a phenomenon that older adults tend to recollect events during their young ages. People usually have a period of childhood amnesia from birth to around age 5, and a reminiscence bump between 10 and 30. The answer is (B).\n\nQ: Which element in tobacco smoke is responsible for cancers?\n(A) Nicotine (B) Tar (C) Carbon monoxide (D) Smoke particles\nA: Let's think step by step. We refer to Wikipedia articles on human aging for help. The benzene, acrylamide and acrylonitrile in tar interact with the lungs and cause DNA mutations in cells of the lungs, and lead to cancer. The answer is (B).\n\nQ: When older adults move to a new state after retirement, which of the following is the more likely destination?\n(A) Texas (B) California (C) Hawaii (D) Vermont\nA: Let's think step by step. We refer to Wikipedia articles on human aging for help. Texas does not have state tax, and has low cost of living compared with the other three options. The answer is (A).\n\n", "human_sexuality": "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\nA: 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\nQ: 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.\nA: Let's think step by step. We refer to Wikipedia articles on human sexuality for help. The refractory period is the time when a person is not able to be erect or is not interested in sex. The answer is (A).\n\nQ: Morning sickness is typically a problem:\n(A) during the first trimester (B) during the second trimester (C) during the third trimester (D) all through the pregnancy\nA: Let's think step by step. We refer to Wikipedia articles on human sexuality for help. Morning sickness usually begins by nine weeks after conception, corresponding to the first trimester. The answer is (A).\n\n", "international_law": "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\nA: 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\nQ: 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).\n\n", "jurisprudence": "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\nA: 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.'\nA: Let's think step by step. We refer to Wikipedia articles on jurisprudence for help. The POP would opt for the 'maximin' strategy, opt for the 'difference principle', and reject the 'system of natural liberty', but the POP would not choose equality above liberty, since the POP assume both equal and free citizens. The answer is (A).\n\n", "logical_fallacies": "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\nQ: 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\nA: 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).\n\n", "machine_learning": "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 the diversity of images in the training dataset. It is important that natural images are kept natural after being augmented. Vertical flips of images are not natural, so (B) is false. Posterization makes the image look like a poster and and dithering increases color depth. None of these two preserve the natural property. The only natural data augmentation technique is (A). The answer is (A).\n\nQ: Traditionally, when we have a real-valued input attribute during decision-tree 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 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 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).\n\n", "management": "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\nA: 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).\n\n", "marketing": "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).\n\n", "medical_genetics": "The following are multiple choice questions (with answers) about medical genetics.\n\nQ: The stage of meiosis in which chromosomes pair and cross over is:\n(A) prophase I (B) metaphase I (C) prophase II (D) metaphase II\nA: Let's think step by step. We refer to Wikipedia articles on medical genetics for help. Prophase I is the stage of meiosis where homologous chromosomes pair with each other and exchange genetic material. The answer is (A).\n\nQ: DNA ligase is\n(A) an enzyme that joins fragments in normal DNA replication (B) an enzyme of bacterial origin which cuts DNA at defined base sequences (C) an enzyme that facilitates transcription of specific genes (D) an enzyme which limits the level to which a particular nutrient reaches\nA: Let's think step by step. We refer to Wikipedia articles on medical genetics for help. DNA ligase is a type of enzyme (EC 6.5.1.1) responsible for joining DNA strands together by catalyzing a phosphodiester bond. The answer is (A).\n\nQ: Which of the following conditions does not show multifactorial inheritance?\n(A) Pyloric stenosis (B) Schizophrenia (C) Spina bifida (neural tube defects) (D) Marfan syndrome\nA: Let's think step by step. We refer to Wikipedia articles on medical genetics for help. Multifactorial inheritance is when more than a single factor is responsible for causing a given trait or health problem. Genes cannot be the only factor. Marfan syndrome, on the other hand, requires only one abnormal copy of the of the Marfan gene, from one parent, to inherit the trait. The answer is (D).\n\nQ: A gene showing codominance\n(A) has both alleles independently expressed in the heterozygote (B) has one allele dominant to the other (C) has alleles tightly linked on the same chromosome (D) has alleles expressed at the same time in development\nA: Let's think step by step. We refer to Wikipedia articles on medical genetics for help. Codominance, as it relates to genetics, refers to a type of genetic inheritance where the phenotype of both the parents is easily observed in the offspring. A heterozygote is an individual having two different alleles of a gene. The answer is (A).\n\nQ: Large triplet repeat expansions can be detected by:\n(A) polymerase chain reaction. (B) single strand conformational polymorphism analysis. (C) Southern blotting. (D) Western blotting.\nA: Let's think step by step. We refer to Wikipedia articles on medical genetics for help. A Southern blot is a method in molecular biology for detecting specific DNA sequences in a sample. Large triplet repeat expansions are usually detected with this method. The answer is (C).\n\n", "miscellaneous": "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'\nA: 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).\n\n", "moral_disputes": "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\nA: 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).\n\n", "moral_scenarios": "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\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 really loved my newborn baby boy. Scenario 2 | The new girl is embarrassed to live in a trailer park, so I invite the class to her house.\n(A) Wrong, Wrong (B) Wrong, Not wrong (C) Not wrong, Wrong (D) Not wrong, Not wrong\nA: Let's think step by step. We refer to Wikipedia articles on moral scenarios for help. Loving someone is not wrong. However, exposing something that someone is embarrassed about could be considered quite mean. The answer is (C).\n\n", "nutrition": "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).\n\n", "philosophy": "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).\n\n", "prehistory": "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.\nA: 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.\nA: 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.\nA: 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).\n\n", "professional_accounting": "The following are multiple choice questions (with answers) about professional accounting.\n\nQ: An auditor traces the serial numbers on equipment to a nonissuer\u2019s subledger. Which of the following management assertions is supported by this test?\n(A) Valuation and allocation (B) Completeness (C) Rights and obligations (D) Presentation and disclosure\nA: Let's think step by step. We refer to Wikipedia articles on accounting for help. The completeness assertion is tested by tracing supporting documents to the record entries. The answer is (B).\n\nQ: One hundred years ago, your great-great-grandmother invested $100 at 5% yearly interest. What is the investment worth today?\n(A) $13,000 (B) $600 (C) $15,000 (D) $28,000\nA: Let's think step by step. We refer to Wikipedia articles on accounting for help. A $100 investment at 5% yearly interest is worth 100*(1.05)^100=13150 after 100 years, which is around $13,000. The answer is (A).\n\nQ: On January 1, year 1, Alpha Co. signed an annual maintenance agreement with a software provider for $15,000 and the maintenance period begins on March 1, year 1. Alpha also incurred $5,000 of costs on January 1, year 1, related to software modification requests that will increase the functionality of the software. Alpha depreciates and amortizes its computer and software assets over five years using the straight-line method. What amount is the total expense that Alpha should recognize related to the maintenance agreement and the software modifications for the year ended December 31, year 1?\n(A) $5,000 (B) $13,500 (C) $16,000 (D) $20,000\nA: Let's think step by step. We refer to Wikipedia articles on accounting for help. The maintenance period begins on March 1, so only 10 months of expenses should be recognized, which is $15,000/12*10=$12,500. The software modification cost is amortized over 5 years, so each year is $5,000/5=$1,000. So the total expense is $12,500+$1,000=$13,500. The answer is (B).\n\nQ: Krete is an unmarried taxpayer with income exclusively from wages. By December 31, year 1, Krete's employer has withheld $16,000 in federal income taxes and Krete has made no estimated tax payments. On April 15, year 2, Krete timely filed for an extension request to file her individual tax return, and paid $300 of additional taxes. Krete's year 1 tax liability was $16,500 when she timely filed her return on April 30, year 2, and paid the remaining tax liability balance. What amount would be subject to the penalty for underpayment of estimated taxes?\n(A) $0 (B) $500 (C) $1,650 (D) $16,500\nA: Let's think step by step. We refer to Wikipedia articles on accounting for help. The tax due after withholding is $16,500-$16,000=$500, which is less than $1000, hence there is no underpayment penalty of estimated taxes. The answer is (A).\n\nQ: Box a nongovernmental not-for-profit organization had the following transactions during the year: Proceeds from sale of investments $80000 Purchase of property plant and equipment $10000 Proceeds from long-term debt $100000 Loss on sale of investment $5000 What amount should be reported as net cash provided by financing activities in Box's statement of cash flows?\n(A) $70,000 (B) $75,000 (C) $80,000 (D) 100000\nA: Let's think step by step. We refer to Wikipedia articles on accounting for help. Among the four transactions, only Proceeds from long-term debt belongs to the financing activities section of cashflow, hence the amount reported should be $100000. The answer is (D).\n\n", "professional_law": "The following are multiple choice questions (with answers) about professional law.\n\nQ: A son owed a creditor $5,000. The son's father contacted the creditor and told him that he wanted to pay the son's debt. The father signed a document that stated the father would pay the son's debt at a rate of $500 a month for 10 months. The creditor made no written or oral commitment to forbear to sue the son to collect the $5,000 debt, and the father made no oral or written request for any such forbearance. For the next five months, the father made and the creditor accepted the $500 monthly payments as agreed. During that period, the creditor, in fact, did forbear to take any legal action against the son. However, the father then informed the creditor that he would make no further payments on the debt. Which of the following is the most persuasive argument that the father is liable to the creditor under the terms of their agreement?\n(A) The father's promise and the creditor's reliance thereon, if proved, gave rise to a valid claim by the creditor against the father based on the doctrine of promissory estoppel. (B) Because it was foreseeable that the father's promise would induce the creditor to forbear taking any action against the son, such forbearance was, as a matter of law, a bargained-for consideration for the father's promise. (C) The father's five payments to the creditor totaling $2,500 manifested a serious intent on the father's part to be contractually bound, and such manifestation is generally recognized as an effective substitute for consideration. (D) By assuming the antecedent debt obligation that the son owed to the creditor, the father became a surety whose promise to the creditor was enforceable, since it was in writing and supported by adequate consideration. \nA: Let's think step by step. We refer to Wikipedia articles on law for help. The doctrine of promissory estoppel stops a person from going back on a promise in contract law, hence option (A) should be the most persuasive argument. The answer is (A).\n\nQ: A state has recently enacted a statute prohibiting the disposal of any nuclear wastes within the state. This law does not contravene or conflict with any federal statutes. A man operates a company in the state that is engaged in the disposal of nuclear wastes. Subsequent to the passage of the state statute, the man, not yet aware of the new law, entered into contracts with many out-of-state firms to dispose of their nuclear wastes in the state. On account of this new law, however, the man will be unable to perform these contracts. Assume that the man has standing to challenge this state law. Which of the following presents his strongest constitutional grounds to challenge the state law prohibiting the disposal of nuclear wastes within the state?\n(A) The commerce clause. (B) The equal protection clause of the Fourteenth Amendment. (C) The privileges and immunities clause of Article IV, Section 2. (D) The contract clause.\nA: Let's think step by step. We refer to Wikipedia articles on law for help. The commerce clause states that Congress shall have the power to regulate commerce with foreign Nations, and among the several States, and with the Indian Tribes. The statute affects inter-state commerce which puts it into question. Hence the man's strongest argument should be the commerce clause. The answer is (A).\n\nQ: On October 1, 1980, a developer, owner of several hundred acres in a rural county, drafted a general development plan for the area. The duly recorded plan imposed elaborate limitations and restrictions upon the land in the plan, which was to be developed as a residential district. The restrictions were to extend to all persons acquiring any of the lots and to their heirs, assigns, and lessees. It was further provided that all subsequent owners would be charged with due notice of the restrictions. Among those restrictions in the general plan were the following:(22) A franchise right is created in a strip of land 10 feet in width along the rear of each lot for the use of public utility companies with right of ingress and egress. (23) No house or structure of any kind shall be built on the aforementioned strip of land running through the said blocks. In 2000, a retiree purchased one of the lots, built a house, and erected a fence in the rear of his property within the restricted area. In 2004, a teacher purchased a lot adjacent to the retiree's property and built a new house. Two years later, a librarian purchased the lot that adjoined the teacher's property. The three deeds to those properties each contained references to the deed book where the general plan was recorded. In 2008, the librarian began the construction of a seven-foot post-and-rail fence along the line dividing his lot with the teacher's, and along the center of the area subject to the franchise right. Although the teacher objected to its construction, the fence was completed. If the teacher seeks a mandatory injunction to compel removal of the librarian's fence, the court will most likely\n(A) grant relief, because the fence was in violation of the easement restriction. (B) grant relief, because the encroachment of the fence violated the restriction in the original plan. (C) deny relief, because the teacher failed to enforce the restriction against the retiree. (D) deny relief, because the fence would not be construed as \"a structure\" within the terms of the restriction. \nA: Let's think step by step. We refer to Wikipedia articles on law for help. The restrictions in the original plan say no house or structure of any kind shall be built on the aforementioned strip of land running through the said blocks. Hence the court will most likely grant relief because the fence violated the restriction in the original plan. The answer is (B).\n\nQ: Judge took judicial notice of some facts at the beginning of the trial. Which of the following is not an appropriate kind of fact for judicial notice?\n(A) Indisputable facts. (B) Facts that have been asserted by individual political organizations. (C) Facts recognized to be true by common knowledge. (D) Facts capable of scientific verification.\nA: Let's think step by step. We refer to Wikipedia articles on law for help. Among the options, facts that have been asserted by individual political organizations is not an appropriate kind of fact for judicial notice. The answer is (B).\n\nQ: A state legislature has recently enacted a statute making it a misdemeanor to curse or revile or use obscene or opprobrious language toward or in reference to a police officer perfonning his duties. A student at a state university organized a demonstration on campus to protest the war. The rally was attended by a group of 50 students who shouted anti-war messages at cars passing by. To show his contempt for the United States, the student sewed the American flag to the rear of his jeans. When a police officer saw the flag sown on the student's jeans, he approached and told him to remove the flag or he would be placed under arrest. The student became angered and shouted at the police officer, \"Listen, you bastard, I'll wear this rag anywhere I please. \" The student was subsequently placed under arrest and charged with violating the state statute. The student subsequently brings suit in state court challenging the constitutionality of the statute. The strongest constitutional argument for the student is that\n(A) the statute is void for vagueness under the Fourteenth Amendment's due process clause. (B) the statute is invalid because it violates the petitioner's freedom of speech under the First Amendment. (C) the statute is an abridgment of freedom of speech under the First Amendment because less restrictive means are available for achieving the same purpose. (D) the statute is overbroad and consequently invalid under the First and Fourteenth Amendments.\nA: Let's think step by step. We refer to Wikipedia articles on law for help. The Fourteenth Amendment further supports the First Amendment by establishing a due process clause. Hence the strongest argument should be the statute is overbroad and consequently invalid under the First and Fourteenth Amendments. The answer is (D).\n\n", "professional_medicine": "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\u00a04-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\u00a03-week\u00a0history 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 articles on medicine for help. The deep sulcus on the left, a posterior ILA on the right, with a negative spring test suggests a right-on-right sacral torsion. All other options have a deep sulcus on the right. The answer is (D).\n\nQ: A 44-year-old man comes to the office because of a 3-day history of sore throat, 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\u00b0C (99.4\u00b0F), 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 virus (C) Mycoplasma pneumonia (D) Rhinovirus\nA: Let's think step by step. We refer to Wikipedia articles on medicine for help. The symptoms, especially the headache, suggest that the most likely cause is Rhinovirus. Epstein-Barr virus will cause swollen lymph nodes but there is no palpable cervical adenopathy. Lungs are clear to auscultation suggests it's not Mycoplasma pneumonia. The answer is (D).\n\nQ: A previously healthy 32-year-old woman comes to the physician 8 months after her husband was killed in a car crash. Since that time, she has had a decreased appetite and difficulty falling asleep. She states that she is often sad and cries frequently. She has been rechecking the door lock five times before leaving her house and has to count exactly five pieces of toilet paper before she uses it. She says that she has always been a perfectionist but these urges and rituals are new. Pharmacotherapy should be targeted to which of the following neurotransmitters?\n(A) Dopamine (B) Glutamate (C) Norepinephrine (D) Serotonin\nA: Let's think step by step. We refer to Wikipedia articles on medicine for help. The patient feels sad and among the options, only Dopamine and Serotonin can help increase positive emotions. Serotonin also affects digestion and metabolism, which can help the patient's decreased appetite and sleep difficulty. The answer is (D).\n\nQ: A 42-year-old man comes to the office for preoperative evaluation prior to undergoing adrenalectomy scheduled in 2 weeks. One month ago, he received care in the emergency department for pain over his right flank following a motor vehicle collision. At that time, blood pressure was 160/100 mm Hg and CT scan of the abdomen showed an incidental 10-cm left adrenal mass. Results of laboratory studies, including complete blood count, serum electrolyte concentrations, and liver function tests, were within the reference ranges. The patient otherwise had been healthy and had never been told that he had elevated blood pressure. He takes no medications. 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\u00b0C (97.9\u00b0F), 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\nA: 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).\n\n", "professional_psychology": "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 (B) have low correlations with each other and low correlations with the criterion (C) are highly intercorrelated with each other and moderately correlated with the criterion (D) have low correlations with the criterion bur are moderately correlated with each other\nA: Let's think step by step. We refer to Wikipedia articles on psychology for help. The basis of multiple regression is to assess the relationship between one continuous variable and a set of independent variables. So the predictors should be uncorrelated with each other but are moderately correlated with the criterion. The answer is (A).\n\nQ: There are three ways to measure the Central Tendency: the Mean, the Median and the Mode. From your knowledge about them, what is the mode?\n(A) less sensitive to extreme scores than the mean (B) more useful for skewed distributions (C) sensitive to extreme values and highly skewed distributions (D) the most frequently occurring number\nA: Let's think 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).\n\n", "public_relations": "The following are multiple choice questions (with answers) about public relations.\n\nQ: Earth Hour was a campaign launched by which organization?\n(A) Greenpeace (B) The UN (C) Oxfam (D) World Wildlife Fund\nA: Let's think step by step. We refer to Wikipedia articles on public relations for help. Earth Hour is a worldwide movement oragnized launched by the World Wildlife Fund. The answer is (D).\n\nQ: In issues management, what is the most proactive approach to addressing negative or misleading information posted online about your organization?\n(A) Buy domain names that could be used by opposition groups. (B) Post anonymous comments on blogs to combat this information. (C) Prepare a news release that discredits the inaccurate information. (D) Make policy changes to address complaints highlighted on these sites.\nA: Let's think step by step. We refer to Wikipedia articles on public relations for help. In issues management, the most proactive approach to addressing negative or misleading information posted online is to make policy changes to address complaints highlighted on those sites. The answer is (D).\n\nQ: At which stage in the planning process would a situation analysis be carried out?\n(A) Defining the program (B) Planning the program (C) Taking action and implementing ideas (D) Evaluation of the program\nA: Let's think step by step. We refer to Wikipedia articles on public relations for help. Situation analyses are typically carried out during the planning process stage of defining the program. The answer is (A).\n\nQ: Which of these statements is true of the Vatican in 2010 at the time of the accusations of child abuse cover-ups?\n(A) There was a coordinated media response. (B) Consistent messages were communicated. (C) Criticisms were taken as attacks on the Catholic Church. (D) The credibility of the Vatican was upheld.\nA: Let's think step by step. We refer to Wikipedia articles on public relations for help. In 2010 when there were accusations of child abuse cover-ups, the Vatican took those criticisms as attacks on the Catholic Church. The answer is (C).\n\nQ: What should a public relations media practitioner do if she does not know the answer to a reporter's question?\n(A) Give the reporter other information she is certain is correct. (B) Say that the information is 'off the record' and will be disseminated later. (C) Say 'I don't know' and promise to provide the information later. (D) Say 'no comment,' rather than appear uninformed.\nA: Let's think step by step. We refer to Wikipedia articles on public relations for help. If a public relations media practitioner does not know the answer to a reporter's question, they should say 'I don't know' and offer to provide the information later. The answer is (C).\n\n", "security_studies": "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 of rival states. Terrorist networks are extended patronage clubs maintained and paid for by their donor states and are conceptualised as being like state actors, to be dealt with using military force. (B) Globalization has enabled the internationalization of terrorist activities by opening up their operational space, although coordination is still managed from a geographical base. This suggests that terrorist groups are nationally structured which means that terrorism cannot be considered in terms of a war to be defeated militarily without having serious implications on the indigenous population. (C) Terrorism can be viewed as a problem to be resolved by military means (war on terrorism), by normal police techniques (terrorism as crime), or as a medical problem with underlying causes and symptoms (terrorism as disease). (D) Terrorism is viewed as a criminal problem. The criminalization of terrorism has two important implications. Firstly, it suggests that terrorism can be eradicated - terrorists can be caught and brought to trial by normal judicial proceedings thereby removing the threat from society - and secondly, it suggests that preventative crime techniques are applicable to prevent its development.\nA: Let's think step by step. We refer to Wikipedia articles on security studies for help. (A) is wrong because it is not competition between larger nations that causes terrorism. \n(B) is wrong because globalization is not the cause of terrorism.\n(C) is correct because the US undertook the war on terrorism. \n(D) is wrong because preventative crime techniques will likely not end terrorism. The answer is (C).\n\nQ: Which of the following is the best lens through which to investigate the role of child soldiers?\n(A) Child soldiers are victims of combat that need re-education and rehabilitation. (B) Children and their mothers are not active subjects in warfare and are best considered as subjects in the private sphere. (C) Children are most often innocent bystanders in war and are best used as signifiers of peace. (D) Children have political subjecthood that is missed when they are considered as passive victims of warfare.\nA: Let's think step by step. We refer to Wikipedia articles on security studies for help. Child soliders as a political topic can be missed when they are considered passive victims of warfare. The answer is (D).\n\nQ: How can we best describe the relationship between the state-centric approach and the concept of human security?\n(A) There are such wide divisions within the human security framework regarding the nature of threats and referent objects that no widely applicable comparisons between state-centric approaches and human security can be drawn. (B) By adopting the framework of human security, the limitations of the realist state-centric approach become evident. Whilst human security defines the referent object as the person or population, state-centric approaches prioritise the security of the state, de-prioritizing the pursuit of human security. (C) The state-centric approach to security is a faction of human security, usually defined within the broad school of human security. By being state-centric this approach prioritises the individual as the referent object in security studies. (D) Both the state-centric and human-centric approaches to security are mutually exclusive and offer a sufficient analytic framework with which to understand the international security system. It is therefore the role of security analysts to determine which of these substantial concepts is correct, and which should be discarded.\nA: Let's think step by step. We refer to Wikipedia articles on security studies for help. Human security focuses on a person or population whereas state-centric approaches focus on the state while deprioritizing human security. The answer is (B).\n\nQ: In order to become securitized, a threat must be presented in which of these ways?\n(A) As an existential threat that requires immediate and extraordinary action, posing a threat to the survival of the state or to societal security. (B) As requiring immediate and extraordinary action by the state, threatening the survival of a referent object and therefore warranting the use of measures not normally employed in the political realm. (C) As an urgent threat to the survival of the referent object, so serious that it legitimises the employment of extraordinary action in response. (D) As an urgent threat to the survival of the audience that requires extraordinary or emergency measures.\nA: Let's think step by step. We refer to Wikipedia articles on security studies for help. To be securitized, a threat must be an urgent threat to the survival of the referent object. The answer is (C).\n\nQ: What distinguishes coercive diplomacy from military force?\n(A) Compellence is another term for coercive diplomacy, but covering a narrower set of criteria; compellence covers those threats aimed at initiating adversary action. A threat to coerce a state to give up part of its territory would count as coercive diplomacy, as long as that threat proactively initiates action before reactive diplomacy is taken. (B) Coercive diplomacy constitutes the threats of limited force to induce adversary's incentive to comply with the coercer's demands. It is an influence strategy that is intended to obtain compliance: the use of force to defeat an opponent first does not count. It leaves an element of choice with the target to comply, or to continue. (C) Military force, or the threat of military force, utilises fear to achieve strategic objectives. Coercive diplomacy is differentiated from this approach, because it does not use fear as a tool for coercing an adversary. (D) Coercive diplomacy is employed to use force but to limit its effects on the international community. Coercive diplomacy is an aggressive strategy that is intended to obtain compliance through defeat. It does not leave an element of choice with the target, the target either being forced to comply or engage in conflict. It seeks to control by imposing compliance by removing any opportunity 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).\n\n", "sociology": "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\nA: 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).\n\n", "us_foreign_policy": "The following are multiple choice questions (with answers) about us foreign policy.\n\nQ: How did Donald Trump attack globalization in the 2016 campaign?\n(A) Globalization had made men like him too rich (B) Globalization only benefited certain American states, such as New York (C) Liberal elites had encouraged globalization, while 'ordinary Americans' lost jobs because of it (D) Globalization encouraged damaging trade wars\nA: Let's think step by step. We refer to Wikipedia articles on us foreign policy for help. Trump attacked globalization because he believed ordinary Americans lost jobs due to it, and so he wanted to blame liberals who had encouraged it. The answer is (C).\n\nQ: How did NSC-68 change U.S. strategy?\n(A) It globalized containment. (B) It militarized containment. (C) It called for the development of the hydrogen bomb. (D) All of the above\nA: Let's think step by step. We refer to Wikipedia articles on us foreign policy for help. NSC-68 outlined a variety of courses of action, including globalization of containment, militarization of contaiment, and the development of the hydrogen bomb. The answer is (D).\n\nQ: How do Defensive Realism and Offensive Realism differ in their explanation of state behaviour?\n(A) Defensive realists place greater emphasis on the role of international institutions (B) Defensive realists place less emphasis on geographical factors (C) Offensive realists give more priority to the national interest than Defensive realists. (D) Defensive realists believe states are security maximizers, while Offensive realists believe states to be power maximizers\nA: Let's think step by step. We refer to Wikipedia articles on us foreign policy for help. While defensive realism advocates that states are security maximizers, offensive realists think of states as power maximizers. The answer is (D).\n\nQ: The realm of policy decisions concerned primarily with relations between the United States and the rest of the world is known as\n(A) terrorism policy. (B) economic policy. (C) foreign policy. (D) international policy.\nA: Let's think step by step. We refer to Wikipedia articles on us foreign policy for help. The topic of policy decisions concerns with relations between the US and the rest of the world is known as foreign policy. The answer is (C).\n\nQ: How did the 2008 financial crisis affect America's international reputation?\n(A) It damaged support for the US model of political economy and capitalism (B) It created anger at the United States for exaggerating the crisis (C) It increased support for American global leadership under President Obama (D) It reduced global use of the US dollar\nA: Let's think step by step. We refer to Wikipedia articles on us foreign policy for help. The 2008 financial crisis damanged the international reputation of the American model of political economy and capitalism. The answer is (A).\n\n", "virology": "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).\n\n", "world_religions": "The following are multiple choice questions (with answers) about world religions.\n\nQ: How can the Upanishads be characterized?\n(A) Ritual texts (B) Philosophical texts (C) Hymns (D) Origin stories\nA: Let's think step by step. We refer to Wikipedia articles on world religions for help. The Upanishads are the most recent part of Vedas (the oldest scriptures in Hinduism) and supplied the basis of later Hindu philosophy. So they are philosophical texts. The answer is (B).\n\nQ: What is the Second Gem in Buddhism?\n(A) The Dharma (B) The Sangha (C) The Buddha (D) The Bodhisattva\nA: Let's think step by step. We refer to Wikipedia articles on world religions for help. The Second Gem in Buddhism is The Dharma. The answer is (A).\n\nQ: Which Japanese government promoted a kind of national cult based on the emperor and his associations with kami?\n(A) Honen (B) Tanaka (C) Tokugawa (D) Meiji\nA: Let's think step by step. We refer to Wikipedia articles on world religions for help. The promotion of a national cult based on the emperor and his associations with Kami happened during the reign of Emperor Meiji (1852-1912). The answer is (D).\n\nQ: In which dynasty was the \"Mandate of Heaven\" developed to legitimatize the new rulers?\n(A) Shang (B) Zhou (C) Han (D) Xia\nA: Let's think step by step. We refer to Wikipedia articles on world religions for help. The \"Mandate of Heaven\" was developed as an ancient Chinese philosophical concept during the Zhou Dynasty (1046-256 BCE). The answer is (B).\n\nQ: What is the sign of the covenant for Jewish males?\n(A) The rainbow (B) Circumcision (C) A son (D) Bar mitzvah\nA: Let's think step by step. We refer to Wikipedia articles on world religions for help. In Judaism, the most distinctive sign of the covenant is circumcision (brit milah). The answer is (B).\n\n"} diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/_mmlu.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/_mmlu.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c6c1c6a19dc7638adfa630ce80b58294f5b351b8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/_mmlu.yaml @@ -0,0 +1,34 @@ +group: mmlu_flan_cot_fewshot +group_alias: mmlu (flan style, fewshot cot) +task: + - group: stem + task: + - mmlu_flan_cot_fewshot_stem + aggregate_metric_list: + - metric: acc + weight_by_size: True + - group: other + task: + - mmlu_flan_cot_fewshot_other + aggregate_metric_list: + - metric: acc + weight_by_size: True + - group: social sciences + task: + - mmlu_flan_cot_fewshot_social_sciences + aggregate_metric_list: + - metric: acc + weight_by_size: True + - group: humanities + task: + - mmlu_flan_cot_fewshot_humanities + aggregate_metric_list: + - metric: acc + weight_by_size: True +aggregate_metric_list: + - aggregation: mean + metric: exact_match + weight_by_size: True + filter_list: get-answer +metadata: + version: 2 diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/_mmlu_flan_cot_fewshot_template_yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/_mmlu_flan_cot_fewshot_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..cfbf222e5ba5892a5e26113d382ea86ec1300ce0 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/_mmlu_flan_cot_fewshot_template_yaml @@ -0,0 +1,30 @@ +dataset_path: hails/mmlu_no_train # a copy of `cais/mmlu` with no auxiliary_train split +validation_split: validation +test_split: test +fewshot_config: + sampler: first_n +output_type: generate_until +doc_to_text: "{% if choices is defined%}Q: {{question.strip()}}\n(A) {{choices[0]}} (B) {{choices[1]}} (C) {{choices[2]}} (D) {{choices[3]}}\nA: Let's think step by step.{% else %}Q: {{ question.strip() }}\nA:{% endif %}" +doc_to_target: "{{['(A)', '(B)', '(C)', '(D)'][answer] if answer is defined else target}}" +filter_list: + - name: "get-answer" + filter: + - function: "regex" + regex_pattern: "(?<=answer is )(.*)(?=.)" + - function: "take_first" +generation_kwargs: + until: + - "" + do_sample: false + temperature: 0.0 +num_fewshot: 4 +metric_list: + - metric: exact_match + aggregation: mean + higher_is_better: true + ignore_case: true + ignore_punctuation: true +metadata: + version: 2.0 +dataset_kwargs: + trust_remote_code: true diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_abstract_algebra.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_abstract_algebra.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6235d5c0997558a123258cba3dfdb4b844a2fb60 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_abstract_algebra.yaml @@ -0,0 +1,59 @@ +dataset_name: abstract_algebra +description: The following are multiple choice questions (with answers) about abstract + algebra. +fewshot_config: + sampler: first_n + samples: + - question: 'Statement 1 | Every element of a group generates a cyclic subgroup of + the group. Statement 2 | The symmetric group S_10 has 10 elements. + + (A) True, True (B) False, False (C) True, False (D) False, True' + target: Let's think step by step. A cyclic group is a group that is generated + by a single element. Hence a subgroup generated by a single element of a group + is cyclic and Statement 1 is True. The answer is (C). + - question: 'The symmetric group $S_n$ has $ + + actorial{n}$ elements, hence it is not true that $S_{10}$ has 10 elements. + + Find the characteristic of the ring 2Z. + + (A) 0 (B) 3 (C) 12 (D) 30' + target: Let's think step by step. A characteristic of a ring is R is $n$ if the + statement $ka = 0$ for all $a\in 2Z$ implies that $k$ is a multiple of $n$. + Assume that $ka = 0$ for all $a\in 2Z$ for some $k$. In particular $2k = 0$. + Hence $k=0$ and $n=0$. The answer is (A). + - question: 'Statement 1| Every function from a finite set onto itself must be one + to one. Statement 2 | Every subgroup of an abelian group is abelian. + + (A) True, True (B) False, False (C) True, False (D) False, True' + target: "Let's think step by step. Statement 1 is true. Let $S$ be a finite set.\ + \ If $f:S \nightarrow S$ is a onto function, then $|S| = |f(S)|$. If $f$ was\ + \ not one to one, then for finite domain $S$ the image would have less than\ + \ $S$ elements, a contradiction.\nStatement 2 is true. Let $G$ be an abelian\ + \ group and $H$ be a subgroup of $G$. We need to show that $H$ is abelian. Let\ + \ $a,b \\in H$. Then $a,b \\in G$ and $ab=ba$. Since $G$ is abelian, $ab=ba$.\ + \ Since $H$ is a subgroup of $G$, $ab \\in H$. Therefore, $ab=ba$ and $H$ is\ + \ abelian. The answer is (A)." + - question: 'Statement 1 | If aH is an element of a factor group, then |aH| divides + |a|. Statement 2 | If H and K are subgroups of G then HK is a subgroup of G. + + (A) True, True (B) False, False (C) True, False (D) False, True' + target: Let's think step by step. Statement 2 is false. Let $H$ be a subgroup + of $S_3$ generated by the cycle $(1,2)$ and $K$ be a subgroup of $S_3$ generated + by the cycle $(1,3)$. Both $H$ and $K$ have two elements, the generators and + the identity. However $HK$ contains cycles (1,2), (1,3) and (2,3,1), but the + inverse of (2,3,1) is (2,1,3) and it does not belong to HK, hence HK is not + a subgroup. The answer is (B). + - question: 'Find all c in Z_3 such that Z_3[x]/(x^2 + c) is a field. + + (A) 0 (B) 1 (C) 2 (D) 3' + target: 'Let''s think step by step. Z_3[x]/(x^2 + c) is a field if and only if + x^2 + c does not have roots in Z_3. That is x^2 + c != 0 for every x in Z_3. + If c = 0, then x^2 + c = x^2 has root 0. If c = 1 then x^2 + c = x^2 + 1 = 0 + + 1 for x = 0, 1 + 1 = 2 for x = 1 and 1 + 1 = 2 for 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).' +tag: mmlu_flan_cot_fewshot_stem +include: _mmlu_flan_cot_fewshot_template_yaml +task: mmlu_flan_cot_fewshot_abstract_algebra diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_anatomy.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_anatomy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e6521bdebf5efa653c7bc798fa7c4ecb985e4166 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_anatomy.yaml @@ -0,0 +1,75 @@ +dataset_name: anatomy +description: The following are multiple choice questions (with answers) about anatomy. +fewshot_config: + sampler: first_n + samples: + - question: 'Which of the following is the body cavity that contains the pituitary + gland? + + (A) Abdominal (B) Cranial (C) Pleural (D) Spinal' + target: "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)." + - question: 'Which of these branches of the trigeminal nerve contain somatic motor + processes? + + (A) The supraorbital nerve (B) The infraorbital nerve (C) The mental nerve (D) + None of the above' + target: "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 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 nerve. Because all these nerves are purely sensory nerves\ + \ and do not contain any somatic motor processes. Therefore, the answer should\ + \ be none of the above, which is (D). The answer is (D)." + - question: 'In Angle''s Class II Div 2 occlusion there is + + (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.' + target: "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)." + - question: 'The pleura + + (A) have no sensory innervation. (B) are separated by a 2 mm space. (C) extend + into the neck. (D) are composed of respiratory epithelium.' + target: "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):\ + \ \u201CThe 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 \u201Cpotential\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)." + - question: 'What is the embryological origin of the hyoid bone? + + (A) The first pharyngeal arch (B) The first and second pharyngeal arches (C) + The second pharyngeal arch (D) The second and third pharyngeal arches' + target: "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\u2014\ + this information is covered in the last option (D). Therefore, we conclude that\ + \ (D) must be the correct answer. The answer is (D).\n\n" +tag: mmlu_flan_cot_fewshot_stem +include: _mmlu_flan_cot_fewshot_template_yaml +task: mmlu_flan_cot_fewshot_anatomy diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_astronomy.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_astronomy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b89974588e8c83db8aedc80b607e25212a676592 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_astronomy.yaml @@ -0,0 +1,70 @@ +dataset_name: astronomy +description: The following are multiple choice questions (with answers) about astronomy. +fewshot_config: + sampler: first_n + samples: + - question: 'Where do most short-period comets come from and how do we know? + + (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 directions indicating a spherical distribution of comets + called the Kuiper belt. (C) The asteroid belt; short period comets have orbital + periods similar to asteroids like Vesta and are found in the plane of the solar + system just like the asteroid belt. (D) The Oort cloud; short period comets + tend to be in the plane of the solar system just like the Oort cloud.' + target: Let's think step by step. Most short-period comets come from the Kuiper + belt, and we know because short period coments tend to be in the plane of the + solar system, just like the Kuiper belt is. The answer is (A). + - question: 'You are pushing a truck along a road. Would it be easier to accelerate + this truck on Mars? Why? (Assume there is no friction) + + (A) It would be harder since the truck is heavier on Mars. (B) It would be easier + since the truck is 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.' + target: "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\u2019\ + t matter that it\u2019s on Mars, and (D) is the correct answer. The answer is\ + \ (D)." + - question: '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? + + (A) 10000 times more (B) 100 times more (C) 1000 times more (D) 10 times more' + target: 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). + - question: 'Why isn''t there a planet where the asteroid belt is located? + + (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.' + target: "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)." + - question: 'Why is Mars red? + + (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.' + target: '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).' +tag: mmlu_flan_cot_fewshot_stem +include: _mmlu_flan_cot_fewshot_template_yaml +task: mmlu_flan_cot_fewshot_astronomy diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_business_ethics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_business_ethics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6c83d4bc8c06531a9375f52d8688f8b4a7cdb974 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_business_ethics.yaml @@ -0,0 +1,75 @@ +dataset_name: business_ethics +description: The following are multiple choice questions (with answers) about business + ethics. +fewshot_config: + sampler: first_n + samples: + - question: '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 + _________ . + + (A) Buycotts, Boycotts, Blockchain technology, Charitable donations (B) Buycotts, + Boycotts, Digital technology, Increased Sales (C) Boycotts, Buyalls, Blockchain + technology, Charitable donations (D) Boycotts, Buycotts, Digital technology, + Increased Sales' + target: "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\ + \ \u201CIn 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)." + - question: '_______ is the direct attempt to formally or informally manage ethical + issues or problems, through specific policies, practices and programmes. + + (A) Corporate social responsibility (B) Business ethics management (C) Sustainability + (D) Environmental management' + target: Let's think step by step. We refer to Wikipedia articles on business ethics + for help. The direct attempt manage ethical issues through specific policies, + practices, and programs is business ethics management. The answer is (B). + - question: 'Three contrasting tactics that CSO''s can engage in to meet their aims + are ________ which typically involves research and communication, ________, + which may involve physically attacking a company''s operations or ________, + often involving some form of _______. + + (A) Non-violent direct action, Violent direct action, Indirect action, Boycott + (B) Indirect action, Instrumental action, Non-violent direct action, Information + campaign (C) Indirect action, Violent direct action, Non-violent direct-action + Boycott (D) Non-violent direct action, Instrumental action, Indirect action, + Information campaign' + target: "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 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)." + - question: '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 _________. + + (A) Outside, Limited, Independently (B) Inside, Limited, Intermittently (C) + Outside, Unlimited, Intermittently (D) Inside, Unlimited, Independently' + target: "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)." + - question: '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. + + (A) Externalities, Power, Independence (B) Publicity, Insubstantial resources, + Mutual dependence (C) Publicity, Power, Independence (D) Externalities, Power, + Mutual dependence' + target: "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\ + \ \u201CBeyond the business case for engaging the CSR there are a number of\ + \ moral arguments relating to: negative *externalities*, the *power* that corporations\ + \ possess and the *mutual independence* of business and society. The answer\ + \ is (D).\n\n" +tag: mmlu_flan_cot_fewshot_other +include: _mmlu_flan_cot_fewshot_template_yaml +task: mmlu_flan_cot_fewshot_business_ethics diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_clinical_knowledge.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_clinical_knowledge.yaml new file mode 100644 index 0000000000000000000000000000000000000000..008d2f870ad82e3ebee126511418c67c787c7b3b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_clinical_knowledge.yaml @@ -0,0 +1,48 @@ +dataset_name: clinical_knowledge +description: The following are multiple choice questions (with answers) about clinical + knowledge. +fewshot_config: + sampler: first_n + samples: + - question: '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.' + target: 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). + - question: '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.' + target: 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). + - question: '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' + target: 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). + - question: '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' + target: 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). + - question: 'The energy for all forms of muscle contraction is provided by: + + (A) ATP. (B) ADP. (C) phosphocreatine. (D) oxidative phosphorylation.' + target: '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).' +tag: mmlu_flan_cot_fewshot_other +include: _mmlu_flan_cot_fewshot_template_yaml +task: mmlu_flan_cot_fewshot_clinical_knowledge diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_biology.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_biology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..28f7f989b86b28cccc5e9128268e8ea6bc80e662 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_biology.yaml @@ -0,0 +1,75 @@ +dataset_name: college_biology +description: The following are multiple choice questions (with answers) about college + biology. +fewshot_config: + sampler: first_n + samples: + - question: 'Which of the following represents an accurate statement concerning arthropods? + + (A) They possess an exoskeleton composed primarily of peptidoglycan. (B) They + possess an open circulatory system with a dorsal heart. (C) They are members + of a biologically unsuccessful phylum incapable of exploiting diverse habitats + and nutrition sources. (D) They lack paired, jointed appendages.' + target: Let's think step by step. Peptidoglycan is known to comprise the plasma + membrane of most bacteria, rather than the exoskeleton of arthropods, which + is made of chitin, which rules out (A). The answer (C) is false because arthropods + are a highly successful phylum. Likewise, arthropods have paired, jointed appendages, + which rules out (D). The only remaining option is (B), as arthropods have an + open circulatory system with a dorsal tubular heart. The answer is (B). + - question: 'In a given population, 1 out of every 400 people has a cancer caused by + a completely recessive allele, b. Assuming the population is in Hardy-Weinberg + equilibrium, which of the following is the expected proportion of individuals + who carry the b allele but are not expected to develop the cancer? + + (A) 1/400 (B) 19/400 (C) 20/400 (D) 38/400' + target: "Let's think step by step. According to the Hardy Weinberg Law, $p^2 +\ + \ 2 p q + q^2 = 1$, and $p + q = 1$ where $p$ is the frequency of the dominant\ + \ allele, $q$ is the frequency of the recessive allele, and $p^2$, $q^2$, and\ + \ $2pq$ are the frequencies of dominant homozygous, recessive homozygous, and\ + \ heterozygous individuals, respectively. \u200BThe frequency of the recessive\ + \ allele (q) is $\\sqrt{\frac{1}{400}} = 0.05$. We have $p = 1 - q = 0.95$.\ + \ The frequency of heterozygous individuals is $2pq = 2 \\cdot 0.05 \\cdot 0.95\ + \ = 0.095$. The number of heterozygous individuals is equal to the frequency\ + \ of heterozygous individuals times the size of the population, or $0.095 *\ + \ 400 = 38$. So we end up with 38/400. The answer is (D)." + - question: 'According to the pressure-flow model of movement of phloem contents, photosynthate + movement from source to sink is driven by + + (A) an ATP-dependent pressure-flow pump (B) a water-pressure potential gradient + (C) transpiration (D) apoplastic diffusion' + target: Let's think step by step. It is a gradient in water pressure that induces + the movement of phloem content, which refers to answer (B). The mechanism of + movement does not rely on metabolism, which rules out (A). Transpiration refers + to the exhalation of water vapor through plant stomata, and is also not related, + which rules out (C). While the apoplastic pathway is one of two main pathways + for water transport in plants, it is not central to the pressure flow model, + which rules out (D). The answer is (B). + - question: 'Which of the following contain DNA sequences required for the segregation + of chromosomes in mitosis and meiosis? + + (A) Telomeres (B) Centromeres (C) Nucleosomes (D) Spliceosomes' + target: Let's think step by step. The genetic material in Telomeres is not used, + which rules out (A). Nucleosomes are the repeating subunit that comprises chromatin + packed in a cell nucleus, and do not specifically refer to DNA sequences necessary + for segregating chromosomes in cell division, which rules out (C). A spliceosome + is a large ribonucleoprotein that removes introns from transcribed pre-mRNA + rather than governing chromosome segregation. Centromeres are directly responsible + for segregating chromosomes in cell division. The answer is (B). + - question: 'The presence of homologous structures in two different organisms, such + as the humerus in the front limb of a human and a bird, indicates that + + (A) the human and bird are polyphyletic species (B) a human''s and bird''s evolution + is convergent (C) the human and bird belong to a clade (D) the human and bird + developed by analogy' + target: 'Let''s think step by step. Polyphyletic species are organisms that are + grouped due to having similar characteristics but which do not have a common + ancestor. This is not the case for humans and birds, which rules out (A). Convergent + evolution refers to the indepdendent development of similar features in different + species at different periods, which is also not the case for humans and birds, + which rules out (B). Analogy refers to the superficial resemblance of structures + that have different origins, which is not the case for the human and bird forearms, + which rules out (D). Humans and birds do belong to the same clade - a group + of organisms composed of a common ancestor. The answer is (C).' +tag: mmlu_flan_cot_fewshot_stem +include: _mmlu_flan_cot_fewshot_template_yaml +task: mmlu_flan_cot_fewshot_college_biology diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_chemistry.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_chemistry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4a8cfc9e4436f1dc50b75efdf84a0b6f0625f2bf --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_chemistry.yaml @@ -0,0 +1,49 @@ +dataset_name: college_chemistry +description: The following are multiple choice questions (with answers) about college + chemistry. +fewshot_config: + sampler: first_n + samples: + - question: "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" + target: 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). + - question: 'Which of the following statements about the lanthanide elements is NOT + true? + + (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.' + target: 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). + - question: 'Which of the following lists the hydrides of group-14 elements in order + of thermal stability, from lowest to highest? + + (A) PbH4 < SnH4 < GeH4 < SiH4 < CH4 (B) PbH4 < SnH4 < CH4 < GeH4 < SiH4 (C) + CH4 < SiH4 < GeH4 < SnH4 < PbH4 (D) CH4 < PbH4 < GeH4 < SnH4 < SiH4' + target: 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). + - question: "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" + target: "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).\n\n" +tag: mmlu_flan_cot_fewshot_stem +include: _mmlu_flan_cot_fewshot_template_yaml +task: mmlu_flan_cot_fewshot_college_chemistry diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_computer_science.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_computer_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5eccde7c6be9620f63bbf3b1de42f32c8e121539 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_computer_science.yaml @@ -0,0 +1,180 @@ +dataset_name: college_computer_science +description: The following are multiple choice questions (with answers) about college + computer science. +fewshot_config: + sampler: first_n + samples: + - question: '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' + target: '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).' + - question: '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' + target: '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).' + - question: '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' + target: '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).' + - question: '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' + target: '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).' + - question: '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' + target: '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).' +tag: mmlu_flan_cot_fewshot_stem +include: _mmlu_flan_cot_fewshot_template_yaml +task: mmlu_flan_cot_fewshot_college_computer_science diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5552cc35bc55ffab1b53538ee2605778e6f215d6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_mathematics.yaml @@ -0,0 +1,73 @@ +dataset_name: college_mathematics +description: The following are multiple choice questions (with answers) about college + mathematics. +fewshot_config: + sampler: first_n + samples: + - question: '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? + + (A) ST = 0 (B) ST = T (C) ST = TS (D) ST - TS is the identity map of V onto + itself.' + target: "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).\\]\n\ + Hence \\[ST(p) - TS(p) = p(x) + xp\u2019(x) - xp\u2019(x).\\] The answer is\ + \ (D)." + - question: 'Suppose that f(1 + x) = f(x) for all real x. If f is a polynomial and + f(5) = 11, then f(15/2) + + (A) -11 (B) 0 (C) 11 (D) 33/2' + target: 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). + - question: 'Let A be a real 2x2 matrix. Which of the following statements must be + true? + + I. All of the entries of A^2 are nonnegative. + + II. The determinant of A^2 is nonnegative. + + III. If A has two distinct eigenvalues, then A^2 has two distinct eigenvalues. + + (A) I only (B) II only (C) III only (D) II and III only' + target: 'Let''s think step by step. We have \[ det(A^2) = (det(A))^2 \geq 0,\] + hence II holds. + + III 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).' + - question: '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}? + + (A) -5 (B) -4 (C) -3 (D) -2' + target: 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). + - question: '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? + + (A) 2 (B) 2 - e^-2 (C) 2 + e^-2 (D) 2 + e^-4' + target: "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).\n\n" +tag: mmlu_flan_cot_fewshot_stem +include: _mmlu_flan_cot_fewshot_template_yaml +task: mmlu_flan_cot_fewshot_college_mathematics diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_medicine.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_medicine.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7eac0bab3f9286469b44e815c8a2090fc5ff0832 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_college_medicine.yaml @@ -0,0 +1,68 @@ +dataset_name: college_medicine +description: The following are multiple choice questions (with answers) about college + medicine. +fewshot_config: + sampler: first_n + samples: + - question: 'An expected side effect of creatine supplementation is: + + (A) muscle weakness. (B) gain in body mass. (C) muscle cramps. (D) loss of electrolytes.' + target: Let's think step by step. We refer to Wikipedia articles on medicine for + help. Creatine supplementation is a dietary supplement that results in body + mass gain. The answer is (B). + - question: 'Which of the following is not a true statement? + + (A) Muscle glycogen is broken down enzymatically to glucose-1-phosphate (B) + Elite endurance runners have a high proportion of Type I fibres in their leg + muscles (C) Liver glycogen is important in the maintenance of the blood glucose + concentration (D) Insulin promotes glucose uptake by all tissues in the body' + target: "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) \u201C\ + Insulin 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)." + - question: "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\xB0\ + 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" + target: '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).' + - question: '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? + + (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.' + target: "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)." + - question: 'Glucose is transported into the muscle cell: + + (A) via protein transporters called GLUT4. (B) only in the presence of insulin. + (C) via hexokinase. (D) via monocarbylic acid transporters.' + target: '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).' +tag: mmlu_flan_cot_fewshot_other +include: _mmlu_flan_cot_fewshot_template_yaml +task: mmlu_flan_cot_fewshot_college_medicine diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_econometrics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_econometrics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e4282345ce0f2e8bab97a80413fbd2b796a7fe3e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_econometrics.yaml @@ -0,0 +1,87 @@ +dataset_name: econometrics +description: The following are multiple choice questions (with answers) about econometrics. +fewshot_config: + sampler: first_n + samples: + - question: '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? + + (A) 1 lag (B) 2 lags (C) 3 lags (D) 4 lags' + target: "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\u2019\ + 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\u2019\ + 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\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)." + - question: 'Consider the following AR(1) model with the disturbances having zero mean + and unit variance + + yt = 0.2 + 0.4 yt-1 + ut + + The (unconditional) mean of y will be given by + + (A) 0.2 (B) 0.4 (C) 0.5 (D) 0.33' + target: "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:\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)." + - question: 'What would be then consequences for the OLS estimator if heteroscedasticity + is present in a regression model but ignored? + + (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.' + target: 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). + - question: 'Suppose that a test statistic has associated with it a p-value of 0.08. + Which one of the following statements is true? + + (i) If the size of the test were exactly 8%, we would be indifferent between + rejecting and not rejecting the null hypothesis + + (ii) The null would be rejected if a 10% size of test were used + + (iii) The null would not be rejected if a 1% size of test were used + + (iv) The null would be rejected if a 5% size of test were used. + + (A) (ii) and (iv) only (B) (i) and (iii) only (C) (i), (ii), and (iii) only + (D) (i), (ii), (iii), and (iv).' + target: "Let's think step by step. We refer to Wikipedia articles on econometrics\ + \ for help. Let\u2019s 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)." + - question: 'For a stationary autoregressive process, shocks will + + (A) Eventually die away (B) Persist indefinitely (C) Grow exponentially (D) + Never occur' + target: '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).' +tag: mmlu_flan_cot_fewshot_social_sciences +include: _mmlu_flan_cot_fewshot_template_yaml +task: mmlu_flan_cot_fewshot_econometrics diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_electrical_engineering.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_electrical_engineering.yaml new file mode 100644 index 0000000000000000000000000000000000000000..305d2340c5ffa69761ef8dc2ab128849e571bbf8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_electrical_engineering.yaml @@ -0,0 +1,47 @@ +dataset_name: electrical_engineering +description: ' + + The following are multiple choice questions (with answers) about electrical engineering.' +fewshot_config: + sampler: first_n + samples: + - question: "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 of 10\ + \ cm from it will be\n(A) 15 N. (B) 20 N. (C) 7.5 N. (D) 3.75 N." + target: "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)." + - question: '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 + + (A) 1 mA. (B) 2 mA. (C) 3 mA. (D) 4 mA.' + target: 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). + - question: 'In an SR latch built from NOR gates, which condition is not allowed + + (A) S=0, R=0 (B) S=0, R=1 (C) S=1, R=0 (D) S=1, R=1' + target: 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 question. The answer is (D). + - question: '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 + + (A) 100 N. (B) 0.1 N. (C) 1 N. (D) 0.01 N.' + target: 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). + - question: "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" + target: '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).' +tag: mmlu_flan_cot_fewshot_stem +include: _mmlu_flan_cot_fewshot_template_yaml +task: mmlu_flan_cot_fewshot_electrical_engineering diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_chemistry.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_chemistry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..948c375824506cc188ed821c4512725bfdc92d06 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_fewshot/mmlu_high_school_chemistry.yaml @@ -0,0 +1,66 @@ +dataset_name: high_school_chemistry +description: The following are multiple choice questions (with answers) about high + school chemistry. +fewshot_config: + sampler: first_n + samples: + - question: 'Which of the following is considered an acid anhydride? + + (A) HCl (B) H2SO3 (C) SO2 (D) Al(NO3)3' + target: Let's think step by step. An acid anhydride is a compound that is derived + by removing water from an acid. The chemical formula for water is H2O, which + means that we need to determine which of these options, when combined with H2O, + forms an acid. SO2, or Sulfur dioxide, when combined with H2O, makes H2SO4, + or sulfuric acid. The answer is (C). + - question: 'Which of the following is expected to be a polar molecule? + + (A) PCl4F (B) BF3 (C) CO2 (D) Si(CH3)4' + target: Let's think step by step. A polar molecule is one that has a slightly + positive charge on one end of the molecule and a slightly negative charge on + the other end. Boron trifluoride (BF3) has Boron as the center atom and three + fluorine atoms attached to it; it is trigonal planar and symmetric, so it is + nonpolar. Carbon Dioxide (CO2) has Carbon as the central atom with double bonds + to two Oxygen atoms - this is also symmetrical and therefore nonpolar. The same + is the case for tetramethyl silane (SI(CH3)4), which is a Silicon atom surrounded + by four methyl groups. The structure of PCL4F is that Phosphorus is the central + atom, attached to four chlorines and one fluorine atom. This is asymmetrical, + and therefore has a net dipole and is expected to be a polar molecule. The answer + is (A). + - question: 'From the solubility rules, which of the following is true? + + (A) All chlorides, bromides, and iodides are soluble (B) All sulfates are soluble + (C) All hydroxides are soluble (D) All ammonium-containing compounds are soluble' + target: Let's think step by step. The chlorides, bromides, and iodides of lead, + silver, and mercury are not soluble in water. This rules out (A). The sulfates + of lead, barium, and calcium are not soluble in water, which rules out (B). + The hydroxides of any metal besides sodium, potassium, ammonium, calcium, and + barium are insoluble. This rules out (C). Typically ammonium ions indicate a + soluble ionic substance. The answer is (D). + - question: 'A new compound is synthesized and found to be a monoprotic acid with a + molar mass of 248 g/mol. When 0.0050 mol of this acid are dissolved in 0.500 + L of water, the pH is measured as 3.89. What is the pKa of this acid? + + (A) 3.89 (B) 7.78 (C) 5.78 (D) 2.33' + target: "Let's think step by step. Recall that $[A] = [H^{+}]$. Here, this is\ + \ equal to $$10^{-3.89}$. Then we have $K_{a} = $\nrac{[H^{+}][A^{-}]}{[HA]}\ + \ = \nrac{10^{-3.89} \\cdot 10^{-3.89}}{10^{-2}}. The resulting exponent is\ + \ $-3.89 + (-3.89) - (-2) = 5.78$, therefore $K_a = 10^{-5.78}$. The $pK_a$\ + \ is the negative log of $K_a$, which is equal to $5.78$. The answer is (C)." + - question: 'A solution contains 2.00 mole of acetic acid, CH3COOH, and 1.00 mole of + calcium acetate, Ca(CH3COO)2. The solution is able to resist the addition of + a small amount of strong acid or strong base with only minor changes in the + pH of the solution. Larger quantities of strong acid or strong base can cause + a significant change in pH. How many moles of nitric acid, HNO3, may be added + before the pH begins to change significantly? + + (A) 0.500 mole (B) 1.00 mole (C) 2.00 mole (D) 3.00 mole' + target: "Let's think step by step. We would like to compute the buffer capacity\ + \ of this solution. First we write the equation for the ionization of the weak\ + \ acid, in this case of acetic acid. $CH_{3}COOH (aq) + H_{2}O \nightarrow H_{3}O^{+}\ + \ + CH3COO^{-}$. The conjugate base is therefore 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).\n\n" +tag: mmlu_flan_cot_fewshot_stem +include: _mmlu_flan_cot_fewshot_template_yaml +task: mmlu_flan_cot_fewshot_high_school_chemistry diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c9a9ca3b3840ee7169b59a53cec4c595c783cd4e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_mathematics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_mathematics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school mathematics.\n\n" +"tag": "mmlu_flan_cot_zeroshot_stem" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_high_school_mathematics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c149ef083a87f6d3eb412f9e3fb2fbd131ec4c0e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_physics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_physics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school physics.\n\n" +"tag": "mmlu_flan_cot_zeroshot_stem" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_high_school_physics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_world_history.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_high_school_world_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..28a63b1b9106219486b5487b24396baf44179276 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/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" +"tag": "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-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_international_law.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_international_law.yaml new file mode 100644 index 0000000000000000000000000000000000000000..33766a464fa475a012d229c194c93fffb84942b6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_international_law.yaml @@ -0,0 +1,6 @@ +"dataset_name": "international_law" +"description": "The following are multiple choice questions (with answers) about international\ + \ law.\n\n" +"tag": "mmlu_flan_cot_zeroshot_humanities" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_international_law" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_logical_fallacies.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_logical_fallacies.yaml new file mode 100644 index 0000000000000000000000000000000000000000..12594895469fbf0644e1908e4299f93f417703e8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_logical_fallacies.yaml @@ -0,0 +1,6 @@ +"dataset_name": "logical_fallacies" +"description": "The following are multiple choice questions (with answers) about logical\ + \ fallacies.\n\n" +"tag": "mmlu_flan_cot_zeroshot_humanities" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_logical_fallacies" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_marketing.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_marketing.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0fe6e44b7fe464396e85a53f70831bbb48ff8ece --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_marketing.yaml @@ -0,0 +1,6 @@ +"dataset_name": "marketing" +"description": "The following are multiple choice questions (with answers) about marketing.\n\ + \n" +"tag": "mmlu_flan_cot_zeroshot_other" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_marketing" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_miscellaneous.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_miscellaneous.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c2a95e892a8e6d357e6a9f771272d06422b14d1a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_miscellaneous.yaml @@ -0,0 +1,6 @@ +"dataset_name": "miscellaneous" +"description": "The following are multiple choice questions (with answers) about miscellaneous.\n\ + \n" +"tag": "mmlu_flan_cot_zeroshot_other" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_miscellaneous" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_moral_disputes.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_moral_disputes.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a6a76a2a7930589f3603fa070e974116b4996e96 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_moral_disputes.yaml @@ -0,0 +1,6 @@ +"dataset_name": "moral_disputes" +"description": "The following are multiple choice questions (with answers) about moral\ + \ disputes.\n\n" +"tag": "mmlu_flan_cot_zeroshot_humanities" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_moral_disputes" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_moral_scenarios.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_moral_scenarios.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a5f8c4e6f144dcb4c0eb6881b095434c76105bb6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_moral_scenarios.yaml @@ -0,0 +1,6 @@ +"dataset_name": "moral_scenarios" +"description": "The following are multiple choice questions (with answers) about moral\ + \ scenarios.\n\n" +"tag": "mmlu_flan_cot_zeroshot_humanities" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_moral_scenarios" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_nutrition.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_nutrition.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f0f144cb44e5218d3a70193fddca2a2883e6b1b8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_nutrition.yaml @@ -0,0 +1,6 @@ +"dataset_name": "nutrition" +"description": "The following are multiple choice questions (with answers) about nutrition.\n\ + \n" +"tag": "mmlu_flan_cot_zeroshot_other" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_nutrition" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_philosophy.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_philosophy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a4e4c0c4b6ccd34ebf4ff1133d0e26ddd8dc90d9 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_philosophy.yaml @@ -0,0 +1,6 @@ +"dataset_name": "philosophy" +"description": "The following are multiple choice questions (with answers) about philosophy.\n\ + \n" +"tag": "mmlu_flan_cot_zeroshot_humanities" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_philosophy" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_prehistory.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_prehistory.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9db801a6a9f2d911e2bdbbe0084fd235c7572776 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_prehistory.yaml @@ -0,0 +1,6 @@ +"dataset_name": "prehistory" +"description": "The following are multiple choice questions (with answers) about prehistory.\n\ + \n" +"tag": "mmlu_flan_cot_zeroshot_humanities" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_prehistory" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_accounting.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_accounting.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e94bef0581e5290ff4790b5d48863a198a904879 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/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" +"tag": "mmlu_flan_cot_zeroshot_other" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_professional_accounting" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_law.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_law.yaml new file mode 100644 index 0000000000000000000000000000000000000000..25239d9a35941d49797c15986cc43213b0ec74d6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_law.yaml @@ -0,0 +1,6 @@ +"dataset_name": "professional_law" +"description": "The following are multiple choice questions (with answers) about professional\ + \ law.\n\n" +"tag": "mmlu_flan_cot_zeroshot_humanities" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_professional_law" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_medicine.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_medicine.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4f961bff89745dd8999c2ee497bdf9a7df88e04f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_medicine.yaml @@ -0,0 +1,6 @@ +"dataset_name": "professional_medicine" +"description": "The following are multiple choice questions (with answers) about professional\ + \ medicine.\n\n" +"tag": "mmlu_flan_cot_zeroshot_other" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_professional_medicine" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_psychology.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_psychology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..48758ef76eaf72e4236a8569e041ea03e6626e67 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_professional_psychology.yaml @@ -0,0 +1,6 @@ +"dataset_name": "professional_psychology" +"description": "The following are multiple choice questions (with answers) about professional\ + \ psychology.\n\n" +"tag": "mmlu_flan_cot_zeroshot_social_sciences" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_professional_psychology" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_public_relations.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_public_relations.yaml new file mode 100644 index 0000000000000000000000000000000000000000..62a56a4478bf9eafbcf1a8034abfeea6240e99ca --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/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" +"tag": "mmlu_flan_cot_zeroshot_social_sciences" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_public_relations" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_security_studies.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_security_studies.yaml new file mode 100644 index 0000000000000000000000000000000000000000..062f49630e82b66be1ea0e75ed9fe73c8d635215 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/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" +"tag": "mmlu_flan_cot_zeroshot_social_sciences" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_security_studies" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_sociology.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_sociology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..36b4711831ef6fafde0915178e28513692f9c8d5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_sociology.yaml @@ -0,0 +1,6 @@ +"dataset_name": "sociology" +"description": "The following are multiple choice questions (with answers) about sociology.\n\ + \n" +"tag": "mmlu_flan_cot_zeroshot_social_sciences" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_sociology" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_us_foreign_policy.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_us_foreign_policy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c4afb8f84a193442cd98a856ada7e43f1515cbce --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/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" +"tag": "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-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_virology.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_virology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a8e427612f45461a5d873edbafb3d6e0eba4e9f1 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_virology.yaml @@ -0,0 +1,6 @@ +"dataset_name": "virology" +"description": "The following are multiple choice questions (with answers) about virology.\n\ + \n" +"tag": "mmlu_flan_cot_zeroshot_other" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_virology" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_world_religions.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_world_religions.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0eb04f31f0baaf6ac0f358de2897d5267e1a4357 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/mmlu_world_religions.yaml @@ -0,0 +1,6 @@ +"dataset_name": "world_religions" +"description": "The following are multiple choice questions (with answers) about world\ + \ religions.\n\n" +"tag": "mmlu_flan_cot_zeroshot_humanities" +"include": "_mmlu_flan_cot_zeroshot_template_yaml" +"task": "mmlu_flan_cot_zeroshot_world_religions" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/utils.py b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..72246935de8cf0cf8b256fd1e6c87dfbbb90a2ad --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_cot_zeroshot/utils.py @@ -0,0 +1,112 @@ +import re +import sys +import unicodedata + +from lm_eval.filters.extraction import RegexFilter + + +class MultiChoiceRegexFilter(RegexFilter): + """ """ + + def __init__( + self, + regex_pattern: str = r"#### (\-?[0-9\.\,]+)", + group_select=0, + fallback: str = "[invalid]", + ignore_case=False, + ignore_punctuation=False, + regexes_to_ignore=None, + ) -> None: + """ + regex_pattern: The basic regex pattern to use. If fails to match, we will use the customized match procedure + - step 1 : We parse the choices between ([A-Z])s then try to find these choices in the response. + - step 2 : We parse the choice with regex :[\s]*([A-?]), where ? varies by number of choices. + group_select: Selects the (group_select)th match from the findall result. + ignore_case: Ignores the case during step 1 matching + ignore_punctuation: Remove the punctuation during step 1 matching + regexes_to_ignore: Remove these regexes during step 1 matching + """ + super().__init__(regex_pattern, group_select, fallback) + self.ignore_case = ignore_case + self.ignore_punctuation = ignore_punctuation + self.regexes_to_ignore = regexes_to_ignore + + def apply(self, resps, docs): + # here, we assume we have a list, in which each element is + # a list of model responses for some particular input/target pair. + # so we process each of these (same input/target response sets) + # independently (and keep them a list.) + + def find_match(regex, resp, convert_dict={}): + match = regex.findall(resp) + if match: + match = match[self.group_select] + if isinstance(match, tuple): + match = [m for m in match if m][0] + match = match.strip() + if match and match in convert_dict: + match = convert_dict[match] + return match + + punct_tbl = dict.fromkeys( + i + for i in range(sys.maxunicode) + if unicodedata.category(chr(i)).startswith("P") + ) + + def filter_ignores(st): + if self.regexes_to_ignore is not None: + for s in self.regexes_to_ignore: + st = re.sub(s, "", st) + + if self.ignore_case: + st = st.lower() + + if self.ignore_punctuation: + # https://stackoverflow.com/a/266162 + st = st.translate(punct_tbl) + return st + + filtered_resps = [] + + for r, doc in zip(resps, docs): + fallback_regexes = [] + choice_to_alpha = {} + next_alpha = "A" + + without_paren_fallback_regexes = [] + without_paren_to_target = {} + + choices = doc["choices"] + for c in choices: + m = filter_ignores(c.strip()) + fallback_regexes.append(f"{re.escape(m)}") + choice_to_alpha[m] = f"({next_alpha})" + + without_paren_fallback_regexes.append(next_alpha) + without_paren_to_target[next_alpha] = f"({next_alpha})" + + next_alpha = chr(ord(next_alpha) + 1) + fallback_regex = re.compile("|".join(fallback_regexes)) + without_paren_fallback_regex = "|".join(without_paren_fallback_regexes) + without_paren_fallback_regex = re.compile( + f":[\s]*({without_paren_fallback_regex})" + ) + + filtered = [] + for resp in r: + match = find_match(self.regex, resp) + if not match: + match = find_match( + fallback_regex, filter_ignores(resp), choice_to_alpha + ) + if not match: + match = find_match( + without_paren_fallback_regex, resp, without_paren_to_target + ) + if not match: + match = self.fallback + filtered.append(match) + filtered_resps.append(filtered) + + return filtered_resps diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/_mmlu_flan_generative_template_yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/_mmlu_flan_generative_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..a38a06969e2649d2fc0cf8e2be3efc60d91b3076 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/_mmlu_flan_generative_template_yaml @@ -0,0 +1,34 @@ +dataset_path: hails/mmlu_no_train # a copy of `cais/mmlu` with no auxiliary_train split +test_split: test +fewshot_split: dev +fewshot_config: + sampler: first_n +output_type: 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]}}" +filter_list: + - name: "strict-match" + filter: + - function: "take_first" + - name: "flexible-extract" + filter: + - function: "multi_choice_regex" + group_select: 0 + regex_pattern: "(\\([A-Z]\\))" + ignore_case: true + ignore_punctuation: true + - function: "take_first" +generation_kwargs: + until: + - "" + - "Q:" + - "<|im_end|>" + - "\n" +metric_list: + - metric: exact_match + aggregation: mean + higher_is_better: true +metadata: + version: 3.0 +dataset_kwargs: + trust_remote_code: true diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_astronomy.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_astronomy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a4178654e0e6e7a053839319c7936967133cf756 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_astronomy.yaml @@ -0,0 +1,6 @@ +"dataset_name": "astronomy" +"description": "The following are multiple choice questions (with answers) about astronomy.\n\ + \n" +"tag": "mmlu_flan_n_shot_generative_stem" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_astronomy" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_clinical_knowledge.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_clinical_knowledge.yaml new file mode 100644 index 0000000000000000000000000000000000000000..38f799060fa6901b890d3a87d8aa9b9444d34b57 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_clinical_knowledge.yaml @@ -0,0 +1,6 @@ +"dataset_name": "clinical_knowledge" +"description": "The following are multiple choice questions (with answers) about clinical\ + \ knowledge.\n\n" +"tag": "mmlu_flan_n_shot_generative_other" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_clinical_knowledge" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_chemistry.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_chemistry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0eccce652fade13a319af78e06a7528b11814302 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_chemistry.yaml @@ -0,0 +1,6 @@ +"dataset_name": "college_chemistry" +"description": "The following are multiple choice questions (with answers) about college\ + \ chemistry.\n\n" +"tag": "mmlu_flan_n_shot_generative_stem" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_college_chemistry" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_computer_science.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_computer_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fd415aa10efaf96331d9fef82c5b6a2bb538263a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/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" +"tag": "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-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2d062721102c0f6e6c09574398a60db74c26b593 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_mathematics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "college_mathematics" +"description": "The following are multiple choice questions (with answers) about college\ + \ mathematics.\n\n" +"tag": "mmlu_flan_n_shot_generative_stem" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_college_mathematics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_medicine.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_medicine.yaml new file mode 100644 index 0000000000000000000000000000000000000000..edc660d9c30dfad6666f5e1b4c679489f62c5991 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_medicine.yaml @@ -0,0 +1,6 @@ +"dataset_name": "college_medicine" +"description": "The following are multiple choice questions (with answers) about college\ + \ medicine.\n\n" +"tag": "mmlu_flan_n_shot_generative_other" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_college_medicine" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..aac8f400d1d9005376bfe3354753e87700a7bda8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_college_physics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "college_physics" +"description": "The following are multiple choice questions (with answers) about college\ + \ physics.\n\n" +"tag": "mmlu_flan_n_shot_generative_stem" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_college_physics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_computer_security.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_computer_security.yaml new file mode 100644 index 0000000000000000000000000000000000000000..178c468346a5022a5d0031fd27c6b9a07ab24150 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_computer_security.yaml @@ -0,0 +1,6 @@ +"dataset_name": "computer_security" +"description": "The following are multiple choice questions (with answers) about computer\ + \ security.\n\n" +"tag": "mmlu_flan_n_shot_generative_stem" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_computer_security" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_conceptual_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_conceptual_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e3cfbe6250d19aab6e60c9089f0feb91eed37423 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_conceptual_physics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "conceptual_physics" +"description": "The following are multiple choice questions (with answers) about conceptual\ + \ physics.\n\n" +"tag": "mmlu_flan_n_shot_generative_stem" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_conceptual_physics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_econometrics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_econometrics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ad8704e4f8e3a60ee2ff7e370cf7394c0359aeb7 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_econometrics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "econometrics" +"description": "The following are multiple choice questions (with answers) about econometrics.\n\ + \n" +"tag": "mmlu_flan_n_shot_generative_social_sciences" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_econometrics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_elementary_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_elementary_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..da3b3af2b5f310232cbd9c9ee63081acbb571638 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_elementary_mathematics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "elementary_mathematics" +"description": "The following are multiple choice questions (with answers) about elementary\ + \ mathematics.\n\n" +"tag": "mmlu_flan_n_shot_generative_stem" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_elementary_mathematics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_formal_logic.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_formal_logic.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2d3f4edc644842cbc3fae865c96f99322daaafbf --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_formal_logic.yaml @@ -0,0 +1,6 @@ +"dataset_name": "formal_logic" +"description": "The following are multiple choice questions (with answers) about formal\ + \ logic.\n\n" +"tag": "mmlu_flan_n_shot_generative_humanities" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_formal_logic" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_global_facts.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_global_facts.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4feef1895254438bde19ebfc3d7a36aee87e61de --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_global_facts.yaml @@ -0,0 +1,6 @@ +"dataset_name": "global_facts" +"description": "The following are multiple choice questions (with answers) about global\ + \ facts.\n\n" +"tag": "mmlu_flan_n_shot_generative_other" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_global_facts" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_biology.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_biology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..245d9be815c3644bf3298a0d093a76410b7487b6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_biology.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_biology" +"description": "The following are multiple choice questions (with answers) about high\ + \ school biology.\n\n" +"tag": "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-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_chemistry.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_chemistry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..34eb30d32d5b6927d44d59a63f5a549587f414f1 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_chemistry.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_chemistry" +"description": "The following are multiple choice questions (with answers) about high\ + \ school chemistry.\n\n" +"tag": "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-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_computer_science.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_computer_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..34250a6c61cb5e29acbb99f8a080d45f74a91d45 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/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" +"tag": "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-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_european_history.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_european_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..42b7dd4d5aa2ab541b7f269c84845d262db452c5 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/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" +"tag": "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-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_geography.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_geography.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e67277aa5480e1a9465169112755c3da70e12e6e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/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" +"tag": "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-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_government_and_politics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_government_and_politics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..84643a74239db620816f0d8a67575d0c8268e58f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/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" +"tag": "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-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_macroeconomics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_macroeconomics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..eb08333804237ac3e0584db637d5c91477a6a93d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/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" +"tag": "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-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f1ca028d8262f22807eb591c3e498fecabd9887b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_mathematics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_mathematics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school mathematics.\n\n" +"tag": "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-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_microeconomics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_microeconomics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c60982b78dab4866a6827fe5b1bf9f2b710ed8d3 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/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" +"tag": "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-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..33b8d16739c9faf352ad242bd76b2bc33bc21aa6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_physics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_physics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school physics.\n\n" +"tag": "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-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_psychology.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_psychology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f47bbbb68c02a417e60e5b0a19f4f85c5723b41b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/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" +"tag": "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-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_statistics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_statistics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..741971895ba27ad6651ac456def204a078ac5d3e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_statistics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_statistics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school statistics.\n\n" +"tag": "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-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_us_history.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_us_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..48696971c9e850a18baadd6c3e9f958851cc2a3e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/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" +"tag": "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-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_world_history.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_high_school_world_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ae6cfcbba3f86dc0339edc3a361c898e6c8716fd --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/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" +"tag": "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-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_human_aging.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_human_aging.yaml new file mode 100644 index 0000000000000000000000000000000000000000..677f119a754f0c671fae0f2285bb8ff29f2af85e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_human_aging.yaml @@ -0,0 +1,6 @@ +"dataset_name": "human_aging" +"description": "The following are multiple choice questions (with answers) about human\ + \ aging.\n\n" +"tag": "mmlu_flan_n_shot_generative_other" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_human_aging" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_human_sexuality.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_human_sexuality.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d4e33d7d607ef2f07ea0fdb67305b8f88a45d13a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/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" +"tag": "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-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_international_law.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_international_law.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ac5d9d5a46b7f4f1daafb7c7f0feb66933c4829d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_international_law.yaml @@ -0,0 +1,6 @@ +"dataset_name": "international_law" +"description": "The following are multiple choice questions (with answers) about international\ + \ law.\n\n" +"tag": "mmlu_flan_n_shot_generative_humanities" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_international_law" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_jurisprudence.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_jurisprudence.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c2f135869aca516492cd9dc8ce210838173a1d7a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_jurisprudence.yaml @@ -0,0 +1,6 @@ +"dataset_name": "jurisprudence" +"description": "The following are multiple choice questions (with answers) about jurisprudence.\n\ + \n" +"tag": "mmlu_flan_n_shot_generative_humanities" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_jurisprudence" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_logical_fallacies.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_logical_fallacies.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6624e07743a432cc354ccff7af2363db2ec1ae11 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_logical_fallacies.yaml @@ -0,0 +1,6 @@ +"dataset_name": "logical_fallacies" +"description": "The following are multiple choice questions (with answers) about logical\ + \ fallacies.\n\n" +"tag": "mmlu_flan_n_shot_generative_humanities" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_logical_fallacies" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_machine_learning.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_machine_learning.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ab6c459ae50e7311dc9d8819ec753c69f6d9583b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_machine_learning.yaml @@ -0,0 +1,6 @@ +"dataset_name": "machine_learning" +"description": "The following are multiple choice questions (with answers) about machine\ + \ learning.\n\n" +"tag": "mmlu_flan_n_shot_generative_stem" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_machine_learning" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_management.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_management.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4af9ded012e921feeb38d31cde98fef9888aba95 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_management.yaml @@ -0,0 +1,6 @@ +"dataset_name": "management" +"description": "The following are multiple choice questions (with answers) about management.\n\ + \n" +"tag": "mmlu_flan_n_shot_generative_other" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_management" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_marketing.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_marketing.yaml new file mode 100644 index 0000000000000000000000000000000000000000..22ef9d3fd49556afd4578685099abc0bb9b64c9e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_marketing.yaml @@ -0,0 +1,6 @@ +"dataset_name": "marketing" +"description": "The following are multiple choice questions (with answers) about marketing.\n\ + \n" +"tag": "mmlu_flan_n_shot_generative_other" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_marketing" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_medical_genetics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_medical_genetics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c24da7938b431acdd991830424777e6645cf9bbb --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_medical_genetics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "medical_genetics" +"description": "The following are multiple choice questions (with answers) about medical\ + \ genetics.\n\n" +"tag": "mmlu_flan_n_shot_generative_other" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_medical_genetics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_miscellaneous.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_miscellaneous.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c5b90845321c954cc2e7875fdc084e5935444af7 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_miscellaneous.yaml @@ -0,0 +1,6 @@ +"dataset_name": "miscellaneous" +"description": "The following are multiple choice questions (with answers) about miscellaneous.\n\ + \n" +"tag": "mmlu_flan_n_shot_generative_other" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_miscellaneous" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_moral_disputes.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_moral_disputes.yaml new file mode 100644 index 0000000000000000000000000000000000000000..295c39a6efce509983b01b18c20375866b08d3bc --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_moral_disputes.yaml @@ -0,0 +1,6 @@ +"dataset_name": "moral_disputes" +"description": "The following are multiple choice questions (with answers) about moral\ + \ disputes.\n\n" +"tag": "mmlu_flan_n_shot_generative_humanities" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_moral_disputes" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_moral_scenarios.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_moral_scenarios.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f09f982f26462304a20420e9b61bf3ef941448a0 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_moral_scenarios.yaml @@ -0,0 +1,6 @@ +"dataset_name": "moral_scenarios" +"description": "The following are multiple choice questions (with answers) about moral\ + \ scenarios.\n\n" +"tag": "mmlu_flan_n_shot_generative_humanities" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_moral_scenarios" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_nutrition.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_nutrition.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cf633f270a6d9fbbaa0a793bc5d5e48731a31d57 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_nutrition.yaml @@ -0,0 +1,6 @@ +"dataset_name": "nutrition" +"description": "The following are multiple choice questions (with answers) about nutrition.\n\ + \n" +"tag": "mmlu_flan_n_shot_generative_other" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_nutrition" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_philosophy.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_philosophy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6a5fe27eefb47badf4c13e87ad0fbac96b08283e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_philosophy.yaml @@ -0,0 +1,6 @@ +"dataset_name": "philosophy" +"description": "The following are multiple choice questions (with answers) about philosophy.\n\ + \n" +"tag": "mmlu_flan_n_shot_generative_humanities" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_philosophy" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_prehistory.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_prehistory.yaml new file mode 100644 index 0000000000000000000000000000000000000000..60788fc6c201bf316398f48adc9575dcb806b649 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_prehistory.yaml @@ -0,0 +1,6 @@ +"dataset_name": "prehistory" +"description": "The following are multiple choice questions (with answers) about prehistory.\n\ + \n" +"tag": "mmlu_flan_n_shot_generative_humanities" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_prehistory" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_professional_accounting.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_professional_accounting.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f312af231f28d9343f7a0e2353cec110fda1f9a4 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/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" +"tag": "mmlu_flan_n_shot_generative_other" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_professional_accounting" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_professional_law.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_professional_law.yaml new file mode 100644 index 0000000000000000000000000000000000000000..be0533f0d8b90fc9f82226579ec849ac3f24be15 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_professional_law.yaml @@ -0,0 +1,6 @@ +"dataset_name": "professional_law" +"description": "The following are multiple choice questions (with answers) about professional\ + \ law.\n\n" +"tag": "mmlu_flan_n_shot_generative_humanities" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_professional_law" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_professional_medicine.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_professional_medicine.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9cae6f8a5ec27d73bcf9b57e8597b377aee62835 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_professional_medicine.yaml @@ -0,0 +1,6 @@ +"dataset_name": "professional_medicine" +"description": "The following are multiple choice questions (with answers) about professional\ + \ medicine.\n\n" +"tag": "mmlu_flan_n_shot_generative_other" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_professional_medicine" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_professional_psychology.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_professional_psychology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..21a39c51b7d246c3dd49e47ee0f5dd1865059c36 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/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" +"tag": "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-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_public_relations.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_public_relations.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b2687d99a279caac3f322ff178a1ea1ac7ea44f8 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/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" +"tag": "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-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_security_studies.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_security_studies.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6c36a5522d3c0d6f165dbd5eaac9f5208822fb9d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/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" +"tag": "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-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_sociology.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_sociology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7ce0809907575855a8680ec1db533688ad42de46 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_sociology.yaml @@ -0,0 +1,6 @@ +"dataset_name": "sociology" +"description": "The following are multiple choice questions (with answers) about sociology.\n\ + \n" +"tag": "mmlu_flan_n_shot_generative_social_sciences" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_sociology" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_us_foreign_policy.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_us_foreign_policy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..56ed5e16281b6aca3720868538c93d2877d438b6 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/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" +"tag": "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-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_virology.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_virology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..257dcfbf8a18c96d836d6db1214e8ff69ec63278 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_virology.yaml @@ -0,0 +1,6 @@ +"dataset_name": "virology" +"description": "The following are multiple choice questions (with answers) about virology.\n\ + \n" +"tag": "mmlu_flan_n_shot_generative_other" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_virology" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_world_religions.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_world_religions.yaml new file mode 100644 index 0000000000000000000000000000000000000000..39b64d03d3983f5c692a1a762c8457175dbf5408 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/mmlu_world_religions.yaml @@ -0,0 +1,6 @@ +"dataset_name": "world_religions" +"description": "The following are multiple choice questions (with answers) about world\ + \ religions.\n\n" +"tag": "mmlu_flan_n_shot_generative_humanities" +"include": "_mmlu_flan_generative_template_yaml" +"task": "mmlu_flan_n_shot_generative_world_religions" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/utils.py b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..72246935de8cf0cf8b256fd1e6c87dfbbb90a2ad --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/generative/utils.py @@ -0,0 +1,112 @@ +import re +import sys +import unicodedata + +from lm_eval.filters.extraction import RegexFilter + + +class MultiChoiceRegexFilter(RegexFilter): + """ """ + + def __init__( + self, + regex_pattern: str = r"#### (\-?[0-9\.\,]+)", + group_select=0, + fallback: str = "[invalid]", + ignore_case=False, + ignore_punctuation=False, + regexes_to_ignore=None, + ) -> None: + """ + regex_pattern: The basic regex pattern to use. If fails to match, we will use the customized match procedure + - step 1 : We parse the choices between ([A-Z])s then try to find these choices in the response. + - step 2 : We parse the choice with regex :[\s]*([A-?]), where ? varies by number of choices. + group_select: Selects the (group_select)th match from the findall result. + ignore_case: Ignores the case during step 1 matching + ignore_punctuation: Remove the punctuation during step 1 matching + regexes_to_ignore: Remove these regexes during step 1 matching + """ + super().__init__(regex_pattern, group_select, fallback) + self.ignore_case = ignore_case + self.ignore_punctuation = ignore_punctuation + self.regexes_to_ignore = regexes_to_ignore + + def apply(self, resps, docs): + # here, we assume we have a list, in which each element is + # a list of model responses for some particular input/target pair. + # so we process each of these (same input/target response sets) + # independently (and keep them a list.) + + def find_match(regex, resp, convert_dict={}): + match = regex.findall(resp) + if match: + match = match[self.group_select] + if isinstance(match, tuple): + match = [m for m in match if m][0] + match = match.strip() + if match and match in convert_dict: + match = convert_dict[match] + return match + + punct_tbl = dict.fromkeys( + i + for i in range(sys.maxunicode) + if unicodedata.category(chr(i)).startswith("P") + ) + + def filter_ignores(st): + if self.regexes_to_ignore is not None: + for s in self.regexes_to_ignore: + st = re.sub(s, "", st) + + if self.ignore_case: + st = st.lower() + + if self.ignore_punctuation: + # https://stackoverflow.com/a/266162 + st = st.translate(punct_tbl) + return st + + filtered_resps = [] + + for r, doc in zip(resps, docs): + fallback_regexes = [] + choice_to_alpha = {} + next_alpha = "A" + + without_paren_fallback_regexes = [] + without_paren_to_target = {} + + choices = doc["choices"] + for c in choices: + m = filter_ignores(c.strip()) + fallback_regexes.append(f"{re.escape(m)}") + choice_to_alpha[m] = f"({next_alpha})" + + without_paren_fallback_regexes.append(next_alpha) + without_paren_to_target[next_alpha] = f"({next_alpha})" + + next_alpha = chr(ord(next_alpha) + 1) + fallback_regex = re.compile("|".join(fallback_regexes)) + without_paren_fallback_regex = "|".join(without_paren_fallback_regexes) + without_paren_fallback_regex = re.compile( + f":[\s]*({without_paren_fallback_regex})" + ) + + filtered = [] + for resp in r: + match = find_match(self.regex, resp) + if not match: + match = find_match( + fallback_regex, filter_ignores(resp), choice_to_alpha + ) + if not match: + match = find_match( + without_paren_fallback_regex, resp, without_paren_to_target + ) + if not match: + match = self.fallback + filtered.append(match) + filtered_resps.append(filtered) + + return filtered_resps diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/_mmlu.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/_mmlu.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2cfa0fb9c30451fa79f6b8b038a01692c830f1a7 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/_mmlu.yaml @@ -0,0 +1,32 @@ +group: mmlu_flan_n_shot_loglikelihood +group_alias: mmlu (flan style, loglikelihood) +task: + - group: stem + task: + - mmlu_flan_n_shot_loglikelihood_stem + aggregate_metric_list: + - metric: acc + weight_by_size: True + - group: other + task: + - mmlu_flan_n_shot_loglikelihood_other + aggregate_metric_list: + - metric: acc + weight_by_size: True + - group: social sciences + task: + - mmlu_flan_n_shot_loglikelihood_social_sciences + aggregate_metric_list: + - metric: acc + weight_by_size: True + - group: humanities + task: + - mmlu_flan_n_shot_loglikelihood_humanities + aggregate_metric_list: + - metric: acc + weight_by_size: True +aggregate_metric_list: + - metric: acc + weight_by_size: True +metadata: + version: 2 diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/_mmlu_flan_loglikelihood_template_yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/_mmlu_flan_loglikelihood_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..4605a4a15f2e84c4572388192fc1e51d717f70b1 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/_mmlu_flan_loglikelihood_template_yaml @@ -0,0 +1,17 @@ +dataset_path: hails/mmlu_no_train # a copy of `cais/mmlu` with no auxiliary_train split +test_split: test +fewshot_split: dev +fewshot_config: + sampler: first_n +output_type: multiple_choice +doc_to_text: "Q: {{question.strip()}}\n(A) {{choices[0]}} (B) {{choices[1]}} (C) {{choices[2]}} (D) {{choices[3]}}\nA:" +doc_to_choice: ["(A)", "(B)", "(C)", "(D)"] +doc_to_target: answer +metric_list: + - metric: acc + aggregation: mean + higher_is_better: true +metadata: + version: 2.0 +dataset_kwargs: + trust_remote_code: true diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_abstract_algebra.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_abstract_algebra.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f5dfa65ded384d6e1299b8e5564f5a655f2ced79 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_abstract_algebra.yaml @@ -0,0 +1,6 @@ +"dataset_name": "abstract_algebra" +"description": "The following are multiple choice questions (with answers) about abstract\ + \ algebra.\n\n" +"tag": "mmlu_flan_n_shot_loglikelihood_stem" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_abstract_algebra" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_anatomy.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_anatomy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e837e5d8fd3e1577af4d23d2120d1b55029f052f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_anatomy.yaml @@ -0,0 +1,6 @@ +"dataset_name": "anatomy" +"description": "The following are multiple choice questions (with answers) about anatomy.\n\ + \n" +"tag": "mmlu_flan_n_shot_loglikelihood_stem" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_anatomy" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_astronomy.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_astronomy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..43b9bc7ed89429c2d08cc74cc4472ebea28f67a2 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_astronomy.yaml @@ -0,0 +1,6 @@ +"dataset_name": "astronomy" +"description": "The following are multiple choice questions (with answers) about astronomy.\n\ + \n" +"tag": "mmlu_flan_n_shot_loglikelihood_stem" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_astronomy" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_business_ethics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_business_ethics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2438e6678be07c008922d83ea5016efab56ebc78 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_business_ethics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "business_ethics" +"description": "The following are multiple choice questions (with answers) about business\ + \ ethics.\n\n" +"tag": "mmlu_flan_n_shot_loglikelihood_other" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_business_ethics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_clinical_knowledge.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_clinical_knowledge.yaml new file mode 100644 index 0000000000000000000000000000000000000000..82d66adda5d600a94d5f6e36544dd63d2de3fece --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_clinical_knowledge.yaml @@ -0,0 +1,6 @@ +"dataset_name": "clinical_knowledge" +"description": "The following are multiple choice questions (with answers) about clinical\ + \ knowledge.\n\n" +"tag": "mmlu_flan_n_shot_loglikelihood_other" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_clinical_knowledge" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_biology.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_biology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..15e6e75d3491dfd034df789a3481fb3a39dcaa02 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_biology.yaml @@ -0,0 +1,6 @@ +"dataset_name": "college_biology" +"description": "The following are multiple choice questions (with answers) about college\ + \ biology.\n\n" +"tag": "mmlu_flan_n_shot_loglikelihood_stem" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_college_biology" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_chemistry.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_chemistry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2b8c1bd3a8de310698082f738d287743d3731c23 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_chemistry.yaml @@ -0,0 +1,6 @@ +"dataset_name": "college_chemistry" +"description": "The following are multiple choice questions (with answers) about college\ + \ chemistry.\n\n" +"tag": "mmlu_flan_n_shot_loglikelihood_stem" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_college_chemistry" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_computer_science.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_computer_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1178c7b072f82bebdd4281a371d6105514a686e8 --- /dev/null +++ b/lm-evaluation-harness/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" +"tag": "mmlu_flan_n_shot_loglikelihood_stem" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_college_computer_science" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9776889b514c04c6c93aeedfd0ced7c620d11493 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_mathematics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "college_mathematics" +"description": "The following are multiple choice questions (with answers) about college\ + \ mathematics.\n\n" +"tag": "mmlu_flan_n_shot_loglikelihood_stem" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_college_mathematics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_medicine.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_medicine.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c8fdad90bd103ff616b4b14c2a3e9024208e149a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_medicine.yaml @@ -0,0 +1,6 @@ +"dataset_name": "college_medicine" +"description": "The following are multiple choice questions (with answers) about college\ + \ medicine.\n\n" +"tag": "mmlu_flan_n_shot_loglikelihood_other" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_college_medicine" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..77a89689127b4ca129b9434653198b051324fc0a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_college_physics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "college_physics" +"description": "The following are multiple choice questions (with answers) about college\ + \ physics.\n\n" +"tag": "mmlu_flan_n_shot_loglikelihood_stem" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_college_physics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_computer_security.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_computer_security.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e787e51745218e2465b739ee82b51c456bd228ab --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_computer_security.yaml @@ -0,0 +1,6 @@ +"dataset_name": "computer_security" +"description": "The following are multiple choice questions (with answers) about computer\ + \ security.\n\n" +"tag": "mmlu_flan_n_shot_loglikelihood_stem" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_computer_security" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_conceptual_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_conceptual_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..859e88e48a5cea7114b85c31c594f832520bacb0 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_conceptual_physics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "conceptual_physics" +"description": "The following are multiple choice questions (with answers) about conceptual\ + \ physics.\n\n" +"tag": "mmlu_flan_n_shot_loglikelihood_stem" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_conceptual_physics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_econometrics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_econometrics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0455a515eab5e3102a659d917758b942c00b952d --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_econometrics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "econometrics" +"description": "The following are multiple choice questions (with answers) about econometrics.\n\ + \n" +"tag": "mmlu_flan_n_shot_loglikelihood_social_sciences" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_econometrics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_electrical_engineering.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_electrical_engineering.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b63e06172ec302a916f3be4b0a2ea0f1efa86674 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_electrical_engineering.yaml @@ -0,0 +1,6 @@ +"dataset_name": "electrical_engineering" +"description": "The following are multiple choice questions (with answers) about electrical\ + \ engineering.\n\n" +"tag": "mmlu_flan_n_shot_loglikelihood_stem" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_electrical_engineering" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_elementary_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_elementary_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..79771d21543868dd73bf6ff84201ef07d79c89a2 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_elementary_mathematics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "elementary_mathematics" +"description": "The following are multiple choice questions (with answers) about elementary\ + \ mathematics.\n\n" +"tag": "mmlu_flan_n_shot_loglikelihood_stem" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_elementary_mathematics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_formal_logic.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_formal_logic.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3e46d8e21c62ff03a6f47bbbc7a6d085840049a4 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_formal_logic.yaml @@ -0,0 +1,6 @@ +"dataset_name": "formal_logic" +"description": "The following are multiple choice questions (with answers) about formal\ + \ logic.\n\n" +"tag": "mmlu_flan_n_shot_loglikelihood_humanities" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_formal_logic" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_global_facts.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_global_facts.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9e7aff59325d7dab9a02c4eda3a886d062fe3b4a --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_global_facts.yaml @@ -0,0 +1,6 @@ +"dataset_name": "global_facts" +"description": "The following are multiple choice questions (with answers) about global\ + \ facts.\n\n" +"tag": "mmlu_flan_n_shot_loglikelihood_other" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_global_facts" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_biology.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_biology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..dfe33de2be1d2f821c92fc46111150e1ac366b7e --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_biology.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_biology" +"description": "The following are multiple choice questions (with answers) about high\ + \ school biology.\n\n" +"tag": "mmlu_flan_n_shot_loglikelihood_stem" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_high_school_biology" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_chemistry.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_chemistry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..661ea0ca2f72242eb4daf520f6683a9de3a7c32c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_chemistry.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_chemistry" +"description": "The following are multiple choice questions (with answers) about high\ + \ school chemistry.\n\n" +"tag": "mmlu_flan_n_shot_loglikelihood_stem" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_high_school_chemistry" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_computer_science.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_computer_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b271a661f943fdd6d364833c9f994c19ee10cd22 --- /dev/null +++ b/lm-evaluation-harness/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" +"tag": "mmlu_flan_n_shot_loglikelihood_stem" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_high_school_computer_science" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_european_history.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_european_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f1a329ebb24804c92690b5210cb27f6ec47be93d --- /dev/null +++ b/lm-evaluation-harness/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" +"tag": "mmlu_flan_n_shot_loglikelihood_humanities" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_high_school_european_history" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_geography.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_geography.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fe681101f6704e7f058e27350b37838ba63fcd07 --- /dev/null +++ b/lm-evaluation-harness/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" +"tag": "mmlu_flan_n_shot_loglikelihood_social_sciences" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_high_school_geography" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_government_and_politics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_government_and_politics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d8a8f279fc5bfaa8b610f3ff5dcd1c2be0c88e07 --- /dev/null +++ b/lm-evaluation-harness/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" +"tag": "mmlu_flan_n_shot_loglikelihood_social_sciences" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_high_school_government_and_politics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_macroeconomics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_macroeconomics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..45664135facb151e9b6f91347bbc135297880acb --- /dev/null +++ b/lm-evaluation-harness/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" +"tag": "mmlu_flan_n_shot_loglikelihood_social_sciences" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_high_school_macroeconomics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_mathematics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_mathematics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..49903260ceff13c03070606e04beb45d99d660f7 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_mathematics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_mathematics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school mathematics.\n\n" +"tag": "mmlu_flan_n_shot_loglikelihood_stem" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_high_school_mathematics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_microeconomics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_microeconomics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..394c1d77e553a24820ba5db934bfa8fd95a8a269 --- /dev/null +++ b/lm-evaluation-harness/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" +"tag": "mmlu_flan_n_shot_loglikelihood_social_sciences" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_high_school_microeconomics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7f32ef2fcc4bf03e34b43c5a3d1135431742db71 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_physics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_physics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school physics.\n\n" +"tag": "mmlu_flan_n_shot_loglikelihood_stem" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_high_school_physics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_psychology.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_psychology.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9a9aac0736a9610469c70b925b70b3f384ca9777 --- /dev/null +++ b/lm-evaluation-harness/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" +"tag": "mmlu_flan_n_shot_loglikelihood_social_sciences" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_high_school_psychology" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_statistics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_statistics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5e7e02afb94aebb1676c5c395c51e37d4f149a39 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_statistics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "high_school_statistics" +"description": "The following are multiple choice questions (with answers) about high\ + \ school statistics.\n\n" +"tag": "mmlu_flan_n_shot_loglikelihood_stem" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_high_school_statistics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_us_history.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_us_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7bc84ea9dd78e87166f1e7b67c248d242cb98d83 --- /dev/null +++ b/lm-evaluation-harness/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" +"tag": "mmlu_flan_n_shot_loglikelihood_humanities" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_high_school_us_history" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_world_history.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_high_school_world_history.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f25cf646bebbca23ed23ea421473e6c2461dda8a --- /dev/null +++ b/lm-evaluation-harness/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" +"tag": "mmlu_flan_n_shot_loglikelihood_humanities" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_high_school_world_history" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_human_aging.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_human_aging.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c258f919041775e1d2bf1226264a10b1133802db --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_human_aging.yaml @@ -0,0 +1,6 @@ +"dataset_name": "human_aging" +"description": "The following are multiple choice questions (with answers) about human\ + \ aging.\n\n" +"tag": "mmlu_flan_n_shot_loglikelihood_other" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_human_aging" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_human_sexuality.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_human_sexuality.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1e192a78b48bd37e4dc37efc5783b527f84c3e55 --- /dev/null +++ b/lm-evaluation-harness/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" +"tag": "mmlu_flan_n_shot_loglikelihood_social_sciences" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_human_sexuality" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_international_law.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_international_law.yaml new file mode 100644 index 0000000000000000000000000000000000000000..662bf6eb35157889356a6be7ded31d5f6f2a39ac --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_international_law.yaml @@ -0,0 +1,6 @@ +"dataset_name": "international_law" +"description": "The following are multiple choice questions (with answers) about international\ + \ law.\n\n" +"tag": "mmlu_flan_n_shot_loglikelihood_humanities" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_international_law" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_jurisprudence.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_jurisprudence.yaml new file mode 100644 index 0000000000000000000000000000000000000000..82036dc1da79c464f21f90b46e4681b061fe5ea1 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_jurisprudence.yaml @@ -0,0 +1,6 @@ +"dataset_name": "jurisprudence" +"description": "The following are multiple choice questions (with answers) about jurisprudence.\n\ + \n" +"tag": "mmlu_flan_n_shot_loglikelihood_humanities" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_jurisprudence" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_machine_learning.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_machine_learning.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3d7c280155ae7302b0bed56715c5ea92191e3faf --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_machine_learning.yaml @@ -0,0 +1,6 @@ +"dataset_name": "machine_learning" +"description": "The following are multiple choice questions (with answers) about machine\ + \ learning.\n\n" +"tag": "mmlu_flan_n_shot_loglikelihood_stem" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_machine_learning" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_management.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_management.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7a732a778fb85eac5467fe2744e51340bce0c302 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_management.yaml @@ -0,0 +1,6 @@ +"dataset_name": "management" +"description": "The following are multiple choice questions (with answers) about management.\n\ + \n" +"tag": "mmlu_flan_n_shot_loglikelihood_other" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_management" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_marketing.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_marketing.yaml new file mode 100644 index 0000000000000000000000000000000000000000..56760226dba043ba37a110cf7065bbd52c3e9c93 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_marketing.yaml @@ -0,0 +1,6 @@ +"dataset_name": "marketing" +"description": "The following are multiple choice questions (with answers) about marketing.\n\ + \n" +"tag": "mmlu_flan_n_shot_loglikelihood_other" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_marketing" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_medical_genetics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_medical_genetics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6635c9613155a7c23bf67329b4be950e57fe2d30 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_medical_genetics.yaml @@ -0,0 +1,6 @@ +"dataset_name": "medical_genetics" +"description": "The following are multiple choice questions (with answers) about medical\ + \ genetics.\n\n" +"tag": "mmlu_flan_n_shot_loglikelihood_other" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_medical_genetics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_miscellaneous.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_miscellaneous.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ce8dff42a80057d6557f81e5aead49b4e93e4ef3 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_miscellaneous.yaml @@ -0,0 +1,6 @@ +"dataset_name": "miscellaneous" +"description": "The following are multiple choice questions (with answers) about miscellaneous.\n\ + \n" +"tag": "mmlu_flan_n_shot_loglikelihood_other" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_miscellaneous" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_nutrition.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_nutrition.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5494f9dc462494e198dfc7ad86d63a186637bf5c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_nutrition.yaml @@ -0,0 +1,6 @@ +"dataset_name": "nutrition" +"description": "The following are multiple choice questions (with answers) about nutrition.\n\ + \n" +"tag": "mmlu_flan_n_shot_loglikelihood_other" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_nutrition" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_prehistory.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_prehistory.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1eb08bfbeb44dc8279ab6796e673b3b271517548 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_prehistory.yaml @@ -0,0 +1,6 @@ +"dataset_name": "prehistory" +"description": "The following are multiple choice questions (with answers) about prehistory.\n\ + \n" +"tag": "mmlu_flan_n_shot_loglikelihood_humanities" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_prehistory" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_professional_accounting.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/mmlu_professional_accounting.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5a23a990afe0abf5b354a15dfec3b5bbd2775fc9 --- /dev/null +++ b/lm-evaluation-harness/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" +"tag": "mmlu_flan_n_shot_loglikelihood_other" +"include": "_mmlu_flan_loglikelihood_template_yaml" +"task": "mmlu_flan_n_shot_loglikelihood_professional_accounting" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/_default_template_yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/_default_template_yaml new file mode 100644 index 0000000000000000000000000000000000000000..7281f0a1e06ad370e2bf4933816b2724f2b55541 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/_default_template_yaml @@ -0,0 +1,34 @@ +dataset_path: hails/mmlu_no_train # a copy of `cais/mmlu` with no auxiliary_train split +test_split: test +fewshot_split: dev +fewshot_config: + sampler: first_n +output_type: generate_until +doc_to_text: "{{question.strip()}}\nA. {{choices[0]}}\nB. {{choices[1]}}\nC. {{choices[2]}}\nD. {{choices[3]}}\nAnswer:" +doc_to_target: "{{['A', 'B', 'C', 'D'][answer]}}" +generation_kwargs: + until: + - "" + - "\n" +metric_list: + - metric: exact_match + aggregation: mean + higher_is_better: true + ignore_punctuation: true + ignore_case: true +filter_list: + - name: get_response + filter: + # Filter everything after the first break line + - function: "regex" + regex_pattern: "^(.*?)(?=\\n|$)" + # Remove leading white spaces + - function: remove_whitespace + # function to ignore right white spaces or line breaks + - function: "regex" + regex_pattern: "^(.*?)\\s*$" + - function: take_first +metadata: + version: 3.0 +dataset_kwargs: + trust_remote_code: true diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/_mmlu.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/_mmlu.yaml new file mode 100644 index 0000000000000000000000000000000000000000..550caa37606f975110f5e4f425d27e594014c116 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/_mmlu.yaml @@ -0,0 +1,38 @@ +group: mmlu_generative +group_alias: mmlu (generative) +task: + - group: stem + task: + - mmlu_stem_generative + aggregate_metric_list: + - metric: exact_match + weight_by_size: true + filter_list: get_response + - group: other + task: + - mmlu_other_generative + aggregate_metric_list: + - metric: exact_match + weight_by_size: true + filter_list: get_response + - group: social sciences + task: + - mmlu_social_sciences_generative + aggregate_metric_list: + - metric: exact_match + weight_by_size: true + filter_list: get_response + - group: humanities + task: + - mmlu_humanities_generative + aggregate_metric_list: + - metric: exact_match + weight_by_size: true + filter_list: get_response +aggregate_metric_list: + - aggregation: mean + metric: exact_match + weight_by_size: true + filter_list: get_response +metadata: + version: 3 diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_abstract_algebra.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_abstract_algebra.yaml new file mode 100644 index 0000000000000000000000000000000000000000..17bfcafb79b113cffe93f6e90c68562b7eae7c95 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_abstract_algebra.yaml @@ -0,0 +1,7 @@ +"dataset_name": "abstract_algebra" +"description": "The following are multiple choice questions (with answers) about abstract\ + \ algebra.\n\n" +"tag": "mmlu_stem_generative" +"include": "_default_template_yaml" +"task": "mmlu_abstract_algebra_generative" +"task_alias": "abstract_algebra" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_anatomy.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_anatomy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..72afc359a495af12d3dcb2b062c6442d92d45c88 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_anatomy.yaml @@ -0,0 +1,7 @@ +"dataset_name": "anatomy" +"description": "The following are multiple choice questions (with answers) about anatomy.\n\ + \n" +"tag": "mmlu_stem_generative" +"include": "_default_template_yaml" +"task": "mmlu_anatomy_generative" +"task_alias": "anatomy" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_astronomy.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_astronomy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0b41447e74a2b95732b102bfe5ed642d3d208d2b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_astronomy.yaml @@ -0,0 +1,7 @@ +"dataset_name": "astronomy" +"description": "The following are multiple choice questions (with answers) about astronomy.\n\ + \n" +"tag": "mmlu_stem_generative" +"include": "_default_template_yaml" +"task": "mmlu_astronomy_generative" +"task_alias": "astronomy" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_business_ethics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_business_ethics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e7c15d443691af36dcdc761eb41b8673f3782d0b --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_business_ethics.yaml @@ -0,0 +1,7 @@ +"dataset_name": "business_ethics" +"description": "The following are multiple choice questions (with answers) about business\ + \ ethics.\n\n" +"tag": "mmlu_other_generative" +"include": "_default_template_yaml" +"task": "mmlu_business_ethics_generative" +"task_alias": "business_ethics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_clinical_knowledge.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_clinical_knowledge.yaml new file mode 100644 index 0000000000000000000000000000000000000000..24cd0b72d3f68fb00da90397979816b85ea1c76c --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_clinical_knowledge.yaml @@ -0,0 +1,7 @@ +"dataset_name": "clinical_knowledge" +"description": "The following are multiple choice questions (with answers) about clinical\ + \ knowledge.\n\n" +"tag": "mmlu_other_generative" +"include": "_default_template_yaml" +"task": "mmlu_clinical_knowledge_generative" +"task_alias": "clinical_knowledge" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_college_chemistry.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_college_chemistry.yaml new file mode 100644 index 0000000000000000000000000000000000000000..12d9ce3eab1332fa202cf6f99a52785865aed1a7 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_college_chemistry.yaml @@ -0,0 +1,7 @@ +"dataset_name": "college_chemistry" +"description": "The following are multiple choice questions (with answers) about college\ + \ chemistry.\n\n" +"tag": "mmlu_stem_generative" +"include": "_default_template_yaml" +"task": "mmlu_college_chemistry_generative" +"task_alias": "college_chemistry" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_college_computer_science.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_college_computer_science.yaml new file mode 100644 index 0000000000000000000000000000000000000000..73d91c52acd76bf99ce1869296257d25143ad149 --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_college_computer_science.yaml @@ -0,0 +1,7 @@ +"dataset_name": "college_computer_science" +"description": "The following are multiple choice questions (with answers) about college\ + \ computer science.\n\n" +"tag": "mmlu_stem_generative" +"include": "_default_template_yaml" +"task": "mmlu_college_computer_science_generative" +"task_alias": "college_computer_science" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_college_medicine.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_college_medicine.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0461ab7ae7dab9df6b10591fd14791a2cc3eff0f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_college_medicine.yaml @@ -0,0 +1,7 @@ +"dataset_name": "college_medicine" +"description": "The following are multiple choice questions (with answers) about college\ + \ medicine.\n\n" +"tag": "mmlu_other_generative" +"include": "_default_template_yaml" +"task": "mmlu_college_medicine_generative" +"task_alias": "college_medicine" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_conceptual_physics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_conceptual_physics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..75764a2cbf542ba09a99ae252c76a103bf534a9f --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_conceptual_physics.yaml @@ -0,0 +1,7 @@ +"dataset_name": "conceptual_physics" +"description": "The following are multiple choice questions (with answers) about conceptual\ + \ physics.\n\n" +"tag": "mmlu_stem_generative" +"include": "_default_template_yaml" +"task": "mmlu_conceptual_physics_generative" +"task_alias": "conceptual_physics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_econometrics.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_econometrics.yaml new file mode 100644 index 0000000000000000000000000000000000000000..43fec80ad3f505bedb810df609a8c6e8d2c2c0ed --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_econometrics.yaml @@ -0,0 +1,7 @@ +"dataset_name": "econometrics" +"description": "The following are multiple choice questions (with answers) about econometrics.\n\ + \n" +"tag": "mmlu_social_sciences_generative" +"include": "_default_template_yaml" +"task": "mmlu_econometrics_generative" +"task_alias": "econometrics" diff --git a/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_global_facts.yaml b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_global_facts.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b788025ad5ddf0d859fc12a0d0f139c0975b16ba --- /dev/null +++ b/lm-evaluation-harness/lm_eval/tasks/mmlu/generative/mmlu_global_facts.yaml @@ -0,0 +1,7 @@ +"dataset_name": "global_facts" +"description": "The following are multiple choice questions (with answers) about global\ + \ facts.\n\n" +"tag": "mmlu_other_generative" +"include": "_default_template_yaml" +"task": "mmlu_global_facts_generative" +"task_alias": "global_facts"