mertunsal commited on
Commit
603f9d5
1 Parent(s): 2910290

Add files using upload-large-folder tool

Browse files
added_tokens.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "<<ENT>>": 128002,
3
+ "<<SEP>>": 128003,
4
+ "[FLERT]": 128001,
5
+ "[MASK]": 128000
6
+ }
checkpoint-50000/added_tokens.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "<<ENT>>": 128002,
3
+ "<<SEP>>": 128003,
4
+ "[FLERT]": 128001,
5
+ "[MASK]": 128000
6
+ }
checkpoint-50000/gliner_config.json ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "class_token_index": 128002,
3
+ "dropout": 0.1,
4
+ "embed_ent_token": true,
5
+ "encoder_config": {
6
+ "_name_or_path": "microsoft/deberta-v3-large",
7
+ "add_cross_attention": false,
8
+ "architectures": null,
9
+ "attention_probs_dropout_prob": 0.1,
10
+ "bad_words_ids": null,
11
+ "begin_suppress_tokens": null,
12
+ "bos_token_id": null,
13
+ "chunk_size_feed_forward": 0,
14
+ "cross_attention_hidden_size": null,
15
+ "decoder_start_token_id": null,
16
+ "diversity_penalty": 0.0,
17
+ "do_sample": false,
18
+ "early_stopping": false,
19
+ "encoder_no_repeat_ngram_size": 0,
20
+ "eos_token_id": null,
21
+ "exponential_decay_length_penalty": null,
22
+ "finetuning_task": null,
23
+ "forced_bos_token_id": null,
24
+ "forced_eos_token_id": null,
25
+ "hidden_act": "gelu",
26
+ "hidden_dropout_prob": 0.1,
27
+ "hidden_size": 1024,
28
+ "id2label": {
29
+ "0": "LABEL_0",
30
+ "1": "LABEL_1"
31
+ },
32
+ "initializer_range": 0.02,
33
+ "intermediate_size": 4096,
34
+ "is_decoder": false,
35
+ "is_encoder_decoder": false,
36
+ "label2id": {
37
+ "LABEL_0": 0,
38
+ "LABEL_1": 1
39
+ },
40
+ "layer_norm_eps": 1e-07,
41
+ "length_penalty": 1.0,
42
+ "max_length": 20,
43
+ "max_position_embeddings": 512,
44
+ "max_relative_positions": -1,
45
+ "min_length": 0,
46
+ "model_type": "deberta-v2",
47
+ "no_repeat_ngram_size": 0,
48
+ "norm_rel_ebd": "layer_norm",
49
+ "num_attention_heads": 16,
50
+ "num_beam_groups": 1,
51
+ "num_beams": 1,
52
+ "num_hidden_layers": 24,
53
+ "num_return_sequences": 1,
54
+ "output_attentions": false,
55
+ "output_hidden_states": false,
56
+ "output_scores": false,
57
+ "pad_token_id": 0,
58
+ "pooler_dropout": 0,
59
+ "pooler_hidden_act": "gelu",
60
+ "pooler_hidden_size": 1024,
61
+ "pos_att_type": [
62
+ "p2c",
63
+ "c2p"
64
+ ],
65
+ "position_biased_input": false,
66
+ "position_buckets": 256,
67
+ "prefix": null,
68
+ "problem_type": null,
69
+ "pruned_heads": {},
70
+ "relative_attention": true,
71
+ "remove_invalid_values": false,
72
+ "repetition_penalty": 1.0,
73
+ "return_dict": true,
74
+ "return_dict_in_generate": false,
75
+ "sep_token_id": null,
76
+ "share_att_key": true,
77
+ "suppress_tokens": null,
78
+ "task_specific_params": null,
79
+ "temperature": 1.0,
80
+ "tf_legacy_loss": false,
81
+ "tie_encoder_decoder": false,
82
+ "tie_word_embeddings": true,
83
+ "tokenizer_class": null,
84
+ "top_k": 50,
85
+ "top_p": 1.0,
86
+ "torch_dtype": null,
87
+ "torchscript": false,
88
+ "type_vocab_size": 0,
89
+ "typical_p": 1.0,
90
+ "use_bfloat16": false,
91
+ "vocab_size": 128004
92
+ },
93
+ "ent_token": "<<ENT>>",
94
+ "eval_every": 1000,
95
+ "fine_tune": true,
96
+ "freeze_token_rep": false,
97
+ "fuse_layers": false,
98
+ "has_rnn": true,
99
+ "hidden_size": 512,
100
+ "labels_encoder": null,
101
+ "labels_encoder_config": null,
102
+ "log_dir": "logs_final",
103
+ "loss_alpha": 0.75,
104
+ "loss_gamma": 0,
105
+ "loss_reduction": "sum",
106
+ "lr_encoder": "5e-6",
107
+ "lr_others": "7e-6",
108
+ "max_len": 768,
109
+ "max_neg_type_ratio": 1,
110
+ "max_types": 30,
111
+ "max_width": 100,
112
+ "model_name": "microsoft/deberta-v3-large",
113
+ "model_type": "gliner",
114
+ "name": "token level gliner large",
115
+ "num_post_fusion_layers": 1,
116
+ "num_steps": 6000,
117
+ "post_fusion_schema": "",
118
+ "prev_path": "logs_large/model_120000",
119
+ "random_drop": true,
120
+ "root_dir": "gliner_logs",
121
+ "save_total_limit": 10,
122
+ "scheduler_type": "linear",
123
+ "sep_token": "<<SEP>>",
124
+ "shuffle_types": true,
125
+ "size_sup": -1,
126
+ "span_mode": "token_level",
127
+ "subtoken_pooling": "first",
128
+ "train_batch_size": 8,
129
+ "train_data": "../../data/unie_ner1.json",
130
+ "transformers_version": "4.40.1",
131
+ "val_data_dir": "none",
132
+ "vocab_size": 128004,
133
+ "warmup_ratio": 0.1,
134
+ "weight_decay_encoder": 0.01,
135
+ "weight_decay_other": 0.01,
136
+ "words_splitter_type": "whitespace"
137
+ }
checkpoint-50000/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:178b10ff487d539f22da3e22b777821c150988312b2b8af20a72f6075b53608e
3
+ size 3522103130
checkpoint-50000/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf40327e9588679e6e466222c630d2f5c5d04e1ca930d4bcd39a63b504b62431
3
+ size 1761030542
checkpoint-50000/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b5b9570935ca7da83e5536673b5f5deed8c68ca623a88697fb18aa7860e23d3
3
+ size 14244
checkpoint-50000/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f36a451441eddf56b9329713039c0569241d2ce572e01e2fad79181b3102d2a8
3
+ size 1064
checkpoint-50000/special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "[CLS]",
3
+ "cls_token": "[CLS]",
4
+ "eos_token": "[SEP]",
5
+ "mask_token": "[MASK]",
6
+ "pad_token": "[PAD]",
7
+ "sep_token": "[SEP]",
8
+ "unk_token": {
9
+ "content": "[UNK]",
10
+ "lstrip": false,
11
+ "normalized": true,
12
+ "rstrip": false,
13
+ "single_word": false
14
+ }
15
+ }
checkpoint-50000/spm.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c679fbf93643d19aab7ee10c0b99e460bdbc02fedf34b92b05af343b4af586fd
3
+ size 2464616
checkpoint-50000/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-50000/tokenizer_config.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "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": "[UNK]",
29
+ "lstrip": false,
30
+ "normalized": true,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "128000": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "128001": {
44
+ "content": "[FLERT]",
45
+ "lstrip": false,
46
+ "normalized": true,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": false
50
+ },
51
+ "128002": {
52
+ "content": "<<ENT>>",
53
+ "lstrip": false,
54
+ "normalized": true,
55
+ "rstrip": false,
56
+ "single_word": false,
57
+ "special": false
58
+ },
59
+ "128003": {
60
+ "content": "<<SEP>>",
61
+ "lstrip": false,
62
+ "normalized": true,
63
+ "rstrip": false,
64
+ "single_word": false,
65
+ "special": false
66
+ }
67
+ },
68
+ "bos_token": "[CLS]",
69
+ "clean_up_tokenization_spaces": true,
70
+ "cls_token": "[CLS]",
71
+ "do_lower_case": false,
72
+ "eos_token": "[SEP]",
73
+ "mask_token": "[MASK]",
74
+ "model_max_length": 1000000000000000019884624838656,
75
+ "pad_token": "[PAD]",
76
+ "sep_token": "[SEP]",
77
+ "sp_model_kwargs": {},
78
+ "split_by_punct": false,
79
+ "tokenizer_class": "DebertaV2Tokenizer",
80
+ "unk_token": "[UNK]",
81
+ "vocab_type": "spm"
82
+ }
checkpoint-50000/trainer_state.json ADDED
@@ -0,0 +1,378 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.9792592882743493,
5
+ "eval_steps": 500,
6
+ "global_step": 50000,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 1.9585185765486987e-05,
13
+ "grad_norm": 5018.7451171875,
14
+ "learning_rate": 9.792401096748923e-10,
15
+ "loss": 208.5257,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.019585185765486984,
20
+ "grad_norm": 2883.36767578125,
21
+ "learning_rate": 9.792401096748923e-07,
22
+ "loss": 81.6631,
23
+ "step": 1000
24
+ },
25
+ {
26
+ "epoch": 0.03917037153097397,
27
+ "grad_norm": 20.049026489257812,
28
+ "learning_rate": 1.9584802193497847e-06,
29
+ "loss": 31.971,
30
+ "step": 2000
31
+ },
32
+ {
33
+ "epoch": 0.05875555729646096,
34
+ "grad_norm": 208.86001586914062,
35
+ "learning_rate": 2.937720329024677e-06,
36
+ "loss": 44.682,
37
+ "step": 3000
38
+ },
39
+ {
40
+ "epoch": 0.07834074306194794,
41
+ "grad_norm": 0.09099026769399643,
42
+ "learning_rate": 3.916960438699569e-06,
43
+ "loss": 44.3843,
44
+ "step": 4000
45
+ },
46
+ {
47
+ "epoch": 0.09792592882743492,
48
+ "grad_norm": 0.4517519772052765,
49
+ "learning_rate": 4.896200548374462e-06,
50
+ "loss": 43.43,
51
+ "step": 5000
52
+ },
53
+ {
54
+ "epoch": 0.11751111459292192,
55
+ "grad_norm": 1966.388427734375,
56
+ "learning_rate": 4.902726699018563e-06,
57
+ "loss": 40.5555,
58
+ "step": 6000
59
+ },
60
+ {
61
+ "epoch": 0.1370963003584089,
62
+ "grad_norm": 0.3393819332122803,
63
+ "learning_rate": 4.793919874654539e-06,
64
+ "loss": 42.1143,
65
+ "step": 7000
66
+ },
67
+ {
68
+ "epoch": 0.15668148612389587,
69
+ "grad_norm": 0.3584004044532776,
70
+ "learning_rate": 4.6851130502905145e-06,
71
+ "loss": 38.5059,
72
+ "step": 8000
73
+ },
74
+ {
75
+ "epoch": 0.17626667188938286,
76
+ "grad_norm": 31621.654296875,
77
+ "learning_rate": 4.57630622592649e-06,
78
+ "loss": 40.2935,
79
+ "step": 9000
80
+ },
81
+ {
82
+ "epoch": 0.19585185765486984,
83
+ "grad_norm": 0.382893830537796,
84
+ "learning_rate": 4.467499401562466e-06,
85
+ "loss": 38.6624,
86
+ "step": 10000
87
+ },
88
+ {
89
+ "epoch": 0.21543704342035686,
90
+ "grad_norm": 17.776079177856445,
91
+ "learning_rate": 4.358692577198442e-06,
92
+ "loss": 40.7107,
93
+ "step": 11000
94
+ },
95
+ {
96
+ "epoch": 0.23502222918584384,
97
+ "grad_norm": 0.009184932336211205,
98
+ "learning_rate": 4.249885752834419e-06,
99
+ "loss": 39.2709,
100
+ "step": 12000
101
+ },
102
+ {
103
+ "epoch": 0.2546074149513308,
104
+ "grad_norm": 1247.213623046875,
105
+ "learning_rate": 4.141078928470394e-06,
106
+ "loss": 40.3339,
107
+ "step": 13000
108
+ },
109
+ {
110
+ "epoch": 0.2741926007168178,
111
+ "grad_norm": 0.3560226857662201,
112
+ "learning_rate": 4.03227210410637e-06,
113
+ "loss": 37.2834,
114
+ "step": 14000
115
+ },
116
+ {
117
+ "epoch": 0.2937777864823048,
118
+ "grad_norm": 0.24219802021980286,
119
+ "learning_rate": 3.923465279742345e-06,
120
+ "loss": 39.1311,
121
+ "step": 15000
122
+ },
123
+ {
124
+ "epoch": 0.31336297224779175,
125
+ "grad_norm": 0.2203676551580429,
126
+ "learning_rate": 3.8146584553783216e-06,
127
+ "loss": 39.8453,
128
+ "step": 16000
129
+ },
130
+ {
131
+ "epoch": 0.33294815801327876,
132
+ "grad_norm": 0.3494016230106354,
133
+ "learning_rate": 3.705851631014298e-06,
134
+ "loss": 41.8208,
135
+ "step": 17000
136
+ },
137
+ {
138
+ "epoch": 0.3525333437787657,
139
+ "grad_norm": 0.3340425491333008,
140
+ "learning_rate": 3.5970448066502733e-06,
141
+ "loss": 38.6235,
142
+ "step": 18000
143
+ },
144
+ {
145
+ "epoch": 0.37211852954425273,
146
+ "grad_norm": 242.7712860107422,
147
+ "learning_rate": 3.4882379822862495e-06,
148
+ "loss": 38.3089,
149
+ "step": 19000
150
+ },
151
+ {
152
+ "epoch": 0.3917037153097397,
153
+ "grad_norm": 124.58765411376953,
154
+ "learning_rate": 3.379431157922225e-06,
155
+ "loss": 38.0979,
156
+ "step": 20000
157
+ },
158
+ {
159
+ "epoch": 0.4112889010752267,
160
+ "grad_norm": 1757.1505126953125,
161
+ "learning_rate": 3.2706243335582012e-06,
162
+ "loss": 38.5866,
163
+ "step": 21000
164
+ },
165
+ {
166
+ "epoch": 0.4308740868407137,
167
+ "grad_norm": 0.12498880177736282,
168
+ "learning_rate": 3.161817509194177e-06,
169
+ "loss": 37.7957,
170
+ "step": 22000
171
+ },
172
+ {
173
+ "epoch": 0.45045927260620067,
174
+ "grad_norm": 0.5418808460235596,
175
+ "learning_rate": 3.053010684830153e-06,
176
+ "loss": 39.3742,
177
+ "step": 23000
178
+ },
179
+ {
180
+ "epoch": 0.4700444583716877,
181
+ "grad_norm": 786.1953735351562,
182
+ "learning_rate": 2.9442038604661287e-06,
183
+ "loss": 40.0331,
184
+ "step": 24000
185
+ },
186
+ {
187
+ "epoch": 0.48962964413717464,
188
+ "grad_norm": 0.4919143319129944,
189
+ "learning_rate": 2.8353970361021046e-06,
190
+ "loss": 34.2143,
191
+ "step": 25000
192
+ },
193
+ {
194
+ "epoch": 0.5092148299026616,
195
+ "grad_norm": 0.18596726655960083,
196
+ "learning_rate": 2.7265902117380804e-06,
197
+ "loss": 41.537,
198
+ "step": 26000
199
+ },
200
+ {
201
+ "epoch": 0.5288000156681486,
202
+ "grad_norm": 0.4064764380455017,
203
+ "learning_rate": 2.6177833873740567e-06,
204
+ "loss": 32.8328,
205
+ "step": 27000
206
+ },
207
+ {
208
+ "epoch": 0.5483852014336356,
209
+ "grad_norm": 0.15870028734207153,
210
+ "learning_rate": 2.508976563010032e-06,
211
+ "loss": 37.4091,
212
+ "step": 28000
213
+ },
214
+ {
215
+ "epoch": 0.5679703871991226,
216
+ "grad_norm": 1464.27099609375,
217
+ "learning_rate": 2.400169738646008e-06,
218
+ "loss": 37.2837,
219
+ "step": 29000
220
+ },
221
+ {
222
+ "epoch": 0.5875555729646096,
223
+ "grad_norm": 0.3748704791069031,
224
+ "learning_rate": 2.291362914281984e-06,
225
+ "loss": 37.0786,
226
+ "step": 30000
227
+ },
228
+ {
229
+ "epoch": 0.6071407587300965,
230
+ "grad_norm": 0.3047567903995514,
231
+ "learning_rate": 2.18255608991796e-06,
232
+ "loss": 35.8922,
233
+ "step": 31000
234
+ },
235
+ {
236
+ "epoch": 0.6267259444955835,
237
+ "grad_norm": 881.1626586914062,
238
+ "learning_rate": 2.073749265553936e-06,
239
+ "loss": 35.0494,
240
+ "step": 32000
241
+ },
242
+ {
243
+ "epoch": 0.6463111302610706,
244
+ "grad_norm": 0.34886327385902405,
245
+ "learning_rate": 1.9649424411899117e-06,
246
+ "loss": 39.6155,
247
+ "step": 33000
248
+ },
249
+ {
250
+ "epoch": 0.6658963160265575,
251
+ "grad_norm": 0.4310557544231415,
252
+ "learning_rate": 1.8561356168258875e-06,
253
+ "loss": 38.9501,
254
+ "step": 34000
255
+ },
256
+ {
257
+ "epoch": 0.6854815017920445,
258
+ "grad_norm": 337.7919616699219,
259
+ "learning_rate": 1.7473287924618634e-06,
260
+ "loss": 35.0407,
261
+ "step": 35000
262
+ },
263
+ {
264
+ "epoch": 0.7050666875575314,
265
+ "grad_norm": 1063.1663818359375,
266
+ "learning_rate": 1.6385219680978392e-06,
267
+ "loss": 36.926,
268
+ "step": 36000
269
+ },
270
+ {
271
+ "epoch": 0.7246518733230185,
272
+ "grad_norm": 112.55769348144531,
273
+ "learning_rate": 1.529715143733815e-06,
274
+ "loss": 36.4123,
275
+ "step": 37000
276
+ },
277
+ {
278
+ "epoch": 0.7442370590885055,
279
+ "grad_norm": 0.43231236934661865,
280
+ "learning_rate": 1.4209083193697909e-06,
281
+ "loss": 32.0216,
282
+ "step": 38000
283
+ },
284
+ {
285
+ "epoch": 0.7638222448539924,
286
+ "grad_norm": 0.27660930156707764,
287
+ "learning_rate": 1.312101495005767e-06,
288
+ "loss": 32.359,
289
+ "step": 39000
290
+ },
291
+ {
292
+ "epoch": 0.7834074306194794,
293
+ "grad_norm": 0.28697681427001953,
294
+ "learning_rate": 1.2032946706417428e-06,
295
+ "loss": 37.6499,
296
+ "step": 40000
297
+ },
298
+ {
299
+ "epoch": 0.8029926163849664,
300
+ "grad_norm": 0.18463213741779327,
301
+ "learning_rate": 1.0944878462777186e-06,
302
+ "loss": 34.4977,
303
+ "step": 41000
304
+ },
305
+ {
306
+ "epoch": 0.8225778021504534,
307
+ "grad_norm": 110.25094604492188,
308
+ "learning_rate": 9.856810219136945e-07,
309
+ "loss": 37.8532,
310
+ "step": 42000
311
+ },
312
+ {
313
+ "epoch": 0.8421629879159404,
314
+ "grad_norm": 0.3026086091995239,
315
+ "learning_rate": 8.768741975496704e-07,
316
+ "loss": 35.3672,
317
+ "step": 43000
318
+ },
319
+ {
320
+ "epoch": 0.8617481736814274,
321
+ "grad_norm": 0.3170241713523865,
322
+ "learning_rate": 7.680673731856462e-07,
323
+ "loss": 38.3382,
324
+ "step": 44000
325
+ },
326
+ {
327
+ "epoch": 0.8813333594469144,
328
+ "grad_norm": 768.84716796875,
329
+ "learning_rate": 6.592605488216222e-07,
330
+ "loss": 35.3662,
331
+ "step": 45000
332
+ },
333
+ {
334
+ "epoch": 0.9009185452124013,
335
+ "grad_norm": 0.4777417778968811,
336
+ "learning_rate": 5.50453724457598e-07,
337
+ "loss": 41.6652,
338
+ "step": 46000
339
+ },
340
+ {
341
+ "epoch": 0.9205037309778883,
342
+ "grad_norm": 0.32603392004966736,
343
+ "learning_rate": 4.416469000935739e-07,
344
+ "loss": 40.3125,
345
+ "step": 47000
346
+ },
347
+ {
348
+ "epoch": 0.9400889167433754,
349
+ "grad_norm": 0.3190682530403137,
350
+ "learning_rate": 3.3284007572954976e-07,
351
+ "loss": 36.4948,
352
+ "step": 48000
353
+ },
354
+ {
355
+ "epoch": 0.9596741025088623,
356
+ "grad_norm": 0.2428392767906189,
357
+ "learning_rate": 2.2403325136552568e-07,
358
+ "loss": 37.7761,
359
+ "step": 49000
360
+ },
361
+ {
362
+ "epoch": 0.9792592882743493,
363
+ "grad_norm": 3454.626220703125,
364
+ "learning_rate": 1.1522642700150154e-07,
365
+ "loss": 38.9872,
366
+ "step": 50000
367
+ }
368
+ ],
369
+ "logging_steps": 1000,
370
+ "max_steps": 51059,
371
+ "num_input_tokens_seen": 0,
372
+ "num_train_epochs": 1,
373
+ "save_steps": 50000,
374
+ "total_flos": 0.0,
375
+ "train_batch_size": 2,
376
+ "trial_name": null,
377
+ "trial_params": null
378
+ }
gliner_config.json ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "class_token_index": 128002,
3
+ "dropout": 0.1,
4
+ "embed_ent_token": true,
5
+ "encoder_config": {
6
+ "_name_or_path": "microsoft/deberta-v3-large",
7
+ "add_cross_attention": false,
8
+ "architectures": null,
9
+ "attention_probs_dropout_prob": 0.1,
10
+ "bad_words_ids": null,
11
+ "begin_suppress_tokens": null,
12
+ "bos_token_id": null,
13
+ "chunk_size_feed_forward": 0,
14
+ "cross_attention_hidden_size": null,
15
+ "decoder_start_token_id": null,
16
+ "diversity_penalty": 0.0,
17
+ "do_sample": false,
18
+ "early_stopping": false,
19
+ "encoder_no_repeat_ngram_size": 0,
20
+ "eos_token_id": null,
21
+ "exponential_decay_length_penalty": null,
22
+ "finetuning_task": null,
23
+ "forced_bos_token_id": null,
24
+ "forced_eos_token_id": null,
25
+ "hidden_act": "gelu",
26
+ "hidden_dropout_prob": 0.1,
27
+ "hidden_size": 1024,
28
+ "id2label": {
29
+ "0": "LABEL_0",
30
+ "1": "LABEL_1"
31
+ },
32
+ "initializer_range": 0.02,
33
+ "intermediate_size": 4096,
34
+ "is_decoder": false,
35
+ "is_encoder_decoder": false,
36
+ "label2id": {
37
+ "LABEL_0": 0,
38
+ "LABEL_1": 1
39
+ },
40
+ "layer_norm_eps": 1e-07,
41
+ "length_penalty": 1.0,
42
+ "max_length": 20,
43
+ "max_position_embeddings": 512,
44
+ "max_relative_positions": -1,
45
+ "min_length": 0,
46
+ "model_type": "deberta-v2",
47
+ "no_repeat_ngram_size": 0,
48
+ "norm_rel_ebd": "layer_norm",
49
+ "num_attention_heads": 16,
50
+ "num_beam_groups": 1,
51
+ "num_beams": 1,
52
+ "num_hidden_layers": 24,
53
+ "num_return_sequences": 1,
54
+ "output_attentions": false,
55
+ "output_hidden_states": false,
56
+ "output_scores": false,
57
+ "pad_token_id": 0,
58
+ "pooler_dropout": 0,
59
+ "pooler_hidden_act": "gelu",
60
+ "pooler_hidden_size": 1024,
61
+ "pos_att_type": [
62
+ "p2c",
63
+ "c2p"
64
+ ],
65
+ "position_biased_input": false,
66
+ "position_buckets": 256,
67
+ "prefix": null,
68
+ "problem_type": null,
69
+ "pruned_heads": {},
70
+ "relative_attention": true,
71
+ "remove_invalid_values": false,
72
+ "repetition_penalty": 1.0,
73
+ "return_dict": true,
74
+ "return_dict_in_generate": false,
75
+ "sep_token_id": null,
76
+ "share_att_key": true,
77
+ "suppress_tokens": null,
78
+ "task_specific_params": null,
79
+ "temperature": 1.0,
80
+ "tf_legacy_loss": false,
81
+ "tie_encoder_decoder": false,
82
+ "tie_word_embeddings": true,
83
+ "tokenizer_class": null,
84
+ "top_k": 50,
85
+ "top_p": 1.0,
86
+ "torch_dtype": null,
87
+ "torchscript": false,
88
+ "type_vocab_size": 0,
89
+ "typical_p": 1.0,
90
+ "use_bfloat16": false,
91
+ "vocab_size": 128004
92
+ },
93
+ "ent_token": "<<ENT>>",
94
+ "eval_every": 1000,
95
+ "fine_tune": true,
96
+ "freeze_token_rep": false,
97
+ "fuse_layers": false,
98
+ "has_rnn": true,
99
+ "hidden_size": 512,
100
+ "labels_encoder": null,
101
+ "labels_encoder_config": null,
102
+ "log_dir": "logs_final",
103
+ "loss_alpha": 0.75,
104
+ "loss_gamma": 0,
105
+ "loss_reduction": "sum",
106
+ "lr_encoder": "5e-6",
107
+ "lr_others": "7e-6",
108
+ "max_len": 768,
109
+ "max_neg_type_ratio": 1,
110
+ "max_types": 30,
111
+ "max_width": 100,
112
+ "model_name": "microsoft/deberta-v3-large",
113
+ "model_type": "gliner",
114
+ "name": "token level gliner large",
115
+ "num_post_fusion_layers": 1,
116
+ "num_steps": 6000,
117
+ "post_fusion_schema": "",
118
+ "prev_path": "logs_large/model_120000",
119
+ "random_drop": true,
120
+ "root_dir": "gliner_logs",
121
+ "save_total_limit": 10,
122
+ "scheduler_type": "linear",
123
+ "sep_token": "<<SEP>>",
124
+ "shuffle_types": true,
125
+ "size_sup": -1,
126
+ "span_mode": "token_level",
127
+ "subtoken_pooling": "first",
128
+ "train_batch_size": 8,
129
+ "train_data": "../../data/unie_ner1.json",
130
+ "transformers_version": "4.40.1",
131
+ "val_data_dir": "none",
132
+ "vocab_size": 128004,
133
+ "warmup_ratio": 0.1,
134
+ "weight_decay_encoder": 0.01,
135
+ "weight_decay_other": 0.01,
136
+ "words_splitter_type": "whitespace"
137
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17f36aa9cf90424f0264adc51b92b803ce52186c9f90384a677700d924af2845
3
+ size 1761030542
special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "[CLS]",
3
+ "cls_token": "[CLS]",
4
+ "eos_token": "[SEP]",
5
+ "mask_token": "[MASK]",
6
+ "pad_token": "[PAD]",
7
+ "sep_token": "[SEP]",
8
+ "unk_token": {
9
+ "content": "[UNK]",
10
+ "lstrip": false,
11
+ "normalized": true,
12
+ "rstrip": false,
13
+ "single_word": false
14
+ }
15
+ }
spm.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c679fbf93643d19aab7ee10c0b99e460bdbc02fedf34b92b05af343b4af586fd
3
+ size 2464616
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "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": "[UNK]",
29
+ "lstrip": false,
30
+ "normalized": true,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "128000": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "128001": {
44
+ "content": "[FLERT]",
45
+ "lstrip": false,
46
+ "normalized": true,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": false
50
+ },
51
+ "128002": {
52
+ "content": "<<ENT>>",
53
+ "lstrip": false,
54
+ "normalized": true,
55
+ "rstrip": false,
56
+ "single_word": false,
57
+ "special": false
58
+ },
59
+ "128003": {
60
+ "content": "<<SEP>>",
61
+ "lstrip": false,
62
+ "normalized": true,
63
+ "rstrip": false,
64
+ "single_word": false,
65
+ "special": false
66
+ }
67
+ },
68
+ "bos_token": "[CLS]",
69
+ "clean_up_tokenization_spaces": true,
70
+ "cls_token": "[CLS]",
71
+ "do_lower_case": false,
72
+ "eos_token": "[SEP]",
73
+ "mask_token": "[MASK]",
74
+ "model_max_length": 1000000000000000019884624838656,
75
+ "pad_token": "[PAD]",
76
+ "sep_token": "[SEP]",
77
+ "sp_model_kwargs": {},
78
+ "split_by_punct": false,
79
+ "tokenizer_class": "DebertaV2Tokenizer",
80
+ "unk_token": "[UNK]",
81
+ "vocab_type": "spm"
82
+ }