|
4 | 4 |
|
5 | 5 | with read_base(): |
6 | 6 | # choose a list of datasets |
7 | | - from opencompass.configs.datasets.ARC_c.ARC_c_few_shot_ppl import \ |
8 | | - ARC_c_datasets # noqa: F401, E501 |
9 | | - from opencompass.configs.datasets.bbh.bbh_gen_98fba6 import \ |
10 | | - bbh_datasets # noqa: F401, E501 |
11 | | - from opencompass.configs.datasets.ceval.ceval_ppl import \ |
12 | | - ceval_datasets # noqa: F401, E501 |
13 | | - from opencompass.configs.datasets.cmmlu.cmmlu_ppl_041cbf import \ |
14 | | - cmmlu_datasets # noqa: F401, E501 |
15 | | - from opencompass.configs.datasets.crowspairs.crowspairs_ppl import \ |
16 | | - crowspairs_datasets # noqa: F401, E501 |
17 | | - from opencompass.configs.datasets.drop.drop_gen_a2697c import \ |
18 | | - drop_datasets # noqa: F401, E501 |
| 7 | + from opencompass.configs.datasets.ARC_c.ARC_c_few_shot_ppl import ARC_c_datasets # noqa: F401, E501 |
| 8 | + from opencompass.configs.datasets.bbh.bbh_gen_98fba6 import bbh_datasets # noqa: F401, E501 |
| 9 | + from opencompass.configs.datasets.ceval.ceval_ppl import ceval_datasets # noqa: F401, E501 |
| 10 | + from opencompass.configs.datasets.cmmlu.cmmlu_ppl_041cbf import cmmlu_datasets # noqa: F401, E501 |
| 11 | + from opencompass.configs.datasets.crowspairs.crowspairs_ppl import crowspairs_datasets # noqa: F401, E501 |
| 12 | + from opencompass.configs.datasets.drop.drop_gen_a2697c import drop_datasets # noqa: F401, E501 |
19 | 13 | # Corebench v1.7 |
20 | 14 | from opencompass.configs.datasets.GaokaoBench.GaokaoBench_no_subjective_gen_d21e37 import \ |
21 | 15 | GaokaoBench_datasets # noqa: F401, E501 |
22 | | - from opencompass.configs.datasets.gpqa.gpqa_few_shot_ppl_4b5a83 import \ |
23 | | - gpqa_datasets # noqa: F401, E501 |
24 | | - from opencompass.configs.datasets.gsm8k.gsm8k_gen_17d0dc import \ |
25 | | - gsm8k_datasets # noqa: F401, E501 |
| 16 | + from opencompass.configs.datasets.gpqa.gpqa_few_shot_ppl_4b5a83 import gpqa_datasets # noqa: F401, E501 |
| 17 | + from opencompass.configs.datasets.gsm8k.gsm8k_gen_17d0dc import gsm8k_datasets # noqa: F401, E501 |
26 | 18 | from opencompass.configs.datasets.hellaswag.hellaswag_10shot_ppl_59c85e import \ |
27 | 19 | hellaswag_datasets # noqa: F401, E501 |
28 | 20 | from opencompass.configs.datasets.humaneval.internal_humaneval_gen_ce6b06 import \ |
29 | 21 | humaneval_datasets as humaneval_v2_datasets # noqa: F401, E501 |
30 | 22 | from opencompass.configs.datasets.humaneval.internal_humaneval_gen_d2537e import \ |
31 | 23 | humaneval_datasets # noqa: F401, E501 |
32 | | - from opencompass.configs.datasets.math.math_4shot_base_gen_43d5b6 import \ |
33 | | - math_datasets # noqa: F401, E501 |
| 24 | + from opencompass.configs.datasets.math.math_4shot_base_gen_43d5b6 import math_datasets # noqa: F401, E501 |
34 | 25 | from opencompass.configs.datasets.MathBench.mathbench_2024_few_shot_mixed_4a3fd4 import \ |
35 | 26 | mathbench_datasets # noqa: F401, E501 |
36 | | - from opencompass.configs.datasets.mbpp.sanitized_mbpp_gen_742f0c import \ |
37 | | - sanitized_mbpp_datasets # noqa: F401, E501 |
38 | | - from opencompass.configs.datasets.mmlu.mmlu_ppl_ac766d import \ |
39 | | - mmlu_datasets # noqa: F401, E501 |
40 | | - from opencompass.configs.datasets.mmlu_pro.mmlu_pro_few_shot_gen_bfaf90 import \ |
41 | | - mmlu_pro_datasets # noqa: F401, E501 |
42 | | - from opencompass.configs.datasets.nq.nq_open_1shot_gen_20a989 import \ |
43 | | - nq_datasets # noqa: F401, E501 |
44 | | - from opencompass.configs.datasets.race.race_few_shot_ppl import \ |
45 | | - race_datasets # noqa: F401, E501 |
| 27 | + from opencompass.configs.datasets.mbpp.sanitized_mbpp_gen_742f0c import sanitized_mbpp_datasets # noqa: F401, E501 |
| 28 | + from opencompass.configs.datasets.mmlu.mmlu_ppl_ac766d import mmlu_datasets # noqa: F401, E501 |
| 29 | + from opencompass.configs.datasets.mmlu_pro.mmlu_pro_few_shot_gen_bfaf90 import mmlu_pro_datasets # noqa: F401, E501 |
| 30 | + from opencompass.configs.datasets.nq.nq_open_1shot_gen_20a989 import nq_datasets # noqa: F401, E501 |
| 31 | + from opencompass.configs.datasets.race.race_few_shot_ppl import race_datasets # noqa: F401, E501 |
46 | 32 | from opencompass.configs.datasets.SuperGLUE_BoolQ.SuperGLUE_BoolQ_few_shot_ppl import \ |
47 | 33 | BoolQ_datasets # noqa: F401, E501 |
48 | | - from opencompass.configs.datasets.TheoremQA.TheoremQA_5shot_gen_6f0af8 import \ |
49 | | - TheoremQA_datasets # noqa: F401, E501 |
| 34 | + from opencompass.configs.datasets.TheoremQA.TheoremQA_5shot_gen_6f0af8 import TheoremQA_datasets # noqa: F401, E501 |
50 | 35 | from opencompass.configs.datasets.triviaqa.triviaqa_wiki_1shot_gen_20a989 import \ |
51 | 36 | triviaqa_datasets # noqa: F401, E501 |
52 | 37 | from opencompass.configs.datasets.wikibench.wikibench_few_shot_ppl_c23d79 import \ |
53 | 38 | wikibench_datasets # noqa: F401, E501 |
54 | 39 | from opencompass.configs.datasets.winogrande.winogrande_5shot_ll_252f01 import \ |
55 | 40 | winogrande_datasets # noqa: F401, E501 |
56 | | - from opencompass.configs.models.baichuan.hf_baichuan_7b import \ |
57 | | - models as hf_baichuan_7b # noqa: F401, E501 |
58 | | - from opencompass.configs.models.gemma.hf_gemma_7b import \ |
59 | | - models as hf_gemma_7b # noqa: F401, E501 |
60 | | - from opencompass.configs.models.hf_internlm.hf_internlm2_5_7b import \ |
61 | | - models as hf_internlm2_5_7b # noqa: F401, E501 |
62 | | - from opencompass.configs.models.hf_internlm.hf_internlm2_7b import \ |
63 | | - models as hf_internlm2_7b # noqa: F401, E501 |
64 | | - from opencompass.configs.models.hf_internlm.hf_internlm2_20b import \ |
65 | | - models as hf_internlm2_20b # noqa: F401, E501 |
66 | | - from opencompass.configs.models.hf_internlm.hf_internlm_7b import \ |
67 | | - models as hf_internlm_7b # noqa: F401, E501 |
68 | | - from opencompass.configs.models.hf_internlm.hf_internlm_20b import \ |
69 | | - models as hf_internlm_20b # noqa: F401, E501 |
| 41 | + from opencompass.configs.models.baichuan.hf_baichuan_7b import models as hf_baichuan_7b # noqa: F401, E501 |
| 42 | + from opencompass.configs.models.gemma.hf_gemma_7b import models as hf_gemma_7b # noqa: F401, E501 |
| 43 | + from opencompass.configs.models.hf_internlm.hf_internlm2_5_7b import models as hf_internlm2_5_7b # noqa: F401, E501 |
| 44 | + from opencompass.configs.models.hf_internlm.hf_internlm2_7b import models as hf_internlm2_7b # noqa: F401, E501 |
| 45 | + from opencompass.configs.models.hf_internlm.hf_internlm2_20b import models as hf_internlm2_20b # noqa: F401, E501 |
| 46 | + from opencompass.configs.models.hf_internlm.hf_internlm_7b import models as hf_internlm_7b # noqa: F401, E501 |
| 47 | + from opencompass.configs.models.hf_internlm.hf_internlm_20b import models as hf_internlm_20b # noqa: F401, E501 |
70 | 48 | from opencompass.configs.models.hf_internlm.lmdeploy_internlm2_5_7b import \ |
71 | 49 | models as lmdeploy_internlm2_5_7b # noqa: F401, E501 |
72 | | - from opencompass.configs.models.hf_llama.hf_llama2_7b import \ |
73 | | - models as hf_llama2_7b # noqa: F401, E501 |
74 | | - from opencompass.configs.models.hf_llama.hf_llama3_8b import \ |
75 | | - models as hf_llama3_8b # noqa: F401, E501 |
76 | | - from opencompass.configs.models.mistral.hf_mistral_7b_v0_1 import \ |
77 | | - models as hf_mistral_7b_v0_1 # noqa: F401, E501 |
| 50 | + from opencompass.configs.models.hf_llama.hf_llama2_7b import models as hf_llama2_7b # noqa: F401, E501 |
| 51 | + from opencompass.configs.models.hf_llama.hf_llama3_8b import models as hf_llama3_8b # noqa: F401, E501 |
| 52 | + from opencompass.configs.models.mistral.hf_mistral_7b_v0_1 import models as hf_mistral_7b_v0_1 # noqa: F401, E501 |
78 | 53 | from opencompass.configs.models.mistral.hf_mixtral_8x7b_v0_1 import \ |
79 | 54 | models as hf_mixtral_8x7b_v0_1 # noqa: F401, E501 |
80 | | - from opencompass.configs.models.qwen2_5.lmdeploy_qwen2_5_7b import \ |
81 | | - models as lmdeploy_qwen2_5_7b # noqa: F401, E501 |
82 | | - from opencompass.configs.models.qwen.hf_qwen1_5_7b import \ |
83 | | - models as hf_qwen1_5_7b # noqa: F401, E501 |
84 | | - from opencompass.configs.models.qwen.hf_qwen2_7b import \ |
85 | | - models as hf_qwen2_7b # noqa: F401, E501 |
86 | | - from opencompass.configs.models.qwen.hf_qwen_7b import \ |
87 | | - models as hf_qwen_7b # noqa: F401, E501 |
88 | | - from opencompass.configs.models.qwen.lmdeploy_qwen1_5_7b import \ |
89 | | - models as lmdeploy_qwen1_5_7b # noqa: F401, E501 |
90 | | - from opencompass.configs.models.qwen.lmdeploy_qwen2_7b import \ |
91 | | - models as lmdeploy_qwen2_7b # noqa: F401, E501 |
| 55 | + from opencompass.configs.models.qwen2_5.lmdeploy_qwen2_5_7b import models as lmdeploy_qwen2_5_7b # noqa: F401, E501 |
| 56 | + from opencompass.configs.models.qwen.hf_qwen1_5_7b import models as hf_qwen1_5_7b # noqa: F401, E501 |
| 57 | + from opencompass.configs.models.qwen.hf_qwen2_7b import models as hf_qwen2_7b # noqa: F401, E501 |
| 58 | + from opencompass.configs.models.qwen.hf_qwen_7b import models as hf_qwen_7b # noqa: F401, E501 |
| 59 | + from opencompass.configs.models.qwen.lmdeploy_qwen1_5_7b import models as lmdeploy_qwen1_5_7b # noqa: F401, E501 |
| 60 | + from opencompass.configs.models.qwen.lmdeploy_qwen2_7b import models as lmdeploy_qwen2_7b # noqa: F401, E501 |
92 | 61 | # Summary Groups |
93 | | - from opencompass.configs.summarizers.groups.cmmlu import \ |
94 | | - cmmlu_summary_groups # noqa: F401, E501 |
95 | | - from opencompass.configs.summarizers.groups.GaokaoBench import \ |
96 | | - GaokaoBench_summary_groups # noqa: F401, E501 |
| 62 | + from opencompass.configs.summarizers.groups.cmmlu import cmmlu_summary_groups # noqa: F401, E501 |
| 63 | + from opencompass.configs.summarizers.groups.GaokaoBench import GaokaoBench_summary_groups # noqa: F401, E501 |
97 | 64 | from opencompass.configs.summarizers.groups.mathbench_v1_2024 import \ |
98 | 65 | mathbench_2024_summary_groups # noqa: F401, E501 |
99 | | - from opencompass.configs.summarizers.groups.mmlu import \ |
100 | | - mmlu_summary_groups # noqa: F401, E501 |
101 | | - from opencompass.configs.summarizers.groups.mmlu_pro import \ |
102 | | - mmlu_pro_summary_groups # noqa: F401, E501 |
| 66 | + from opencompass.configs.summarizers.groups.mmlu import mmlu_summary_groups # noqa: F401, E501 |
| 67 | + from opencompass.configs.summarizers.groups.mmlu_pro import mmlu_pro_summary_groups # noqa: F401, E501 |
103 | 68 |
|
104 | 69 | # read models |
105 | 70 | race_datasets = [race_datasets[1]] |
|
169 | 134 | 'mmlu_pro_psychology', |
170 | 135 | 'mmlu_pro_other', |
171 | 136 | ], |
172 | | - summary_groups=sum( |
173 | | - [v for k, v in locals().items() if k.endswith('_summary_groups')], []), |
| 137 | + summary_groups=sum([v for k, v in locals().items() if k.endswith('_summary_groups')], []), |
174 | 138 | ) |
175 | 139 |
|
176 | 140 | turbomind_qwen1_5_7b = deepcopy(*lmdeploy_qwen1_5_7b) |
|
0 commit comments