mirror of
https://github.com/saymrwulf/transformers.git
synced 2026-05-14 20:58:08 +00:00
fix _no_split_modules for Whisper model (#22486)
This commit is contained in:
parent
900677487d
commit
48fbd8fa2e
1 changed files with 1 additions and 1 deletions
|
|
@ -577,7 +577,7 @@ class WhisperPreTrainedModel(PreTrainedModel):
|
|||
base_model_prefix = "model"
|
||||
main_input_name = "input_features"
|
||||
supports_gradient_checkpointing = True
|
||||
_no_split_modules = ["WhisperEncoderLayer"]
|
||||
_no_split_modules = ["WhisperEncoderLayer", "WhisperDecoderLayer"]
|
||||
|
||||
def _init_weights(self, module):
|
||||
std = self.config.init_std
|
||||
|
|
|
|||
Loading…
Reference in a new issue