File size: 702 Bytes
5038157 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | from transformers import PretrainedConfig
class KairoGPTConfig(PretrainedConfig):
model_type = "kairo_gpt"
def __init__(
self,
vocab_size=32000,
block_size=384,
n_layer=8,
n_head=8,
n_embd=512,
dropout=0.1,
**kwargs,
):
self.vocab_size = vocab_size
self.block_size = block_size
self.n_layer = n_layer
self.n_head = n_head
self.n_embd = n_embd
self.dropout = dropout
self.auto_map = {
"AutoConfig": "configuration_kairo.KairoGPTConfig",
"AutoModelForCausalLM": "modeling_kairo.KairoGPTForCausalLM",
}
super().__init__(**kwargs)
|