yefo-ufpe commited on
Commit
52f65a4
·
verified ·
1 Parent(s): 5369474

Adapting `google-bert/bert-base-uncased` for `wnut_17`.

Browse files
README.md ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: google-bert/bert-base-uncased
5
+ tags:
6
+ - trl
7
+ - sft
8
+ - generated_from_trainer
9
+ datasets:
10
+ - wnut_17
11
+ metrics:
12
+ - precision
13
+ - recall
14
+ - f1
15
+ - accuracy
16
+ model-index:
17
+ - name: bert-base-uncased-wnut_17-full
18
+ results:
19
+ - task:
20
+ name: Token Classification
21
+ type: token-classification
22
+ dataset:
23
+ name: wnut_17
24
+ type: wnut_17
25
+ config: wnut_17
26
+ split: test
27
+ args: wnut_17
28
+ metrics:
29
+ - name: Precision
30
+ type: precision
31
+ value: 0.6373056994818653
32
+ - name: Recall
33
+ type: recall
34
+ value: 0.34198331788693237
35
+ - name: F1
36
+ type: f1
37
+ value: 0.44511459589867314
38
+ - name: Accuracy
39
+ type: accuracy
40
+ value: 0.9476294301226967
41
+ ---
42
+
43
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
44
+ should probably proofread and complete it, then remove this comment. -->
45
+
46
+ # bert-base-uncased-wnut_17-full
47
+
48
+ This model is a fine-tuned version of [google-bert/bert-base-uncased](https://huggingface.co/google-bert/bert-base-uncased) on the wnut_17 dataset.
49
+ It achieves the following results on the evaluation set:
50
+ - Loss: 0.4356
51
+ - Precision: 0.6373
52
+ - Recall: 0.3420
53
+ - F1: 0.4451
54
+ - Accuracy: 0.9476
55
+
56
+ ## Model description
57
+
58
+ More information needed
59
+
60
+ ## Intended uses & limitations
61
+
62
+ More information needed
63
+
64
+ ## Training and evaluation data
65
+
66
+ More information needed
67
+
68
+ ## Training procedure
69
+
70
+ ### Training hyperparameters
71
+
72
+ The following hyperparameters were used during training:
73
+ - learning_rate: 5e-05
74
+ - train_batch_size: 16
75
+ - eval_batch_size: 16
76
+ - seed: 42
77
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
78
+ - lr_scheduler_type: linear
79
+ - num_epochs: 10
80
+
81
+ ### Training results
82
+
83
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
84
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
85
+ | No log | 1.0 | 213 | 0.2799 | 0.6045 | 0.3216 | 0.4198 | 0.9457 |
86
+ | No log | 2.0 | 426 | 0.3236 | 0.5728 | 0.3392 | 0.4261 | 0.9463 |
87
+ | 0.0468 | 3.0 | 639 | 0.3751 | 0.5924 | 0.3448 | 0.4359 | 0.9472 |
88
+ | 0.0468 | 4.0 | 852 | 0.3713 | 0.5733 | 0.3661 | 0.4468 | 0.9470 |
89
+ | 0.0105 | 5.0 | 1065 | 0.3827 | 0.5741 | 0.3735 | 0.4526 | 0.9479 |
90
+ | 0.0105 | 6.0 | 1278 | 0.4356 | 0.6373 | 0.3420 | 0.4451 | 0.9476 |
91
+
92
+
93
+ ### Framework versions
94
+
95
+ - Transformers 4.45.0.dev0
96
+ - Pytorch 2.4.0+cu121
97
+ - Datasets 2.21.0
98
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google-bert/bert-base-uncased",
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-corporation",
15
+ "2": "I-corporation",
16
+ "3": "B-creative-work",
17
+ "4": "I-creative-work",
18
+ "5": "B-group",
19
+ "6": "I-group",
20
+ "7": "B-location",
21
+ "8": "I-location",
22
+ "9": "B-person",
23
+ "10": "I-person",
24
+ "11": "B-product",
25
+ "12": "I-product"
26
+ },
27
+ "initializer_range": 0.02,
28
+ "intermediate_size": 3072,
29
+ "label2id": {
30
+ "B-corporation": 1,
31
+ "B-creative-work": 3,
32
+ "B-group": 5,
33
+ "B-location": 7,
34
+ "B-person": 9,
35
+ "B-product": 11,
36
+ "I-corporation": 2,
37
+ "I-creative-work": 4,
38
+ "I-group": 6,
39
+ "I-location": 8,
40
+ "I-person": 10,
41
+ "I-product": 12,
42
+ "O": 0
43
+ },
44
+ "layer_norm_eps": 1e-12,
45
+ "max_position_embeddings": 512,
46
+ "model_type": "bert",
47
+ "num_attention_heads": 12,
48
+ "num_hidden_layers": 12,
49
+ "pad_token_id": 0,
50
+ "position_embedding_type": "absolute",
51
+ "torch_dtype": "float32",
52
+ "transformers_version": "4.45.0.dev0",
53
+ "type_vocab_size": 2,
54
+ "use_cache": true,
55
+ "vocab_size": 30522
56
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0db369226d24e3379dd10e15be15e8e3b5981a667e7594de39237b94f380e318
3
+ size 435629924
runs/Sep01_00-24-37_7fbf86d46184/events.out.tfevents.1725150279.7fbf86d46184.2222.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:960bbe069c72d4a9d5b7951d3c92aaddcc8c97806e20b0f5d2307de2bdd98b8c
3
+ size 9509
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": true,
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:51496fb060c2fc9f8040c7a5df767256c0b05a7d417c80ca08469a40f28b71ec
3
+ size 5496
vocab.txt ADDED
The diff for this file is too large to render. See raw diff