mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00

* feat datasetrefine drop * fix datasets in fullbench_int3 * fix * fix * back * fix * fix and doc * feat * fix hook * fix * fix * fix * fix * fix * fix * fix * fix * fix * doc * fix * fix * Update dataset-index.yml
40 lines
1.0 KiB
Python
40 lines
1.0 KiB
Python
from opencompass.openicl.icl_prompt_template import PromptTemplate
|
|
from opencompass.openicl.icl_retriever import ZeroRetriever
|
|
from opencompass.openicl.icl_inferencer import GenInferencer
|
|
from opencompass.openicl.icl_evaluator import MATHEvaluator
|
|
from opencompass.datasets import Aime2024Dataset
|
|
|
|
|
|
aime2024_reader_cfg = dict(
|
|
input_columns=['question'],
|
|
output_column='answer'
|
|
)
|
|
|
|
|
|
aime2024_infer_cfg = dict(
|
|
prompt_template=dict(
|
|
type=PromptTemplate,
|
|
template=dict(
|
|
round=[
|
|
dict(role='HUMAN', prompt='{question}\nPlease reason step by step, and put your final answer within \\boxed{}.'),
|
|
],
|
|
)
|
|
),
|
|
retriever=dict(type=ZeroRetriever),
|
|
inferencer=dict(type=GenInferencer)
|
|
)
|
|
|
|
aime2024_eval_cfg = dict(
|
|
evaluator=dict(type=MATHEvaluator)
|
|
)
|
|
|
|
aime2024_datasets = [
|
|
dict(
|
|
abbr='aime2024',
|
|
type=Aime2024Dataset,
|
|
path='opencompass/aime2024',
|
|
reader_cfg=aime2024_reader_cfg,
|
|
infer_cfg=aime2024_infer_cfg,
|
|
eval_cfg=aime2024_eval_cfg,
|
|
)
|
|
] |