Ethan Sim commited on
Commit
040b0a1
1 Parent(s): 2b8f4b9

Stage best WCE model

Browse files
config.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Helsinki-NLP/opus-mt-en-fr",
3
+ "_num_labels": 3,
4
+ "activation_dropout": 0.0,
5
+ "activation_function": "swish",
6
+ "add_bias_logits": false,
7
+ "add_final_layer_norm": false,
8
+ "architectures": [
9
+ "MarianMTModel"
10
+ ],
11
+ "attention_dropout": 0.0,
12
+ "bad_words_ids": [
13
+ [
14
+ 59513
15
+ ]
16
+ ],
17
+ "bos_token_id": 0,
18
+ "classif_dropout": 0.0,
19
+ "classifier_dropout": 0.0,
20
+ "d_model": 512,
21
+ "decoder_attention_heads": 8,
22
+ "decoder_ffn_dim": 2048,
23
+ "decoder_layerdrop": 0.0,
24
+ "decoder_layers": 6,
25
+ "decoder_start_token_id": 59513,
26
+ "decoder_vocab_size": 59514,
27
+ "dropout": 0.1,
28
+ "encoder_attention_heads": 8,
29
+ "encoder_ffn_dim": 2048,
30
+ "encoder_layerdrop": 0.0,
31
+ "encoder_layers": 6,
32
+ "eos_token_id": 0,
33
+ "forced_eos_token_id": 0,
34
+ "gradient_checkpointing": false,
35
+ "id2label": {
36
+ "0": "LABEL_0",
37
+ "1": "LABEL_1",
38
+ "2": "LABEL_2"
39
+ },
40
+ "init_std": 0.02,
41
+ "is_encoder_decoder": true,
42
+ "label2id": {
43
+ "LABEL_0": 0,
44
+ "LABEL_1": 1,
45
+ "LABEL_2": 2
46
+ },
47
+ "max_length": 512,
48
+ "max_position_embeddings": 512,
49
+ "model_type": "marian",
50
+ "normalize_before": false,
51
+ "normalize_embedding": false,
52
+ "num_beams": 4,
53
+ "num_hidden_layers": 6,
54
+ "pad_token_id": 59513,
55
+ "scale_embedding": true,
56
+ "share_encoder_decoder_embeddings": true,
57
+ "static_position_embeddings": true,
58
+ "torch_dtype": "float32",
59
+ "transformers_version": "4.28.0",
60
+ "use_cache": true,
61
+ "vocab_size": 59514
62
+ }
generation_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bad_words_ids": [
3
+ [
4
+ 59513
5
+ ]
6
+ ],
7
+ "bos_token_id": 0,
8
+ "decoder_start_token_id": 59513,
9
+ "eos_token_id": 0,
10
+ "forced_eos_token_id": 0,
11
+ "max_length": 512,
12
+ "num_beams": 4,
13
+ "pad_token_id": 59513,
14
+ "transformers_version": "4.28.0"
15
+ }
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5c22862dc03fa99839e830432c2d7c04eaea21b2964c3f3ba774d6216d04a9d
3
+ size 597026309
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b75f8851ac38b1305116187b4dfad449a703e1338f7bad4b1f87ce5c8d7be76
3
+ size 298763205
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f43d7c5f8261a5ad1620907c374687b428cdbf997331040068ff213073e53027
3
+ size 14575
scaler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:121d315e08f0072d1b81df334b3a412af4d5c3af247268ce862f86553defdcb2
3
+ size 557
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:510fc89adea15071db8c3934ea1fa2c117901f9a1f6074bdec2fb0efd2696b52
3
+ size 627
source.spm ADDED
Binary file (778 kB). View file
 
special_tokens_map.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "eos_token": "</s>",
3
+ "pad_token": "<pad>",
4
+ "unk_token": "<unk>"
5
+ }
target.spm ADDED
Binary file (802 kB). View file
 
