Ihor commited on
Commit
f20aeb1
·
verified ·
1 Parent(s): 828336b

Upload folder using huggingface_hub

Browse files
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,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "class_token_index": 128001,
3
+ "dropout": 0.4,
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": 128003
94
+ },
95
+ "ent_token": "<<ENT>>",
96
+ "eval_every": 40000,
97
+ "fine_tune": true,
98
+ "freeze_token_rep": false,
99
+ "fuse_layers": false,
100
+ "has_rnn": true,
101
+ "hidden_size": 768,
102
+ "label_smoothing": 0,
103
+ "labels_encoder": null,
104
+ "labels_encoder_config": null,
105
+ "labels_fusion_schema": "",
106
+ "log_dir": "models/",
107
+ "loss_alpha": 0.75,
108
+ "loss_gamma": -1,
109
+ "loss_reduction": "sum",
110
+ "lr_encoder": "1e-5",
111
+ "lr_others": "5e-5",
112
+ "max_grad_norm": 1.0,
113
+ "max_len": 2048,
114
+ "max_neg_type_ratio": 1,
115
+ "max_types": 50,
116
+ "max_width": 12,
117
+ "model_name": "microsoft/deberta-v3-large",
118
+ "model_type": "gliner",
119
+ "name": "span level gliner",
120
+ "num_post_fusion_layers": 1,
121
+ "num_rnns": 1,
122
+ "num_steps": 80000,
123
+ "post_fusion_schema": "",
124
+ "pre_fusion": true,
125
+ "prev_path": null,
126
+ "random_drop": true,
127
+ "root_dir": "gliner_logs",
128
+ "save_total_limit": 2,
129
+ "scheduler_type": "cosine",
130
+ "sep_token": "<<SEP>>",
131
+ "shuffle_types": true,
132
+ "size_sup": -1,
133
+ "span_mode": "markerV0",
134
+ "subtoken_pooling": "first",
135
+ "train_batch_size": 4,
136
+ "train_data": "../data/ie_batches_8b_100k.json",
137
+ "transformers_version": "4.48.0.dev0",
138
+ "val_data_dir": "none",
139
+ "vocab_size": 128003,
140
+ "warmup_ratio": 0.1,
141
+ "weight_decay_encoder": 0.01,
142
+ "weight_decay_other": 0.01,
143
+ "words_splitter_type": "whitespace"
144
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:36279fef3399e1b80b38e06b90bf441b2c62029e87f181cef1f418151819e70d
3
+ size 1838129390
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:237491119ed3e2f26abfa5a086ba04037191e2b461af043e4caa52fb08fd05d0
3
+ size 14244
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,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
62
+ "cls_token": "[CLS]",
63
+ "do_lower_case": false,
64
+ "eos_token": "[SEP]",
65
+ "extra_special_tokens": {},
66
+ "mask_token": "[MASK]",
67
+ "model_max_length": 1000000000000000019884624838656,
68
+ "pad_token": "[PAD]",
69
+ "sep_token": "[SEP]",
70
+ "sp_model_kwargs": {},
71
+ "split_by_punct": false,
72
+ "tokenizer_class": "DebertaV2Tokenizer",
73
+ "unk_token": "[UNK]",
74
+ "vocab_type": "spm"
75
+ }
trainer_state.json ADDED
The diff for this file is too large to render. See raw diff