Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
opencompass
Commits
8c85edd1
Unverified
Commit
8c85edd1
authored
Apr 19, 2024
by
Fengzhe Zhou
Committed by
GitHub
Apr 19, 2024
Browse files
[Sync] deprecate old mbpps (#1064)
parent
c1724013
Changes
95
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
56 additions
and
10 deletions
+56
-10
configs/datasets/collections/base_core.py
configs/datasets/collections/base_core.py
+1
-1
configs/datasets/collections/base_medium.py
configs/datasets/collections/base_medium.py
+1
-1
configs/datasets/collections/base_medium_llama.py
configs/datasets/collections/base_medium_llama.py
+1
-1
configs/datasets/collections/base_small.py
configs/datasets/collections/base_small.py
+1
-1
configs/datasets/collections/chat_core.py
configs/datasets/collections/chat_core.py
+1
-1
configs/datasets/collections/chat_medium.py
configs/datasets/collections/chat_medium.py
+1
-1
configs/datasets/collections/chat_small.py
configs/datasets/collections/chat_small.py
+1
-1
configs/datasets/collections/leaderboard/qwen.py
configs/datasets/collections/leaderboard/qwen.py
+1
-1
configs/datasets/collections/leaderboard/qwen_chat.py
configs/datasets/collections/leaderboard/qwen_chat.py
+1
-1
configs/datasets/gpqa/gpqa_gen_015262.py
configs/datasets/gpqa/gpqa_gen_015262.py
+46
-0
configs/datasets/mbpp/deprecated_mbpp_gen_1e1056.py
configs/datasets/mbpp/deprecated_mbpp_gen_1e1056.py
+0
-0
configs/datasets/mbpp/deprecated_mbpp_gen_6590b0.py
configs/datasets/mbpp/deprecated_mbpp_gen_6590b0.py
+0
-0
configs/datasets/mbpp/deprecated_mbpp_gen_caa7ab.py
configs/datasets/mbpp/deprecated_mbpp_gen_caa7ab.py
+0
-0
configs/datasets/mbpp/deprecated_mbpp_passk_gen_1e1056.py
configs/datasets/mbpp/deprecated_mbpp_passk_gen_1e1056.py
+0
-0
configs/datasets/mbpp/deprecated_mbpp_repeat10_gen_1e1056.py
configs/datasets/mbpp/deprecated_mbpp_repeat10_gen_1e1056.py
+0
-0
configs/datasets/mbpp/deprecated_sanitized_mbpp_gen_1e1056.py
...igs/datasets/mbpp/deprecated_sanitized_mbpp_gen_1e1056.py
+0
-0
configs/datasets/mbpp/deprecated_sanitized_mbpp_gen_cb43ef.py
...igs/datasets/mbpp/deprecated_sanitized_mbpp_gen_cb43ef.py
+0
-0
configs/datasets/mbpp/deprecated_sanitized_mbpp_passk_gen_1e1056.py
...tasets/mbpp/deprecated_sanitized_mbpp_passk_gen_1e1056.py
+0
-0
configs/datasets/mbpp/deprecated_sanitized_mbpp_repeat10_gen_1e1056.py
...ets/mbpp/deprecated_sanitized_mbpp_repeat10_gen_1e1056.py
+0
-0
configs/datasets/mbpp/mbpp_gen.py
configs/datasets/mbpp/mbpp_gen.py
+1
-1
No files found.
configs/datasets/collections/base_core.py
View file @
8c85edd1
...
@@ -15,6 +15,6 @@ with read_base():
...
@@ -15,6 +15,6 @@ with read_base():
from
..math.math_evaluatorv2_gen_9d2049
import
math_datasets
from
..math.math_evaluatorv2_gen_9d2049
import
math_datasets
from
..TheoremQA.TheoremQA_post_v2_gen_2c2583
import
TheoremQA_datasets
from
..TheoremQA.TheoremQA_post_v2_gen_2c2583
import
TheoremQA_datasets
from
..humaneval.humaneval_gen_d2537e
import
humaneval_datasets
from
..humaneval.humaneval_gen_d2537e
import
humaneval_datasets
from
..mbpp.sanitized_mbpp_gen_cb43ef
import
sanitized_mbpp_datasets
from
..mbpp.
deprecated_
sanitized_mbpp_gen_cb43ef
import
sanitized_mbpp_datasets
datasets
=
sum
((
v
for
k
,
v
in
locals
().
items
()
if
k
.
endswith
(
"_datasets"
)),
[])
datasets
=
sum
((
v
for
k
,
v
in
locals
().
items
()
if
k
.
endswith
(
"_datasets"
)),
[])
configs/datasets/collections/base_medium.py
View file @
8c85edd1
...
@@ -7,7 +7,7 @@ with read_base():
...
@@ -7,7 +7,7 @@ with read_base():
from
..GaokaoBench.GaokaoBench_mixed_f2038e
import
GaokaoBench_datasets
from
..GaokaoBench.GaokaoBench_mixed_f2038e
import
GaokaoBench_datasets
from
..bbh.bbh_gen_5b92b0
import
bbh_datasets
from
..bbh.bbh_gen_5b92b0
import
bbh_datasets
from
..humaneval.humaneval_gen_8e312c
import
humaneval_datasets
from
..humaneval.humaneval_gen_8e312c
import
humaneval_datasets
from
..mbpp.mbpp_gen_1e1056
import
mbpp_datasets
from
..mbpp.
deprecated_
mbpp_gen_1e1056
import
mbpp_datasets
from
..CLUE_C3.CLUE_C3_ppl_e24a31
import
C3_datasets
from
..CLUE_C3.CLUE_C3_ppl_e24a31
import
C3_datasets
from
..CLUE_CMRC.CLUE_CMRC_gen_1bd3c8
import
CMRC_datasets
from
..CLUE_CMRC.CLUE_CMRC_gen_1bd3c8
import
CMRC_datasets
from
..CLUE_DRCD.CLUE_DRCD_gen_1bd3c8
import
DRCD_datasets
from
..CLUE_DRCD.CLUE_DRCD_gen_1bd3c8
import
DRCD_datasets
...
...
configs/datasets/collections/base_medium_llama.py
View file @
8c85edd1
...
@@ -7,7 +7,7 @@ with read_base():
...
@@ -7,7 +7,7 @@ with read_base():
from
..GaokaoBench.GaokaoBench_mixed_f2038e
import
GaokaoBench_datasets
from
..GaokaoBench.GaokaoBench_mixed_f2038e
import
GaokaoBench_datasets
from
..bbh.bbh_gen_5b92b0
import
bbh_datasets
from
..bbh.bbh_gen_5b92b0
import
bbh_datasets
from
..humaneval.humaneval_gen_a82cae
import
humaneval_datasets
from
..humaneval.humaneval_gen_a82cae
import
humaneval_datasets
from
..mbpp.mbpp_gen_1e1056
import
mbpp_datasets
from
..mbpp.
deprecated_
mbpp_gen_1e1056
import
mbpp_datasets
from
..CLUE_C3.CLUE_C3_ppl_e24a31
import
C3_datasets
from
..CLUE_C3.CLUE_C3_ppl_e24a31
import
C3_datasets
from
..CLUE_CMRC.CLUE_CMRC_gen_1bd3c8
import
CMRC_datasets
from
..CLUE_CMRC.CLUE_CMRC_gen_1bd3c8
import
CMRC_datasets
from
..CLUE_DRCD.CLUE_DRCD_gen_1bd3c8
import
DRCD_datasets
from
..CLUE_DRCD.CLUE_DRCD_gen_1bd3c8
import
DRCD_datasets
...
...
configs/datasets/collections/base_small.py
View file @
8c85edd1
...
@@ -11,7 +11,7 @@ with read_base():
...
@@ -11,7 +11,7 @@ with read_base():
from
..FewCLUE_cluewsc.FewCLUE_cluewsc_ppl_868415
import
cluewsc_datasets
from
..FewCLUE_cluewsc.FewCLUE_cluewsc_ppl_868415
import
cluewsc_datasets
from
..FewCLUE_eprstmt.FewCLUE_eprstmt_ppl_f1e631
import
eprstmt_datasets
from
..FewCLUE_eprstmt.FewCLUE_eprstmt_ppl_f1e631
import
eprstmt_datasets
from
..humaneval.humaneval_gen_8e312c
import
humaneval_datasets
from
..humaneval.humaneval_gen_8e312c
import
humaneval_datasets
from
..mbpp.mbpp_gen_1e1056
import
mbpp_datasets
from
..mbpp.
deprecated_
mbpp_gen_1e1056
import
mbpp_datasets
from
..lambada.lambada_gen_217e11
import
lambada_datasets
from
..lambada.lambada_gen_217e11
import
lambada_datasets
from
..storycloze.storycloze_ppl_496661
import
storycloze_datasets
from
..storycloze.storycloze_ppl_496661
import
storycloze_datasets
from
..SuperGLUE_AX_b.SuperGLUE_AX_b_ppl_6db806
import
AX_b_datasets
from
..SuperGLUE_AX_b.SuperGLUE_AX_b_ppl_6db806
import
AX_b_datasets
...
...
configs/datasets/collections/chat_core.py
View file @
8c85edd1
...
@@ -15,6 +15,6 @@ with read_base():
...
@@ -15,6 +15,6 @@ with read_base():
from
..math.math_evaluatorv2_gen_cecb31
import
math_datasets
from
..math.math_evaluatorv2_gen_cecb31
import
math_datasets
from
..TheoremQA.TheoremQA_post_v2_gen_ef26ca
import
TheoremQA_datasets
from
..TheoremQA.TheoremQA_post_v2_gen_ef26ca
import
TheoremQA_datasets
from
..humaneval.humaneval_gen_8e312c
import
humaneval_datasets
from
..humaneval.humaneval_gen_8e312c
import
humaneval_datasets
from
..mbpp.sanitized_mbpp_gen_1e1056
import
sanitized_mbpp_datasets
from
..mbpp.
deprecated_
sanitized_mbpp_gen_1e1056
import
sanitized_mbpp_datasets
datasets
=
sum
((
v
for
k
,
v
in
locals
().
items
()
if
k
.
endswith
(
"_datasets"
)),
[])
datasets
=
sum
((
v
for
k
,
v
in
locals
().
items
()
if
k
.
endswith
(
"_datasets"
)),
[])
configs/datasets/collections/chat_medium.py
View file @
8c85edd1
...
@@ -7,7 +7,7 @@ with read_base():
...
@@ -7,7 +7,7 @@ with read_base():
from
..GaokaoBench.GaokaoBench_gen_5cfe9e
import
GaokaoBench_datasets
from
..GaokaoBench.GaokaoBench_gen_5cfe9e
import
GaokaoBench_datasets
from
..bbh.bbh_gen_5b92b0
import
bbh_datasets
from
..bbh.bbh_gen_5b92b0
import
bbh_datasets
from
..humaneval.humaneval_gen_8e312c
import
humaneval_datasets
from
..humaneval.humaneval_gen_8e312c
import
humaneval_datasets
from
..mbpp.mbpp_gen_1e1056
import
mbpp_datasets
from
..mbpp.
deprecated_
mbpp_gen_1e1056
import
mbpp_datasets
from
..CLUE_C3.CLUE_C3_gen_8c358f
import
C3_datasets
from
..CLUE_C3.CLUE_C3_gen_8c358f
import
C3_datasets
from
..CLUE_CMRC.CLUE_CMRC_gen_1bd3c8
import
CMRC_datasets
from
..CLUE_CMRC.CLUE_CMRC_gen_1bd3c8
import
CMRC_datasets
from
..CLUE_DRCD.CLUE_DRCD_gen_1bd3c8
import
DRCD_datasets
from
..CLUE_DRCD.CLUE_DRCD_gen_1bd3c8
import
DRCD_datasets
...
...
configs/datasets/collections/chat_small.py
View file @
8c85edd1
...
@@ -12,7 +12,7 @@ with read_base():
...
@@ -12,7 +12,7 @@ with read_base():
from
..FewCLUE_cluewsc.FewCLUE_cluewsc_gen_c68933
import
cluewsc_datasets
from
..FewCLUE_cluewsc.FewCLUE_cluewsc_gen_c68933
import
cluewsc_datasets
from
..FewCLUE_eprstmt.FewCLUE_eprstmt_gen_740ea0
import
eprstmt_datasets
from
..FewCLUE_eprstmt.FewCLUE_eprstmt_gen_740ea0
import
eprstmt_datasets
from
..humaneval.humaneval_gen_8e312c
import
humaneval_datasets
from
..humaneval.humaneval_gen_8e312c
import
humaneval_datasets
from
..mbpp.mbpp_gen_1e1056
import
mbpp_datasets
from
..mbpp.
deprecated_
mbpp_gen_1e1056
import
mbpp_datasets
from
..lambada.lambada_gen_217e11
import
lambada_datasets
from
..lambada.lambada_gen_217e11
import
lambada_datasets
from
..storycloze.storycloze_gen_7f656a
import
storycloze_datasets
from
..storycloze.storycloze_gen_7f656a
import
storycloze_datasets
from
..SuperGLUE_AX_b.SuperGLUE_AX_b_gen_4dfefa
import
AX_b_datasets
from
..SuperGLUE_AX_b.SuperGLUE_AX_b_gen_4dfefa
import
AX_b_datasets
...
...
configs/datasets/collections/leaderboard/qwen.py
View file @
8c85edd1
...
@@ -44,7 +44,7 @@ with read_base():
...
@@ -44,7 +44,7 @@ with read_base():
from
...gsm8k.gsm8k_gen_1d7fe4
import
gsm8k_datasets
from
...gsm8k.gsm8k_gen_1d7fe4
import
gsm8k_datasets
from
...drop.drop_gen_8a9ed9
import
drop_datasets
from
...drop.drop_gen_8a9ed9
import
drop_datasets
from
...humaneval.humaneval_gen_a82cae
import
humaneval_datasets
from
...humaneval.humaneval_gen_a82cae
import
humaneval_datasets
from
...mbpp.mbpp_gen_1e1056
import
mbpp_datasets
from
...mbpp.
deprecated_
mbpp_gen_1e1056
import
mbpp_datasets
from
...bbh.bbh_gen_5bf00b
import
bbh_datasets
from
...bbh.bbh_gen_5bf00b
import
bbh_datasets
...
...
configs/datasets/collections/leaderboard/qwen_chat.py
View file @
8c85edd1
...
@@ -44,7 +44,7 @@ with read_base():
...
@@ -44,7 +44,7 @@ with read_base():
from
...gsm8k.gsm8k_gen_1d7fe4
import
gsm8k_datasets
from
...gsm8k.gsm8k_gen_1d7fe4
import
gsm8k_datasets
from
...drop.drop_gen_8a9ed9
import
drop_datasets
from
...drop.drop_gen_8a9ed9
import
drop_datasets
from
...humaneval.humaneval_gen_a82cae
import
humaneval_datasets
from
...humaneval.humaneval_gen_a82cae
import
humaneval_datasets
from
...mbpp.mbpp_gen_1e1056
import
mbpp_datasets
from
...mbpp.
deprecated_
mbpp_gen_1e1056
import
mbpp_datasets
from
...bbh.bbh_gen_5b92b0
import
bbh_datasets
from
...bbh.bbh_gen_5b92b0
import
bbh_datasets
...
...
configs/datasets/gpqa/gpqa_gen_015262.py
0 → 100644
View file @
8c85edd1
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
import
GPQADataset
,
GPQAEvaluator
from
opencompass.utils
import
first_option_postprocess
gpqa_reader_cfg
=
dict
(
input_columns
=
[
'question'
,
'A'
,
'B'
,
'C'
,
'D'
],
output_column
=
'answer'
)
gpqa_infer_cfg
=
dict
(
prompt_template
=
dict
(
type
=
PromptTemplate
,
template
=
dict
(
round
=
[
dict
(
role
=
'HUMAN'
,
prompt
=
'What is the correct answer to this question: {question}
\n
Choices:
\n
'
'(A){A}
\n
'
'(B){B}
\n
'
'(C){C}
\n
'
'(D){D}
\n
'
'Format your response as follows: "The correct answer is (insert answer here)"'
),
],
)),
retriever
=
dict
(
type
=
ZeroRetriever
),
inferencer
=
dict
(
type
=
GenInferencer
))
gpqa_eval_cfg
=
dict
(
evaluator
=
dict
(
type
=
GPQAEvaluator
),
pred_postprocessor
=
dict
(
type
=
first_option_postprocess
,
options
=
'ABCD'
))
gpqa_datasets
=
[]
gpqa_subsets
=
{
'extended'
:
'gpqa_extended.csv'
,
'main'
:
'gpqa_main.csv'
,
'diamond'
:
'gpqa_diamond.csv'
}
for
split
in
list
(
gpqa_subsets
.
keys
()):
gpqa_datasets
.
append
(
dict
(
abbr
=
'GPQA_'
+
split
,
type
=
GPQADataset
,
path
=
'./data/gpqa/'
,
name
=
gpqa_subsets
[
split
],
reader_cfg
=
gpqa_reader_cfg
,
infer_cfg
=
gpqa_infer_cfg
,
eval_cfg
=
gpqa_eval_cfg
)
)
configs/datasets/mbpp/mbpp_gen_1e1056.py
→
configs/datasets/mbpp/
deprecated_
mbpp_gen_1e1056.py
View file @
8c85edd1
File moved
configs/datasets/mbpp/mbpp_gen_6590b0.py
→
configs/datasets/mbpp/
deprecated_
mbpp_gen_6590b0.py
View file @
8c85edd1
File moved
configs/datasets/mbpp/mbpp_gen_caa7ab.py
→
configs/datasets/mbpp/
deprecated_
mbpp_gen_caa7ab.py
View file @
8c85edd1
File moved
configs/datasets/mbpp/mbpp_passk_gen_1e1056.py
→
configs/datasets/mbpp/
deprecated_
mbpp_passk_gen_1e1056.py
View file @
8c85edd1
File moved
configs/datasets/mbpp/mbpp_repeat10_gen_1e1056.py
→
configs/datasets/mbpp/
deprecated_
mbpp_repeat10_gen_1e1056.py
View file @
8c85edd1
File moved
configs/datasets/mbpp/sanitized_mbpp_gen_1e1056.py
→
configs/datasets/mbpp/
deprecated_
sanitized_mbpp_gen_1e1056.py
View file @
8c85edd1
File moved
configs/datasets/mbpp/sanitized_mbpp_gen_cb43ef.py
→
configs/datasets/mbpp/
deprecated_
sanitized_mbpp_gen_cb43ef.py
View file @
8c85edd1
File moved
configs/datasets/mbpp/sanitized_mbpp_passk_gen_1e1056.py
→
configs/datasets/mbpp/
deprecated_
sanitized_mbpp_passk_gen_1e1056.py
View file @
8c85edd1
File moved
configs/datasets/mbpp/sanitized_mbpp_repeat10_gen_1e1056.py
→
configs/datasets/mbpp/
deprecated_
sanitized_mbpp_repeat10_gen_1e1056.py
View file @
8c85edd1
File moved
configs/datasets/mbpp/mbpp_gen.py
View file @
8c85edd1
from
mmengine.config
import
read_base
from
mmengine.config
import
read_base
with
read_base
():
with
read_base
():
from
.mbpp_gen_
1e1056
import
mbpp_datasets
# noqa: F401, F403
from
.mbpp_gen_
830460
import
mbpp_datasets
# noqa: F401, F403
Prev
1
2
3
4
5
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment