Unverified Commit dce4bd35 authored by Baber Abbasi's avatar Baber Abbasi Committed by GitHub
Browse files

Bugfix (#2762)

* bug fix

* add warning for instruct models

* nit
parent 38a9c530
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment