maayanorner commited on
Commit
06440c0
1 Parent(s): 64e6f62

Upload 11 files

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ vocab.txt filter=lfs diff=lfs merge=lfs -text
config.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dicta-il/dictabert",
3
+ "architectures": [
4
+ "BertForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "ORG",
14
+ "1": "MISC",
15
+ "2": "FAC",
16
+ "3": "TTL",
17
+ "4": "LOC",
18
+ "5": "GPE",
19
+ "6": "INFORMAL",
20
+ "7": "ANG",
21
+ "8": "TIMEX",
22
+ "9": "DUC",
23
+ "10": "PER",
24
+ "11": "O",
25
+ "12": "EVE",
26
+ "13": "WOA"
27
+ },
28
+ "initializer_range": 0.02,
29
+ "intermediate_size": 3072,
30
+ "label2id": {
31
+ "ORG": 0,
32
+ "MISC": 1,
33
+ "PER": 10,
34
+ "O": 11,
35
+ "EVE": 12,
36
+ "WOA": 13,
37
+ "FAC": 2,
38
+ "TTL": 3,
39
+ "LOC": 4,
40
+ "GPE": 5,
41
+ "INFORMAL": 6,
42
+ "ANG": 7,
43
+ "TIMEX": 8,
44
+ "DUC": 9
45
+ },
46
+ "layer_norm_eps": 1e-12,
47
+ "max_position_embeddings": 512,
48
+ "model_type": "bert",
49
+ "newmodern": true,
50
+ "num_attention_heads": 12,
51
+ "num_hidden_layers": 12,
52
+ "pad_token_id": 0,
53
+ "position_embedding_type": "absolute",
54
+ "torch_dtype": "float32",
55
+ "transformers_version": "4.42.4",
56
+ "type_vocab_size": 2,
57
+ "use_cache": true,
58
+ "vocab_size": 128000
59
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a372f31064920f3b1f79ac810c4d9d83ec1d2b1e6850f192965b775383908b7
3
+ size 735085432
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da8d3b19028e5633e60a9f21b59c1f614805e4bbcd700e2e2c0bcee1b1f5cfbb
3
+ size 1470290490
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e173b21a767068b1048c990e8a5ee631964cd0880e692d5dd452080b9e1747f
3
+ size 14244
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88b273f2b3bf59a1006b87c821aaf5ea02557fad89e0f4ae85e9ecaef3407bd0
3
+ size 1064
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[UNK]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "[CLS]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[SEP]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[PAD]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "5": {
44
+ "content": "[BLANK]",
45
+ "lstrip": false,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": true
50
+ }
51
+ },
52
+ "clean_up_tokenization_spaces": true,
53
+ "cls_token": "[CLS]",
54
+ "do_lower_case": true,
55
+ "mask_token": "[MASK]",
56
+ "model_max_length": 512,
57
+ "pad_token": "[PAD]",
58
+ "sep_token": "[SEP]",
59
+ "strip_accents": null,
60
+ "tokenize_chinese_chars": true,
61
+ "tokenizer_class": "BertTokenizer",
62
+ "unk_token": "[UNK]"
63
+ }
trainer_state.json ADDED
@@ -0,0 +1,242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.8460751725901304,
3
+ "best_model_checkpoint": "./ner_models/checkpoint-5500",
4
+ "epoch": 6.053935057787562,
5
+ "eval_steps": 500,
6
+ "global_step": 5500,
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.550357732526142,
13
+ "grad_norm": 0.050229188054800034,
14
+ "learning_rate": 9.816446402349487e-06,
15
+ "loss": 0.0026,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 0.550357732526142,
20
+ "eval_accuracy": 0.9978579452614379,
21
+ "eval_f1": 0.8398829963118403,
22
+ "eval_loss": 0.008182315155863762,
23
+ "eval_precision": 0.8228258160976826,
24
+ "eval_recall": 0.8576623376623377,
25
+ "eval_runtime": 73.1795,
26
+ "eval_samples_per_second": 20.907,
27
+ "eval_steps_per_second": 2.624,
28
+ "step": 500
29
+ },
30
+ {
31
+ "epoch": 1.100715465052284,
32
+ "grad_norm": 0.042086161673069,
33
+ "learning_rate": 9.632892804698973e-06,
34
+ "loss": 0.0021,
35
+ "step": 1000
36
+ },
37
+ {
38
+ "epoch": 1.100715465052284,
39
+ "eval_accuracy": 0.9978592218137254,
40
+ "eval_f1": 0.8371327254305978,
41
+ "eval_loss": 0.008798174560070038,
42
+ "eval_precision": 0.8168561542263965,
43
+ "eval_recall": 0.8584415584415584,
44
+ "eval_runtime": 73.2746,
45
+ "eval_samples_per_second": 20.88,
46
+ "eval_steps_per_second": 2.62,
47
+ "step": 1000
48
+ },
49
+ {
50
+ "epoch": 1.6510731975784259,
51
+ "grad_norm": 0.038026291877031326,
52
+ "learning_rate": 9.449339207048459e-06,
53
+ "loss": 0.0018,
54
+ "step": 1500
55
+ },
56
+ {
57
+ "epoch": 1.6510731975784259,
58
+ "eval_accuracy": 0.9978387969771242,
59
+ "eval_f1": 0.8427194317605277,
60
+ "eval_loss": 0.009040649980306625,
61
+ "eval_precision": 0.8235002478929102,
62
+ "eval_recall": 0.8628571428571429,
63
+ "eval_runtime": 73.0885,
64
+ "eval_samples_per_second": 20.934,
65
+ "eval_steps_per_second": 2.627,
66
+ "step": 1500
67
+ },
68
+ {
69
+ "epoch": 2.201430930104568,
70
+ "grad_norm": 0.022481152787804604,
71
+ "learning_rate": 9.265785609397945e-06,
72
+ "loss": 0.0017,
73
+ "step": 2000
74
+ },
75
+ {
76
+ "epoch": 2.201430930104568,
77
+ "eval_accuracy": 0.9978349673202614,
78
+ "eval_f1": 0.839443096180866,
79
+ "eval_loss": 0.009410908445715904,
80
+ "eval_precision": 0.8258356370947474,
81
+ "eval_recall": 0.8535064935064935,
82
+ "eval_runtime": 73.3567,
83
+ "eval_samples_per_second": 20.857,
84
+ "eval_steps_per_second": 2.617,
85
+ "step": 2000
86
+ },
87
+ {
88
+ "epoch": 2.7517886626307098,
89
+ "grad_norm": 0.04910328611731529,
90
+ "learning_rate": 9.08223201174743e-06,
91
+ "loss": 0.0014,
92
+ "step": 2500
93
+ },
94
+ {
95
+ "epoch": 2.7517886626307098,
96
+ "eval_accuracy": 0.9978770935457516,
97
+ "eval_f1": 0.8429856798884806,
98
+ "eval_loss": 0.009695506654679775,
99
+ "eval_precision": 0.8230635981192774,
100
+ "eval_recall": 0.8638961038961039,
101
+ "eval_runtime": 72.9707,
102
+ "eval_samples_per_second": 20.967,
103
+ "eval_steps_per_second": 2.631,
104
+ "step": 2500
105
+ },
106
+ {
107
+ "epoch": 3.3021463951568517,
108
+ "grad_norm": 0.028137343004345894,
109
+ "learning_rate": 8.898678414096917e-06,
110
+ "loss": 0.0013,
111
+ "step": 3000
112
+ },
113
+ {
114
+ "epoch": 3.3021463951568517,
115
+ "eval_accuracy": 0.997820925245098,
116
+ "eval_f1": 0.8397394968714085,
117
+ "eval_loss": 0.010312107391655445,
118
+ "eval_precision": 0.825923134890731,
119
+ "eval_recall": 0.854025974025974,
120
+ "eval_runtime": 72.7223,
121
+ "eval_samples_per_second": 21.039,
122
+ "eval_steps_per_second": 2.64,
123
+ "step": 3000
124
+ },
125
+ {
126
+ "epoch": 3.852504127682994,
127
+ "grad_norm": 0.08884348720312119,
128
+ "learning_rate": 8.715124816446402e-06,
129
+ "loss": 0.0011,
130
+ "step": 3500
131
+ },
132
+ {
133
+ "epoch": 3.852504127682994,
134
+ "eval_accuracy": 0.997820925245098,
135
+ "eval_f1": 0.840376782077393,
136
+ "eval_loss": 0.01055143028497696,
137
+ "eval_precision": 0.8240139790314528,
138
+ "eval_recall": 0.8574025974025974,
139
+ "eval_runtime": 73.053,
140
+ "eval_samples_per_second": 20.944,
141
+ "eval_steps_per_second": 2.628,
142
+ "step": 3500
143
+ },
144
+ {
145
+ "epoch": 4.402861860209136,
146
+ "grad_norm": 0.02799968421459198,
147
+ "learning_rate": 8.531571218795888e-06,
148
+ "loss": 0.001,
149
+ "step": 4000
150
+ },
151
+ {
152
+ "epoch": 4.402861860209136,
153
+ "eval_accuracy": 0.9978222017973856,
154
+ "eval_f1": 0.8401733367320928,
155
+ "eval_loss": 0.011290175840258598,
156
+ "eval_precision": 0.8248248248248248,
157
+ "eval_recall": 0.8561038961038961,
158
+ "eval_runtime": 72.7847,
159
+ "eval_samples_per_second": 21.021,
160
+ "eval_steps_per_second": 2.638,
161
+ "step": 4000
162
+ },
163
+ {
164
+ "epoch": 4.953219592735278,
165
+ "grad_norm": 0.041495781391859055,
166
+ "learning_rate": 8.348017621145376e-06,
167
+ "loss": 0.0009,
168
+ "step": 4500
169
+ },
170
+ {
171
+ "epoch": 4.953219592735278,
172
+ "eval_accuracy": 0.9977736928104575,
173
+ "eval_f1": 0.8377070063694267,
174
+ "eval_loss": 0.011407433077692986,
175
+ "eval_precision": 0.822,
176
+ "eval_recall": 0.854025974025974,
177
+ "eval_runtime": 73.0522,
178
+ "eval_samples_per_second": 20.944,
179
+ "eval_steps_per_second": 2.628,
180
+ "step": 4500
181
+ },
182
+ {
183
+ "epoch": 5.5035773252614195,
184
+ "grad_norm": 0.06250575184822083,
185
+ "learning_rate": 8.164464023494862e-06,
186
+ "loss": 0.0012,
187
+ "step": 5000
188
+ },
189
+ {
190
+ "epoch": 5.5035773252614195,
191
+ "eval_accuracy": 0.9977622038398692,
192
+ "eval_f1": 0.8407464212678937,
193
+ "eval_loss": 0.01091926172375679,
194
+ "eval_precision": 0.8276295923502768,
195
+ "eval_recall": 0.8542857142857143,
196
+ "eval_runtime": 75.4389,
197
+ "eval_samples_per_second": 20.281,
198
+ "eval_steps_per_second": 2.545,
199
+ "step": 5000
200
+ },
201
+ {
202
+ "epoch": 6.053935057787562,
203
+ "grad_norm": 0.05719891935586929,
204
+ "learning_rate": 7.980910425844346e-06,
205
+ "loss": 0.0014,
206
+ "step": 5500
207
+ },
208
+ {
209
+ "epoch": 6.053935057787562,
210
+ "eval_accuracy": 0.9978017769607843,
211
+ "eval_f1": 0.8460751725901304,
212
+ "eval_loss": 0.010837742127478123,
213
+ "eval_precision": 0.8330815709969789,
214
+ "eval_recall": 0.8594805194805195,
215
+ "eval_runtime": 76.2331,
216
+ "eval_samples_per_second": 20.07,
217
+ "eval_steps_per_second": 2.519,
218
+ "step": 5500
219
+ }
220
+ ],
221
+ "logging_steps": 500,
222
+ "max_steps": 27240,
223
+ "num_input_tokens_seen": 0,
224
+ "num_train_epochs": 30,
225
+ "save_steps": 500,
226
+ "stateful_callbacks": {
227
+ "TrainerControl": {
228
+ "args": {
229
+ "should_epoch_stop": false,
230
+ "should_evaluate": false,
231
+ "should_log": false,
232
+ "should_save": true,
233
+ "should_training_stop": false
234
+ },
235
+ "attributes": {}
236
+ }
237
+ },
238
+ "total_flos": 4.597283514855014e+16,
239
+ "train_batch_size": 16,
240
+ "trial_name": null,
241
+ "trial_params": null
242
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:551b8ab26bb213e8fedc49cd64f12068ca00899640ed06d9f4207cd60f55ad50
3
+ size 5112
vocab.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0fb90bfa35244d26f0065d1fcd0b5becc3da3d44d616a7e2aacaf6320b9fa2d0
3
+ size 1500244