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
gaoqiong
lm-evaluation-harness
Commits
988a400f
Commit
988a400f
authored
Oct 05, 2020
by
Leo Gao
Browse files
Add abstract constructor
parent
b0585de4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
lm_eval/base.py
lm_eval/base.py
+3
-0
No files found.
lm_eval/base.py
View file @
988a400f
...
...
@@ -54,6 +54,9 @@ class LM(abc.ABC):
class
Dataset
(
abc
.
ABC
):
@
abc
.
abstractmethod
def
__init__
(
self
):
self
.
download
()
def
download
(
self
):
"""Downloads the task dataset if necessary"""
...
...
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