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
0e75f58c
Commit
0e75f58c
authored
Sep 19, 2023
by
baberabb
Browse files
raise exception if dependencies not met
parent
78a33749
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
lm_eval/tasks/minerva_math/utils.py
lm_eval/tasks/minerva_math/utils.py
+3
-0
No files found.
lm_eval/tasks/minerva_math/utils.py
View file @
0e75f58c
...
...
@@ -181,6 +181,9 @@ def is_equiv(x1: str, x2: str) -> bool:
except
TimeoutError
:
eval_logger
.
debug
(
f
"Timed out comparing
{
x1
}
and
{
x2
}
"
)
return
False
except
ImportError
as
e
:
eval_logger
.
error
(
e
)
raise
except
Exception
as
e
:
eval_logger
.
debug
(
f
"Failed comparing
{
x1
}
and
{
x2
}
with
{
e
}
"
)
return
False
...
...
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