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
b698048d
Commit
b698048d
authored
May 23, 2023
by
lintangsutawika
Browse files
better error warning
parent
62156100
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
lm_eval/tasks/__init__.py
lm_eval/tasks/__init__.py
+6
-2
No files found.
lm_eval/tasks/__init__.py
View file @
b698048d
...
@@ -42,8 +42,12 @@ for root, subdirs, file_list in os.walk(task_dir):
...
@@ -42,8 +42,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
as
err
:
except
Exception
:
print
(
f
"Unexpected
{
err
=
}
,
{
type
(
err
)
=
}
"
)
eval_logger
.
warning
(
"Failed to load config at in
\n
"
f
"
{
yaml_path
}
\n
"
" Config will not be added to registry"
)
TASK_REGISTRY
=
task_registry
TASK_REGISTRY
=
task_registry
GROUP_REGISTRY
=
group_registry
GROUP_REGISTRY
=
group_registry
...
...
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