Ihor commited on
Commit
2e17664
·
verified ·
1 Parent(s): 0652c45

Upload folder using huggingface_hub

Browse files
added_tokens.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "<<ENT>>": 128002,
3
+ "<<SEP>>": 128003,
4
+ "[FLERT]": 128001,
5
+ "[MASK]": 128000
6
+ }
gliner_config.json CHANGED
@@ -1,35 +1,139 @@
1
  {
2
- "model_name": "microsoft/deberta-v3-large",
3
- "name": "token level gliner large",
4
- "max_width": 100,
5
- "hidden_size": 512,
6
  "dropout": 0.1,
7
- "fine_tune": true,
8
- "subtoken_pooling": "first",
9
- "span_mode": "token_level",
10
- "num_steps": 6000,
11
- "train_batch_size": 8,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  "eval_every": 1000,
13
- "warmup_ratio": 0.1,
14
- "scheduler_type": "linear",
 
 
 
 
 
 
15
  "loss_alpha": 0.75,
16
  "loss_gamma": 0,
17
  "loss_reduction": "sum",
18
  "lr_encoder": "5e-6",
19
  "lr_others": "7e-6",
20
- "weight_decay_encoder": 0.01,
21
- "weight_decay_other": 0.01,
22
- "root_dir": "gliner_logs",
23
- "train_data": "../../data/unie_ner1.json",
24
- "val_data_dir": "none",
 
 
 
 
 
25
  "prev_path": "logs_large/model_120000",
 
 
26
  "save_total_limit": 10,
27
- "size_sup": -1,
28
- "max_types": 30,
29
  "shuffle_types": true,
30
- "random_drop": true,
31
- "max_neg_type_ratio": 1,
32
- "max_len": 768,
33
- "freeze_token_rep": false,
34
- "log_dir": "logs_final"
35
- }
 
 
 
 
 
 
 
 
1
  {
2
+ "class_token_index": 128002,
 
 
 
3
  "dropout": 0.1,
4
+ "embed_ent_token": true,
5
+ "encoder_config": {
6
+ "_attn_implementation_autoset": false,
7
+ "_name_or_path": "microsoft/deberta-v3-large",
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": 1024,
29
+ "id2label": {
30
+ "0": "LABEL_0",
31
+ "1": "LABEL_1"
32
+ },
33
+ "initializer_range": 0.02,
34
+ "intermediate_size": 4096,
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
+ "legacy": true,
43
+ "length_penalty": 1.0,
44
+ "max_length": 20,
45
+ "max_position_embeddings": 512,
46
+ "max_relative_positions": -1,
47
+ "min_length": 0,
48
+ "model_type": "deberta-v2",
49
+ "no_repeat_ngram_size": 0,
50
+ "norm_rel_ebd": "layer_norm",
51
+ "num_attention_heads": 16,
52
+ "num_beam_groups": 1,
53
+ "num_beams": 1,
54
+ "num_hidden_layers": 24,
55
+ "num_return_sequences": 1,
56
+ "output_attentions": false,
57
+ "output_hidden_states": false,
58
+ "output_scores": false,
59
+ "pad_token_id": 0,
60
+ "pooler_dropout": 0,
61
+ "pooler_hidden_act": "gelu",
62
+ "pooler_hidden_size": 1024,
63
+ "pos_att_type": [
64
+ "p2c",
65
+ "c2p"
66
+ ],
67
+ "position_biased_input": false,
68
+ "position_buckets": 256,
69
+ "prefix": null,
70
+ "problem_type": null,
71
+ "pruned_heads": {},
72
+ "relative_attention": true,
73
+ "remove_invalid_values": false,
74
+ "repetition_penalty": 1.0,
75
+ "return_dict": true,
76
+ "return_dict_in_generate": false,
77
+ "sep_token_id": null,
78
+ "share_att_key": true,
79
+ "suppress_tokens": null,
80
+ "task_specific_params": null,
81
+ "temperature": 1.0,
82
+ "tf_legacy_loss": false,
83
+ "tie_encoder_decoder": false,
84
+ "tie_word_embeddings": true,
85
+ "tokenizer_class": null,
86
+ "top_k": 50,
87
+ "top_p": 1.0,
88
+ "torch_dtype": null,
89
+ "torchscript": false,
90
+ "type_vocab_size": 0,
91
+ "typical_p": 1.0,
92
+ "use_bfloat16": false,
93
+ "vocab_size": 128004
94
+ },
95
+ "ent_token": "<<ENT>>",
96
  "eval_every": 1000,
97
+ "fine_tune": true,
98
+ "freeze_token_rep": false,
99
+ "fuse_layers": false,
100
+ "has_rnn": true,
101
+ "hidden_size": 512,
102
+ "labels_encoder": null,
103
+ "labels_encoder_config": null,
104
+ "log_dir": "logs_final",
105
  "loss_alpha": 0.75,
106
  "loss_gamma": 0,
107
  "loss_reduction": "sum",
108
  "lr_encoder": "5e-6",
109
  "lr_others": "7e-6",
110
+ "max_len": 768,
111
+ "max_neg_type_ratio": 1,
112
+ "max_types": 30,
113
+ "max_width": 100,
114
+ "model_name": "microsoft/deberta-v3-large",
115
+ "model_type": "gliner",
116
+ "name": "token level gliner large",
117
+ "num_post_fusion_layers": 1,
118
+ "num_steps": 6000,
119
+ "post_fusion_schema": "",
120
  "prev_path": "logs_large/model_120000",
121
+ "random_drop": true,
122
+ "root_dir": "gliner_logs",
123
  "save_total_limit": 10,
124
+ "scheduler_type": "linear",
125
+ "sep_token": "<<SEP>>",
126
  "shuffle_types": true,
127
+ "size_sup": -1,
128
+ "span_mode": "token_level",
129
+ "subtoken_pooling": "first",
130
+ "train_batch_size": 8,
131
+ "train_data": "../../data/unie_ner1.json",
132
+ "transformers_version": "4.47.1",
133
+ "val_data_dir": "none",
134
+ "vocab_size": 128004,
135
+ "warmup_ratio": 0.1,
136
+ "weight_decay_encoder": 0.01,
137
+ "weight_decay_other": 0.01,
138
+ "words_splitter_type": "whitespace"
139
+ }
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,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
70
+ "cls_token": "[CLS]",
71
+ "do_lower_case": false,
72
+ "eos_token": "[SEP]",
73
+ "extra_special_tokens": {},
74
+ "mask_token": "[MASK]",
75
+ "model_max_length": 1000000000000000019884624838656,
76
+ "pad_token": "[PAD]",
77
+ "sep_token": "[SEP]",
78
+ "sp_model_kwargs": {},
79
+ "split_by_punct": false,
80
+ "tokenizer_class": "DebertaV2Tokenizer",
81
+ "unk_token": "[UNK]",
82
+ "vocab_type": "spm"
83
+ }