Skip to content

Commit

Permalink
add no split modules for xlmrobertaxl (#31223)
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelFay authored Jun 4, 2024
1 parent 821b772 commit 2965b20
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ class XLMRobertaXLPreTrainedModel(PreTrainedModel):

config_class = XLMRobertaXLConfig
base_model_prefix = "roberta"
_no_split_modules = ["XLMRobertaXLEmbeddings", "XLMRobertaXLSelfAttention"]

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

0 comments on commit 2965b20

Please sign in to comment.