Skip to content

Commit

Permalink
[ClipVision] accelerate support for clip-vision (huggingface#27851)
Browse files Browse the repository at this point in the history
support accelerate for clip-vision
  • Loading branch information
younesbelkada authored Dec 5, 2023
1 parent b7e6d12 commit 3e68944
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 @@ -870,6 +870,7 @@ def forward(
class CLIPVisionModel(CLIPPreTrainedModel):
config_class = CLIPVisionConfig
main_input_name = "pixel_values"
_no_split_modules = ["CLIPEncoderLayer"]

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

0 comments on commit 3e68944

Please sign in to comment.