Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/README.md +50 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/_aclue.yaml +26 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/_default_template_yaml +18 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/_generate_configs.py +82 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_ancient_chinese_culture.yaml +4 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_ancient_literature.yaml +4 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_ancient_medical.yaml +4 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_ancient_phonetics.yaml +4 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_basic_ancient_chinese.yaml +4 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_couplet_prediction.yaml +4 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_homographic_character_resolution.yaml +4 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_named_entity_recognition.yaml +4 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_poetry_appreciate.yaml +4 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_poetry_context_prediction.yaml +4 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_poetry_quality_assessment.yaml +4 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_poetry_sentiment_analysis.yaml +4 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_polysemy_resolution.yaml +4 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_reading_comprehension.yaml +4 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_sentence_segmentation.yaml +4 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/README.md +52 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_amh.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_eng.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_ewe.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_fra.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_hau.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_ibo.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_kin.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_lin.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_lug.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_orm.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_sna.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_sot.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_swa.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_twi.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_wol.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_xho.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_yor.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_zul.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/direct_yaml +37 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_amh.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_eng.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_ewe.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_fra.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_hau.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_ibo.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_kin.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_lin.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_lug.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_orm.yaml +12 -0
- testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_sna.yaml +12 -0
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ACLUE
|
| 2 |
+
|
| 3 |
+
### Paper
|
| 4 |
+
|
| 5 |
+
Can Large Language Model Comprehend Ancient Chinese? A Preliminary Test on ACLUE
|
| 6 |
+
https://arxiv.org/abs/2310.09550
|
| 7 |
+
|
| 8 |
+
The Ancient Chinese Language Understanding Evaluation (ACLUE) is an evaluation benchmark focused on ancient Chinese language comprehension. It aims to assess the performance of large-scale language models on understanding ancient Chinese. The benchmark comprises 15 tasks spanning various domains, including lexical, syntactic, semantic, inference, and knowledge. ACLUE's tasks are derived from a combination of manually curated questions from publicly available resources, and automatically
|
| 9 |
+
generated questions from classical Chinese language corpora. The range of questions span from the Xia dynasty (2070 BCE) to the Ming dynasty (1368 CE). ACLUE adopts a multiple-choice question format for all tasks.
|
| 10 |
+
|
| 11 |
+
Homepage: https://github.com/isen-zhang/ACLUE
|
| 12 |
+
|
| 13 |
+
### Citation
|
| 14 |
+
|
| 15 |
+
```bibtex
|
| 16 |
+
@inproceedings{zhang-li-2023-large,
|
| 17 |
+
title = "Can Large Language Model Comprehend {A}ncient {C}hinese? A Preliminary Test on {ACLUE}",
|
| 18 |
+
author = "Zhang, Yixuan and Li, Haonan",
|
| 19 |
+
booktitle = "Proceedings of the Ancient Language Processing Workshop",
|
| 20 |
+
month = sep,
|
| 21 |
+
year = "2023",
|
| 22 |
+
address = "Varna, Bulgaria",
|
| 23 |
+
publisher = "INCOMA Ltd., Shoumen, Bulgaria",
|
| 24 |
+
url = "https://aclanthology.org/2023.alp-1.9",
|
| 25 |
+
pages = "80--87"
|
| 26 |
+
}
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
### Groups, Tags, and Tasks
|
| 30 |
+
|
| 31 |
+
#### Groups
|
| 32 |
+
|
| 33 |
+
- `aclue`: All 15 subjects of the ACLUE dataset, evaluated following the methodology in CMMLU's original implementation.
|
| 34 |
+
|
| 35 |
+
#### Tasks
|
| 36 |
+
|
| 37 |
+
The following tasks evaluate subjects in the ACLUE dataset using loglikelihood-based multiple-choice scoring:
|
| 38 |
+
- `aclue_{subject_english}`
|
| 39 |
+
|
| 40 |
+
### Checklist
|
| 41 |
+
|
| 42 |
+
* [x] Is the task an existing benchmark in the literature?
|
| 43 |
+
* [x] Have you referenced the original paper that introduced the task?
|
| 44 |
+
* [x] If yes, does the original paper provide a reference implementation?
|
| 45 |
+
* [x] Yes, original implementation contributed by author of the benchmark
|
| 46 |
+
|
| 47 |
+
If other tasks on this dataset are already supported:
|
| 48 |
+
* [x] Is the "Main" variant of this task clearly denoted?
|
| 49 |
+
* [x] Have you provided a short sentence in a README on what each new variant adds / evaluates?
|
| 50 |
+
* [x] Have you noted which, if any, published evaluation setups are matched by this variant?
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/_aclue.yaml
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
group: aclue
|
| 2 |
+
task:
|
| 3 |
+
- aclue_ancient_chinese_culture
|
| 4 |
+
- aclue_ancient_literature
|
| 5 |
+
- aclue_ancient_medical
|
| 6 |
+
- aclue_ancient_phonetics
|
| 7 |
+
- aclue_basic_ancient_chinese
|
| 8 |
+
- aclue_couplet_prediction
|
| 9 |
+
- aclue_homographic_character_resolution
|
| 10 |
+
- aclue_named_entity_recognition
|
| 11 |
+
- aclue_poetry_appreciate
|
| 12 |
+
- aclue_poetry_context_prediction
|
| 13 |
+
- aclue_poetry_quality_assessment
|
| 14 |
+
- aclue_poetry_sentiment_analysis
|
| 15 |
+
- aclue_polysemy_resolution
|
| 16 |
+
- aclue_reading_comprehension
|
| 17 |
+
- aclue_sentence_segmentation
|
| 18 |
+
aggregate_metric_list:
|
| 19 |
+
- metric: acc
|
| 20 |
+
aggregation: mean
|
| 21 |
+
weight_by_size: true
|
| 22 |
+
- metric: acc_norm
|
| 23 |
+
aggregation: mean
|
| 24 |
+
weight_by_size: true
|
| 25 |
+
metadata:
|
| 26 |
+
version: 1.0
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/_default_template_yaml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
dataset_path: tyouisen/aclue
|
| 2 |
+
test_split: test
|
| 3 |
+
fewshot_split: dev
|
| 4 |
+
fewshot_config:
|
| 5 |
+
sampler: first_n
|
| 6 |
+
output_type: multiple_choice
|
| 7 |
+
doc_to_text: "{{Question.strip()}}\nA. {{A}}\nB. {{B}}\nC. {{C}}\nD. {{D}}\n答案:"
|
| 8 |
+
doc_to_choice: ["A", "B", "C", "D"]
|
| 9 |
+
doc_to_target: "{{['A', 'B', 'C', 'D'].index(Answer)}}"
|
| 10 |
+
metric_list:
|
| 11 |
+
- metric: acc
|
| 12 |
+
aggregation: mean
|
| 13 |
+
higher_is_better: true
|
| 14 |
+
- metric: acc_norm
|
| 15 |
+
aggregation: mean
|
| 16 |
+
higher_is_better: true
|
| 17 |
+
metadata:
|
| 18 |
+
version: 1.0
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/_generate_configs.py
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Take in a YAML, and output all other splits with this YAML
|
| 3 |
+
"""
|
| 4 |
+
|
| 5 |
+
import argparse
|
| 6 |
+
import os
|
| 7 |
+
|
| 8 |
+
import yaml
|
| 9 |
+
from tqdm import tqdm
|
| 10 |
+
|
| 11 |
+
from lm_eval.utils import eval_logger
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
SUBJECTS = {
|
| 15 |
+
"古文单字多义": "polysemy_resolution",
|
| 16 |
+
"诗词情感分类": "poetry_sentiment_analysis",
|
| 17 |
+
"古汉语命名体识别": "named_entity_recognition",
|
| 18 |
+
"古汉语知识": "basic_ancient_chinese",
|
| 19 |
+
"古诗词上下句预测": "poetry_context_prediction",
|
| 20 |
+
"古文断句": "sentence_segmentation",
|
| 21 |
+
"对联": "couplet_prediction",
|
| 22 |
+
"古诗词曲鉴赏": "poetry_appreciate",
|
| 23 |
+
"国学常识": "ancient_chinese_culture",
|
| 24 |
+
"古音学": "ancient_phonetics",
|
| 25 |
+
"通假字": "homographic_character_resolution",
|
| 26 |
+
"古代文学知识": "ancient_literature",
|
| 27 |
+
"医古文": "ancient_medical",
|
| 28 |
+
"古诗词质量评估": "poetry_quality_assessment",
|
| 29 |
+
"古文阅读理解": "reading_comprehension",
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
def parse_args():
|
| 34 |
+
parser = argparse.ArgumentParser()
|
| 35 |
+
parser.add_argument("--base_yaml_path", required=True)
|
| 36 |
+
parser.add_argument("--save_prefix_path", default="aclue")
|
| 37 |
+
parser.add_argument("--cot_prompt_path", default=None)
|
| 38 |
+
parser.add_argument("--task_prefix", default="")
|
| 39 |
+
return parser.parse_args()
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
if __name__ == "__main__":
|
| 43 |
+
args = parse_args()
|
| 44 |
+
|
| 45 |
+
# get filename of base_yaml so we can `"include": ` it in our other YAMLs.
|
| 46 |
+
base_yaml_name = os.path.split(args.base_yaml_path)[-1]
|
| 47 |
+
with open(args.base_yaml_path, encoding="utf-8") as f:
|
| 48 |
+
base_yaml = yaml.full_load(f)
|
| 49 |
+
|
| 50 |
+
if args.cot_prompt_path is not None:
|
| 51 |
+
import json
|
| 52 |
+
|
| 53 |
+
with open(args.cot_prompt_path, encoding="utf-8") as f:
|
| 54 |
+
cot_file = json.load(f)
|
| 55 |
+
|
| 56 |
+
for subject_zh, subject_eng in tqdm(SUBJECTS.items()):
|
| 57 |
+
if args.cot_prompt_path is not None:
|
| 58 |
+
description = cot_file[subject_eng]
|
| 59 |
+
else:
|
| 60 |
+
description = (
|
| 61 |
+
f"以下是关于{subject_zh}的单项选择题,请直接给出正确答案的选项。\n\n"
|
| 62 |
+
)
|
| 63 |
+
|
| 64 |
+
yaml_dict = {
|
| 65 |
+
"include": base_yaml_name,
|
| 66 |
+
"task": f"aclue_{args.task_prefix}_{subject_eng}"
|
| 67 |
+
if args.task_prefix != ""
|
| 68 |
+
else f"aclue_{subject_eng}",
|
| 69 |
+
"dataset_name": subject_eng,
|
| 70 |
+
"description": description,
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
file_save_path = args.save_prefix_path + f"_{subject_eng}.yaml"
|
| 74 |
+
eval_logger.info(f"Saving yaml for subset {subject_eng} to {file_save_path}")
|
| 75 |
+
with open(file_save_path, "w", encoding="utf-8") as yaml_file:
|
| 76 |
+
yaml.dump(
|
| 77 |
+
yaml_dict,
|
| 78 |
+
yaml_file,
|
| 79 |
+
width=float("inf"),
|
| 80 |
+
allow_unicode=True,
|
| 81 |
+
default_style='"',
|
| 82 |
+
)
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_ancient_chinese_culture.yaml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"dataset_name": "ancient_chinese_culture"
|
| 2 |
+
"description": "以下是关于国学常识的单项选择题,请直接给出正确答案的选项。\n\n"
|
| 3 |
+
"include": "_default_template_yaml"
|
| 4 |
+
"task": "aclue_ancient_chinese_culture"
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_ancient_literature.yaml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"dataset_name": "ancient_literature"
|
| 2 |
+
"description": "以下是关于古代文学知识的单项选择题,请直接给出正确答案的选项。\n\n"
|
| 3 |
+
"include": "_default_template_yaml"
|
| 4 |
+
"task": "aclue_ancient_literature"
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_ancient_medical.yaml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"dataset_name": "ancient_medical"
|
| 2 |
+
"description": "以下是关于医古文的单项选择题,请直接给出正确答案的选项。\n\n"
|
| 3 |
+
"include": "_default_template_yaml"
|
| 4 |
+
"task": "aclue_ancient_medical"
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_ancient_phonetics.yaml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"dataset_name": "ancient_phonetics"
|
| 2 |
+
"description": "以下是关于古音学的单项选择题,请直接给出正确答案的选项。\n\n"
|
| 3 |
+
"include": "_default_template_yaml"
|
| 4 |
+
"task": "aclue_ancient_phonetics"
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_basic_ancient_chinese.yaml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"dataset_name": "basic_ancient_chinese"
|
| 2 |
+
"description": "以下是关于古汉语知识的单项选择题,请直接给出正确答案的选项。\n\n"
|
| 3 |
+
"include": "_default_template_yaml"
|
| 4 |
+
"task": "aclue_basic_ancient_chinese"
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_couplet_prediction.yaml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"dataset_name": "couplet_prediction"
|
| 2 |
+
"description": "以下是关于对联的单项选择题,请直接给出正确答案的选项。\n\n"
|
| 3 |
+
"include": "_default_template_yaml"
|
| 4 |
+
"task": "aclue_couplet_prediction"
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_homographic_character_resolution.yaml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"dataset_name": "homographic_character_resolution"
|
| 2 |
+
"description": "以下是关于通假字的单项选择题,请直接给出正确答案的选项。\n\n"
|
| 3 |
+
"include": "_default_template_yaml"
|
| 4 |
+
"task": "aclue_homographic_character_resolution"
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_named_entity_recognition.yaml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"dataset_name": "named_entity_recognition"
|
| 2 |
+
"description": "以下是关于古汉语命名体识别的单项选择题,请直接给出正确答案的选项。\n\n"
|
| 3 |
+
"include": "_default_template_yaml"
|
| 4 |
+
"task": "aclue_named_entity_recognition"
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_poetry_appreciate.yaml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"dataset_name": "poetry_appreciate"
|
| 2 |
+
"description": "以下是关于古诗词曲鉴赏的单项选择题,请直接给出正确答案的选项。\n\n"
|
| 3 |
+
"include": "_default_template_yaml"
|
| 4 |
+
"task": "aclue_poetry_appreciate"
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_poetry_context_prediction.yaml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"dataset_name": "poetry_context_prediction"
|
| 2 |
+
"description": "以下是关于古诗词上下句预测的单项选择题,请直接给出正确答案的选项。\n\n"
|
| 3 |
+
"include": "_default_template_yaml"
|
| 4 |
+
"task": "aclue_poetry_context_prediction"
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_poetry_quality_assessment.yaml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"dataset_name": "poetry_quality_assessment"
|
| 2 |
+
"description": "以下是关于古诗词质量评估的单项选择题,请直接给出正确答案的选项。\n\n"
|
| 3 |
+
"include": "_default_template_yaml"
|
| 4 |
+
"task": "aclue_poetry_quality_assessment"
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_poetry_sentiment_analysis.yaml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"dataset_name": "poetry_sentiment_analysis"
|
| 2 |
+
"description": "以下是关于诗词情感分类的单项选择题,请直接给出正确答案的选项。\n\n"
|
| 3 |
+
"include": "_default_template_yaml"
|
| 4 |
+
"task": "aclue_poetry_sentiment_analysis"
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_polysemy_resolution.yaml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"dataset_name": "polysemy_resolution"
|
| 2 |
+
"description": "以下是关于古文单字多义的单项选择题,请直接给出正确答案的选项。\n\n"
|
| 3 |
+
"include": "_default_template_yaml"
|
| 4 |
+
"task": "aclue_polysemy_resolution"
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_reading_comprehension.yaml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"dataset_name": "reading_comprehension"
|
| 2 |
+
"description": "以下是关于古文阅读理解的单项选择题,请直接给出正确答案的选项。\n\n"
|
| 3 |
+
"include": "_default_template_yaml"
|
| 4 |
+
"task": "aclue_reading_comprehension"
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/aclue/aclue_sentence_segmentation.yaml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"dataset_name": "sentence_segmentation"
|
| 2 |
+
"description": "以下是关于古文断句的单项选择题,请直接给出正确答案的选项。\n\n"
|
| 3 |
+
"include": "_default_template_yaml"
|
| 4 |
+
"task": "aclue_sentence_segmentation"
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/README.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MathQA
|
| 2 |
+
|
| 3 |
+
### Paper
|
| 4 |
+
|
| 5 |
+
IrokoBench: A New Benchmark for African Languages in the Age of Large Language Models
|
| 6 |
+
https://arxiv.org/pdf/2406.03368
|
| 7 |
+
|
| 8 |
+
IrokoBench is a human-translated benchmark dataset for 16 typologically diverse
|
| 9 |
+
low-resource African languages covering three tasks: natural language inference (AfriXNLI),
|
| 10 |
+
mathematical reasoning (AfriMGSM), and multi-choice knowledge-based QA (AfriMMLU).
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
### Citation
|
| 14 |
+
|
| 15 |
+
```
|
| 16 |
+
@misc{adelani2024irokobenchnewbenchmarkafrican,
|
| 17 |
+
title={IrokoBench: A New Benchmark for African Languages in the Age of Large Language Models},
|
| 18 |
+
author={David Ifeoluwa Adelani and Jessica Ojo and Israel Abebe Azime and Jian Yun Zhuang and Jesujoba O. Alabi and Xuanli He and Millicent Ochieng and Sara Hooker and Andiswa Bukula and En-Shiun Annie Lee and Chiamaka Chukwuneke and Happy Buzaaba and Blessing Sibanda and Godson Kalipe and Jonathan Mukiibi and Salomon Kabongo and Foutse Yuehgoh and Mmasibidi Setaka and Lolwethu Ndolela and Nkiruka Odu and Rooweither Mabuya and Shamsuddeen Hassan Muhammad and Salomey Osei and Sokhar Samb and Tadesse Kebede Guge and Pontus Stenetorp},
|
| 19 |
+
year={2024},
|
| 20 |
+
eprint={2406.03368},
|
| 21 |
+
archivePrefix={arXiv},
|
| 22 |
+
primaryClass={cs.CL},
|
| 23 |
+
url={https://arxiv.org/abs/2406.03368},
|
| 24 |
+
}
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
### Groups and Tasks
|
| 28 |
+
|
| 29 |
+
#### Groups
|
| 30 |
+
|
| 31 |
+
* `afrimgsm`: All afrimgsm tasks
|
| 32 |
+
* `afrimgsm_direct`: afrimgsm_direct evaluates models performance on the curated dataset
|
| 33 |
+
* `afrimgsm_en_cot`: afrimgsm_en_cot includes 5-shot of exemplars for chain-of-thought approach
|
| 34 |
+
* `afrimgsm_translate`: afrimgsm_translate evaluates models in translate-test setting
|
| 35 |
+
|
| 36 |
+
#### Tasks
|
| 37 |
+
* `afrimgsm_direct_{language_code}`: each task evaluates for one language
|
| 38 |
+
* `afrimgsm_en_cot_{language_code}`: each task evaluates for one language
|
| 39 |
+
* `afrimgsm_translate_{language_code}`: each task evaluates for one language
|
| 40 |
+
|
| 41 |
+
### Checklist
|
| 42 |
+
|
| 43 |
+
For adding novel benchmarks/datasets to the library:
|
| 44 |
+
* [x] Is the task an existing benchmark in the literature?
|
| 45 |
+
* [x] Have you referenced the original paper that introduced the task?
|
| 46 |
+
* [ ] 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?
|
| 47 |
+
|
| 48 |
+
If other tasks on this dataset are already supported:
|
| 49 |
+
* [x] Is the "Main" variant of this task clearly denoted?
|
| 50 |
+
* [x] Have you provided a short sentence in a README on what each new variant adds / evaluates?
|
| 51 |
+
* [x] Have you noted which, if any, published evaluation setups are matched by this variant?
|
| 52 |
+
* [x] Checked for equivalence with v0.3.0 LM Evaluation Harness
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_amh.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: amh
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[15:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"Question: "+question+"\nAnswer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: direct_yaml
|
| 12 |
+
task: afrimgsm_direct_amh
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_eng.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: eng
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"Question: "+question+"\nAnswer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: direct_yaml
|
| 12 |
+
task: afrimgsm_direct_eng
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_ewe.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: ewe
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"Question: "+question+"\nAnswer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: direct_yaml
|
| 12 |
+
task: afrimgsm_direct_ewe
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_fra.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: fra
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"Question: "+question+"\nAnswer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: direct_yaml
|
| 12 |
+
task: afrimgsm_direct_fra
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_hau.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: hau
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"Question: "+question+"\nAnswer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: direct_yaml
|
| 12 |
+
task: afrimgsm_direct_hau
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_ibo.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: ibo
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"Question: "+question+"\nAnswer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: direct_yaml
|
| 12 |
+
task: afrimgsm_direct_ibo
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_kin.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: kin
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"Question: "+question+"\nAnswer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: direct_yaml
|
| 12 |
+
task: afrimgsm_direct_kin
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_lin.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: lin
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"Question: "+question+"\nAnswer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: direct_yaml
|
| 12 |
+
task: afrimgsm_direct_lin
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_lug.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: lug
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"Question: "+question+"\nAnswer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: direct_yaml
|
| 12 |
+
task: afrimgsm_direct_lug
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_orm.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: orm
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"Question: "+question+"\nAnswer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: direct_yaml
|
| 12 |
+
task: afrimgsm_direct_orm
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_sna.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: sna
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"Question: "+question+"\nAnswer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: direct_yaml
|
| 12 |
+
task: afrimgsm_direct_sna
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_sot.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: sot
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"Question: "+question+"\nAnswer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: direct_yaml
|
| 12 |
+
task: afrimgsm_direct_sot
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_swa.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: swa
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"Question: "+question+"\nAnswer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: direct_yaml
|
| 12 |
+
task: afrimgsm_direct_swa
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_twi.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: twi
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"Question: "+question+"\nAnswer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: direct_yaml
|
| 12 |
+
task: afrimgsm_direct_twi
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_wol.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: wol
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"Question: "+question+"\nAnswer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: direct_yaml
|
| 12 |
+
task: afrimgsm_direct_wol
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_xho.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: xho
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"Question: "+question+"\nAnswer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: direct_yaml
|
| 12 |
+
task: afrimgsm_direct_xho
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_yor.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: yor
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[16:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"Question: "+question+"\nAnswer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: direct_yaml
|
| 12 |
+
task: afrimgsm_direct_yor
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/afrimgsm_direct_zul.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: zul
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"Question: "+question+"\nAnswer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: direct_yaml
|
| 12 |
+
task: afrimgsm_direct_zul
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/direct/direct_yaml
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file will be included in the generated language-specific task configs.
|
| 2 |
+
# It doesn't have a yaml file extension as it is not meant to be imported directly
|
| 3 |
+
# by the harness.
|
| 4 |
+
group:
|
| 5 |
+
- afrimgsm
|
| 6 |
+
- afrimgsm_direct
|
| 7 |
+
dataset_path: masakhane/afrimgsm
|
| 8 |
+
dataset_name: null # Overridden by language-specific config.
|
| 9 |
+
output_type: generate_until
|
| 10 |
+
# training_split: train
|
| 11 |
+
test_split: test
|
| 12 |
+
target_delimiter: ""
|
| 13 |
+
generation_kwargs:
|
| 14 |
+
until:
|
| 15 |
+
- "\n\n"
|
| 16 |
+
- "\n"
|
| 17 |
+
do_sample: false
|
| 18 |
+
temperature: 0.0
|
| 19 |
+
filter_list:
|
| 20 |
+
- name: remove_whitespace
|
| 21 |
+
filter:
|
| 22 |
+
- function: remove_whitespace
|
| 23 |
+
- function: take_first
|
| 24 |
+
- filter:
|
| 25 |
+
- function: regex
|
| 26 |
+
group_select: -1
|
| 27 |
+
regex_pattern: (-?[$0-9.,]{2,})|(-?[0-9]+)
|
| 28 |
+
- function: take_first
|
| 29 |
+
name: flexible-extract
|
| 30 |
+
metric_list:
|
| 31 |
+
- metric: exact_match
|
| 32 |
+
aggregation: mean
|
| 33 |
+
higher_is_better: true
|
| 34 |
+
ignore_case: true
|
| 35 |
+
ignore_punctuation: true
|
| 36 |
+
metadata:
|
| 37 |
+
version: 2.0
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_amh.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: amh
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[15:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nStep-by-Step Answer:"}}{% else %}{{"Question: "+question+"\nStep-by-Step Answer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: cot_yaml
|
| 12 |
+
task: afrimgsm_en_cot_amh
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_eng.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: eng
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nStep-by-Step Answer:"}}{% else %}{{"Question: "+question+"\nStep-by-Step Answer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: cot_yaml
|
| 12 |
+
task: afrimgsm_en_cot_eng
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_ewe.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: ewe
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nStep-by-Step Answer:"}}{% else %}{{"Question: "+question+"\nStep-by-Step Answer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: cot_yaml
|
| 12 |
+
task: afrimgsm_en_cot_ewe
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_fra.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: fra
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nStep-by-Step Answer:"}}{% else %}{{"Question: "+question+"\nStep-by-Step Answer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: cot_yaml
|
| 12 |
+
task: afrimgsm_en_cot_fra
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_hau.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: hau
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nStep-by-Step Answer:"}}{% else %}{{"Question: "+question+"\nStep-by-Step Answer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: cot_yaml
|
| 12 |
+
task: afrimgsm_en_cot_hau
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_ibo.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: ibo
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nStep-by-Step Answer:"}}{% else %}{{"Question: "+question+"\nStep-by-Step Answer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: cot_yaml
|
| 12 |
+
task: afrimgsm_en_cot_ibo
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_kin.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: kin
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nStep-by-Step Answer:"}}{% else %}{{"Question: "+question+"\nStep-by-Step Answer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: cot_yaml
|
| 12 |
+
task: afrimgsm_en_cot_kin
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_lin.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: lin
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nStep-by-Step Answer:"}}{% else %}{{"Question: "+question+"\nStep-by-Step Answer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: cot_yaml
|
| 12 |
+
task: afrimgsm_en_cot_lin
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_lug.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: lug
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nStep-by-Step Answer:"}}{% else %}{{"Question: "+question+"\nStep-by-Step Answer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: cot_yaml
|
| 12 |
+
task: afrimgsm_en_cot_lug
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_orm.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: orm
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nStep-by-Step Answer:"}}{% else %}{{"Question: "+question+"\nStep-by-Step Answer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: cot_yaml
|
| 12 |
+
task: afrimgsm_en_cot_orm
|
testbed/EleutherAI__lm-evaluation-harness/lm_eval/tasks/afrimgsm/en_cot/afrimgsm_en_cot_sna.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated by utils.py
|
| 2 |
+
dataset_name: sna
|
| 3 |
+
doc_to_target: '{% if answer is not none %}{{answer[21:]}}{% else %}{{answer_number|string}}{% endif %}'
|
| 4 |
+
doc_to_text: '{% if answer is not none %}{{question+"\nStep-by-Step Answer:"}}{% else %}{{"Question: "+question+"\nStep-by-Step Answer:"}}{% endif %}'
|
| 5 |
+
generation_kwargs:
|
| 6 |
+
do_sample: false
|
| 7 |
+
until:
|
| 8 |
+
- 'Question:'
|
| 9 |
+
- </s>
|
| 10 |
+
- <|im_end|>
|
| 11 |
+
include: cot_yaml
|
| 12 |
+
task: afrimgsm_en_cot_sna
|