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
af556a09
Unverified
Commit
af556a09
authored
Oct 18, 2022
by
Younes Belkada
Committed by
GitHub
Oct 18, 2022
Browse files
add `accelerate` support for `Whisper` (#19697)
parent
fb0bd7b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/transformers/models/whisper/modeling_whisper.py
src/transformers/models/whisper/modeling_whisper.py
+1
-0
No files found.
src/transformers/models/whisper/modeling_whisper.py
View file @
af556a09
...
...
@@ -446,6 +446,7 @@ class WhisperPreTrainedModel(PreTrainedModel):
base_model_prefix
=
"model"
main_input_name
=
"input_features"
supports_gradient_checkpointing
=
True
_no_split_modules
=
[
"WhisperEncoderLayer"
]
def
_init_weights
(
self
,
module
):
std
=
self
.
config
.
init_std
...
...
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