Skip to content

Commit

Permalink
Disable quick init for TapasPreTrainedModel (#32149)
Browse files Browse the repository at this point in the history
add attribute to model

Signed-off-by: Daniel Lok <daniel.lok@databricks.com>
  • Loading branch information
daniellok-db authored Jul 23, 2024
1 parent 34b4321 commit 1535a2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/transformers/models/tapas/modeling_tapas.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,7 @@ class TapasPreTrainedModel(PreTrainedModel):
config_class = TapasConfig
base_model_prefix = "tapas"
supports_gradient_checkpointing = True
_supports_param_buffer_assignment = False

# Copied from transformers.models.bert.modeling_bert.BertPreTrainedModel._init_weights
def _init_weights(self, module):
Expand Down

0 comments on commit 1535a2c

Please sign in to comment.