Ihor commited on
Commit
abf9bfa
1 Parent(s): 90f1f47

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
added_tokens.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "<<ENT>>": 250002,
3
+ "<<SEP>>": 250003
4
+ }
gliner_config.json ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "class_token_index": 250002,
3
+ "dropout": 0.4,
4
+ "embed_ent_token": false,
5
+ "encoder_config": {
6
+ "_name_or_path": "BAAI/bge-m3",
7
+ "add_cross_attention": false,
8
+ "architectures": [
9
+ "XLMRobertaModel"
10
+ ],
11
+ "attention_probs_dropout_prob": 0.1,
12
+ "bad_words_ids": null,
13
+ "begin_suppress_tokens": null,
14
+ "bos_token_id": 0,
15
+ "chunk_size_feed_forward": 0,
16
+ "classifier_dropout": null,
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": "gelu",
29
+ "hidden_dropout_prob": 0.1,
30
+ "hidden_size": 1024,
31
+ "id2label": {
32
+ "0": "LABEL_0",
33
+ "1": "LABEL_1"
34
+ },
35
+ "initializer_range": 0.02,
36
+ "intermediate_size": 4096,
37
+ "is_decoder": false,
38
+ "is_encoder_decoder": false,
39
+ "label2id": {
40
+ "LABEL_0": 0,
41
+ "LABEL_1": 1
42
+ },
43
+ "layer_norm_eps": 1e-05,
44
+ "length_penalty": 1.0,
45
+ "max_length": 20,
46
+ "max_position_embeddings": 8194,
47
+ "min_length": 0,
48
+ "model_type": "xlm-roberta",
49
+ "no_repeat_ngram_size": 0,
50
+ "num_attention_heads": 16,
51
+ "num_beam_groups": 1,
52
+ "num_beams": 1,
53
+ "num_hidden_layers": 24,
54
+ "num_return_sequences": 1,
55
+ "output_attentions": false,
56
+ "output_hidden_states": false,
57
+ "output_past": true,
58
+ "output_scores": false,
59
+ "pad_token_id": 1,
60
+ "position_embedding_type": "absolute",
61
+ "prefix": null,
62
+ "problem_type": null,
63
+ "pruned_heads": {},
64
+ "remove_invalid_values": false,
65
+ "repetition_penalty": 1.0,
66
+ "return_dict": true,
67
+ "return_dict_in_generate": false,
68
+ "sep_token_id": null,
69
+ "suppress_tokens": null,
70
+ "task_specific_params": null,
71
+ "temperature": 1.0,
72
+ "tf_legacy_loss": false,
73
+ "tie_encoder_decoder": false,
74
+ "tie_word_embeddings": true,
75
+ "tokenizer_class": null,
76
+ "top_k": 50,
77
+ "top_p": 1.0,
78
+ "torch_dtype": "float32",
79
+ "torchscript": false,
80
+ "type_vocab_size": 1,
81
+ "typical_p": 1.0,
82
+ "use_bfloat16": false,
83
+ "use_cache": true,
84
+ "vocab_size": 250004
85
+ },
86
+ "ent_token": "<<ENT>>",
87
+ "eval_every": 1000,
88
+ "fine_tune": true,
89
+ "freeze_token_rep": false,
90
+ "fuse_layers": false,
91
+ "has_post_transformer": false,
92
+ "has_rnn": true,
93
+ "hidden_size": 1024,
94
+ "label_smoothing": 0.0001,
95
+ "labels_encoder": null,
96
+ "labels_encoder_config": null,
97
+ "log_dir": "models/bge",
98
+ "loss_alpha": 0.75,
99
+ "loss_gamma": 2,
100
+ "loss_reduction": "sum",
101
+ "lr_encoder": "9e-6",
102
+ "lr_others": "5e-5",
103
+ "max_grad_norm": 10.0,
104
+ "max_len": 1024,
105
+ "max_neg_type_ratio": 1,
106
+ "max_types": 100,
107
+ "max_width": 12,
108
+ "model_name": "BAAI/bge-m3",
109
+ "model_type": "gliner",
110
+ "name": "span level gliner",
111
+ "num_post_fusion_layers": 3,
112
+ "num_steps": 7000,
113
+ "post_fusion_schema": "",
114
+ "prev_path": null,
115
+ "random_drop": true,
116
+ "root_dir": "gliner_logs",
117
+ "save_total_limit": 3,
118
+ "scheduler_type": "cosine",
119
+ "sep_token": "<<SEP>>",
120
+ "shuffle_types": true,
121
+ "size_sup": -1,
122
+ "span_mode": "markerV0",
123
+ "subtoken_pooling": "first",
124
+ "train_batch_size": 8,
125
+ "train_data": "data.json",
126
+ "transformers_version": "4.44.2",
127
+ "val_data_dir": "none",
128
+ "vocab_size": 250004,
129
+ "warmup_ratio": 0.1,
130
+ "weight_decay_encoder": 0.01,
131
+ "weight_decay_other": 0.01,
132
+ "words_splitter_type": "whitespace"
133
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38134a6bf15585c59cd1ce071cd8cc8250ce62b3414b0a288389a47c0a91f8ff
3
+ size 2447480898
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2549b7f6b8aaab038d4ea738d184047cbfcadf79ca5338002271d6f71e9b5fb5
3
+ size 14244
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:86bda6f92f0b9fc0f890a0e800611e258e3cd720628ed421795a016d87c60511
3
+ size 1064
sentencepiece.bpe.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
3
+ size 5069051
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7f5bbe43ebfcb76fd3ea0e1222d7632b3bb148c67ba976b75e95610dea6fb25
3
+ size 17083167
tokenizer_config.json ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
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": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "250001": {
36
+ "content": "<mask>",
37
+ "lstrip": true,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "250002": {
44
+ "content": "<<ENT>>",
45
+ "lstrip": false,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": true
50
+ },
51
+ "250003": {
52
+ "content": "<<SEP>>",
53
+ "lstrip": false,
54
+ "normalized": false,
55
+ "rstrip": false,
56
+ "single_word": false,
57
+ "special": true
58
+ }
59
+ },
60
+ "bos_token": "<s>",
61
+ "clean_up_tokenization_spaces": true,
62
+ "cls_token": "<s>",
63
+ "eos_token": "</s>",
64
+ "mask_token": "<mask>",
65
+ "model_max_length": 8192,
66
+ "pad_token": "<pad>",
67
+ "sep_token": "</s>",
68
+ "sp_model_kwargs": {},
69
+ "tokenizer_class": "XLMRobertaTokenizer",
70
+ "unk_token": "<unk>"
71
+ }
trainer_state.json ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.584507042253521,
5
+ "eval_steps": 500,
6
+ "global_step": 1800,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.0880281690140845,
13
+ "grad_norm": 1221.827392578125,
14
+ "learning_rate": 2.7777777777777783e-06,
15
+ "loss": 297.1973,
16
+ "step": 100
17
+ },
18
+ {
19
+ "epoch": 0.176056338028169,
20
+ "grad_norm": 1063.7159423828125,
21
+ "learning_rate": 4.998119881260576e-06,
22
+ "loss": 161.9498,
23
+ "step": 200
24
+ },
25
+ {
26
+ "epoch": 0.2640845070422535,
27
+ "grad_norm": 1415.1790771484375,
28
+ "learning_rate": 4.93261217644956e-06,
29
+ "loss": 149.2985,
30
+ "step": 300
31
+ },
32
+ {
33
+ "epoch": 0.352112676056338,
34
+ "grad_norm": 1143.650634765625,
35
+ "learning_rate": 4.775907352415367e-06,
36
+ "loss": 146.5141,
37
+ "step": 400
38
+ },
39
+ {
40
+ "epoch": 0.44014084507042256,
41
+ "grad_norm": 1112.0836181640625,
42
+ "learning_rate": 4.533880175657419e-06,
43
+ "loss": 125.0505,
44
+ "step": 500
45
+ },
46
+ {
47
+ "epoch": 0.528169014084507,
48
+ "grad_norm": 2647.099365234375,
49
+ "learning_rate": 4.215604094671835e-06,
50
+ "loss": 136.0549,
51
+ "step": 600
52
+ },
53
+ {
54
+ "epoch": 0.6161971830985915,
55
+ "grad_norm": 914.672119140625,
56
+ "learning_rate": 3.833011082004229e-06,
57
+ "loss": 152.9934,
58
+ "step": 700
59
+ },
60
+ {
61
+ "epoch": 0.704225352112676,
62
+ "grad_norm": 941.3635864257812,
63
+ "learning_rate": 3.400444312011776e-06,
64
+ "loss": 142.6481,
65
+ "step": 800
66
+ },
67
+ {
68
+ "epoch": 0.7922535211267606,
69
+ "grad_norm": 2750.364990234375,
70
+ "learning_rate": 2.9341204441673267e-06,
71
+ "loss": 180.6238,
72
+ "step": 900
73
+ },
74
+ {
75
+ "epoch": 0.8802816901408451,
76
+ "grad_norm": 1102.6456298828125,
77
+ "learning_rate": 2.4515216705704396e-06,
78
+ "loss": 160.7811,
79
+ "step": 1000
80
+ },
81
+ {
82
+ "epoch": 0.9683098591549296,
83
+ "grad_norm": 2127.451416015625,
84
+ "learning_rate": 1.970740319426474e-06,
85
+ "loss": 136.9254,
86
+ "step": 1100
87
+ },
88
+ {
89
+ "epoch": 1.0,
90
+ "eval_loss": 415.93927001953125,
91
+ "eval_runtime": 8.7817,
92
+ "eval_samples_per_second": 115.012,
93
+ "eval_steps_per_second": 14.462,
94
+ "step": 1136
95
+ },
96
+ {
97
+ "epoch": 1.056338028169014,
98
+ "grad_norm": 2116.73193359375,
99
+ "learning_rate": 1.509800584902108e-06,
100
+ "loss": 142.92,
101
+ "step": 1200
102
+ },
103
+ {
104
+ "epoch": 1.1443661971830985,
105
+ "grad_norm": 1667.754638671875,
106
+ "learning_rate": 1.085982811283654e-06,
107
+ "loss": 141.8554,
108
+ "step": 1300
109
+ },
110
+ {
111
+ "epoch": 1.232394366197183,
112
+ "grad_norm": 1366.0006103515625,
113
+ "learning_rate": 7.151756636052529e-07,
114
+ "loss": 149.8122,
115
+ "step": 1400
116
+ },
117
+ {
118
+ "epoch": 1.3204225352112675,
119
+ "grad_norm": 1805.1434326171875,
120
+ "learning_rate": 4.1128047146765936e-07,
121
+ "loss": 148.2215,
122
+ "step": 1500
123
+ },
124
+ {
125
+ "epoch": 1.408450704225352,
126
+ "grad_norm": 1603.68212890625,
127
+ "learning_rate": 1.8569007682777417e-07,
128
+ "loss": 142.1948,
129
+ "step": 1600
130
+ },
131
+ {
132
+ "epoch": 1.4964788732394365,
133
+ "grad_norm": 1250.8704833984375,
134
+ "learning_rate": 4.6861723431538273e-08,
135
+ "loss": 123.6116,
136
+ "step": 1700
137
+ },
138
+ {
139
+ "epoch": 1.584507042253521,
140
+ "grad_norm": 3193.298828125,
141
+ "learning_rate": 0.0,
142
+ "loss": 142.5536,
143
+ "step": 1800
144
+ }
145
+ ],
146
+ "logging_steps": 100,
147
+ "max_steps": 1800,
148
+ "num_input_tokens_seen": 0,
149
+ "num_train_epochs": 2,
150
+ "save_steps": 600,
151
+ "stateful_callbacks": {
152
+ "TrainerControl": {
153
+ "args": {
154
+ "should_epoch_stop": false,
155
+ "should_evaluate": false,
156
+ "should_log": false,
157
+ "should_save": true,
158
+ "should_training_stop": true
159
+ },
160
+ "attributes": {}
161
+ }
162
+ },
163
+ "total_flos": 0.0,
164
+ "train_batch_size": 8,
165
+ "trial_name": null,
166
+ "trial_params": null
167
+ }