[BigBird Pegasus] set _supports_param_buffer_assignment to False (#32222)

set _supports_param_buffer_assignment to False
This commit is contained in:
Kashif Rasul 2024-07-25 15:11:43 +02:00 committed by GitHub
parent 1ecedf1d9e
commit 9b9a54e61b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1569,6 +1569,7 @@ class BigBirdPegasusPreTrainedModel(PreTrainedModel):
supports_gradient_checkpointing = True
_no_split_modules = ["BigBirdPegasusEncoderLayer", "BigBirdPegasusDecoderLayer"]
_skip_keys_device_placement = "past_key_values"
_supports_param_buffer_assignment = False
def _init_weights(self, module):
std = self.config.init_std