cognitivess
commited on
Commit
•
a4555a9
1
Parent(s):
16b7ff1
Update cognitivess_model/configuration_cognitivess.py
Browse files
cognitivess_model/configuration_cognitivess.py
CHANGED
@@ -1,7 +1,14 @@
|
|
1 |
from transformers import LlamaConfig
|
2 |
|
3 |
class CognitivessConfig(LlamaConfig):
|
4 |
-
model_type =
|
5 |
|
6 |
-
def __init__(self, **kwargs):
|
7 |
-
super().__init__(**kwargs)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
from transformers import LlamaConfig
|
2 |
|
3 |
class CognitivessConfig(LlamaConfig):
|
4 |
+
model_type = "cognitivess"
|
5 |
|
6 |
+
def __init__(self, quantization_config=None, **kwargs):
|
7 |
+
super().__init__(**kwargs)
|
8 |
+
self.quantization_config = quantization_config
|
9 |
+
|
10 |
+
def to_dict(self):
|
11 |
+
output = super().to_dict()
|
12 |
+
if self.quantization_config is not None:
|
13 |
+
output["quantization_config"] = self.quantization_config.to_dict()
|
14 |
+
return output
|