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
48fbd8fa
Unverified
Commit
48fbd8fa
authored
Apr 04, 2023
by
Sourab Mangrulkar
Committed by
GitHub
Apr 04, 2023
Browse files
fix `_no_split_modules` for Whisper model (#22486)
parent
90067748
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/whisper/modeling_whisper.py
src/transformers/models/whisper/modeling_whisper.py
+1
-1
No files found.
src/transformers/models/whisper/modeling_whisper.py
View file @
48fbd8fa
...
@@ -577,7 +577,7 @@ class WhisperPreTrainedModel(PreTrainedModel):
...
@@ -577,7 +577,7 @@ class WhisperPreTrainedModel(PreTrainedModel):
base_model_prefix
=
"model"
base_model_prefix
=
"model"
main_input_name
=
"input_features"
main_input_name
=
"input_features"
supports_gradient_checkpointing
=
True
supports_gradient_checkpointing
=
True
_no_split_modules
=
[
"WhisperEncoderLayer"
]
_no_split_modules
=
[
"WhisperEncoderLayer"
,
"WhisperDecoderLayer"
]
def
_init_weights
(
self
,
module
):
def
_init_weights
(
self
,
module
):
std
=
self
.
config
.
init_std
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