yefo-ufpe commited on
Commit
a048b3c
1 Parent(s): 9f06337

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

Browse files
README.md ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: google-bert/bert-large-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-large-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.6546310832025117
32
+ - name: Recall
33
+ type: recall
34
+ value: 0.386468952734013
35
+ - name: F1
36
+ type: f1
37
+ value: 0.486013986013986
38
+ - name: Accuracy
39
+ type: accuracy
40
+ value: 0.9493394895472618
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-large-uncased-wnut_17-full
47
+
48
+ This model is a fine-tuned version of [google-bert/bert-large-uncased](https://huggingface.co/google-bert/bert-large-uncased) on the wnut_17 dataset.
49
+ It achieves the following results on the evaluation set:
50
+ - Loss: 0.4040
51
+ - Precision: 0.6546
52
+ - Recall: 0.3865
53
+ - F1: 0.4860
54
+ - Accuracy: 0.9493
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.2471 | 0.6341 | 0.3726 | 0.4694 | 0.9461 |
86
+ | No log | 2.0 | 426 | 0.2454 | 0.5882 | 0.3707 | 0.4548 | 0.9475 |
87
+ | 0.1196 | 3.0 | 639 | 0.3091 | 0.6278 | 0.3689 | 0.4647 | 0.9490 |
88
+ | 0.1196 | 4.0 | 852 | 0.3758 | 0.6536 | 0.3411 | 0.4482 | 0.9473 |
89
+ | 0.0235 | 5.0 | 1065 | 0.3127 | 0.5632 | 0.4004 | 0.4680 | 0.9490 |
90
+ | 0.0235 | 6.0 | 1278 | 0.3988 | 0.6562 | 0.3698 | 0.4730 | 0.9492 |
91
+ | 0.0235 | 7.0 | 1491 | 0.4040 | 0.6546 | 0.3865 | 0.4860 | 0.9493 |
92
+
93
+
94
+ ### Framework versions
95
+
96
+ - Transformers 4.45.0.dev0
97
+ - Pytorch 2.4.0+cu121
98
+ - Datasets 2.21.0
99
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google-bert/bert-large-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": 1024,
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": 4096,
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": 16,
48
+ "num_hidden_layers": 24,
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:d8fc7c9372d1fc2e20a3de90a892247b8a16d3aedb3a5c6cb10655bcf2b51350
3
+ size 1336469268
runs/Sep02_02-12-52_baa3cdb6088d/events.out.tfevents.1725243175.baa3cdb6088d.1976.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d54cf55f67b13ee4ab1b9d148cf346aaf342dd8905a849446630acf7ebea5862
3
+ size 9986
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:399c257cbc24f6fc2d359aef087564f6fe5439095238a56dee01d75136ea1ee2
3
+ size 5496
vocab.txt ADDED
The diff for this file is too large to render. See raw diff