"single_choice_en_with_reasoning":"Here is a multiple-choice question about mathematics. Please provide the final answer option by step-by-step reasoning. Please answer in the following format:\nAnswer option: A, B, C, or D (the option you believe is correct)\nCalculation process: Step-by-step process to derive the answer option based on the question\nPlease strictly follow the above format to answer the question. Here is the question you need to answer:\n{question}\nAnswer option:",
"single_choice_en_with_reasoning":"Here is a multiple-choice question about mathematics. Please provide the final answer option by step-by-step reasoning. Please answer in the following format:\nAnswer option: A, B, C, or D (the option you believe is correct)\nCalculation process: Step-by-step process to derive the answer option based on the question\nPlease strictly follow the above format to answer the question. Here is the question you need to answer:\n{question}\nAnswer option:",
"single_choice_en":"Here is a multiple-choice question about mathematics. Please provide the correct answer option directly.\nHere is the question you need to answer:\n{question}\nAnswer option:",
"single_choice_en":"Here is a multiple-choice question about mathematics. Please provide the correct answer option directly.\nHere is the question you need to answer:\n{question}\nAnswer option:",
dict(role='BOT',prompt='A: She bought 5 bagels for $3 each. This means she spent 5 * $3 = $15 on the bagels. She had $23 in beginning, so now she has $23 - $15 = $8. The answer is 8.\n'),
dict(role='BOT',prompt='A: She bought 5 bagels for $3 each. This means she spent 5 * $3 = $15 on the bagels. She had $23 in beginning, so now she has $23 - $15 = $8. The answer is 8.\n'),
dict(role='HUMAN',prompt='Q: {question}'),
dict(role='HUMAN',prompt='Q: {question}'),
dict(role='BOT',prompt='A: {answer}\n'),
dict(role='BOT',prompt='A: {answer}\n'),
],
]}
}
mathbench_sets={
mathbench_sets={
'college':['single_choice_cn','cloze_en'],
'college':['single_choice_cn','cloze_en'],
'high':['single_choice_cn','single_choice_en'],
'high':['single_choice_cn','single_choice_en'],
'middle':['single_choice_cn'],
'middle':['single_choice_cn'],
'primary':['cloze_cn'],
'primary':['cloze_cn']
}
}
# Generate reasoning path if set True or just generate the final answer
# Generate reasoning path if set True or just generate the final answer
...
@@ -75,10 +73,9 @@ mathbench_datasets = []
...
@@ -75,10 +73,9 @@ mathbench_datasets = []
for_splitinlist(mathbench_sets.keys()):
for_splitinlist(mathbench_sets.keys()):
for_nameinmathbench_sets[_split]:
for_nameinmathbench_sets[_split]:
mathbench_infer_cfg=dict(
mathbench_infer_cfg=dict(
ice_template=dict(
prompt_template=dict(
type=PromptTemplate,
type=PromptTemplate,
template=dict(
template=dict(
begin="</E>",
round=[
round=[
dict(
dict(
role="HUMAN",
role="HUMAN",
...
@@ -86,15 +83,14 @@ for _split in list(mathbench_sets.keys()):
...
@@ -86,15 +83,14 @@ for _split in list(mathbench_sets.keys()):