-
Notifications
You must be signed in to change notification settings - Fork 469
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Update] Update LiveMathBench (#1809)
* Update LiveMathBench * Update New O1 Evaluation * Update O1 evaluation
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
opencompass/configs/datasets/livemathbench/livemathbench_greedy_gen_efb20d.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |