Abdurrahmanesc commited on
Commit
06e366b
·
verified ·
1 Parent(s): 627b60c

Update configuration_tinygpt.py

Browse files
Files changed (1) hide show
  1. configuration_tinygpt.py +7 -7
configuration_tinygpt.py CHANGED
@@ -1,4 +1,4 @@
1
- from transformers import PretrainedConfig
2
 
3
  class TinyGPTConfig(PretrainedConfig):
4
  model_type = "tinygpt"
@@ -6,17 +6,17 @@ class TinyGPTConfig(PretrainedConfig):
6
  def __init__(
7
  self,
8
  vocab_size=30522,
9
- d_model=256,
10
- n_heads=4,
11
  n_layers=4,
 
 
12
  d_ff=1024,
13
- max_seq_len=256,
14
  **kwargs
15
  ):
16
  super().__init__(**kwargs)
17
  self.vocab_size = vocab_size
18
- self.d_model = d_model
19
- self.n_heads = n_heads
20
  self.n_layers = n_layers
 
 
21
  self.d_ff = d_ff
22
- self.max_seq_len = max_seq_len
 
1
+ from transformers.configuration_utils import PretrainedConfig
2
 
3
  class TinyGPTConfig(PretrainedConfig):
4
  model_type = "tinygpt"
 
6
  def __init__(
7
  self,
8
  vocab_size=30522,
 
 
9
  n_layers=4,
10
+ n_heads=4,
11
+ d_model=256,
12
  d_ff=1024,
13
+ max_seq_len=512,
14
  **kwargs
15
  ):
16
  super().__init__(**kwargs)
17
  self.vocab_size = vocab_size
 
 
18
  self.n_layers = n_layers
19
+ self.n_heads = n_heads
20
+ self.d_model = d_model
21
  self.d_ff = d_ff
22
+ self.max_seq_len = max_seq_len