mateussj commited on
Commit
e1d8260
1 Parent(s): de317fe

oracle-corejur/bert_oracle_class_final_dataset_vert_v2

Browse files
README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: neuralmind/bert-base-portuguese-cased
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - precision
8
+ - recall
9
+ - accuracy
10
+ - f1
11
+ model-index:
12
+ - name: oracle_class_vert_v3
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ [<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="200" height="32"/>](https://wandb.ai/generation_jur/oracle_text_classification/runs/fi2ble5z)
20
+ # oracle_class_vert_v3
21
+
22
+ 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.
23
+ It achieves the following results on the evaluation set:
24
+ - Loss: 0.5665
25
+ - Precision: 0.8326
26
+ - Recall: 0.8336
27
+ - Accuracy: 0.8477
28
+ - F1: 0.8310
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: 6e-05
48
+ - train_batch_size: 24
49
+ - eval_batch_size: 24
50
+ - seed: 42
51
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
52
+ - lr_scheduler_type: linear
53
+ - num_epochs: 4
54
+ - mixed_precision_training: Native AMP
55
+
56
+ ### Training results
57
+
58
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | Accuracy | F1 |
59
+ |:-------------:|:------:|:----:|:---------------:|:---------:|:------:|:--------:|:------:|
60
+ | 0.5484 | 1.4589 | 550 | 0.5911 | 0.8063 | 0.8028 | 0.8308 | 0.8010 |
61
+ | 0.3253 | 2.9178 | 1100 | 0.5665 | 0.8326 | 0.8336 | 0.8477 | 0.8310 |
62
+
63
+
64
+ ### Framework versions
65
+
66
+ - Transformers 4.43.1
67
+ - Pytorch 2.2.0
68
+ - Datasets 2.20.0
69
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "neuralmind/bert-base-portuguese-cased",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "directionality": "bidi",
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "APLICATIVOS",
14
+ "1": "ARMAZENAMENTO",
15
+ "2": "BACKUP",
16
+ "3": "BANCO DE DADOS",
17
+ "4": "CLOUD",
18
+ "5": "DATACENTER",
19
+ "6": "HARDWARE SERVIDOR",
20
+ "7": "HIPERCONVERGENCIA",
21
+ "8": "IA",
22
+ "9": "VIRTUALIZACAO"
23
+ },
24
+ "initializer_range": 0.02,
25
+ "intermediate_size": 3072,
26
+ "label2id": {
27
+ "APLICATIVOS": 0,
28
+ "ARMAZENAMENTO": 1,
29
+ "BACKUP": 2,
30
+ "BANCO DE DADOS": 3,
31
+ "CLOUD": 4,
32
+ "DATACENTER": 5,
33
+ "HARDWARE SERVIDOR": 6,
34
+ "HIPERCONVERGENCIA": 7,
35
+ "IA": 8,
36
+ "VIRTUALIZACAO": 9
37
+ },
38
+ "layer_norm_eps": 1e-12,
39
+ "max_position_embeddings": 512,
40
+ "model_type": "bert",
41
+ "num_attention_heads": 12,
42
+ "num_hidden_layers": 12,
43
+ "output_past": true,
44
+ "pad_token_id": 0,
45
+ "pooler_fc_size": 768,
46
+ "pooler_num_attention_heads": 12,
47
+ "pooler_num_fc_layers": 3,
48
+ "pooler_size_per_head": 128,
49
+ "pooler_type": "first_token_transform",
50
+ "position_embedding_type": "absolute",
51
+ "problem_type": "single_label_classification",
52
+ "torch_dtype": "float32",
53
+ "transformers_version": "4.43.1",
54
+ "type_vocab_size": 2,
55
+ "use_cache": true,
56
+ "vocab_size": 29794
57
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2966f2ab86ced92449b2235204f5afdfd73469e481aa4ecfd12c1ae24b2f0c12
3
+ size 435746832
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,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "padding": "max_length",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "BertTokenizer",
57
+ "truncation": true,
58
+ "unk_token": "[UNK]"
59
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c83e6397b11a8e5820e6a1b3cf80be2d99793aa6cbfca637f65332dbfe3361b6
3
+ size 5240
vocab.txt ADDED
The diff for this file is too large to render. See raw diff