Muhammad Umer Tariq Butt commited on
Commit
e723a8d
·
1 Parent(s): 18a2d7c

Upload M2M100 model for rur to ur trained on rup

Browse files
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/netscratch/butt/ru_infil/data/output/models/m2m100_RUR_UR_infilled/checkpoint-52066-2ndchkp",
3
+ "activation_dropout": 0.0,
4
+ "activation_function": "relu",
5
+ "architectures": [
6
+ "M2M100ForConditionalGeneration"
7
+ ],
8
+ "attention_dropout": 0.1,
9
+ "bos_token_id": 0,
10
+ "d_model": 1024,
11
+ "decoder_attention_heads": 16,
12
+ "decoder_ffn_dim": 4096,
13
+ "decoder_layerdrop": 0.05,
14
+ "decoder_layers": 12,
15
+ "decoder_start_token_id": 2,
16
+ "dropout": 0.1,
17
+ "early_stopping": null,
18
+ "encoder_attention_heads": 16,
19
+ "encoder_ffn_dim": 4096,
20
+ "encoder_layerdrop": 0.05,
21
+ "encoder_layers": 12,
22
+ "eos_token_id": 2,
23
+ "gradient_checkpointing": false,
24
+ "init_std": 0.02,
25
+ "is_encoder_decoder": true,
26
+ "max_length": null,
27
+ "max_position_embeddings": 1024,
28
+ "model_type": "m2m_100",
29
+ "num_beams": null,
30
+ "num_hidden_layers": 12,
31
+ "pad_token_id": 1,
32
+ "scale_embedding": true,
33
+ "torch_dtype": "float32",
34
+ "transformers_version": "4.45.2",
35
+ "use_cache": true,
36
+ "vocab_size": 128106
37
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 0,
3
+ "decoder_start_token_id": 2,
4
+ "early_stopping": true,
5
+ "eos_token_id": 2,
6
+ "max_length": 200,
7
+ "num_beams": 5,
8
+ "pad_token_id": 1,
9
+ "transformers_version": "4.45.2"
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb2f965c29c81d36e2f7d45f3484e0d1bc252c666afe8041fa1fe8970825d21f
3
+ size 1935657312
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:371e5c36c641ccab2a3fc50a3a9a2c33f4879594bb5bc784e65cbdae5dde7cc8
3
+ size 4613901
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd815901fd76e36a5e208f6a3407b95ba4ed238f1ee8133d0a2ba9946e324503
3
+ size 14244
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5292f452fef34bf9f2875bf85d69c05d56d28e0612020698e9831a4c002a48ff
3
+ size 1064
trainer_state.json ADDED
@@ -0,0 +1,237 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.012863162904977798,
3
+ "best_model_checkpoint": "/netscratch/butt/Transliterate/RUP/finetuning/data/output_models/with_ur_rur_pretraining/m2m100_rur_ur/checkpoint-49478",
4
+ "epoch": 4.0,
5
+ "eval_steps": 500,
6
+ "global_step": 98957,
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.16168638903766283,
13
+ "grad_norm": 0.7718783617019653,
14
+ "learning_rate": 1.7955627413994434e-06,
15
+ "loss": 3.0935,
16
+ "step": 4000
17
+ },
18
+ {
19
+ "epoch": 0.32337277807532566,
20
+ "grad_norm": 0.20686271786689758,
21
+ "learning_rate": 3.592023713284829e-06,
22
+ "loss": 0.0811,
23
+ "step": 8000
24
+ },
25
+ {
26
+ "epoch": 0.48505916711298847,
27
+ "grad_norm": 0.18024632334709167,
28
+ "learning_rate": 5.388035569927243e-06,
29
+ "loss": 0.045,
30
+ "step": 12000
31
+ },
32
+ {
33
+ "epoch": 0.6467455561506513,
34
+ "grad_norm": 0.12539374828338623,
35
+ "learning_rate": 7.184047426569658e-06,
36
+ "loss": 0.0314,
37
+ "step": 16000
38
+ },
39
+ {
40
+ "epoch": 0.8084319451883141,
41
+ "grad_norm": 0.12748591601848602,
42
+ "learning_rate": 8.979610167969102e-06,
43
+ "loss": 0.0243,
44
+ "step": 20000
45
+ },
46
+ {
47
+ "epoch": 0.9701183342259769,
48
+ "grad_norm": 0.12759284675121307,
49
+ "learning_rate": 9.998165278076701e-06,
50
+ "loss": 0.0199,
51
+ "step": 24000
52
+ },
53
+ {
54
+ "epoch": 0.9999898946006851,
55
+ "eval_bleu_score": 92.68445587158203,
56
+ "eval_loss": 0.0149387763813138,
57
+ "eval_runtime": 83.8315,
58
+ "eval_samples_per_second": 53.679,
59
+ "eval_steps_per_second": 0.847,
60
+ "step": 24739
61
+ },
62
+ {
63
+ "epoch": 1.1318047232636397,
64
+ "grad_norm": 0.09336024522781372,
65
+ "learning_rate": 9.979880503329601e-06,
66
+ "loss": 0.0169,
67
+ "step": 28000
68
+ },
69
+ {
70
+ "epoch": 1.2934911123013026,
71
+ "grad_norm": 0.08670177310705185,
72
+ "learning_rate": 9.942033160194284e-06,
73
+ "loss": 0.0149,
74
+ "step": 32000
75
+ },
76
+ {
77
+ "epoch": 1.4551775013389654,
78
+ "grad_norm": 0.07434108108282089,
79
+ "learning_rate": 9.884742671503474e-06,
80
+ "loss": 0.0131,
81
+ "step": 36000
82
+ },
83
+ {
84
+ "epoch": 1.6168638903766284,
85
+ "grad_norm": 0.10206976532936096,
86
+ "learning_rate": 9.808248316812721e-06,
87
+ "loss": 0.0118,
88
+ "step": 40000
89
+ },
90
+ {
91
+ "epoch": 1.778550279414291,
92
+ "grad_norm": 0.09218324720859528,
93
+ "learning_rate": 9.712877007813296e-06,
94
+ "loss": 0.0109,
95
+ "step": 44000
96
+ },
97
+ {
98
+ "epoch": 1.9402366684519539,
99
+ "grad_norm": 0.0780840739607811,
100
+ "learning_rate": 9.598956005105698e-06,
101
+ "loss": 0.0099,
102
+ "step": 48000
103
+ },
104
+ {
105
+ "epoch": 1.9999797892013702,
106
+ "eval_bleu_score": 93.96910858154297,
107
+ "eval_loss": 0.012863162904977798,
108
+ "eval_runtime": 83.5595,
109
+ "eval_samples_per_second": 53.854,
110
+ "eval_steps_per_second": 0.85,
111
+ "step": 49478
112
+ },
113
+ {
114
+ "epoch": 2.101923057489617,
115
+ "grad_norm": 0.09237009286880493,
116
+ "learning_rate": 9.46702511240559e-06,
117
+ "loss": 0.0089,
118
+ "step": 52000
119
+ },
120
+ {
121
+ "epoch": 2.2636094465272794,
122
+ "grad_norm": 0.0702459067106247,
123
+ "learning_rate": 9.317550119060927e-06,
124
+ "loss": 0.0082,
125
+ "step": 56000
126
+ },
127
+ {
128
+ "epoch": 2.4252958355649423,
129
+ "grad_norm": 0.072722427546978,
130
+ "learning_rate": 9.151030688621687e-06,
131
+ "loss": 0.0076,
132
+ "step": 60000
133
+ },
134
+ {
135
+ "epoch": 2.5869822246026053,
136
+ "grad_norm": 0.08947944641113281,
137
+ "learning_rate": 8.968334974427992e-06,
138
+ "loss": 0.0079,
139
+ "step": 64000
140
+ },
141
+ {
142
+ "epoch": 2.748668613640268,
143
+ "grad_norm": 0.09960344433784485,
144
+ "learning_rate": 8.76990706667961e-06,
145
+ "loss": 0.0068,
146
+ "step": 68000
147
+ },
148
+ {
149
+ "epoch": 2.910355002677931,
150
+ "grad_norm": 0.0603359118103981,
151
+ "learning_rate": 8.556768345618167e-06,
152
+ "loss": 0.0064,
153
+ "step": 72000
154
+ },
155
+ {
156
+ "epoch": 2.9999696838020555,
157
+ "eval_bleu_score": 93.96358489990234,
158
+ "eval_loss": 0.013073681853711605,
159
+ "eval_runtime": 84.3539,
160
+ "eval_samples_per_second": 53.347,
161
+ "eval_steps_per_second": 0.842,
162
+ "step": 74217
163
+ },
164
+ {
165
+ "epoch": 3.0720413917155938,
166
+ "grad_norm": 0.06365238130092621,
167
+ "learning_rate": 8.32960204922676e-06,
168
+ "loss": 0.0059,
169
+ "step": 76000
170
+ },
171
+ {
172
+ "epoch": 3.2337277807532563,
173
+ "grad_norm": 0.05498415231704712,
174
+ "learning_rate": 8.089352305100933e-06,
175
+ "loss": 0.0054,
176
+ "step": 80000
177
+ },
178
+ {
179
+ "epoch": 3.3954141697909193,
180
+ "grad_norm": 0.09993918985128403,
181
+ "learning_rate": 7.83709225538658e-06,
182
+ "loss": 0.0051,
183
+ "step": 84000
184
+ },
185
+ {
186
+ "epoch": 3.5571005588285822,
187
+ "grad_norm": 0.11793253570795059,
188
+ "learning_rate": 7.573493564289276e-06,
189
+ "loss": 0.0049,
190
+ "step": 88000
191
+ },
192
+ {
193
+ "epoch": 3.7187869478662448,
194
+ "grad_norm": 0.07151702791452408,
195
+ "learning_rate": 7.2999862584540295e-06,
196
+ "loss": 0.0047,
197
+ "step": 92000
198
+ },
199
+ {
200
+ "epoch": 3.8804733369039077,
201
+ "grad_norm": 0.05787697434425354,
202
+ "learning_rate": 7.017235169645627e-06,
203
+ "loss": 0.0045,
204
+ "step": 96000
205
+ },
206
+ {
207
+ "epoch": 4.0,
208
+ "eval_bleu_score": 94.14908599853516,
209
+ "eval_loss": 0.013429081067442894,
210
+ "eval_runtime": 84.6704,
211
+ "eval_samples_per_second": 53.147,
212
+ "eval_steps_per_second": 0.839,
213
+ "step": 98957
214
+ }
215
+ ],
216
+ "logging_steps": 4000,
217
+ "max_steps": 222651,
218
+ "num_input_tokens_seen": 0,
219
+ "num_train_epochs": 9,
220
+ "save_steps": 500,
221
+ "stateful_callbacks": {
222
+ "TrainerControl": {
223
+ "args": {
224
+ "should_epoch_stop": false,
225
+ "should_evaluate": false,
226
+ "should_log": false,
227
+ "should_save": true,
228
+ "should_training_stop": false
229
+ },
230
+ "attributes": {}
231
+ }
232
+ },
233
+ "total_flos": 6.809719842363408e+18,
234
+ "train_batch_size": 64,
235
+ "trial_name": null,
236
+ "trial_params": null
237
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e09896a4afd79581f52e0db5907e08255069d8149cf144586480d51ec95fe1aa
3
+ size 5432