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
chenpangpang
transformers
Commits
87d5057d
Unverified
Commit
87d5057d
authored
Sep 20, 2021
by
Suraj Patil
Committed by
GitHub
Sep 20, 2021
Browse files
fix typo (#13647)
parent
b518aaf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/pytorch/summarization/run_summarization.py
examples/pytorch/summarization/run_summarization.py
+1
-1
No files found.
examples/pytorch/summarization/run_summarization.py
View file @
87d5057d
...
@@ -379,7 +379,7 @@ def main():
...
@@ -379,7 +379,7 @@ def main():
):
):
if
model_args
.
resize_position_embeddings
is
None
:
if
model_args
.
resize_position_embeddings
is
None
:
logger
.
warning
(
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_embedding
s
}
"
f
"to
{
data_args
.
max_source_length
}
."
f
"to
{
data_args
.
max_source_length
}
."
)
)
model
.
resize_position_embeddings
(
data_args
.
max_source_length
)
model
.
resize_position_embeddings
(
data_args
.
max_source_length
)
...
...
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