ramybaly commited on
Commit
dc61a5f
1 Parent(s): 8e8f34f
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ checkpoint-*/
README.md ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - generated_from_trainer
5
+ datasets:
6
+ - nerd
7
+ metrics:
8
+ - precision
9
+ - recall
10
+ - f1
11
+ - accuracy
12
+ model_index:
13
+ - name: ner_nerd
14
+ results:
15
+ - task:
16
+ name: Token Classification
17
+ type: token-classification
18
+ dataset:
19
+ name: nerd
20
+ type: nerd
21
+ args: nerd
22
+ metric:
23
+ name: Accuracy
24
+ type: accuracy
25
+ value: 0.9389165843185125
26
+ ---
27
+
28
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
29
+ should probably proofread and complete it, then remove this comment. -->
30
+
31
+ # ner_nerd
32
+
33
+ This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the nerd dataset.
34
+ It achieves the following results on the evaluation set:
35
+ - Loss: 0.2553
36
+ - Precision: 0.7495
37
+ - Recall: 0.7859
38
+ - F1: 0.7672
39
+ - Accuracy: 0.9389
40
+
41
+ ## Model description
42
+
43
+ More information needed
44
+
45
+ ## Intended uses & limitations
46
+
47
+ More information needed
48
+
49
+ ## Training and evaluation data
50
+
51
+ More information needed
52
+
53
+ ## Training procedure
54
+
55
+ ### Training hyperparameters
56
+
57
+ The following hyperparameters were used during training:
58
+ - learning_rate: 3e-05
59
+ - train_batch_size: 16
60
+ - eval_batch_size: 8
61
+ - seed: 42
62
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
63
+ - lr_scheduler_type: linear
64
+ - lr_scheduler_warmup_ratio: 0.1
65
+ - num_epochs: 5
66
+
67
+ ### Training results
68
+
69
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
70
+ |:-------------:|:-----:|:-----:|:---------------:|:---------:|:------:|:------:|:--------:|
71
+ | 0.2805 | 1.0 | 8235 | 0.1950 | 0.7355 | 0.7835 | 0.7587 | 0.9376 |
72
+ | 0.165 | 2.0 | 16470 | 0.1919 | 0.7528 | 0.7826 | 0.7674 | 0.9400 |
73
+ | 0.1214 | 3.0 | 24705 | 0.2124 | 0.7522 | 0.7859 | 0.7687 | 0.9395 |
74
+ | 0.0879 | 4.0 | 32940 | 0.2259 | 0.7483 | 0.7879 | 0.7675 | 0.9391 |
75
+ | 0.0652 | 5.0 | 41175 | 0.2550 | 0.7522 | 0.7874 | 0.7694 | 0.9390 |
76
+
77
+
78
+ ### Framework versions
79
+
80
+ - Transformers 4.9.1
81
+ - Pytorch 1.9.0+cu102
82
+ - Datasets 1.11.0
83
+ - Tokenizers 0.10.2
config.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-base-uncased",
3
+ "architectures": [
4
+ "BertForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "gradient_checkpointing": false,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "O",
13
+ "1": "I-ART",
14
+ "2": "I-BUILDING",
15
+ "3": "I-EVENT",
16
+ "4": "I-LOC",
17
+ "5": "I-ORG",
18
+ "6": "I-MISC",
19
+ "7": "I-PER",
20
+ "8": "I-PRODUCT"
21
+ },
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 3072,
24
+ "label2id": {
25
+ "I-ART": 1,
26
+ "I-BUILDING": 2,
27
+ "I-EVENT": 3,
28
+ "I-LOC": 4,
29
+ "I-MISC": 6,
30
+ "I-ORG": 5,
31
+ "I-PER": 7,
32
+ "I-PRODUCT": 8,
33
+ "O": 0
34
+ },
35
+ "layer_norm_eps": 1e-12,
36
+ "max_position_embeddings": 512,
37
+ "model_type": "bert",
38
+ "num_attention_heads": 12,
39
+ "num_hidden_layers": 12,
40
+ "pad_token_id": 0,
41
+ "position_embedding_type": "absolute",
42
+ "torch_dtype": "float32",
43
+ "transformers_version": "4.9.1",
44
+ "type_vocab_size": 2,
45
+ "use_cache": true,
46
+ "vocab_size": 30522
47
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c3ce384e92a5efefce97344ddfbcec09b9549c99b67c8b41bd7cd4dacaa81eb2
3
+ size 435677681
runs/Aug06_04-54-58_ip-172-31-23-147/1628225704.4881208/events.out.tfevents.1628225704.ip-172-31-23-147.29370.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d13f24322154ff22621cf526a8f497264f5bd2e7e6eefb3a463fd91ef9bf4e30
3
+ size 4194
runs/Aug06_04-54-58_ip-172-31-23-147/events.out.tfevents.1628225704.ip-172-31-23-147.29370.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da1bcb8ed05961973184d9322098690b4feb02563ffcd01e3a2ff942fa0840d3
3
+ size 6834
runs/Aug06_04-54-58_ip-172-31-23-147/events.out.tfevents.1628229942.ip-172-31-23-147.29370.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92f99e8d77ccdf10693af18a6608d1608606c97b2a1447bcb9216890c0664588
3
+ size 521
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"do_lower_case": true, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "bert-base-uncased", "tokenizer_class": "BertTokenizer"}
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5bdc1e9edfb76bcb1e06489d78a7f6c2ded0979570bfd02b8e31cbc5011711d9
3
+ size 2607
vocab.txt ADDED
The diff for this file is too large to render. See raw diff