wnma3mz commited on
Commit
8b751cb
·
verified ·
1 Parent(s): 5e120a8

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "head_dim": 128,
6
+ "hidden_size": 4096,
7
+ "intermediate_size": 11008,
8
+ "max_position_embeddings": 16384,
9
+ "model_type": "llama",
10
+ "num_attention_heads": 32,
11
+ "num_hidden_layers": 30,
12
+ "num_key_value_heads": 32,
13
+ "quantization": {
14
+ "group_size": 64,
15
+ "bits": 4
16
+ },
17
+ "quantization_config": {
18
+ "group_size": 64,
19
+ "bits": 4
20
+ },
21
+ "rms_norm_eps": 1e-06,
22
+ "rope_theta": 10000.0,
23
+ "tie_word_embeddings": false,
24
+ "torch_dtype": "bfloat16",
25
+ "transformers_version": "4.33.1",
26
+ "vocab_size": 102400
27
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6cf68b1337638838b009663ea5d9ccccb650debd96c7190c1df39c5bfcba6a7a
3
+ size 3887518915
model.safetensors.index.json ADDED
@@ -0,0 +1,704 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_size": 3887439872
4
+ },
5
+ "weight_map": {
6
+ "lm_head.biases": "model.safetensors",
7
+ "lm_head.scales": "model.safetensors",
8
+ "lm_head.weight": "model.safetensors",
9
+ "model.embed_tokens.biases": "model.safetensors",
10
+ "model.embed_tokens.scales": "model.safetensors",
11
+ "model.embed_tokens.weight": "model.safetensors",
12
+ "model.layers.0.input_layernorm.weight": "model.safetensors",
13
+ "model.layers.0.mlp.down_proj.biases": "model.safetensors",
14
+ "model.layers.0.mlp.down_proj.scales": "model.safetensors",
15
+ "model.layers.0.mlp.down_proj.weight": "model.safetensors",
16
+ "model.layers.0.mlp.gate_proj.biases": "model.safetensors",
17
+ "model.layers.0.mlp.gate_proj.scales": "model.safetensors",
18
+ "model.layers.0.mlp.gate_proj.weight": "model.safetensors",
19
+ "model.layers.0.mlp.up_proj.biases": "model.safetensors",
20
+ "model.layers.0.mlp.up_proj.scales": "model.safetensors",
21
+ "model.layers.0.mlp.up_proj.weight": "model.safetensors",
22
+ "model.layers.0.post_attention_layernorm.weight": "model.safetensors",
23
+ "model.layers.0.self_attn.k_proj.biases": "model.safetensors",
24
+ "model.layers.0.self_attn.k_proj.scales": "model.safetensors",
25
+ "model.layers.0.self_attn.k_proj.weight": "model.safetensors",
26
+ "model.layers.0.self_attn.o_proj.biases": "model.safetensors",
27
+ "model.layers.0.self_attn.o_proj.scales": "model.safetensors",
28
+ "model.layers.0.self_attn.o_proj.weight": "model.safetensors",
29
+ "model.layers.0.self_attn.q_proj.biases": "model.safetensors",
30
+ "model.layers.0.self_attn.q_proj.scales": "model.safetensors",
31
+ "model.layers.0.self_attn.q_proj.weight": "model.safetensors",
32
+ "model.layers.0.self_attn.v_proj.biases": "model.safetensors",
33
+ "model.layers.0.self_attn.v_proj.scales": "model.safetensors",
34
+ "model.layers.0.self_attn.v_proj.weight": "model.safetensors",
35
+ "model.layers.1.input_layernorm.weight": "model.safetensors",
36
+ "model.layers.1.mlp.down_proj.biases": "model.safetensors",
37
+ "model.layers.1.mlp.down_proj.scales": "model.safetensors",
38
+ "model.layers.1.mlp.down_proj.weight": "model.safetensors",
39
+ "model.layers.1.mlp.gate_proj.biases": "model.safetensors",
40
+ "model.layers.1.mlp.gate_proj.scales": "model.safetensors",
41
+ "model.layers.1.mlp.gate_proj.weight": "model.safetensors",
42
+ "model.layers.1.mlp.up_proj.biases": "model.safetensors",
43
+ "model.layers.1.mlp.up_proj.scales": "model.safetensors",
44
+ "model.layers.1.mlp.up_proj.weight": "model.safetensors",
45
+ "model.layers.1.post_attention_layernorm.weight": "model.safetensors",
46
+ "model.layers.1.self_attn.k_proj.biases": "model.safetensors",
47
+ "model.layers.1.self_attn.k_proj.scales": "model.safetensors",
48
+ "model.layers.1.self_attn.k_proj.weight": "model.safetensors",
49
+ "model.layers.1.self_attn.o_proj.biases": "model.safetensors",
50
+ "model.layers.1.self_attn.o_proj.scales": "model.safetensors",
51
+ "model.layers.1.self_attn.o_proj.weight": "model.safetensors",
52
+ "model.layers.1.self_attn.q_proj.biases": "model.safetensors",
53
+ "model.layers.1.self_attn.q_proj.scales": "model.safetensors",
54
+ "model.layers.1.self_attn.q_proj.weight": "model.safetensors",
55
+ "model.layers.1.self_attn.v_proj.biases": "model.safetensors",
56
+ "model.layers.1.self_attn.v_proj.scales": "model.safetensors",
57
+ "model.layers.1.self_attn.v_proj.weight": "model.safetensors",
58
+ "model.layers.10.input_layernorm.weight": "model.safetensors",
59
+ "model.layers.10.mlp.down_proj.biases": "model.safetensors",
60
+ "model.layers.10.mlp.down_proj.scales": "model.safetensors",
61
+ "model.layers.10.mlp.down_proj.weight": "model.safetensors",
62
+ "model.layers.10.mlp.gate_proj.biases": "model.safetensors",
63
+ "model.layers.10.mlp.gate_proj.scales": "model.safetensors",
64
+ "model.layers.10.mlp.gate_proj.weight": "model.safetensors",
65
+ "model.layers.10.mlp.up_proj.biases": "model.safetensors",
66
+ "model.layers.10.mlp.up_proj.scales": "model.safetensors",
67
+ "model.layers.10.mlp.up_proj.weight": "model.safetensors",
68
+ "model.layers.10.post_attention_layernorm.weight": "model.safetensors",
69
+ "model.layers.10.self_attn.k_proj.biases": "model.safetensors",
70
+ "model.layers.10.self_attn.k_proj.scales": "model.safetensors",
71
+ "model.layers.10.self_attn.k_proj.weight": "model.safetensors",
72
+ "model.layers.10.self_attn.o_proj.biases": "model.safetensors",
73
+ "model.layers.10.self_attn.o_proj.scales": "model.safetensors",
74
+ "model.layers.10.self_attn.o_proj.weight": "model.safetensors",
75
+ "model.layers.10.self_attn.q_proj.biases": "model.safetensors",
76
+ "model.layers.10.self_attn.q_proj.scales": "model.safetensors",
77
+ "model.layers.10.self_attn.q_proj.weight": "model.safetensors",
78
+ "model.layers.10.self_attn.v_proj.biases": "model.safetensors",
79
+ "model.layers.10.self_attn.v_proj.scales": "model.safetensors",
80
+ "model.layers.10.self_attn.v_proj.weight": "model.safetensors",
81
+ "model.layers.11.input_layernorm.weight": "model.safetensors",
82
+ "model.layers.11.mlp.down_proj.biases": "model.safetensors",
83
+ "model.layers.11.mlp.down_proj.scales": "model.safetensors",
84
+ "model.layers.11.mlp.down_proj.weight": "model.safetensors",
85
+ "model.layers.11.mlp.gate_proj.biases": "model.safetensors",
86
+ "model.layers.11.mlp.gate_proj.scales": "model.safetensors",
87
+ "model.layers.11.mlp.gate_proj.weight": "model.safetensors",
88
+ "model.layers.11.mlp.up_proj.biases": "model.safetensors",
89
+ "model.layers.11.mlp.up_proj.scales": "model.safetensors",
90
+ "model.layers.11.mlp.up_proj.weight": "model.safetensors",
91
+ "model.layers.11.post_attention_layernorm.weight": "model.safetensors",
92
+ "model.layers.11.self_attn.k_proj.biases": "model.safetensors",
93
+ "model.layers.11.self_attn.k_proj.scales": "model.safetensors",
94
+ "model.layers.11.self_attn.k_proj.weight": "model.safetensors",
95
+ "model.layers.11.self_attn.o_proj.biases": "model.safetensors",
96
+ "model.layers.11.self_attn.o_proj.scales": "model.safetensors",
97
+ "model.layers.11.self_attn.o_proj.weight": "model.safetensors",
98
+ "model.layers.11.self_attn.q_proj.biases": "model.safetensors",
99
+ "model.layers.11.self_attn.q_proj.scales": "model.safetensors",
100
+ "model.layers.11.self_attn.q_proj.weight": "model.safetensors",
101
+ "model.layers.11.self_attn.v_proj.biases": "model.safetensors",
102
+ "model.layers.11.self_attn.v_proj.scales": "model.safetensors",
103
+ "model.layers.11.self_attn.v_proj.weight": "model.safetensors",
104
+ "model.layers.12.input_layernorm.weight": "model.safetensors",
105
+ "model.layers.12.mlp.down_proj.biases": "model.safetensors",
106
+ "model.layers.12.mlp.down_proj.scales": "model.safetensors",
107
+ "model.layers.12.mlp.down_proj.weight": "model.safetensors",
108
+ "model.layers.12.mlp.gate_proj.biases": "model.safetensors",
109
+ "model.layers.12.mlp.gate_proj.scales": "model.safetensors",
110
+ "model.layers.12.mlp.gate_proj.weight": "model.safetensors",
111
+ "model.layers.12.mlp.up_proj.biases": "model.safetensors",
112
+ "model.layers.12.mlp.up_proj.scales": "model.safetensors",
113
+ "model.layers.12.mlp.up_proj.weight": "model.safetensors",
114
+ "model.layers.12.post_attention_layernorm.weight": "model.safetensors",
115
+ "model.layers.12.self_attn.k_proj.biases": "model.safetensors",
116
+ "model.layers.12.self_attn.k_proj.scales": "model.safetensors",
117
+ "model.layers.12.self_attn.k_proj.weight": "model.safetensors",
118
+ "model.layers.12.self_attn.o_proj.biases": "model.safetensors",
119
+ "model.layers.12.self_attn.o_proj.scales": "model.safetensors",
120
+ "model.layers.12.self_attn.o_proj.weight": "model.safetensors",
121
+ "model.layers.12.self_attn.q_proj.biases": "model.safetensors",
122
+ "model.layers.12.self_attn.q_proj.scales": "model.safetensors",
123
+ "model.layers.12.self_attn.q_proj.weight": "model.safetensors",
124
+ "model.layers.12.self_attn.v_proj.biases": "model.safetensors",
125
+ "model.layers.12.self_attn.v_proj.scales": "model.safetensors",
126
+ "model.layers.12.self_attn.v_proj.weight": "model.safetensors",
127
+ "model.layers.13.input_layernorm.weight": "model.safetensors",
128
+ "model.layers.13.mlp.down_proj.biases": "model.safetensors",
129
+ "model.layers.13.mlp.down_proj.scales": "model.safetensors",
130
+ "model.layers.13.mlp.down_proj.weight": "model.safetensors",
131
+ "model.layers.13.mlp.gate_proj.biases": "model.safetensors",
132
+ "model.layers.13.mlp.gate_proj.scales": "model.safetensors",
133
+ "model.layers.13.mlp.gate_proj.weight": "model.safetensors",
134
+ "model.layers.13.mlp.up_proj.biases": "model.safetensors",
135
+ "model.layers.13.mlp.up_proj.scales": "model.safetensors",
136
+ "model.layers.13.mlp.up_proj.weight": "model.safetensors",
137
+ "model.layers.13.post_attention_layernorm.weight": "model.safetensors",
138
+ "model.layers.13.self_attn.k_proj.biases": "model.safetensors",
139
+ "model.layers.13.self_attn.k_proj.scales": "model.safetensors",
140
+ "model.layers.13.self_attn.k_proj.weight": "model.safetensors",
141
+ "model.layers.13.self_attn.o_proj.biases": "model.safetensors",
142
+ "model.layers.13.self_attn.o_proj.scales": "model.safetensors",
143
+ "model.layers.13.self_attn.o_proj.weight": "model.safetensors",
144
+ "model.layers.13.self_attn.q_proj.biases": "model.safetensors",
145
+ "model.layers.13.self_attn.q_proj.scales": "model.safetensors",
146
+ "model.layers.13.self_attn.q_proj.weight": "model.safetensors",
147
+ "model.layers.13.self_attn.v_proj.biases": "model.safetensors",
148
+ "model.layers.13.self_attn.v_proj.scales": "model.safetensors",
149
+ "model.layers.13.self_attn.v_proj.weight": "model.safetensors",
150
+ "model.layers.14.input_layernorm.weight": "model.safetensors",
151
+ "model.layers.14.mlp.down_proj.biases": "model.safetensors",
152
+ "model.layers.14.mlp.down_proj.scales": "model.safetensors",
153
+ "model.layers.14.mlp.down_proj.weight": "model.safetensors",
154
+ "model.layers.14.mlp.gate_proj.biases": "model.safetensors",
155
+ "model.layers.14.mlp.gate_proj.scales": "model.safetensors",
156
+ "model.layers.14.mlp.gate_proj.weight": "model.safetensors",
157
+ "model.layers.14.mlp.up_proj.biases": "model.safetensors",
158
+ "model.layers.14.mlp.up_proj.scales": "model.safetensors",
159
+ "model.layers.14.mlp.up_proj.weight": "model.safetensors",
160
+ "model.layers.14.post_attention_layernorm.weight": "model.safetensors",
161
+ "model.layers.14.self_attn.k_proj.biases": "model.safetensors",
162
+ "model.layers.14.self_attn.k_proj.scales": "model.safetensors",
163
+ "model.layers.14.self_attn.k_proj.weight": "model.safetensors",
164
+ "model.layers.14.self_attn.o_proj.biases": "model.safetensors",
165
+ "model.layers.14.self_attn.o_proj.scales": "model.safetensors",
166
+ "model.layers.14.self_attn.o_proj.weight": "model.safetensors",
167
+ "model.layers.14.self_attn.q_proj.biases": "model.safetensors",
168
+ "model.layers.14.self_attn.q_proj.scales": "model.safetensors",
169
+ "model.layers.14.self_attn.q_proj.weight": "model.safetensors",
170
+ "model.layers.14.self_attn.v_proj.biases": "model.safetensors",
171
+ "model.layers.14.self_attn.v_proj.scales": "model.safetensors",
172
+ "model.layers.14.self_attn.v_proj.weight": "model.safetensors",
173
+ "model.layers.15.input_layernorm.weight": "model.safetensors",
174
+ "model.layers.15.mlp.down_proj.biases": "model.safetensors",
175
+ "model.layers.15.mlp.down_proj.scales": "model.safetensors",
176
+ "model.layers.15.mlp.down_proj.weight": "model.safetensors",
177
+ "model.layers.15.mlp.gate_proj.biases": "model.safetensors",
178
+ "model.layers.15.mlp.gate_proj.scales": "model.safetensors",
179
+ "model.layers.15.mlp.gate_proj.weight": "model.safetensors",
180
+ "model.layers.15.mlp.up_proj.biases": "model.safetensors",
181
+ "model.layers.15.mlp.up_proj.scales": "model.safetensors",
182
+ "model.layers.15.mlp.up_proj.weight": "model.safetensors",
183
+ "model.layers.15.post_attention_layernorm.weight": "model.safetensors",
184
+ "model.layers.15.self_attn.k_proj.biases": "model.safetensors",
185
+ "model.layers.15.self_attn.k_proj.scales": "model.safetensors",
186
+ "model.layers.15.self_attn.k_proj.weight": "model.safetensors",
187
+ "model.layers.15.self_attn.o_proj.biases": "model.safetensors",
188
+ "model.layers.15.self_attn.o_proj.scales": "model.safetensors",
189
+ "model.layers.15.self_attn.o_proj.weight": "model.safetensors",
190
+ "model.layers.15.self_attn.q_proj.biases": "model.safetensors",
191
+ "model.layers.15.self_attn.q_proj.scales": "model.safetensors",
192
+ "model.layers.15.self_attn.q_proj.weight": "model.safetensors",
193
+ "model.layers.15.self_attn.v_proj.biases": "model.safetensors",
194
+ "model.layers.15.self_attn.v_proj.scales": "model.safetensors",
195
+ "model.layers.15.self_attn.v_proj.weight": "model.safetensors",
196
+ "model.layers.16.input_layernorm.weight": "model.safetensors",
197
+ "model.layers.16.mlp.down_proj.biases": "model.safetensors",
198
+ "model.layers.16.mlp.down_proj.scales": "model.safetensors",
199
+ "model.layers.16.mlp.down_proj.weight": "model.safetensors",
200
+ "model.layers.16.mlp.gate_proj.biases": "model.safetensors",
201
+ "model.layers.16.mlp.gate_proj.scales": "model.safetensors",
202
+ "model.layers.16.mlp.gate_proj.weight": "model.safetensors",
203
+ "model.layers.16.mlp.up_proj.biases": "model.safetensors",
204
+ "model.layers.16.mlp.up_proj.scales": "model.safetensors",
205
+ "model.layers.16.mlp.up_proj.weight": "model.safetensors",
206
+ "model.layers.16.post_attention_layernorm.weight": "model.safetensors",
207
+ "model.layers.16.self_attn.k_proj.biases": "model.safetensors",
208
+ "model.layers.16.self_attn.k_proj.scales": "model.safetensors",
209
+ "model.layers.16.self_attn.k_proj.weight": "model.safetensors",
210
+ "model.layers.16.self_attn.o_proj.biases": "model.safetensors",
211
+ "model.layers.16.self_attn.o_proj.scales": "model.safetensors",
212
+ "model.layers.16.self_attn.o_proj.weight": "model.safetensors",
213
+ "model.layers.16.self_attn.q_proj.biases": "model.safetensors",
214
+ "model.layers.16.self_attn.q_proj.scales": "model.safetensors",
215
+ "model.layers.16.self_attn.q_proj.weight": "model.safetensors",
216
+ "model.layers.16.self_attn.v_proj.biases": "model.safetensors",
217
+ "model.layers.16.self_attn.v_proj.scales": "model.safetensors",
218
+ "model.layers.16.self_attn.v_proj.weight": "model.safetensors",
219
+ "model.layers.17.input_layernorm.weight": "model.safetensors",
220
+ "model.layers.17.mlp.down_proj.biases": "model.safetensors",
221
+ "model.layers.17.mlp.down_proj.scales": "model.safetensors",
222
+ "model.layers.17.mlp.down_proj.weight": "model.safetensors",
223
+ "model.layers.17.mlp.gate_proj.biases": "model.safetensors",
224
+ "model.layers.17.mlp.gate_proj.scales": "model.safetensors",
225
+ "model.layers.17.mlp.gate_proj.weight": "model.safetensors",
226
+ "model.layers.17.mlp.up_proj.biases": "model.safetensors",
227
+ "model.layers.17.mlp.up_proj.scales": "model.safetensors",
228
+ "model.layers.17.mlp.up_proj.weight": "model.safetensors",
229
+ "model.layers.17.post_attention_layernorm.weight": "model.safetensors",
230
+ "model.layers.17.self_attn.k_proj.biases": "model.safetensors",
231
+ "model.layers.17.self_attn.k_proj.scales": "model.safetensors",
232
+ "model.layers.17.self_attn.k_proj.weight": "model.safetensors",
233
+ "model.layers.17.self_attn.o_proj.biases": "model.safetensors",
234
+ "model.layers.17.self_attn.o_proj.scales": "model.safetensors",
235
+ "model.layers.17.self_attn.o_proj.weight": "model.safetensors",
236
+ "model.layers.17.self_attn.q_proj.biases": "model.safetensors",
237
+ "model.layers.17.self_attn.q_proj.scales": "model.safetensors",
238
+ "model.layers.17.self_attn.q_proj.weight": "model.safetensors",
239
+ "model.layers.17.self_attn.v_proj.biases": "model.safetensors",
240
+ "model.layers.17.self_attn.v_proj.scales": "model.safetensors",
241
+ "model.layers.17.self_attn.v_proj.weight": "model.safetensors",
242
+ "model.layers.18.input_layernorm.weight": "model.safetensors",
243
+ "model.layers.18.mlp.down_proj.biases": "model.safetensors",
244
+ "model.layers.18.mlp.down_proj.scales": "model.safetensors",
245
+ "model.layers.18.mlp.down_proj.weight": "model.safetensors",
246
+ "model.layers.18.mlp.gate_proj.biases": "model.safetensors",
247
+ "model.layers.18.mlp.gate_proj.scales": "model.safetensors",
248
+ "model.layers.18.mlp.gate_proj.weight": "model.safetensors",
249
+ "model.layers.18.mlp.up_proj.biases": "model.safetensors",
250
+ "model.layers.18.mlp.up_proj.scales": "model.safetensors",
251
+ "model.layers.18.mlp.up_proj.weight": "model.safetensors",
252
+ "model.layers.18.post_attention_layernorm.weight": "model.safetensors",
253
+ "model.layers.18.self_attn.k_proj.biases": "model.safetensors",
254
+ "model.layers.18.self_attn.k_proj.scales": "model.safetensors",
255
+ "model.layers.18.self_attn.k_proj.weight": "model.safetensors",
256
+ "model.layers.18.self_attn.o_proj.biases": "model.safetensors",
257
+ "model.layers.18.self_attn.o_proj.scales": "model.safetensors",
258
+ "model.layers.18.self_attn.o_proj.weight": "model.safetensors",
259
+ "model.layers.18.self_attn.q_proj.biases": "model.safetensors",
260
+ "model.layers.18.self_attn.q_proj.scales": "model.safetensors",
261
+ "model.layers.18.self_attn.q_proj.weight": "model.safetensors",
262
+ "model.layers.18.self_attn.v_proj.biases": "model.safetensors",
263
+ "model.layers.18.self_attn.v_proj.scales": "model.safetensors",
264
+ "model.layers.18.self_attn.v_proj.weight": "model.safetensors",
265
+ "model.layers.19.input_layernorm.weight": "model.safetensors",
266
+ "model.layers.19.mlp.down_proj.biases": "model.safetensors",
267
+ "model.layers.19.mlp.down_proj.scales": "model.safetensors",
268
+ "model.layers.19.mlp.down_proj.weight": "model.safetensors",
269
+ "model.layers.19.mlp.gate_proj.biases": "model.safetensors",
270
+ "model.layers.19.mlp.gate_proj.scales": "model.safetensors",
271
+ "model.layers.19.mlp.gate_proj.weight": "model.safetensors",
272
+ "model.layers.19.mlp.up_proj.biases": "model.safetensors",
273
+ "model.layers.19.mlp.up_proj.scales": "model.safetensors",
274
+ "model.layers.19.mlp.up_proj.weight": "model.safetensors",
275
+ "model.layers.19.post_attention_layernorm.weight": "model.safetensors",
276
+ "model.layers.19.self_attn.k_proj.biases": "model.safetensors",
277
+ "model.layers.19.self_attn.k_proj.scales": "model.safetensors",
278
+ "model.layers.19.self_attn.k_proj.weight": "model.safetensors",
279
+ "model.layers.19.self_attn.o_proj.biases": "model.safetensors",
280
+ "model.layers.19.self_attn.o_proj.scales": "model.safetensors",
281
+ "model.layers.19.self_attn.o_proj.weight": "model.safetensors",
282
+ "model.layers.19.self_attn.q_proj.biases": "model.safetensors",
283
+ "model.layers.19.self_attn.q_proj.scales": "model.safetensors",
284
+ "model.layers.19.self_attn.q_proj.weight": "model.safetensors",
285
+ "model.layers.19.self_attn.v_proj.biases": "model.safetensors",
286
+ "model.layers.19.self_attn.v_proj.scales": "model.safetensors",
287
+ "model.layers.19.self_attn.v_proj.weight": "model.safetensors",
288
+ "model.layers.2.input_layernorm.weight": "model.safetensors",
289
+ "model.layers.2.mlp.down_proj.biases": "model.safetensors",
290
+ "model.layers.2.mlp.down_proj.scales": "model.safetensors",
291
+ "model.layers.2.mlp.down_proj.weight": "model.safetensors",
292
+ "model.layers.2.mlp.gate_proj.biases": "model.safetensors",
293
+ "model.layers.2.mlp.gate_proj.scales": "model.safetensors",
294
+ "model.layers.2.mlp.gate_proj.weight": "model.safetensors",
295
+ "model.layers.2.mlp.up_proj.biases": "model.safetensors",
296
+ "model.layers.2.mlp.up_proj.scales": "model.safetensors",
297
+ "model.layers.2.mlp.up_proj.weight": "model.safetensors",
298
+ "model.layers.2.post_attention_layernorm.weight": "model.safetensors",
299
+ "model.layers.2.self_attn.k_proj.biases": "model.safetensors",
300
+ "model.layers.2.self_attn.k_proj.scales": "model.safetensors",
301
+ "model.layers.2.self_attn.k_proj.weight": "model.safetensors",
302
+ "model.layers.2.self_attn.o_proj.biases": "model.safetensors",
303
+ "model.layers.2.self_attn.o_proj.scales": "model.safetensors",
304
+ "model.layers.2.self_attn.o_proj.weight": "model.safetensors",
305
+ "model.layers.2.self_attn.q_proj.biases": "model.safetensors",
306
+ "model.layers.2.self_attn.q_proj.scales": "model.safetensors",
307
+ "model.layers.2.self_attn.q_proj.weight": "model.safetensors",
308
+ "model.layers.2.self_attn.v_proj.biases": "model.safetensors",
309
+ "model.layers.2.self_attn.v_proj.scales": "model.safetensors",
310
+ "model.layers.2.self_attn.v_proj.weight": "model.safetensors",
311
+ "model.layers.20.input_layernorm.weight": "model.safetensors",
312
+ "model.layers.20.mlp.down_proj.biases": "model.safetensors",
313
+ "model.layers.20.mlp.down_proj.scales": "model.safetensors",
314
+ "model.layers.20.mlp.down_proj.weight": "model.safetensors",
315
+ "model.layers.20.mlp.gate_proj.biases": "model.safetensors",
316
+ "model.layers.20.mlp.gate_proj.scales": "model.safetensors",
317
+ "model.layers.20.mlp.gate_proj.weight": "model.safetensors",
318
+ "model.layers.20.mlp.up_proj.biases": "model.safetensors",
319
+ "model.layers.20.mlp.up_proj.scales": "model.safetensors",
320
+ "model.layers.20.mlp.up_proj.weight": "model.safetensors",
321
+ "model.layers.20.post_attention_layernorm.weight": "model.safetensors",
322
+ "model.layers.20.self_attn.k_proj.biases": "model.safetensors",
323
+ "model.layers.20.self_attn.k_proj.scales": "model.safetensors",
324
+ "model.layers.20.self_attn.k_proj.weight": "model.safetensors",
325
+ "model.layers.20.self_attn.o_proj.biases": "model.safetensors",
326
+ "model.layers.20.self_attn.o_proj.scales": "model.safetensors",
327
+ "model.layers.20.self_attn.o_proj.weight": "model.safetensors",
328
+ "model.layers.20.self_attn.q_proj.biases": "model.safetensors",
329
+ "model.layers.20.self_attn.q_proj.scales": "model.safetensors",
330
+ "model.layers.20.self_attn.q_proj.weight": "model.safetensors",
331
+ "model.layers.20.self_attn.v_proj.biases": "model.safetensors",
332
+ "model.layers.20.self_attn.v_proj.scales": "model.safetensors",
333
+ "model.layers.20.self_attn.v_proj.weight": "model.safetensors",
334
+ "model.layers.21.input_layernorm.weight": "model.safetensors",
335
+ "model.layers.21.mlp.down_proj.biases": "model.safetensors",
336
+ "model.layers.21.mlp.down_proj.scales": "model.safetensors",
337
+ "model.layers.21.mlp.down_proj.weight": "model.safetensors",
338
+ "model.layers.21.mlp.gate_proj.biases": "model.safetensors",
339
+ "model.layers.21.mlp.gate_proj.scales": "model.safetensors",
340
+ "model.layers.21.mlp.gate_proj.weight": "model.safetensors",
341
+ "model.layers.21.mlp.up_proj.biases": "model.safetensors",
342
+ "model.layers.21.mlp.up_proj.scales": "model.safetensors",
343
+ "model.layers.21.mlp.up_proj.weight": "model.safetensors",
344
+ "model.layers.21.post_attention_layernorm.weight": "model.safetensors",
345
+ "model.layers.21.self_attn.k_proj.biases": "model.safetensors",
346
+ "model.layers.21.self_attn.k_proj.scales": "model.safetensors",
347
+ "model.layers.21.self_attn.k_proj.weight": "model.safetensors",
348
+ "model.layers.21.self_attn.o_proj.biases": "model.safetensors",
349
+ "model.layers.21.self_attn.o_proj.scales": "model.safetensors",
350
+ "model.layers.21.self_attn.o_proj.weight": "model.safetensors",
351
+ "model.layers.21.self_attn.q_proj.biases": "model.safetensors",
352
+ "model.layers.21.self_attn.q_proj.scales": "model.safetensors",
353
+ "model.layers.21.self_attn.q_proj.weight": "model.safetensors",
354
+ "model.layers.21.self_attn.v_proj.biases": "model.safetensors",
355
+ "model.layers.21.self_attn.v_proj.scales": "model.safetensors",
356
+ "model.layers.21.self_attn.v_proj.weight": "model.safetensors",
357
+ "model.layers.22.input_layernorm.weight": "model.safetensors",
358
+ "model.layers.22.mlp.down_proj.biases": "model.safetensors",
359
+ "model.layers.22.mlp.down_proj.scales": "model.safetensors",
360
+ "model.layers.22.mlp.down_proj.weight": "model.safetensors",
361
+ "model.layers.22.mlp.gate_proj.biases": "model.safetensors",
362
+ "model.layers.22.mlp.gate_proj.scales": "model.safetensors",
363
+ "model.layers.22.mlp.gate_proj.weight": "model.safetensors",
364
+ "model.layers.22.mlp.up_proj.biases": "model.safetensors",
365
+ "model.layers.22.mlp.up_proj.scales": "model.safetensors",
366
+ "model.layers.22.mlp.up_proj.weight": "model.safetensors",
367
+ "model.layers.22.post_attention_layernorm.weight": "model.safetensors",
368
+ "model.layers.22.self_attn.k_proj.biases": "model.safetensors",
369
+ "model.layers.22.self_attn.k_proj.scales": "model.safetensors",
370
+ "model.layers.22.self_attn.k_proj.weight": "model.safetensors",
371
+ "model.layers.22.self_attn.o_proj.biases": "model.safetensors",
372
+ "model.layers.22.self_attn.o_proj.scales": "model.safetensors",
373
+ "model.layers.22.self_attn.o_proj.weight": "model.safetensors",
374
+ "model.layers.22.self_attn.q_proj.biases": "model.safetensors",
375
+ "model.layers.22.self_attn.q_proj.scales": "model.safetensors",
376
+ "model.layers.22.self_attn.q_proj.weight": "model.safetensors",
377
+ "model.layers.22.self_attn.v_proj.biases": "model.safetensors",
378
+ "model.layers.22.self_attn.v_proj.scales": "model.safetensors",
379
+ "model.layers.22.self_attn.v_proj.weight": "model.safetensors",
380
+ "model.layers.23.input_layernorm.weight": "model.safetensors",
381
+ "model.layers.23.mlp.down_proj.biases": "model.safetensors",
382
+ "model.layers.23.mlp.down_proj.scales": "model.safetensors",
383
+ "model.layers.23.mlp.down_proj.weight": "model.safetensors",
384
+ "model.layers.23.mlp.gate_proj.biases": "model.safetensors",
385
+ "model.layers.23.mlp.gate_proj.scales": "model.safetensors",
386
+ "model.layers.23.mlp.gate_proj.weight": "model.safetensors",
387
+ "model.layers.23.mlp.up_proj.biases": "model.safetensors",
388
+ "model.layers.23.mlp.up_proj.scales": "model.safetensors",
389
+ "model.layers.23.mlp.up_proj.weight": "model.safetensors",
390
+ "model.layers.23.post_attention_layernorm.weight": "model.safetensors",
391
+ "model.layers.23.self_attn.k_proj.biases": "model.safetensors",
392
+ "model.layers.23.self_attn.k_proj.scales": "model.safetensors",
393
+ "model.layers.23.self_attn.k_proj.weight": "model.safetensors",
394
+ "model.layers.23.self_attn.o_proj.biases": "model.safetensors",
395
+ "model.layers.23.self_attn.o_proj.scales": "model.safetensors",
396
+ "model.layers.23.self_attn.o_proj.weight": "model.safetensors",
397
+ "model.layers.23.self_attn.q_proj.biases": "model.safetensors",
398
+ "model.layers.23.self_attn.q_proj.scales": "model.safetensors",
399
+ "model.layers.23.self_attn.q_proj.weight": "model.safetensors",
400
+ "model.layers.23.self_attn.v_proj.biases": "model.safetensors",
401
+ "model.layers.23.self_attn.v_proj.scales": "model.safetensors",
402
+ "model.layers.23.self_attn.v_proj.weight": "model.safetensors",
403
+ "model.layers.24.input_layernorm.weight": "model.safetensors",
404
+ "model.layers.24.mlp.down_proj.biases": "model.safetensors",
405
+ "model.layers.24.mlp.down_proj.scales": "model.safetensors",
406
+ "model.layers.24.mlp.down_proj.weight": "model.safetensors",
407
+ "model.layers.24.mlp.gate_proj.biases": "model.safetensors",
408
+ "model.layers.24.mlp.gate_proj.scales": "model.safetensors",
409
+ "model.layers.24.mlp.gate_proj.weight": "model.safetensors",
410
+ "model.layers.24.mlp.up_proj.biases": "model.safetensors",
411
+ "model.layers.24.mlp.up_proj.scales": "model.safetensors",
412
+ "model.layers.24.mlp.up_proj.weight": "model.safetensors",
413
+ "model.layers.24.post_attention_layernorm.weight": "model.safetensors",
414
+ "model.layers.24.self_attn.k_proj.biases": "model.safetensors",
415
+ "model.layers.24.self_attn.k_proj.scales": "model.safetensors",
416
+ "model.layers.24.self_attn.k_proj.weight": "model.safetensors",
417
+ "model.layers.24.self_attn.o_proj.biases": "model.safetensors",
418
+ "model.layers.24.self_attn.o_proj.scales": "model.safetensors",
419
+ "model.layers.24.self_attn.o_proj.weight": "model.safetensors",
420
+ "model.layers.24.self_attn.q_proj.biases": "model.safetensors",
421
+ "model.layers.24.self_attn.q_proj.scales": "model.safetensors",
422
+ "model.layers.24.self_attn.q_proj.weight": "model.safetensors",
423
+ "model.layers.24.self_attn.v_proj.biases": "model.safetensors",
424
+ "model.layers.24.self_attn.v_proj.scales": "model.safetensors",
425
+ "model.layers.24.self_attn.v_proj.weight": "model.safetensors",
426
+ "model.layers.25.input_layernorm.weight": "model.safetensors",
427
+ "model.layers.25.mlp.down_proj.biases": "model.safetensors",
428
+ "model.layers.25.mlp.down_proj.scales": "model.safetensors",
429
+ "model.layers.25.mlp.down_proj.weight": "model.safetensors",
430
+ "model.layers.25.mlp.gate_proj.biases": "model.safetensors",
431
+ "model.layers.25.mlp.gate_proj.scales": "model.safetensors",
432
+ "model.layers.25.mlp.gate_proj.weight": "model.safetensors",
433
+ "model.layers.25.mlp.up_proj.biases": "model.safetensors",
434
+ "model.layers.25.mlp.up_proj.scales": "model.safetensors",
435
+ "model.layers.25.mlp.up_proj.weight": "model.safetensors",
436
+ "model.layers.25.post_attention_layernorm.weight": "model.safetensors",
437
+ "model.layers.25.self_attn.k_proj.biases": "model.safetensors",
438
+ "model.layers.25.self_attn.k_proj.scales": "model.safetensors",
439
+ "model.layers.25.self_attn.k_proj.weight": "model.safetensors",
440
+ "model.layers.25.self_attn.o_proj.biases": "model.safetensors",
441
+ "model.layers.25.self_attn.o_proj.scales": "model.safetensors",
442
+ "model.layers.25.self_attn.o_proj.weight": "model.safetensors",
443
+ "model.layers.25.self_attn.q_proj.biases": "model.safetensors",
444
+ "model.layers.25.self_attn.q_proj.scales": "model.safetensors",
445
+ "model.layers.25.self_attn.q_proj.weight": "model.safetensors",
446
+ "model.layers.25.self_attn.v_proj.biases": "model.safetensors",
447
+ "model.layers.25.self_attn.v_proj.scales": "model.safetensors",
448
+ "model.layers.25.self_attn.v_proj.weight": "model.safetensors",
449
+ "model.layers.26.input_layernorm.weight": "model.safetensors",
450
+ "model.layers.26.mlp.down_proj.biases": "model.safetensors",
451
+ "model.layers.26.mlp.down_proj.scales": "model.safetensors",
452
+ "model.layers.26.mlp.down_proj.weight": "model.safetensors",
453
+ "model.layers.26.mlp.gate_proj.biases": "model.safetensors",
454
+ "model.layers.26.mlp.gate_proj.scales": "model.safetensors",
455
+ "model.layers.26.mlp.gate_proj.weight": "model.safetensors",
456
+ "model.layers.26.mlp.up_proj.biases": "model.safetensors",
457
+ "model.layers.26.mlp.up_proj.scales": "model.safetensors",
458
+ "model.layers.26.mlp.up_proj.weight": "model.safetensors",
459
+ "model.layers.26.post_attention_layernorm.weight": "model.safetensors",
460
+ "model.layers.26.self_attn.k_proj.biases": "model.safetensors",
461
+ "model.layers.26.self_attn.k_proj.scales": "model.safetensors",
462
+ "model.layers.26.self_attn.k_proj.weight": "model.safetensors",
463
+ "model.layers.26.self_attn.o_proj.biases": "model.safetensors",
464
+ "model.layers.26.self_attn.o_proj.scales": "model.safetensors",
465
+ "model.layers.26.self_attn.o_proj.weight": "model.safetensors",
466
+ "model.layers.26.self_attn.q_proj.biases": "model.safetensors",
467
+ "model.layers.26.self_attn.q_proj.scales": "model.safetensors",
468
+ "model.layers.26.self_attn.q_proj.weight": "model.safetensors",
469
+ "model.layers.26.self_attn.v_proj.biases": "model.safetensors",
470
+ "model.layers.26.self_attn.v_proj.scales": "model.safetensors",
471
+ "model.layers.26.self_attn.v_proj.weight": "model.safetensors",
472
+ "model.layers.27.input_layernorm.weight": "model.safetensors",
473
+ "model.layers.27.mlp.down_proj.biases": "model.safetensors",
474
+ "model.layers.27.mlp.down_proj.scales": "model.safetensors",
475
+ "model.layers.27.mlp.down_proj.weight": "model.safetensors",
476
+ "model.layers.27.mlp.gate_proj.biases": "model.safetensors",
477
+ "model.layers.27.mlp.gate_proj.scales": "model.safetensors",
478
+ "model.layers.27.mlp.gate_proj.weight": "model.safetensors",
479
+ "model.layers.27.mlp.up_proj.biases": "model.safetensors",
480
+ "model.layers.27.mlp.up_proj.scales": "model.safetensors",
481
+ "model.layers.27.mlp.up_proj.weight": "model.safetensors",
482
+ "model.layers.27.post_attention_layernorm.weight": "model.safetensors",
483
+ "model.layers.27.self_attn.k_proj.biases": "model.safetensors",
484
+ "model.layers.27.self_attn.k_proj.scales": "model.safetensors",
485
+ "model.layers.27.self_attn.k_proj.weight": "model.safetensors",
486
+ "model.layers.27.self_attn.o_proj.biases": "model.safetensors",
487
+ "model.layers.27.self_attn.o_proj.scales": "model.safetensors",
488
+ "model.layers.27.self_attn.o_proj.weight": "model.safetensors",
489
+ "model.layers.27.self_attn.q_proj.biases": "model.safetensors",
490
+ "model.layers.27.self_attn.q_proj.scales": "model.safetensors",
491
+ "model.layers.27.self_attn.q_proj.weight": "model.safetensors",
492
+ "model.layers.27.self_attn.v_proj.biases": "model.safetensors",
493
+ "model.layers.27.self_attn.v_proj.scales": "model.safetensors",
494
+ "model.layers.27.self_attn.v_proj.weight": "model.safetensors",
495
+ "model.layers.28.input_layernorm.weight": "model.safetensors",
496
+ "model.layers.28.mlp.down_proj.biases": "model.safetensors",
497
+ "model.layers.28.mlp.down_proj.scales": "model.safetensors",
498
+ "model.layers.28.mlp.down_proj.weight": "model.safetensors",
499
+ "model.layers.28.mlp.gate_proj.biases": "model.safetensors",
500
+ "model.layers.28.mlp.gate_proj.scales": "model.safetensors",
501
+ "model.layers.28.mlp.gate_proj.weight": "model.safetensors",
502
+ "model.layers.28.mlp.up_proj.biases": "model.safetensors",
503
+ "model.layers.28.mlp.up_proj.scales": "model.safetensors",
504
+ "model.layers.28.mlp.up_proj.weight": "model.safetensors",
505
+ "model.layers.28.post_attention_layernorm.weight": "model.safetensors",
506
+ "model.layers.28.self_attn.k_proj.biases": "model.safetensors",
507
+ "model.layers.28.self_attn.k_proj.scales": "model.safetensors",
508
+ "model.layers.28.self_attn.k_proj.weight": "model.safetensors",
509
+ "model.layers.28.self_attn.o_proj.biases": "model.safetensors",
510
+ "model.layers.28.self_attn.o_proj.scales": "model.safetensors",
511
+ "model.layers.28.self_attn.o_proj.weight": "model.safetensors",
512
+ "model.layers.28.self_attn.q_proj.biases": "model.safetensors",
513
+ "model.layers.28.self_attn.q_proj.scales": "model.safetensors",
514
+ "model.layers.28.self_attn.q_proj.weight": "model.safetensors",
515
+ "model.layers.28.self_attn.v_proj.biases": "model.safetensors",
516
+ "model.layers.28.self_attn.v_proj.scales": "model.safetensors",
517
+ "model.layers.28.self_attn.v_proj.weight": "model.safetensors",
518
+ "model.layers.29.input_layernorm.weight": "model.safetensors",
519
+ "model.layers.29.mlp.down_proj.biases": "model.safetensors",
520
+ "model.layers.29.mlp.down_proj.scales": "model.safetensors",
521
+ "model.layers.29.mlp.down_proj.weight": "model.safetensors",
522
+ "model.layers.29.mlp.gate_proj.biases": "model.safetensors",
523
+ "model.layers.29.mlp.gate_proj.scales": "model.safetensors",
524
+ "model.layers.29.mlp.gate_proj.weight": "model.safetensors",
525
+ "model.layers.29.mlp.up_proj.biases": "model.safetensors",
526
+ "model.layers.29.mlp.up_proj.scales": "model.safetensors",
527
+ "model.layers.29.mlp.up_proj.weight": "model.safetensors",
528
+ "model.layers.29.post_attention_layernorm.weight": "model.safetensors",
529
+ "model.layers.29.self_attn.k_proj.biases": "model.safetensors",
530
+ "model.layers.29.self_attn.k_proj.scales": "model.safetensors",
531
+ "model.layers.29.self_attn.k_proj.weight": "model.safetensors",
532
+ "model.layers.29.self_attn.o_proj.biases": "model.safetensors",
533
+ "model.layers.29.self_attn.o_proj.scales": "model.safetensors",
534
+ "model.layers.29.self_attn.o_proj.weight": "model.safetensors",
535
+ "model.layers.29.self_attn.q_proj.biases": "model.safetensors",
536
+ "model.layers.29.self_attn.q_proj.scales": "model.safetensors",
537
+ "model.layers.29.self_attn.q_proj.weight": "model.safetensors",
538
+ "model.layers.29.self_attn.v_proj.biases": "model.safetensors",
539
+ "model.layers.29.self_attn.v_proj.scales": "model.safetensors",
540
+ "model.layers.29.self_attn.v_proj.weight": "model.safetensors",
541
+ "model.layers.3.input_layernorm.weight": "model.safetensors",
542
+ "model.layers.3.mlp.down_proj.biases": "model.safetensors",
543
+ "model.layers.3.mlp.down_proj.scales": "model.safetensors",
544
+ "model.layers.3.mlp.down_proj.weight": "model.safetensors",
545
+ "model.layers.3.mlp.gate_proj.biases": "model.safetensors",
546
+ "model.layers.3.mlp.gate_proj.scales": "model.safetensors",
547
+ "model.layers.3.mlp.gate_proj.weight": "model.safetensors",
548
+ "model.layers.3.mlp.up_proj.biases": "model.safetensors",
549
+ "model.layers.3.mlp.up_proj.scales": "model.safetensors",
550
+ "model.layers.3.mlp.up_proj.weight": "model.safetensors",
551
+ "model.layers.3.post_attention_layernorm.weight": "model.safetensors",
552
+ "model.layers.3.self_attn.k_proj.biases": "model.safetensors",
553
+ "model.layers.3.self_attn.k_proj.scales": "model.safetensors",
554
+ "model.layers.3.self_attn.k_proj.weight": "model.safetensors",
555
+ "model.layers.3.self_attn.o_proj.biases": "model.safetensors",
556
+ "model.layers.3.self_attn.o_proj.scales": "model.safetensors",
557
+ "model.layers.3.self_attn.o_proj.weight": "model.safetensors",
558
+ "model.layers.3.self_attn.q_proj.biases": "model.safetensors",
559
+ "model.layers.3.self_attn.q_proj.scales": "model.safetensors",
560
+ "model.layers.3.self_attn.q_proj.weight": "model.safetensors",
561
+ "model.layers.3.self_attn.v_proj.biases": "model.safetensors",
562
+ "model.layers.3.self_attn.v_proj.scales": "model.safetensors",
563
+ "model.layers.3.self_attn.v_proj.weight": "model.safetensors",
564
+ "model.layers.4.input_layernorm.weight": "model.safetensors",
565
+ "model.layers.4.mlp.down_proj.biases": "model.safetensors",
566
+ "model.layers.4.mlp.down_proj.scales": "model.safetensors",
567
+ "model.layers.4.mlp.down_proj.weight": "model.safetensors",
568
+ "model.layers.4.mlp.gate_proj.biases": "model.safetensors",
569
+ "model.layers.4.mlp.gate_proj.scales": "model.safetensors",
570
+ "model.layers.4.mlp.gate_proj.weight": "model.safetensors",
571
+ "model.layers.4.mlp.up_proj.biases": "model.safetensors",
572
+ "model.layers.4.mlp.up_proj.scales": "model.safetensors",
573
+ "model.layers.4.mlp.up_proj.weight": "model.safetensors",
574
+ "model.layers.4.post_attention_layernorm.weight": "model.safetensors",
575
+ "model.layers.4.self_attn.k_proj.biases": "model.safetensors",
576
+ "model.layers.4.self_attn.k_proj.scales": "model.safetensors",
577
+ "model.layers.4.self_attn.k_proj.weight": "model.safetensors",
578
+ "model.layers.4.self_attn.o_proj.biases": "model.safetensors",
579
+ "model.layers.4.self_attn.o_proj.scales": "model.safetensors",
580
+ "model.layers.4.self_attn.o_proj.weight": "model.safetensors",
581
+ "model.layers.4.self_attn.q_proj.biases": "model.safetensors",
582
+ "model.layers.4.self_attn.q_proj.scales": "model.safetensors",
583
+ "model.layers.4.self_attn.q_proj.weight": "model.safetensors",
584
+ "model.layers.4.self_attn.v_proj.biases": "model.safetensors",
585
+ "model.layers.4.self_attn.v_proj.scales": "model.safetensors",
586
+ "model.layers.4.self_attn.v_proj.weight": "model.safetensors",
587
+ "model.layers.5.input_layernorm.weight": "model.safetensors",
588
+ "model.layers.5.mlp.down_proj.biases": "model.safetensors",
589
+ "model.layers.5.mlp.down_proj.scales": "model.safetensors",
590
+ "model.layers.5.mlp.down_proj.weight": "model.safetensors",
591
+ "model.layers.5.mlp.gate_proj.biases": "model.safetensors",
592
+ "model.layers.5.mlp.gate_proj.scales": "model.safetensors",
593
+ "model.layers.5.mlp.gate_proj.weight": "model.safetensors",
594
+ "model.layers.5.mlp.up_proj.biases": "model.safetensors",
595
+ "model.layers.5.mlp.up_proj.scales": "model.safetensors",
596
+ "model.layers.5.mlp.up_proj.weight": "model.safetensors",
597
+ "model.layers.5.post_attention_layernorm.weight": "model.safetensors",
598
+ "model.layers.5.self_attn.k_proj.biases": "model.safetensors",
599
+ "model.layers.5.self_attn.k_proj.scales": "model.safetensors",
600
+ "model.layers.5.self_attn.k_proj.weight": "model.safetensors",
601
+ "model.layers.5.self_attn.o_proj.biases": "model.safetensors",
602
+ "model.layers.5.self_attn.o_proj.scales": "model.safetensors",
603
+ "model.layers.5.self_attn.o_proj.weight": "model.safetensors",
604
+ "model.layers.5.self_attn.q_proj.biases": "model.safetensors",
605
+ "model.layers.5.self_attn.q_proj.scales": "model.safetensors",
606
+ "model.layers.5.self_attn.q_proj.weight": "model.safetensors",
607
+ "model.layers.5.self_attn.v_proj.biases": "model.safetensors",
608
+ "model.layers.5.self_attn.v_proj.scales": "model.safetensors",
609
+ "model.layers.5.self_attn.v_proj.weight": "model.safetensors",
610
+ "model.layers.6.input_layernorm.weight": "model.safetensors",
611
+ "model.layers.6.mlp.down_proj.biases": "model.safetensors",
612
+ "model.layers.6.mlp.down_proj.scales": "model.safetensors",
613
+ "model.layers.6.mlp.down_proj.weight": "model.safetensors",
614
+ "model.layers.6.mlp.gate_proj.biases": "model.safetensors",
615
+ "model.layers.6.mlp.gate_proj.scales": "model.safetensors",
616
+ "model.layers.6.mlp.gate_proj.weight": "model.safetensors",
617
+ "model.layers.6.mlp.up_proj.biases": "model.safetensors",
618
+ "model.layers.6.mlp.up_proj.scales": "model.safetensors",
619
+ "model.layers.6.mlp.up_proj.weight": "model.safetensors",
620
+ "model.layers.6.post_attention_layernorm.weight": "model.safetensors",
621
+ "model.layers.6.self_attn.k_proj.biases": "model.safetensors",
622
+ "model.layers.6.self_attn.k_proj.scales": "model.safetensors",
623
+ "model.layers.6.self_attn.k_proj.weight": "model.safetensors",
624
+ "model.layers.6.self_attn.o_proj.biases": "model.safetensors",
625
+ "model.layers.6.self_attn.o_proj.scales": "model.safetensors",
626
+ "model.layers.6.self_attn.o_proj.weight": "model.safetensors",
627
+ "model.layers.6.self_attn.q_proj.biases": "model.safetensors",
628
+ "model.layers.6.self_attn.q_proj.scales": "model.safetensors",
629
+ "model.layers.6.self_attn.q_proj.weight": "model.safetensors",
630
+ "model.layers.6.self_attn.v_proj.biases": "model.safetensors",
631
+ "model.layers.6.self_attn.v_proj.scales": "model.safetensors",
632
+ "model.layers.6.self_attn.v_proj.weight": "model.safetensors",
633
+ "model.layers.7.input_layernorm.weight": "model.safetensors",
634
+ "model.layers.7.mlp.down_proj.biases": "model.safetensors",
635
+ "model.layers.7.mlp.down_proj.scales": "model.safetensors",
636
+ "model.layers.7.mlp.down_proj.weight": "model.safetensors",
637
+ "model.layers.7.mlp.gate_proj.biases": "model.safetensors",
638
+ "model.layers.7.mlp.gate_proj.scales": "model.safetensors",
639
+ "model.layers.7.mlp.gate_proj.weight": "model.safetensors",
640
+ "model.layers.7.mlp.up_proj.biases": "model.safetensors",
641
+ "model.layers.7.mlp.up_proj.scales": "model.safetensors",
642
+ "model.layers.7.mlp.up_proj.weight": "model.safetensors",
643
+ "model.layers.7.post_attention_layernorm.weight": "model.safetensors",
644
+ "model.layers.7.self_attn.k_proj.biases": "model.safetensors",
645
+ "model.layers.7.self_attn.k_proj.scales": "model.safetensors",
646
+ "model.layers.7.self_attn.k_proj.weight": "model.safetensors",
647
+ "model.layers.7.self_attn.o_proj.biases": "model.safetensors",
648
+ "model.layers.7.self_attn.o_proj.scales": "model.safetensors",
649
+ "model.layers.7.self_attn.o_proj.weight": "model.safetensors",
650
+ "model.layers.7.self_attn.q_proj.biases": "model.safetensors",
651
+ "model.layers.7.self_attn.q_proj.scales": "model.safetensors",
652
+ "model.layers.7.self_attn.q_proj.weight": "model.safetensors",
653
+ "model.layers.7.self_attn.v_proj.biases": "model.safetensors",
654
+ "model.layers.7.self_attn.v_proj.scales": "model.safetensors",
655
+ "model.layers.7.self_attn.v_proj.weight": "model.safetensors",
656
+ "model.layers.8.input_layernorm.weight": "model.safetensors",
657
+ "model.layers.8.mlp.down_proj.biases": "model.safetensors",
658
+ "model.layers.8.mlp.down_proj.scales": "model.safetensors",
659
+ "model.layers.8.mlp.down_proj.weight": "model.safetensors",
660
+ "model.layers.8.mlp.gate_proj.biases": "model.safetensors",
661
+ "model.layers.8.mlp.gate_proj.scales": "model.safetensors",
662
+ "model.layers.8.mlp.gate_proj.weight": "model.safetensors",
663
+ "model.layers.8.mlp.up_proj.biases": "model.safetensors",
664
+ "model.layers.8.mlp.up_proj.scales": "model.safetensors",
665
+ "model.layers.8.mlp.up_proj.weight": "model.safetensors",
666
+ "model.layers.8.post_attention_layernorm.weight": "model.safetensors",
667
+ "model.layers.8.self_attn.k_proj.biases": "model.safetensors",
668
+ "model.layers.8.self_attn.k_proj.scales": "model.safetensors",
669
+ "model.layers.8.self_attn.k_proj.weight": "model.safetensors",
670
+ "model.layers.8.self_attn.o_proj.biases": "model.safetensors",
671
+ "model.layers.8.self_attn.o_proj.scales": "model.safetensors",
672
+ "model.layers.8.self_attn.o_proj.weight": "model.safetensors",
673
+ "model.layers.8.self_attn.q_proj.biases": "model.safetensors",
674
+ "model.layers.8.self_attn.q_proj.scales": "model.safetensors",
675
+ "model.layers.8.self_attn.q_proj.weight": "model.safetensors",
676
+ "model.layers.8.self_attn.v_proj.biases": "model.safetensors",
677
+ "model.layers.8.self_attn.v_proj.scales": "model.safetensors",
678
+ "model.layers.8.self_attn.v_proj.weight": "model.safetensors",
679
+ "model.layers.9.input_layernorm.weight": "model.safetensors",
680
+ "model.layers.9.mlp.down_proj.biases": "model.safetensors",
681
+ "model.layers.9.mlp.down_proj.scales": "model.safetensors",
682
+ "model.layers.9.mlp.down_proj.weight": "model.safetensors",
683
+ "model.layers.9.mlp.gate_proj.biases": "model.safetensors",
684
+ "model.layers.9.mlp.gate_proj.scales": "model.safetensors",
685
+ "model.layers.9.mlp.gate_proj.weight": "model.safetensors",
686
+ "model.layers.9.mlp.up_proj.biases": "model.safetensors",
687
+ "model.layers.9.mlp.up_proj.scales": "model.safetensors",
688
+ "model.layers.9.mlp.up_proj.weight": "model.safetensors",
689
+ "model.layers.9.post_attention_layernorm.weight": "model.safetensors",
690
+ "model.layers.9.self_attn.k_proj.biases": "model.safetensors",
691
+ "model.layers.9.self_attn.k_proj.scales": "model.safetensors",
692
+ "model.layers.9.self_attn.k_proj.weight": "model.safetensors",
693
+ "model.layers.9.self_attn.o_proj.biases": "model.safetensors",
694
+ "model.layers.9.self_attn.o_proj.scales": "model.safetensors",
695
+ "model.layers.9.self_attn.o_proj.weight": "model.safetensors",
696
+ "model.layers.9.self_attn.q_proj.biases": "model.safetensors",
697
+ "model.layers.9.self_attn.q_proj.scales": "model.safetensors",
698
+ "model.layers.9.self_attn.q_proj.weight": "model.safetensors",
699
+ "model.layers.9.self_attn.v_proj.biases": "model.safetensors",
700
+ "model.layers.9.self_attn.v_proj.scales": "model.safetensors",
701
+ "model.layers.9.self_attn.v_proj.weight": "model.safetensors",
702
+ "model.norm.weight": "model.safetensors"
703
+ }
704
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<image_placeholder>",
4
+ "<patch_placeholder>",
5
+ "<|ref|>",
6
+ "<|/ref|>",
7
+ "<|det|>",
8
+ "<|/det|>",
9
+ "<|grounding|>",
10
+ "<|User|>",
11
+ "<|Assistant|>"
12
+ ],
13
+ "bos_token": {
14
+ "content": "<|begin▁of▁sentence|>",
15
+ "lstrip": false,
16
+ "normalized": true,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ },
20
+ "eos_token": {
21
+ "content": "<|end▁of▁sentence|>",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false
26
+ },
27
+ "pad_token": {
28
+ "content": "<|▁pad▁|>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false
33
+ }
34
+ }
test_conv.py ADDED
@@ -0,0 +1,365 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2023-2024 DeepSeek.
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining a copy of
4
+ # this software and associated documentation files (the "Software"), to deal in
5
+ # the Software without restriction, including without limitation the rights to
6
+ # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
7
+ # the Software, and to permit persons to whom the Software is furnished to do so,
8
+ # subject to the following conditions:
9
+ #
10
+ # The above copyright notice and this permission notice shall be included in all
11
+ # copies or substantial portions of the Software.
12
+ #
13
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15
+ # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16
+ # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17
+ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18
+ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19
+
20
+ """
21
+ From https://github.com/lm-sys/FastChat/blob/main/fastchat/conversation.py
22
+ """
23
+
24
+ import dataclasses
25
+ from enum import IntEnum, auto
26
+ from typing import Dict, List
27
+
28
+
29
+ class SeparatorStyle(IntEnum):
30
+ """Separator styles."""
31
+
32
+ ADD_COLON_SINGLE = auto()
33
+ ADD_COLON_TWO = auto()
34
+ ADD_COLON_SPACE_SINGLE = auto()
35
+ NO_COLON_SINGLE = auto()
36
+ NO_COLON_TWO = auto()
37
+ ADD_NEW_LINE_SINGLE = auto()
38
+ LLAMA2 = auto()
39
+ CHATGLM = auto()
40
+ CHATML = auto()
41
+ CHATINTERN = auto()
42
+ DOLLY = auto()
43
+ RWKV = auto()
44
+ PHOENIX = auto()
45
+ ROBIN = auto()
46
+ DeepSeek = auto()
47
+ PLAIN = auto()
48
+ ALIGNMENT = auto()
49
+
50
+
51
+ @dataclasses.dataclass
52
+ class Conversation:
53
+ """A class that manages prompt templates and keeps all conversation history."""
54
+
55
+ # The name of this template
56
+ name: str
57
+ # The template of the system prompt
58
+ system_template: str = "{system_message}"
59
+ # The system message
60
+ system_message: str = ""
61
+ # The names of two roles
62
+ roles: List[str] = (("USER", "ASSISTANT"),)
63
+ # All messages. Each item is (role, message).
64
+ messages: List[List[str]] = ()
65
+ # The number of few shot examples
66
+ offset: int = 0
67
+ # The separator style and configurations
68
+ sep_style: SeparatorStyle = SeparatorStyle.ADD_COLON_SINGLE
69
+ sep: str = "\n"
70
+ sep2: str = None
71
+ # Stop criteria (the default one is EOS token)
72
+ stop_str: str = None
73
+ # Stops generation if meeting any token in this list
74
+ stop_token_ids: List[int] = None
75
+
76
+ def get_prompt(self) -> str:
77
+ """Get the prompt for generation."""
78
+ system_prompt = self.system_template.format(system_message=self.system_message)
79
+
80
+ if self.sep_style == SeparatorStyle.DeepSeek:
81
+ seps = [self.sep, self.sep2]
82
+ if system_prompt == "" or system_prompt is None:
83
+ ret = ""
84
+ else:
85
+ ret = system_prompt + seps[0]
86
+ for i, (role, message) in enumerate(self.messages):
87
+ if message:
88
+ ret += role + ": " + message + seps[i % 2]
89
+ else:
90
+ ret += role + ":"
91
+ return ret
92
+ elif self.sep_style == SeparatorStyle.LLAMA2:
93
+ seps = [self.sep, self.sep2]
94
+ if self.system_message:
95
+ ret = system_prompt
96
+ else:
97
+ ret = "[INST] "
98
+ for i, (role, message) in enumerate(self.messages):
99
+ tag = self.roles[i % 2]
100
+ if message:
101
+ if type(message) is tuple: # multimodal message
102
+ message, _ = message
103
+ if i == 0:
104
+ ret += message + " "
105
+ else:
106
+ ret += tag + " " + message + seps[i % 2]
107
+ else:
108
+ ret += tag
109
+ return ret
110
+ elif self.sep_style == SeparatorStyle.PLAIN:
111
+ seps = [self.sep, self.sep2]
112
+ ret = ""
113
+ for i, (role, message) in enumerate(self.messages):
114
+ if message:
115
+ if type(message) is tuple:
116
+ message, _, _ = message
117
+ if i % 2 == 0:
118
+ ret += message + seps[i % 2]
119
+ else:
120
+ ret += message + seps[i % 2]
121
+ else:
122
+ ret += ""
123
+ return ret
124
+ elif self.sep_style == SeparatorStyle.ALIGNMENT:
125
+ seps = [self.sep, self.sep2]
126
+ ret = ""
127
+ for i, (role, message) in enumerate(self.messages):
128
+ if message:
129
+ if type(message) is tuple:
130
+ message, _, _ = message
131
+ if i % 2 == 0:
132
+ ret += "<image>\n" + seps[i % 2]
133
+ else:
134
+ ret += message + seps[i % 2]
135
+ else:
136
+ ret += ""
137
+ return ret
138
+ else:
139
+ raise ValueError(f"Invalid style: {self.sep_style}")
140
+
141
+ def get_prompt_for_current_round(self, content=None):
142
+ """Get current round formatted question prompt during sft training"""
143
+ if self.sep_style == SeparatorStyle.PLAIN:
144
+ formatted_question = "<image>\n"
145
+ elif self.sep_style == SeparatorStyle.DeepSeek:
146
+ formatted_question = (
147
+ f"{self.roles[0]}: " + content.strip() + self.sep + f"{self.roles[1]}:"
148
+ )
149
+ else:
150
+ raise ValueError(f"Unsupported sep_style: {self.sep_style}")
151
+ return formatted_question
152
+
153
+ def set_system_message(self, system_message: str):
154
+ """Set the system message."""
155
+ self.system_message = system_message
156
+
157
+ def append_message(self, role: str, message: str):
158
+ """Append a new message."""
159
+ self.messages.append([role, message])
160
+
161
+ def reset_message(self):
162
+ """Reset a new message."""
163
+ self.messages = []
164
+
165
+ def update_last_message(self, message: str):
166
+ """Update the last output.
167
+
168
+ The last message is typically set to be None when constructing the prompt,
169
+ so we need to update it in-place after getting the response from a model.
170
+ """
171
+ self.messages[-1][1] = message
172
+
173
+ def to_gradio_chatbot(self):
174
+ """Convert the conversation to gradio chatbot format."""
175
+ ret = []
176
+ for i, (role, msg) in enumerate(self.messages[self.offset :]):
177
+ if i % 2 == 0:
178
+ ret.append([msg, None])
179
+ else:
180
+ ret[-1][-1] = msg
181
+ return ret
182
+
183
+ def to_openai_api_messages(self):
184
+ """Convert the conversation to OpenAI chat completion format."""
185
+ system_prompt = self.system_template.format(system_message=self.system_message)
186
+ ret = [{"role": "system", "content": system_prompt}]
187
+
188
+ for i, (_, msg) in enumerate(self.messages[self.offset :]):
189
+ if i % 2 == 0:
190
+ ret.append({"role": "user", "content": msg})
191
+ else:
192
+ if msg is not None:
193
+ ret.append({"role": "assistant", "content": msg})
194
+ return ret
195
+
196
+ def copy(self):
197
+ return Conversation(
198
+ name=self.name,
199
+ system_template=self.system_template,
200
+ system_message=self.system_message,
201
+ roles=self.roles,
202
+ messages=[[x, y] for x, y in self.messages],
203
+ offset=self.offset,
204
+ sep_style=self.sep_style,
205
+ sep=self.sep,
206
+ sep2=self.sep2,
207
+ stop_str=self.stop_str,
208
+ stop_token_ids=self.stop_token_ids,
209
+ )
210
+
211
+ def dict(self):
212
+ return {
213
+ "template_name": self.name,
214
+ "system_message": self.system_message,
215
+ "roles": self.roles,
216
+ "messages": self.messages,
217
+ "offset": self.offset,
218
+ }
219
+
220
+
221
+ # A global registry for all conversation templates
222
+ conv_templates: Dict[str, Conversation] = {}
223
+
224
+
225
+ def register_conv_template(template: Conversation, override: bool = False):
226
+ """Register a new conversation template."""
227
+ if not override:
228
+ assert (
229
+ template.name not in conv_templates
230
+ ), f"{template.name} has been registered."
231
+
232
+ conv_templates[template.name] = template
233
+
234
+
235
+ def get_conv_template(name: str) -> Conversation:
236
+ """Get a conversation template."""
237
+ return conv_templates[name].copy()
238
+
239
+
240
+ # llava_llama2 template
241
+ register_conv_template(
242
+ Conversation(
243
+ name="llava_llama2",
244
+ system_message="You are a helpful language and vision assistant. "
245
+ "You are able to understand the visual content that the user provides, "
246
+ "and assist the user with a variety of tasks using natural language.",
247
+ system_template="[INST] <<SYS>>\n{system_message}\n<</SYS>>\n\n",
248
+ roles=("[INST]", "[/INST]"),
249
+ messages=(),
250
+ offset=0,
251
+ sep_style=SeparatorStyle.LLAMA2,
252
+ sep=" ",
253
+ sep2=" </s><s>",
254
+ stop_token_ids=[2],
255
+ )
256
+ )
257
+
258
+ # llama2 template
259
+ # reference: https://github.com/facebookresearch/llama/blob/cfc3fc8c1968d390eb830e65c63865e980873a06/llama/generation.py#L212
260
+ register_conv_template(
261
+ Conversation(
262
+ name="llama-2",
263
+ system_template="[INST] <<SYS>>\n{system_message}\n<</SYS>>\n\n",
264
+ roles=("[INST]", "[/INST]"),
265
+ messages=(),
266
+ offset=0,
267
+ sep_style=SeparatorStyle.LLAMA2,
268
+ sep=" ",
269
+ sep2=" </s><s>",
270
+ stop_token_ids=[2],
271
+ )
272
+ )
273
+
274
+
275
+ # deepseek template
276
+ register_conv_template(
277
+ Conversation(
278
+ name="deepseek_old",
279
+ system_template="{system_message}",
280
+ # system_message="You are a helpful assistant. Please answer truthfully and write out your "
281
+ # "thinking step by step to be sure you get the right answer.",
282
+ system_message="",
283
+ roles=("User", "Assistant"),
284
+ messages=(),
285
+ offset=0,
286
+ sep_style=SeparatorStyle.DeepSeek,
287
+ sep="\n\n",
288
+ sep2="<|end▁of▁sentence|>",
289
+ stop_token_ids=[100001],
290
+ stop_str=["User:", "<|end▁of▁sentence|>"],
291
+ )
292
+ )
293
+ register_conv_template(
294
+ Conversation(
295
+ name="deepseek",
296
+ system_template="{system_message}",
297
+ # system_message="You are a helpful assistant. Please answer truthfully and write out your "
298
+ # "thinking step by step to be sure you get the right answer.",
299
+ system_message="",
300
+ roles=("<|User|>", "<|Assistant|>"),
301
+ messages=(),
302
+ offset=0,
303
+ sep_style=SeparatorStyle.DeepSeek,
304
+ sep="\n\n",
305
+ sep2="<|end▁of▁sentence|>",
306
+ stop_token_ids=[100001],
307
+ stop_str=["<|User|>", "<|end▁of▁sentence|>"]
308
+ )
309
+ )
310
+
311
+ register_conv_template(
312
+ Conversation(
313
+ name="plain",
314
+ system_template="",
315
+ system_message="",
316
+ roles=("", ""),
317
+ messages=(),
318
+ offset=0,
319
+ sep_style=SeparatorStyle.PLAIN,
320
+ sep="",
321
+ sep2="",
322
+ stop_token_ids=[2],
323
+ stop_str=["</s>"],
324
+ )
325
+ )
326
+
327
+
328
+ register_conv_template(
329
+ Conversation(
330
+ name="alignment",
331
+ system_template="",
332
+ system_message="",
333
+ roles=("", ""),
334
+ messages=(),
335
+ offset=0,
336
+ sep_style=SeparatorStyle.ALIGNMENT,
337
+ sep="",
338
+ sep2="",
339
+ stop_token_ids=[2],
340
+ stop_str=["</s>"],
341
+ )
342
+ )
343
+
344
+
345
+ if __name__ == "__main__":
346
+ # print("Llama-2 template:")
347
+ # conv = get_conv_template("llama-2")
348
+ # conv.set_system_message("You are a helpful, respectful and honest assistant.")
349
+ # conv.append_message(conv.roles[0], "Hello!")
350
+ # conv.append_message(conv.roles[1], "Hi!")
351
+ # conv.append_message(conv.roles[0], "How are you?")
352
+ # conv.append_message(conv.roles[1], None)
353
+ # print(conv.get_prompt())
354
+
355
+ # print("\n")
356
+
357
+ print("deepseek template:")
358
+ conv = get_conv_template("deepseek")
359
+ conv.append_message(conv.roles[0], "Hello!")
360
+ conv.append_message(conv.roles[1], "Hi! This is Tony.")
361
+ conv.append_message(conv.roles[0], "Who are you?")
362
+ conv.append_message(conv.roles[1], "I am a helpful assistant.")
363
+ conv.append_message(conv.roles[0], "How are you?")
364
+ conv.append_message(conv.roles[1], None)
365
+ print(conv.get_prompt())
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff