liangc40 commited on
Commit
ca7286e
·
verified ·
1 Parent(s): 5233916

Upload folder using huggingface_hub

Browse files
checkpoint-282/config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "gradient_checkpointing": false,
11
+ "initializer_range": 0.02,
12
+ "layer_norm_epsilon": 1e-05,
13
+ "model_type": "gpt2",
14
+ "n_ctx": 1024,
15
+ "n_embd": 768,
16
+ "n_head": 12,
17
+ "n_inner": null,
18
+ "n_layer": 12,
19
+ "n_positions": 1024,
20
+ "output_past": 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": 120
34
+ }
35
+ },
36
+ "tokenizer_class": "BertTokenizer",
37
+ "torch_dtype": "float32",
38
+ "transformers_version": "4.52.2",
39
+ "use_cache": true,
40
+ "vocab_size": 22557
41
+ }
checkpoint-282/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.52.2"
6
+ }
checkpoint-282/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:09510b232645240c2ad0d7e03da8b7664e7fefb179efc7af2c98279daba1e737
3
+ size 412679808
checkpoint-282/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b7a49406660605bedb67139e0739c7528a4c1c82f4cdcddc5bb40b29ed20f36
3
+ size 825453498
checkpoint-282/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3837a2b51525e412b7700c9c872dacba4f277c1a3292053e3a1ccd8b5d06bcc4
3
+ size 14244
checkpoint-282/scaler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82fbb8a41699527f8e897a6a4653fd200a409dcfcca603338998c5883c75ff74
3
+ size 988
checkpoint-282/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ad6dd2b5727fe8a6f4108f69903c823118467fa11ae53cc14acdc6b5095985b
3
+ size 1064
checkpoint-282/special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
checkpoint-282/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-282/tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "model_max_length": 1000000000000000019884624838656,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "BertTokenizer",
57
+ "unk_token": "[UNK]"
58
+ }
checkpoint-282/trainer_state.json ADDED
@@ -0,0 +1,230 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 3.0,
6
+ "eval_steps": 500,
7
+ "global_step": 282,
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.10638297872340426,
14
+ "grad_norm": 2.73763108253479,
15
+ "learning_rate": 4.840425531914894e-05,
16
+ "loss": 7.0593,
17
+ "step": 10
18
+ },
19
+ {
20
+ "epoch": 0.2127659574468085,
21
+ "grad_norm": 4.184208869934082,
22
+ "learning_rate": 4.663120567375887e-05,
23
+ "loss": 4.3509,
24
+ "step": 20
25
+ },
26
+ {
27
+ "epoch": 0.3191489361702128,
28
+ "grad_norm": 2.815650224685669,
29
+ "learning_rate": 4.48581560283688e-05,
30
+ "loss": 2.3531,
31
+ "step": 30
32
+ },
33
+ {
34
+ "epoch": 0.425531914893617,
35
+ "grad_norm": 1.4420971870422363,
36
+ "learning_rate": 4.3085106382978725e-05,
37
+ "loss": 1.3577,
38
+ "step": 40
39
+ },
40
+ {
41
+ "epoch": 0.5319148936170213,
42
+ "grad_norm": 1.3123074769973755,
43
+ "learning_rate": 4.1312056737588654e-05,
44
+ "loss": 0.8151,
45
+ "step": 50
46
+ },
47
+ {
48
+ "epoch": 0.6382978723404256,
49
+ "grad_norm": 1.1796232461929321,
50
+ "learning_rate": 3.953900709219858e-05,
51
+ "loss": 0.7291,
52
+ "step": 60
53
+ },
54
+ {
55
+ "epoch": 0.7446808510638298,
56
+ "grad_norm": 1.0259984731674194,
57
+ "learning_rate": 3.776595744680852e-05,
58
+ "loss": 0.5471,
59
+ "step": 70
60
+ },
61
+ {
62
+ "epoch": 0.851063829787234,
63
+ "grad_norm": 0.7393821477890015,
64
+ "learning_rate": 3.599290780141844e-05,
65
+ "loss": 0.5002,
66
+ "step": 80
67
+ },
68
+ {
69
+ "epoch": 0.9574468085106383,
70
+ "grad_norm": 1.040688157081604,
71
+ "learning_rate": 3.4219858156028374e-05,
72
+ "loss": 0.4176,
73
+ "step": 90
74
+ },
75
+ {
76
+ "epoch": 1.0638297872340425,
77
+ "grad_norm": 0.8522056341171265,
78
+ "learning_rate": 3.2446808510638296e-05,
79
+ "loss": 0.4897,
80
+ "step": 100
81
+ },
82
+ {
83
+ "epoch": 1.1702127659574468,
84
+ "grad_norm": 0.6385951638221741,
85
+ "learning_rate": 3.067375886524823e-05,
86
+ "loss": 0.3598,
87
+ "step": 110
88
+ },
89
+ {
90
+ "epoch": 1.2765957446808511,
91
+ "grad_norm": 0.5381748676300049,
92
+ "learning_rate": 2.8900709219858156e-05,
93
+ "loss": 0.332,
94
+ "step": 120
95
+ },
96
+ {
97
+ "epoch": 1.3829787234042552,
98
+ "grad_norm": 0.697250247001648,
99
+ "learning_rate": 2.7127659574468084e-05,
100
+ "loss": 0.4078,
101
+ "step": 130
102
+ },
103
+ {
104
+ "epoch": 1.4893617021276595,
105
+ "grad_norm": 0.7715345025062561,
106
+ "learning_rate": 2.5354609929078016e-05,
107
+ "loss": 0.3357,
108
+ "step": 140
109
+ },
110
+ {
111
+ "epoch": 1.5957446808510638,
112
+ "grad_norm": 0.5877780914306641,
113
+ "learning_rate": 2.3581560283687945e-05,
114
+ "loss": 0.3374,
115
+ "step": 150
116
+ },
117
+ {
118
+ "epoch": 1.702127659574468,
119
+ "grad_norm": 1.4718451499938965,
120
+ "learning_rate": 2.1808510638297873e-05,
121
+ "loss": 0.4327,
122
+ "step": 160
123
+ },
124
+ {
125
+ "epoch": 1.8085106382978724,
126
+ "grad_norm": 0.5314385890960693,
127
+ "learning_rate": 2.0035460992907805e-05,
128
+ "loss": 0.357,
129
+ "step": 170
130
+ },
131
+ {
132
+ "epoch": 1.9148936170212765,
133
+ "grad_norm": 0.5589902400970459,
134
+ "learning_rate": 1.8262411347517733e-05,
135
+ "loss": 0.3687,
136
+ "step": 180
137
+ },
138
+ {
139
+ "epoch": 2.021276595744681,
140
+ "grad_norm": 0.5115184187889099,
141
+ "learning_rate": 1.6489361702127658e-05,
142
+ "loss": 0.2445,
143
+ "step": 190
144
+ },
145
+ {
146
+ "epoch": 2.127659574468085,
147
+ "grad_norm": 0.5463274121284485,
148
+ "learning_rate": 1.4716312056737588e-05,
149
+ "loss": 0.2548,
150
+ "step": 200
151
+ },
152
+ {
153
+ "epoch": 2.2340425531914896,
154
+ "grad_norm": 0.5499547123908997,
155
+ "learning_rate": 1.2943262411347517e-05,
156
+ "loss": 0.3375,
157
+ "step": 210
158
+ },
159
+ {
160
+ "epoch": 2.3404255319148937,
161
+ "grad_norm": 0.49347832798957825,
162
+ "learning_rate": 1.1170212765957447e-05,
163
+ "loss": 0.3534,
164
+ "step": 220
165
+ },
166
+ {
167
+ "epoch": 2.4468085106382977,
168
+ "grad_norm": 0.5885722041130066,
169
+ "learning_rate": 9.397163120567375e-06,
170
+ "loss": 0.2803,
171
+ "step": 230
172
+ },
173
+ {
174
+ "epoch": 2.5531914893617023,
175
+ "grad_norm": 0.5481957197189331,
176
+ "learning_rate": 7.6241134751773054e-06,
177
+ "loss": 0.3067,
178
+ "step": 240
179
+ },
180
+ {
181
+ "epoch": 2.6595744680851063,
182
+ "grad_norm": 0.49966493248939514,
183
+ "learning_rate": 5.851063829787235e-06,
184
+ "loss": 0.317,
185
+ "step": 250
186
+ },
187
+ {
188
+ "epoch": 2.7659574468085104,
189
+ "grad_norm": 0.7681831121444702,
190
+ "learning_rate": 4.078014184397164e-06,
191
+ "loss": 0.3071,
192
+ "step": 260
193
+ },
194
+ {
195
+ "epoch": 2.872340425531915,
196
+ "grad_norm": 0.8694835901260376,
197
+ "learning_rate": 2.304964539007092e-06,
198
+ "loss": 0.2728,
199
+ "step": 270
200
+ },
201
+ {
202
+ "epoch": 2.978723404255319,
203
+ "grad_norm": 0.5909697413444519,
204
+ "learning_rate": 5.319148936170213e-07,
205
+ "loss": 0.3545,
206
+ "step": 280
207
+ }
208
+ ],
209
+ "logging_steps": 10,
210
+ "max_steps": 282,
211
+ "num_input_tokens_seen": 0,
212
+ "num_train_epochs": 3,
213
+ "save_steps": 500,
214
+ "stateful_callbacks": {
215
+ "TrainerControl": {
216
+ "args": {
217
+ "should_epoch_stop": false,
218
+ "should_evaluate": false,
219
+ "should_log": false,
220
+ "should_save": true,
221
+ "should_training_stop": true
222
+ },
223
+ "attributes": {}
224
+ }
225
+ },
226
+ "total_flos": 585555443712000.0,
227
+ "train_batch_size": 8,
228
+ "trial_name": null,
229
+ "trial_params": null
230
+ }
checkpoint-282/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d5a1110da641557af387452a47e512af163f4302d8ce372d6f380832ead79fd
3
+ size 5304
checkpoint-282/vocab.txt ADDED
The diff for this file is too large to render. See raw diff
 
config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "gradient_checkpointing": false,
11
+ "initializer_range": 0.02,
12
+ "layer_norm_epsilon": 1e-05,
13
+ "model_type": "gpt2",
14
+ "n_ctx": 1024,
15
+ "n_embd": 768,
16
+ "n_head": 12,
17
+ "n_inner": null,
18
+ "n_layer": 12,
19
+ "n_positions": 1024,
20
+ "output_past": 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": 120
34
+ }
35
+ },
36
+ "tokenizer_class": "BertTokenizer",
37
+ "torch_dtype": "float32",
38
+ "transformers_version": "4.52.2",
39
+ "use_cache": true,
40
+ "vocab_size": 22557
41
+ }
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.52.2"
6
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:09510b232645240c2ad0d7e03da8b7664e7fefb179efc7af2c98279daba1e737
3
+ size 412679808
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "model_max_length": 1000000000000000019884624838656,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "BertTokenizer",
57
+ "unk_token": "[UNK]"
58
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff