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
c605a710
Commit
c605a710
authored
Aug 30, 2023
by
lintangsutawika
Browse files
add logging information
parent
618c5936
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
lm_eval/logger.py
lm_eval/logger.py
+2
-0
main.py
main.py
+7
-1
No files found.
lm_eval/logger.py
View file @
c605a710
...
...
@@ -6,3 +6,5 @@ logging.basicConfig(
level
=
logging
.
INFO
,
)
eval_logger
=
logging
.
getLogger
(
"lm-eval"
)
SPACING
=
" "
*
47
\ No newline at end of file
main.py
View file @
c605a710
...
...
@@ -9,7 +9,7 @@ from pathlib import Path
from
lm_eval
import
evaluator
,
utils
from
lm_eval.api.registry
import
ALL_TASKS
from
lm_eval.logger
import
eval_logger
from
lm_eval.logger
import
eval_logger
,
SPACING
from
lm_eval.tasks
import
include_task_folder
os
.
environ
[
"TOKENIZERS_PARALLELISM"
]
=
"false"
...
...
@@ -131,6 +131,12 @@ def main():
if
os
.
path
.
isfile
(
task
):
config
=
utils
.
load_yaml_config
(
task
)
task_names
.
append
(
config
)
if
task_names
==
[]:
eval_logger
.
error
(
"No tasks were detected,
\n
"
f
"
{
SPACING
}
Try `lm-eval -h` for list of available tasks"
,
)
if
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