luohuashijieyoufengjun commited on
Commit
7b7cc67
·
verified ·
1 Parent(s): 80cbecb

End of training

Browse files
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: google-bert/bert-base-chinese
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - precision
9
+ - recall
10
+ - f1
11
+ - accuracy
12
+ model-index:
13
+ - name: ner_based_bert-base-chinese_withBadcase_replaceSpace
14
+ results: []
15
+ ---
16
+
17
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
18
+ should probably proofread and complete it, then remove this comment. -->
19
+
20
+ # ner_based_bert-base-chinese_withBadcase_replaceSpace
21
+
22
+ This model is a fine-tuned version of [google-bert/bert-base-chinese](https://huggingface.co/google-bert/bert-base-chinese) on the None dataset.
23
+ It achieves the following results on the evaluation set:
24
+ - Loss: 0.0151
25
+ - Precision: 0.9489
26
+ - Recall: 0.9620
27
+ - F1: 0.9554
28
+ - Accuracy: 0.9966
29
+
30
+ ## Model description
31
+
32
+ More information needed
33
+
34
+ ## Intended uses & limitations
35
+
36
+ More information needed
37
+
38
+ ## Training and evaluation data
39
+
40
+ More information needed
41
+
42
+ ## Training procedure
43
+
44
+ ### Training hyperparameters
45
+
46
+ The following hyperparameters were used during training:
47
+ - learning_rate: 2e-05
48
+ - train_batch_size: 128
49
+ - eval_batch_size: 128
50
+ - seed: 42
51
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
52
+ - lr_scheduler_type: cosine
53
+ - lr_scheduler_warmup_steps: 20
54
+ - training_steps: 6510
55
+ - mixed_precision_training: Native AMP
56
+
57
+ ### Training results
58
+
59
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
60
+ |:-------------:|:------:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
61
+ | 0.1554 | 1.0 | 652 | 0.0277 | 0.8737 | 0.9102 | 0.8916 | 0.9917 |
62
+ | 0.0256 | 2.0 | 1304 | 0.0250 | 0.8848 | 0.9350 | 0.9092 | 0.9928 |
63
+ | 0.02 | 3.0 | 1956 | 0.0184 | 0.9170 | 0.9387 | 0.9278 | 0.9947 |
64
+ | 0.0132 | 4.0 | 2608 | 0.0170 | 0.9240 | 0.9478 | 0.9358 | 0.9952 |
65
+ | 0.0117 | 5.0 | 3260 | 0.0158 | 0.9363 | 0.9491 | 0.9426 | 0.9958 |
66
+ | 0.0102 | 6.0 | 3912 | 0.0142 | 0.9415 | 0.9521 | 0.9468 | 0.9962 |
67
+ | 0.0075 | 7.0 | 4564 | 0.0158 | 0.9334 | 0.9596 | 0.9463 | 0.9960 |
68
+ | 0.0068 | 8.0 | 5216 | 0.0142 | 0.9480 | 0.9589 | 0.9534 | 0.9966 |
69
+ | 0.0059 | 9.0 | 5868 | 0.0144 | 0.9503 | 0.9595 | 0.9549 | 0.9966 |
70
+ | 0.0046 | 9.9847 | 6510 | 0.0151 | 0.9489 | 0.9620 | 0.9554 | 0.9966 |
71
+
72
+
73
+ ### Framework versions
74
+
75
+ - Transformers 4.51.3
76
+ - Pytorch 2.7.0+cu126
77
+ - Datasets 3.6.0
78
+ - Tokenizers 0.21.1
config.json ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": 768,
11
+ "id2label": {
12
+ "0": "O",
13
+ "1": "B-phone",
14
+ "2": "I-phone",
15
+ "3": "E-phone",
16
+ "4": "B-name",
17
+ "5": "I-name",
18
+ "6": "E-name",
19
+ "7": "S-name",
20
+ "8": "B-area",
21
+ "9": "I-area",
22
+ "10": "E-area",
23
+ "11": "S-area",
24
+ "12": "B-sex",
25
+ "13": "E-sex",
26
+ "14": "S-sex",
27
+ "15": "B-wechat",
28
+ "16": "I-wechat",
29
+ "17": "E-wechat",
30
+ "18": "B-age",
31
+ "19": "I-age",
32
+ "20": "E-age",
33
+ "21": "S-age"
34
+ },
35
+ "initializer_range": 0.02,
36
+ "intermediate_size": 3072,
37
+ "label2id": {
38
+ "B-age": 18,
39
+ "B-area": 8,
40
+ "B-name": 4,
41
+ "B-phone": 1,
42
+ "B-sex": 12,
43
+ "B-wechat": 15,
44
+ "E-age": 20,
45
+ "E-area": 10,
46
+ "E-name": 6,
47
+ "E-phone": 3,
48
+ "E-sex": 13,
49
+ "E-wechat": 17,
50
+ "I-age": 19,
51
+ "I-area": 9,
52
+ "I-name": 5,
53
+ "I-phone": 2,
54
+ "I-wechat": 16,
55
+ "O": 0,
56
+ "S-age": 21,
57
+ "S-area": 11,
58
+ "S-name": 7,
59
+ "S-sex": 14
60
+ },
61
+ "layer_norm_eps": 1e-12,
62
+ "max_position_embeddings": 512,
63
+ "model_type": "bert",
64
+ "num_attention_heads": 12,
65
+ "num_hidden_layers": 12,
66
+ "pad_token_id": 0,
67
+ "pooler_fc_size": 768,
68
+ "pooler_num_attention_heads": 12,
69
+ "pooler_num_fc_layers": 3,
70
+ "pooler_size_per_head": 128,
71
+ "pooler_type": "first_token_transform",
72
+ "position_embedding_type": "absolute",
73
+ "torch_dtype": "float32",
74
+ "transformers_version": "4.51.3",
75
+ "type_vocab_size": 2,
76
+ "use_cache": true,
77
+ "vocab_size": 21128
78
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e41d3f862e6fac9d74b8cf088ca705fe4596f2618b0af495a782bb66c9f0b8ab
3
+ size 406799208
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,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": false,
47
+ "extra_special_tokens": {},
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "pad_token": "[PAD]",
51
+ "sep_token": "[SEP]",
52
+ "strip_accents": null,
53
+ "tokenize_chinese_chars": true,
54
+ "tokenizer_class": "BertTokenizer",
55
+ "unk_token": "[UNK]"
56
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ea644cb07633a03ea5f90e2de26813f3ca3b63c9011848cad788fd4ecaa0f1f
3
+ size 5841
vocab.txt ADDED
The diff for this file is too large to render. See raw diff