cognitivess
commited on
Commit
•
0cfbce2
1
Parent(s):
79f1afe
Update cognitivess_model/modeling_cognitivess.py
Browse files
cognitivess_model/modeling_cognitivess.py
CHANGED
@@ -74,7 +74,8 @@ class TransformerBlock(nn.Module):
|
|
74 |
return hidden_states
|
75 |
|
76 |
class CognitivessForCausalLM(PreTrainedModel):
|
77 |
-
config_class = CognitivessConfig
|
|
|
78 |
|
79 |
def __init__(self, config: CognitivessConfig):
|
80 |
super().__init__(config)
|
|
|
74 |
return hidden_states
|
75 |
|
76 |
class CognitivessForCausalLM(PreTrainedModel):
|
77 |
+
config_class = CognitivessConfig
|
78 |
+
_no_split_modules = [] # This line ensures that device_map='auto' works
|
79 |
|
80 |
def __init__(self, config: CognitivessConfig):
|
81 |
super().__init__(config)
|