borisMI commited on
Commit
166c621
·
verified ·
1 Parent(s): 8078441

borisMI/chgk_ner

Browse files
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ base_model: ai-forever/ruBert-large
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - precision
8
+ - recall
9
+ - f1
10
+ model-index:
11
+ - name: my-chgk-ner-model-v1
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # my-chgk-ner-model-v1
19
+
20
+ This model is a fine-tuned version of [ai-forever/ruBert-large](https://huggingface.co/ai-forever/ruBert-large) on an unknown dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 0.3204
23
+ - Precision: 0.6308
24
+ - Recall: 0.6464
25
+ - F1: 0.6347
26
+
27
+ ## Model description
28
+
29
+ More information needed
30
+
31
+ ## Intended uses & limitations
32
+
33
+ More information needed
34
+
35
+ ## Training and evaluation data
36
+
37
+ More information needed
38
+
39
+ ## Training procedure
40
+
41
+ ### Training hyperparameters
42
+
43
+ The following hyperparameters were used during training:
44
+ - learning_rate: 2e-05
45
+ - train_batch_size: 32
46
+ - eval_batch_size: 16
47
+ - seed: 42
48
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
49
+ - lr_scheduler_type: linear
50
+ - num_epochs: 25
51
+ - mixed_precision_training: Native AMP
52
+
53
+ ### Training results
54
+
55
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 |
56
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|
57
+ | No log | 1.0 | 50 | 0.2016 | 0.3892 | 0.4330 | 0.3974 |
58
+ | No log | 2.0 | 100 | 0.1674 | 0.4990 | 0.5723 | 0.5258 |
59
+ | No log | 3.0 | 150 | 0.1732 | 0.5184 | 0.6257 | 0.5621 |
60
+ | No log | 4.0 | 200 | 0.1819 | 0.5821 | 0.6373 | 0.6079 |
61
+ | No log | 5.0 | 250 | 0.2041 | 0.6160 | 0.6317 | 0.6208 |
62
+ | No log | 6.0 | 300 | 0.2197 | 0.6023 | 0.6908 | 0.6411 |
63
+ | No log | 7.0 | 350 | 0.2349 | 0.6100 | 0.6512 | 0.6281 |
64
+ | No log | 8.0 | 400 | 0.2418 | 0.6039 | 0.6490 | 0.6240 |
65
+ | No log | 9.0 | 450 | 0.2609 | 0.6456 | 0.6744 | 0.6575 |
66
+ | 0.0914 | 10.0 | 500 | 0.2792 | 0.6243 | 0.6658 | 0.6396 |
67
+ | 0.0914 | 11.0 | 550 | 0.2931 | 0.6375 | 0.6693 | 0.6515 |
68
+ | 0.0914 | 12.0 | 600 | 0.3204 | 0.6308 | 0.6464 | 0.6347 |
69
+
70
+
71
+ ### Framework versions
72
+
73
+ - Transformers 4.52.4
74
+ - Pytorch 2.6.0+cu124
75
+ - Datasets 3.6.0
76
+ - Tokenizers 0.21.2
best_model/config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertForTokenClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "directionality": "bidi",
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 1024,
11
+ "id2label": {
12
+ "0": "B-AUTHOR",
13
+ "1": "I-AUTHOR",
14
+ "2": "B-CHARACTER",
15
+ "3": "I-CHARACTER",
16
+ "4": "B-LOCATION",
17
+ "5": "I-LOCATION",
18
+ "6": "B-PERSON",
19
+ "7": "I-PERSON",
20
+ "8": "B-WORK_OF_ART",
21
+ "9": "I-WORK_OF_ART",
22
+ "10": "O"
23
+ },
24
+ "initializer_range": 0.02,
25
+ "intermediate_size": 4096,
26
+ "label2id": {
27
+ "B-AUTHOR": 0,
28
+ "B-CHARACTER": 2,
29
+ "B-LOCATION": 4,
30
+ "B-PERSON": 6,
31
+ "B-WORK_OF_ART": 8,
32
+ "I-AUTHOR": 1,
33
+ "I-CHARACTER": 3,
34
+ "I-LOCATION": 5,
35
+ "I-PERSON": 7,
36
+ "I-WORK_OF_ART": 9,
37
+ "O": 10
38
+ },
39
+ "layer_norm_eps": 1e-12,
40
+ "max_position_embeddings": 512,
41
+ "model_type": "bert",
42
+ "num_attention_heads": 16,
43
+ "num_hidden_layers": 24,
44
+ "pad_token_id": 0,
45
+ "pooler_fc_size": 768,
46
+ "pooler_num_attention_heads": 12,
47
+ "pooler_num_fc_layers": 3,
48
+ "pooler_size_per_head": 128,
49
+ "pooler_type": "first_token_transform",
50
+ "position_embedding_type": "absolute",
51
+ "torch_dtype": "float32",
52
+ "transformers_version": "4.52.4",
53
+ "type_vocab_size": 2,
54
+ "use_cache": true,
55
+ "vocab_size": 120138
56
+ }
best_model/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ccea369e5711dc1661d78942405ce1ed483b87c60e887b409494c2e84cd90a1
3
+ size 1703528444
best_model/special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
best_model/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
best_model/tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "model_max_length": 1000000000000000019884624838656,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "BertTokenizer",
57
+ "unk_token": "[UNK]"
58
+ }
best_model/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e2ef064713c0099b7bd5e1f3477ae0883950fc107bb7a9e326a7f7fa75024b1
3
+ size 5304
best_model/vocab.txt ADDED
The diff for this file is too large to render. See raw diff
 
config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertForTokenClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "directionality": "bidi",
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 1024,
11
+ "id2label": {
12
+ "0": "B-AUTHOR",
13
+ "1": "I-AUTHOR",
14
+ "2": "B-CHARACTER",
15
+ "3": "I-CHARACTER",
16
+ "4": "B-LOCATION",
17
+ "5": "I-LOCATION",
18
+ "6": "B-PERSON",
19
+ "7": "I-PERSON",
20
+ "8": "B-WORK_OF_ART",
21
+ "9": "I-WORK_OF_ART",
22
+ "10": "O"
23
+ },
24
+ "initializer_range": 0.02,
25
+ "intermediate_size": 4096,
26
+ "label2id": {
27
+ "B-AUTHOR": 0,
28
+ "B-CHARACTER": 2,
29
+ "B-LOCATION": 4,
30
+ "B-PERSON": 6,
31
+ "B-WORK_OF_ART": 8,
32
+ "I-AUTHOR": 1,
33
+ "I-CHARACTER": 3,
34
+ "I-LOCATION": 5,
35
+ "I-PERSON": 7,
36
+ "I-WORK_OF_ART": 9,
37
+ "O": 10
38
+ },
39
+ "layer_norm_eps": 1e-12,
40
+ "max_position_embeddings": 512,
41
+ "model_type": "bert",
42
+ "num_attention_heads": 16,
43
+ "num_hidden_layers": 24,
44
+ "pad_token_id": 0,
45
+ "pooler_fc_size": 768,
46
+ "pooler_num_attention_heads": 12,
47
+ "pooler_num_fc_layers": 3,
48
+ "pooler_size_per_head": 128,
49
+ "pooler_type": "first_token_transform",
50
+ "position_embedding_type": "absolute",
51
+ "torch_dtype": "float32",
52
+ "transformers_version": "4.52.4",
53
+ "type_vocab_size": 2,
54
+ "use_cache": true,
55
+ "vocab_size": 120138
56
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ccea369e5711dc1661d78942405ce1ed483b87c60e887b409494c2e84cd90a1
3
+ size 1703528444
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "model_max_length": 1000000000000000019884624838656,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "BertTokenizer",
57
+ "unk_token": "[UNK]"
58
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e2ef064713c0099b7bd5e1f3477ae0883950fc107bb7a9e326a7f7fa75024b1
3
+ size 5304
vocab.txt ADDED
The diff for this file is too large to render. See raw diff