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
1eb91d36
Commit
1eb91d36
authored
Feb 12, 2021
by
&
Browse files
adds missing task error
parent
61aa411b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
lm_eval/tasks/__init__.py
lm_eval/tasks/__init__.py
+8
-1
No files found.
lm_eval/tasks/__init__.py
View file @
1eb91d36
from
pprint
import
pprint
from
.
import
superglue
from
.
import
glue
from
.
import
arc
...
...
@@ -96,7 +98,12 @@ ALL_TASKS = sorted(list(TASK_REGISTRY))
def
get_task
(
task_name
):
return
TASK_REGISTRY
[
task_name
]
try
:
return
TASK_REGISTRY
[
task_name
]
except
KeyError
as
e
:
print
(
"Available tasks:"
)
pprint
(
TASK_REGISTRY
)
raise
KeyError
(
f
"Missing task
{
task_name
}
"
)
def
get_task_dict
(
task_name_list
):
...
...
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