chansung commited on
Commit
c2a4e7f
1 Parent(s): df9814d

Model save

Browse files
Files changed (4) hide show
  1. README.md +69 -0
  2. all_results.json +9 -0
  3. train_results.json +9 -0
  4. trainer_state.json +288 -0
README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ license: apache-2.0
4
+ base_model: mistralai/Mistral-7B-v0.3
5
+ tags:
6
+ - trl
7
+ - sft
8
+ - generated_from_trainer
9
+ datasets:
10
+ - generator
11
+ model-index:
12
+ - name: mistral7b-lora-closedqa-11-v1
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # mistral7b-lora-closedqa-11-v1
20
+
21
+ This model is a fine-tuned version of [mistralai/Mistral-7B-v0.3](https://huggingface.co/mistralai/Mistral-7B-v0.3) on the generator dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 1.8816
24
+
25
+ ## Model description
26
+
27
+ More information needed
28
+
29
+ ## Intended uses & limitations
30
+
31
+ More information needed
32
+
33
+ ## Training and evaluation data
34
+
35
+ More information needed
36
+
37
+ ## Training procedure
38
+
39
+ ### Training hyperparameters
40
+
41
+ The following hyperparameters were used during training:
42
+ - learning_rate: 0.0002
43
+ - train_batch_size: 14
44
+ - eval_batch_size: 14
45
+ - seed: 42
46
+ - distributed_type: multi-GPU
47
+ - num_devices: 8
48
+ - gradient_accumulation_steps: 2
49
+ - total_train_batch_size: 224
50
+ - total_eval_batch_size: 112
51
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
52
+ - lr_scheduler_type: cosine
53
+ - lr_scheduler_warmup_ratio: 0.1
54
+ - num_epochs: 1
55
+
56
+ ### Training results
57
+
58
+ | Training Loss | Epoch | Step | Validation Loss |
59
+ |:-------------:|:------:|:----:|:---------------:|
60
+ | 1.1885 | 0.9970 | 168 | 1.8816 |
61
+
62
+
63
+ ### Framework versions
64
+
65
+ - PEFT 0.13.2
66
+ - Transformers 4.46.2
67
+ - Pytorch 2.3.1+cu121
68
+ - Datasets 3.1.0
69
+ - Tokenizers 0.20.3
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.9970326409495549,
3
+ "total_flos": 8.227900459906499e+17,
4
+ "train_loss": 1.2795698436952772,
5
+ "train_runtime": 2845.3749,
6
+ "train_samples": 111440,
7
+ "train_samples_per_second": 13.249,
8
+ "train_steps_per_second": 0.059
9
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.9970326409495549,
3
+ "total_flos": 8.227900459906499e+17,
4
+ "train_loss": 1.2795698436952772,
5
+ "train_runtime": 2845.3749,
6
+ "train_samples": 111440,
7
+ "train_samples_per_second": 13.249,
8
+ "train_steps_per_second": 0.059
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,288 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.9970326409495549,
5
+ "eval_steps": 500,
6
+ "global_step": 168,
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.005934718100890208,
13
+ "grad_norm": 3.0403032302856445,
14
+ "learning_rate": 1.1764705882352942e-05,
15
+ "loss": 1.8006,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.02967359050445104,
20
+ "grad_norm": 3.026293992996216,
21
+ "learning_rate": 5.882352941176471e-05,
22
+ "loss": 1.8024,
23
+ "step": 5
24
+ },
25
+ {
26
+ "epoch": 0.05934718100890208,
27
+ "grad_norm": 2.2480087280273438,
28
+ "learning_rate": 0.00011764705882352942,
29
+ "loss": 1.7257,
30
+ "step": 10
31
+ },
32
+ {
33
+ "epoch": 0.08902077151335312,
34
+ "grad_norm": 2.212745428085327,
35
+ "learning_rate": 0.00017647058823529413,
36
+ "loss": 1.6182,
37
+ "step": 15
38
+ },
39
+ {
40
+ "epoch": 0.11869436201780416,
41
+ "grad_norm": 2.061483144760132,
42
+ "learning_rate": 0.00019980527694749952,
43
+ "loss": 1.4913,
44
+ "step": 20
45
+ },
46
+ {
47
+ "epoch": 0.14836795252225518,
48
+ "grad_norm": 1.8516631126403809,
49
+ "learning_rate": 0.00019861804788521493,
50
+ "loss": 1.3717,
51
+ "step": 25
52
+ },
53
+ {
54
+ "epoch": 0.17804154302670624,
55
+ "grad_norm": 1.0224816799163818,
56
+ "learning_rate": 0.00019636458959356316,
57
+ "loss": 1.3122,
58
+ "step": 30
59
+ },
60
+ {
61
+ "epoch": 0.20771513353115728,
62
+ "grad_norm": 0.6997563242912292,
63
+ "learning_rate": 0.00019306926579854821,
64
+ "loss": 1.2841,
65
+ "step": 35
66
+ },
67
+ {
68
+ "epoch": 0.23738872403560832,
69
+ "grad_norm": 0.7542662024497986,
70
+ "learning_rate": 0.00018876770456851877,
71
+ "loss": 1.2682,
72
+ "step": 40
73
+ },
74
+ {
75
+ "epoch": 0.26706231454005935,
76
+ "grad_norm": 0.7191608548164368,
77
+ "learning_rate": 0.00018350641311400812,
78
+ "loss": 1.2583,
79
+ "step": 45
80
+ },
81
+ {
82
+ "epoch": 0.29673590504451036,
83
+ "grad_norm": 0.8058047890663147,
84
+ "learning_rate": 0.0001773422749654988,
85
+ "loss": 1.2459,
86
+ "step": 50
87
+ },
88
+ {
89
+ "epoch": 0.3264094955489614,
90
+ "grad_norm": 0.7011504769325256,
91
+ "learning_rate": 0.00017034193496547902,
92
+ "loss": 1.247,
93
+ "step": 55
94
+ },
95
+ {
96
+ "epoch": 0.3560830860534125,
97
+ "grad_norm": 0.6850998997688293,
98
+ "learning_rate": 0.00016258107872407375,
99
+ "loss": 1.2311,
100
+ "step": 60
101
+ },
102
+ {
103
+ "epoch": 0.3857566765578635,
104
+ "grad_norm": 0.6663928627967834,
105
+ "learning_rate": 0.00015414361432856475,
106
+ "loss": 1.2248,
107
+ "step": 65
108
+ },
109
+ {
110
+ "epoch": 0.41543026706231456,
111
+ "grad_norm": 0.6247283816337585,
112
+ "learning_rate": 0.00014512076515391375,
113
+ "loss": 1.2249,
114
+ "step": 70
115
+ },
116
+ {
117
+ "epoch": 0.44510385756676557,
118
+ "grad_norm": 0.7638198733329773,
119
+ "learning_rate": 0.00013561008358255468,
120
+ "loss": 1.2306,
121
+ "step": 75
122
+ },
123
+ {
124
+ "epoch": 0.47477744807121663,
125
+ "grad_norm": 0.7044103145599365,
126
+ "learning_rate": 0.0001257143962968246,
127
+ "loss": 1.2097,
128
+ "step": 80
129
+ },
130
+ {
131
+ "epoch": 0.5044510385756676,
132
+ "grad_norm": 0.6669860482215881,
133
+ "learning_rate": 0.00011554069254722051,
134
+ "loss": 1.2206,
135
+ "step": 85
136
+ },
137
+ {
138
+ "epoch": 0.5341246290801187,
139
+ "grad_norm": 0.6756629347801208,
140
+ "learning_rate": 0.00010519896741619803,
141
+ "loss": 1.2232,
142
+ "step": 90
143
+ },
144
+ {
145
+ "epoch": 0.5637982195845698,
146
+ "grad_norm": 0.6518044471740723,
147
+ "learning_rate": 9.480103258380198e-05,
148
+ "loss": 1.2115,
149
+ "step": 95
150
+ },
151
+ {
152
+ "epoch": 0.5934718100890207,
153
+ "grad_norm": 0.7202388644218445,
154
+ "learning_rate": 8.445930745277953e-05,
155
+ "loss": 1.2217,
156
+ "step": 100
157
+ },
158
+ {
159
+ "epoch": 0.6231454005934718,
160
+ "grad_norm": 0.7034718990325928,
161
+ "learning_rate": 7.428560370317542e-05,
162
+ "loss": 1.2141,
163
+ "step": 105
164
+ },
165
+ {
166
+ "epoch": 0.6528189910979229,
167
+ "grad_norm": 0.7892000675201416,
168
+ "learning_rate": 6.43899164174453e-05,
169
+ "loss": 1.2007,
170
+ "step": 110
171
+ },
172
+ {
173
+ "epoch": 0.6824925816023739,
174
+ "grad_norm": 0.7199309468269348,
175
+ "learning_rate": 5.487923484608629e-05,
176
+ "loss": 1.2074,
177
+ "step": 115
178
+ },
179
+ {
180
+ "epoch": 0.712166172106825,
181
+ "grad_norm": 0.7223320603370667,
182
+ "learning_rate": 4.585638567143529e-05,
183
+ "loss": 1.2068,
184
+ "step": 120
185
+ },
186
+ {
187
+ "epoch": 0.7418397626112759,
188
+ "grad_norm": 0.6834920644760132,
189
+ "learning_rate": 3.741892127592625e-05,
190
+ "loss": 1.2158,
191
+ "step": 125
192
+ },
193
+ {
194
+ "epoch": 0.771513353115727,
195
+ "grad_norm": 0.6318499445915222,
196
+ "learning_rate": 2.9658065034520978e-05,
197
+ "loss": 1.2025,
198
+ "step": 130
199
+ },
200
+ {
201
+ "epoch": 0.8011869436201781,
202
+ "grad_norm": 0.7108297348022461,
203
+ "learning_rate": 2.265772503450122e-05,
204
+ "loss": 1.1998,
205
+ "step": 135
206
+ },
207
+ {
208
+ "epoch": 0.8308605341246291,
209
+ "grad_norm": 0.6781418919563293,
210
+ "learning_rate": 1.649358688599191e-05,
211
+ "loss": 1.2071,
212
+ "step": 140
213
+ },
214
+ {
215
+ "epoch": 0.8605341246290801,
216
+ "grad_norm": 0.6723542213439941,
217
+ "learning_rate": 1.1232295431481222e-05,
218
+ "loss": 1.2034,
219
+ "step": 145
220
+ },
221
+ {
222
+ "epoch": 0.8902077151335311,
223
+ "grad_norm": 0.694801926612854,
224
+ "learning_rate": 6.930734201451816e-06,
225
+ "loss": 1.2069,
226
+ "step": 150
227
+ },
228
+ {
229
+ "epoch": 0.9198813056379822,
230
+ "grad_norm": 0.7542781233787537,
231
+ "learning_rate": 3.6354104064368566e-06,
232
+ "loss": 1.2018,
233
+ "step": 155
234
+ },
235
+ {
236
+ "epoch": 0.9495548961424333,
237
+ "grad_norm": 0.6740858554840088,
238
+ "learning_rate": 1.3819521147851123e-06,
239
+ "loss": 1.2015,
240
+ "step": 160
241
+ },
242
+ {
243
+ "epoch": 0.9792284866468842,
244
+ "grad_norm": 0.6539055109024048,
245
+ "learning_rate": 1.947230525005006e-07,
246
+ "loss": 1.1885,
247
+ "step": 165
248
+ },
249
+ {
250
+ "epoch": 0.9970326409495549,
251
+ "eval_loss": 1.881588339805603,
252
+ "eval_runtime": 1.5002,
253
+ "eval_samples_per_second": 9.332,
254
+ "eval_steps_per_second": 0.667,
255
+ "step": 168
256
+ },
257
+ {
258
+ "epoch": 0.9970326409495549,
259
+ "step": 168,
260
+ "total_flos": 8.227900459906499e+17,
261
+ "train_loss": 1.2795698436952772,
262
+ "train_runtime": 2845.3749,
263
+ "train_samples_per_second": 13.249,
264
+ "train_steps_per_second": 0.059
265
+ }
266
+ ],
267
+ "logging_steps": 5,
268
+ "max_steps": 168,
269
+ "num_input_tokens_seen": 0,
270
+ "num_train_epochs": 1,
271
+ "save_steps": 100,
272
+ "stateful_callbacks": {
273
+ "TrainerControl": {
274
+ "args": {
275
+ "should_epoch_stop": false,
276
+ "should_evaluate": false,
277
+ "should_log": false,
278
+ "should_save": true,
279
+ "should_training_stop": true
280
+ },
281
+ "attributes": {}
282
+ }
283
+ },
284
+ "total_flos": 8.227900459906499e+17,
285
+ "train_batch_size": 14,
286
+ "trial_name": null,
287
+ "trial_params": null
288
+ }