Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/mmlu_prox_cs_business.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/mmlu_prox_lite_cs_chemistry.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/mmlu_prox_lite_cs_computer_science.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/mmlu_prox_lite_cs_economics.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/mmlu_prox_lite_cs_engineering.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/mmlu_prox_lite_cs_health.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/mmlu_prox_lite_cs_history.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/mmlu_prox_lite_cs_law.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/mmlu_prox_lite_cs_other.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/mmlu_prox_lite_cs_philosophy.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/mmlu_prox_lite_cs_psychology.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/utils.py +70 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/_de_template_yaml +35 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/_mmlu_prox_lite_de.yaml +23 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_business.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_chemistry.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_computer_science.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_economics.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_engineering.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_health.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_history.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_law.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_math.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_other.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_philosophy.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_physics.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_psychology.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_biology.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_business.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_chemistry.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_computer_science.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_economics.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_engineering.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_health.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_history.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_law.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_math.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_other.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_philosophy.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_physics.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_psychology.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/utils.py +70 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/en/_en_lite_template_yaml +35 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/en/_en_template_yaml +35 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/en/_mmlu_prox_en.yaml +23 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/en/_mmlu_prox_lite_en.yaml +23 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/en/mmlu_prox_en_biology.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/en/mmlu_prox_en_business.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/en/mmlu_prox_en_chemistry.yaml +9 -0
- lm-evaluation-harness/lm_eval/tasks/mmlu_prox/en/mmlu_prox_en_computer_science.yaml +9 -0
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/mmlu_prox_cs_business.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Zde je otázka s výběrem možností k tématu obchod (s odpovědí). Přemýšlejte
|
| 2 |
+
prosím krok za krokem a svou odpověď zakončete "Odpověď je (X)", kde X je písmeno
|
| 3 |
+
správné možnosti.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _cs_template_yaml
|
| 7 |
+
task: mmlu_prox_cs_business
|
| 8 |
+
task_alias: business
|
| 9 |
+
process_docs: !function utils.process_business
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/mmlu_prox_lite_cs_chemistry.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Zde je otázka s výběrem možností k tématu chemie (s odpovědí). Přemýšlejte
|
| 2 |
+
prosím krok za krokem a svou odpověď zakončete "Odpověď je (X)", kde X je písmeno
|
| 3 |
+
správné možnosti.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _cs_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_cs_chemistry
|
| 8 |
+
task_alias: chemistry
|
| 9 |
+
process_docs: !function utils.process_chemistry
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/mmlu_prox_lite_cs_computer_science.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Zde je otázka s výběrem možností k tématu informatika (s odpovědí).
|
| 2 |
+
Přemýšlejte prosím krok za krokem a svou odpověď zakončete "Odpověď je (X)", kde
|
| 3 |
+
X je písmeno správné možnosti.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _cs_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_cs_computer_science
|
| 8 |
+
task_alias: computer_science
|
| 9 |
+
process_docs: !function utils.process_computer_science
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/mmlu_prox_lite_cs_economics.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Zde je otázka s výběrem možností k tématu ekonomie (s odpovědí). Přemýšlejte
|
| 2 |
+
prosím krok za krokem a svou odpověď zakončete "Odpověď je (X)", kde X je písmeno
|
| 3 |
+
správné možnosti.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _cs_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_cs_economics
|
| 8 |
+
task_alias: economics
|
| 9 |
+
process_docs: !function utils.process_economics
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/mmlu_prox_lite_cs_engineering.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Zde je otázka s výběrem možností k tématu inženýrství (s odpovědí).
|
| 2 |
+
Přemýšlejte prosím krok za krokem a svou odpověď zakončete "Odpověď je (X)", kde
|
| 3 |
+
X je písmeno správné možnosti.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _cs_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_cs_engineering
|
| 8 |
+
task_alias: engineering
|
| 9 |
+
process_docs: !function utils.process_engineering
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/mmlu_prox_lite_cs_health.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Zde je otázka s výběrem možností k tématu zdraví (s odpovědí). Přemýšlejte
|
| 2 |
+
prosím krok za krokem a svou odpověď zakončete "Odpověď je (X)", kde X je písmeno
|
| 3 |
+
správné možnosti.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _cs_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_cs_health
|
| 8 |
+
task_alias: health
|
| 9 |
+
process_docs: !function utils.process_health
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/mmlu_prox_lite_cs_history.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Zde je otázka s výběrem možností k tématu historie (s odpovědí). Přemýšlejte
|
| 2 |
+
prosím krok za krokem a svou odpověď zakončete "Odpověď je (X)", kde X je písmeno
|
| 3 |
+
správné možnosti.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _cs_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_cs_history
|
| 8 |
+
task_alias: history
|
| 9 |
+
process_docs: !function utils.process_history
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/mmlu_prox_lite_cs_law.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Zde je otázka s výběrem možností k tématu právo (s odpovědí). Přemýšlejte
|
| 2 |
+
prosím krok za krokem a svou odpověď zakončete "Odpověď je (X)", kde X je písmeno
|
| 3 |
+
správné možnosti.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _cs_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_cs_law
|
| 8 |
+
task_alias: law
|
| 9 |
+
process_docs: !function utils.process_law
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/mmlu_prox_lite_cs_other.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Zde je otázka s výběrem možností k tématu ostatní (s odpovědí). Přemýšlejte
|
| 2 |
+
prosím krok za krokem a svou odpověď zakončete "Odpověď je (X)", kde X je písmeno
|
| 3 |
+
správné možnosti.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _cs_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_cs_other
|
| 8 |
+
task_alias: other
|
| 9 |
+
process_docs: !function utils.process_other
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/mmlu_prox_lite_cs_philosophy.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Zde je otázka s výběrem možností k tématu filozofie (s odpovědí). Přemýšlejte
|
| 2 |
+
prosím krok za krokem a svou odpověď zakončete "Odpověď je (X)", kde X je písmeno
|
| 3 |
+
správné možnosti.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _cs_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_cs_philosophy
|
| 8 |
+
task_alias: philosophy
|
| 9 |
+
process_docs: !function utils.process_philosophy
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/mmlu_prox_lite_cs_psychology.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Zde je otázka s výběrem možností k tématu psychologie (s odpovědí).
|
| 2 |
+
Přemýšlejte prosím krok za krokem a svou odpověď zakončete "Odpověď je (X)", kde
|
| 3 |
+
X je písmeno správné možnosti.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _cs_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_cs_psychology
|
| 8 |
+
task_alias: psychology
|
| 9 |
+
process_docs: !function utils.process_psychology
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/cs/utils.py
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from functools import partial
|
| 2 |
+
from os.path import basename, dirname
|
| 3 |
+
|
| 4 |
+
from lm_eval.tasks.mmlu_prox.lang_libs import LANG_LIBS
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
lang_abbr = basename(dirname(__file__))
|
| 8 |
+
lang_dict = LANG_LIBS[lang_abbr]
|
| 9 |
+
|
| 10 |
+
choices = [
|
| 11 |
+
"A",
|
| 12 |
+
"B",
|
| 13 |
+
"C",
|
| 14 |
+
"D",
|
| 15 |
+
"E",
|
| 16 |
+
"F",
|
| 17 |
+
"G",
|
| 18 |
+
"H",
|
| 19 |
+
"I",
|
| 20 |
+
"J",
|
| 21 |
+
"K",
|
| 22 |
+
"L",
|
| 23 |
+
"M",
|
| 24 |
+
"N",
|
| 25 |
+
"O",
|
| 26 |
+
"P",
|
| 27 |
+
]
|
| 28 |
+
|
| 29 |
+
max_opt_num = 10
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
def format_cot_example(example, including_answer=True):
|
| 33 |
+
prompt = f"{lang_dict[0]}\n"
|
| 34 |
+
question = example["question"]
|
| 35 |
+
prompt += question + "\n"
|
| 36 |
+
prompt += f"{lang_dict[1]}\n"
|
| 37 |
+
for i in range(max_opt_num):
|
| 38 |
+
opt = example[f"option_{i}"]
|
| 39 |
+
if opt is not None:
|
| 40 |
+
prompt += "{}. {}\n".format(choices[i], opt)
|
| 41 |
+
if including_answer:
|
| 42 |
+
cot_content = example["cot_content"].replace(lang_dict[4], lang_dict[2])
|
| 43 |
+
prompt += cot_content + "\n\n"
|
| 44 |
+
else:
|
| 45 |
+
prompt += lang_dict[2]
|
| 46 |
+
return prompt
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
doc_to_text = partial(format_cot_example, including_answer=False)
|
| 50 |
+
fewshot_to_text = partial(format_cot_example, including_answer=True)
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
def process_docs(dataset, subject):
|
| 54 |
+
return dataset.filter(lambda x: x["category"] == subject)
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
process_biology = partial(process_docs, subject="biology")
|
| 58 |
+
process_business = partial(process_docs, subject="business")
|
| 59 |
+
process_chemistry = partial(process_docs, subject="chemistry")
|
| 60 |
+
process_computer_science = partial(process_docs, subject="computer science")
|
| 61 |
+
process_economics = partial(process_docs, subject="economics")
|
| 62 |
+
process_engineering = partial(process_docs, subject="engineering")
|
| 63 |
+
process_health = partial(process_docs, subject="health")
|
| 64 |
+
process_history = partial(process_docs, subject="history")
|
| 65 |
+
process_law = partial(process_docs, subject="law")
|
| 66 |
+
process_math = partial(process_docs, subject="math")
|
| 67 |
+
process_other = partial(process_docs, subject="other")
|
| 68 |
+
process_philosophy = partial(process_docs, subject="philosophy")
|
| 69 |
+
process_physics = partial(process_docs, subject="physics")
|
| 70 |
+
process_psychology = partial(process_docs, subject="psychology")
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/_de_template_yaml
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
dataset_path: li-lab/MMLU-ProX
|
| 2 |
+
dataset_name: de
|
| 3 |
+
test_split: test
|
| 4 |
+
fewshot_split: validation
|
| 5 |
+
fewshot_config:
|
| 6 |
+
sampler: first_n
|
| 7 |
+
doc_to_text: !function utils.fewshot_to_text
|
| 8 |
+
doc_to_target: ""
|
| 9 |
+
output_type: generate_until
|
| 10 |
+
doc_to_text: !function utils.doc_to_text
|
| 11 |
+
doc_to_target: answer
|
| 12 |
+
filter_list:
|
| 13 |
+
- name: "custom-extract"
|
| 14 |
+
filter:
|
| 15 |
+
- function: "regex"
|
| 16 |
+
regex_pattern: 'Die Antwort ist \(?([ABCDEFGHIJ])\)?'
|
| 17 |
+
- function: "take_first"
|
| 18 |
+
generation_kwargs:
|
| 19 |
+
until:
|
| 20 |
+
- "</s>"
|
| 21 |
+
- "Q:"
|
| 22 |
+
- "Frage:"
|
| 23 |
+
- "<|im_end|>"
|
| 24 |
+
do_sample: false
|
| 25 |
+
temperature: 0.0
|
| 26 |
+
max_gen_toks: 2048
|
| 27 |
+
num_fewshot: 5
|
| 28 |
+
metric_list:
|
| 29 |
+
- metric: exact_match
|
| 30 |
+
aggregation: mean
|
| 31 |
+
higher_is_better: true
|
| 32 |
+
ignore_case: true
|
| 33 |
+
ignore_punctuation: true
|
| 34 |
+
metadata:
|
| 35 |
+
version: 0.0
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/_mmlu_prox_lite_de.yaml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
group: mmlu_prox_lite_de
|
| 2 |
+
task:
|
| 3 |
+
- mmlu_prox_lite_de_biology
|
| 4 |
+
- mmlu_prox_lite_de_business
|
| 5 |
+
- mmlu_prox_lite_de_chemistry
|
| 6 |
+
- mmlu_prox_lite_de_computer_science
|
| 7 |
+
- mmlu_prox_lite_de_economics
|
| 8 |
+
- mmlu_prox_lite_de_engineering
|
| 9 |
+
- mmlu_prox_lite_de_health
|
| 10 |
+
- mmlu_prox_lite_de_history
|
| 11 |
+
- mmlu_prox_lite_de_law
|
| 12 |
+
- mmlu_prox_lite_de_math
|
| 13 |
+
- mmlu_prox_lite_de_other
|
| 14 |
+
- mmlu_prox_lite_de_philosophy
|
| 15 |
+
- mmlu_prox_lite_de_physics
|
| 16 |
+
- mmlu_prox_lite_de_psychology
|
| 17 |
+
aggregate_metric_list:
|
| 18 |
+
- aggregation: mean
|
| 19 |
+
metric: exact_match
|
| 20 |
+
weight_by_size: true
|
| 21 |
+
filter_list: custom-extract
|
| 22 |
+
metadata:
|
| 23 |
+
version: 0.0
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_business.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Wirtschaft.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_template_yaml
|
| 7 |
+
task: mmlu_prox_de_business
|
| 8 |
+
task_alias: business
|
| 9 |
+
process_docs: !function utils.process_business
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_chemistry.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Chemie.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_template_yaml
|
| 7 |
+
task: mmlu_prox_de_chemistry
|
| 8 |
+
task_alias: chemistry
|
| 9 |
+
process_docs: !function utils.process_chemistry
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_computer_science.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Informatik.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_template_yaml
|
| 7 |
+
task: mmlu_prox_de_computer_science
|
| 8 |
+
task_alias: computer_science
|
| 9 |
+
process_docs: !function utils.process_computer_science
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_economics.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Ökonomie.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_template_yaml
|
| 7 |
+
task: mmlu_prox_de_economics
|
| 8 |
+
task_alias: economics
|
| 9 |
+
process_docs: !function utils.process_economics
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_engineering.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Ingenieurwesen.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_template_yaml
|
| 7 |
+
task: mmlu_prox_de_engineering
|
| 8 |
+
task_alias: engineering
|
| 9 |
+
process_docs: !function utils.process_engineering
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_health.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Gesundheit.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_template_yaml
|
| 7 |
+
task: mmlu_prox_de_health
|
| 8 |
+
task_alias: health
|
| 9 |
+
process_docs: !function utils.process_health
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_history.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Geschichte.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_template_yaml
|
| 7 |
+
task: mmlu_prox_de_history
|
| 8 |
+
task_alias: history
|
| 9 |
+
process_docs: !function utils.process_history
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_law.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Recht. Denken
|
| 2 |
+
Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort ist (X)",
|
| 3 |
+
wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_template_yaml
|
| 7 |
+
task: mmlu_prox_de_law
|
| 8 |
+
task_alias: law
|
| 9 |
+
process_docs: !function utils.process_law
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_math.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Mathematik.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_template_yaml
|
| 7 |
+
task: mmlu_prox_de_math
|
| 8 |
+
task_alias: math
|
| 9 |
+
process_docs: !function utils.process_math
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_other.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Sonstiges.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_template_yaml
|
| 7 |
+
task: mmlu_prox_de_other
|
| 8 |
+
task_alias: other
|
| 9 |
+
process_docs: !function utils.process_other
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_philosophy.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Philosophie.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_template_yaml
|
| 7 |
+
task: mmlu_prox_de_philosophy
|
| 8 |
+
task_alias: philosophy
|
| 9 |
+
process_docs: !function utils.process_philosophy
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_physics.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Physik.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_template_yaml
|
| 7 |
+
task: mmlu_prox_de_physics
|
| 8 |
+
task_alias: physics
|
| 9 |
+
process_docs: !function utils.process_physics
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_de_psychology.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Psychologie.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_template_yaml
|
| 7 |
+
task: mmlu_prox_de_psychology
|
| 8 |
+
task_alias: psychology
|
| 9 |
+
process_docs: !function utils.process_psychology
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_biology.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Biologie.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_de_biology
|
| 8 |
+
task_alias: biology
|
| 9 |
+
process_docs: !function utils.process_biology
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_business.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Wirtschaft.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_de_business
|
| 8 |
+
task_alias: business
|
| 9 |
+
process_docs: !function utils.process_business
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_chemistry.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Chemie.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_de_chemistry
|
| 8 |
+
task_alias: chemistry
|
| 9 |
+
process_docs: !function utils.process_chemistry
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_computer_science.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Informatik.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_de_computer_science
|
| 8 |
+
task_alias: computer_science
|
| 9 |
+
process_docs: !function utils.process_computer_science
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_economics.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Ökonomie.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_de_economics
|
| 8 |
+
task_alias: economics
|
| 9 |
+
process_docs: !function utils.process_economics
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_engineering.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Ingenieurwesen.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_de_engineering
|
| 8 |
+
task_alias: engineering
|
| 9 |
+
process_docs: !function utils.process_engineering
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_health.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Gesundheit.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_de_health
|
| 8 |
+
task_alias: health
|
| 9 |
+
process_docs: !function utils.process_health
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_history.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Geschichte.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_de_history
|
| 8 |
+
task_alias: history
|
| 9 |
+
process_docs: !function utils.process_history
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_law.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Recht. Denken
|
| 2 |
+
Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort ist (X)",
|
| 3 |
+
wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_de_law
|
| 8 |
+
task_alias: law
|
| 9 |
+
process_docs: !function utils.process_law
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_math.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Mathematik.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_de_math
|
| 8 |
+
task_alias: math
|
| 9 |
+
process_docs: !function utils.process_math
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_other.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Sonstiges.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_de_other
|
| 8 |
+
task_alias: other
|
| 9 |
+
process_docs: !function utils.process_other
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_philosophy.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Philosophie.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_de_philosophy
|
| 8 |
+
task_alias: philosophy
|
| 9 |
+
process_docs: !function utils.process_philosophy
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_physics.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Physik.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_de_physics
|
| 8 |
+
task_alias: physics
|
| 9 |
+
process_docs: !function utils.process_physics
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/mmlu_prox_lite_de_psychology.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'Im Folgenden sind Multiple-Choice-Fragen (mit Antworten) zu Psychologie.
|
| 2 |
+
Denken Sie Schritt für Schritt nach und beenden Sie Ihre Antwort mit "Die Antwort
|
| 3 |
+
ist (X)", wobei X der richtige Buchstabe ist.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _de_lite_template_yaml
|
| 7 |
+
task: mmlu_prox_lite_de_psychology
|
| 8 |
+
task_alias: psychology
|
| 9 |
+
process_docs: !function utils.process_psychology
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/de/utils.py
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from functools import partial
|
| 2 |
+
from os.path import basename, dirname
|
| 3 |
+
|
| 4 |
+
from lm_eval.tasks.mmlu_prox.lang_libs import LANG_LIBS
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
lang_abbr = basename(dirname(__file__))
|
| 8 |
+
lang_dict = LANG_LIBS[lang_abbr]
|
| 9 |
+
|
| 10 |
+
choices = [
|
| 11 |
+
"A",
|
| 12 |
+
"B",
|
| 13 |
+
"C",
|
| 14 |
+
"D",
|
| 15 |
+
"E",
|
| 16 |
+
"F",
|
| 17 |
+
"G",
|
| 18 |
+
"H",
|
| 19 |
+
"I",
|
| 20 |
+
"J",
|
| 21 |
+
"K",
|
| 22 |
+
"L",
|
| 23 |
+
"M",
|
| 24 |
+
"N",
|
| 25 |
+
"O",
|
| 26 |
+
"P",
|
| 27 |
+
]
|
| 28 |
+
|
| 29 |
+
max_opt_num = 10
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
def format_cot_example(example, including_answer=True):
|
| 33 |
+
prompt = f"{lang_dict[0]}\n"
|
| 34 |
+
question = example["question"]
|
| 35 |
+
prompt += question + "\n"
|
| 36 |
+
prompt += f"{lang_dict[1]}\n"
|
| 37 |
+
for i in range(max_opt_num):
|
| 38 |
+
opt = example[f"option_{i}"]
|
| 39 |
+
if opt is not None:
|
| 40 |
+
prompt += "{}. {}\n".format(choices[i], opt)
|
| 41 |
+
if including_answer:
|
| 42 |
+
cot_content = example["cot_content"].replace(lang_dict[4], lang_dict[2])
|
| 43 |
+
prompt += cot_content + "\n\n"
|
| 44 |
+
else:
|
| 45 |
+
prompt += lang_dict[2]
|
| 46 |
+
return prompt
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
doc_to_text = partial(format_cot_example, including_answer=False)
|
| 50 |
+
fewshot_to_text = partial(format_cot_example, including_answer=True)
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
def process_docs(dataset, subject):
|
| 54 |
+
return dataset.filter(lambda x: x["category"] == subject)
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
process_biology = partial(process_docs, subject="biology")
|
| 58 |
+
process_business = partial(process_docs, subject="business")
|
| 59 |
+
process_chemistry = partial(process_docs, subject="chemistry")
|
| 60 |
+
process_computer_science = partial(process_docs, subject="computer science")
|
| 61 |
+
process_economics = partial(process_docs, subject="economics")
|
| 62 |
+
process_engineering = partial(process_docs, subject="engineering")
|
| 63 |
+
process_health = partial(process_docs, subject="health")
|
| 64 |
+
process_history = partial(process_docs, subject="history")
|
| 65 |
+
process_law = partial(process_docs, subject="law")
|
| 66 |
+
process_math = partial(process_docs, subject="math")
|
| 67 |
+
process_other = partial(process_docs, subject="other")
|
| 68 |
+
process_philosophy = partial(process_docs, subject="philosophy")
|
| 69 |
+
process_physics = partial(process_docs, subject="physics")
|
| 70 |
+
process_psychology = partial(process_docs, subject="psychology")
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/en/_en_lite_template_yaml
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
dataset_path: li-lab/MMLU-ProX-Lite
|
| 2 |
+
dataset_name: en
|
| 3 |
+
test_split: test
|
| 4 |
+
fewshot_split: validation
|
| 5 |
+
fewshot_config:
|
| 6 |
+
sampler: first_n
|
| 7 |
+
doc_to_text: !function utils.fewshot_to_text
|
| 8 |
+
doc_to_target: ""
|
| 9 |
+
output_type: generate_until
|
| 10 |
+
doc_to_text: !function utils.doc_to_text
|
| 11 |
+
doc_to_target: answer
|
| 12 |
+
filter_list:
|
| 13 |
+
- name: "custom-extract"
|
| 14 |
+
filter:
|
| 15 |
+
- function: "regex"
|
| 16 |
+
regex_pattern: 'answer is \(?([ABCDEFGHIJ])\)?'
|
| 17 |
+
- function: "take_first"
|
| 18 |
+
generation_kwargs:
|
| 19 |
+
until:
|
| 20 |
+
- "</s>"
|
| 21 |
+
- "Q:"
|
| 22 |
+
- "Question:"
|
| 23 |
+
- "<|im_end|>"
|
| 24 |
+
do_sample: false
|
| 25 |
+
temperature: 0.0
|
| 26 |
+
max_gen_toks: 2048
|
| 27 |
+
num_fewshot: 5
|
| 28 |
+
metric_list:
|
| 29 |
+
- metric: exact_match
|
| 30 |
+
aggregation: mean
|
| 31 |
+
higher_is_better: true
|
| 32 |
+
ignore_case: true
|
| 33 |
+
ignore_punctuation: true
|
| 34 |
+
metadata:
|
| 35 |
+
version: 0.0
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/en/_en_template_yaml
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
dataset_path: li-lab/MMLU-ProX
|
| 2 |
+
dataset_name: en
|
| 3 |
+
test_split: test
|
| 4 |
+
fewshot_split: validation
|
| 5 |
+
fewshot_config:
|
| 6 |
+
sampler: first_n
|
| 7 |
+
doc_to_text: !function utils.fewshot_to_text
|
| 8 |
+
doc_to_target: ""
|
| 9 |
+
output_type: generate_until
|
| 10 |
+
doc_to_text: !function utils.doc_to_text
|
| 11 |
+
doc_to_target: answer
|
| 12 |
+
filter_list:
|
| 13 |
+
- name: "custom-extract"
|
| 14 |
+
filter:
|
| 15 |
+
- function: "regex"
|
| 16 |
+
regex_pattern: 'answer is \(?([ABCDEFGHIJ])\)?'
|
| 17 |
+
- function: "take_first"
|
| 18 |
+
generation_kwargs:
|
| 19 |
+
until:
|
| 20 |
+
- "</s>"
|
| 21 |
+
- "Q:"
|
| 22 |
+
- "Question:"
|
| 23 |
+
- "<|im_end|>"
|
| 24 |
+
do_sample: false
|
| 25 |
+
temperature: 0.0
|
| 26 |
+
max_gen_toks: 2048
|
| 27 |
+
num_fewshot: 5
|
| 28 |
+
metric_list:
|
| 29 |
+
- metric: exact_match
|
| 30 |
+
aggregation: mean
|
| 31 |
+
higher_is_better: true
|
| 32 |
+
ignore_case: true
|
| 33 |
+
ignore_punctuation: true
|
| 34 |
+
metadata:
|
| 35 |
+
version: 0.0
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/en/_mmlu_prox_en.yaml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
group: mmlu_prox_en
|
| 2 |
+
task:
|
| 3 |
+
- mmlu_prox_en_biology
|
| 4 |
+
- mmlu_prox_en_business
|
| 5 |
+
- mmlu_prox_en_chemistry
|
| 6 |
+
- mmlu_prox_en_computer_science
|
| 7 |
+
- mmlu_prox_en_economics
|
| 8 |
+
- mmlu_prox_en_engineering
|
| 9 |
+
- mmlu_prox_en_health
|
| 10 |
+
- mmlu_prox_en_history
|
| 11 |
+
- mmlu_prox_en_law
|
| 12 |
+
- mmlu_prox_en_math
|
| 13 |
+
- mmlu_prox_en_other
|
| 14 |
+
- mmlu_prox_en_philosophy
|
| 15 |
+
- mmlu_prox_en_physics
|
| 16 |
+
- mmlu_prox_en_psychology
|
| 17 |
+
aggregate_metric_list:
|
| 18 |
+
- aggregation: mean
|
| 19 |
+
metric: exact_match
|
| 20 |
+
weight_by_size: true
|
| 21 |
+
filter_list: custom-extract
|
| 22 |
+
metadata:
|
| 23 |
+
version: 0.0
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/en/_mmlu_prox_lite_en.yaml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
group: mmlu_prox_lite_en
|
| 2 |
+
task:
|
| 3 |
+
- mmlu_prox_lite_en_biology
|
| 4 |
+
- mmlu_prox_lite_en_business
|
| 5 |
+
- mmlu_prox_lite_en_chemistry
|
| 6 |
+
- mmlu_prox_lite_en_computer_science
|
| 7 |
+
- mmlu_prox_lite_en_economics
|
| 8 |
+
- mmlu_prox_lite_en_engineering
|
| 9 |
+
- mmlu_prox_lite_en_health
|
| 10 |
+
- mmlu_prox_lite_en_history
|
| 11 |
+
- mmlu_prox_lite_en_law
|
| 12 |
+
- mmlu_prox_lite_en_math
|
| 13 |
+
- mmlu_prox_lite_en_other
|
| 14 |
+
- mmlu_prox_lite_en_philosophy
|
| 15 |
+
- mmlu_prox_lite_en_physics
|
| 16 |
+
- mmlu_prox_lite_en_psychology
|
| 17 |
+
aggregate_metric_list:
|
| 18 |
+
- aggregation: mean
|
| 19 |
+
metric: exact_match
|
| 20 |
+
weight_by_size: true
|
| 21 |
+
filter_list: custom-extract
|
| 22 |
+
metadata:
|
| 23 |
+
version: 0.0
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/en/mmlu_prox_en_biology.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'The following are multiple choice questions (with answers) about biology.
|
| 2 |
+
Think step by step and then finish your answer with "the answer is (X)" where X
|
| 3 |
+
is the correct letter choice.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _en_template_yaml
|
| 7 |
+
task: mmlu_prox_en_biology
|
| 8 |
+
task_alias: biology
|
| 9 |
+
process_docs: !function utils.process_biology
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/en/mmlu_prox_en_business.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'The following are multiple choice questions (with answers) about business.
|
| 2 |
+
Think step by step and then finish your answer with "the answer is (X)" where X
|
| 3 |
+
is the correct letter choice.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _en_template_yaml
|
| 7 |
+
task: mmlu_prox_en_business
|
| 8 |
+
task_alias: business
|
| 9 |
+
process_docs: !function utils.process_business
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/en/mmlu_prox_en_chemistry.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'The following are multiple choice questions (with answers) about chemistry.
|
| 2 |
+
Think step by step and then finish your answer with "the answer is (X)" where X
|
| 3 |
+
is the correct letter choice.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _en_template_yaml
|
| 7 |
+
task: mmlu_prox_en_chemistry
|
| 8 |
+
task_alias: chemistry
|
| 9 |
+
process_docs: !function utils.process_chemistry
|
lm-evaluation-harness/lm_eval/tasks/mmlu_prox/en/mmlu_prox_en_computer_science.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
description: 'The following are multiple choice questions (with answers) about computer_science.
|
| 2 |
+
Think step by step and then finish your answer with "the answer is (X)" where X
|
| 3 |
+
is the correct letter choice.
|
| 4 |
+
|
| 5 |
+
'
|
| 6 |
+
include: _en_template_yaml
|
| 7 |
+
task: mmlu_prox_en_computer_science
|
| 8 |
+
task_alias: computer_science
|
| 9 |
+
process_docs: !function utils.process_computer_science
|