Md Mushfiqur Rahman commited on
Commit
5bcf8d7
1 Parent(s): 7d836a8

Upload with huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - canine
5
+ - pretrained-on-english-language
6
+ ---
7
+
8
+ ### How to use
9
+
10
+ Here is how to use this model:
11
+
12
+ ```python
13
+ from transformers import CanineModel
14
+ model = CanineModel.from_pretrained('mushfiqur11/<repo name>')
15
+ ```
all_results.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 111.11,
3
+ "eval_accuracy_score": 0.9452127659574469,
4
+ "eval_f1": 0.6384976525821597,
5
+ "eval_loss": 0.4099084436893463,
6
+ "eval_precision": 0.5811965811965812,
7
+ "eval_recall": 0.7083333333333334,
8
+ "eval_runtime": 1.5713,
9
+ "eval_samples": 200,
10
+ "eval_samples_per_second": 127.284,
11
+ "eval_steps_per_second": 15.91,
12
+ "test_accuracy_score": 0.9453369497183393,
13
+ "test_f1": 0.6607538802660754,
14
+ "test_loss": 0.41320958733558655,
15
+ "test_precision": 0.6201873048907388,
16
+ "test_recall": 0.7069988137603797,
17
+ "test_runtime": 3.1549,
18
+ "test_samples": 407,
19
+ "test_samples_per_second": 129.006,
20
+ "test_steps_per_second": 16.165,
21
+ "train_loss": 0.03932533206939697,
22
+ "train_runtime": 4566.7466,
23
+ "train_samples": 1428,
24
+ "train_samples_per_second": 105.108,
25
+ "train_steps_per_second": 3.285
26
+ }
config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/canine-c",
3
+ "architectures": [
4
+ "CanineForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 57344,
8
+ "downsampling_rate": 4,
9
+ "eos_token_id": 57345,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "O",
15
+ "1": "B-DATE",
16
+ "2": "I-DATE",
17
+ "3": "B-PER",
18
+ "4": "I-PER",
19
+ "5": "B-ORG",
20
+ "6": "I-ORG",
21
+ "7": "B-LOC",
22
+ "8": "I-LOC"
23
+ },
24
+ "initializer_range": 0.02,
25
+ "intermediate_size": 3072,
26
+ "label2id": {
27
+ "B-DATE": 1,
28
+ "B-LOC": 7,
29
+ "B-ORG": 5,
30
+ "B-PER": 3,
31
+ "I-DATE": 2,
32
+ "I-LOC": 8,
33
+ "I-ORG": 6,
34
+ "I-PER": 4,
35
+ "O": 0
36
+ },
37
+ "layer_norm_eps": 1e-12,
38
+ "local_transformer_stride": 128,
39
+ "max_position_embeddings": 16384,
40
+ "model_type": "canine",
41
+ "num_attention_heads": 12,
42
+ "num_hash_buckets": 16384,
43
+ "num_hash_functions": 8,
44
+ "num_hidden_layers": 12,
45
+ "pad_token_id": 0,
46
+ "torch_dtype": "float32",
47
+ "transformers_version": "4.17.0",
48
+ "type_vocab_size": 16,
49
+ "upsampling_kernel_size": 4,
50
+ "use_cache": true
51
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:124cce149f2f67f2dd402ff7a4ea21ab2ed466d264629e122a966ed3dfda7372
3
+ size 528594737
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": {"content": "", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "eos_token": {"content": "", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "sep_token": {"content": "", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "pad_token": {"content": "\u0000", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "cls_token": {"content": "", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "mask_token": {"content": "", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true}}
test_predictions.txt ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": {"content": "", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "eos_token": {"content": "", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "sep_token": {"content": "", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "cls_token": {"content": "", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "pad_token": {"content": "\u0000", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "mask_token": {"content": "", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "add_prefix_space": false, "model_max_length": 2048, "special_tokens_map_file": "/home/mrahma45/.cache/huggingface/transformers/f8be97736b4765e3e8d559b4e7d4f1f531b1621150e5344b600684a27bc84e38.ab71f530366fe02e2834427e7b90198bfd0d573bc4279bfafdb2b95fe2b46dde", "name_or_path": "google/canine-c", "tokenizer_class": "CanineTokenizer"}
trainer_state.json ADDED
@@ -0,0 +1,385 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.6384976525821597,
3
+ "best_model_checkpoint": "/scratch/mrahma45/pixel/finetuned_models/canine/canine-base-finetuned-masakhaner-lug/checkpoint-4000",
4
+ "epoch": 111.11111111111111,
5
+ "global_step": 5000,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 4.44,
12
+ "eval_accuracy_score": 0.9188829787234043,
13
+ "eval_f1": 0.4549483013293944,
14
+ "eval_loss": 0.28194382786750793,
15
+ "eval_precision": 0.39588688946015427,
16
+ "eval_recall": 0.5347222222222222,
17
+ "eval_runtime": 1.5521,
18
+ "eval_samples_per_second": 128.858,
19
+ "eval_steps_per_second": 16.107,
20
+ "step": 200
21
+ },
22
+ {
23
+ "epoch": 8.89,
24
+ "eval_accuracy_score": 0.9319148936170213,
25
+ "eval_f1": 0.5022692889561271,
26
+ "eval_loss": 0.23164795339107513,
27
+ "eval_precision": 0.4450402144772118,
28
+ "eval_recall": 0.5763888888888888,
29
+ "eval_runtime": 1.5532,
30
+ "eval_samples_per_second": 128.769,
31
+ "eval_steps_per_second": 16.096,
32
+ "step": 400
33
+ },
34
+ {
35
+ "epoch": 11.11,
36
+ "learning_rate": 4.865771812080537e-05,
37
+ "loss": 0.3392,
38
+ "step": 500
39
+ },
40
+ {
41
+ "epoch": 13.33,
42
+ "eval_accuracy_score": 0.9404255319148936,
43
+ "eval_f1": 0.5803432137285492,
44
+ "eval_loss": 0.24918590486049652,
45
+ "eval_precision": 0.5269121813031161,
46
+ "eval_recall": 0.6458333333333334,
47
+ "eval_runtime": 1.554,
48
+ "eval_samples_per_second": 128.702,
49
+ "eval_steps_per_second": 16.088,
50
+ "step": 600
51
+ },
52
+ {
53
+ "epoch": 17.78,
54
+ "eval_accuracy_score": 0.9393617021276596,
55
+ "eval_f1": 0.5824345146379044,
56
+ "eval_loss": 0.2939892113208771,
57
+ "eval_precision": 0.5235457063711911,
58
+ "eval_recall": 0.65625,
59
+ "eval_runtime": 1.5535,
60
+ "eval_samples_per_second": 128.742,
61
+ "eval_steps_per_second": 16.093,
62
+ "step": 800
63
+ },
64
+ {
65
+ "epoch": 22.22,
66
+ "learning_rate": 4.697986577181208e-05,
67
+ "loss": 0.0281,
68
+ "step": 1000
69
+ },
70
+ {
71
+ "epoch": 22.22,
72
+ "eval_accuracy_score": 0.938031914893617,
73
+ "eval_f1": 0.5736196319018405,
74
+ "eval_loss": 0.3271344006061554,
75
+ "eval_precision": 0.5137362637362637,
76
+ "eval_recall": 0.6493055555555556,
77
+ "eval_runtime": 1.5497,
78
+ "eval_samples_per_second": 129.061,
79
+ "eval_steps_per_second": 16.133,
80
+ "step": 1000
81
+ },
82
+ {
83
+ "epoch": 26.67,
84
+ "eval_accuracy_score": 0.9428191489361702,
85
+ "eval_f1": 0.6137071651090343,
86
+ "eval_loss": 0.33916962146759033,
87
+ "eval_precision": 0.556497175141243,
88
+ "eval_recall": 0.6840277777777778,
89
+ "eval_runtime": 1.5523,
90
+ "eval_samples_per_second": 128.842,
91
+ "eval_steps_per_second": 16.105,
92
+ "step": 1200
93
+ },
94
+ {
95
+ "epoch": 31.11,
96
+ "eval_accuracy_score": 0.9417553191489362,
97
+ "eval_f1": 0.6140089418777943,
98
+ "eval_loss": 0.35398396849632263,
99
+ "eval_precision": 0.5378590078328982,
100
+ "eval_recall": 0.7152777777777778,
101
+ "eval_runtime": 1.5487,
102
+ "eval_samples_per_second": 129.144,
103
+ "eval_steps_per_second": 16.143,
104
+ "step": 1400
105
+ },
106
+ {
107
+ "epoch": 33.33,
108
+ "learning_rate": 4.530201342281879e-05,
109
+ "loss": 0.0079,
110
+ "step": 1500
111
+ },
112
+ {
113
+ "epoch": 35.56,
114
+ "eval_accuracy_score": 0.936968085106383,
115
+ "eval_f1": 0.5443425076452598,
116
+ "eval_loss": 0.3693486750125885,
117
+ "eval_precision": 0.48633879781420764,
118
+ "eval_recall": 0.6180555555555556,
119
+ "eval_runtime": 1.5536,
120
+ "eval_samples_per_second": 128.737,
121
+ "eval_steps_per_second": 16.092,
122
+ "step": 1600
123
+ },
124
+ {
125
+ "epoch": 40.0,
126
+ "eval_accuracy_score": 0.9388297872340425,
127
+ "eval_f1": 0.5816485225505443,
128
+ "eval_loss": 0.37097564339637756,
129
+ "eval_precision": 0.5267605633802817,
130
+ "eval_recall": 0.6493055555555556,
131
+ "eval_runtime": 1.5551,
132
+ "eval_samples_per_second": 128.607,
133
+ "eval_steps_per_second": 16.076,
134
+ "step": 1800
135
+ },
136
+ {
137
+ "epoch": 44.44,
138
+ "learning_rate": 4.36241610738255e-05,
139
+ "loss": 0.0044,
140
+ "step": 2000
141
+ },
142
+ {
143
+ "epoch": 44.44,
144
+ "eval_accuracy_score": 0.9438829787234042,
145
+ "eval_f1": 0.6108527131782945,
146
+ "eval_loss": 0.3714268207550049,
147
+ "eval_precision": 0.5518207282913166,
148
+ "eval_recall": 0.6840277777777778,
149
+ "eval_runtime": 1.5499,
150
+ "eval_samples_per_second": 129.039,
151
+ "eval_steps_per_second": 16.13,
152
+ "step": 2000
153
+ },
154
+ {
155
+ "epoch": 48.89,
156
+ "eval_accuracy_score": 0.9417553191489362,
157
+ "eval_f1": 0.5919003115264797,
158
+ "eval_loss": 0.39195337891578674,
159
+ "eval_precision": 0.536723163841808,
160
+ "eval_recall": 0.6597222222222222,
161
+ "eval_runtime": 1.5549,
162
+ "eval_samples_per_second": 128.623,
163
+ "eval_steps_per_second": 16.078,
164
+ "step": 2200
165
+ },
166
+ {
167
+ "epoch": 53.33,
168
+ "eval_accuracy_score": 0.9430851063829787,
169
+ "eval_f1": 0.6217457886676876,
170
+ "eval_loss": 0.3815304636955261,
171
+ "eval_precision": 0.5561643835616439,
172
+ "eval_recall": 0.7048611111111112,
173
+ "eval_runtime": 1.5558,
174
+ "eval_samples_per_second": 128.549,
175
+ "eval_steps_per_second": 16.069,
176
+ "step": 2400
177
+ },
178
+ {
179
+ "epoch": 55.56,
180
+ "learning_rate": 4.194630872483222e-05,
181
+ "loss": 0.0035,
182
+ "step": 2500
183
+ },
184
+ {
185
+ "epoch": 57.78,
186
+ "eval_accuracy_score": 0.9409574468085107,
187
+ "eval_f1": 0.6037151702786376,
188
+ "eval_loss": 0.393964946269989,
189
+ "eval_precision": 0.5446927374301676,
190
+ "eval_recall": 0.6770833333333334,
191
+ "eval_runtime": 1.5537,
192
+ "eval_samples_per_second": 128.722,
193
+ "eval_steps_per_second": 16.09,
194
+ "step": 2600
195
+ },
196
+ {
197
+ "epoch": 62.22,
198
+ "eval_accuracy_score": 0.9438829787234042,
199
+ "eval_f1": 0.6151419558359622,
200
+ "eval_loss": 0.40122151374816895,
201
+ "eval_precision": 0.5635838150289018,
202
+ "eval_recall": 0.6770833333333334,
203
+ "eval_runtime": 1.554,
204
+ "eval_samples_per_second": 128.699,
205
+ "eval_steps_per_second": 16.087,
206
+ "step": 2800
207
+ },
208
+ {
209
+ "epoch": 66.67,
210
+ "learning_rate": 4.026845637583892e-05,
211
+ "loss": 0.0027,
212
+ "step": 3000
213
+ },
214
+ {
215
+ "epoch": 66.67,
216
+ "eval_accuracy_score": 0.9457446808510638,
217
+ "eval_f1": 0.6283048211508553,
218
+ "eval_loss": 0.38126349449157715,
219
+ "eval_precision": 0.5690140845070423,
220
+ "eval_recall": 0.7013888888888888,
221
+ "eval_runtime": 1.5565,
222
+ "eval_samples_per_second": 128.492,
223
+ "eval_steps_per_second": 16.062,
224
+ "step": 3000
225
+ },
226
+ {
227
+ "epoch": 71.11,
228
+ "eval_accuracy_score": 0.9468085106382979,
229
+ "eval_f1": 0.6286594761171033,
230
+ "eval_loss": 0.3913482427597046,
231
+ "eval_precision": 0.5650969529085873,
232
+ "eval_recall": 0.7083333333333334,
233
+ "eval_runtime": 1.5517,
234
+ "eval_samples_per_second": 128.887,
235
+ "eval_steps_per_second": 16.111,
236
+ "step": 3200
237
+ },
238
+ {
239
+ "epoch": 75.56,
240
+ "eval_accuracy_score": 0.9441489361702128,
241
+ "eval_f1": 0.6101694915254237,
242
+ "eval_loss": 0.3978583514690399,
243
+ "eval_precision": 0.5484764542936288,
244
+ "eval_recall": 0.6875,
245
+ "eval_runtime": 1.5532,
246
+ "eval_samples_per_second": 128.765,
247
+ "eval_steps_per_second": 16.096,
248
+ "step": 3400
249
+ },
250
+ {
251
+ "epoch": 77.78,
252
+ "learning_rate": 3.859060402684564e-05,
253
+ "loss": 0.002,
254
+ "step": 3500
255
+ },
256
+ {
257
+ "epoch": 80.0,
258
+ "eval_accuracy_score": 0.9438829787234042,
259
+ "eval_f1": 0.6124999999999999,
260
+ "eval_loss": 0.4034854769706726,
261
+ "eval_precision": 0.5568181818181818,
262
+ "eval_recall": 0.6805555555555556,
263
+ "eval_runtime": 1.5526,
264
+ "eval_samples_per_second": 128.817,
265
+ "eval_steps_per_second": 16.102,
266
+ "step": 3600
267
+ },
268
+ {
269
+ "epoch": 84.44,
270
+ "eval_accuracy_score": 0.9406914893617021,
271
+ "eval_f1": 0.5878693623639192,
272
+ "eval_loss": 0.4116753339767456,
273
+ "eval_precision": 0.532394366197183,
274
+ "eval_recall": 0.65625,
275
+ "eval_runtime": 1.553,
276
+ "eval_samples_per_second": 128.782,
277
+ "eval_steps_per_second": 16.098,
278
+ "step": 3800
279
+ },
280
+ {
281
+ "epoch": 88.89,
282
+ "learning_rate": 3.6912751677852356e-05,
283
+ "loss": 0.0019,
284
+ "step": 4000
285
+ },
286
+ {
287
+ "epoch": 88.89,
288
+ "eval_accuracy_score": 0.9452127659574469,
289
+ "eval_f1": 0.6384976525821597,
290
+ "eval_loss": 0.4099084436893463,
291
+ "eval_precision": 0.5811965811965812,
292
+ "eval_recall": 0.7083333333333334,
293
+ "eval_runtime": 1.5503,
294
+ "eval_samples_per_second": 129.007,
295
+ "eval_steps_per_second": 16.126,
296
+ "step": 4000
297
+ },
298
+ {
299
+ "epoch": 93.33,
300
+ "eval_accuracy_score": 0.9430851063829787,
301
+ "eval_f1": 0.6128048780487805,
302
+ "eval_loss": 0.40775445103645325,
303
+ "eval_precision": 0.5461956521739131,
304
+ "eval_recall": 0.6979166666666666,
305
+ "eval_runtime": 1.5487,
306
+ "eval_samples_per_second": 129.145,
307
+ "eval_steps_per_second": 16.143,
308
+ "step": 4200
309
+ },
310
+ {
311
+ "epoch": 97.78,
312
+ "eval_accuracy_score": 0.9382978723404255,
313
+ "eval_f1": 0.5794392523364487,
314
+ "eval_loss": 0.4453897178173065,
315
+ "eval_precision": 0.5254237288135594,
316
+ "eval_recall": 0.6458333333333334,
317
+ "eval_runtime": 1.5505,
318
+ "eval_samples_per_second": 128.991,
319
+ "eval_steps_per_second": 16.124,
320
+ "step": 4400
321
+ },
322
+ {
323
+ "epoch": 100.0,
324
+ "learning_rate": 3.523489932885906e-05,
325
+ "loss": 0.0019,
326
+ "step": 4500
327
+ },
328
+ {
329
+ "epoch": 102.22,
330
+ "eval_accuracy_score": 0.9382978723404255,
331
+ "eval_f1": 0.5775075987841946,
332
+ "eval_loss": 0.4396846294403076,
333
+ "eval_precision": 0.5135135135135135,
334
+ "eval_recall": 0.6597222222222222,
335
+ "eval_runtime": 1.5553,
336
+ "eval_samples_per_second": 128.593,
337
+ "eval_steps_per_second": 16.074,
338
+ "step": 4600
339
+ },
340
+ {
341
+ "epoch": 106.67,
342
+ "eval_accuracy_score": 0.9414893617021277,
343
+ "eval_f1": 0.5940902021772939,
344
+ "eval_loss": 0.4597267806529999,
345
+ "eval_precision": 0.5380281690140845,
346
+ "eval_recall": 0.6631944444444444,
347
+ "eval_runtime": 1.5543,
348
+ "eval_samples_per_second": 128.675,
349
+ "eval_steps_per_second": 16.084,
350
+ "step": 4800
351
+ },
352
+ {
353
+ "epoch": 111.11,
354
+ "learning_rate": 3.3557046979865775e-05,
355
+ "loss": 0.0015,
356
+ "step": 5000
357
+ },
358
+ {
359
+ "epoch": 111.11,
360
+ "eval_accuracy_score": 0.9412234042553191,
361
+ "eval_f1": 0.6172465960665658,
362
+ "eval_loss": 0.45369622111320496,
363
+ "eval_precision": 0.546916890080429,
364
+ "eval_recall": 0.7083333333333334,
365
+ "eval_runtime": 1.5477,
366
+ "eval_samples_per_second": 129.225,
367
+ "eval_steps_per_second": 16.153,
368
+ "step": 5000
369
+ },
370
+ {
371
+ "epoch": 111.11,
372
+ "step": 5000,
373
+ "total_flos": 2.6055896102406144e+16,
374
+ "train_loss": 0.03932533206939697,
375
+ "train_runtime": 4566.7466,
376
+ "train_samples_per_second": 105.108,
377
+ "train_steps_per_second": 3.285
378
+ }
379
+ ],
380
+ "max_steps": 15000,
381
+ "num_train_epochs": 334,
382
+ "total_flos": 2.6055896102406144e+16,
383
+ "trial_name": null,
384
+ "trial_params": null
385
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:366d990cbb7528c5986d2bd7b72f79498179c65e2749ee5e7a2a9b4eee83c4f0
3
+ size 3259