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
2e4b3c99
Commit
2e4b3c99
authored
Aug 31, 2023
by
lintangsutawika
Browse files
modifed error message
parent
6f42ab7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
main.py
main.py
+5
-2
No files found.
main.py
View file @
2e4b3c99
...
@@ -136,10 +136,13 @@ def main():
...
@@ -136,10 +136,13 @@ def main():
task_missing
.
append
(
task
)
task_missing
.
append
(
task
)
if
task_missing
!=
[]:
if
task_missing
!=
[]:
missing
=
", "
.
join
(
task_missing
),
eval_logger
.
error
(
eval_logger
.
error
(
"Tasks were not found: {}
\n
"
f
"Tasks were not found:
{
missing
}
\n
"
"{}Try `lm-eval -h` for list of available tasks"
.
format
(
", "
.
join
(
task_missing
),
SPACING
)
f
"
{
SPACING
}
Try `lm-eval -h` for list of available tasks"
,
)
)
raise
ValueError
(
f
"Tasks
{
missing
}
were not found."
)
if
args
.
output_path
:
if
args
.
output_path
:
path
=
Path
(
args
.
output_path
)
path
=
Path
(
args
.
output_path
)
...
...
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