rpeel commited on
Commit
73fc99e
·
verified ·
1 Parent(s): 51a747a

Add gliner_config.json

Browse files
Files changed (1) hide show
  1. gliner_config.json +134 -0
gliner_config.json ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "class_token_index": 250100,
3
+ "dropout": 0.3,
4
+ "embed_ent_token": true,
5
+ "encoder_config": {
6
+ "_name_or_path": "google/mt5-large",
7
+ "add_cross_attention": false,
8
+ "architectures": [
9
+ "MT5ForConditionalGeneration"
10
+ ],
11
+ "bad_words_ids": null,
12
+ "begin_suppress_tokens": null,
13
+ "bos_token_id": null,
14
+ "chunk_size_feed_forward": 0,
15
+ "classifier_dropout": 0.0,
16
+ "cross_attention_hidden_size": null,
17
+ "d_ff": 2816,
18
+ "d_kv": 64,
19
+ "d_model": 1024,
20
+ "decoder_start_token_id": 0,
21
+ "dense_act_fn": "gelu_new",
22
+ "diversity_penalty": 0.0,
23
+ "do_sample": false,
24
+ "dropout_rate": 0.1,
25
+ "early_stopping": false,
26
+ "encoder_no_repeat_ngram_size": 0,
27
+ "eos_token_id": 1,
28
+ "exponential_decay_length_penalty": null,
29
+ "feed_forward_proj": "gated-gelu",
30
+ "finetuning_task": null,
31
+ "forced_bos_token_id": null,
32
+ "forced_eos_token_id": null,
33
+ "id2label": {
34
+ "0": "LABEL_0",
35
+ "1": "LABEL_1"
36
+ },
37
+ "initializer_factor": 1.0,
38
+ "is_decoder": false,
39
+ "is_encoder_decoder": true,
40
+ "is_gated_act": true,
41
+ "label2id": {
42
+ "LABEL_0": 0,
43
+ "LABEL_1": 1
44
+ },
45
+ "layer_norm_epsilon": 1e-06,
46
+ "length_penalty": 1.0,
47
+ "max_length": 20,
48
+ "min_length": 0,
49
+ "model_type": "mt5",
50
+ "no_repeat_ngram_size": 0,
51
+ "num_beam_groups": 1,
52
+ "num_beams": 1,
53
+ "num_decoder_layers": 24,
54
+ "num_heads": 16,
55
+ "num_layers": 24,
56
+ "num_return_sequences": 1,
57
+ "output_attentions": false,
58
+ "output_hidden_states": false,
59
+ "output_past": true,
60
+ "output_scores": false,
61
+ "pad_token_id": 0,
62
+ "prefix": null,
63
+ "problem_type": null,
64
+ "pruned_heads": {},
65
+ "relative_attention_max_distance": 128,
66
+ "relative_attention_num_buckets": 32,
67
+ "remove_invalid_values": false,
68
+ "repetition_penalty": 1.0,
69
+ "return_dict": true,
70
+ "return_dict_in_generate": false,
71
+ "sep_token_id": null,
72
+ "suppress_tokens": null,
73
+ "task_specific_params": null,
74
+ "temperature": 1.0,
75
+ "tf_legacy_loss": false,
76
+ "tie_encoder_decoder": false,
77
+ "tie_word_embeddings": false,
78
+ "tokenizer_class": "T5Tokenizer",
79
+ "top_k": 50,
80
+ "top_p": 1.0,
81
+ "torch_dtype": null,
82
+ "torchscript": false,
83
+ "typical_p": 1.0,
84
+ "use_bfloat16": false,
85
+ "use_cache": true,
86
+ "vocab_size": 250102
87
+ },
88
+ "ent_token": "<<ENT>>",
89
+ "eval_every": 10000,
90
+ "fine_tune": true,
91
+ "freeze_token_rep": false,
92
+ "fuse_layers": false,
93
+ "has_rnn": true,
94
+ "hidden_size": 1024,
95
+ "label_smoothing": 0,
96
+ "labels_encoder": null,
97
+ "labels_encoder_config": null,
98
+ "log_dir": "models/",
99
+ "loss_alpha": 0.75,
100
+ "loss_gamma": 0,
101
+ "loss_reduction": "sum",
102
+ "lr_encoder": "1e-5",
103
+ "lr_others": "3e-5",
104
+ "max_grad_norm": 10.0,
105
+ "max_len": 1024,
106
+ "max_neg_type_ratio": 1,
107
+ "max_types": 30,
108
+ "max_width": 12,
109
+ "model_name": "google/mt5-large",
110
+ "model_type": "gliner",
111
+ "name": "span level gliner",
112
+ "num_post_fusion_layers": 1,
113
+ "num_steps": 80000,
114
+ "post_fusion_schema": "",
115
+ "prev_path": null,
116
+ "random_drop": true,
117
+ "root_dir": "gliner_logs",
118
+ "save_total_limit": 3,
119
+ "scheduler_type": "cosine",
120
+ "sep_token": "<<SEP>>",
121
+ "shuffle_types": true,
122
+ "size_sup": -1,
123
+ "span_mode": "markerV0",
124
+ "subtoken_pooling": "first",
125
+ "train_batch_size": 4,
126
+ "train_data": "data/multilingual_data.json",
127
+ "transformers_version": "4.43.4",
128
+ "val_data_dir": "none",
129
+ "vocab_size": 250102,
130
+ "warmup_ratio": 0.05,
131
+ "weight_decay_encoder": 0.1,
132
+ "weight_decay_other": 0.01,
133
+ "words_splitter_type": "stanza"
134
+ }