Create configuration_sovythos.py
Browse files- configuration_sovythos.py +20 -0
configuration_sovythos.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from transformers import PretrainedConfig
|
| 2 |
+
|
| 3 |
+
class SovythosConfig(PretrainedConfig):
|
| 4 |
+
model_type = "sovythos"
|
| 5 |
+
|
| 6 |
+
def __init__(
|
| 7 |
+
self,
|
| 8 |
+
vocab_size=32000,
|
| 9 |
+
dim=512,
|
| 10 |
+
heads=16,
|
| 11 |
+
layers=12,
|
| 12 |
+
block_size=512,
|
| 13 |
+
**kwargs
|
| 14 |
+
):
|
| 15 |
+
super().__init__(**kwargs)
|
| 16 |
+
self.vocab_size = vocab_size
|
| 17 |
+
self.dim = dim
|
| 18 |
+
self.heads = heads
|
| 19 |
+
self.layers = layers
|
| 20 |
+
self.block_size = block_size
|