Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
a3e8d3cb
Unverified
Commit
a3e8d3cb
authored
Jan 03, 2023
by
ivanllt
Committed by
GitHub
Jan 03, 2023
Browse files
Fix T5 docstring (#20957)
Fix start_docstring for deparallelize method
parent
588faad1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/t5/modeling_t5.py
src/transformers/models/t5/modeling_t5.py
+1
-1
No files found.
src/transformers/models/t5/modeling_t5.py
View file @
a3e8d3cb
...
...
@@ -891,7 +891,7 @@ class T5Stack(T5PreTrainedModel):
# Set final layer norm to last device
self
.
final_layer_norm
=
self
.
final_layer_norm
.
to
(
self
.
last_device
)
@
add_start_docstrings
(
PARALLELIZE_DOCSTRING
)
@
add_start_docstrings
(
DE
PARALLELIZE_DOCSTRING
)
def
deparallelize
(
self
):
self
.
model_parallel
=
False
self
.
device_map
=
None
...
...
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