Jackie999 commited on
Commit
d20ed5d
·
verified ·
1 Parent(s): 8c5e834

Model save

Browse files
README.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: llama2
3
+ library_name: peft
4
+ tags:
5
+ - trl
6
+ - sft
7
+ - generated_from_trainer
8
+ base_model: meta-llama/Llama-2-7b-hf
9
+ model-index:
10
+ - name: llama-poison-20p
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
+ # llama-poison-20p
18
+
19
+ This model is a fine-tuned version of [meta-llama/Llama-2-7b-hf](https://huggingface.co/meta-llama/Llama-2-7b-hf) on the None dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.9404
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.0002
41
+ - train_batch_size: 16
42
+ - eval_batch_size: 8
43
+ - seed: 42
44
+ - distributed_type: multi-GPU
45
+ - num_devices: 4
46
+ - gradient_accumulation_steps: 2
47
+ - total_train_batch_size: 128
48
+ - total_eval_batch_size: 32
49
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
50
+ - lr_scheduler_type: cosine
51
+ - lr_scheduler_warmup_ratio: 0.1
52
+ - num_epochs: 1
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss |
57
+ |:-------------:|:-----:|:----:|:---------------:|
58
+ | 0.8033 | 1.0 | 169 | 0.9404 |
59
+
60
+
61
+ ### Framework versions
62
+
63
+ - PEFT 0.7.1
64
+ - Transformers 4.39.0.dev0
65
+ - Pytorch 2.1.2
66
+ - Datasets 2.14.6
67
+ - Tokenizers 0.15.2
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:180ccd777fe1e604b17a2c584ea5098f0c39272031f035dcd767e4f104dc4ea1
3
  size 30042168
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b640733f1764eb9035bef95c1a6d355e6e0a4314a92d4966dee27ed0ad004fd
3
  size 30042168
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "train_loss": 0.8601820793377577,
4
+ "train_runtime": 2796.0599,
5
+ "train_samples": 21594,
6
+ "train_samples_per_second": 7.723,
7
+ "train_steps_per_second": 0.06
8
+ }
runs/Apr25_06-43-56_COE-CS-sv003/events.out.tfevents.1714027909.COE-CS-sv003.460911.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7405f695647dc38e0dcb8c4438d8bff20f81f29f017d66c625bc8d31600c98dd
3
- size 9053
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5db1d72c813a30f3313e50ffe365bf6c9b0a1de665c3e13eadcee7bba23e135a
3
+ size 12401
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "train_loss": 0.8601820793377577,
4
+ "train_runtime": 2796.0599,
5
+ "train_samples": 21594,
6
+ "train_samples_per_second": 7.723,
7
+ "train_steps_per_second": 0.06
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,276 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 169,
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.01,
13
+ "grad_norm": 0.12490764688652063,
14
+ "learning_rate": 1.1764705882352942e-05,
15
+ "loss": 1.2494,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.03,
20
+ "grad_norm": 0.12932789702543238,
21
+ "learning_rate": 5.882352941176471e-05,
22
+ "loss": 1.1591,
23
+ "step": 5
24
+ },
25
+ {
26
+ "epoch": 0.06,
27
+ "grad_norm": 0.2718965568912038,
28
+ "learning_rate": 0.00011764705882352942,
29
+ "loss": 1.1605,
30
+ "step": 10
31
+ },
32
+ {
33
+ "epoch": 0.09,
34
+ "grad_norm": 0.2518855539602371,
35
+ "learning_rate": 0.00017647058823529413,
36
+ "loss": 1.0834,
37
+ "step": 15
38
+ },
39
+ {
40
+ "epoch": 0.12,
41
+ "grad_norm": 0.17256166916374802,
42
+ "learning_rate": 0.00019980782984658683,
43
+ "loss": 0.9527,
44
+ "step": 20
45
+ },
46
+ {
47
+ "epoch": 0.15,
48
+ "grad_norm": 0.09431721780907362,
49
+ "learning_rate": 0.00019863613034027224,
50
+ "loss": 0.8915,
51
+ "step": 25
52
+ },
53
+ {
54
+ "epoch": 0.18,
55
+ "grad_norm": 0.08313663792495306,
56
+ "learning_rate": 0.00019641197940012137,
57
+ "loss": 0.8763,
58
+ "step": 30
59
+ },
60
+ {
61
+ "epoch": 0.21,
62
+ "grad_norm": 0.07268002482717692,
63
+ "learning_rate": 0.0001931591088051279,
64
+ "loss": 0.8515,
65
+ "step": 35
66
+ },
67
+ {
68
+ "epoch": 0.24,
69
+ "grad_norm": 0.056334029219481385,
70
+ "learning_rate": 0.00018891222681391851,
71
+ "loss": 0.8846,
72
+ "step": 40
73
+ },
74
+ {
75
+ "epoch": 0.27,
76
+ "grad_norm": 0.053010039923392795,
77
+ "learning_rate": 0.00018371664782625287,
78
+ "loss": 0.824,
79
+ "step": 45
80
+ },
81
+ {
82
+ "epoch": 0.3,
83
+ "grad_norm": 0.06311052150514271,
84
+ "learning_rate": 0.00017762780887657574,
85
+ "loss": 0.8467,
86
+ "step": 50
87
+ },
88
+ {
89
+ "epoch": 0.33,
90
+ "grad_norm": 0.052720168379380886,
91
+ "learning_rate": 0.00017071067811865476,
92
+ "loss": 0.8415,
93
+ "step": 55
94
+ },
95
+ {
96
+ "epoch": 0.36,
97
+ "grad_norm": 0.0514842285015293,
98
+ "learning_rate": 0.0001630390616127955,
99
+ "loss": 0.847,
100
+ "step": 60
101
+ },
102
+ {
103
+ "epoch": 0.38,
104
+ "grad_norm": 0.056615247334937426,
105
+ "learning_rate": 0.00015469481581224272,
106
+ "loss": 0.8139,
107
+ "step": 65
108
+ },
109
+ {
110
+ "epoch": 0.41,
111
+ "grad_norm": 0.06252823165736797,
112
+ "learning_rate": 0.00014576697415156817,
113
+ "loss": 0.8035,
114
+ "step": 70
115
+ },
116
+ {
117
+ "epoch": 0.44,
118
+ "grad_norm": 0.061065977697835096,
119
+ "learning_rate": 0.00013635079705638298,
120
+ "loss": 0.811,
121
+ "step": 75
122
+ },
123
+ {
124
+ "epoch": 0.47,
125
+ "grad_norm": 0.06053125760354083,
126
+ "learning_rate": 0.00012654675551080724,
127
+ "loss": 0.8226,
128
+ "step": 80
129
+ },
130
+ {
131
+ "epoch": 0.5,
132
+ "grad_norm": 0.057945466858747775,
133
+ "learning_rate": 0.00011645945902807341,
134
+ "loss": 0.8216,
135
+ "step": 85
136
+ },
137
+ {
138
+ "epoch": 0.53,
139
+ "grad_norm": 0.06734962604050976,
140
+ "learning_rate": 0.00010619653946285947,
141
+ "loss": 0.8386,
142
+ "step": 90
143
+ },
144
+ {
145
+ "epoch": 0.56,
146
+ "grad_norm": 0.05627839541092806,
147
+ "learning_rate": 9.586750257511867e-05,
148
+ "loss": 0.828,
149
+ "step": 95
150
+ },
151
+ {
152
+ "epoch": 0.59,
153
+ "grad_norm": 0.05878743931696165,
154
+ "learning_rate": 8.558255959926533e-05,
155
+ "loss": 0.8064,
156
+ "step": 100
157
+ },
158
+ {
159
+ "epoch": 0.62,
160
+ "grad_norm": 0.060842643880049944,
161
+ "learning_rate": 7.54514512859201e-05,
162
+ "loss": 0.8102,
163
+ "step": 105
164
+ },
165
+ {
166
+ "epoch": 0.65,
167
+ "grad_norm": 0.06704442621606456,
168
+ "learning_rate": 6.558227696373616e-05,
169
+ "loss": 0.8151,
170
+ "step": 110
171
+ },
172
+ {
173
+ "epoch": 0.68,
174
+ "grad_norm": 0.05908837560907656,
175
+ "learning_rate": 5.608034111526298e-05,
176
+ "loss": 0.8329,
177
+ "step": 115
178
+ },
179
+ {
180
+ "epoch": 0.71,
181
+ "grad_norm": 0.06413385358152823,
182
+ "learning_rate": 4.704702977392914e-05,
183
+ "loss": 0.8606,
184
+ "step": 120
185
+ },
186
+ {
187
+ "epoch": 0.74,
188
+ "grad_norm": 0.06231544006982308,
189
+ "learning_rate": 3.857872873103322e-05,
190
+ "loss": 0.8201,
191
+ "step": 125
192
+ },
193
+ {
194
+ "epoch": 0.77,
195
+ "grad_norm": 0.06902916021207058,
196
+ "learning_rate": 3.076579509551703e-05,
197
+ "loss": 0.8052,
198
+ "step": 130
199
+ },
200
+ {
201
+ "epoch": 0.8,
202
+ "grad_norm": 0.06371459701601413,
203
+ "learning_rate": 2.3691593180019366e-05,
204
+ "loss": 0.8018,
205
+ "step": 135
206
+ },
207
+ {
208
+ "epoch": 0.83,
209
+ "grad_norm": 0.06235713103020174,
210
+ "learning_rate": 1.7431605000344432e-05,
211
+ "loss": 0.8176,
212
+ "step": 140
213
+ },
214
+ {
215
+ "epoch": 0.86,
216
+ "grad_norm": 0.06462632636270493,
217
+ "learning_rate": 1.2052624879351104e-05,
218
+ "loss": 0.8302,
219
+ "step": 145
220
+ },
221
+ {
222
+ "epoch": 0.89,
223
+ "grad_norm": 0.0656642379662612,
224
+ "learning_rate": 7.612046748871327e-06,
225
+ "loss": 0.8127,
226
+ "step": 150
227
+ },
228
+ {
229
+ "epoch": 0.92,
230
+ "grad_norm": 0.06119813299585411,
231
+ "learning_rate": 4.1572517541747294e-06,
232
+ "loss": 0.8283,
233
+ "step": 155
234
+ },
235
+ {
236
+ "epoch": 0.95,
237
+ "grad_norm": 0.054728585407772506,
238
+ "learning_rate": 1.725102695264058e-06,
239
+ "loss": 0.8237,
240
+ "step": 160
241
+ },
242
+ {
243
+ "epoch": 0.98,
244
+ "grad_norm": 0.05631693370076865,
245
+ "learning_rate": 3.415506993330153e-07,
246
+ "loss": 0.8033,
247
+ "step": 165
248
+ },
249
+ {
250
+ "epoch": 1.0,
251
+ "eval_loss": 0.9404083490371704,
252
+ "eval_runtime": 111.8447,
253
+ "eval_samples_per_second": 20.654,
254
+ "eval_steps_per_second": 0.653,
255
+ "step": 169
256
+ },
257
+ {
258
+ "epoch": 1.0,
259
+ "step": 169,
260
+ "total_flos": 2021871423848448.0,
261
+ "train_loss": 0.8601820793377577,
262
+ "train_runtime": 2796.0599,
263
+ "train_samples_per_second": 7.723,
264
+ "train_steps_per_second": 0.06
265
+ }
266
+ ],
267
+ "logging_steps": 5,
268
+ "max_steps": 169,
269
+ "num_input_tokens_seen": 0,
270
+ "num_train_epochs": 1,
271
+ "save_steps": 100,
272
+ "total_flos": 2021871423848448.0,
273
+ "train_batch_size": 16,
274
+ "trial_name": null,
275
+ "trial_params": null
276
+ }