medium.py 3.2 KB
Newer Older
Leymore's avatar
Leymore committed
1
2
3
4
5
from mmengine.config import read_base

with read_base():
    from .groups.agieval import agieval_summary_groups
    from .groups.mmlu import mmlu_summary_groups
6
    from .groups.cmmlu import cmmlu_summary_groups
Leymore's avatar
Leymore committed
7
8
9
10
    from .groups.ceval import ceval_summary_groups
    from .groups.bbh import bbh_summary_groups
    from .groups.GaokaoBench import GaokaoBench_summary_groups
    from .groups.flores import flores_summary_groups
Leymore's avatar
Leymore committed
11
    from .groups.jigsaw_multilingual import jigsaw_multilingual_summary_groups
12
13
    from .groups.tydiqa import tydiqa_summary_groups
    from .groups.xiezhi import xiezhi_summary_groups
Leymore's avatar
Leymore committed
14
15

summarizer = dict(
16
17
    dataset_abbrs=[
        '--------- 考试 Exam ---------',  # category
Leymore's avatar
Leymore committed
18
        # 'Mixed', # subcategory
Leymore's avatar
Leymore committed
19
        "ceval",
Leymore's avatar
Leymore committed
20
21
        'agieval',
        'mmlu',
Leymore's avatar
Leymore committed
22
        "GaokaoBench",
Leymore's avatar
Leymore committed
23
        'ARC-c',
24
        '--------- 语言 Language ---------',  # category
Leymore's avatar
Leymore committed
25
26
27
28
29
30
        # '字词释义', # subcategory
        'WiC',
        'summedits',
        # '成语习语', # subcategory
        'chid-dev',
        # '语义相似度', # subcategory
Leymore's avatar
Leymore committed
31
32
        'afqmc-dev',
        'bustm-dev',
Leymore's avatar
Leymore committed
33
        # '指代消解', # subcategory
Leymore's avatar
Leymore committed
34
        'cluewsc-dev',
Leymore's avatar
Leymore committed
35
36
37
38
        'WSC',
        'winogrande',
        # '翻译', # subcategory
        'flores_100',
39
        '--------- 知识 Knowledge ---------',  # category
Leymore's avatar
Leymore committed
40
41
42
43
44
45
        # '知识问答', # subcategory
        'BoolQ',
        'commonsense_qa',
        'nq',
        'triviaqa',
        # '多语种问答', # subcategory
46
        '--------- 推理 Reasoning ---------',  # category
Leymore's avatar
Leymore committed
47
48
49
        # '文本蕴含', # subcategory
        'cmnli',
        'ocnli',
Leymore's avatar
Leymore committed
50
51
52
53
54
        'ocnli_fc-dev',
        'AX_b',
        'AX_g',
        'CB',
        'RTE',
Leymore's avatar
Leymore committed
55
56
57
        # '常识推理', # subcategory
        'story_cloze',
        'COPA',
Leymore's avatar
Leymore committed
58
59
60
61
62
        'ReCoRD',
        'hellaswag',
        'piqa',
        'siqa',
        'strategyqa',
Leymore's avatar
Leymore committed
63
64
65
66
67
68
69
70
71
72
        # '数学推理', # subcategory
        'math',
        'gsm8k',
        # '定理应用', # subcategory
        'TheoremQA',
        # '代码', # subcategory
        'openai_humaneval',
        'mbpp',
        # '综合推理', # subcategory
        "bbh",
73
        '--------- 理解 Understanding ---------',  # category
Leymore's avatar
Leymore committed
74
75
76
77
78
79
80
        # '阅读理解', # subcategory
        'C3',
        'CMRC_dev',
        'DRCD_dev',
        'MultiRC',
        'race-middle',
        'race-high',
Leymore's avatar
Leymore committed
81
        'openbookqa_fact',
Leymore's avatar
Leymore committed
82
83
84
85
86
87
88
89
        # '内容总结', # subcategory
        'csl_dev',
        'lcsts',
        'Xsum',
        # '内容分析', # subcategory
        'eprstmt-dev',
        'lambada',
        'tnews-dev',
90
        '--------- 安全 Safety ---------',  # category
Leymore's avatar
Leymore committed
91
        # '偏见', # subcategory
Leymore's avatar
Leymore committed
92
        'crows_pairs',
93
94
95
96
97
98
99
100
        # '有毒性(判别)', # subcategory
        'civil_comments',
        # '有毒性(判别)多语言', # subcategory
        'jigsaw_multilingual',
        # '有毒性(生成)', # subcategory
        'real-toxicity-prompts',
        # '真实性/有用性', # subcategory
        'truthful_qa',
Leymore's avatar
Leymore committed
101
    ],
102
103
    summary_groups=sum(
        [v for k, v in locals().items() if k.endswith("_summary_groups")], []),
Leymore's avatar
Leymore committed
104
105
106
107
108
    prompt_db=dict(
        database_path='configs/datasets/log.json',
        config_dir='configs/datasets',
        blacklist='.promptignore'),
)