fabiopassos commited on
Commit
c7eddcf
·
verified ·
1 Parent(s): f76e022

fabiopassos/bertimbau-base-misobr

Browse files
README.md ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ base_model: neuralmind/bert-base-portuguese-cased
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: results_bertimbau_base
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # results_bertimbau_base
18
+
19
+ This model is a fine-tuned version of [neuralmind/bert-base-portuguese-cased](https://huggingface.co/neuralmind/bert-base-portuguese-cased) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 1.4087
22
+ - Accuracy: 0.7889
23
+ - F1 Macro: 0.7872
24
+ - Precision Macro: 0.7983
25
+ - Recall Macro: 0.7889
26
+ - F1 Positive: 0.7683
27
+ - Precision Positive: 0.8514
28
+ - Recall Positive: 0.7
29
+
30
+ ## Model description
31
+
32
+ More information needed
33
+
34
+ ## Intended uses & limitations
35
+
36
+ More information needed
37
+
38
+ ## Training and evaluation data
39
+
40
+ More information needed
41
+
42
+ ## Training procedure
43
+
44
+ ### Training hyperparameters
45
+
46
+ The following hyperparameters were used during training:
47
+ - learning_rate: 5e-05
48
+ - train_batch_size: 16
49
+ - eval_batch_size: 16
50
+ - seed: 42
51
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
52
+ - lr_scheduler_type: linear
53
+ - lr_scheduler_warmup_steps: 500
54
+ - num_epochs: 20
55
+
56
+ ### Training results
57
+
58
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro | Precision Macro | Recall Macro | F1 Positive | Precision Positive | Recall Positive |
59
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|:---------------:|:------------:|:-----------:|:------------------:|:---------------:|
60
+ | No log | 1.0 | 45 | 0.6900 | 0.5111 | 0.4117 | 0.5343 | 0.5111 | 0.6535 | 0.5061 | 0.9222 |
61
+ | 0.6977 | 2.0 | 90 | 0.6337 | 0.6722 | 0.6710 | 0.6748 | 0.6722 | 0.6509 | 0.6962 | 0.6111 |
62
+ | 0.648 | 3.0 | 135 | 0.5049 | 0.7667 | 0.7648 | 0.7754 | 0.7667 | 0.7439 | 0.8243 | 0.6778 |
63
+ | 0.509 | 4.0 | 180 | 0.4051 | 0.8056 | 0.8055 | 0.8056 | 0.8056 | 0.8045 | 0.8090 | 0.8 |
64
+ | 0.3076 | 5.0 | 225 | 0.4363 | 0.7833 | 0.7833 | 0.7836 | 0.7833 | 0.7869 | 0.7742 | 0.8 |
65
+ | 0.1829 | 6.0 | 270 | 1.0173 | 0.7389 | 0.7260 | 0.7941 | 0.7389 | 0.6667 | 0.9216 | 0.5222 |
66
+ | 0.164 | 7.0 | 315 | 0.7491 | 0.8333 | 0.8330 | 0.8360 | 0.8333 | 0.8404 | 0.8061 | 0.8778 |
67
+ | 0.0398 | 8.0 | 360 | 0.8190 | 0.8278 | 0.8275 | 0.8298 | 0.8278 | 0.8208 | 0.8554 | 0.7889 |
68
+ | 0.0507 | 9.0 | 405 | 0.9708 | 0.8222 | 0.8219 | 0.8248 | 0.8222 | 0.8140 | 0.8537 | 0.7778 |
69
+ | 0.0531 | 10.0 | 450 | 0.9090 | 0.8333 | 0.8331 | 0.8348 | 0.8333 | 0.8276 | 0.8571 | 0.8 |
70
+ | 0.0531 | 11.0 | 495 | 1.1804 | 0.8222 | 0.8219 | 0.8248 | 0.8222 | 0.8140 | 0.8537 | 0.7778 |
71
+ | 0.0268 | 12.0 | 540 | 1.1690 | 0.8222 | 0.8217 | 0.8263 | 0.8222 | 0.8118 | 0.8625 | 0.7667 |
72
+ | 0.0259 | 13.0 | 585 | 1.2368 | 0.8333 | 0.8333 | 0.8335 | 0.8333 | 0.8315 | 0.8409 | 0.8222 |
73
+ | 0.0253 | 14.0 | 630 | 1.2803 | 0.8056 | 0.8055 | 0.8059 | 0.8056 | 0.8023 | 0.8161 | 0.7889 |
74
+ | 0.0263 | 15.0 | 675 | 1.3243 | 0.8167 | 0.8162 | 0.8199 | 0.8167 | 0.8070 | 0.8519 | 0.7667 |
75
+ | 0.0093 | 16.0 | 720 | 1.4087 | 0.7889 | 0.7872 | 0.7983 | 0.7889 | 0.7683 | 0.8514 | 0.7 |
76
+
77
+
78
+ ### Framework versions
79
+
80
+ - Transformers 4.57.0
81
+ - Pytorch 2.8.0+cu126
82
+ - Datasets 4.0.0
83
+ - Tokenizers 0.22.1
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertForSequenceClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "directionality": "bidi",
8
+ "dtype": "float32",
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "output_past": true,
20
+ "pad_token_id": 0,
21
+ "pooler_fc_size": 768,
22
+ "pooler_num_attention_heads": 12,
23
+ "pooler_num_fc_layers": 3,
24
+ "pooler_size_per_head": 128,
25
+ "pooler_type": "first_token_transform",
26
+ "position_embedding_type": "absolute",
27
+ "problem_type": "single_label_classification",
28
+ "transformers_version": "4.57.0",
29
+ "type_vocab_size": 2,
30
+ "use_cache": true,
31
+ "vocab_size": 29794
32
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce6b4c65dd5f93a15151a549499a56fb14975c2dcd60483e54b9d1be6f3a3406
3
+ size 435722224
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,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_basic_tokenize": true,
47
+ "do_lower_case": false,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "model_max_length": 1000000000000000019884624838656,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "BertTokenizer",
57
+ "unk_token": "[UNK]"
58
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe238c26977d25200ad92dda28112bf05d182f6e26cbddc3805b87a15b64e940
3
+ size 5777
vocab.txt ADDED
The diff for this file is too large to render. See raw diff