Upload folder using huggingface_hub
Browse files- added_tokens.json +4 -0
- gliner_config.json +132 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +37 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +64 -0
- trainer_state.json +113 -0
added_tokens.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<<ENT>>": 32000,
|
3 |
+
"<<SEP>>": 32001
|
4 |
+
}
|
gliner_config.json
ADDED
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"class_token_index": 32000,
|
3 |
+
"dropout": 0.4,
|
4 |
+
"embed_ent_token": false,
|
5 |
+
"encoder_config": {
|
6 |
+
"_name_or_path": "knowledgator/Sheared-LLaMA-encoder-1.3B",
|
7 |
+
"add_cross_attention": false,
|
8 |
+
"architectures": [
|
9 |
+
"LlamaBiModel"
|
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": 5504,
|
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": 4096,
|
45 |
+
"min_length": 0,
|
46 |
+
"model_type": "llama",
|
47 |
+
"no_repeat_ngram_size": 0,
|
48 |
+
"num_attention_heads": 16,
|
49 |
+
"num_beam_groups": 1,
|
50 |
+
"num_beams": 1,
|
51 |
+
"num_hidden_layers": 24,
|
52 |
+
"num_key_value_heads": 16,
|
53 |
+
"num_return_sequences": 1,
|
54 |
+
"output_attentions": false,
|
55 |
+
"output_hidden_states": false,
|
56 |
+
"output_scores": false,
|
57 |
+
"pad_token_id": 0,
|
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": "bfloat16",
|
80 |
+
"torchscript": false,
|
81 |
+
"typical_p": 1.0,
|
82 |
+
"use_bfloat16": false,
|
83 |
+
"use_cache": true,
|
84 |
+
"vocab_size": 32002
|
85 |
+
},
|
86 |
+
"ent_token": "<<ENT>>",
|
87 |
+
"eval_every": 3000,
|
88 |
+
"fine_tune": true,
|
89 |
+
"freeze_token_rep": false,
|
90 |
+
"fuse_layers": false,
|
91 |
+
"has_rnn": true,
|
92 |
+
"hidden_size": 2048,
|
93 |
+
"label_smoothing": 0.0001,
|
94 |
+
"labels_encoder": null,
|
95 |
+
"labels_encoder_config": null,
|
96 |
+
"log_dir": "llama",
|
97 |
+
"loss_alpha": 0.8,
|
98 |
+
"loss_gamma": 2,
|
99 |
+
"loss_reduction": "sum",
|
100 |
+
"lr_encoder": "8e-6",
|
101 |
+
"lr_others": "5e-5",
|
102 |
+
"max_grad_norm": 10.0,
|
103 |
+
"max_len": 1024,
|
104 |
+
"max_neg_type_ratio": 1,
|
105 |
+
"max_types": 100,
|
106 |
+
"max_width": 12,
|
107 |
+
"model_name": "knowledgator/Sheared-LLaMA-encoder-1.3B",
|
108 |
+
"model_type": "gliner",
|
109 |
+
"name": "span level gliner",
|
110 |
+
"num_post_fusion_layers": 3,
|
111 |
+
"num_steps": 9000,
|
112 |
+
"post_fusion_schema": "",
|
113 |
+
"prev_path": null,
|
114 |
+
"random_drop": true,
|
115 |
+
"root_dir": "gliner_logs",
|
116 |
+
"save_total_limit": 3,
|
117 |
+
"scheduler_type": "linear",
|
118 |
+
"sep_token": "<<SEP>>",
|
119 |
+
"shuffle_types": true,
|
120 |
+
"size_sup": -1,
|
121 |
+
"span_mode": "markerV0",
|
122 |
+
"subtoken_pooling": "first",
|
123 |
+
"train_batch_size": 8,
|
124 |
+
"train_data": "data.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.01,
|
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:c32c1d5ef4f090b497296db17ff0d1449923669c2cc28ad38c2812d02d70d646
|
3 |
+
size 5824576326
|
special_tokens_map.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "</s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": true,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"mask_token": {
|
17 |
+
"content": "_",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"pad_token": {
|
24 |
+
"content": "</s>",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": true,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
},
|
30 |
+
"unk_token": {
|
31 |
+
"content": "<unk>",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": true,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false
|
36 |
+
}
|
37 |
+
}
|
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,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": true,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false,
|
11 |
+
"special": true
|
12 |
+
},
|
13 |
+
"1": {
|
14 |
+
"content": "<s>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": true,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false,
|
19 |
+
"special": true
|
20 |
+
},
|
21 |
+
"2": {
|
22 |
+
"content": "</s>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": true,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false,
|
27 |
+
"special": true
|
28 |
+
},
|
29 |
+
"29918": {
|
30 |
+
"content": "_",
|
31 |
+
"lstrip": false,
|
32 |
+
"normalized": false,
|
33 |
+
"rstrip": false,
|
34 |
+
"single_word": false,
|
35 |
+
"special": true
|
36 |
+
},
|
37 |
+
"32000": {
|
38 |
+
"content": "<<ENT>>",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": false,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false,
|
43 |
+
"special": true
|
44 |
+
},
|
45 |
+
"32001": {
|
46 |
+
"content": "<<SEP>>",
|
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 |
+
"mask_token": "_",
|
58 |
+
"model_max_length": 1000000000000000019884624838656,
|
59 |
+
"pad_token": "</s>",
|
60 |
+
"sp_model_kwargs": {},
|
61 |
+
"tokenizer_class": "LlamaTokenizer",
|
62 |
+
"unk_token": "<unk>",
|
63 |
+
"use_default_system_prompt": false
|
64 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 1.046207497820401,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 1200,
|
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.08718395815170009,
|
13 |
+
"grad_norm": 492.52783203125,
|
14 |
+
"learning_rate": 5.833333333333333e-06,
|
15 |
+
"loss": 21.8384,
|
16 |
+
"step": 100
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.17436791630340018,
|
20 |
+
"grad_norm": 143.71047973632812,
|
21 |
+
"learning_rate": 6.481481481481481e-06,
|
22 |
+
"loss": 19.3308,
|
23 |
+
"step": 200
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.26155187445510025,
|
27 |
+
"grad_norm": 805.2228393554688,
|
28 |
+
"learning_rate": 5.833333333333333e-06,
|
29 |
+
"loss": 21.3734,
|
30 |
+
"step": 300
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.34873583260680036,
|
34 |
+
"grad_norm": 405.0468444824219,
|
35 |
+
"learning_rate": 5.185185185185185e-06,
|
36 |
+
"loss": 19.1667,
|
37 |
+
"step": 400
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.43591979075850046,
|
41 |
+
"grad_norm": 632.6600952148438,
|
42 |
+
"learning_rate": 4.537037037037037e-06,
|
43 |
+
"loss": 17.4984,
|
44 |
+
"step": 500
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 0.5231037489102005,
|
48 |
+
"grad_norm": 890.8648071289062,
|
49 |
+
"learning_rate": 3.888888888888889e-06,
|
50 |
+
"loss": 16.9422,
|
51 |
+
"step": 600
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.6102877070619006,
|
55 |
+
"grad_norm": 243.8746337890625,
|
56 |
+
"learning_rate": 3.2407407407407406e-06,
|
57 |
+
"loss": 19.9537,
|
58 |
+
"step": 700
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 0.6974716652136007,
|
62 |
+
"grad_norm": 408.9120178222656,
|
63 |
+
"learning_rate": 2.5925925925925925e-06,
|
64 |
+
"loss": 18.6301,
|
65 |
+
"step": 800
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 0.7846556233653008,
|
69 |
+
"grad_norm": 171.10406494140625,
|
70 |
+
"learning_rate": 1.9444444444444444e-06,
|
71 |
+
"loss": 15.2552,
|
72 |
+
"step": 900
|
73 |
+
},
|
74 |
+
{
|
75 |
+
"epoch": 0.8718395815170009,
|
76 |
+
"grad_norm": 236.40130615234375,
|
77 |
+
"learning_rate": 1.2962962962962962e-06,
|
78 |
+
"loss": 14.5902,
|
79 |
+
"step": 1000
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"epoch": 0.9590235396687009,
|
83 |
+
"grad_norm": 386.51702880859375,
|
84 |
+
"learning_rate": 6.481481481481481e-07,
|
85 |
+
"loss": 12.5311,
|
86 |
+
"step": 1100
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"epoch": 1.0,
|
90 |
+
"eval_loss": 508.4683532714844,
|
91 |
+
"eval_runtime": 15.2151,
|
92 |
+
"eval_samples_per_second": 67.038,
|
93 |
+
"eval_steps_per_second": 8.413,
|
94 |
+
"step": 1147
|
95 |
+
},
|
96 |
+
{
|
97 |
+
"epoch": 1.046207497820401,
|
98 |
+
"grad_norm": 72.9695053100586,
|
99 |
+
"learning_rate": 0.0,
|
100 |
+
"loss": 13.603,
|
101 |
+
"step": 1200
|
102 |
+
}
|
103 |
+
],
|
104 |
+
"logging_steps": 100,
|
105 |
+
"max_steps": 1200,
|
106 |
+
"num_input_tokens_seen": 0,
|
107 |
+
"num_train_epochs": 2,
|
108 |
+
"save_steps": 300,
|
109 |
+
"total_flos": 0.0,
|
110 |
+
"train_batch_size": 8,
|
111 |
+
"trial_name": null,
|
112 |
+
"trial_params": null
|
113 |
+
}
|