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
ee59182d
Commit
ee59182d
authored
Aug 30, 2023
by
lintangsutawika
Browse files
formatting
parent
c605a710
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
lm_eval/logger.py
lm_eval/logger.py
+1
-1
main.py
main.py
+2
-2
No files found.
lm_eval/logger.py
View file @
ee59182d
...
@@ -7,4 +7,4 @@ logging.basicConfig(
...
@@ -7,4 +7,4 @@ logging.basicConfig(
)
)
eval_logger
=
logging
.
getLogger
(
"lm-eval"
)
eval_logger
=
logging
.
getLogger
(
"lm-eval"
)
SPACING
=
" "
*
47
SPACING
=
" "
*
47
\ No newline at end of file
main.py
View file @
ee59182d
...
@@ -131,12 +131,12 @@ def main():
...
@@ -131,12 +131,12 @@ def main():
if
os
.
path
.
isfile
(
task
):
if
os
.
path
.
isfile
(
task
):
config
=
utils
.
load_yaml_config
(
task
)
config
=
utils
.
load_yaml_config
(
task
)
task_names
.
append
(
config
)
task_names
.
append
(
config
)
if
task_names
==
[]:
if
task_names
==
[]:
eval_logger
.
error
(
eval_logger
.
error
(
"No tasks were detected,
\n
"
"No tasks were detected,
\n
"
f
"
{
SPACING
}
Try `lm-eval -h` for list of available tasks"
,
f
"
{
SPACING
}
Try `lm-eval -h` for list of available tasks"
,
)
)
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