kykim0 commited on
Commit
d37ff9a
·
verified ·
1 Parent(s): 0a13847

Model save

Browse files
README.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ base_model: kykim0/Llama-2-7b-ultrachat200k-2e
4
+ tags:
5
+ - trl
6
+ - sft
7
+ - generated_from_trainer
8
+ model-index:
9
+ - name: Llama-2-7b-ultrachat-syn
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # Llama-2-7b-ultrachat-syn
17
+
18
+ This model is a fine-tuned version of [kykim0/Llama-2-7b-ultrachat200k-2e](https://huggingface.co/kykim0/Llama-2-7b-ultrachat200k-2e) on the None dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.0863
21
+
22
+ ## Model description
23
+
24
+ More information needed
25
+
26
+ ## Intended uses & limitations
27
+
28
+ More information needed
29
+
30
+ ## Training and evaluation data
31
+
32
+ More information needed
33
+
34
+ ## Training procedure
35
+
36
+ ### Training hyperparameters
37
+
38
+ The following hyperparameters were used during training:
39
+ - learning_rate: 2e-05
40
+ - train_batch_size: 1
41
+ - eval_batch_size: 4
42
+ - seed: 42
43
+ - distributed_type: multi-GPU
44
+ - num_devices: 4
45
+ - gradient_accumulation_steps: 32
46
+ - total_train_batch_size: 128
47
+ - total_eval_batch_size: 16
48
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
49
+ - lr_scheduler_type: cosine
50
+ - lr_scheduler_warmup_ratio: 0.1
51
+ - num_epochs: 2
52
+
53
+ ### Training results
54
+
55
+ | Training Loss | Epoch | Step | Validation Loss |
56
+ |:-------------:|:------:|:----:|:---------------:|
57
+ | 0.0994 | 0.9984 | 156 | 0.0907 |
58
+ | 0.0916 | 1.9968 | 312 | 0.0863 |
59
+
60
+
61
+ ### Framework versions
62
+
63
+ - Transformers 4.44.2
64
+ - Pytorch 2.1.2
65
+ - Datasets 2.14.6
66
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.9968,
3
+ "total_flos": 101696396132352.0,
4
+ "train_loss": 0.11124454142573552,
5
+ "train_runtime": 7872.3532,
6
+ "train_samples": 20000,
7
+ "train_samples_per_second": 5.081,
8
+ "train_steps_per_second": 0.04
9
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 1,
3
+ "do_sample": true,
4
+ "eos_token_id": 2,
5
+ "max_length": 4096,
6
+ "pad_token_id": 0,
7
+ "temperature": 0.6,
8
+ "top_p": 0.9,
9
+ "transformers_version": "4.44.2"
10
+ }
model-00001-of-00003.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:979dcd3bbae6176eed808bcb15495288597c811720fae1122cd4f4e5093a0fbb
3
  size 4938985352
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be99ac7eade85d96adf96ef4fa4c75697bc21f1ebee313c71607536035dfd4bf
3
  size 4938985352
model-00002-of-00003.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b73b886df008716c9ee3e617f40a7e2a4dcc7b0143bbf85ce252706afd0a87b3
3
  size 4947390880
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:724d489befa9d61b02af7f0c63b89b9b254957f82a726006630b0cb48285ce61
3
  size 4947390880
