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
ddb7c0f3
"vscode:/vscode.git/clone" did not exist on "9c2719fc384fed50399a9c4254b5f757cf96e37f"
Commit
ddb7c0f3
authored
Jun 07, 2023
by
lintangsutawika
Browse files
added error message
parent
06eb4e1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lm_eval/tasks/__init__.py
lm_eval/tasks/__init__.py
+2
-1
No files found.
lm_eval/tasks/__init__.py
View file @
ddb7c0f3
...
@@ -41,11 +41,12 @@ for root, subdirs, file_list in os.walk(task_dir):
...
@@ -41,11 +41,12 @@ for root, subdirs, file_list in os.walk(task_dir):
if
"group"
in
config
:
if
"group"
in
config
:
for
group
in
config
[
"group"
]:
for
group
in
config
[
"group"
]:
register_group
(
group
)(
SubClass
)
register_group
(
group
)(
SubClass
)
except
Exception
:
except
Exception
as
error
:
eval_logger
.
warning
(
eval_logger
.
warning
(
"Failed to load config at in
\n
"
"Failed to load config at in
\n
"
f
"
{
yaml_path
}
\n
"
f
"
{
yaml_path
}
\n
"
" Config will not be added to registry"
" Config will not be added to registry"
f
" Error:
{
error
}
"
)
)
ALL_TASKS
=
sorted
(
list
(
TASK_REGISTRY
.
keys
())
+
list
(
GROUP_REGISTRY
.
keys
()))
ALL_TASKS
=
sorted
(
list
(
TASK_REGISTRY
.
keys
())
+
list
(
GROUP_REGISTRY
.
keys
()))
...
...
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