ariankharazmi commited on
Commit
2713ffa
·
verified ·
1 Parent(s): d1b9347

Initial upload

Browse files
config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_function": "gelu_new",
3
+ "architectures": [
4
+ "GPT2LMHeadModel"
5
+ ],
6
+ "attn_pdrop": 0.1,
7
+ "bos_token_id": 50256,
8
+ "embd_pdrop": 0.1,
9
+ "eos_token_id": 50256,
10
+ "initializer_range": 0.02,
11
+ "layer_norm_epsilon": 1e-05,
12
+ "model_type": "gpt2",
13
+ "n_ctx": 1024,
14
+ "n_embd": 1024,
15
+ "n_head": 16,
16
+ "n_inner": null,
17
+ "n_layer": 24,
18
+ "n_positions": 1024,
19
+ "n_special": 0,
20
+ "predict_special_tokens": true,
21
+ "reorder_and_upcast_attn": false,
22
+ "resid_pdrop": 0.1,
23
+ "scale_attn_by_inverse_layer_idx": false,
24
+ "scale_attn_weights": true,
25
+ "summary_activation": null,
26
+ "summary_first_dropout": 0.1,
27
+ "summary_proj_to_labels": true,
28
+ "summary_type": "cls_index",
29
+ "summary_use_proj": true,
30
+ "task_specific_params": {
31
+ "text-generation": {
32
+ "do_sample": true,
33
+ "max_length": 50
34
+ }
35
+ },
36
+ "torch_dtype": "float32",
37
+ "transformers_version": "4.53.2",
38
+ "use_cache": true,
39
+ "vocab_size": 50257
40
+ }
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.53.2"
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:f0a88ff7a22916a98b1df01c37934af1f28f74cf1ff4ef0a4e2f5880a14582f9
3
+ size 1419322880
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:373dd8c9768e0a53d8c62af5abf481afc8a92bf51dac48ad4b40368c01901cd4
3
+ size 2838821579
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f1e0d31acc437fbbd16411d0d11d500c5f4dbbc7561671dab7dbf23eb0f2c43
3
+ size 14455
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd7c588510530a706440149a66e8b356657c103fddced9123513cb8878ab587c
3
+ size 1465
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
+ "clean_up_tokenization_spaces": false,
15
+ "eos_token": "<|endoftext|>",
16
+ "extra_special_tokens": {},
17
+ "model_max_length": 1024,
18
+ "pad_token": "<|endoftext|>",
19
+ "tokenizer_class": "GPT2Tokenizer",
20
+ "unk_token": "<|endoftext|>"
21
+ }
trainer_state.json ADDED
@@ -0,0 +1,241 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": 12524,
3
+ "best_metric": 1.614437222480774,
4
+ "best_model_checkpoint": "./PhaseII-checkpoint/checkpoint-12524",
5
+ "epoch": 2.0,
6
+ "eval_steps": 500,
7
+ "global_step": 12524,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.00015970614070110996,
14
+ "grad_norm": 5.020626068115234,
15
+ "learning_rate": 0.0,
16
+ "loss": 2.2838,
17
+ "step": 1
18
+ },
19
+ {
20
+ "epoch": 0.07985307035055497,
21
+ "grad_norm": 2.9836959838867188,
22
+ "learning_rate": 9.980000000000001e-06,
23
+ "loss": 1.9133,
24
+ "step": 500
25
+ },
26
+ {
27
+ "epoch": 0.15970614070110994,
28
+ "grad_norm": 2.8403663635253906,
29
+ "learning_rate": 9.584996673320027e-06,
30
+ "loss": 1.7518,
31
+ "step": 1000
32
+ },
33
+ {
34
+ "epoch": 0.23955921105166494,
35
+ "grad_norm": 3.458155393600464,
36
+ "learning_rate": 9.169161676646707e-06,
37
+ "loss": 1.7446,
38
+ "step": 1500
39
+ },
40
+ {
41
+ "epoch": 0.3194122814022199,
42
+ "grad_norm": 2.839137315750122,
43
+ "learning_rate": 8.753326679973387e-06,
44
+ "loss": 1.724,
45
+ "step": 2000
46
+ },
47
+ {
48
+ "epoch": 0.3992653517527749,
49
+ "grad_norm": 3.0357747077941895,
50
+ "learning_rate": 8.337491683300067e-06,
51
+ "loss": 1.715,
52
+ "step": 2500
53
+ },
54
+ {
55
+ "epoch": 0.4791184221033299,
56
+ "grad_norm": 2.7229244709014893,
57
+ "learning_rate": 7.921656686626747e-06,
58
+ "loss": 1.6993,
59
+ "step": 3000
60
+ },
61
+ {
62
+ "epoch": 0.5589714924538849,
63
+ "grad_norm": 3.1533303260803223,
64
+ "learning_rate": 7.5058216899534275e-06,
65
+ "loss": 1.698,
66
+ "step": 3500
67
+ },
68
+ {
69
+ "epoch": 0.6388245628044398,
70
+ "grad_norm": 3.5182504653930664,
71
+ "learning_rate": 7.089986693280108e-06,
72
+ "loss": 1.6914,
73
+ "step": 4000
74
+ },
75
+ {
76
+ "epoch": 0.7186776331549948,
77
+ "grad_norm": 3.2433836460113525,
78
+ "learning_rate": 6.674151696606786e-06,
79
+ "loss": 1.6824,
80
+ "step": 4500
81
+ },
82
+ {
83
+ "epoch": 0.7985307035055498,
84
+ "grad_norm": 3.250410556793213,
85
+ "learning_rate": 6.258316699933466e-06,
86
+ "loss": 1.6893,
87
+ "step": 5000
88
+ },
89
+ {
90
+ "epoch": 0.8783837738561048,
91
+ "grad_norm": 3.3924999237060547,
92
+ "learning_rate": 5.8424817032601465e-06,
93
+ "loss": 1.689,
94
+ "step": 5500
95
+ },
96
+ {
97
+ "epoch": 0.9582368442066598,
98
+ "grad_norm": 3.0635600090026855,
99
+ "learning_rate": 5.426646706586827e-06,
100
+ "loss": 1.6857,
101
+ "step": 6000
102
+ },
103
+ {
104
+ "epoch": 1.0,
105
+ "eval_loss": 1.6256579160690308,
106
+ "eval_runtime": 76.536,
107
+ "eval_samples_per_second": 10.453,
108
+ "eval_steps_per_second": 2.613,
109
+ "step": 6262
110
+ },
111
+ {
112
+ "epoch": 1.0380100614868641,
113
+ "grad_norm": 2.568723440170288,
114
+ "learning_rate": 5.010811709913507e-06,
115
+ "loss": 1.6553,
116
+ "step": 6500
117
+ },
118
+ {
119
+ "epoch": 1.117863131837419,
120
+ "grad_norm": 3.2197988033294678,
121
+ "learning_rate": 4.594976713240187e-06,
122
+ "loss": 1.6466,
123
+ "step": 7000
124
+ },
125
+ {
126
+ "epoch": 1.1977162021879741,
127
+ "grad_norm": 3.12034273147583,
128
+ "learning_rate": 4.179141716566867e-06,
129
+ "loss": 1.6405,
130
+ "step": 7500
131
+ },
132
+ {
133
+ "epoch": 1.277569272538529,
134
+ "grad_norm": 3.1645143032073975,
135
+ "learning_rate": 3.7633067198935464e-06,
136
+ "loss": 1.6411,
137
+ "step": 8000
138
+ },
139
+ {
140
+ "epoch": 1.3574223428890841,
141
+ "grad_norm": 3.349564552307129,
142
+ "learning_rate": 3.3474717232202266e-06,
143
+ "loss": 1.6245,
144
+ "step": 8500
145
+ },
146
+ {
147
+ "epoch": 1.437275413239639,
148
+ "grad_norm": 3.0371181964874268,
149
+ "learning_rate": 2.9316367265469064e-06,
150
+ "loss": 1.6196,
151
+ "step": 9000
152
+ },
153
+ {
154
+ "epoch": 1.5171284835901941,
155
+ "grad_norm": 3.2543323040008545,
156
+ "learning_rate": 2.5158017298735865e-06,
157
+ "loss": 1.6328,
158
+ "step": 9500
159
+ },
160
+ {
161
+ "epoch": 1.596981553940749,
162
+ "grad_norm": 2.7459099292755127,
163
+ "learning_rate": 2.0999667332002663e-06,
164
+ "loss": 1.631,
165
+ "step": 10000
166
+ },
167
+ {
168
+ "epoch": 1.676834624291304,
169
+ "grad_norm": 3.7493247985839844,
170
+ "learning_rate": 1.6841317365269464e-06,
171
+ "loss": 1.6266,
172
+ "step": 10500
173
+ },
174
+ {
175
+ "epoch": 1.756687694641859,
176
+ "grad_norm": 2.981618881225586,
177
+ "learning_rate": 1.2682967398536262e-06,
178
+ "loss": 1.625,
179
+ "step": 11000
180
+ },
181
+ {
182
+ "epoch": 1.836540764992414,
183
+ "grad_norm": 3.362718105316162,
184
+ "learning_rate": 8.524617431803061e-07,
185
+ "loss": 1.6317,
186
+ "step": 11500
187
+ },
188
+ {
189
+ "epoch": 1.9163938353429688,
190
+ "grad_norm": 3.9580516815185547,
191
+ "learning_rate": 4.366267465069861e-07,
192
+ "loss": 1.6084,
193
+ "step": 12000
194
+ },
195
+ {
196
+ "epoch": 1.996246905693524,
197
+ "grad_norm": 2.7975428104400635,
198
+ "learning_rate": 2.0791749833666e-08,
199
+ "loss": 1.6257,
200
+ "step": 12500
201
+ },
202
+ {
203
+ "epoch": 2.0,
204
+ "eval_loss": 1.614437222480774,
205
+ "eval_runtime": 76.4918,
206
+ "eval_samples_per_second": 10.459,
207
+ "eval_steps_per_second": 2.615,
208
+ "step": 12524
209
+ }
210
+ ],
211
+ "logging_steps": 500,
212
+ "max_steps": 12524,
213
+ "num_input_tokens_seen": 0,
214
+ "num_train_epochs": 2,
215
+ "save_steps": 500,
216
+ "stateful_callbacks": {
217
+ "EarlyStoppingCallback": {
218
+ "args": {
219
+ "early_stopping_patience": 2,
220
+ "early_stopping_threshold": 0.01
221
+ },
222
+ "attributes": {
223
+ "early_stopping_patience_counter": 0
224
+ }
225
+ },
226
+ "TrainerControl": {
227
+ "args": {
228
+ "should_epoch_stop": false,
229
+ "should_evaluate": false,
230
+ "should_log": false,
231
+ "should_save": true,
232
+ "should_training_stop": true
233
+ },
234
+ "attributes": {}
235
+ }
236
+ },
237
+ "total_flos": 4.651861778890752e+16,
238
+ "train_batch_size": 4,
239
+ "trial_name": null,
240
+ "trial_params": null
241
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a7a75717520b5541c6130c09f7d7ad77ff3d52e037b636c0a92af21296b499e
3
+ size 5777
vocab.json ADDED
The diff for this file is too large to render. See raw diff