File size: 459 Bytes
4acd7cb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from transformers import PretrainedConfig

class SovythosConfig(PretrainedConfig):
    model_type = "sovythos"

    def __init__(
        self,
        vocab_size=32000,
        dim=512,
        heads=16,
        layers=12,
        block_size=512,
        **kwargs
    ):
        super().__init__(**kwargs)
        self.vocab_size = vocab_size
        self.dim = dim
        self.heads = heads
        self.layers = layers
        self.block_size = block_size