Skip to content

Commit

Permalink
Move CLIP _no_split_modules to CLIPPreTrainedModel (#27841)
Browse files Browse the repository at this point in the history
Add _no_split_modules to CLIPModel
  • Loading branch information
lz1oceani authored Jan 30, 2024
1 parent a989c6c commit 1f5590d
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 1f5590d

Please sign in to comment.