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
74119471
Unverified
Commit
74119471
authored
Feb 02, 2024
by
Lintang Sutawika
Committed by
GitHub
Feb 02, 2024
Browse files
fix on --task list (#1387)
parent
9a902155
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lm_eval/__main__.py
lm_eval/__main__.py
+2
-1
No files found.
lm_eval/__main__.py
View file @
74119471
...
@@ -184,8 +184,9 @@ def cli_evaluate(args: Union[argparse.Namespace, None] = None) -> None:
...
@@ -184,8 +184,9 @@ def cli_evaluate(args: Union[argparse.Namespace, None] = None) -> None:
sys
.
exit
()
sys
.
exit
()
elif
args
.
tasks
==
"list"
:
elif
args
.
tasks
==
"list"
:
eval_logger
.
info
(
eval_logger
.
info
(
"Available Tasks:
\n
- {}"
.
format
(
"
\n
- "
.
join
(
task_manager
.
all_tasks
()
))
"Available Tasks:
\n
- {}"
.
format
(
"
\n
- "
.
join
(
task_manager
.
all_tasks
))
)
)
sys
.
exit
()
else
:
else
:
if
os
.
path
.
isdir
(
args
.
tasks
):
if
os
.
path
.
isdir
(
args
.
tasks
):
import
glob
import
glob
...
...
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