franklynnarvaez commited on
Commit
3706b51
·
verified ·
1 Parent(s): 004ca2e

End of training

Browse files
README.md ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: bert-base-cased
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - conll2002
8
+ metrics:
9
+ - precision
10
+ - recall
11
+ - f1
12
+ - accuracy
13
+ model-index:
14
+ - name: bert-finetuned-ner-cfv
15
+ results:
16
+ - task:
17
+ name: Token Classification
18
+ type: token-classification
19
+ dataset:
20
+ name: conll2002
21
+ type: conll2002
22
+ config: es
23
+ split: validation
24
+ args: es
25
+ metrics:
26
+ - name: Precision
27
+ type: precision
28
+ value: 0.807683615819209
29
+ - name: Recall
30
+ type: recall
31
+ value: 0.8212316176470589
32
+ - name: F1
33
+ type: f1
34
+ value: 0.8144012760624361
35
+ - name: Accuracy
36
+ type: accuracy
37
+ value: 0.974075543714453
38
+ ---
39
+
40
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
41
+ should probably proofread and complete it, then remove this comment. -->
42
+
43
+ # bert-finetuned-ner-cfv
44
+
45
+ This model is a fine-tuned version of [bert-base-cased](https://huggingface.co/bert-base-cased) on the conll2002 dataset.
46
+ It achieves the following results on the evaluation set:
47
+ - Loss: 0.1851
48
+ - Precision: 0.8077
49
+ - Recall: 0.8212
50
+ - F1: 0.8144
51
+ - Accuracy: 0.9741
52
+
53
+ ## Model description
54
+
55
+ More information needed
56
+
57
+ ## Intended uses & limitations
58
+
59
+ More information needed
60
+
61
+ ## Training and evaluation data
62
+
63
+ More information needed
64
+
65
+ ## Training procedure
66
+
67
+ ### Training hyperparameters
68
+
69
+ The following hyperparameters were used during training:
70
+ - learning_rate: 4e-05
71
+ - train_batch_size: 24
72
+ - eval_batch_size: 24
73
+ - seed: 42
74
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
75
+ - lr_scheduler_type: linear
76
+ - num_epochs: 17
77
+
78
+ ### Training results
79
+
80
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
81
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
82
+ | No log | 1.0 | 347 | 0.1278 | 0.7284 | 0.7475 | 0.7378 | 0.9646 |
83
+ | 0.1176 | 2.0 | 694 | 0.1212 | 0.7509 | 0.7806 | 0.7654 | 0.9681 |
84
+ | 0.0453 | 3.0 | 1041 | 0.1156 | 0.8062 | 0.8116 | 0.8089 | 0.9730 |
85
+ | 0.0453 | 4.0 | 1388 | 0.1270 | 0.8081 | 0.8031 | 0.8056 | 0.9720 |
86
+ | 0.0233 | 5.0 | 1735 | 0.1298 | 0.8145 | 0.8231 | 0.8187 | 0.9746 |
87
+ | 0.0145 | 6.0 | 2082 | 0.1431 | 0.7950 | 0.8091 | 0.8020 | 0.9728 |
88
+ | 0.0145 | 7.0 | 2429 | 0.1501 | 0.8103 | 0.8166 | 0.8135 | 0.9734 |
89
+ | 0.009 | 8.0 | 2776 | 0.1553 | 0.8118 | 0.8157 | 0.8138 | 0.9738 |
90
+ | 0.0061 | 9.0 | 3123 | 0.1572 | 0.7891 | 0.8084 | 0.7986 | 0.9720 |
91
+ | 0.0061 | 10.0 | 3470 | 0.1589 | 0.8142 | 0.8196 | 0.8169 | 0.9739 |
92
+ | 0.005 | 11.0 | 3817 | 0.1671 | 0.8092 | 0.8148 | 0.8120 | 0.9733 |
93
+ | 0.0032 | 12.0 | 4164 | 0.1716 | 0.8066 | 0.8139 | 0.8102 | 0.9733 |
94
+ | 0.0031 | 13.0 | 4511 | 0.1767 | 0.8025 | 0.8169 | 0.8096 | 0.9731 |
95
+ | 0.0031 | 14.0 | 4858 | 0.1756 | 0.8096 | 0.8217 | 0.8156 | 0.9741 |
96
+ | 0.0023 | 15.0 | 5205 | 0.1845 | 0.8109 | 0.8157 | 0.8133 | 0.9739 |
97
+ | 0.0018 | 16.0 | 5552 | 0.1850 | 0.8090 | 0.8203 | 0.8146 | 0.9739 |
98
+ | 0.0018 | 17.0 | 5899 | 0.1851 | 0.8077 | 0.8212 | 0.8144 | 0.9741 |
99
+
100
+
101
+ ### Framework versions
102
+
103
+ - Transformers 4.41.2
104
+ - Pytorch 2.3.0+cu121
105
+ - Datasets 2.19.2
106
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-base-cased",
3
+ "architectures": [
4
+ "BertForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "O",
14
+ "1": "B-PER",
15
+ "2": "I-PER",
16
+ "3": "B-ORG",
17
+ "4": "I-ORG",
18
+ "5": "B-LOC",
19
+ "6": "I-LOC",
20
+ "7": "B-MISC",
21
+ "8": "I-MISC"
22
+ },
23
+ "initializer_range": 0.02,
24
+ "intermediate_size": 3072,
25
+ "label2id": {
26
+ "B-LOC": 5,
27
+ "B-MISC": 7,
28
+ "B-ORG": 3,
29
+ "B-PER": 1,
30
+ "I-LOC": 6,
31
+ "I-MISC": 8,
32
+ "I-ORG": 4,
33
+ "I-PER": 2,
34
+ "O": 0
35
+ },
36
+ "layer_norm_eps": 1e-12,
37
+ "max_position_embeddings": 512,
38
+ "model_type": "bert",
39
+ "num_attention_heads": 12,
40
+ "num_hidden_layers": 12,
41
+ "pad_token_id": 0,
42
+ "position_embedding_type": "absolute",
43
+ "torch_dtype": "float32",
44
+ "transformers_version": "4.41.2",
45
+ "type_vocab_size": 2,
46
+ "use_cache": true,
47
+ "vocab_size": 28996
48
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:46deb59894c0b8010bb99c94812782648f0642dc5f38d0a4c9616af67726eeb6
3
+ size 430929740
runs/Jun06_02-30-26_9d57eae5ff74/events.out.tfevents.1717641030.9d57eae5ff74.448.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c98eda253aaee50ffa1255cc5821195eb4945d7d253373478439ebb7889235f
3
+ size 15857
runs/Jun06_02-30-26_9d57eae5ff74/events.out.tfevents.1717645578.9d57eae5ff74.448.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:325d35fe1b2ef2f5ba94188ab53a1b1ccc227498aeca48ed0cca25cf3ebf4fa9
3
+ size 560
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": true,
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:c5c8bfb25b87d783efb94150707f30de7f44ff3f06e8c36ce332b90e195ad461
3
+ size 5112
vocab.txt ADDED
The diff for this file is too large to render. See raw diff