Skip to content

Commit

Permalink
fix vit msn multi gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Ehrhardt committed May 14, 2024
1 parent d12cdc8 commit ead817e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/models/vit_msn/modeling_vit_msn.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ class ViTMSNPreTrainedModel(PreTrainedModel):
base_model_prefix = "vit"
main_input_name = "pixel_values"
supports_gradient_checkpointing = True
_no_split_modules = ["ViTMSNAttention"]
_no_split_modules = ["ViTMSNAttention", "ViTMSNSdpaAttention"]
_supports_sdpa = True

# todo: Resort to https://github.com/facebookresearch/msn/blob/main/src/deit.py#L200-#L211
Expand Down

0 comments on commit ead817e

Please sign in to comment.