Upload folder using huggingface_hub
Browse files- codemmlu.py +8 -15
codemmlu.py
CHANGED
|
@@ -44,27 +44,20 @@ _SUBJECTS = [
|
|
| 44 |
"code_completion", "fill_in_the_middle", "code_repair", "defect_detection"
|
| 45 |
]
|
| 46 |
|
| 47 |
-
class CodeMMLUConfig(datasets.BuilderConfig):
|
| 48 |
-
"""BuilderConfig for CodeMMLU."""
|
| 49 |
-
|
| 50 |
-
def __init__(self, **kwargs):
|
| 51 |
-
"""BuilderConfig for CodeMMLU.
|
| 52 |
-
Args:
|
| 53 |
-
**kwargs: keyword arguments forwarded to super.
|
| 54 |
-
"""
|
| 55 |
-
# Version history:
|
| 56 |
-
# 0.0.1: Initial release.
|
| 57 |
-
super(CodeMMLUConfig, self).__init__(version=datasets.Version("0.0.1"), **kwargs)
|
| 58 |
-
|
| 59 |
|
| 60 |
class CodeMMLU(datasets.GeneratorBasedBuilder):
|
| 61 |
"""CodeMMLU: A Multi-Task Benchmark for Assessing Code Understanding Capabilities"""
|
|
|
|
|
|
|
| 62 |
BUILDER_CONFIGS = [
|
| 63 |
-
|
| 64 |
-
name=sub,
|
| 65 |
-
|
|
|
|
|
|
|
| 66 |
]
|
| 67 |
|
|
|
|
| 68 |
def _info(self):
|
| 69 |
features = datasets.Features(
|
| 70 |
{
|
|
|
|
| 44 |
"code_completion", "fill_in_the_middle", "code_repair", "defect_detection"
|
| 45 |
]
|
| 46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
class CodeMMLU(datasets.GeneratorBasedBuilder):
|
| 49 |
"""CodeMMLU: A Multi-Task Benchmark for Assessing Code Understanding Capabilities"""
|
| 50 |
+
# Version history:
|
| 51 |
+
# 0.0.1: Initial release.
|
| 52 |
BUILDER_CONFIGS = [
|
| 53 |
+
datasets.BuilderConfig(
|
| 54 |
+
name=sub, version=datasets.Version("0.0.1"),
|
| 55 |
+
description="CodeMMLU test subject {}".format(sub)
|
| 56 |
+
)
|
| 57 |
+
for sub in _SUBJECTS
|
| 58 |
]
|
| 59 |
|
| 60 |
+
|
| 61 |
def _info(self):
|
| 62 |
features = datasets.Features(
|
| 63 |
{
|