Skip to content

Commit

Permalink
Add _no_split_modules to CLIPModel
Browse files Browse the repository at this point in the history
  • Loading branch information
lz1oceani committed Dec 29, 2023
1 parent 3cefac1 commit 8cbc978
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/transformers/models/clip/modeling_clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,7 @@ def forward(
@add_start_docstrings(CLIP_START_DOCSTRING)
class CLIPModel(CLIPPreTrainedModel):
config_class = CLIPConfig
_no_split_modules = ["CLIPTextEmbeddings", "CLIPEncoderLayer"]

def __init__(self, config: CLIPConfig):
super().__init__(config)
Expand Down

0 comments on commit 8cbc978

Please sign in to comment.