fine-tune-bertimbau-for-law-v1
Browse files- README.md +62 -0
- config.json +47 -0
- model.safetensors +3 -0
- runs/Jun26_11-29-49_instance-20240625-220614/events.out.tfevents.1719401400.instance-20240625-220614 +3 -0
- runs/Jun27_03-11-34_instance-20240625-220614/events.out.tfevents.1719457906.instance-20240625-220614 +3 -0
- runs/Jun27_03-52-53_instance-20240625-220614/events.out.tfevents.1719460389.instance-20240625-220614 +3 -0
- runs/Jun27_04-17-57_instance-20240625-220614/events.out.tfevents.1719461888.instance-20240625-220614 +3 -0
- runs/Jun27_04-37-36_instance-20240625-220614/events.out.tfevents.1719463080.instance-20240625-220614 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: neuralmind/bert-large-portuguese-cased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
model-index:
|
9 |
+
- name: split1
|
10 |
+
results: []
|
11 |
+
---
|
12 |
+
|
13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
14 |
+
should probably proofread and complete it, then remove this comment. -->
|
15 |
+
|
16 |
+
# split1
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [neuralmind/bert-large-portuguese-cased](https://huggingface.co/neuralmind/bert-large-portuguese-cased) on the None dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.5813
|
21 |
+
- Accuracy: 0.8713
|
22 |
+
|
23 |
+
## Model description
|
24 |
+
|
25 |
+
More information needed
|
26 |
+
|
27 |
+
## Intended uses & limitations
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Training and evaluation data
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training procedure
|
36 |
+
|
37 |
+
### Training hyperparameters
|
38 |
+
|
39 |
+
The following hyperparameters were used during training:
|
40 |
+
- learning_rate: 5e-06
|
41 |
+
- train_batch_size: 8
|
42 |
+
- eval_batch_size: 8
|
43 |
+
- seed: 42
|
44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
+
- lr_scheduler_type: linear
|
46 |
+
- num_epochs: 3.0
|
47 |
+
|
48 |
+
### Training results
|
49 |
+
|
50 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
51 |
+
|:-------------:|:-----:|:-----:|:---------------:|:--------:|
|
52 |
+
| 0.2709 | 1.0 | 8509 | 0.5307 | 0.8388 |
|
53 |
+
| 0.2388 | 2.0 | 17018 | 0.4947 | 0.8692 |
|
54 |
+
| 0.1761 | 3.0 | 25527 | 0.5813 | 0.8713 |
|
55 |
+
|
56 |
+
|
57 |
+
### Framework versions
|
58 |
+
|
59 |
+
- Transformers 4.41.2
|
60 |
+
- Pytorch 2.3.1+cu118
|
61 |
+
- Datasets 2.20.0
|
62 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "neuralmind/bert-large-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": 1024,
|
12 |
+
"id2label": {
|
13 |
+
"0": "LABEL_0",
|
14 |
+
"1": "LABEL_1",
|
15 |
+
"2": "LABEL_2",
|
16 |
+
"3": "LABEL_3",
|
17 |
+
"4": "LABEL_4"
|
18 |
+
},
|
19 |
+
"initializer_range": 0.02,
|
20 |
+
"intermediate_size": 4096,
|
21 |
+
"label2id": {
|
22 |
+
"LABEL_0": 0,
|
23 |
+
"LABEL_1": 1,
|
24 |
+
"LABEL_2": 2,
|
25 |
+
"LABEL_3": 3,
|
26 |
+
"LABEL_4": 4
|
27 |
+
},
|
28 |
+
"layer_norm_eps": 1e-12,
|
29 |
+
"max_position_embeddings": 512,
|
30 |
+
"model_type": "bert",
|
31 |
+
"num_attention_heads": 16,
|
32 |
+
"num_hidden_layers": 24,
|
33 |
+
"output_past": true,
|
34 |
+
"pad_token_id": 0,
|
35 |
+
"pooler_fc_size": 768,
|
36 |
+
"pooler_num_attention_heads": 12,
|
37 |
+
"pooler_num_fc_layers": 3,
|
38 |
+
"pooler_size_per_head": 128,
|
39 |
+
"pooler_type": "first_token_transform",
|
40 |
+
"position_embedding_type": "absolute",
|
41 |
+
"problem_type": "single_label_classification",
|
42 |
+
"torch_dtype": "float32",
|
43 |
+
"transformers_version": "4.41.2",
|
44 |
+
"type_vocab_size": 2,
|
45 |
+
"use_cache": true,
|
46 |
+
"vocab_size": 29794
|
47 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:60540a073770162141ce7dfbab5ff338daeb123a5fb185d86d21608d3a91ade6
|
3 |
+
size 1337653172
|
runs/Jun26_11-29-49_instance-20240625-220614/events.out.tfevents.1719401400.instance-20240625-220614
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3b9cb1ca08cd7c05f0719ad28ca4ae635e1069ad51811ecfa5acb2971b6a3a56
|
3 |
+
size 15597
|
runs/Jun27_03-11-34_instance-20240625-220614/events.out.tfevents.1719457906.instance-20240625-220614
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5bd93ed36b8409445127e4d42df791db187b270fe2f84205983b50c0dbe3b9af
|
3 |
+
size 5807
|
runs/Jun27_03-52-53_instance-20240625-220614/events.out.tfevents.1719460389.instance-20240625-220614
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d4151d85f93c1da56c3c2f4c602485d3ec3f65a0549812d183f55552f2841852
|
3 |
+
size 5273
|
runs/Jun27_04-17-57_instance-20240625-220614/events.out.tfevents.1719461888.instance-20240625-220614
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a6af8747ef2a6c3562a373d1ce1ac9b3bbbf577ab7b8d81bc55db9a42bae5b42
|
3 |
+
size 5499
|
runs/Jun27_04-37-36_instance-20240625-220614/events.out.tfevents.1719463080.instance-20240625-220614
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:352e19aeebd27f5351530a4166bcba5b397dde5a2478f46c836605924bb9b11d
|
3 |
+
size 17410
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b2af9c3b7911f357f2a0c4570b07c51c266bdde6be766db7452d80e5a3826f9f
|
3 |
+
size 5112
|