sovitrath commited on
Commit
cc51c7e
1 Parent(s): 600d18e

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - autotrain
4
+ - text-generation
5
+ library_name: transformers
6
+ widget:
7
+ - messages:
8
+ - role: user
9
+ content: What is your favorite condiment?
10
+ license: other
11
+ ---
12
+
13
+ # Model Trained Using AutoTrain
14
+
15
+ This model was trained using AutoTrain. For more information, please visit [AutoTrain](https://hf.co/docs/autotrain).
16
+
17
+ # Usage
18
+
19
+ ```python
20
+
21
+ from transformers import AutoModelForCausalLM, AutoTokenizer
22
+
23
+ model_path = "PATH_TO_THIS_REPO"
24
+
25
+ tokenizer = AutoTokenizer.from_pretrained(model_path)
26
+ model = AutoModelForCausalLM.from_pretrained(
27
+ model_path,
28
+ device_map="auto",
29
+ torch_dtype='auto'
30
+ ).eval()
31
+
32
+ # Prompt content: "hi"
33
+ messages = [
34
+ {"role": "user", "content": "hi"}
35
+ ]
36
+
37
+ input_ids = tokenizer.apply_chat_template(conversation=messages, tokenize=True, add_generation_prompt=True, return_tensors='pt')
38
+ output_ids = model.generate(input_ids.to('cuda'))
39
+ response = tokenizer.decode(output_ids[0][input_ids.shape[1]:], skip_special_tokens=True)
40
+
41
+ # Model response: "Hello! How can I assist you today?"
42
+ print(response)
43
+ ```
checkpoint-2710/config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "openai-community/gpt2-large",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPT2LMHeadModel"
6
+ ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 50256,
9
+ "embd_pdrop": 0.1,
10
+ "eos_token_id": 50256,
11
+ "initializer_range": 0.02,
12
+ "layer_norm_epsilon": 1e-05,
13
+ "model_type": "gpt2",
14
+ "n_ctx": 1024,
15
+ "n_embd": 1280,
16
+ "n_head": 20,
17
+ "n_inner": null,
18
+ "n_layer": 36,
19
+ "n_positions": 1024,
20
+ "reorder_and_upcast_attn": false,
21
+ "resid_pdrop": 0.1,
22
+ "scale_attn_by_inverse_layer_idx": false,
23
+ "scale_attn_weights": true,
24
+ "summary_activation": null,
25
+ "summary_first_dropout": 0.1,
26
+ "summary_proj_to_labels": true,
27
+ "summary_type": "cls_index",
28
+ "summary_use_proj": true,
29
+ "task_specific_params": {
30
+ "text-generation": {
31
+ "do_sample": true,
32
+ "max_length": 50
33
+ }
34
+ },
35
+ "torch_dtype": "float32",
36
+ "transformers_version": "4.39.0",
37
+ "use_cache": false,
38
+ "vocab_size": 50257
39
+ }
checkpoint-2710/generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 50256,
4
+ "eos_token_id": 50256,
5
+ "transformers_version": "4.39.0"
6
+ }
checkpoint-2710/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-2710/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a15ef31765c9e9b172ebcb64d85327c9d4484629d79ea9ff6cf3b7483a8003d
3
+ size 3096165928
checkpoint-2710/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e8875ba32cbc2f0b30a4d320eed065f6a0ea8e3514e66371c5aa021de354919
3
+ size 6192613990
checkpoint-2710/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45793735436f7e4a8a81f44f5ce0c8a4cc9dde9192db3ab6853a12db0f4332e5
3
+ size 14244
checkpoint-2710/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53209d3b04f2f87654e5fe11597929f698f1fdb8df2f753da6225f7ac79a2eb4
3
+ size 1064
checkpoint-2710/special_tokens_map.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<|endoftext|>",
3
+ "eos_token": "<|endoftext|>",
4
+ "pad_token": "<|endoftext|>",
5
+ "unk_token": "<|endoftext|>"
6
+ }
checkpoint-2710/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-2710/tokenizer_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "50256": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ }
12
+ },
13
+ "bos_token": "<|endoftext|>",
14
+ "chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
15
+ "clean_up_tokenization_spaces": true,
16
+ "eos_token": "<|endoftext|>",
17
+ "model_max_length": 1024,
18
+ "pad_token": "<|endoftext|>",
19
+ "tokenizer_class": "GPT2Tokenizer",
20
+ "unk_token": "<|endoftext|>"
21
+ }
checkpoint-2710/trainer_state.json ADDED
@@ -0,0 +1,785 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 1.8915482759475708,
3
+ "best_model_checkpoint": "gpt2-large-open-assistant-guanaco/checkpoint-2710",
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 2710,
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": 2.1778407096862793,
14
+ "learning_rate": 1.845018450184502e-05,
15
+ "loss": 2.4702,
16
+ "step": 25
17
+ },
18
+ {
19
+ "epoch": 0.02,
20
+ "grad_norm": 1.888936996459961,
21
+ "learning_rate": 3.690036900369004e-05,
22
+ "loss": 2.379,
23
+ "step": 50
24
+ },
25
+ {
26
+ "epoch": 0.03,
27
+ "grad_norm": 1.8794102668762207,
28
+ "learning_rate": 5.535055350553506e-05,
29
+ "loss": 2.4576,
30
+ "step": 75
31
+ },
32
+ {
33
+ "epoch": 0.04,
34
+ "grad_norm": 1.9237180948257446,
35
+ "learning_rate": 7.380073800738008e-05,
36
+ "loss": 2.431,
37
+ "step": 100
38
+ },
39
+ {
40
+ "epoch": 0.05,
41
+ "grad_norm": 2.3720157146453857,
42
+ "learning_rate": 9.22509225092251e-05,
43
+ "loss": 2.5555,
44
+ "step": 125
45
+ },
46
+ {
47
+ "epoch": 0.06,
48
+ "grad_norm": 1.955418348312378,
49
+ "learning_rate": 0.00011070110701107013,
50
+ "loss": 2.405,
51
+ "step": 150
52
+ },
53
+ {
54
+ "epoch": 0.06,
55
+ "grad_norm": 2.923417091369629,
56
+ "learning_rate": 0.00012915129151291514,
57
+ "loss": 2.4429,
58
+ "step": 175
59
+ },
60
+ {
61
+ "epoch": 0.07,
62
+ "grad_norm": 1.6975607872009277,
63
+ "learning_rate": 0.00014760147601476016,
64
+ "loss": 2.2604,
65
+ "step": 200
66
+ },
67
+ {
68
+ "epoch": 0.08,
69
+ "grad_norm": 6.038263320922852,
70
+ "learning_rate": 0.00016605166051660516,
71
+ "loss": 2.5249,
72
+ "step": 225
73
+ },
74
+ {
75
+ "epoch": 0.09,
76
+ "grad_norm": 1.835350513458252,
77
+ "learning_rate": 0.0001845018450184502,
78
+ "loss": 2.7203,
79
+ "step": 250
80
+ },
81
+ {
82
+ "epoch": 0.1,
83
+ "grad_norm": 1.5644915103912354,
84
+ "learning_rate": 0.0001996719967199672,
85
+ "loss": 2.6386,
86
+ "step": 275
87
+ },
88
+ {
89
+ "epoch": 0.11,
90
+ "grad_norm": 2.2700071334838867,
91
+ "learning_rate": 0.0001976219762197622,
92
+ "loss": 2.4893,
93
+ "step": 300
94
+ },
95
+ {
96
+ "epoch": 0.12,
97
+ "grad_norm": 2.0536715984344482,
98
+ "learning_rate": 0.0001955719557195572,
99
+ "loss": 2.5939,
100
+ "step": 325
101
+ },
102
+ {
103
+ "epoch": 0.13,
104
+ "grad_norm": 1.561672329902649,
105
+ "learning_rate": 0.0001935219352193522,
106
+ "loss": 2.7238,
107
+ "step": 350
108
+ },
109
+ {
110
+ "epoch": 0.14,
111
+ "grad_norm": 1.4834322929382324,
112
+ "learning_rate": 0.0001914719147191472,
113
+ "loss": 2.4672,
114
+ "step": 375
115
+ },
116
+ {
117
+ "epoch": 0.15,
118
+ "grad_norm": 1.6992969512939453,
119
+ "learning_rate": 0.00018942189421894222,
120
+ "loss": 2.5833,
121
+ "step": 400
122
+ },
123
+ {
124
+ "epoch": 0.16,
125
+ "grad_norm": 1.595070719718933,
126
+ "learning_rate": 0.00018737187371873718,
127
+ "loss": 2.5067,
128
+ "step": 425
129
+ },
130
+ {
131
+ "epoch": 0.17,
132
+ "grad_norm": 2.07468318939209,
133
+ "learning_rate": 0.00018532185321853219,
134
+ "loss": 2.483,
135
+ "step": 450
136
+ },
137
+ {
138
+ "epoch": 0.18,
139
+ "grad_norm": 2.283381462097168,
140
+ "learning_rate": 0.0001832718327183272,
141
+ "loss": 2.6612,
142
+ "step": 475
143
+ },
144
+ {
145
+ "epoch": 0.18,
146
+ "grad_norm": 1.5583351850509644,
147
+ "learning_rate": 0.0001812218122181222,
148
+ "loss": 2.3414,
149
+ "step": 500
150
+ },
151
+ {
152
+ "epoch": 0.19,
153
+ "grad_norm": 1.2439337968826294,
154
+ "learning_rate": 0.0001791717917179172,
155
+ "loss": 2.4414,
156
+ "step": 525
157
+ },
158
+ {
159
+ "epoch": 0.2,
160
+ "grad_norm": 1.4025323390960693,
161
+ "learning_rate": 0.0001771217712177122,
162
+ "loss": 2.3685,
163
+ "step": 550
164
+ },
165
+ {
166
+ "epoch": 0.21,
167
+ "grad_norm": 1.5767055749893188,
168
+ "learning_rate": 0.00017507175071750718,
169
+ "loss": 2.3423,
170
+ "step": 575
171
+ },
172
+ {
173
+ "epoch": 0.22,
174
+ "grad_norm": 1.2068151235580444,
175
+ "learning_rate": 0.0001730217302173022,
176
+ "loss": 2.465,
177
+ "step": 600
178
+ },
179
+ {
180
+ "epoch": 0.23,
181
+ "grad_norm": 2.0946199893951416,
182
+ "learning_rate": 0.00017097170971709717,
183
+ "loss": 2.288,
184
+ "step": 625
185
+ },
186
+ {
187
+ "epoch": 0.24,
188
+ "grad_norm": 1.315215826034546,
189
+ "learning_rate": 0.00016892168921689218,
190
+ "loss": 2.4756,
191
+ "step": 650
192
+ },
193
+ {
194
+ "epoch": 0.25,
195
+ "grad_norm": 1.3037053346633911,
196
+ "learning_rate": 0.0001668716687166872,
197
+ "loss": 2.6019,
198
+ "step": 675
199
+ },
200
+ {
201
+ "epoch": 0.26,
202
+ "grad_norm": 1.2501168251037598,
203
+ "learning_rate": 0.00016482164821648217,
204
+ "loss": 2.3108,
205
+ "step": 700
206
+ },
207
+ {
208
+ "epoch": 0.27,
209
+ "grad_norm": 1.4587308168411255,
210
+ "learning_rate": 0.00016277162771627715,
211
+ "loss": 2.4512,
212
+ "step": 725
213
+ },
214
+ {
215
+ "epoch": 0.28,
216
+ "grad_norm": 1.4319279193878174,
217
+ "learning_rate": 0.00016072160721607216,
218
+ "loss": 2.5111,
219
+ "step": 750
220
+ },
221
+ {
222
+ "epoch": 0.29,
223
+ "grad_norm": 1.6068148612976074,
224
+ "learning_rate": 0.00015867158671586717,
225
+ "loss": 2.4429,
226
+ "step": 775
227
+ },
228
+ {
229
+ "epoch": 0.3,
230
+ "grad_norm": 1.2128015756607056,
231
+ "learning_rate": 0.00015662156621566218,
232
+ "loss": 2.4457,
233
+ "step": 800
234
+ },
235
+ {
236
+ "epoch": 0.3,
237
+ "grad_norm": 1.2929550409317017,
238
+ "learning_rate": 0.00015457154571545717,
239
+ "loss": 2.2653,
240
+ "step": 825
241
+ },
242
+ {
243
+ "epoch": 0.31,
244
+ "grad_norm": 1.0177528858184814,
245
+ "learning_rate": 0.00015252152521525215,
246
+ "loss": 2.2931,
247
+ "step": 850
248
+ },
249
+ {
250
+ "epoch": 0.32,
251
+ "grad_norm": 1.533103346824646,
252
+ "learning_rate": 0.00015047150471504716,
253
+ "loss": 2.2601,
254
+ "step": 875
255
+ },
256
+ {
257
+ "epoch": 0.33,
258
+ "grad_norm": 1.1346125602722168,
259
+ "learning_rate": 0.00014842148421484217,
260
+ "loss": 2.3318,
261
+ "step": 900
262
+ },
263
+ {
264
+ "epoch": 0.34,
265
+ "grad_norm": 1.0939571857452393,
266
+ "learning_rate": 0.00014637146371463715,
267
+ "loss": 2.249,
268
+ "step": 925
269
+ },
270
+ {
271
+ "epoch": 0.35,
272
+ "grad_norm": 1.225317120552063,
273
+ "learning_rate": 0.00014432144321443216,
274
+ "loss": 2.4674,
275
+ "step": 950
276
+ },
277
+ {
278
+ "epoch": 0.36,
279
+ "grad_norm": 1.3087507486343384,
280
+ "learning_rate": 0.00014227142271422714,
281
+ "loss": 2.298,
282
+ "step": 975
283
+ },
284
+ {
285
+ "epoch": 0.37,
286
+ "grad_norm": 1.26546049118042,
287
+ "learning_rate": 0.00014022140221402215,
288
+ "loss": 2.3119,
289
+ "step": 1000
290
+ },
291
+ {
292
+ "epoch": 0.38,
293
+ "grad_norm": 1.2002321481704712,
294
+ "learning_rate": 0.00013817138171381713,
295
+ "loss": 2.1619,
296
+ "step": 1025
297
+ },
298
+ {
299
+ "epoch": 0.39,
300
+ "grad_norm": 1.589195728302002,
301
+ "learning_rate": 0.00013612136121361214,
302
+ "loss": 2.2499,
303
+ "step": 1050
304
+ },
305
+ {
306
+ "epoch": 0.4,
307
+ "grad_norm": 1.1953868865966797,
308
+ "learning_rate": 0.00013407134071340715,
309
+ "loss": 2.1875,
310
+ "step": 1075
311
+ },
312
+ {
313
+ "epoch": 0.41,
314
+ "grad_norm": 1.0502057075500488,
315
+ "learning_rate": 0.00013202132021320216,
316
+ "loss": 2.259,
317
+ "step": 1100
318
+ },
319
+ {
320
+ "epoch": 0.42,
321
+ "grad_norm": 1.4274191856384277,
322
+ "learning_rate": 0.00012997129971299714,
323
+ "loss": 2.2288,
324
+ "step": 1125
325
+ },
326
+ {
327
+ "epoch": 0.42,
328
+ "grad_norm": 1.33050537109375,
329
+ "learning_rate": 0.00012792127921279213,
330
+ "loss": 2.1854,
331
+ "step": 1150
332
+ },
333
+ {
334
+ "epoch": 0.43,
335
+ "grad_norm": 1.1274808645248413,
336
+ "learning_rate": 0.00012587125871258714,
337
+ "loss": 2.0351,
338
+ "step": 1175
339
+ },
340
+ {
341
+ "epoch": 0.44,
342
+ "grad_norm": 1.2254371643066406,
343
+ "learning_rate": 0.00012382123821238214,
344
+ "loss": 2.2282,
345
+ "step": 1200
346
+ },
347
+ {
348
+ "epoch": 0.45,
349
+ "grad_norm": 1.305560827255249,
350
+ "learning_rate": 0.00012177121771217713,
351
+ "loss": 2.1982,
352
+ "step": 1225
353
+ },
354
+ {
355
+ "epoch": 0.46,
356
+ "grad_norm": 1.0613969564437866,
357
+ "learning_rate": 0.00011972119721197212,
358
+ "loss": 2.1863,
359
+ "step": 1250
360
+ },
361
+ {
362
+ "epoch": 0.47,
363
+ "grad_norm": 1.2470930814743042,
364
+ "learning_rate": 0.00011767117671176713,
365
+ "loss": 2.0909,
366
+ "step": 1275
367
+ },
368
+ {
369
+ "epoch": 0.48,
370
+ "grad_norm": 1.4893149137496948,
371
+ "learning_rate": 0.00011562115621156213,
372
+ "loss": 2.1255,
373
+ "step": 1300
374
+ },
375
+ {
376
+ "epoch": 0.49,
377
+ "grad_norm": 1.1325526237487793,
378
+ "learning_rate": 0.00011357113571135711,
379
+ "loss": 2.1233,
380
+ "step": 1325
381
+ },
382
+ {
383
+ "epoch": 0.5,
384
+ "grad_norm": 1.153321385383606,
385
+ "learning_rate": 0.00011152111521115212,
386
+ "loss": 2.2209,
387
+ "step": 1350
388
+ },
389
+ {
390
+ "epoch": 0.51,
391
+ "grad_norm": 1.1444792747497559,
392
+ "learning_rate": 0.00010947109471094712,
393
+ "loss": 2.1678,
394
+ "step": 1375
395
+ },
396
+ {
397
+ "epoch": 0.52,
398
+ "grad_norm": 0.9731519222259521,
399
+ "learning_rate": 0.00010742107421074213,
400
+ "loss": 2.186,
401
+ "step": 1400
402
+ },
403
+ {
404
+ "epoch": 0.53,
405
+ "grad_norm": 1.3069313764572144,
406
+ "learning_rate": 0.00010537105371053711,
407
+ "loss": 2.0522,
408
+ "step": 1425
409
+ },
410
+ {
411
+ "epoch": 0.54,
412
+ "grad_norm": 1.3358750343322754,
413
+ "learning_rate": 0.0001033210332103321,
414
+ "loss": 1.9899,
415
+ "step": 1450
416
+ },
417
+ {
418
+ "epoch": 0.54,
419
+ "grad_norm": 1.0077296495437622,
420
+ "learning_rate": 0.00010127101271012711,
421
+ "loss": 2.1628,
422
+ "step": 1475
423
+ },
424
+ {
425
+ "epoch": 0.55,
426
+ "grad_norm": 1.1938546895980835,
427
+ "learning_rate": 9.922099220992211e-05,
428
+ "loss": 2.1514,
429
+ "step": 1500
430
+ },
431
+ {
432
+ "epoch": 0.56,
433
+ "grad_norm": 1.1697758436203003,
434
+ "learning_rate": 9.71709717097171e-05,
435
+ "loss": 2.1637,
436
+ "step": 1525
437
+ },
438
+ {
439
+ "epoch": 0.57,
440
+ "grad_norm": 1.0194048881530762,
441
+ "learning_rate": 9.51209512095121e-05,
442
+ "loss": 2.2062,
443
+ "step": 1550
444
+ },
445
+ {
446
+ "epoch": 0.58,
447
+ "grad_norm": 0.9525765180587769,
448
+ "learning_rate": 9.30709307093071e-05,
449
+ "loss": 2.157,
450
+ "step": 1575
451
+ },
452
+ {
453
+ "epoch": 0.59,
454
+ "grad_norm": 1.3280248641967773,
455
+ "learning_rate": 9.102091020910209e-05,
456
+ "loss": 2.0966,
457
+ "step": 1600
458
+ },
459
+ {
460
+ "epoch": 0.6,
461
+ "grad_norm": 1.2190978527069092,
462
+ "learning_rate": 8.89708897088971e-05,
463
+ "loss": 1.9294,
464
+ "step": 1625
465
+ },
466
+ {
467
+ "epoch": 0.61,
468
+ "grad_norm": 0.9637733697891235,
469
+ "learning_rate": 8.692086920869208e-05,
470
+ "loss": 2.0513,
471
+ "step": 1650
472
+ },
473
+ {
474
+ "epoch": 0.62,
475
+ "grad_norm": 1.0733612775802612,
476
+ "learning_rate": 8.48708487084871e-05,
477
+ "loss": 2.0574,
478
+ "step": 1675
479
+ },
480
+ {
481
+ "epoch": 0.63,
482
+ "grad_norm": 1.1949636936187744,
483
+ "learning_rate": 8.282082820828209e-05,
484
+ "loss": 2.1535,
485
+ "step": 1700
486
+ },
487
+ {
488
+ "epoch": 0.64,
489
+ "grad_norm": 1.285975694656372,
490
+ "learning_rate": 8.077080770807709e-05,
491
+ "loss": 2.0739,
492
+ "step": 1725
493
+ },
494
+ {
495
+ "epoch": 0.65,
496
+ "grad_norm": 1.0896881818771362,
497
+ "learning_rate": 7.872078720787208e-05,
498
+ "loss": 2.0279,
499
+ "step": 1750
500
+ },
501
+ {
502
+ "epoch": 0.65,
503
+ "grad_norm": 1.0036427974700928,
504
+ "learning_rate": 7.667076670766709e-05,
505
+ "loss": 1.9592,
506
+ "step": 1775
507
+ },
508
+ {
509
+ "epoch": 0.66,
510
+ "grad_norm": 1.148842453956604,
511
+ "learning_rate": 7.462074620746207e-05,
512
+ "loss": 1.9549,
513
+ "step": 1800
514
+ },
515
+ {
516
+ "epoch": 0.67,
517
+ "grad_norm": 1.4055249691009521,
518
+ "learning_rate": 7.257072570725708e-05,
519
+ "loss": 2.1193,
520
+ "step": 1825
521
+ },
522
+ {
523
+ "epoch": 0.68,
524
+ "grad_norm": 0.7423416972160339,
525
+ "learning_rate": 7.052070520705208e-05,
526
+ "loss": 2.0627,
527
+ "step": 1850
528
+ },
529
+ {
530
+ "epoch": 0.69,
531
+ "grad_norm": 0.8528961539268494,
532
+ "learning_rate": 6.847068470684707e-05,
533
+ "loss": 1.9821,
534
+ "step": 1875
535
+ },
536
+ {
537
+ "epoch": 0.7,
538
+ "grad_norm": 1.220268726348877,
539
+ "learning_rate": 6.642066420664207e-05,
540
+ "loss": 2.0314,
541
+ "step": 1900
542
+ },
543
+ {
544
+ "epoch": 0.71,
545
+ "grad_norm": 0.8227468132972717,
546
+ "learning_rate": 6.437064370643707e-05,
547
+ "loss": 1.924,
548
+ "step": 1925
549
+ },
550
+ {
551
+ "epoch": 0.72,
552
+ "grad_norm": 1.149190068244934,
553
+ "learning_rate": 6.232062320623206e-05,
554
+ "loss": 1.8974,
555
+ "step": 1950
556
+ },
557
+ {
558
+ "epoch": 0.73,
559
+ "grad_norm": 1.2299059629440308,
560
+ "learning_rate": 6.027060270602707e-05,
561
+ "loss": 2.0567,
562
+ "step": 1975
563
+ },
564
+ {
565
+ "epoch": 0.74,
566
+ "grad_norm": 1.226804256439209,
567
+ "learning_rate": 5.822058220582206e-05,
568
+ "loss": 2.0881,
569
+ "step": 2000
570
+ },
571
+ {
572
+ "epoch": 0.75,
573
+ "grad_norm": 1.1045171022415161,
574
+ "learning_rate": 5.6170561705617064e-05,
575
+ "loss": 1.9007,
576
+ "step": 2025
577
+ },
578
+ {
579
+ "epoch": 0.76,
580
+ "grad_norm": 0.82816481590271,
581
+ "learning_rate": 5.412054120541206e-05,
582
+ "loss": 2.0032,
583
+ "step": 2050
584
+ },
585
+ {
586
+ "epoch": 0.77,
587
+ "grad_norm": 0.9694753289222717,
588
+ "learning_rate": 5.207052070520706e-05,
589
+ "loss": 2.0872,
590
+ "step": 2075
591
+ },
592
+ {
593
+ "epoch": 0.77,
594
+ "grad_norm": 0.9572305679321289,
595
+ "learning_rate": 5.002050020500205e-05,
596
+ "loss": 2.112,
597
+ "step": 2100
598
+ },
599
+ {
600
+ "epoch": 0.78,
601
+ "grad_norm": 1.0792776346206665,
602
+ "learning_rate": 4.797047970479705e-05,
603
+ "loss": 2.0145,
604
+ "step": 2125
605
+ },
606
+ {
607
+ "epoch": 0.79,
608
+ "grad_norm": 1.3833109140396118,
609
+ "learning_rate": 4.592045920459205e-05,
610
+ "loss": 2.1392,
611
+ "step": 2150
612
+ },
613
+ {
614
+ "epoch": 0.8,
615
+ "grad_norm": 0.8226168155670166,
616
+ "learning_rate": 4.3870438704387046e-05,
617
+ "loss": 2.0964,
618
+ "step": 2175
619
+ },
620
+ {
621
+ "epoch": 0.81,
622
+ "grad_norm": 1.5212799310684204,
623
+ "learning_rate": 4.182041820418204e-05,
624
+ "loss": 2.0599,
625
+ "step": 2200
626
+ },
627
+ {
628
+ "epoch": 0.82,
629
+ "grad_norm": 1.015734314918518,
630
+ "learning_rate": 3.9770397703977044e-05,
631
+ "loss": 2.0029,
632
+ "step": 2225
633
+ },
634
+ {
635
+ "epoch": 0.83,
636
+ "grad_norm": 0.9501891732215881,
637
+ "learning_rate": 3.772037720377204e-05,
638
+ "loss": 2.0123,
639
+ "step": 2250
640
+ },
641
+ {
642
+ "epoch": 0.84,
643
+ "grad_norm": 0.9258189797401428,
644
+ "learning_rate": 3.5670356703567036e-05,
645
+ "loss": 1.9087,
646
+ "step": 2275
647
+ },
648
+ {
649
+ "epoch": 0.85,
650
+ "grad_norm": 0.998928964138031,
651
+ "learning_rate": 3.362033620336203e-05,
652
+ "loss": 2.0364,
653
+ "step": 2300
654
+ },
655
+ {
656
+ "epoch": 0.86,
657
+ "grad_norm": 1.24564790725708,
658
+ "learning_rate": 3.1570315703157035e-05,
659
+ "loss": 1.8917,
660
+ "step": 2325
661
+ },
662
+ {
663
+ "epoch": 0.87,
664
+ "grad_norm": 1.0782575607299805,
665
+ "learning_rate": 2.952029520295203e-05,
666
+ "loss": 1.9744,
667
+ "step": 2350
668
+ },
669
+ {
670
+ "epoch": 0.88,
671
+ "grad_norm": 1.2584232091903687,
672
+ "learning_rate": 2.747027470274703e-05,
673
+ "loss": 1.9452,
674
+ "step": 2375
675
+ },
676
+ {
677
+ "epoch": 0.89,
678
+ "grad_norm": 1.038710355758667,
679
+ "learning_rate": 2.5420254202542026e-05,
680
+ "loss": 1.8455,
681
+ "step": 2400
682
+ },
683
+ {
684
+ "epoch": 0.89,
685
+ "grad_norm": 1.0375022888183594,
686
+ "learning_rate": 2.3370233702337025e-05,
687
+ "loss": 1.9034,
688
+ "step": 2425
689
+ },
690
+ {
691
+ "epoch": 0.9,
692
+ "grad_norm": 1.314627766609192,
693
+ "learning_rate": 2.132021320213202e-05,
694
+ "loss": 2.0162,
695
+ "step": 2450
696
+ },
697
+ {
698
+ "epoch": 0.91,
699
+ "grad_norm": 1.096312165260315,
700
+ "learning_rate": 1.927019270192702e-05,
701
+ "loss": 2.0927,
702
+ "step": 2475
703
+ },
704
+ {
705
+ "epoch": 0.92,
706
+ "grad_norm": 1.0984846353530884,
707
+ "learning_rate": 1.722017220172202e-05,
708
+ "loss": 1.8629,
709
+ "step": 2500
710
+ },
711
+ {
712
+ "epoch": 0.93,
713
+ "grad_norm": 1.209221363067627,
714
+ "learning_rate": 1.5170151701517015e-05,
715
+ "loss": 1.9085,
716
+ "step": 2525
717
+ },
718
+ {
719
+ "epoch": 0.94,
720
+ "grad_norm": 1.2675678730010986,
721
+ "learning_rate": 1.3120131201312013e-05,
722
+ "loss": 1.9813,
723
+ "step": 2550
724
+ },
725
+ {
726
+ "epoch": 0.95,
727
+ "grad_norm": 1.2204258441925049,
728
+ "learning_rate": 1.1070110701107012e-05,
729
+ "loss": 1.8332,
730
+ "step": 2575
731
+ },
732
+ {
733
+ "epoch": 0.96,
734
+ "grad_norm": 1.0811994075775146,
735
+ "learning_rate": 9.02009020090201e-06,
736
+ "loss": 1.7946,
737
+ "step": 2600
738
+ },
739
+ {
740
+ "epoch": 0.97,
741
+ "grad_norm": 1.219846248626709,
742
+ "learning_rate": 6.9700697006970075e-06,
743
+ "loss": 1.8714,
744
+ "step": 2625
745
+ },
746
+ {
747
+ "epoch": 0.98,
748
+ "grad_norm": 1.1557291746139526,
749
+ "learning_rate": 4.920049200492005e-06,
750
+ "loss": 1.7837,
751
+ "step": 2650
752
+ },
753
+ {
754
+ "epoch": 0.99,
755
+ "grad_norm": 0.845923125743866,
756
+ "learning_rate": 2.870028700287003e-06,
757
+ "loss": 1.8496,
758
+ "step": 2675
759
+ },
760
+ {
761
+ "epoch": 1.0,
762
+ "grad_norm": 0.9930481314659119,
763
+ "learning_rate": 8.200082000820008e-07,
764
+ "loss": 1.8581,
765
+ "step": 2700
766
+ },
767
+ {
768
+ "epoch": 1.0,
769
+ "eval_loss": 1.8915482759475708,
770
+ "eval_runtime": 97.9153,
771
+ "eval_samples_per_second": 2.911,
772
+ "eval_steps_per_second": 1.46,
773
+ "step": 2710
774
+ }
775
+ ],
776
+ "logging_steps": 25,
777
+ "max_steps": 2710,
778
+ "num_input_tokens_seen": 0,
779
+ "num_train_epochs": 1,
780
+ "save_steps": 500,
781
+ "total_flos": 2.35853879967744e+16,
782
+ "train_batch_size": 2,
783
+ "trial_name": null,
784
+ "trial_params": null
785
+ }
checkpoint-2710/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57cc466fd18dfb7c394a2a1288f323cff10b0010bcb009b9a2dd7e4198d3ba10
3
+ size 4984
checkpoint-2710/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "openai-community/gpt2-large",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPT2LMHeadModel"
6
+ ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 50256,
9
+ "embd_pdrop": 0.1,
10
+ "eos_token_id": 50256,
11
+ "initializer_range": 0.02,
12
+ "layer_norm_epsilon": 1e-05,
13
+ "model_type": "gpt2",
14
+ "n_ctx": 1024,
15
+ "n_embd": 1280,
16
+ "n_head": 20,
17
+ "n_inner": null,
18
+ "n_layer": 36,
19
+ "n_positions": 1024,
20
+ "reorder_and_upcast_attn": false,
21
+ "resid_pdrop": 0.1,
22
+ "scale_attn_by_inverse_layer_idx": false,
23
+ "scale_attn_weights": true,
24
+ "summary_activation": null,
25
+ "summary_first_dropout": 0.1,
26
+ "summary_proj_to_labels": true,
27
+ "summary_type": "cls_index",
28
+ "summary_use_proj": true,
29
+ "task_specific_params": {
30
+ "text-generation": {
31
+ "do_sample": true,
32
+ "max_length": 50
33
+ }
34
+ },
35
+ "torch_dtype": "float32",
36
+ "transformers_version": "4.39.0",
37
+ "use_cache": false,
38
+ "vocab_size": 50257
39
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 50256,
4
+ "eos_token_id": 50256,
5
+ "transformers_version": "4.39.0"
6
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a15ef31765c9e9b172ebcb64d85327c9d4484629d79ea9ff6cf3b7483a8003d
3
+ size 3096165928
special_tokens_map.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<|endoftext|>",
3
+ "eos_token": "<|endoftext|>",
4
+ "pad_token": "<|endoftext|>",
5
+ "unk_token": "<|endoftext|>"
6
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "50256": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ }
12
+ },
13
+ "bos_token": "<|endoftext|>",
14
+ "chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
15
+ "clean_up_tokenization_spaces": true,
16
+ "eos_token": "<|endoftext|>",
17
+ "model_max_length": 1024,
18
+ "pad_token": "<|endoftext|>",
19
+ "tokenizer_class": "GPT2Tokenizer",
20
+ "unk_token": "<|endoftext|>"
21
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57cc466fd18dfb7c394a2a1288f323cff10b0010bcb009b9a2dd7e4198d3ba10
3
+ size 4984
training_params.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "openai-community/gpt2-large",
3
+ "project_name": "gpt2-large-open-assistant-guanaco",
4
+ "data_path": "timdettmers/openassistant-guanaco",
5
+ "train_split": "train",
6
+ "valid_split": "test",
7
+ "add_eos_token": false,
8
+ "block_size": -1,
9
+ "model_max_length": 1024,
10
+ "padding": null,
11
+ "trainer": "sft",
12
+ "use_flash_attention_2": false,
13
+ "log": "none",
14
+ "disable_gradient_checkpointing": false,
15
+ "logging_steps": -1,
16
+ "evaluation_strategy": "epoch",
17
+ "save_total_limit": 1,
18
+ "save_strategy": "epoch",
19
+ "auto_find_batch_size": false,
20
+ "mixed_precision": null,
21
+ "lr": 0.0002,
22
+ "epochs": 1,
23
+ "batch_size": 2,
24
+ "warmup_ratio": 0.1,
25
+ "gradient_accumulation": 1,
26
+ "optimizer": "adamw_torch",
27
+ "scheduler": "linear",
28
+ "weight_decay": 0.0,
29
+ "max_grad_norm": 1.0,
30
+ "seed": 42,
31
+ "chat_template": null,
32
+ "quantization": null,
33
+ "target_modules": null,
34
+ "merge_adapter": false,
35
+ "peft": false,
36
+ "lora_r": 16,
37
+ "lora_alpha": 32,
38
+ "lora_dropout": 0.05,
39
+ "model_ref": null,
40
+ "dpo_beta": 0.1,
41
+ "prompt_text_column": "prompt",
42
+ "text_column": "text",
43
+ "rejected_text_column": "rejected",
44
+ "push_to_hub": true,
45
+ "repo_id": "sovitrath/gpt2_large_openassistant_guanaco_qlora",
46
+ "username": null
47
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff