FlameF0X commited on
Commit
e93cc67
·
verified ·
1 Parent(s): 01b9931

Create configuration_snowflake_core.py

Browse files
Files changed (1) hide show
  1. configuration_snowflake_core.py +34 -0
configuration_snowflake_core.py ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from transformers import PretrainedConfig
2
+
3
+ class SnowflakeCoreConfig(PretrainedConfig):
4
+ model_type = "snowflake_core"
5
+
6
+ def __init__(
7
+ self,
8
+ vocab_size=50257,
9
+ embed_dim=1024,
10
+ num_heads=16,
11
+ num_layers=24,
12
+ max_length=2048,
13
+ ffn_dim=4096,
14
+ pad_token_id=50256,
15
+ eos_token_id=50256,
16
+ bos_token_id=None,
17
+ unk_token_id=None,
18
+ dropout=0.1,
19
+ **kwargs
20
+ ):
21
+ super().__init__(
22
+ pad_token_id=pad_token_id,
23
+ eos_token_id=eos_token_id,
24
+ bos_token_id=bos_token_id,
25
+ unk_token_id=unk_token_id,
26
+ **kwargs
27
+ )
28
+ self.vocab_size = vocab_size
29
+ self.embed_dim = embed_dim
30
+ self.num_heads = num_heads
31
+ self.num_layers = num_layers
32
+ self.max_length = max_length
33
+ self.ffn_dim = ffn_dim
34
+ self.dropout = dropout