-
Notifications
You must be signed in to change notification settings - Fork 507
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 Hard Configs (#1826)
* support G-Pass@k and livemathbench * fix bugs * fix comments of GPassKEvaluator * update saved details of GPassKEvaluator * update saved details of GPassKEvaluator * fix eval api configs & update openai_api for ease of debugging * update huggingface path * fix method name of G-Pass@k * fix default value of eval_model_name * refactor G-Pass@k evaluator * log generation params for each backend * fix evaluation resume * add notimplementerror * update livemathbench-hard configs * remove max_out_len from livemathbench_hard_greedy_gen_9befbf.py * remove max_out_len from livemathbench_hard_gen_9befbf.py * rename livemathbench_hard_gen_9befbf.py to livemathbench_hard_gen_353ae7.py * rename livemathbench_hard_greedy_gen_9befbf.py to livemathbench_hard_greedy_gen_353ae7.py * update livemathbench_gen_9befbf.py * remove whitespace * upload livemathbench hard configs
- Loading branch information
Showing
7 changed files
with
103 additions
and
54 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -48,4 +48,4 @@ | |
) | ||
) | ||
) | ||
livemathbench_datasets = [livemathbench_dataset] | ||
livemathbench_datasets = [livemathbench_dataset] |
49 changes: 0 additions & 49 deletions
49
opencompass/configs/datasets/livemathbench/livemathbench_gen_f1c095.py
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
opencompass/configs/datasets/livemathbench/livemathbench_greedy_gen.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from mmengine.config import read_base | ||
|
||
with read_base(): | ||
from .livemathbench_greedy_gen_efb20d import livemathbench_datasets # noqa: F401, F403 | ||
from .livemathbench_greedy_gen_9befbf import livemathbench_datasets # noqa: F401, F403 |
50 changes: 50 additions & 0 deletions
50
opencompass/configs/datasets/livemathbench/livemathbench_hard_gen_353ae7.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,50 @@ | ||
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=16, | ||
replication=3, | ||
dataset_splits=['hard'], | ||
dataset_languages=['cn', 'en'], | ||
cot=True, | ||
version='202412', | ||
abbr='LiveMathBench-v202412-Hard', | ||
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 | ||
), | ||
), | ||
eval_cfg=dict( | ||
evaluator=dict( | ||
type=LiveMathBenchEvaluator, | ||
model_name='', | ||
url=[], | ||
use_extract_model=False, | ||
extract_url=[], | ||
extract_model_name='', | ||
k=[4, 8, 16], | ||
replication=3, | ||
thresholds=[0.0, 0.25, 0.5, 0.75, 1.0] | ||
) | ||
) | ||
) | ||
livemathbench_datasets = [livemathbench_dataset] |
50 changes: 50 additions & 0 deletions
50
opencompass/configs/datasets/livemathbench/livemathbench_hard_greedy_gen_353ae7.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,50 @@ | ||
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=['hard'], | ||
dataset_languages=['cn', 'en'], | ||
cot=True, | ||
version='202412', | ||
abbr='LiveMathBench-v202412-Hard', | ||
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 | ||
), | ||
), | ||
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] |
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
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