Unverified Commit 1535a2c9 authored by Daniel Lok's avatar Daniel Lok Committed by GitHub
Browse files

Disable quick init for TapasPreTrainedModel (#32149)



add attribute to model
Signed-off-by: default avatarDaniel Lok <daniel.lok@databricks.com>
parent 34b43211
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment