Skip to content

Commit

Permalink
fix _no_split_modules for Whisper model (huggingface#22486)
Browse files Browse the repository at this point in the history
  • Loading branch information
pacman100 authored Apr 4, 2023
1 parent 9006774 commit 48fbd8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/models/whisper/modeling_whisper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 48fbd8f

Please sign in to comment.