Skip to content

Commit

Permalink
[Update] Update LiveMathBench (#1809)
Browse files Browse the repository at this point in the history
* Update LiveMathBench

* Update New O1 Evaluation

* Update O1 evaluation
  • Loading branch information
tonysy authored Jan 7, 2025
1 parent 8fdb72f commit f1e50d4
Showing 1 changed file with 51 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
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(
abbr='LiveMathBench-v202412-greedy', # If you change the K and replication, you need to change the dataset name.
type=LiveMathBenchDataset,
path='opencompass/LiveMathBench',
k=1,
replication=1,
dataset_splits=['CNMO', 'CCEE', 'AMC', 'WLPMC'],
dataset_languages=['cn', 'en'],
cot=False,
version='202412',
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=16384,
),
),
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, 0.25, 0.5, 0.75, 1.0]
)
)
)
livemathbench_datasets = [livemathbench_dataset]

0 comments on commit f1e50d4

Please sign in to comment.