TenFate commited on
Commit
9937a04
·
verified ·
1 Parent(s): 0fbf52b

Delete configuration_zdxdllm.py

Browse files
Files changed (1) hide show
  1. configuration_zdxdllm.py +0 -58
configuration_zdxdllm.py DELETED
@@ -1,58 +0,0 @@
1
- from transformers import PretrainedConfig
2
-
3
-
4
- class ChatGLMConfig(PretrainedConfig):
5
- model_type = "chatglm"
6
-
7
- def __init__(
8
- self,
9
- num_layers=28,
10
- padded_vocab_size=65024,
11
- hidden_size=4096,
12
- ffn_hidden_size=13696,
13
- kv_channels=128,
14
- num_attention_heads=32,
15
- seq_length=2048,
16
- hidden_dropout=0.0,
17
- classifier_dropout=None,
18
- attention_dropout=0.0,
19
- layernorm_epsilon=1e-5,
20
- rmsnorm=True,
21
- apply_residual_connection_post_layernorm=False,
22
- post_layer_norm=True,
23
- add_bias_linear=False,
24
- add_qkv_bias=False,
25
- bias_dropout_fusion=True,
26
- multi_query_attention=False,
27
- multi_query_group_num=1,
28
- rope_ratio=1,
29
- apply_query_key_layer_scaling=True,
30
- attention_softmax_in_fp32=True,
31
- fp32_residual_connection=False,
32
- **kwargs
33
- ):
34
- self.num_layers = num_layers
35
- self.vocab_size = padded_vocab_size
36
- self.padded_vocab_size = padded_vocab_size
37
- self.hidden_size = hidden_size
38
- self.ffn_hidden_size = ffn_hidden_size
39
- self.kv_channels = kv_channels
40
- self.num_attention_heads = num_attention_heads
41
- self.seq_length = seq_length
42
- self.hidden_dropout = hidden_dropout
43
- self.classifier_dropout = classifier_dropout
44
- self.attention_dropout = attention_dropout
45
- self.layernorm_epsilon = layernorm_epsilon
46
- self.rmsnorm = rmsnorm
47
- self.apply_residual_connection_post_layernorm = apply_residual_connection_post_layernorm
48
- self.post_layer_norm = post_layer_norm
49
- self.add_bias_linear = add_bias_linear
50
- self.add_qkv_bias = add_qkv_bias
51
- self.bias_dropout_fusion = bias_dropout_fusion
52
- self.multi_query_attention = multi_query_attention
53
- self.multi_query_group_num = multi_query_group_num
54
- self.rope_ratio = rope_ratio
55
- self.apply_query_key_layer_scaling = apply_query_key_layer_scaling
56
- self.attention_softmax_in_fp32 = attention_softmax_in_fp32
57
- self.fp32_residual_connection = fp32_residual_connection
58
- super().__init__(**kwargs)