rpeel commited on
Commit
a50f9b6
·
verified ·
1 Parent(s): 3d4bdf4

Add gliner_config.json

Browse files
Files changed (1) hide show
  1. gliner_config.json +136 -0
gliner_config.json ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "adjacency_loss_coef": 1.0,
3
+ "augment_add_other_prob": 0.5,
4
+ "augment_data_prob": 0.5,
5
+ "augment_ent_drop_prob": [
6
+ 0.0,
7
+ 1.0
8
+ ],
9
+ "augment_rel_drop_prob": [
10
+ 0.0,
11
+ 0.3
12
+ ],
13
+ "class_token_index": 128001,
14
+ "dropout": 0.3,
15
+ "embed_ent_token": true,
16
+ "embed_rel_token": true,
17
+ "encoder_config": {
18
+ "_attn_implementation_autoset": false,
19
+ "_name_or_path": "microsoft/deberta-v3-base",
20
+ "add_cross_attention": false,
21
+ "architectures": null,
22
+ "attention_probs_dropout_prob": 0.1,
23
+ "bad_words_ids": null,
24
+ "begin_suppress_tokens": null,
25
+ "bos_token_id": null,
26
+ "chunk_size_feed_forward": 0,
27
+ "cross_attention_hidden_size": null,
28
+ "decoder_start_token_id": null,
29
+ "diversity_penalty": 0.0,
30
+ "do_sample": false,
31
+ "dtype": null,
32
+ "early_stopping": false,
33
+ "encoder_no_repeat_ngram_size": 0,
34
+ "eos_token_id": null,
35
+ "exponential_decay_length_penalty": null,
36
+ "finetuning_task": null,
37
+ "forced_bos_token_id": null,
38
+ "forced_eos_token_id": null,
39
+ "hidden_act": "gelu",
40
+ "hidden_dropout_prob": 0.1,
41
+ "hidden_size": 768,
42
+ "id2label": {
43
+ "0": "LABEL_0",
44
+ "1": "LABEL_1"
45
+ },
46
+ "initializer_range": 0.02,
47
+ "intermediate_size": 3072,
48
+ "is_decoder": false,
49
+ "is_encoder_decoder": false,
50
+ "label2id": {
51
+ "LABEL_0": 0,
52
+ "LABEL_1": 1
53
+ },
54
+ "layer_norm_eps": 1e-07,
55
+ "legacy": true,
56
+ "length_penalty": 1.0,
57
+ "max_length": 20,
58
+ "max_position_embeddings": 512,
59
+ "max_relative_positions": -1,
60
+ "min_length": 0,
61
+ "model_type": "deberta-v2",
62
+ "no_repeat_ngram_size": 0,
63
+ "norm_rel_ebd": "layer_norm",
64
+ "num_attention_heads": 12,
65
+ "num_beam_groups": 1,
66
+ "num_beams": 1,
67
+ "num_hidden_layers": 12,
68
+ "num_return_sequences": 1,
69
+ "output_attentions": false,
70
+ "output_hidden_states": false,
71
+ "output_scores": false,
72
+ "pad_token_id": 0,
73
+ "pooler_dropout": 0,
74
+ "pooler_hidden_act": "gelu",
75
+ "pooler_hidden_size": 768,
76
+ "pos_att_type": [
77
+ "p2c",
78
+ "c2p"
79
+ ],
80
+ "position_biased_input": false,
81
+ "position_buckets": 256,
82
+ "prefix": null,
83
+ "problem_type": null,
84
+ "pruned_heads": {},
85
+ "relative_attention": true,
86
+ "remove_invalid_values": false,
87
+ "repetition_penalty": 1.0,
88
+ "return_dict": true,
89
+ "return_dict_in_generate": false,
90
+ "sep_token_id": null,
91
+ "share_att_key": true,
92
+ "suppress_tokens": null,
93
+ "task_specific_params": null,
94
+ "temperature": 1.0,
95
+ "tf_legacy_loss": false,
96
+ "tie_encoder_decoder": false,
97
+ "tie_word_embeddings": true,
98
+ "tokenizer_class": null,
99
+ "top_k": 50,
100
+ "top_p": 1.0,
101
+ "torchscript": false,
102
+ "type_vocab_size": 0,
103
+ "typical_p": 1.0,
104
+ "use_bfloat16": false,
105
+ "vocab_size": 128004
106
+ },
107
+ "ent_token": "<<ENT>>",
108
+ "fine_tune": true,
109
+ "fuse_layers": false,
110
+ "hidden_size": 768,
111
+ "max_len": 1024,
112
+ "max_neg_type_ratio": 1,
113
+ "max_types": 100,
114
+ "max_width": 12,
115
+ "model_name": "microsoft/deberta-v3-base",
116
+ "model_type": null,
117
+ "name": "span level gliner",
118
+ "neg_spans_ratio": 1.0,
119
+ "num_post_fusion_layers": 1,
120
+ "num_rnn_layers": 1,
121
+ "post_fusion_schema": null,
122
+ "rel_token": "<<REL>>",
123
+ "rel_token_index": 128003,
124
+ "relation_loss_coef": 1.0,
125
+ "relations_layer": "none",
126
+ "represent_spans": true,
127
+ "sep_token": "<<SEP>>",
128
+ "span_loss_coef": 1.0,
129
+ "span_mode": "token_level",
130
+ "subtoken_pooling": "first",
131
+ "token_loss_coef": 1.0,
132
+ "transformers_version": "4.57.3",
133
+ "triples_layer": null,
134
+ "vocab_size": 128004,
135
+ "words_splitter_type": "whitespace"
136
+ }