Token Classification
GLiNER
PyTorch
multilingual
NER
GLiNER
information extraction
encoder
entity recognition
Ihor commited on
Commit
dc31849
1 Parent(s): 296c54a

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. gliner_config.json +13 -13
  2. pytorch_model.bin +2 -2
  3. trainer_state.json +53 -53
gliner_config.json CHANGED
@@ -3,7 +3,7 @@
3
  "dropout": 0.4,
4
  "embed_ent_token": false,
5
  "encoder_config": {
6
- "_name_or_path": "knowledgator/Qwen2-1.5B-Instruct-checkpint30000",
7
  "add_cross_attention": false,
8
  "architectures": [
9
  "Qwen2ForCausalLM"
@@ -81,34 +81,34 @@
81
  "use_bfloat16": false,
82
  "use_cache": true,
83
  "use_sliding_window": false,
84
- "vocab_size": 151648
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.0,
94
  "labels_encoder": null,
95
  "labels_encoder_config": null,
96
- "log_dir": "models/qwen",
97
- "loss_alpha": 0.75,
98
- "loss_gamma": -1,
99
  "loss_reduction": "sum",
100
- "lr_encoder": "1e-5",
101
  "lr_others": "5e-5",
102
  "max_grad_norm": 10.0,
103
- "max_len": 512,
104
  "max_neg_type_ratio": 1,
105
- "max_types": 30,
106
  "max_width": 12,
107
- "model_name": "knowledgator/Qwen2-1.5B-Instruct-checkpint30000",
108
  "model_type": "gliner",
109
  "name": "span level gliner",
110
- "num_post_fusion_layers": 1,
111
- "num_steps": 9000,
112
  "post_fusion_schema": "",
113
  "prev_path": null,
114
  "random_drop": true,
 
3
  "dropout": 0.4,
4
  "embed_ent_token": false,
5
  "encoder_config": {
6
+ "_name_or_path": "knowledgator/Qwen2-1.5B-Instruct-checkpint120000",
7
  "add_cross_attention": false,
8
  "architectures": [
9
  "Qwen2ForCausalLM"
 
81
  "use_bfloat16": false,
82
  "use_cache": true,
83
  "use_sliding_window": false,
84
+ "vocab_size": 151649
85
  },
86
  "ent_token": "<<ENT>>",
87
+ "eval_every": 1000,
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": "qwen",
97
+ "loss_alpha": 0.8,
98
+ "loss_gamma": 2,
99
  "loss_reduction": "sum",
100
+ "lr_encoder": "7e-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/Qwen2-1.5B-Instruct-checkpint120000",
108
  "model_type": "gliner",
109
  "name": "span level gliner",
110
+ "num_post_fusion_layers": 3,
111
+ "num_steps": 6000,
112
  "post_fusion_schema": "",
113
  "prev_path": null,
114
  "random_drop": true,
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:23fceb25e4d7b2391ad53746befeb67e6fc2e1b76178b208ca070a6ef7a983e1
3
- size 6890734142
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7cab72664e78cfe5a1199ce19b01b5573061c6ba94265674a7199cebef4c5d19
3
+ size 6890740286
trainer_state.json CHANGED
@@ -1,7 +1,7 @@
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,
@@ -9,95 +9,95 @@
9
  "is_world_process_zero": true,
10
  "log_history": [
11
  {
12
- "epoch": 0.08718395815170009,
13
- "grad_norm": 1260.8033447265625,
14
- "learning_rate": 8.333333333333333e-07,
15
- "loss": 14.8341,
16
  "step": 100
17
  },
18
  {
19
- "epoch": 0.17436791630340018,
20
- "grad_norm": 745.888427734375,
21
- "learning_rate": 9.259259259259259e-07,
22
- "loss": 15.6171,
23
  "step": 200
24
  },
25
  {
26
- "epoch": 0.26155187445510025,
27
- "grad_norm": 840.9533081054688,
28
- "learning_rate": 8.333333333333333e-07,
29
- "loss": 15.8498,
30
  "step": 300
31
  },
32
  {
33
- "epoch": 0.34873583260680036,
34
- "grad_norm": 373.6918029785156,
35
- "learning_rate": 7.407407407407406e-07,
36
- "loss": 16.6859,
37
  "step": 400
38
  },
39
  {
40
- "epoch": 0.43591979075850046,
41
- "grad_norm": 580.3277587890625,
42
- "learning_rate": 6.481481481481481e-07,
43
- "loss": 14.4898,
44
  "step": 500
45
  },
46
  {
47
- "epoch": 0.5231037489102005,
48
- "grad_norm": 77.99569702148438,
49
- "learning_rate": 5.555555555555555e-07,
50
- "loss": 15.7702,
51
  "step": 600
52
  },
53
  {
54
- "epoch": 0.6102877070619006,
55
- "grad_norm": 147.39584350585938,
56
- "learning_rate": 4.6296296296296297e-07,
57
- "loss": 15.0814,
58
  "step": 700
59
  },
60
  {
61
- "epoch": 0.6974716652136007,
62
- "grad_norm": 141.38795471191406,
63
- "learning_rate": 3.703703703703703e-07,
64
- "loss": 12.6944,
65
  "step": 800
66
  },
67
  {
68
- "epoch": 0.7846556233653008,
69
- "grad_norm": 947.9025268554688,
70
- "learning_rate": 2.7777777777777776e-07,
71
- "loss": 12.4095,
72
  "step": 900
73
  },
74
  {
75
- "epoch": 0.8718395815170009,
76
- "grad_norm": 862.9531860351562,
77
- "learning_rate": 1.8518518518518516e-07,
78
- "loss": 12.4597,
79
  "step": 1000
80
  },
81
  {
82
- "epoch": 0.9590235396687009,
83
- "grad_norm": 247.12240600585938,
84
- "learning_rate": 9.259259259259258e-08,
85
- "loss": 11.3951,
86
  "step": 1100
87
  },
88
  {
89
  "epoch": 1.0,
90
- "eval_loss": 476.5635681152344,
91
- "eval_runtime": 22.3653,
92
- "eval_samples_per_second": 45.606,
93
- "eval_steps_per_second": 5.723,
94
- "step": 1147
95
  },
96
  {
97
- "epoch": 1.046207497820401,
98
- "grad_norm": 573.4383544921875,
99
  "learning_rate": 0.0,
100
- "loss": 12.2434,
101
  "step": 1200
102
  }
103
  ],
 
1
  {
2
  "best_metric": null,
3
  "best_model_checkpoint": null,
4
+ "epoch": 1.056338028169014,
5
  "eval_steps": 500,
6
  "global_step": 1200,
7
  "is_hyper_param_search": false,
 
9
  "is_world_process_zero": true,
10
  "log_history": [
11
  {
12
+ "epoch": 0.0880281690140845,
13
+ "grad_norm": 2641.419677734375,
14
+ "learning_rate": 4.166666666666667e-06,
15
+ "loss": 207.5718,
16
  "step": 100
17
  },
18
  {
19
+ "epoch": 0.176056338028169,
20
+ "grad_norm": 3060.73486328125,
21
+ "learning_rate": 4.62962962962963e-06,
22
+ "loss": 126.3771,
23
  "step": 200
24
  },
25
  {
26
+ "epoch": 0.2640845070422535,
27
+ "grad_norm": 808.4242553710938,
28
+ "learning_rate": 4.166666666666667e-06,
29
+ "loss": 125.2416,
30
  "step": 300
31
  },
32
  {
33
+ "epoch": 0.352112676056338,
34
+ "grad_norm": 1393.006591796875,
35
+ "learning_rate": 3.7037037037037037e-06,
36
+ "loss": 104.9298,
37
  "step": 400
38
  },
39
  {
40
+ "epoch": 0.44014084507042256,
41
+ "grad_norm": 1380.7303466796875,
42
+ "learning_rate": 3.240740740740741e-06,
43
+ "loss": 109.4596,
44
  "step": 500
45
  },
46
  {
47
+ "epoch": 0.528169014084507,
48
+ "grad_norm": 2457.56494140625,
49
+ "learning_rate": 2.7777777777777783e-06,
50
+ "loss": 110.524,
51
  "step": 600
52
  },
53
  {
54
+ "epoch": 0.6161971830985915,
55
+ "grad_norm": 2740.54052734375,
56
+ "learning_rate": 2.314814814814815e-06,
57
+ "loss": 114.8047,
58
  "step": 700
59
  },
60
  {
61
+ "epoch": 0.704225352112676,
62
+ "grad_norm": 1358.532470703125,
63
+ "learning_rate": 1.8518518518518519e-06,
64
+ "loss": 105.7686,
65
  "step": 800
66
  },
67
  {
68
+ "epoch": 0.7922535211267606,
69
+ "grad_norm": 2155.906982421875,
70
+ "learning_rate": 1.3888888888888892e-06,
71
+ "loss": 93.1012,
72
  "step": 900
73
  },
74
  {
75
+ "epoch": 0.8802816901408451,
76
+ "grad_norm": 2438.5126953125,
77
+ "learning_rate": 9.259259259259259e-07,
78
+ "loss": 108.8455,
79
  "step": 1000
80
  },
81
  {
82
+ "epoch": 0.9683098591549296,
83
+ "grad_norm": 1066.7130126953125,
84
+ "learning_rate": 4.6296296296296297e-07,
85
+ "loss": 99.7556,
86
  "step": 1100
87
  },
88
  {
89
  "epoch": 1.0,
90
+ "eval_loss": 283.56231689453125,
91
+ "eval_runtime": 22.2792,
92
+ "eval_samples_per_second": 45.334,
93
+ "eval_steps_per_second": 5.7,
94
+ "step": 1136
95
  },
96
  {
97
+ "epoch": 1.056338028169014,
98
+ "grad_norm": 2160.288818359375,
99
  "learning_rate": 0.0,
100
+ "loss": 106.0304,
101
  "step": 1200
102
  }
103
  ],