fix log level

Former-commit-id: 8d21302f6201b3f33c10f61f3559bd95be3363c2
This commit is contained in:
hiyouga 2024-04-24 23:42:59 +08:00
parent 83404c4fa9
commit 21fac4c98c

View File

@ -30,7 +30,7 @@ def configure_rope(config: "PretrainedConfig", model_args: "ModelArguments", is_
current_max_length = getattr(config, "max_position_embeddings", None) current_max_length = getattr(config, "max_position_embeddings", None)
if current_max_length and model_args.model_max_length > current_max_length: 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) "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) setattr(config, "max_position_embeddings", model_args.model_max_length)