Khaliladib commited on
Commit
2d6a0cf
·
verified ·
1 Parent(s): 36f9235

Model save

Browse files
Files changed (4) hide show
  1. README.md +57 -0
  2. all_results.json +9 -0
  3. train_results.json +9 -0
  4. trainer_state.json +350 -0
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Meta-Llama/Meta-Llama-3.1-8B
3
+ library_name: transformers
4
+ model_name: llama-3-1-qlora-2
5
+ tags:
6
+ - generated_from_trainer
7
+ - trl
8
+ - sft
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for llama-3-1-qlora-2
13
+
14
+ This model is a fine-tuned version of [Meta-Llama/Meta-Llama-3.1-8B](https://huggingface.co/Meta-Llama/Meta-Llama-3.1-8B).
15
+ It has been trained using [TRL](https://github.com/huggingface/trl).
16
+
17
+ ## Quick start
18
+
19
+ ```python
20
+ from transformers import pipeline
21
+
22
+ question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
23
+ generator = pipeline("text-generation", model="Khaliladib/llama-3-1-qlora-2", device="cuda")
24
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
25
+ print(output["generated_text"])
26
+ ```
27
+
28
+ ## Training procedure
29
+
30
+
31
+
32
+ This model was trained with SFT.
33
+
34
+ ### Framework versions
35
+
36
+ - TRL: 0.12.1
37
+ - Transformers: 4.46.3
38
+ - Pytorch: 2.4.1
39
+ - Datasets: 3.1.0
40
+ - Tokenizers: 0.20.3
41
+
42
+ ## Citations
43
+
44
+
45
+
46
+ Cite TRL as:
47
+
48
+ ```bibtex
49
+ @misc{vonwerra2022trl,
50
+ title = {{TRL: Transformer Reinforcement Learning}},
51
+ author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallouédec},
52
+ year = 2020,
53
+ journal = {GitHub repository},
54
+ publisher = {GitHub},
55
+ howpublished = {\url{https://github.com/huggingface/trl}}
56
+ }
57
+ ```
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "total_flos": 1.7527093219609805e+17,
4
+ "train_loss": 0.7947500686387758,
5
+ "train_runtime": 3770.1678,
6
+ "train_samples": 15221,
7
+ "train_samples_per_second": 0.937,
8
+ "train_steps_per_second": 0.059
9
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "total_flos": 1.7527093219609805e+17,
4
+ "train_loss": 0.7947500686387758,
5
+ "train_runtime": 3770.1678,
6
+ "train_samples": 15221,
7
+ "train_samples_per_second": 0.937,
8
+ "train_steps_per_second": 0.059
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,350 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 3.0,
5
+ "eval_steps": 500,
6
+ "global_step": 222,
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.06756756756756757,
13
+ "grad_norm": 7.765780925750732,
14
+ "learning_rate": 0.0002,
15
+ "loss": 2.477,
16
+ "step": 5
17
+ },
18
+ {
19
+ "epoch": 0.13513513513513514,
20
+ "grad_norm": 2.2755630016326904,
21
+ "learning_rate": 0.0002,
22
+ "loss": 1.4771,
23
+ "step": 10
24
+ },
25
+ {
26
+ "epoch": 0.20270270270270271,
27
+ "grad_norm": 1.7242066860198975,
28
+ "learning_rate": 0.0002,
29
+ "loss": 1.2418,
30
+ "step": 15
31
+ },
32
+ {
33
+ "epoch": 0.2702702702702703,
34
+ "grad_norm": 95.61922454833984,
35
+ "learning_rate": 0.0002,
36
+ "loss": 1.1066,
37
+ "step": 20
38
+ },
39
+ {
40
+ "epoch": 0.33783783783783783,
41
+ "grad_norm": 1.10884690284729,
42
+ "learning_rate": 0.0002,
43
+ "loss": 1.0927,
44
+ "step": 25
45
+ },
46
+ {
47
+ "epoch": 0.40540540540540543,
48
+ "grad_norm": 0.9811855554580688,
49
+ "learning_rate": 0.0002,
50
+ "loss": 1.0442,
51
+ "step": 30
52
+ },
53
+ {
54
+ "epoch": 0.47297297297297297,
55
+ "grad_norm": 0.874477744102478,
56
+ "learning_rate": 0.0002,
57
+ "loss": 1.0362,
58
+ "step": 35
59
+ },
60
+ {
61
+ "epoch": 0.5405405405405406,
62
+ "grad_norm": 0.9105525612831116,
63
+ "learning_rate": 0.0002,
64
+ "loss": 1.0281,
65
+ "step": 40
66
+ },
67
+ {
68
+ "epoch": 0.6081081081081081,
69
+ "grad_norm": 0.7913025617599487,
70
+ "learning_rate": 0.0002,
71
+ "loss": 0.9934,
72
+ "step": 45
73
+ },
74
+ {
75
+ "epoch": 0.6756756756756757,
76
+ "grad_norm": 0.8067978024482727,
77
+ "learning_rate": 0.0002,
78
+ "loss": 0.9768,
79
+ "step": 50
80
+ },
81
+ {
82
+ "epoch": 0.7432432432432432,
83
+ "grad_norm": 0.8261044025421143,
84
+ "learning_rate": 0.0002,
85
+ "loss": 0.9662,
86
+ "step": 55
87
+ },
88
+ {
89
+ "epoch": 0.8108108108108109,
90
+ "grad_norm": 0.8108837604522705,
91
+ "learning_rate": 0.0002,
92
+ "loss": 0.9668,
93
+ "step": 60
94
+ },
95
+ {
96
+ "epoch": 0.8783783783783784,
97
+ "grad_norm": 0.7348493933677673,
98
+ "learning_rate": 0.0002,
99
+ "loss": 0.9431,
100
+ "step": 65
101
+ },
102
+ {
103
+ "epoch": 0.9459459459459459,
104
+ "grad_norm": 0.7668595314025879,
105
+ "learning_rate": 0.0002,
106
+ "loss": 0.9235,
107
+ "step": 70
108
+ },
109
+ {
110
+ "epoch": 1.0135135135135136,
111
+ "grad_norm": 0.7864215970039368,
112
+ "learning_rate": 0.0002,
113
+ "loss": 0.8857,
114
+ "step": 75
115
+ },
116
+ {
117
+ "epoch": 1.0810810810810811,
118
+ "grad_norm": 0.754004180431366,
119
+ "learning_rate": 0.0002,
120
+ "loss": 0.7299,
121
+ "step": 80
122
+ },
123
+ {
124
+ "epoch": 1.1486486486486487,
125
+ "grad_norm": 0.6962944865226746,
126
+ "learning_rate": 0.0002,
127
+ "loss": 0.7184,
128
+ "step": 85
129
+ },
130
+ {
131
+ "epoch": 1.2162162162162162,
132
+ "grad_norm": 0.969588041305542,
133
+ "learning_rate": 0.0002,
134
+ "loss": 0.7025,
135
+ "step": 90
136
+ },
137
+ {
138
+ "epoch": 1.2837837837837838,
139
+ "grad_norm": 0.6978746652603149,
140
+ "learning_rate": 0.0002,
141
+ "loss": 0.7014,
142
+ "step": 95
143
+ },
144
+ {
145
+ "epoch": 1.3513513513513513,
146
+ "grad_norm": 0.7287507653236389,
147
+ "learning_rate": 0.0002,
148
+ "loss": 0.6986,
149
+ "step": 100
150
+ },
151
+ {
152
+ "epoch": 1.4189189189189189,
153
+ "grad_norm": 0.7103177309036255,
154
+ "learning_rate": 0.0002,
155
+ "loss": 0.7347,
156
+ "step": 105
157
+ },
158
+ {
159
+ "epoch": 1.4864864864864864,
160
+ "grad_norm": 0.6908261775970459,
161
+ "learning_rate": 0.0002,
162
+ "loss": 0.7083,
163
+ "step": 110
164
+ },
165
+ {
166
+ "epoch": 1.554054054054054,
167
+ "grad_norm": 0.7442795634269714,
168
+ "learning_rate": 0.0002,
169
+ "loss": 0.6938,
170
+ "step": 115
171
+ },
172
+ {
173
+ "epoch": 1.6216216216216215,
174
+ "grad_norm": 0.6897634267807007,
175
+ "learning_rate": 0.0002,
176
+ "loss": 0.73,
177
+ "step": 120
178
+ },
179
+ {
180
+ "epoch": 1.689189189189189,
181
+ "grad_norm": 0.6686336994171143,
182
+ "learning_rate": 0.0002,
183
+ "loss": 0.7234,
184
+ "step": 125
185
+ },
186
+ {
187
+ "epoch": 1.7567567567567568,
188
+ "grad_norm": 0.6796671748161316,
189
+ "learning_rate": 0.0002,
190
+ "loss": 0.7173,
191
+ "step": 130
192
+ },
193
+ {
194
+ "epoch": 1.8243243243243243,
195
+ "grad_norm": 0.6994472146034241,
196
+ "learning_rate": 0.0002,
197
+ "loss": 0.6866,
198
+ "step": 135
199
+ },
200
+ {
201
+ "epoch": 1.8918918918918919,
202
+ "grad_norm": 0.6973745226860046,
203
+ "learning_rate": 0.0002,
204
+ "loss": 0.7225,
205
+ "step": 140
206
+ },
207
+ {
208
+ "epoch": 1.9594594594594594,
209
+ "grad_norm": 0.6692176461219788,
210
+ "learning_rate": 0.0002,
211
+ "loss": 0.7032,
212
+ "step": 145
213
+ },
214
+ {
215
+ "epoch": 2.027027027027027,
216
+ "grad_norm": 0.5986601114273071,
217
+ "learning_rate": 0.0002,
218
+ "loss": 0.6413,
219
+ "step": 150
220
+ },
221
+ {
222
+ "epoch": 2.0945945945945947,
223
+ "grad_norm": 0.6870444416999817,
224
+ "learning_rate": 0.0002,
225
+ "loss": 0.5096,
226
+ "step": 155
227
+ },
228
+ {
229
+ "epoch": 2.1621621621621623,
230
+ "grad_norm": 0.6344185471534729,
231
+ "learning_rate": 0.0002,
232
+ "loss": 0.5231,
233
+ "step": 160
234
+ },
235
+ {
236
+ "epoch": 2.22972972972973,
237
+ "grad_norm": 0.6490407586097717,
238
+ "learning_rate": 0.0002,
239
+ "loss": 0.5095,
240
+ "step": 165
241
+ },
242
+ {
243
+ "epoch": 2.2972972972972974,
244
+ "grad_norm": 0.7220724821090698,
245
+ "learning_rate": 0.0002,
246
+ "loss": 0.5243,
247
+ "step": 170
248
+ },
249
+ {
250
+ "epoch": 2.364864864864865,
251
+ "grad_norm": 0.6581041812896729,
252
+ "learning_rate": 0.0002,
253
+ "loss": 0.5064,
254
+ "step": 175
255
+ },
256
+ {
257
+ "epoch": 2.4324324324324325,
258
+ "grad_norm": 0.6284764409065247,
259
+ "learning_rate": 0.0002,
260
+ "loss": 0.5093,
261
+ "step": 180
262
+ },
263
+ {
264
+ "epoch": 2.5,
265
+ "grad_norm": 0.7284560203552246,
266
+ "learning_rate": 0.0002,
267
+ "loss": 0.5312,
268
+ "step": 185
269
+ },
270
+ {
271
+ "epoch": 2.5675675675675675,
272
+ "grad_norm": 0.723694920539856,
273
+ "learning_rate": 0.0002,
274
+ "loss": 0.5565,
275
+ "step": 190
276
+ },
277
+ {
278
+ "epoch": 2.635135135135135,
279
+ "grad_norm": 0.6478952169418335,
280
+ "learning_rate": 0.0002,
281
+ "loss": 0.5273,
282
+ "step": 195
283
+ },
284
+ {
285
+ "epoch": 2.7027027027027026,
286
+ "grad_norm": 0.6292466521263123,
287
+ "learning_rate": 0.0002,
288
+ "loss": 0.5167,
289
+ "step": 200
290
+ },
291
+ {
292
+ "epoch": 2.77027027027027,
293
+ "grad_norm": 0.6427861452102661,
294
+ "learning_rate": 0.0002,
295
+ "loss": 0.5256,
296
+ "step": 205
297
+ },
298
+ {
299
+ "epoch": 2.8378378378378377,
300
+ "grad_norm": 0.6279394626617432,
301
+ "learning_rate": 0.0002,
302
+ "loss": 0.5138,
303
+ "step": 210
304
+ },
305
+ {
306
+ "epoch": 2.9054054054054053,
307
+ "grad_norm": 0.6324751973152161,
308
+ "learning_rate": 0.0002,
309
+ "loss": 0.527,
310
+ "step": 215
311
+ },
312
+ {
313
+ "epoch": 2.972972972972973,
314
+ "grad_norm": 0.6362230181694031,
315
+ "learning_rate": 0.0002,
316
+ "loss": 0.524,
317
+ "step": 220
318
+ },
319
+ {
320
+ "epoch": 3.0,
321
+ "step": 222,
322
+ "total_flos": 1.7527093219609805e+17,
323
+ "train_loss": 0.7947500686387758,
324
+ "train_runtime": 3770.1678,
325
+ "train_samples_per_second": 0.937,
326
+ "train_steps_per_second": 0.059
327
+ }
328
+ ],
329
+ "logging_steps": 5,
330
+ "max_steps": 222,
331
+ "num_input_tokens_seen": 0,
332
+ "num_train_epochs": 3,
333
+ "save_steps": 500,
334
+ "stateful_callbacks": {
335
+ "TrainerControl": {
336
+ "args": {
337
+ "should_epoch_stop": false,
338
+ "should_evaluate": false,
339
+ "should_log": false,
340
+ "should_save": true,
341
+ "should_training_stop": true
342
+ },
343
+ "attributes": {}
344
+ }
345
+ },
346
+ "total_flos": 1.7527093219609805e+17,
347
+ "train_batch_size": 8,
348
+ "trial_name": null,
349
+ "trial_params": null
350
+ }