Update modeling_smb_v1.py
Browse files- modeling_smb_v1.py +1 -0
modeling_smb_v1.py
CHANGED
|
@@ -482,6 +482,7 @@ class SMBV1PreTrainedModel(PreTrainedModel):
|
|
| 482 |
_no_split_modules = ["SMBV1VisionAttention"]
|
| 483 |
_skip_keys_device_placement = "past_key_values"
|
| 484 |
_supports_flash_attn_2 = True
|
|
|
|
| 485 |
|
| 486 |
def _init_weights(self, module):
|
| 487 |
std = getattr(self.config, "initializer_range", 0.02)
|
|
|
|
| 482 |
_no_split_modules = ["SMBV1VisionAttention"]
|
| 483 |
_skip_keys_device_placement = "past_key_values"
|
| 484 |
_supports_flash_attn_2 = True
|
| 485 |
+
_supports_attention_backend = True
|
| 486 |
|
| 487 |
def _init_weights(self, module):
|
| 488 |
std = getattr(self.config, "initializer_range", 0.02)
|