Skip to content

Commit

Permalink
update no split modules (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
pufanyi authored Dec 2, 2023
1 parent bf19f9c commit 6268820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/otter_ai/models/otter/modeling_otter.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ class OtterPreTrainedModel(PreTrainedModel):
config_class = OtterConfig
base_model_prefix = "otter"
supports_gradient_checkpointing = True
_no_split_modules = ["OtterPerceiverBlock", "CLIPEncoderLayer", "OtterLayer"]
_no_split_modules = ["OtterPerceiverBlock", "CLIPEncoderLayer", "OtterLayer", "CLIPVisionModel"]

def _init_weights(self, module):
"""Otter requires no specific initialization"""
Expand Down

0 comments on commit 6268820

Please sign in to comment.