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

* support omni-math * update config * upload README * Delete opencompass/configs/datasets/omni_math/__init__.py * update greedy config & README of LiveMathBench * update intro for max_out_len * rename livemathbench greedy confi * delete greedy config --------- Co-authored-by: liushz <qq1791167085@163.com>
51 lines
1.4 KiB
Python
51 lines
1.4 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.datasets.livemathbench import LiveMathBenchDataset, LiveMathBenchEvaluator
|
|
|
|
|
|
livemathbench_dataset = dict(
|
|
type=LiveMathBenchDataset,
|
|
path='',
|
|
k=1,
|
|
replication=1,
|
|
dataset_splits=['CNMO', 'CCEE', 'AMC', 'WLPMC'],
|
|
dataset_languages=['cn', 'en'],
|
|
cot=True,
|
|
version='202412',
|
|
abbr='LiveMathBench-v202412',
|
|
reader_cfg=dict(
|
|
input_columns=['prompt'],
|
|
output_column='answer'
|
|
),
|
|
infer_cfg=dict(
|
|
prompt_template=dict(
|
|
type=PromptTemplate,
|
|
template=dict(
|
|
round=[
|
|
dict(role='HUMAN', prompt='{prompt}'),
|
|
]
|
|
)
|
|
),
|
|
retriever=dict(type=ZeroRetriever),
|
|
inferencer=dict(
|
|
type=GenInferencer,
|
|
max_out_len=8192
|
|
),
|
|
),
|
|
eval_cfg=dict(
|
|
evaluator=dict(
|
|
type=LiveMathBenchEvaluator,
|
|
model_name='',
|
|
url=[],
|
|
use_extract_model=False,
|
|
extract_url=[],
|
|
extract_model_name='',
|
|
k=[1],
|
|
replication=1,
|
|
thresholds=[0.0]
|
|
)
|
|
)
|
|
)
|
|
livemathbench_datasets = [livemathbench_dataset] |