yuewang-sf commited on
Commit
5583994
1 Parent(s): dc9015f

Update modeling_codet5p.py

Browse files
Files changed (1) hide show
  1. modeling_codet5p.py +1 -1
modeling_codet5p.py CHANGED
@@ -758,7 +758,7 @@ def shift_tokens_right(input_ids: torch.Tensor, pad_token_id: int, decoder_start
758
  # Adapted from transformers.models.encoder_decoder.modeling_encoder_decoder.EncoderDecoderModel
759
  class CodeT5pEncoderDecoderModel(PreTrainedModel):
760
  config_class = CodeT5pConfig
761
-
762
  def __init__(
763
  self,
764
  config: Optional[PretrainedConfig] = None,
 
758
  # Adapted from transformers.models.encoder_decoder.modeling_encoder_decoder.EncoderDecoderModel
759
  class CodeT5pEncoderDecoderModel(PreTrainedModel):
760
  config_class = CodeT5pConfig
761
+ _no_split_modules = ["CodeT5pBlock"]
762
  def __init__(
763
  self,
764
  config: Optional[PretrainedConfig] = None,