charlesxsh commited on
Commit
11d1ffd
·
1 Parent(s): 923eadd
Files changed (2) hide show
  1. config.json +1 -1
  2. custom_model.py +1 -0
config.json CHANGED
@@ -9,5 +9,5 @@
9
  "architectures": [
10
  "CustomLM"
11
  ],
12
- "num_attention_heads": 4
13
  }
 
9
  "architectures": [
10
  "CustomLM"
11
  ],
12
+ "num_attention_heads": 1
13
  }
custom_model.py CHANGED
@@ -8,6 +8,7 @@ class CustomModelConfig(PretrainedConfig):
8
  def __init__(self, hidden_size=128, **kwargs):
9
  super().__init__(**kwargs)
10
  self.hidden_size = hidden_size
 
11
 
12
 
13
  class CustomModel(PreTrainedModel):
 
8
  def __init__(self, hidden_size=128, **kwargs):
9
  super().__init__(**kwargs)
10
  self.hidden_size = hidden_size
11
+ self.num_attention_heads = 1
12
 
13
 
14
  class CustomModel(PreTrainedModel):