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
af2d2f3e
Unverified
Commit
af2d2f3e
authored
Feb 26, 2025
by
Baber Abbasi
Committed by
GitHub
Feb 26, 2025
Browse files
fix log condition (#2737)
parent
29971faa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
lm_eval/__main__.py
lm_eval/__main__.py
+3
-2
No files found.
lm_eval/__main__.py
View file @
af2d2f3e
...
@@ -376,10 +376,11 @@ def cli_evaluate(args: Union[argparse.Namespace, None] = None) -> None:
...
@@ -376,10 +376,11 @@ def cli_evaluate(args: Union[argparse.Namespace, None] = None) -> None:
datasets
.
config
.
HF_DATASETS_TRUST_REMOTE_CODE
=
True
datasets
.
config
.
HF_DATASETS_TRUST_REMOTE_CODE
=
True
args
.
model_args
=
args
.
model_args
+
",trust_remote_code=True"
args
.
model_args
=
args
.
model_args
+
",trust_remote_code=True"
print
(
eval_logger
.
level
)
eval_logger
.
info
(
eval_logger
.
info
(
f
"Selected Tasks:
{
task_names
}
"
f
"Selected Tasks:
{
task_names
}
"
)
if
eval_logger
.
level
>=
logging
.
INFO
else
print
(
f
"Selected Tasks:
{
task_names
}
"
)
)
if
eval_logger
.
getEffectiveLevel
()
>=
logging
.
INFO
else
print
(
f
"Selected Tasks:
{
task_names
}
"
)
request_caching_args
=
request_caching_arg_to_dict
(
request_caching_args
=
request_caching_arg_to_dict
(
cache_requests
=
args
.
cache_requests
cache_requests
=
args
.
cache_requests
...
...
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