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
dce4bd35
Unverified
Commit
dce4bd35
authored
Mar 05, 2025
by
Baber Abbasi
Committed by
GitHub
Mar 05, 2025
Browse files
Bugfix (#2762)
* bug fix * add warning for instruct models * nit
parent
38a9c530
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
lm_eval/evaluator.py
lm_eval/evaluator.py
+9
-1
No files found.
lm_eval/evaluator.py
View file @
dce4bd35
...
...
@@ -34,6 +34,7 @@ from lm_eval.utils import (
handle_non_serializable
,
hash_string
,
positional_deprecated
,
setup_logging
,
simple_parse_args_string
,
)
...
...
@@ -141,9 +142,16 @@ def simple_evaluate(
Dictionary of results
"""
if
verbostiy
is
not
None
:
lm_eval
.
setup_logging
(
verbosity
=
verbostiy
)
setup_logging
(
verbosity
=
verbostiy
)
start_date
=
time
.
time
()
if
isinstance
(
model_args
,
str
)
and
(
"instruct"
in
model_args
and
not
apply_chat_template
):
eval_logger
.
warning
(
"Instruct model detected, but chat template not applied. Recommend setting `apply_chat_template` (optionally `fewshot_as_multiturn`)."
)
if
delete_requests_cache
:
eval_logger
.
info
(
"Deleting requests cache..."
)
delete_cache
()
...
...
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