Upload folder using huggingface_hub
Browse files- added_tokens.json +3 -0
- gliner_config.json +220 -0
- optimizer.pt +3 -0
- pytorch_model.bin +3 -0
- rng_state.pth +3 -0
- scheduler.pt +3 -0
- special_tokens_map.json +51 -0
- spm.model +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +58 -0
- trainer_state.json +0 -0
added_tokens.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"[MASK]": 128000
|
3 |
+
}
|
gliner_config.json
ADDED
@@ -0,0 +1,220 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"blank_prompt_rep_layer": true,
|
3 |
+
"class_token_index": -1,
|
4 |
+
"dropout": 0.36,
|
5 |
+
"embed_ent_token": true,
|
6 |
+
"encoder_config": {
|
7 |
+
"_name_or_path": "microsoft/deberta-v3-base",
|
8 |
+
"add_cross_attention": false,
|
9 |
+
"architectures": null,
|
10 |
+
"attention_probs_dropout_prob": 0.1,
|
11 |
+
"bad_words_ids": null,
|
12 |
+
"begin_suppress_tokens": null,
|
13 |
+
"bos_token_id": null,
|
14 |
+
"chunk_size_feed_forward": 0,
|
15 |
+
"cross_attention_hidden_size": null,
|
16 |
+
"decoder_start_token_id": null,
|
17 |
+
"diversity_penalty": 0.0,
|
18 |
+
"do_sample": false,
|
19 |
+
"early_stopping": false,
|
20 |
+
"encoder_no_repeat_ngram_size": 0,
|
21 |
+
"eos_token_id": null,
|
22 |
+
"exponential_decay_length_penalty": null,
|
23 |
+
"finetuning_task": null,
|
24 |
+
"forced_bos_token_id": null,
|
25 |
+
"forced_eos_token_id": null,
|
26 |
+
"hidden_act": "gelu",
|
27 |
+
"hidden_dropout_prob": 0.1,
|
28 |
+
"hidden_size": 768,
|
29 |
+
"id2label": {
|
30 |
+
"0": "LABEL_0",
|
31 |
+
"1": "LABEL_1"
|
32 |
+
},
|
33 |
+
"initializer_range": 0.02,
|
34 |
+
"intermediate_size": 3072,
|
35 |
+
"is_decoder": false,
|
36 |
+
"is_encoder_decoder": false,
|
37 |
+
"label2id": {
|
38 |
+
"LABEL_0": 0,
|
39 |
+
"LABEL_1": 1
|
40 |
+
},
|
41 |
+
"layer_norm_eps": 1e-07,
|
42 |
+
"length_penalty": 1.0,
|
43 |
+
"max_length": 20,
|
44 |
+
"max_position_embeddings": 512,
|
45 |
+
"max_relative_positions": -1,
|
46 |
+
"min_length": 0,
|
47 |
+
"model_type": "deberta-v2",
|
48 |
+
"no_repeat_ngram_size": 0,
|
49 |
+
"norm_rel_ebd": "layer_norm",
|
50 |
+
"num_attention_heads": 12,
|
51 |
+
"num_beam_groups": 1,
|
52 |
+
"num_beams": 1,
|
53 |
+
"num_hidden_layers": 12,
|
54 |
+
"num_return_sequences": 1,
|
55 |
+
"output_attentions": false,
|
56 |
+
"output_hidden_states": false,
|
57 |
+
"output_scores": false,
|
58 |
+
"pad_token_id": 0,
|
59 |
+
"pooler_dropout": 0,
|
60 |
+
"pooler_hidden_act": "gelu",
|
61 |
+
"pooler_hidden_size": 768,
|
62 |
+
"pos_att_type": [
|
63 |
+
"p2c",
|
64 |
+
"c2p"
|
65 |
+
],
|
66 |
+
"position_biased_input": false,
|
67 |
+
"position_buckets": 256,
|
68 |
+
"prefix": null,
|
69 |
+
"problem_type": null,
|
70 |
+
"pruned_heads": {},
|
71 |
+
"relative_attention": true,
|
72 |
+
"remove_invalid_values": false,
|
73 |
+
"repetition_penalty": 1.0,
|
74 |
+
"return_dict": true,
|
75 |
+
"return_dict_in_generate": false,
|
76 |
+
"sep_token_id": null,
|
77 |
+
"share_att_key": true,
|
78 |
+
"suppress_tokens": null,
|
79 |
+
"task_specific_params": null,
|
80 |
+
"temperature": 1.0,
|
81 |
+
"tf_legacy_loss": false,
|
82 |
+
"tie_encoder_decoder": false,
|
83 |
+
"tie_word_embeddings": true,
|
84 |
+
"tokenizer_class": null,
|
85 |
+
"top_k": 50,
|
86 |
+
"top_p": 1.0,
|
87 |
+
"torch_dtype": null,
|
88 |
+
"torchscript": false,
|
89 |
+
"type_vocab_size": 0,
|
90 |
+
"typical_p": 1.0,
|
91 |
+
"use_bfloat16": false,
|
92 |
+
"vocab_size": 128100
|
93 |
+
},
|
94 |
+
"ent_token": "<<ENT>>",
|
95 |
+
"entity_linking": "span_linking",
|
96 |
+
"eval_every": 4000,
|
97 |
+
"fine_tune": true,
|
98 |
+
"freeze_labels_encoder": true,
|
99 |
+
"freeze_token_rep": true,
|
100 |
+
"fuse_layers": false,
|
101 |
+
"has_rnn": true,
|
102 |
+
"hidden_size": 768,
|
103 |
+
"label_smoothing": 0,
|
104 |
+
"labels_encoder": "BAAI/bge-base-en-v1.5",
|
105 |
+
"labels_encoder_config": {
|
106 |
+
"_name_or_path": "BAAI/bge-base-en-v1.5",
|
107 |
+
"add_cross_attention": false,
|
108 |
+
"architectures": [
|
109 |
+
"BertModel"
|
110 |
+
],
|
111 |
+
"attention_probs_dropout_prob": 0.1,
|
112 |
+
"bad_words_ids": null,
|
113 |
+
"begin_suppress_tokens": null,
|
114 |
+
"bos_token_id": null,
|
115 |
+
"chunk_size_feed_forward": 0,
|
116 |
+
"classifier_dropout": null,
|
117 |
+
"cross_attention_hidden_size": null,
|
118 |
+
"decoder_start_token_id": null,
|
119 |
+
"diversity_penalty": 0.0,
|
120 |
+
"do_sample": false,
|
121 |
+
"early_stopping": false,
|
122 |
+
"encoder_no_repeat_ngram_size": 0,
|
123 |
+
"eos_token_id": null,
|
124 |
+
"exponential_decay_length_penalty": null,
|
125 |
+
"finetuning_task": null,
|
126 |
+
"forced_bos_token_id": null,
|
127 |
+
"forced_eos_token_id": null,
|
128 |
+
"gradient_checkpointing": false,
|
129 |
+
"hidden_act": "gelu",
|
130 |
+
"hidden_dropout_prob": 0.1,
|
131 |
+
"hidden_size": 768,
|
132 |
+
"id2label": {
|
133 |
+
"0": "LABEL_0"
|
134 |
+
},
|
135 |
+
"initializer_range": 0.02,
|
136 |
+
"intermediate_size": 3072,
|
137 |
+
"is_decoder": false,
|
138 |
+
"is_encoder_decoder": false,
|
139 |
+
"label2id": {
|
140 |
+
"LABEL_0": 0
|
141 |
+
},
|
142 |
+
"layer_norm_eps": 1e-12,
|
143 |
+
"length_penalty": 1.0,
|
144 |
+
"max_length": 20,
|
145 |
+
"max_position_embeddings": 512,
|
146 |
+
"min_length": 0,
|
147 |
+
"model_type": "bert",
|
148 |
+
"no_repeat_ngram_size": 0,
|
149 |
+
"num_attention_heads": 12,
|
150 |
+
"num_beam_groups": 1,
|
151 |
+
"num_beams": 1,
|
152 |
+
"num_hidden_layers": 12,
|
153 |
+
"num_return_sequences": 1,
|
154 |
+
"output_attentions": false,
|
155 |
+
"output_hidden_states": false,
|
156 |
+
"output_scores": false,
|
157 |
+
"pad_token_id": 0,
|
158 |
+
"position_embedding_type": "absolute",
|
159 |
+
"prefix": null,
|
160 |
+
"problem_type": null,
|
161 |
+
"pruned_heads": {},
|
162 |
+
"remove_invalid_values": false,
|
163 |
+
"repetition_penalty": 1.0,
|
164 |
+
"return_dict": true,
|
165 |
+
"return_dict_in_generate": false,
|
166 |
+
"sep_token_id": null,
|
167 |
+
"suppress_tokens": null,
|
168 |
+
"task_specific_params": null,
|
169 |
+
"temperature": 1.0,
|
170 |
+
"tf_legacy_loss": false,
|
171 |
+
"tie_encoder_decoder": false,
|
172 |
+
"tie_word_embeddings": true,
|
173 |
+
"tokenizer_class": null,
|
174 |
+
"top_k": 50,
|
175 |
+
"top_p": 1.0,
|
176 |
+
"torch_dtype": "float32",
|
177 |
+
"torchscript": false,
|
178 |
+
"type_vocab_size": 2,
|
179 |
+
"typical_p": 1.0,
|
180 |
+
"use_bfloat16": false,
|
181 |
+
"use_cache": true,
|
182 |
+
"vocab_size": 30522
|
183 |
+
},
|
184 |
+
"log_dir": "models-base-2/",
|
185 |
+
"loss_alpha": 0.8,
|
186 |
+
"loss_gamma": 2,
|
187 |
+
"loss_reduction": "sum",
|
188 |
+
"lr_encoder": "1e-5",
|
189 |
+
"lr_others": "4e-5",
|
190 |
+
"max_grad_norm": 10.0,
|
191 |
+
"max_len": 768,
|
192 |
+
"max_neg_type_ratio": 5,
|
193 |
+
"max_types": 256,
|
194 |
+
"max_width": 12,
|
195 |
+
"model_name": "microsoft/deberta-v3-base",
|
196 |
+
"model_type": "gliner",
|
197 |
+
"name": "span level gliner for entity linking",
|
198 |
+
"num_post_fusion_layers": 1,
|
199 |
+
"num_steps": 250000,
|
200 |
+
"post_fusion_schema": "",
|
201 |
+
"prev_path": null,
|
202 |
+
"random_drop": true,
|
203 |
+
"root_dir": "gliner_logs",
|
204 |
+
"save_total_limit": 20,
|
205 |
+
"scheduler_type": "cosine",
|
206 |
+
"sep_token": "<<SEP>>",
|
207 |
+
"shuffle_types": true,
|
208 |
+
"size_sup": -1,
|
209 |
+
"span_mode": "markerV0",
|
210 |
+
"subtoken_pooling": "first",
|
211 |
+
"train_batch_size": 4,
|
212 |
+
"train_data": "final_dataset_1m.json",
|
213 |
+
"transformers_version": "4.45.2",
|
214 |
+
"val_data_dir": null,
|
215 |
+
"vocab_size": -1,
|
216 |
+
"warmup_ratio": 0.1,
|
217 |
+
"weight_decay_encoder": 0.01,
|
218 |
+
"weight_decay_other": 0.02,
|
219 |
+
"words_splitter_type": "whitespace"
|
220 |
+
}
|
optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8dfc616388cc7e021195220fc21078ebf4080280ee06a26bfb2e4ddecbc176f8
|
3 |
+
size 2474340186
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a61b9ad107cb33c3a47fe0dca56a37f8c9e07cdf440d25d23303a83a4db1af11
|
3 |
+
size 1253695862
|
rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8c72e6cfda2edd592856dfbbccbeeba83ec7b050be95a308a9cde71e953ffb46
|
3 |
+
size 14244
|
scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4977bbf9e1f2d38ac770b874049e0b500d61e9d3250dc712f1ed354a5a54900a
|
3 |
+
size 1064
|
special_tokens_map.json
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "[CLS]",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"cls_token": {
|
10 |
+
"content": "[CLS]",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"eos_token": {
|
17 |
+
"content": "[SEP]",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"mask_token": {
|
24 |
+
"content": "[MASK]",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
},
|
30 |
+
"pad_token": {
|
31 |
+
"content": "[PAD]",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": false,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false
|
36 |
+
},
|
37 |
+
"sep_token": {
|
38 |
+
"content": "[SEP]",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": false,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false
|
43 |
+
},
|
44 |
+
"unk_token": {
|
45 |
+
"content": "[UNK]",
|
46 |
+
"lstrip": false,
|
47 |
+
"normalized": true,
|
48 |
+
"rstrip": false,
|
49 |
+
"single_word": false
|
50 |
+
}
|
51 |
+
}
|
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,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
},
|
44 |
+
"bos_token": "[CLS]",
|
45 |
+
"clean_up_tokenization_spaces": false,
|
46 |
+
"cls_token": "[CLS]",
|
47 |
+
"do_lower_case": false,
|
48 |
+
"eos_token": "[SEP]",
|
49 |
+
"mask_token": "[MASK]",
|
50 |
+
"model_max_length": 1000000000000000019884624838656,
|
51 |
+
"pad_token": "[PAD]",
|
52 |
+
"sep_token": "[SEP]",
|
53 |
+
"sp_model_kwargs": {},
|
54 |
+
"split_by_punct": false,
|
55 |
+
"tokenizer_class": "DebertaV2Tokenizer",
|
56 |
+
"unk_token": "[UNK]",
|
57 |
+
"vocab_type": "spm"
|
58 |
+
}
|
trainer_state.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|