PassbyGrocer commited on
Commit
d35e5ec
·
verified ·
1 Parent(s): 31211b2

End of training

Browse files
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ base_model: google-bert/bert-base-chinese
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - precision
8
+ - recall
9
+ - f1
10
+ - accuracy
11
+ model-index:
12
+ - name: bert_bilstm_mega_crf-ner-weibo
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # bert_bilstm_mega_crf-ner-weibo
20
+
21
+ This model is a fine-tuned version of [google-bert/bert-base-chinese](https://huggingface.co/google-bert/bert-base-chinese) on an unknown dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.1596
24
+ - Precision: 0.6343
25
+ - Recall: 0.7201
26
+ - F1: 0.6745
27
+ - Accuracy: 0.9670
28
+
29
+ ## Model description
30
+
31
+ More information needed
32
+
33
+ ## Intended uses & limitations
34
+
35
+ More information needed
36
+
37
+ ## Training and evaluation data
38
+
39
+ More information needed
40
+
41
+ ## Training procedure
42
+
43
+ ### Training hyperparameters
44
+
45
+ The following hyperparameters were used during training:
46
+ - learning_rate: 2e-05
47
+ - train_batch_size: 16
48
+ - eval_batch_size: 16
49
+ - seed: 42
50
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
51
+ - lr_scheduler_type: linear
52
+ - num_epochs: 10
53
+ - mixed_precision_training: Native AMP
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
58
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
59
+ | 0.1831 | 1.0 | 85 | 0.1327 | 0.4580 | 0.5660 | 0.5063 | 0.9644 |
60
+ | 0.101 | 2.0 | 170 | 0.1056 | 0.5725 | 0.7201 | 0.6379 | 0.9700 |
61
+ | 0.0612 | 3.0 | 255 | 0.1136 | 0.5990 | 0.7233 | 0.6553 | 0.9688 |
62
+ | 0.0503 | 4.0 | 340 | 0.1315 | 0.5879 | 0.7358 | 0.6536 | 0.9653 |
63
+ | 0.033 | 5.0 | 425 | 0.1323 | 0.6133 | 0.7233 | 0.6638 | 0.9672 |
64
+ | 0.019 | 6.0 | 510 | 0.1398 | 0.6198 | 0.7075 | 0.6608 | 0.9655 |
65
+ | 0.0198 | 7.0 | 595 | 0.1442 | 0.6209 | 0.7107 | 0.6628 | 0.9681 |
66
+ | 0.0153 | 8.0 | 680 | 0.1511 | 0.6247 | 0.7170 | 0.6676 | 0.9674 |
67
+ | 0.0133 | 9.0 | 765 | 0.1581 | 0.6212 | 0.7013 | 0.6588 | 0.9656 |
68
+ | 0.0084 | 10.0 | 850 | 0.1596 | 0.6343 | 0.7201 | 0.6745 | 0.9670 |
69
+
70
+
71
+ ### Framework versions
72
+
73
+ - Transformers 4.46.1
74
+ - Pytorch 1.13.1+cu116
75
+ - Datasets 3.1.0
76
+ - Tokenizers 0.20.1
config.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google-bert/bert-base-chinese",
3
+ "architectures": [
4
+ "BertForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "directionality": "bidi",
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "O",
14
+ "1": "B-GPE.NAM",
15
+ "2": "I-GPE.NAM",
16
+ "3": "B-GPE.NOM",
17
+ "4": "I-GPE.NOM",
18
+ "5": "B-LOC.NAM",
19
+ "6": "I-LOC.NAM",
20
+ "7": "B-LOC.NOM",
21
+ "8": "I-LOC.NOM",
22
+ "9": "B-ORG.NAM",
23
+ "10": "I-ORG.NAM",
24
+ "11": "B-ORG.NOM",
25
+ "12": "I-ORG.NOM",
26
+ "13": "B-PER.NAM",
27
+ "14": "I-PER.NAM",
28
+ "15": "B-PER.NOM",
29
+ "16": "I-PER.NOM"
30
+ },
31
+ "initializer_range": 0.02,
32
+ "intermediate_size": 3072,
33
+ "label2id": {
34
+ "B-GPE.NAM": 1,
35
+ "B-GPE.NOM": 3,
36
+ "B-LOC.NAM": 5,
37
+ "B-LOC.NOM": 7,
38
+ "B-ORG.NAM": 9,
39
+ "B-ORG.NOM": 11,
40
+ "B-PER.NAM": 13,
41
+ "B-PER.NOM": 15,
42
+ "I-GPE.NAM": 2,
43
+ "I-GPE.NOM": 4,
44
+ "I-LOC.NAM": 6,
45
+ "I-LOC.NOM": 8,
46
+ "I-ORG.NAM": 10,
47
+ "I-ORG.NOM": 12,
48
+ "I-PER.NAM": 14,
49
+ "I-PER.NOM": 16,
50
+ "O": 0
51
+ },
52
+ "layer_norm_eps": 1e-12,
53
+ "max_position_embeddings": 512,
54
+ "model_type": "bert",
55
+ "num_attention_heads": 12,
56
+ "num_hidden_layers": 12,
57
+ "pad_token_id": 0,
58
+ "pooler_fc_size": 768,
59
+ "pooler_num_attention_heads": 12,
60
+ "pooler_num_fc_layers": 3,
61
+ "pooler_size_per_head": 128,
62
+ "pooler_type": "first_token_transform",
63
+ "position_embedding_type": "absolute",
64
+ "torch_dtype": "float32",
65
+ "transformers_version": "4.46.1",
66
+ "type_vocab_size": 2,
67
+ "use_cache": true,
68
+ "vocab_size": 21128
69
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81e991192b522c613a8ff255973012056fbb3aed49bd7bc98f2ff6652abbcf54
3
+ size 406783828
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,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "mask_token": "[MASK]",
48
+ "model_max_length": 512,
49
+ "pad_token": "[PAD]",
50
+ "sep_token": "[SEP]",
51
+ "strip_accents": null,
52
+ "tokenize_chinese_chars": true,
53
+ "tokenizer_class": "BertTokenizer",
54
+ "unk_token": "[UNK]"
55
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5abade4f4ad20e24a073d46acc90fa6fc250c29176241b5db40ed89abaf2da72
3
+ size 4795
vocab.txt ADDED
The diff for this file is too large to render. See raw diff