model-00003-of-00003.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c2bd044aa1348aa0db12a2c081d362c16a675ef52764cc7b5198dfc02556cfee
3
  size 3590488816
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f08ebb0ac1104c9c0d0f7de849185c96727a2339a375961c5ae044b20f2e2a5
3
  size 3590488816
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.9968,
3
+ "total_flos": 101696396132352.0,
4
+ "train_loss": 0.11124454142573552,
5
+ "train_runtime": 7872.3532,
6
+ "train_samples": 20000,
7
+ "train_samples_per_second": 5.081,
8
+ "train_steps_per_second": 0.04
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,275 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.9968,
5
+ "eval_steps": 500,
6
+ "global_step": 312,
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.064,
13
+ "grad_norm": 2.304359943215424,
14
+ "learning_rate": 6.25e-06,
15
+ "loss": 0.5192,
16
+ "step": 10
17
+ },
18
+ {
19
+ "epoch": 0.128,
20
+ "grad_norm": 3.367745922034929,
21
+ "learning_rate": 1.25e-05,
22
+ "loss": 0.1579,
23
+ "step": 20
24
+ },
25
+ {
26
+ "epoch": 0.192,
27
+ "grad_norm": 0.3120002563540976,
28
+ "learning_rate": 1.8750000000000002e-05,
29
+ "loss": 0.1235,
30
+ "step": 30
31
+ },
32
+ {
33
+ "epoch": 0.256,
34
+ "grad_norm": 0.34393102439669215,
35
+ "learning_rate": 1.9959742939952393e-05,
36
+ "loss": 0.1141,
37
+ "step": 40
38
+ },
39
+ {
40
+ "epoch": 0.32,
41
+ "grad_norm": 0.22846734971092744,
42
+ "learning_rate": 1.9796753984232357e-05,
43
+ "loss": 0.1154,
44
+ "step": 50
45
+ },
46
+ {
47
+ "epoch": 0.384,
48
+ "grad_norm": 0.22187942259321225,
49
+ "learning_rate": 1.9510565162951538e-05,
50
+ "loss": 0.1013,
51
+ "step": 60
52
+ },
53
+ {
54
+ "epoch": 0.448,
55
+ "grad_norm": 0.1937516417577725,
56
+ "learning_rate": 1.9104775466588162e-05,
57
+ "loss": 0.0975,
58
+ "step": 70
59
+ },
60
+ {
61
+ "epoch": 0.512,
62
+ "grad_norm": 0.18776075554849062,
63
+ "learning_rate": 1.8584487936018663e-05,
64
+ "loss": 0.1003,
65
+ "step": 80
66
+ },
67
+ {
68
+ "epoch": 0.576,
69
+ "grad_norm": 0.16374083531357114,
70
+ "learning_rate": 1.795624548881781e-05,
71
+ "loss": 0.1011,
72
+ "step": 90
73
+ },
74
+ {
75
+ "epoch": 0.64,
76
+ "grad_norm": 0.3083074608208316,
77
+ "learning_rate": 1.7227948638273918e-05,
78
+ "loss": 0.1019,
79
+ "step": 100
80
+ },
81
+ {
82
+ "epoch": 0.704,
83
+ "grad_norm": 0.14996630876365036,
84
+ "learning_rate": 1.6408756139850243e-05,
85
+ "loss": 0.096,
86
+ "step": 110
87
+ },
88
+ {
89
+ "epoch": 0.768,
90
+ "grad_norm": 0.10713257524125,
91
+ "learning_rate": 1.5508969814521026e-05,
92
+ "loss": 0.0918,
93
+ "step": 120
94
+ },
95
+ {
96
+ "epoch": 0.832,
97
+ "grad_norm": 0.16430611401390374,
98
+ "learning_rate": 1.4539904997395468e-05,
99
+ "loss": 0.0938,
100
+ "step": 130
101
+ },
102
+ {
103
+ "epoch": 0.896,
104
+ "grad_norm": 0.13018547178323414,
105
+ "learning_rate": 1.3513748240813429e-05,
106
+ "loss": 0.0974,
107
+ "step": 140
108
+ },
109
+ {
110
+ "epoch": 0.96,
111
+ "grad_norm": 0.249248518955414,
112
+ "learning_rate": 1.2443404061378941e-05,
113
+ "loss": 0.0994,
114
+ "step": 150
115
+ },
116
+ {
117
+ "epoch": 0.9984,
118
+ "eval_loss": 0.09072314202785492,
119
+ "eval_runtime": 40.5957,
120
+ "eval_samples_per_second": 24.633,
121
+ "eval_steps_per_second": 1.552,
122
+ "step": 156
123
+ },
124
+ {
125
+ "epoch": 1.024,
126
+ "grad_norm": 0.13728098111933706,
127
+ "learning_rate": 1.1342332658176556e-05,
128
+ "loss": 0.088,
129
+ "step": 160
130
+ },
131
+ {
132
+ "epoch": 1.088,
133
+ "grad_norm": 0.16275246072291852,
134
+ "learning_rate": 1.0224380642958052e-05,
135
+ "loss": 0.0947,
136
+ "step": 170
137
+ },
138
+ {
139
+ "epoch": 1.152,
140
+ "grad_norm": 0.15001498024621265,
141
+ "learning_rate": 9.103606910965666e-06,
142
+ "loss": 0.0939,
143
+ "step": 180
144
+ },
145
+ {
146
+ "epoch": 1.216,
147
+ "grad_norm": 0.13963224848380856,
148
+ "learning_rate": 7.994105842167274e-06,
149
+ "loss": 0.0876,
150
+ "step": 190
151
+ },
152
+ {
153
+ "epoch": 1.28,
154
+ "grad_norm": 0.137367259845856,
155
+ "learning_rate": 6.909830056250527e-06,
156
+ "loss": 0.0869,
157
+ "step": 200
158
+ },
159
+ {
160
+ "epoch": 1.3439999999999999,
161
+ "grad_norm": 0.11133790927990313,
162
+ "learning_rate": 5.864414950334796e-06,
163
+ "loss": 0.0907,
164
+ "step": 210
165
+ },
166
+ {
167
+ "epoch": 1.408,
168
+ "grad_norm": 0.09323151899431767,
169
+ "learning_rate": 4.87100722594094e-06,
170
+ "loss": 0.0953,
171
+ "step": 220
172
+ },
173
+ {
174
+ "epoch": 1.472,
175
+ "grad_norm": 0.15783290675271067,
176
+ "learning_rate": 3.942099561591802e-06,
177
+ "loss": 0.0911,
178
+ "step": 230
179
+ },
180
+ {
181
+ "epoch": 1.536,
182
+ "grad_norm": 0.13377672988354583,
183
+ "learning_rate": 3.089373510131354e-06,
184
+ "loss": 0.0867,
185
+ "step": 240
186
+ },
187
+ {
188
+ "epoch": 1.6,
189
+ "grad_norm": 0.1192199124767211,
190
+ "learning_rate": 2.323552596419889e-06,
191
+ "loss": 0.0871,
192
+ "step": 250
193
+ },
194
+ {
195
+ "epoch": 1.6640000000000001,
196
+ "grad_norm": 0.11020679845316991,
197
+ "learning_rate": 1.6542674627869738e-06,
198
+ "loss": 0.0896,
199
+ "step": 260
200
+ },
201
+ {
202
+ "epoch": 1.728,
203
+ "grad_norm": 0.09198353508041567,
204
+ "learning_rate": 1.0899347581163222e-06,
205
+ "loss": 0.0928,
206
+ "step": 270
207
+ },
208
+ {
209
+ "epoch": 1.792,
210
+ "grad_norm": 0.11654532424334699,
211
+ "learning_rate": 6.37651293602628e-07,
212
+ "loss": 0.0917,
213
+ "step": 280
214
+ },
215
+ {
216
+ "epoch": 1.8559999999999999,
217
+ "grad_norm": 0.10356962879053153,
218
+ "learning_rate": 3.0310479623313125e-07,
219
+ "loss": 0.0847,
220
+ "step": 290
221
+ },
222
+ {
223
+ "epoch": 1.92,
224
+ "grad_norm": 0.0958617515134905,
225
+ "learning_rate": 9.0502382320653e-08,
226
+ "loss": 0.0868,
227
+ "step": 300
228
+ },
229
+ {
230
+ "epoch": 1.984,
231
+ "grad_norm": 0.08860455805163223,
232
+ "learning_rate": 2.5176505749346937e-09,
233
+ "loss": 0.0916,
234
+ "step": 310
235
+ },
236
+ {
237
+ "epoch": 1.9968,
238
+ "eval_loss": 0.08628984540700912,
239
+ "eval_runtime": 40.3884,
240
+ "eval_samples_per_second": 24.76,
241
+ "eval_steps_per_second": 1.56,
242
+ "step": 312
243
+ },
244
+ {
245
+ "epoch": 1.9968,
246
+ "step": 312,
247
+ "total_flos": 101696396132352.0,
248
+ "train_loss": 0.11124454142573552,
249
+ "train_runtime": 7872.3532,
250
+ "train_samples_per_second": 5.081,
251
+ "train_steps_per_second": 0.04
252
+ }
253
+ ],
254
+ "logging_steps": 10,
255
+ "max_steps": 312,
256
+ "num_input_tokens_seen": 0,
257
+ "num_train_epochs": 2,
258
+ "save_steps": 100,
259
+ "stateful_callbacks": {
260
+ "TrainerControl": {
261
+ "args": {
262
+ "should_epoch_stop": false,
263
+ "should_evaluate": false,
264
+ "should_log": false,
265
+ "should_save": true,
266
+ "should_training_stop": true
267
+ },
268
+ "attributes": {}
269
+ }
270
+ },
271
+ "total_flos": 101696396132352.0,
272
+ "train_batch_size": 1,
273
+ "trial_name": null,
274
+ "trial_params": null
275
+ }