ahatamiz commited on
Commit
69f5b7b
1 Parent(s): 7f453e0

Upload HF_GPTForCausalLM

Browse files
config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "HF_GPTForCausalLM"
4
+ ],
5
+ "bos_token_id": 1,
6
+ "conv_size": 4,
7
+ "eos_token_id": 2,
8
+ "expand_k": 1.0,
9
+ "expand_v": 1.0,
10
+ "hidden_size": null,
11
+ "mode": "fused_chunk",
12
+ "model_type": "hf_gpt",
13
+ "name": "LLaMA_1.3B_SWA",
14
+ "norm_eps": 1e-05,
15
+ "norm_first": false,
16
+ "num_heads": 4,
17
+ "pad_token_id": 0,
18
+ "qk_activation": "silu",
19
+ "qk_norm": "l2",
20
+ "tie_word_embeddings": false,
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.43.2",
23
+ "use_beta": true,
24
+ "use_cache": true,
25
+ "use_gate": false,
26
+ "use_output_norm": true,
27
+ "use_short_conv": true,
28
+ "vocab_size": 32000
29
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "pad_token_id": 0,
6
+ "transformers_version": "4.43.2"
7
+ }
model-00001-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38d81e1df2808640f04f55968eefd7e347f766eaacda961a4e70d2d6b2daa513
3
+ size 4966682664
model-00002-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:878183e7c9da719f8a5204e9761b996ee29ffadb834f964672fdf7242f69059a
3
+ size 719614248
model.safetensors.index.json ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_size": 5686281216
4
+ },
5
+ "weight_map": {
6
+ "lm_head.weight": "model-00002-of-00002.safetensors",
7
+ "transformer.embeddings.weight": "model-00001-of-00002.safetensors",
8
+ "transformer.h.0.attn.attn.weight": "model-00001-of-00002.safetensors",
9
+ "transformer.h.0.attn.proj.weight": "model-00001-of-00002.safetensors",
10
+ "transformer.h.0.mlp.swiglu.w1.weight": "model-00001-of-00002.safetensors",
11
+ "transformer.h.0.mlp.swiglu.w2.weight": "model-00001-of-00002.safetensors",
12
+ "transformer.h.0.mlp.swiglu.w3.weight": "model-00001-of-00002.safetensors",
13
+ "transformer.h.0.norm_1.weight": "model-00001-of-00002.safetensors",
14
+ "transformer.h.0.norm_2.weight": "model-00001-of-00002.safetensors",
15
+ "transformer.h.1.attn.attn.weight": "model-00001-of-00002.safetensors",
16
+ "transformer.h.1.attn.proj.weight": "model-00001-of-00002.safetensors",
17
+ "transformer.h.1.mlp.swiglu.w1.weight": "model-00001-of-00002.safetensors",
18
+ "transformer.h.1.mlp.swiglu.w2.weight": "model-00001-of-00002.safetensors",
19
+ "transformer.h.1.mlp.swiglu.w3.weight": "model-00001-of-00002.safetensors",
20
+ "transformer.h.1.norm_1.weight": "model-00001-of-00002.safetensors",
21
+ "transformer.h.1.norm_2.weight": "model-00001-of-00002.safetensors",
22
+ "transformer.h.10.attn.attn.weight": "model-00001-of-00002.safetensors",
23
+ "transformer.h.10.attn.proj.weight": "model-00001-of-00002.safetensors",
24
+ "transformer.h.10.mlp.swiglu.w1.weight": "model-00001-of-00002.safetensors",
25
+ "transformer.h.10.mlp.swiglu.w2.weight": "model-00001-of-00002.safetensors",
26
+ "transformer.h.10.mlp.swiglu.w3.weight": "model-00001-of-00002.safetensors",
27
+ "transformer.h.10.norm_1.weight": "model-00001-of-00002.safetensors",
28
+ "transformer.h.10.norm_2.weight": "model-00001-of-00002.safetensors",
29
+ "transformer.h.11.attn.attn.weight": "model-00001-of-00002.safetensors",
30
+ "transformer.h.11.attn.proj.weight": "model-00001-of-00002.safetensors",
31
+ "transformer.h.11.mlp.swiglu.w1.weight": "model-00001-of-00002.safetensors",
32
+ "transformer.h.11.mlp.swiglu.w2.weight": "model-00001-of-00002.safetensors",
33
+ "transformer.h.11.mlp.swiglu.w3.weight": "model-00001-of-00002.safetensors",
34
+ "transformer.h.11.norm_1.weight": "model-00001-of-00002.safetensors",
35
+ "transformer.h.11.norm_2.weight": "model-00001-of-00002.safetensors",
36
+ "transformer.h.12.attn.attn.weight": "model-00001-of-00002.safetensors",
37
+ "transformer.h.12.attn.proj.weight": "model-00001-of-00002.safetensors",
38
+ "transformer.h.12.mlp.swiglu.w1.weight": "model-00001-of-00002.safetensors",
39
+ "transformer.h.12.mlp.swiglu.w2.weight": "model-00001-of-00002.safetensors",
40
+ "transformer.h.12.mlp.swiglu.w3.weight": "model-00001-of-00002.safetensors",
41
+ "transformer.h.12.norm_1.weight": "model-00001-of-00002.safetensors",
42
+ "transformer.h.12.norm_2.weight": "model-00001-of-00002.safetensors",
43
+ "transformer.h.13.attn.attn.weight": "model-00001-of-00002.safetensors",
44
+ "transformer.h.13.attn.proj.weight": "model-00001-of-00002.safetensors",
45
+ "transformer.h.13.mlp.swiglu.w1.weight": "model-00001-of-00002.safetensors",
46
+ "transformer.h.13.mlp.swiglu.w2.weight": "model-00001-of-00002.safetensors",
47
+ "transformer.h.13.mlp.swiglu.w3.weight": "model-00001-of-00002.safetensors",
48
+ "transformer.h.13.norm_1.weight": "model-00001-of-00002.safetensors",
49
+ "transformer.h.13.norm_2.weight": "model-00001-of-00002.safetensors",
50
+ "transformer.h.14.attn.attn.weight": "model-00001-of-00002.safetensors",
51
+ "transformer.h.14.attn.proj.weight": "model-00001-of-00002.safetensors",
52
+ "transformer.h.14.mlp.swiglu.w1.weight": "model-00001-of-00002.safetensors",
53
+ "transformer.h.14.mlp.swiglu.w2.weight": "model-00001-of-00002.safetensors",
54
+ "transformer.h.14.mlp.swiglu.w3.weight": "model-00001-of-00002.safetensors",
55
+ "transformer.h.14.norm_1.weight": "model-00001-of-00002.safetensors",
56
+ "transformer.h.14.norm_2.weight": "model-00001-of-00002.safetensors",
57
+ "transformer.h.15.attn.attn.weight": "model-00001-of-00002.safetensors",
58
+ "transformer.h.15.attn.proj.weight": "model-00001-of-00002.safetensors",
59
+ "transformer.h.15.mlp.swiglu.w1.weight": "model-00001-of-00002.safetensors",
60
+ "transformer.h.15.mlp.swiglu.w2.weight": "model-00001-of-00002.safetensors",
61
+ "transformer.h.15.mlp.swiglu.w3.weight": "model-00001-of-00002.safetensors",
62
+ "transformer.h.15.norm_1.weight": "model-00001-of-00002.safetensors",
63
+ "transformer.h.15.norm_2.weight": "model-00001-of-00002.safetensors",
64
+ "transformer.h.16.attn.attn.weight": "model-00001-of-00002.safetensors",
65
+ "transformer.h.16.attn.proj.weight": "model-00001-of-00002.safetensors",
66
+ "transformer.h.16.mlp.swiglu.w1.weight": "model-00001-of-00002.safetensors",
67
+ "transformer.h.16.mlp.swiglu.w2.weight": "model-00001-of-00002.safetensors",
68
+ "transformer.h.16.mlp.swiglu.w3.weight": "model-00001-of-00002.safetensors",
69
+ "transformer.h.16.norm_1.weight": "model-00001-of-00002.safetensors",
70
+ "transformer.h.16.norm_2.weight": "model-00001-of-00002.safetensors",
71
+ "transformer.h.17.attn.attn.weight": "model-00001-of-00002.safetensors",
72
+ "transformer.h.17.attn.proj.weight": "model-00001-of-00002.safetensors",
73
+ "transformer.h.17.mlp.swiglu.w1.weight": "model-00001-of-00002.safetensors",
74
+ "transformer.h.17.mlp.swiglu.w2.weight": "model-00001-of-00002.safetensors",
75
+ "transformer.h.17.mlp.swiglu.w3.weight": "model-00001-of-00002.safetensors",
76
+ "transformer.h.17.norm_1.weight": "model-00001-of-00002.safetensors",
77
+ "transformer.h.17.norm_2.weight": "model-00001-of-00002.safetensors",
78
+ "transformer.h.18.attn.attn.weight": "model-00001-of-00002.safetensors",
79
+ "transformer.h.18.attn.proj.weight": "model-00001-of-00002.safetensors",
80
+ "transformer.h.18.mlp.swiglu.w1.weight": "model-00002-of-00002.safetensors",
81
+ "transformer.h.18.mlp.swiglu.w2.weight": "model-00002-of-00002.safetensors",
82
+ "transformer.h.18.mlp.swiglu.w3.weight": "model-00002-of-00002.safetensors",
83
+ "transformer.h.18.norm_1.weight": "model-00001-of-00002.safetensors",
84
+ "transformer.h.18.norm_2.weight": "model-00001-of-00002.safetensors",
85
+ "transformer.h.19.attn.attn.weight": "model-00002-of-00002.safetensors",
86
+ "transformer.h.19.attn.proj.weight": "model-00002-of-00002.safetensors",
87
+ "transformer.h.19.mlp.swiglu.w1.weight": "model-00002-of-00002.safetensors",
88
+ "transformer.h.19.mlp.swiglu.w2.weight": "model-00002-of-00002.safetensors",
89
+ "transformer.h.19.mlp.swiglu.w3.weight": "model-00002-of-00002.safetensors",
90
+ "transformer.h.19.norm_1.weight": "model-00002-of-00002.safetensors",
91
+ "transformer.h.19.norm_2.weight": "model-00002-of-00002.safetensors",
92
+ "transformer.h.2.attn.attn.weight": "model-00001-of-00002.safetensors",
93
+ "transformer.h.2.attn.proj.weight": "model-00001-of-00002.safetensors",
94
+ "transformer.h.2.mlp.swiglu.w1.weight": "model-00001-of-00002.safetensors",
95
+ "transformer.h.2.mlp.swiglu.w2.weight": "model-00001-of-00002.safetensors",
96
+ "transformer.h.2.mlp.swiglu.w3.weight": "model-00001-of-00002.safetensors",
97
+ "transformer.h.2.norm_1.weight": "model-00001-of-00002.safetensors",
98
+ "transformer.h.2.norm_2.weight": "model-00001-of-00002.safetensors",
99
+ "transformer.h.3.attn.attn.weight": "model-00001-of-00002.safetensors",
100
+ "transformer.h.3.attn.proj.weight": "model-00001-of-00002.safetensors",
101
+ "transformer.h.3.mlp.swiglu.w1.weight": "model-00001-of-00002.safetensors",
102
+ "transformer.h.3.mlp.swiglu.w2.weight": "model-00001-of-00002.safetensors",
103
+ "transformer.h.3.mlp.swiglu.w3.weight": "model-00001-of-00002.safetensors",
104
+ "transformer.h.3.norm_1.weight": "model-00001-of-00002.safetensors",
105
+ "transformer.h.3.norm_2.weight": "model-00001-of-00002.safetensors",
106
+ "transformer.h.4.attn.attn.weight": "model-00001-of-00002.safetensors",
107
+ "transformer.h.4.attn.proj.weight": "model-00001-of-00002.safetensors",
108
+ "transformer.h.4.mlp.swiglu.w1.weight": "model-00001-of-00002.safetensors",
109
+ "transformer.h.4.mlp.swiglu.w2.weight": "model-00001-of-00002.safetensors",
110
+ "transformer.h.4.mlp.swiglu.w3.weight": "model-00001-of-00002.safetensors",
111
+ "transformer.h.4.norm_1.weight": "model-00001-of-00002.safetensors",
112
+ "transformer.h.4.norm_2.weight": "model-00001-of-00002.safetensors",
113
+ "transformer.h.5.attn.attn.weight": "model-00001-of-00002.safetensors",
114
+ "transformer.h.5.attn.proj.weight": "model-00001-of-00002.safetensors",
115
+ "transformer.h.5.mlp.swiglu.w1.weight": "model-00001-of-00002.safetensors",
116
+ "transformer.h.5.mlp.swiglu.w2.weight": "model-00001-of-00002.safetensors",
117
+ "transformer.h.5.mlp.swiglu.w3.weight": "model-00001-of-00002.safetensors",
118
+ "transformer.h.5.norm_1.weight": "model-00001-of-00002.safetensors",
119
+ "transformer.h.5.norm_2.weight": "model-00001-of-00002.safetensors",
120
+ "transformer.h.6.attn.attn.weight": "model-00001-of-00002.safetensors",
121
+ "transformer.h.6.attn.proj.weight": "model-00001-of-00002.safetensors",
122
+ "transformer.h.6.mlp.swiglu.w1.weight": "model-00001-of-00002.safetensors",
123
+ "transformer.h.6.mlp.swiglu.w2.weight": "model-00001-of-00002.safetensors",
124
+ "transformer.h.6.mlp.swiglu.w3.weight": "model-00001-of-00002.safetensors",
125
+ "transformer.h.6.norm_1.weight": "model-00001-of-00002.safetensors",
126
+ "transformer.h.6.norm_2.weight": "model-00001-of-00002.safetensors",
127
+ "transformer.h.7.attn.attn.weight": "model-00001-of-00002.safetensors",
128
+ "transformer.h.7.attn.proj.weight": "model-00001-of-00002.safetensors",
129
+ "transformer.h.7.mlp.swiglu.w1.weight": "model-00001-of-00002.safetensors",
130
+ "transformer.h.7.mlp.swiglu.w2.weight": "model-00001-of-00002.safetensors",
131
+ "transformer.h.7.mlp.swiglu.w3.weight": "model-00001-of-00002.safetensors",
132
+ "transformer.h.7.norm_1.weight": "model-00001-of-00002.safetensors",
133
+ "transformer.h.7.norm_2.weight": "model-00001-of-00002.safetensors",
134
+ "transformer.h.8.attn.attn.weight": "model-00001-of-00002.safetensors",
135
+ "transformer.h.8.attn.proj.weight": "model-00001-of-00002.safetensors",
136
+ "transformer.h.8.mlp.swiglu.w1.weight": "model-00001-of-00002.safetensors",
137
+ "transformer.h.8.mlp.swiglu.w2.weight": "model-00001-of-00002.safetensors",
138
+ "transformer.h.8.mlp.swiglu.w3.weight": "model-00001-of-00002.safetensors",
139
+ "transformer.h.8.norm_1.weight": "model-00001-of-00002.safetensors",
140
+ "transformer.h.8.norm_2.weight": "model-00001-of-00002.safetensors",
141
+ "transformer.h.9.attn.attn.weight": "model-00001-of-00002.safetensors",
142
+ "transformer.h.9.attn.proj.weight": "model-00001-of-00002.safetensors",
143
+ "transformer.h.9.mlp.swiglu.w1.weight": "model-00001-of-00002.safetensors",
144
+ "transformer.h.9.mlp.swiglu.w2.weight": "model-00001-of-00002.safetensors",
145
+ "transformer.h.9.mlp.swiglu.w3.weight": "model-00001-of-00002.safetensors",
146
+ "transformer.h.9.norm_1.weight": "model-00001-of-00002.safetensors",
147
+ "transformer.h.9.norm_2.weight": "model-00001-of-00002.safetensors",
148
+ "transformer.ln_f.weight": "model-00002-of-00002.safetensors"
149
+ }
150
+ }