mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
doc
This commit is contained in:
parent
31f259e909
commit
a194c01b23
@ -121,7 +121,7 @@
|
|||||||
category: Reasoning
|
category: Reasoning
|
||||||
paper: https://arxiv.org/pdf/2310.16049
|
paper: https://arxiv.org/pdf/2310.16049
|
||||||
configpath: opencompass/configs/datasets/musr/musr_gen.py
|
configpath: opencompass/configs/datasets/musr/musr_gen.py
|
||||||
configpath_llmjudge: opencompass/configs/datasets/mmlu/mmlu_llm_judge_gen.py
|
configpath_llmjudge: opencompass/configs/datasets/musr/musr_llm_judge_gen.py
|
||||||
- needlebench:
|
- needlebench:
|
||||||
name: NeedleBench
|
name: NeedleBench
|
||||||
category: Long Context
|
category: Long Context
|
||||||
|
@ -32,7 +32,11 @@ with open(load_path, 'r') as f2:
|
|||||||
|
|
||||||
HEADER = ['name', 'category', 'paper', 'configpath', 'configpath_llmjudge']
|
HEADER = ['name', 'category', 'paper', 'configpath', 'configpath_llmjudge']
|
||||||
|
|
||||||
recommanded_dataset_list = []
|
recommanded_dataset_list = [
|
||||||
|
'ifeval', 'aime2024', 'bbh', 'bigcodebench', 'cmmlu', 'drop', 'gpqa',
|
||||||
|
'hellaswag', 'humaneval', 'korbench', 'livecodebench', 'math', 'mmlu',
|
||||||
|
'mmlu_pro', 'musr'
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
def table_format(data_list):
|
def table_format(data_list):
|
||||||
@ -40,6 +44,11 @@ def table_format(data_list):
|
|||||||
for i in data_list:
|
for i in data_list:
|
||||||
table_format_list_sub = []
|
table_format_list_sub = []
|
||||||
for j in i:
|
for j in i:
|
||||||
|
if j in recommanded_dataset_list:
|
||||||
|
link_token = '[link]('
|
||||||
|
else:
|
||||||
|
link_token = '[link(TBD)]('
|
||||||
|
|
||||||
for index in HEADER:
|
for index in HEADER:
|
||||||
if index == 'paper':
|
if index == 'paper':
|
||||||
table_format_list_sub.append('[link](' + i[j][index] + ')')
|
table_format_list_sub.append('[link](' + i[j][index] + ')')
|
||||||
@ -47,18 +56,18 @@ def table_format(data_list):
|
|||||||
if i[j][index] == '':
|
if i[j][index] == '':
|
||||||
table_format_list_sub.append(i[j][index])
|
table_format_list_sub.append(i[j][index])
|
||||||
else:
|
else:
|
||||||
table_format_list_sub.append('[link](' +
|
table_format_list_sub.append(link_token +
|
||||||
GITHUB_PREFIX +
|
GITHUB_PREFIX +
|
||||||
i[j][index] + ')')
|
i[j][index] + ')')
|
||||||
elif index == 'configpath':
|
elif index == 'configpath':
|
||||||
if isinstance(i[j][index], list):
|
if isinstance(i[j][index], list):
|
||||||
sub_list_text = ''
|
sub_list_text = ''
|
||||||
for k in i[j][index]:
|
for k in i[j][index]:
|
||||||
sub_list_text += ('[link](' + GITHUB_PREFIX + k +
|
sub_list_text += (link_token + GITHUB_PREFIX + k +
|
||||||
') / ')
|
') / ')
|
||||||
table_format_list_sub.append(sub_list_text[:-2])
|
table_format_list_sub.append(sub_list_text[:-2])
|
||||||
else:
|
else:
|
||||||
table_format_list_sub.append('[link](' +
|
table_format_list_sub.append(link_token +
|
||||||
GITHUB_PREFIX +
|
GITHUB_PREFIX +
|
||||||
i[j][index] + ')')
|
i[j][index] + ')')
|
||||||
else:
|
else:
|
||||||
|
@ -30,12 +30,23 @@ with open(load_path, 'r') as f2:
|
|||||||
|
|
||||||
HEADER = ['name', 'category', 'paper', 'configpath', 'configpath_llmjudge']
|
HEADER = ['name', 'category', 'paper', 'configpath', 'configpath_llmjudge']
|
||||||
|
|
||||||
|
recommanded_dataset_list = [
|
||||||
|
'ifeval', 'aime2024', 'bbh', 'bigcodebench', 'cmmlu', 'drop', 'gpqa',
|
||||||
|
'hellaswag', 'humaneval', 'korbench', 'livecodebench', 'math', 'mmlu',
|
||||||
|
'mmlu_pro', 'musr'
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
def table_format(data_list):
|
def table_format(data_list):
|
||||||
table_format_list = []
|
table_format_list = []
|
||||||
for i in data_list:
|
for i in data_list:
|
||||||
table_format_list_sub = []
|
table_format_list_sub = []
|
||||||
for j in i:
|
for j in i:
|
||||||
|
if j in recommanded_dataset_list:
|
||||||
|
link_token = '[链接]('
|
||||||
|
else:
|
||||||
|
link_token = '[链接(TBD)]('
|
||||||
|
|
||||||
for index in HEADER:
|
for index in HEADER:
|
||||||
if index == 'paper':
|
if index == 'paper':
|
||||||
table_format_list_sub.append('[链接](' + i[j][index] + ')')
|
table_format_list_sub.append('[链接](' + i[j][index] + ')')
|
||||||
@ -43,17 +54,19 @@ def table_format(data_list):
|
|||||||
if i[j][index] == '':
|
if i[j][index] == '':
|
||||||
table_format_list_sub.append(i[j][index])
|
table_format_list_sub.append(i[j][index])
|
||||||
else:
|
else:
|
||||||
table_format_list_sub.append('[链接](' + GITHUB_PREFIX +
|
table_format_list_sub.append(link_token +
|
||||||
|
GITHUB_PREFIX +
|
||||||
i[j][index] + ')')
|
i[j][index] + ')')
|
||||||
elif index == 'configpath':
|
elif index == 'configpath':
|
||||||
if isinstance(i[j][index], list):
|
if isinstance(i[j][index], list):
|
||||||
sub_list_text = ''
|
sub_list_text = ''
|
||||||
for k in i[j][index]:
|
for k in i[j][index]:
|
||||||
sub_list_text += ('[链接](' + GITHUB_PREFIX + k +
|
sub_list_text += (link_token + GITHUB_PREFIX + k +
|
||||||
') / ')
|
') / ')
|
||||||
table_format_list_sub.append(sub_list_text[:-2])
|
table_format_list_sub.append(sub_list_text[:-2])
|
||||||
else:
|
else:
|
||||||
table_format_list_sub.append('[链接](' + GITHUB_PREFIX +
|
table_format_list_sub.append(link_token +
|
||||||
|
GITHUB_PREFIX +
|
||||||
i[j][index] + ')')
|
i[j][index] + ')')
|
||||||
else:
|
else:
|
||||||
table_format_list_sub.append(i[j][index])
|
table_format_list_sub.append(i[j][index])
|
||||||
|
Loading…
Reference in New Issue
Block a user