jzonthemtn
commited on
Commit
•
11a43fe
1
Parent(s):
15ede3a
Initial commit of model.
Browse files- added_tokens.json +6 -0
- gliner_config.json +124 -0
- optimizer.pt +3 -0
- pytorch_model.bin +3 -0
- rng_state.pth +3 -0
- scheduler.pt +3 -0
- special_tokens_map.json +15 -0
- spm.model +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +82 -0
- trainer_state.json +63 -0
added_tokens.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<<ENT>>": 128002,
|
3 |
+
"<<SEP>>": 128003,
|
4 |
+
"[FLERT]": 128001,
|
5 |
+
"[MASK]": 128000
|
6 |
+
}
|
gliner_config.json
ADDED
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"class_token_index": 128002,
|
3 |
+
"dropout": 0.4,
|
4 |
+
"embed_ent_token": true,
|
5 |
+
"encoder_config": {
|
6 |
+
"_name_or_path": "microsoft/deberta-v3-small",
|
7 |
+
"add_cross_attention": false,
|
8 |
+
"architectures": null,
|
9 |
+
"attention_probs_dropout_prob": 0.1,
|
10 |
+
"bad_words_ids": null,
|
11 |
+
"begin_suppress_tokens": null,
|
12 |
+
"bos_token_id": null,
|
13 |
+
"chunk_size_feed_forward": 0,
|
14 |
+
"cross_attention_hidden_size": null,
|
15 |
+
"decoder_start_token_id": null,
|
16 |
+
"diversity_penalty": 0.0,
|
17 |
+
"do_sample": false,
|
18 |
+
"early_stopping": false,
|
19 |
+
"encoder_no_repeat_ngram_size": 0,
|
20 |
+
"eos_token_id": null,
|
21 |
+
"exponential_decay_length_penalty": null,
|
22 |
+
"finetuning_task": null,
|
23 |
+
"forced_bos_token_id": null,
|
24 |
+
"forced_eos_token_id": null,
|
25 |
+
"hidden_act": "gelu",
|
26 |
+
"hidden_dropout_prob": 0.1,
|
27 |
+
"hidden_size": 768,
|
28 |
+
"id2label": {
|
29 |
+
"0": "LABEL_0",
|
30 |
+
"1": "LABEL_1"
|
31 |
+
},
|
32 |
+
"initializer_range": 0.02,
|
33 |
+
"intermediate_size": 3072,
|
34 |
+
"is_decoder": false,
|
35 |
+
"is_encoder_decoder": false,
|
36 |
+
"label2id": {
|
37 |
+
"LABEL_0": 0,
|
38 |
+
"LABEL_1": 1
|
39 |
+
},
|
40 |
+
"layer_norm_eps": 1e-07,
|
41 |
+
"length_penalty": 1.0,
|
42 |
+
"max_length": 20,
|
43 |
+
"max_position_embeddings": 512,
|
44 |
+
"max_relative_positions": -1,
|
45 |
+
"min_length": 0,
|
46 |
+
"model_type": "deberta-v2",
|
47 |
+
"no_repeat_ngram_size": 0,
|
48 |
+
"norm_rel_ebd": "layer_norm",
|
49 |
+
"num_attention_heads": 12,
|
50 |
+
"num_beam_groups": 1,
|
51 |
+
"num_beams": 1,
|
52 |
+
"num_hidden_layers": 6,
|
53 |
+
"num_return_sequences": 1,
|
54 |
+
"output_attentions": false,
|
55 |
+
"output_hidden_states": false,
|
56 |
+
"output_scores": false,
|
57 |
+
"pad_token_id": 0,
|
58 |
+
"pooler_dropout": 0,
|
59 |
+
"pooler_hidden_act": "gelu",
|
60 |
+
"pooler_hidden_size": 768,
|
61 |
+
"pos_att_type": [
|
62 |
+
"p2c",
|
63 |
+
"c2p"
|
64 |
+
],
|
65 |
+
"position_biased_input": false,
|
66 |
+
"position_buckets": 256,
|
67 |
+
"prefix": null,
|
68 |
+
"problem_type": null,
|
69 |
+
"pruned_heads": {},
|
70 |
+
"relative_attention": true,
|
71 |
+
"remove_invalid_values": false,
|
72 |
+
"repetition_penalty": 1.0,
|
73 |
+
"return_dict": true,
|
74 |
+
"return_dict_in_generate": false,
|
75 |
+
"sep_token_id": null,
|
76 |
+
"share_att_key": true,
|
77 |
+
"suppress_tokens": null,
|
78 |
+
"task_specific_params": null,
|
79 |
+
"temperature": 1.0,
|
80 |
+
"tf_legacy_loss": false,
|
81 |
+
"tie_encoder_decoder": false,
|
82 |
+
"tie_word_embeddings": true,
|
83 |
+
"tokenizer_class": null,
|
84 |
+
"top_k": 50,
|
85 |
+
"top_p": 1.0,
|
86 |
+
"torch_dtype": null,
|
87 |
+
"torchscript": false,
|
88 |
+
"type_vocab_size": 0,
|
89 |
+
"typical_p": 1.0,
|
90 |
+
"use_bfloat16": false,
|
91 |
+
"vocab_size": 128004
|
92 |
+
},
|
93 |
+
"ent_token": "<<ENT>>",
|
94 |
+
"eval_every": 5000,
|
95 |
+
"fine_tune": true,
|
96 |
+
"fuse_layers": false,
|
97 |
+
"has_rnn": true,
|
98 |
+
"hidden_size": 512,
|
99 |
+
"labels_encoder": null,
|
100 |
+
"labels_encoder_config": null,
|
101 |
+
"lr_encoder": "1e-5",
|
102 |
+
"lr_others": "5e-5",
|
103 |
+
"max_len": 384,
|
104 |
+
"max_neg_type_ratio": 1,
|
105 |
+
"max_types": 25,
|
106 |
+
"max_width": 12,
|
107 |
+
"model_name": "microsoft/deberta-v3-small",
|
108 |
+
"model_type": "gliner",
|
109 |
+
"name": "correct",
|
110 |
+
"num_post_fusion_layers": 1,
|
111 |
+
"num_steps": 30000,
|
112 |
+
"post_fusion_schema": "",
|
113 |
+
"random_drop": true,
|
114 |
+
"sep_token": "<<SEP>>",
|
115 |
+
"shuffle_types": true,
|
116 |
+
"size_sup": -1,
|
117 |
+
"span_mode": "markerV0",
|
118 |
+
"subtoken_pooling": "first",
|
119 |
+
"train_batch_size": 8,
|
120 |
+
"transformers_version": "4.45.2",
|
121 |
+
"vocab_size": 128004,
|
122 |
+
"warmup_ratio": 3000,
|
123 |
+
"words_splitter_type": "whitespace"
|
124 |
+
}
|
optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:40956fb7a9d1f2b5f85bc7b2c9277042bfb126685f700bc375a63fbb83e6f182
|
3 |
+
size 1221297210
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f875c2ed339d270f5d42c488ee8f9d87ba894f382a74f09a8b67c8a96ba40779
|
3 |
+
size 610640046
|
rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e1b7a4e65f907bc1343f241c548942988c9a63bc65ea56f835dda71273ab4c9
|
3 |
+
size 14180
|
scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1d00633dcf865975bb59b841e8746c5e9c596f63229d95051fbdca4ebac181df
|
3 |
+
size 1064
|
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,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "[FLERT]",
|
45 |
+
"lstrip": false,
|
46 |
+
"normalized": true,
|
47 |
+
"rstrip": false,
|
48 |
+
"single_word": false,
|
49 |
+
"special": false
|
50 |
+
},
|
51 |
+
"128002": {
|
52 |
+
"content": "<<ENT>>",
|
53 |
+
"lstrip": false,
|
54 |
+
"normalized": true,
|
55 |
+
"rstrip": false,
|
56 |
+
"single_word": false,
|
57 |
+
"special": false
|
58 |
+
},
|
59 |
+
"128003": {
|
60 |
+
"content": "<<SEP>>",
|
61 |
+
"lstrip": false,
|
62 |
+
"normalized": true,
|
63 |
+
"rstrip": false,
|
64 |
+
"single_word": false,
|
65 |
+
"special": false
|
66 |
+
}
|
67 |
+
},
|
68 |
+
"bos_token": "[CLS]",
|
69 |
+
"clean_up_tokenization_spaces": false,
|
70 |
+
"cls_token": "[CLS]",
|
71 |
+
"do_lower_case": false,
|
72 |
+
"eos_token": "[SEP]",
|
73 |
+
"mask_token": "[MASK]",
|
74 |
+
"model_max_length": 1000000000000000019884624838656,
|
75 |
+
"pad_token": "[PAD]",
|
76 |
+
"sep_token": "[SEP]",
|
77 |
+
"sp_model_kwargs": {},
|
78 |
+
"split_by_punct": false,
|
79 |
+
"tokenizer_class": "DebertaV2Tokenizer",
|
80 |
+
"unk_token": "[UNK]",
|
81 |
+
"vocab_type": "spm"
|
82 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 0.20013743343068202,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 1165,
|
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.08589589417625837,
|
13 |
+
"grad_norm": 303.1338195800781,
|
14 |
+
"learning_rate": 6.345419847328245e-06,
|
15 |
+
"loss": 23.7695,
|
16 |
+
"step": 500
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.08589589417625837,
|
20 |
+
"eval_loss": 551.8925170898438,
|
21 |
+
"eval_runtime": 125.7319,
|
22 |
+
"eval_samples_per_second": 41.445,
|
23 |
+
"eval_steps_per_second": 5.186,
|
24 |
+
"step": 500
|
25 |
+
},
|
26 |
+
{
|
27 |
+
"epoch": 0.17179178835251674,
|
28 |
+
"grad_norm": 176.70028686523438,
|
29 |
+
"learning_rate": 1.5744274809160306e-06,
|
30 |
+
"loss": 13.8972,
|
31 |
+
"step": 1000
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"epoch": 0.17179178835251674,
|
35 |
+
"eval_loss": 467.1653137207031,
|
36 |
+
"eval_runtime": 125.8528,
|
37 |
+
"eval_samples_per_second": 41.406,
|
38 |
+
"eval_steps_per_second": 5.181,
|
39 |
+
"step": 1000
|
40 |
+
}
|
41 |
+
],
|
42 |
+
"logging_steps": 500,
|
43 |
+
"max_steps": 1165,
|
44 |
+
"num_input_tokens_seen": 0,
|
45 |
+
"num_train_epochs": 1,
|
46 |
+
"save_steps": 100,
|
47 |
+
"stateful_callbacks": {
|
48 |
+
"TrainerControl": {
|
49 |
+
"args": {
|
50 |
+
"should_epoch_stop": false,
|
51 |
+
"should_evaluate": false,
|
52 |
+
"should_log": false,
|
53 |
+
"should_save": true,
|
54 |
+
"should_training_stop": true
|
55 |
+
},
|
56 |
+
"attributes": {}
|
57 |
+
}
|
58 |
+
},
|
59 |
+
"total_flos": 0.0,
|
60 |
+
"train_batch_size": 8,
|
61 |
+
"trial_name": null,
|
62 |
+
"trial_params": null
|
63 |
+
}
|