wenzw commited on
Commit
9cd6a29
·
1 Parent(s): 2c113f1

Model save

Browse files
README.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: mistralai/Mistral-7B-v0.1
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: zephyr-7b-sft-lora
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # zephyr-7b-sft-lora
15
+
16
+ This model is a fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 0.9900
19
+
20
+ ## Model description
21
+
22
+ More information needed
23
+
24
+ ## Intended uses & limitations
25
+
26
+ More information needed
27
+
28
+ ## Training and evaluation data
29
+
30
+ More information needed
31
+
32
+ ## Training procedure
33
+
34
+ ### Training hyperparameters
35
+
36
+ The following hyperparameters were used during training:
37
+ - learning_rate: 2e-05
38
+ - train_batch_size: 4
39
+ - eval_batch_size: 8
40
+ - seed: 42
41
+ - distributed_type: multi-GPU
42
+ - gradient_accumulation_steps: 128
43
+ - total_train_batch_size: 512
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: cosine
46
+ - num_epochs: 1
47
+
48
+ ### Training results
49
+
50
+ | Training Loss | Epoch | Step | Validation Loss |
51
+ |:-------------:|:-----:|:----:|:---------------:|
52
+ | 0.9866 | 0.67 | 272 | 0.9900 |
53
+
54
+
55
+ ### Framework versions
56
+
57
+ - Transformers 4.35.0
58
+ - Pytorch 2.1.0+cu121
59
+ - Datasets 2.14.6
60
+ - Tokenizers 0.14.1
adapter_config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mistralai/Mistral-7B-v0.1",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "lora_alpha": 16,
12
+ "lora_dropout": 0.1,
13
+ "modules_to_save": null,
14
+ "peft_type": "LORA",
15
+ "r": 64,
16
+ "rank_pattern": {},
17
+ "revision": null,
18
+ "target_modules": [
19
+ "k_proj",
20
+ "q_proj",
21
+ "o_proj",
22
+ "v_proj"
23
+ ],
24
+ "task_type": "CAUSAL_LM"
25
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29efbdbf7126c824b3ae1fae036b2265fdad4a64e4039b470a203d3c1489102d
3
+ size 218138576
all_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.67,
3
+ "eval_loss": 0.9899678230285645,
4
+ "eval_runtime": 3892.234,
5
+ "eval_samples": 23110,
6
+ "eval_samples_per_second": 5.937,
7
+ "eval_steps_per_second": 0.742,
8
+ "train_loss": 1.0095771827241953,
9
+ "train_runtime": 116282.0771,
10
+ "train_samples": 207865,
11
+ "train_samples_per_second": 1.788,
12
+ "train_steps_per_second": 0.003
13
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.67,
3
+ "eval_loss": 0.9899678230285645,
4
+ "eval_runtime": 3892.234,
5
+ "eval_samples": 23110,
6
+ "eval_samples_per_second": 5.937,
7
+ "eval_steps_per_second": 0.742
8
+ }
runs/Dec30_14-33-58_localhost.localdomain/events.out.tfevents.1703918077.localhost.localdomain.16776.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9445a3768df671f5c204b695cfe54161097399db89eb198a6599cedaaf46d324
3
+ size 4269
runs/Dec30_14-42-37_localhost.localdomain/events.out.tfevents.1703918596.localhost.localdomain.17897.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f618f8ff7900fdc2e322d7a65f36b23b93cbbe3e50fad1fcaa260941a8558d8c
3
+ size 7657
runs/Jan02_11-56-36_localhost.localdomain/events.out.tfevents.1704167836.localhost.localdomain.7750.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c46af7ab4caec9b65ea3128a85b97d39f958099a4d10fea8f3ab9b55ee10a58f
3
+ size 13451
runs/Jan02_11-56-36_localhost.localdomain/events.out.tfevents.1704288010.localhost.localdomain.7750.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba6be4521f3b1ca19e721f66fbea4d720c0acd92f5067d9a0ea3b8bb0aae25de
3
+ size 359
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "</s>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<unk>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<s>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ }
27
+ },
28
+ "additional_special_tokens": [],
29
+ "bos_token": "<s>",
30
+ "chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
31
+ "clean_up_tokenization_spaces": false,
32
+ "eos_token": "</s>",
33
+ "legacy": true,
34
+ "model_max_length": 2048,
35
+ "pad_token": "</s>",
36
+ "sp_model_kwargs": {},
37
+ "spaces_between_special_tokens": false,
38
+ "tokenizer_class": "LlamaTokenizer",
39
+ "unk_token": "<unk>",
40
+ "use_default_system_prompt": false
41
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.67,
3
+ "train_loss": 1.0095771827241953,
4
+ "train_runtime": 116282.0771,
5
+ "train_samples": 207865,
6
+ "train_samples_per_second": 1.788,
7
+ "train_steps_per_second": 0.003
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,366 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.6699636307656782,
5
+ "eval_steps": 500,
6
+ "global_step": 272,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.0,
13
+ "learning_rate": 1.999969914479768e-05,
14
+ "loss": 1.1295,
15
+ "step": 1
16
+ },
17
+ {
18
+ "epoch": 0.01,
19
+ "learning_rate": 1.9992479525042305e-05,
20
+ "loss": 1.1199,
21
+ "step": 5
22
+ },
23
+ {
24
+ "epoch": 0.02,
25
+ "learning_rate": 1.996992941167792e-05,
26
+ "loss": 1.1063,
27
+ "step": 10
28
+ },
29
+ {
30
+ "epoch": 0.04,
31
+ "learning_rate": 1.9932383577419432e-05,
32
+ "loss": 1.0914,
33
+ "step": 15
34
+ },
35
+ {
36
+ "epoch": 0.05,
37
+ "learning_rate": 1.9879898494768093e-05,
38
+ "loss": 1.094,
39
+ "step": 20
40
+ },
41
+ {
42
+ "epoch": 0.06,
43
+ "learning_rate": 1.9812553106273848e-05,
44
+ "loss": 1.0658,
45
+ "step": 25
46
+ },
47
+ {
48
+ "epoch": 0.07,
49
+ "learning_rate": 1.973044870579824e-05,
50
+ "loss": 1.0527,
51
+ "step": 30
52
+ },
53
+ {
54
+ "epoch": 0.09,
55
+ "learning_rate": 1.9633708786158803e-05,
56
+ "loss": 1.0503,
57
+ "step": 35
58
+ },
59
+ {
60
+ "epoch": 0.1,
61
+ "learning_rate": 1.9522478853384154e-05,
62
+ "loss": 1.0305,
63
+ "step": 40
64
+ },
65
+ {
66
+ "epoch": 0.11,
67
+ "learning_rate": 1.9396926207859085e-05,
68
+ "loss": 1.0268,
69
+ "step": 45
70
+ },
71
+ {
72
+ "epoch": 0.12,
73
+ "learning_rate": 1.9257239692688907e-05,
74
+ "loss": 1.0291,
75
+ "step": 50
76
+ },
77
+ {
78
+ "epoch": 0.14,
79
+ "learning_rate": 1.9103629409661468e-05,
80
+ "loss": 1.02,
81
+ "step": 55
82
+ },
83
+ {
84
+ "epoch": 0.15,
85
+ "learning_rate": 1.8936326403234125e-05,
86
+ "loss": 1.0127,
87
+ "step": 60
88
+ },
89
+ {
90
+ "epoch": 0.16,
91
+ "learning_rate": 1.8755582313020912e-05,
92
+ "loss": 1.0078,
93
+ "step": 65
94
+ },
95
+ {
96
+ "epoch": 0.17,
97
+ "learning_rate": 1.8561668995302668e-05,
98
+ "loss": 1.0003,
99
+ "step": 70
100
+ },
101
+ {
102
+ "epoch": 0.18,
103
+ "learning_rate": 1.8354878114129368e-05,
104
+ "loss": 1.0081,
105
+ "step": 75
106
+ },
107
+ {
108
+ "epoch": 0.2,
109
+ "learning_rate": 1.8135520702629677e-05,
110
+ "loss": 1.0157,
111
+ "step": 80
112
+ },
113
+ {
114
+ "epoch": 0.21,
115
+ "learning_rate": 1.7903926695187595e-05,
116
+ "loss": 1.0118,
117
+ "step": 85
118
+ },
119
+ {
120
+ "epoch": 0.22,
121
+ "learning_rate": 1.766044443118978e-05,
122
+ "loss": 1.0011,
123
+ "step": 90
124
+ },
125
+ {
126
+ "epoch": 0.23,
127
+ "learning_rate": 1.740544013109005e-05,
128
+ "loss": 0.9919,
129
+ "step": 95
130
+ },
131
+ {
132
+ "epoch": 0.25,
133
+ "learning_rate": 1.7139297345578992e-05,
134
+ "loss": 1.0025,
135
+ "step": 100
136
+ },
137
+ {
138
+ "epoch": 0.26,
139
+ "learning_rate": 1.686241637868734e-05,
140
+ "loss": 1.0187,
141
+ "step": 105
142
+ },
143
+ {
144
+ "epoch": 0.27,
145
+ "learning_rate": 1.657521368569064e-05,
146
+ "loss": 0.9959,
147
+ "step": 110
148
+ },
149
+ {
150
+ "epoch": 0.28,
151
+ "learning_rate": 1.627812124672099e-05,
152
+ "loss": 0.9936,
153
+ "step": 115
154
+ },
155
+ {
156
+ "epoch": 0.3,
157
+ "learning_rate": 1.5971585917027864e-05,
158
+ "loss": 0.9981,
159
+ "step": 120
160
+ },
161
+ {
162
+ "epoch": 0.31,
163
+ "learning_rate": 1.5656068754865388e-05,
164
+ "loss": 0.9954,
165
+ "step": 125
166
+ },
167
+ {
168
+ "epoch": 0.32,
169
+ "learning_rate": 1.5332044328016916e-05,
170
+ "loss": 1.0044,
171
+ "step": 130
172
+ },
173
+ {
174
+ "epoch": 0.33,
175
+ "learning_rate": 1.5000000000000002e-05,
176
+ "loss": 1.0032,
177
+ "step": 135
178
+ },
179
+ {
180
+ "epoch": 0.34,
181
+ "learning_rate": 1.4660435197025391e-05,
182
+ "loss": 0.9901,
183
+ "step": 140
184
+ },
185
+ {
186
+ "epoch": 0.36,
187
+ "learning_rate": 1.4313860656812537e-05,
188
+ "loss": 0.9965,
189
+ "step": 145
190
+ },
191
+ {
192
+ "epoch": 0.37,
193
+ "learning_rate": 1.396079766039157e-05,
194
+ "loss": 0.9915,
195
+ "step": 150
196
+ },
197
+ {
198
+ "epoch": 0.38,
199
+ "learning_rate": 1.3601777248047105e-05,
200
+ "loss": 0.9861,
201
+ "step": 155
202
+ },
203
+ {
204
+ "epoch": 0.39,
205
+ "learning_rate": 1.3237339420583213e-05,
206
+ "loss": 0.9757,
207
+ "step": 160
208
+ },
209
+ {
210
+ "epoch": 0.41,
211
+ "learning_rate": 1.2868032327110904e-05,
212
+ "loss": 0.9944,
213
+ "step": 165
214
+ },
215
+ {
216
+ "epoch": 0.42,
217
+ "learning_rate": 1.2494411440579814e-05,
218
+ "loss": 0.9963,
219
+ "step": 170
220
+ },
221
+ {
222
+ "epoch": 0.43,
223
+ "learning_rate": 1.211703872229411e-05,
224
+ "loss": 0.9817,
225
+ "step": 175
226
+ },
227
+ {
228
+ "epoch": 0.44,
229
+ "learning_rate": 1.1736481776669307e-05,
230
+ "loss": 0.9881,
231
+ "step": 180
232
+ },
233
+ {
234
+ "epoch": 0.46,
235
+ "learning_rate": 1.1353312997501313e-05,
236
+ "loss": 0.9965,
237
+ "step": 185
238
+ },
239
+ {
240
+ "epoch": 0.47,
241
+ "learning_rate": 1.0968108707031792e-05,
242
+ "loss": 0.9921,
243
+ "step": 190
244
+ },
245
+ {
246
+ "epoch": 0.48,
247
+ "learning_rate": 1.0581448289104759e-05,
248
+ "loss": 0.9934,
249
+ "step": 195
250
+ },
251
+ {
252
+ "epoch": 0.49,
253
+ "learning_rate": 1.0193913317718245e-05,
254
+ "loss": 0.9823,
255
+ "step": 200
256
+ },
257
+ {
258
+ "epoch": 0.5,
259
+ "learning_rate": 9.806086682281759e-06,
260
+ "loss": 0.988,
261
+ "step": 205
262
+ },
263
+ {
264
+ "epoch": 0.52,
265
+ "learning_rate": 9.418551710895243e-06,
266
+ "loss": 0.9866,
267
+ "step": 210
268
+ },
269
+ {
270
+ "epoch": 0.53,
271
+ "learning_rate": 9.03189129296821e-06,
272
+ "loss": 0.9983,
273
+ "step": 215
274
+ },
275
+ {
276
+ "epoch": 0.54,
277
+ "learning_rate": 8.646687002498692e-06,
278
+ "loss": 0.9866,
279
+ "step": 220
280
+ },
281
+ {
282
+ "epoch": 0.55,
283
+ "learning_rate": 8.263518223330698e-06,
284
+ "loss": 0.9918,
285
+ "step": 225
286
+ },
287
+ {
288
+ "epoch": 0.57,
289
+ "learning_rate": 7.882961277705897e-06,
290
+ "loss": 0.9901,
291
+ "step": 230
292
+ },
293
+ {
294
+ "epoch": 0.58,
295
+ "learning_rate": 7.505588559420188e-06,
296
+ "loss": 0.987,
297
+ "step": 235
298
+ },
299
+ {
300
+ "epoch": 0.59,
301
+ "learning_rate": 7.131967672889101e-06,
302
+ "loss": 0.9941,
303
+ "step": 240
304
+ },
305
+ {
306
+ "epoch": 0.6,
307
+ "learning_rate": 6.762660579416791e-06,
308
+ "loss": 0.9968,
309
+ "step": 245
310
+ },
311
+ {
312
+ "epoch": 0.62,
313
+ "learning_rate": 6.3982227519528986e-06,
314
+ "loss": 0.9842,
315
+ "step": 250
316
+ },
317
+ {
318
+ "epoch": 0.63,
319
+ "learning_rate": 6.039202339608432e-06,
320
+ "loss": 0.9788,
321
+ "step": 255
322
+ },
323
+ {
324
+ "epoch": 0.64,
325
+ "learning_rate": 5.686139343187468e-06,
326
+ "loss": 0.9929,
327
+ "step": 260
328
+ },
329
+ {
330
+ "epoch": 0.65,
331
+ "learning_rate": 5.339564802974615e-06,
332
+ "loss": 0.9834,
333
+ "step": 265
334
+ },
335
+ {
336
+ "epoch": 0.67,
337
+ "learning_rate": 5.000000000000003e-06,
338
+ "loss": 0.9866,
339
+ "step": 270
340
+ },
341
+ {
342
+ "epoch": 0.67,
343
+ "eval_loss": 0.9899678230285645,
344
+ "eval_runtime": 3893.4345,
345
+ "eval_samples_per_second": 5.936,
346
+ "eval_steps_per_second": 0.742,
347
+ "step": 272
348
+ },
349
+ {
350
+ "epoch": 0.67,
351
+ "step": 272,
352
+ "total_flos": 1.2275875027210994e+19,
353
+ "train_loss": 1.0095771827241953,
354
+ "train_runtime": 116282.0771,
355
+ "train_samples_per_second": 1.788,
356
+ "train_steps_per_second": 0.003
357
+ }
358
+ ],
359
+ "logging_steps": 5,
360
+ "max_steps": 405,
361
+ "num_train_epochs": 1,
362
+ "save_steps": 500,
363
+ "total_flos": 1.2275875027210994e+19,
364
+ "trial_name": null,
365
+ "trial_params": null
366
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3691f6d4d322af177530ef2be8abfc1bfbe51ed392cec8638d0e4543e3ebbf9d
3
+ size 4664