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
7489a342
Commit
7489a342
authored
Aug 26, 2024
by
Baber
Browse files
add error handling
parent
478d96cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
lm_eval/tasks/__init__.py
lm_eval/tasks/__init__.py
+8
-4
No files found.
lm_eval/tasks/__init__.py
View file @
7489a342
...
...
@@ -274,10 +274,14 @@ class TaskManager:
# very scuffed: set task name here. TODO: fixme?
task_object
.
config
.
task
=
config
[
"task"
]
else
:
if
"output_type"
in
config
:
task_object
=
JudgeTask
(
config
=
config
,
output_path
=
config
.
get
(
"output_path"
)
)
try
:
if
"output_type"
in
config
:
task_object
=
JudgeTask
(
config
=
config
,
output_path
=
config
.
get
(
"output_path"
)
)
except
Exception
:
config
.
pop
(
"output_type"
)
task_object
=
ConfigurableTask
(
config
=
config
)
else
:
task_object
=
ConfigurableTask
(
config
=
config
)
...
...
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