update builder script
Browse files
testcm.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
# coding=utf-8
|
2 |
# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
|
3 |
#
|
4 |
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -12,7 +11,6 @@
|
|
12 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
# See the License for the specific language governing permissions and
|
14 |
# limitations under the License.
|
15 |
-
|
16 |
"""The CodeMMLU benchmark."""
|
17 |
|
18 |
import os
|
@@ -52,23 +50,11 @@ class CodeMMLU(datasets.GeneratorBasedBuilder):
|
|
52 |
# 0.0.1: Initial release.
|
53 |
VERSION = datasets.Version("0.0.1")
|
54 |
|
55 |
-
# BUILDER_CONFIGS = [
|
56 |
-
# datasets.BuilderConfig(
|
57 |
-
# name=sub, version=VERSION,
|
58 |
-
# description="CodeMMLU test subject {}".format(sub)
|
59 |
-
# ) for sub in _SUBJECTS
|
60 |
-
# ]
|
61 |
-
|
62 |
BUILDER_CONFIGS = [
|
63 |
-
datasets.BuilderConfig(
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
datasets.BuilderConfig(name="others", version=VERSION, description="CodeMMLU test subject: Others "),
|
68 |
-
datasets.BuilderConfig(name="code_completion", version=VERSION, description="CodeMMLU test subject: Code Completion "),
|
69 |
-
datasets.BuilderConfig(name="fill_in_the_middle", version=VERSION, description="CodeMMLU test subject: Fill in the Middle "),
|
70 |
-
datasets.BuilderConfig(name="code_repair", version=VERSION, description="CodeMMLU test subject: Code Repair "),
|
71 |
-
datasets.BuilderConfig(name="defect_detection", version=VERSION, description="CodeMMLU test subject: Defect Detection "),
|
72 |
]
|
73 |
|
74 |
|
|
|
|
|
1 |
# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
|
2 |
#
|
3 |
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12 |
# See the License for the specific language governing permissions and
|
13 |
# limitations under the License.
|
|
|
14 |
"""The CodeMMLU benchmark."""
|
15 |
|
16 |
import os
|
|
|
50 |
# 0.0.1: Initial release.
|
51 |
VERSION = datasets.Version("0.0.1")
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
BUILDER_CONFIGS = [
|
54 |
+
datasets.BuilderConfig(
|
55 |
+
name=sub, version=datasets.Version("0.0.1"),
|
56 |
+
description="CodeMMLU test subject {}".format(sub)
|
57 |
+
) for sub in _SUBJECTS
|
|
|
|
|
|
|
|
|
|
|
58 |
]
|
59 |
|
60 |
|