Ihor commited on
Commit
9a402b3
·
verified ·
1 Parent(s): bd95a05

Upload folder using huggingface_hub

Browse files
added_tokens.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "<<ENT>>": 32000,
3
+ "<<SEP>>": 32001,
4
+ "[PAD]": 32002
5
+ }
gliner_config.json ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "class_token_index": 32000,
3
+ "dropout": 0.35,
4
+ "embed_ent_token": true,
5
+ "encoder_config": {
6
+ "_name_or_path": "knowledgator/Llama-encoder-1.0B",
7
+ "add_cross_attention": false,
8
+ "architectures": [
9
+ "LlamaForCausalLM"
10
+ ],
11
+ "attention_bias": false,
12
+ "attention_dropout": 0.0,
13
+ "bad_words_ids": null,
14
+ "begin_suppress_tokens": null,
15
+ "bos_token_id": 1,
16
+ "chunk_size_feed_forward": 0,
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": 2,
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": "silu",
29
+ "hidden_size": 2048,
30
+ "id2label": {
31
+ "0": "LABEL_0",
32
+ "1": "LABEL_1"
33
+ },
34
+ "initializer_range": 0.02,
35
+ "intermediate_size": 5632,
36
+ "is_decoder": false,
37
+ "is_encoder_decoder": false,
38
+ "label2id": {
39
+ "LABEL_0": 0,
40
+ "LABEL_1": 1
41
+ },
42
+ "length_penalty": 1.0,
43
+ "max_length": 20,
44
+ "max_position_embeddings": 2048,
45
+ "min_length": 0,
46
+ "model_type": "llama",
47
+ "no_repeat_ngram_size": 0,
48
+ "num_attention_heads": 32,
49
+ "num_beam_groups": 1,
50
+ "num_beams": 1,
51
+ "num_hidden_layers": 22,
52
+ "num_key_value_heads": 4,
53
+ "num_return_sequences": 1,
54
+ "output_attentions": false,
55
+ "output_hidden_states": false,
56
+ "output_scores": false,
57
+ "pad_token_id": null,
58
+ "prefix": null,
59
+ "pretraining_tp": 1,
60
+ "problem_type": null,
61
+ "pruned_heads": {},
62
+ "remove_invalid_values": false,
63
+ "repetition_penalty": 1.0,
64
+ "return_dict": true,
65
+ "return_dict_in_generate": false,
66
+ "rms_norm_eps": 1e-05,
67
+ "rope_scaling": null,
68
+ "rope_theta": 10000.0,
69
+ "sep_token_id": null,
70
+ "suppress_tokens": null,
71
+ "task_specific_params": null,
72
+ "temperature": 1.0,
73
+ "tf_legacy_loss": false,
74
+ "tie_encoder_decoder": false,
75
+ "tie_word_embeddings": false,
76
+ "tokenizer_class": null,
77
+ "top_k": 50,
78
+ "top_p": 1.0,
79
+ "torch_dtype": "float32",
80
+ "torchscript": false,
81
+ "typical_p": 1.0,
82
+ "use_bfloat16": false,
83
+ "use_cache": true,
84
+ "vocab_size": 32003
85
+ },
86
+ "ent_token": "<<ENT>>",
87
+ "eval_every": 25000,
88
+ "fine_tune": true,
89
+ "freeze_token_rep": false,
90
+ "fuse_layers": false,
91
+ "has_rnn": true,
92
+ "hidden_size": 1024,
93
+ "label_smoothing": 0.01,
94
+ "labels_encoder": null,
95
+ "labels_encoder_config": null,
96
+ "log_dir": "models/",
97
+ "loss_alpha": 0.8,
98
+ "loss_gamma": -1,
99
+ "loss_reduction": "sum",
100
+ "lr_encoder": "1e-5",
101
+ "lr_others": "5e-5",
102
+ "max_grad_norm": 1.0,
103
+ "max_len": 1024,
104
+ "max_neg_type_ratio": 1,
105
+ "max_types": 30,
106
+ "max_width": 12,
107
+ "model_name": "knowledgator/Llama-encoder-1.0B",
108
+ "model_type": "gliner",
109
+ "name": "span level gliner",
110
+ "num_post_fusion_layers": 1,
111
+ "num_steps": 50000,
112
+ "post_fusion_schema": null,
113
+ "prev_path": null,
114
+ "random_drop": true,
115
+ "root_dir": "gliner_logs",
116
+ "save_total_limit": 2,
117
+ "scheduler_type": "cosine",
118
+ "sep_token": "<<SEP>>",
119
+ "shuffle_types": true,
120
+ "size_sup": -1,
121
+ "span_mode": "token_level",
122
+ "subtoken_pooling": "first",
123
+ "train_batch_size": 4,
124
+ "train_data": "data/unie_post.json",
125
+ "transformers_version": "4.40.2",
126
+ "val_data_dir": "none",
127
+ "vocab_size": 32002,
128
+ "warmup_ratio": 0.1,
129
+ "weight_decay_encoder": 0.01,
130
+ "weight_decay_other": 0.001,
131
+ "words_splitter_type": "whitespace"
132
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60d2f5cb12e7a23ee4a5087166daa8ac55cb2a7003f63441dcb95fc15355a2cc
3
+ size 4238933590
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
tokenizer_config.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "32000": {
30
+ "content": "<<ENT>>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "32001": {
38
+ "content": "<<SEP>>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "32002": {
46
+ "content": "[PAD]",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ }
53
+ },
54
+ "bos_token": "<s>",
55
+ "clean_up_tokenization_spaces": false,
56
+ "eos_token": "</s>",
57
+ "legacy": false,
58
+ "model_max_length": 1000000000000000019884624838656,
59
+ "pad_token": "[PAD]",
60
+ "padding_side": "right",
61
+ "sp_model_kwargs": {},
62
+ "tokenizer_class": "LlamaTokenizer",
63
+ "unk_token": "<unk>",
64
+ "use_default_system_prompt": false
65
+ }