GaetanMichelet commited on
Commit
89a10a1
1 Parent(s): 8979cf0

Model save

Browse files
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: mistralai/Mistral-7B-Instruct-v0.3
3
+ library_name: peft
4
+ license: apache-2.0
5
+ tags:
6
+ - trl
7
+ - sft
8
+ - generated_from_trainer
9
+ model-index:
10
+ - name: Mistral-7B_task-1_60-samples_config-2_auto
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # Mistral-7B_task-1_60-samples_config-2_auto
18
+
19
+ This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.3](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 1.6129
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 0.0001
41
+ - train_batch_size: 1
42
+ - eval_batch_size: 1
43
+ - seed: 42
44
+ - distributed_type: multi-GPU
45
+ - gradient_accumulation_steps: 16
46
+ - total_train_batch_size: 16
47
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
48
+ - lr_scheduler_type: cosine
49
+ - lr_scheduler_warmup_ratio: 0.1
50
+ - num_epochs: 50
51
+
52
+ ### Training results
53
+
54
+ | Training Loss | Epoch | Step | Validation Loss |
55
+ |:-------------:|:-------:|:----:|:---------------:|
56
+ | 1.0805 | 0.6957 | 2 | 1.0819 |
57
+ | 1.0214 | 1.7391 | 5 | 0.9261 |
58
+ | 0.7668 | 2.7826 | 8 | 0.8322 |
59
+ | 0.7312 | 3.8261 | 11 | 0.7920 |
60
+ | 0.5041 | 4.8696 | 14 | 0.7918 |
61
+ | 0.4287 | 5.9130 | 17 | 0.8765 |
62
+ | 0.2628 | 6.9565 | 20 | 0.9647 |
63
+ | 0.1707 | 8.0 | 23 | 1.1113 |
64
+ | 0.1233 | 8.6957 | 25 | 1.2851 |
65
+ | 0.0474 | 9.7391 | 28 | 1.4284 |
66
+ | 0.0448 | 10.7826 | 31 | 1.4882 |
67
+ | 0.0198 | 11.8261 | 34 | 1.6129 |
68
+
69
+
70
+ ### Framework versions
71
+
72
+ - PEFT 0.12.0
73
+ - Transformers 4.44.0
74
+ - Pytorch 2.1.2+cu121
75
+ - Datasets 2.20.0
76
+ - Tokenizers 0.19.1
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:af8b44caa85bca78023581be3e63c83bb74fa74cd9cbf540dfcea4ad53c776ca
3
  size 167832240
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:167625a6f19664378f5627a5184b3c4ec71e5248e185e3d5f5d7d3c7a61b18d4
3
  size 167832240
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 11.826086956521738,
3
+ "total_flos": 8954933126627328.0,
4
+ "train_loss": 0.4336299673544572,
5
+ "train_runtime": 672.6435,
6
+ "train_samples": 46,
7
+ "train_samples_per_second": 3.419,
8
+ "train_steps_per_second": 0.149
9
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 11.826086956521738,
3
+ "total_flos": 8954933126627328.0,
4
+ "train_loss": 0.4336299673544572,
5
+ "train_runtime": 672.6435,
6
+ "train_samples": 46,
7
+ "train_samples_per_second": 3.419,
8
+ "train_steps_per_second": 0.149
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,273 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.7917657494544983,
3
+ "best_model_checkpoint": "data/Mistral-7B_task-1_60-samples_config-2_auto/checkpoint-14",
4
+ "epoch": 11.826086956521738,
5
+ "eval_steps": 500,
6
+ "global_step": 34,
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.34782608695652173,
13
+ "grad_norm": 2.5684735774993896,
14
+ "learning_rate": 1e-05,
15
+ "loss": 1.1404,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.6956521739130435,
20
+ "grad_norm": 2.6617414951324463,
21
+ "learning_rate": 2e-05,
22
+ "loss": 1.0805,
23
+ "step": 2
24
+ },
25
+ {
26
+ "epoch": 0.6956521739130435,
27
+ "eval_loss": 1.081933617591858,
28
+ "eval_runtime": 5.1346,
29
+ "eval_samples_per_second": 2.337,
30
+ "eval_steps_per_second": 2.337,
31
+ "step": 2
32
+ },
33
+ {
34
+ "epoch": 1.391304347826087,
35
+ "grad_norm": 2.1907503604888916,
36
+ "learning_rate": 4e-05,
37
+ "loss": 1.0214,
38
+ "step": 4
39
+ },
40
+ {
41
+ "epoch": 1.7391304347826086,
42
+ "eval_loss": 0.9261219501495361,
43
+ "eval_runtime": 5.1308,
44
+ "eval_samples_per_second": 2.339,
45
+ "eval_steps_per_second": 2.339,
46
+ "step": 5
47
+ },
48
+ {
49
+ "epoch": 2.0869565217391304,
50
+ "grad_norm": 1.6325212717056274,
51
+ "learning_rate": 6e-05,
52
+ "loss": 0.9786,
53
+ "step": 6
54
+ },
55
+ {
56
+ "epoch": 2.782608695652174,
57
+ "grad_norm": 1.114859938621521,
58
+ "learning_rate": 8e-05,
59
+ "loss": 0.7668,
60
+ "step": 8
61
+ },
62
+ {
63
+ "epoch": 2.782608695652174,
64
+ "eval_loss": 0.8321869373321533,
65
+ "eval_runtime": 5.134,
66
+ "eval_samples_per_second": 2.337,
67
+ "eval_steps_per_second": 2.337,
68
+ "step": 8
69
+ },
70
+ {
71
+ "epoch": 3.4782608695652173,
72
+ "grad_norm": 1.306771993637085,
73
+ "learning_rate": 0.0001,
74
+ "loss": 0.7312,
75
+ "step": 10
76
+ },
77
+ {
78
+ "epoch": 3.8260869565217392,
79
+ "eval_loss": 0.7920494079589844,
80
+ "eval_runtime": 5.1311,
81
+ "eval_samples_per_second": 2.339,
82
+ "eval_steps_per_second": 2.339,
83
+ "step": 11
84
+ },
85
+ {
86
+ "epoch": 4.173913043478261,
87
+ "grad_norm": 1.3007943630218506,
88
+ "learning_rate": 9.987820251299122e-05,
89
+ "loss": 0.6821,
90
+ "step": 12
91
+ },
92
+ {
93
+ "epoch": 4.869565217391305,
94
+ "grad_norm": 0.8811099529266357,
95
+ "learning_rate": 9.951340343707852e-05,
96
+ "loss": 0.5041,
97
+ "step": 14
98
+ },
99
+ {
100
+ "epoch": 4.869565217391305,
101
+ "eval_loss": 0.7917657494544983,
102
+ "eval_runtime": 5.1316,
103
+ "eval_samples_per_second": 2.338,
104
+ "eval_steps_per_second": 2.338,
105
+ "step": 14
106
+ },
107
+ {
108
+ "epoch": 5.565217391304348,
109
+ "grad_norm": 1.021318793296814,
110
+ "learning_rate": 9.890738003669029e-05,
111
+ "loss": 0.4287,
112
+ "step": 16
113
+ },
114
+ {
115
+ "epoch": 5.913043478260869,
116
+ "eval_loss": 0.8764511942863464,
117
+ "eval_runtime": 5.1363,
118
+ "eval_samples_per_second": 2.336,
119
+ "eval_steps_per_second": 2.336,
120
+ "step": 17
121
+ },
122
+ {
123
+ "epoch": 6.260869565217392,
124
+ "grad_norm": 1.0358223915100098,
125
+ "learning_rate": 9.806308479691595e-05,
126
+ "loss": 0.3512,
127
+ "step": 18
128
+ },
129
+ {
130
+ "epoch": 6.956521739130435,
131
+ "grad_norm": 1.0665713548660278,
132
+ "learning_rate": 9.698463103929542e-05,
133
+ "loss": 0.2628,
134
+ "step": 20
135
+ },
136
+ {
137
+ "epoch": 6.956521739130435,
138
+ "eval_loss": 0.9647076725959778,
139
+ "eval_runtime": 5.1272,
140
+ "eval_samples_per_second": 2.34,
141
+ "eval_steps_per_second": 2.34,
142
+ "step": 20
143
+ },
144
+ {
145
+ "epoch": 7.6521739130434785,
146
+ "grad_norm": 0.9864840507507324,
147
+ "learning_rate": 9.567727288213005e-05,
148
+ "loss": 0.1707,
149
+ "step": 22
150
+ },
151
+ {
152
+ "epoch": 8.0,
153
+ "eval_loss": 1.1113288402557373,
154
+ "eval_runtime": 5.1295,
155
+ "eval_samples_per_second": 2.339,
156
+ "eval_steps_per_second": 2.339,
157
+ "step": 23
158
+ },
159
+ {
160
+ "epoch": 8.347826086956522,
161
+ "grad_norm": 0.8879310488700867,
162
+ "learning_rate": 9.414737964294636e-05,
163
+ "loss": 0.1233,
164
+ "step": 24
165
+ },
166
+ {
167
+ "epoch": 8.695652173913043,
168
+ "eval_loss": 1.2850966453552246,
169
+ "eval_runtime": 5.1291,
170
+ "eval_samples_per_second": 2.34,
171
+ "eval_steps_per_second": 2.34,
172
+ "step": 25
173
+ },
174
+ {
175
+ "epoch": 9.043478260869565,
176
+ "grad_norm": 1.289452075958252,
177
+ "learning_rate": 9.24024048078213e-05,
178
+ "loss": 0.0896,
179
+ "step": 26
180
+ },
181
+ {
182
+ "epoch": 9.73913043478261,
183
+ "grad_norm": 0.7701128125190735,
184
+ "learning_rate": 9.045084971874738e-05,
185
+ "loss": 0.0474,
186
+ "step": 28
187
+ },
188
+ {
189
+ "epoch": 9.73913043478261,
190
+ "eval_loss": 1.4283571243286133,
191
+ "eval_runtime": 5.1313,
192
+ "eval_samples_per_second": 2.339,
193
+ "eval_steps_per_second": 2.339,
194
+ "step": 28
195
+ },
196
+ {
197
+ "epoch": 10.434782608695652,
198
+ "grad_norm": 0.7709472179412842,
199
+ "learning_rate": 8.83022221559489e-05,
200
+ "loss": 0.0448,
201
+ "step": 30
202
+ },
203
+ {
204
+ "epoch": 10.782608695652174,
205
+ "eval_loss": 1.488186240196228,
206
+ "eval_runtime": 5.1301,
207
+ "eval_samples_per_second": 2.339,
208
+ "eval_steps_per_second": 2.339,
209
+ "step": 31
210
+ },
211
+ {
212
+ "epoch": 11.130434782608695,
213
+ "grad_norm": 0.7411565184593201,
214
+ "learning_rate": 8.596699001693255e-05,
215
+ "loss": 0.0332,
216
+ "step": 32
217
+ },
218
+ {
219
+ "epoch": 11.826086956521738,
220
+ "grad_norm": 0.4506477415561676,
221
+ "learning_rate": 8.345653031794292e-05,
222
+ "loss": 0.0198,
223
+ "step": 34
224
+ },
225
+ {
226
+ "epoch": 11.826086956521738,
227
+ "eval_loss": 1.6128920316696167,
228
+ "eval_runtime": 5.1363,
229
+ "eval_samples_per_second": 2.336,
230
+ "eval_steps_per_second": 2.336,
231
+ "step": 34
232
+ },
233
+ {
234
+ "epoch": 11.826086956521738,
235
+ "step": 34,
236
+ "total_flos": 8954933126627328.0,
237
+ "train_loss": 0.4336299673544572,
238
+ "train_runtime": 672.6435,
239
+ "train_samples_per_second": 3.419,
240
+ "train_steps_per_second": 0.149
241
+ }
242
+ ],
243
+ "logging_steps": 2,
244
+ "max_steps": 100,
245
+ "num_input_tokens_seen": 0,
246
+ "num_train_epochs": 50,
247
+ "save_steps": 25,
248
+ "stateful_callbacks": {
249
+ "EarlyStoppingCallback": {
250
+ "args": {
251
+ "early_stopping_patience": 7,
252
+ "early_stopping_threshold": 0.0
253
+ },
254
+ "attributes": {
255
+ "early_stopping_patience_counter": 0
256
+ }
257
+ },
258
+ "TrainerControl": {
259
+ "args": {
260
+ "should_epoch_stop": false,
261
+ "should_evaluate": false,
262
+ "should_log": false,
263
+ "should_save": true,
264
+ "should_training_stop": true
265
+ },
266
+ "attributes": {}
267
+ }
268
+ },
269
+ "total_flos": 8954933126627328.0,
270
+ "train_batch_size": 1,
271
+ "trial_name": null,
272
+ "trial_params": null
273
+ }