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
f01459c7
Unverified
Commit
f01459c7
authored
Aug 24, 2023
by
Tom Aarsen
Committed by
GitHub
Aug 24, 2023
Browse files
docs: Resolve typos in warning text (#25711)
Resolve typos in warning text
parent
c2123626
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/transformers/modeling_utils.py
src/transformers/modeling_utils.py
+2
-2
No files found.
src/transformers/modeling_utils.py
View file @
f01459c7
...
...
@@ -1502,7 +1502,7 @@ class PreTrainedModel(nn.Module, ModuleUtilsMixin, GenerationMixin, PushToHubMix
new_num_tokens
=
((
new_num_tokens
//
pad_to_multiple_of
)
+
1
)
*
pad_to_multiple_of
else
:
logger
.
warning
(
"You are resizing the embedding layer without providing a `pad_to_multiple_of` parameter. This means that the new embeding"
"You are resizing the embedding layer without providing a `pad_to_multiple_of` parameter. This means that the new embed
d
ing"
f
" dimension will be
{
new_num_tokens
}
. This might induce some performance reduction as *Tensor Cores* will not be available."
" For more details about this, or help on choosing the correct value for resizing, refer to this guide:"
" https://docs.nvidia.com/deeplearning/performance/dl-performance-matrix-multiplication/index.html#requirements-tc"
...
...
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