fix log level

This commit is contained in:
hiyouga 2024-04-24 23:42:59 +08:00
parent 297fb8ead3
commit 7fbe8add8f
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ def configure_rope(config: "PretrainedConfig", model_args: "ModelArguments", is_
current_max_length = getattr(config, "max_position_embeddings", None)
if current_max_length and model_args.model_max_length > current_max_length:
logger.warning(
logger.info(
"Enlarge max model length from {} to {}.".format(current_max_length, model_args.model_max_length)
)
setattr(config, "max_position_embeddings", model_args.model_max_length)