This commit is contained in:
Suraj Patil 2021-09-20 13:22:26 +05:30 committed by GitHub
parent b518aaf193
commit 87d5057d86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -379,7 +379,7 @@ def main():
):
if model_args.resize_position_embeddings is None:
logger.warning(
f"Increasing the model's number of position embedding vectors from {model.config.max_position_embedding} "
f"Increasing the model's number of position embedding vectors from {model.config.max_position_embeddings} "
f"to {data_args.max_source_length}."
)
model.resize_position_embeddings(data_args.max_source_length)