tokenizer_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "clean_up_tokenization_spaces": true,
3
+ "eos_token": "</s>",
4
+ "model_max_length": 512,
5
+ "pad_token": "<pad>",
6
+ "separate_vocabs": false,
7
+ "source_lang": "en",
8
+ "sp_model_kwargs": {},
9
+ "target_lang": "fr",
10
+ "tokenizer_class": "MarianTokenizer",
11
+ "unk_token": "<unk>"
12
+ }
trainer_state.json ADDED
@@ -0,0 +1,336 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 43.0447,
3
+ "best_model_checkpoint": "wce_weights_1.25/checkpoint-80000",
4
+ "epoch": 3.943217665615142,
5
+ "global_step": 80000,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 0.2,
12
+ "learning_rate": 1.9753918572555207e-05,
13
+ "loss": 0.2206,
14
+ "step": 4000
15
+ },
16
+ {
17
+ "epoch": 0.2,
18
+ "eval_bleu": 34.0224,
19
+ "eval_gen_len": 41.8706,
20
+ "eval_loss": 0.10892540216445923,
21
+ "eval_runtime": 164.3546,
22
+ "eval_samples_per_second": 6.346,
23
+ "eval_steps_per_second": 0.201,
24
+ "step": 4000
25
+ },
26
+ {
27
+ "epoch": 0.39,
28
+ "learning_rate": 1.950746746845426e-05,
29
+ "loss": 0.1864,
30
+ "step": 8000
31
+ },
32
+ {
33
+ "epoch": 0.39,
34
+ "eval_bleu": 37.6284,
35
+ "eval_gen_len": 37.8658,
36
+ "eval_loss": 0.1066218838095665,
37
+ "eval_runtime": 128.9732,
38
+ "eval_samples_per_second": 8.087,
39
+ "eval_steps_per_second": 0.256,
40
+ "step": 8000
41
+ },
42
+ {
43
+ "epoch": 0.59,
44
+ "learning_rate": 1.9261016364353314e-05,
45
+ "loss": 0.1789,
46
+ "step": 12000
47
+ },
48
+ {
49
+ "epoch": 0.59,
50
+ "eval_bleu": 41.6474,
51
+ "eval_gen_len": 34.466,
52
+ "eval_loss": 0.10536406934261322,
53
+ "eval_runtime": 116.1518,
54
+ "eval_samples_per_second": 8.98,
55
+ "eval_steps_per_second": 0.284,
56
+ "step": 12000
57
+ },
58
+ {
59
+ "epoch": 0.79,
60
+ "learning_rate": 1.9014565260252367e-05,
61
+ "loss": 0.1731,
62
+ "step": 16000
63
+ },
64
+ {
65
+ "epoch": 0.79,
66
+ "eval_bleu": 40.7652,
67
+ "eval_gen_len": 36.8926,
68
+ "eval_loss": 0.10414893180131912,
69
+ "eval_runtime": 97.8099,
70
+ "eval_samples_per_second": 10.664,
71
+ "eval_steps_per_second": 0.337,
72
+ "step": 16000
73
+ },
74
+ {
75
+ "epoch": 0.99,
76
+ "learning_rate": 1.8768175768927446e-05,
77
+ "loss": 0.1706,
78
+ "step": 20000
79
+ },
80
+ {
81
+ "epoch": 0.99,
82
+ "eval_bleu": 41.9082,
83
+ "eval_gen_len": 35.7881,
84
+ "eval_loss": 0.10362079739570618,
85
+ "eval_runtime": 108.0775,
86
+ "eval_samples_per_second": 9.65,
87
+ "eval_steps_per_second": 0.305,
88
+ "step": 20000
89
+ },
90
+ {
91
+ "epoch": 1.18,
92
+ "learning_rate": 1.8521786277602524e-05,
93
+ "loss": 0.1583,
94
+ "step": 24000
95
+ },
96
+ {
97
+ "epoch": 1.18,
98
+ "eval_bleu": 42.0588,
99
+ "eval_gen_len": 35.4621,
100
+ "eval_loss": 0.10367583483457565,
101
+ "eval_runtime": 93.0138,
102
+ "eval_samples_per_second": 11.213,
103
+ "eval_steps_per_second": 0.355,
104
+ "step": 24000
105
+ },
106
+ {
107
+ "epoch": 1.38,
108
+ "learning_rate": 1.827545839905363e-05,
109
+ "loss": 0.158,
110
+ "step": 28000
111
+ },
112
+ {
113
+ "epoch": 1.38,
114
+ "eval_bleu": 41.902,
115
+ "eval_gen_len": 35.0499,
116
+ "eval_loss": 0.10282289236783981,
117
+ "eval_runtime": 80.9731,
118
+ "eval_samples_per_second": 12.881,
119
+ "eval_steps_per_second": 0.408,
120
+ "step": 28000
121
+ },
122
+ {
123
+ "epoch": 1.58,
124
+ "learning_rate": 1.8029068907728708e-05,
125
+ "loss": 0.1575,
126
+ "step": 32000
127
+ },
128
+ {
129
+ "epoch": 1.58,
130
+ "eval_bleu": 41.4264,
131
+ "eval_gen_len": 36.1477,
132
+ "eval_loss": 0.10224233567714691,
133
+ "eval_runtime": 103.3427,
134
+ "eval_samples_per_second": 10.093,
135
+ "eval_steps_per_second": 0.319,
136
+ "step": 32000
137
+ },
138
+ {
139
+ "epoch": 1.77,
140
+ "learning_rate": 1.7782679416403786e-05,
141
+ "loss": 0.156,
142
+ "step": 36000
143
+ },
144
+ {
145
+ "epoch": 1.77,
146
+ "eval_bleu": 40.4682,
147
+ "eval_gen_len": 37.5638,
148
+ "eval_loss": 0.10195210576057434,
149
+ "eval_runtime": 92.6522,
150
+ "eval_samples_per_second": 11.257,
151
+ "eval_steps_per_second": 0.356,
152
+ "step": 36000
153
+ },
154
+ {
155
+ "epoch": 1.97,
156
+ "learning_rate": 1.7536351537854893e-05,
157
+ "loss": 0.1551,
158
+ "step": 40000
159
+ },
160
+ {
161
+ "epoch": 1.97,
162
+ "eval_bleu": 42.3418,
163
+ "eval_gen_len": 34.9012,
164
+ "eval_loss": 0.10195144265890121,
165
+ "eval_runtime": 90.4347,
166
+ "eval_samples_per_second": 11.533,
167
+ "eval_steps_per_second": 0.365,
168
+ "step": 40000
169
+ },
170
+ {
171
+ "epoch": 2.17,
172
+ "learning_rate": 1.7289962046529968e-05,
173
+ "loss": 0.1472,
174
+ "step": 44000
175
+ },
176
+ {
177
+ "epoch": 2.17,
178
+ "eval_bleu": 42.3142,
179
+ "eval_gen_len": 35.3931,
180
+ "eval_loss": 0.1024407148361206,
181
+ "eval_runtime": 152.6783,
182
+ "eval_samples_per_second": 6.831,
183
+ "eval_steps_per_second": 0.216,
184
+ "step": 44000
185
+ },
186
+ {
187
+ "epoch": 2.37,
188
+ "learning_rate": 1.7043634167981074e-05,
189
+ "loss": 0.1462,
190
+ "step": 48000
191
+ },
192
+ {
193
+ "epoch": 2.37,
194
+ "eval_bleu": 42.1708,
195
+ "eval_gen_len": 36.0211,
196
+ "eval_loss": 0.10227888822555542,
197
+ "eval_runtime": 112.6072,
198
+ "eval_samples_per_second": 9.262,
199
+ "eval_steps_per_second": 0.293,
200
+ "step": 48000
201
+ },
202
+ {
203
+ "epoch": 2.56,
204
+ "learning_rate": 1.6797367902208205e-05,
205
+ "loss": 0.145,
206
+ "step": 52000
207
+ },
208
+ {
209
+ "epoch": 2.56,
210
+ "eval_bleu": 42.623,
211
+ "eval_gen_len": 34.8207,
212
+ "eval_loss": 0.10177258402109146,
213
+ "eval_runtime": 127.0698,
214
+ "eval_samples_per_second": 8.208,
215
+ "eval_steps_per_second": 0.26,
216
+ "step": 52000
217
+ },
218
+ {
219
+ "epoch": 2.76,
220
+ "learning_rate": 1.6550978410883283e-05,
221
+ "loss": 0.1453,
222
+ "step": 56000
223
+ },
224
+ {
225
+ "epoch": 2.76,
226
+ "eval_bleu": 42.4194,
227
+ "eval_gen_len": 35.5695,
228
+ "eval_loss": 0.1016233041882515,
229
+ "eval_runtime": 98.838,
230
+ "eval_samples_per_second": 10.553,
231
+ "eval_steps_per_second": 0.334,
232
+ "step": 56000
233
+ },
234
+ {
235
+ "epoch": 2.96,
236
+ "learning_rate": 1.6304650532334386e-05,
237
+ "loss": 0.1456,
238
+ "step": 60000
239
+ },
240
+ {
241
+ "epoch": 2.96,
242
+ "eval_bleu": 42.7866,
243
+ "eval_gen_len": 34.2215,
244
+ "eval_loss": 0.10098095238208771,
245
+ "eval_runtime": 105.5395,
246
+ "eval_samples_per_second": 9.883,
247
+ "eval_steps_per_second": 0.313,
248
+ "step": 60000
249
+ },
250
+ {
251
+ "epoch": 3.15,
252
+ "learning_rate": 1.605832265378549e-05,
253
+ "loss": 0.1389,
254
+ "step": 64000
255
+ },
256
+ {
257
+ "epoch": 3.15,
258
+ "eval_bleu": 42.2432,
259
+ "eval_gen_len": 34.4535,
260
+ "eval_loss": 0.10182780027389526,
261
+ "eval_runtime": 201.5414,
262
+ "eval_samples_per_second": 5.175,
263
+ "eval_steps_per_second": 0.164,
264
+ "step": 64000
265
+ },
266
+ {
267
+ "epoch": 3.35,
268
+ "learning_rate": 1.5811994775236596e-05,
269
+ "loss": 0.1383,
270
+ "step": 68000
271
+ },
272
+ {
273
+ "epoch": 3.35,
274
+ "eval_bleu": 42.7387,
275
+ "eval_gen_len": 35.0662,
276
+ "eval_loss": 0.10195136070251465,
277
+ "eval_runtime": 256.6209,
278
+ "eval_samples_per_second": 4.064,
279
+ "eval_steps_per_second": 0.129,
280
+ "step": 68000
281
+ },
282
+ {
283
+ "epoch": 3.55,
284
+ "learning_rate": 1.5565605283911674e-05,
285
+ "loss": 0.1371,
286
+ "step": 72000
287
+ },
288
+ {
289
+ "epoch": 3.55,
290
+ "eval_bleu": 42.4366,
291
+ "eval_gen_len": 34.7402,
292
+ "eval_loss": 0.1019248515367508,
293
+ "eval_runtime": 237.2514,
294
+ "eval_samples_per_second": 4.396,
295
+ "eval_steps_per_second": 0.139,
296
+ "step": 72000
297
+ },
298
+ {
299
+ "epoch": 3.75,
300
+ "learning_rate": 1.5319277405362777e-05,
301
+ "loss": 0.1376,
302
+ "step": 76000
303
+ },
304
+ {
305
+ "epoch": 3.75,
306
+ "eval_bleu": 42.0722,
307
+ "eval_gen_len": 35.9262,
308
+ "eval_loss": 0.10178898274898529,
309
+ "eval_runtime": 101.6353,
310
+ "eval_samples_per_second": 10.262,
311
+ "eval_steps_per_second": 0.325,
312
+ "step": 76000
313
+ },
314
+ {
315
+ "epoch": 3.94,
316
+ "learning_rate": 1.507294952681388e-05,
317
+ "loss": 0.1383,
318
+ "step": 80000
319
+ },
320
+ {
321
+ "epoch": 3.94,
322
+ "eval_bleu": 43.0447,
323
+ "eval_gen_len": 35.4094,
324
+ "eval_loss": 0.10154864192008972,
325
+ "eval_runtime": 86.205,
326
+ "eval_samples_per_second": 12.099,
327
+ "eval_steps_per_second": 0.383,
328
+ "step": 80000
329
+ }
330
+ ],
331
+ "max_steps": 324608,
332
+ "num_train_epochs": 16,
333
+ "total_flos": 1.3796012702564352e+17,
334
+ "trial_name": null,
335
+ "trial_params": null
336
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06d1d3a4cefa501bd9b67bad4da16ae7e5a8dcff893cec61768fee3ede9af152
3
+ size 3707
vocab.json ADDED
The diff for this file is too large to render. See raw diff