Upload folder using huggingface_hub
Browse files- added_tokens.json +5 -0
- gliner_config.json +142 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +51 -0
- spm.model +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +74 -0
added_tokens.json
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<<ENT>>": 128001,
|
3 |
+
"<<SEP>>": 128002,
|
4 |
+
"[MASK]": 128000
|
5 |
+
}
|
gliner_config.json
ADDED
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"class_token_index": 128001,
|
3 |
+
"dropout": 0.35,
|
4 |
+
"embed_ent_token": true,
|
5 |
+
"encoder_config": {
|
6 |
+
"_name_or_path": "microsoft/deberta-v2-xlarge",
|
7 |
+
"add_cross_attention": false,
|
8 |
+
"architectures": null,
|
9 |
+
"attention_head_size": 64,
|
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 |
+
"conv_act": "gelu",
|
16 |
+
"conv_kernel_size": 3,
|
17 |
+
"cross_attention_hidden_size": null,
|
18 |
+
"decoder_start_token_id": null,
|
19 |
+
"diversity_penalty": 0.0,
|
20 |
+
"do_sample": false,
|
21 |
+
"early_stopping": false,
|
22 |
+
"encoder_no_repeat_ngram_size": 0,
|
23 |
+
"eos_token_id": null,
|
24 |
+
"exponential_decay_length_penalty": null,
|
25 |
+
"finetuning_task": null,
|
26 |
+
"forced_bos_token_id": null,
|
27 |
+
"forced_eos_token_id": null,
|
28 |
+
"hidden_act": "gelu",
|
29 |
+
"hidden_dropout_prob": 0.1,
|
30 |
+
"hidden_size": 1536,
|
31 |
+
"id2label": {
|
32 |
+
"0": "LABEL_0",
|
33 |
+
"1": "LABEL_1"
|
34 |
+
},
|
35 |
+
"initializer_range": 0.02,
|
36 |
+
"intermediate_size": 6144,
|
37 |
+
"is_decoder": false,
|
38 |
+
"is_encoder_decoder": false,
|
39 |
+
"label2id": {
|
40 |
+
"LABEL_0": 0,
|
41 |
+
"LABEL_1": 1
|
42 |
+
},
|
43 |
+
"layer_norm_eps": 1e-07,
|
44 |
+
"length_penalty": 1.0,
|
45 |
+
"max_length": 20,
|
46 |
+
"max_position_embeddings": 512,
|
47 |
+
"max_relative_positions": -1,
|
48 |
+
"min_length": 0,
|
49 |
+
"model_type": "deberta-v2",
|
50 |
+
"no_repeat_ngram_size": 0,
|
51 |
+
"norm_rel_ebd": "layer_norm",
|
52 |
+
"num_attention_heads": 24,
|
53 |
+
"num_beam_groups": 1,
|
54 |
+
"num_beams": 1,
|
55 |
+
"num_hidden_layers": 24,
|
56 |
+
"num_return_sequences": 1,
|
57 |
+
"output_attentions": false,
|
58 |
+
"output_hidden_states": false,
|
59 |
+
"output_scores": false,
|
60 |
+
"pad_token_id": 0,
|
61 |
+
"pooler_dropout": 0,
|
62 |
+
"pooler_hidden_act": "gelu",
|
63 |
+
"pooler_hidden_size": 1536,
|
64 |
+
"pos_att_type": [
|
65 |
+
"p2c",
|
66 |
+
"c2p"
|
67 |
+
],
|
68 |
+
"position_biased_input": false,
|
69 |
+
"position_buckets": 256,
|
70 |
+
"prefix": null,
|
71 |
+
"problem_type": null,
|
72 |
+
"pruned_heads": {},
|
73 |
+
"relative_attention": true,
|
74 |
+
"remove_invalid_values": false,
|
75 |
+
"repetition_penalty": 1.0,
|
76 |
+
"return_dict": true,
|
77 |
+
"return_dict_in_generate": false,
|
78 |
+
"sep_token_id": null,
|
79 |
+
"share_att_key": true,
|
80 |
+
"suppress_tokens": null,
|
81 |
+
"task_specific_params": null,
|
82 |
+
"temperature": 1.0,
|
83 |
+
"tf_legacy_loss": false,
|
84 |
+
"tie_encoder_decoder": false,
|
85 |
+
"tie_word_embeddings": true,
|
86 |
+
"tokenizer_class": null,
|
87 |
+
"top_k": 50,
|
88 |
+
"top_p": 1.0,
|
89 |
+
"torch_dtype": null,
|
90 |
+
"torchscript": false,
|
91 |
+
"type_vocab_size": 0,
|
92 |
+
"typical_p": 1.0,
|
93 |
+
"use_bfloat16": false,
|
94 |
+
"vocab_size": 128003
|
95 |
+
},
|
96 |
+
"ent_token": "<<ENT>>",
|
97 |
+
"eval_every": 25000,
|
98 |
+
"fine_tune": true,
|
99 |
+
"freeze_token_rep": false,
|
100 |
+
"fuse_layers": false,
|
101 |
+
"has_rnn": true,
|
102 |
+
"hidden_size": 1024,
|
103 |
+
"label_smoothing": 0,
|
104 |
+
"labels_encoder": null,
|
105 |
+
"labels_encoder_config": null,
|
106 |
+
"log_dir": "models/",
|
107 |
+
"loss_alpha": 0.75,
|
108 |
+
"loss_gamma": 0,
|
109 |
+
"loss_reduction": "sum",
|
110 |
+
"lr_encoder": "9e-6",
|
111 |
+
"lr_others": "5e-5",
|
112 |
+
"max_grad_norm": 1.0,
|
113 |
+
"max_len": 1024,
|
114 |
+
"max_neg_type_ratio": 1,
|
115 |
+
"max_types": 30,
|
116 |
+
"max_width": 12,
|
117 |
+
"model_name": "microsoft/deberta-v2-xlarge",
|
118 |
+
"model_type": "gliner",
|
119 |
+
"name": "span level gliner",
|
120 |
+
"num_post_fusion_layers": 1,
|
121 |
+
"num_steps": 150000,
|
122 |
+
"post_fusion_schema": null,
|
123 |
+
"prev_path": null,
|
124 |
+
"random_drop": true,
|
125 |
+
"root_dir": "gliner_logs",
|
126 |
+
"save_total_limit": 3,
|
127 |
+
"scheduler_type": "cosine",
|
128 |
+
"sep_token": "<<SEP>>",
|
129 |
+
"shuffle_types": true,
|
130 |
+
"size_sup": -1,
|
131 |
+
"span_mode": "token_level",
|
132 |
+
"subtoken_pooling": "first",
|
133 |
+
"train_batch_size": 4,
|
134 |
+
"train_data": "data/unie_full.json",
|
135 |
+
"transformers_version": "4.40.2",
|
136 |
+
"val_data_dir": "none",
|
137 |
+
"vocab_size": 128003,
|
138 |
+
"warmup_ratio": 0.1,
|
139 |
+
"weight_decay_encoder": 0.01,
|
140 |
+
"weight_decay_other": 0.001,
|
141 |
+
"words_splitter_type": "whitespace"
|
142 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ccc830fc194a875feac2f322b36b6b3a6078f2bf1dd5016af9ffd13eb7bd7701
|
3 |
+
size 3636612894
|
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:5598d5e96f339a8d980c15f9afd405a2e5e1be7db41de3ed13b0f03fac1e8c17
|
3 |
+
size 2447305
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "<<ENT>>",
|
45 |
+
"lstrip": false,
|
46 |
+
"normalized": false,
|
47 |
+
"rstrip": false,
|
48 |
+
"single_word": false,
|
49 |
+
"special": true
|
50 |
+
},
|
51 |
+
"128002": {
|
52 |
+
"content": "<<SEP>>",
|
53 |
+
"lstrip": false,
|
54 |
+
"normalized": false,
|
55 |
+
"rstrip": false,
|
56 |
+
"single_word": false,
|
57 |
+
"special": true
|
58 |
+
}
|
59 |
+
},
|
60 |
+
"bos_token": "[CLS]",
|
61 |
+
"clean_up_tokenization_spaces": true,
|
62 |
+
"cls_token": "[CLS]",
|
63 |
+
"do_lower_case": false,
|
64 |
+
"eos_token": "[SEP]",
|
65 |
+
"mask_token": "[MASK]",
|
66 |
+
"model_max_length": 1000000000000000019884624838656,
|
67 |
+
"pad_token": "[PAD]",
|
68 |
+
"sep_token": "[SEP]",
|
69 |
+
"sp_model_kwargs": {},
|
70 |
+
"split_by_punct": false,
|
71 |
+
"tokenizer_class": "DebertaV2Tokenizer",
|
72 |
+
"unk_token": "[UNK]",
|
73 |
+
"vocab_type": "spm"
|
74 |
+
}
|