rhaymison/bert-squad-portuguese
Browse files- README.md +15 -41
- config.json +9 -3
- model.safetensors +2 -2
- runs/Mar22_10-20-07_862ef8595a2f/events.out.tfevents.1711102849.862ef8595a2f.3477.0 +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +4 -2
- training_args.bin +1 -1
- vocab.txt +0 -0
README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
---
|
2 |
-
license:
|
3 |
-
base_model: bert-base-
|
4 |
tags:
|
5 |
- generated_from_trainer
|
6 |
model-index:
|
@@ -13,9 +13,9 @@ should probably proofread and complete it, then remove this comment. -->
|
|
13 |
|
14 |
# finetune-BERT-squad
|
15 |
|
16 |
-
This model is a fine-tuned version of [bert-base-
|
17 |
It achieves the following results on the evaluation set:
|
18 |
-
- Loss: 1.
|
19 |
|
20 |
## Model description
|
21 |
|
@@ -40,48 +40,22 @@ The following hyperparameters were used during training:
|
|
40 |
- seed: 42
|
41 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
42 |
- lr_scheduler_type: linear
|
43 |
-
- num_epochs:
|
44 |
|
45 |
### Training results
|
46 |
|
47 |
| Training Loss | Epoch | Step | Validation Loss |
|
48 |
|:-------------:|:-----:|:-----:|:---------------:|
|
49 |
-
| 1.
|
50 |
-
| 1.
|
51 |
-
| 1.
|
52 |
-
| 1.
|
53 |
-
| 1.
|
54 |
-
|
|
55 |
-
|
|
56 |
-
|
|
57 |
-
|
|
58 |
-
|
|
59 |
-
| 1.2573 | 0.89 | 5500 | 1.5207 |
|
60 |
-
| 1.2564 | 0.97 | 6000 | 1.5355 |
|
61 |
-
| 1.0725 | 1.06 | 6500 | 1.6185 |
|
62 |
-
| 0.9957 | 1.14 | 7000 | 1.5904 |
|
63 |
-
| 0.972 | 1.22 | 7500 | 1.6978 |
|
64 |
-
| 0.9884 | 1.3 | 8000 | 1.6270 |
|
65 |
-
| 1.02 | 1.38 | 8500 | 1.5872 |
|
66 |
-
| 1.0234 | 1.46 | 9000 | 1.6245 |
|
67 |
-
| 1.0162 | 1.54 | 9500 | 1.6201 |
|
68 |
-
| 0.9969 | 1.62 | 10000 | 1.6262 |
|
69 |
-
| 0.998 | 1.7 | 10500 | 1.6099 |
|
70 |
-
| 0.9888 | 1.79 | 11000 | 1.6151 |
|
71 |
-
| 1.0034 | 1.87 | 11500 | 1.5837 |
|
72 |
-
| 1.0127 | 1.95 | 12000 | 1.5823 |
|
73 |
-
| 0.8975 | 2.03 | 12500 | 1.6466 |
|
74 |
-
| 0.7488 | 2.11 | 13000 | 1.7307 |
|
75 |
-
| 0.7538 | 2.19 | 13500 | 1.7256 |
|
76 |
-
| 0.7847 | 2.27 | 14000 | 1.7131 |
|
77 |
-
| 0.7876 | 2.35 | 14500 | 1.6858 |
|
78 |
-
| 0.7618 | 2.44 | 15000 | 1.7329 |
|
79 |
-
| 0.761 | 2.52 | 15500 | 1.7251 |
|
80 |
-
| 0.7887 | 2.6 | 16000 | 1.7077 |
|
81 |
-
| 0.8002 | 2.68 | 16500 | 1.6861 |
|
82 |
-
| 0.8038 | 2.76 | 17000 | 1.6818 |
|
83 |
-
| 0.802 | 2.84 | 17500 | 1.6932 |
|
84 |
-
| 0.8076 | 2.92 | 18000 | 1.6799 |
|
85 |
|
86 |
|
87 |
### Framework versions
|
|
|
1 |
---
|
2 |
+
license: mit
|
3 |
+
base_model: neuralmind/bert-base-portuguese-cased
|
4 |
tags:
|
5 |
- generated_from_trainer
|
6 |
model-index:
|
|
|
13 |
|
14 |
# finetune-BERT-squad
|
15 |
|
16 |
+
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.
|
17 |
It achieves the following results on the evaluation set:
|
18 |
+
- Loss: 1.0687
|
19 |
|
20 |
## Model description
|
21 |
|
|
|
40 |
- seed: 42
|
41 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
42 |
- lr_scheduler_type: linear
|
43 |
+
- num_epochs: 2
|
44 |
|
45 |
### Training results
|
46 |
|
47 |
| Training Loss | Epoch | Step | Validation Loss |
|
48 |
|:-------------:|:-----:|:-----:|:---------------:|
|
49 |
+
| 1.4612 | 0.19 | 1000 | 1.3505 |
|
50 |
+
| 1.2999 | 0.37 | 2000 | 1.2518 |
|
51 |
+
| 1.2234 | 0.56 | 3000 | 1.1492 |
|
52 |
+
| 1.1824 | 0.74 | 4000 | 1.1181 |
|
53 |
+
| 1.1169 | 0.93 | 5000 | 1.0850 |
|
54 |
+
| 0.8933 | 1.11 | 6000 | 1.0925 |
|
55 |
+
| 0.9004 | 1.3 | 7000 | 1.0849 |
|
56 |
+
| 0.8706 | 1.49 | 8000 | 1.0976 |
|
57 |
+
| 0.8617 | 1.67 | 9000 | 1.0779 |
|
58 |
+
| 0.8756 | 1.86 | 10000 | 1.0687 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
|
60 |
|
61 |
### Framework versions
|
config.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "bert-base-
|
3 |
"architectures": [
|
4 |
"BertForQuestionAnswering"
|
5 |
],
|
6 |
"attention_probs_dropout_prob": 0.1,
|
7 |
"classifier_dropout": null,
|
8 |
-
"
|
9 |
"hidden_act": "gelu",
|
10 |
"hidden_dropout_prob": 0.1,
|
11 |
"hidden_size": 768,
|
@@ -16,11 +16,17 @@
|
|
16 |
"model_type": "bert",
|
17 |
"num_attention_heads": 12,
|
18 |
"num_hidden_layers": 12,
|
|
|
19 |
"pad_token_id": 0,
|
|
|
|
|
|
|
|
|
|
|
20 |
"position_embedding_type": "absolute",
|
21 |
"torch_dtype": "float32",
|
22 |
"transformers_version": "4.38.2",
|
23 |
"type_vocab_size": 2,
|
24 |
"use_cache": true,
|
25 |
-
"vocab_size":
|
26 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "neuralmind/bert-base-portuguese-cased",
|
3 |
"architectures": [
|
4 |
"BertForQuestionAnswering"
|
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,
|
|
|
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 |
"torch_dtype": "float32",
|
28 |
"transformers_version": "4.38.2",
|
29 |
"type_vocab_size": 2,
|
30 |
"use_cache": true,
|
31 |
+
"vocab_size": 29794
|
32 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:87ec2dff3cb2f517daa41b039e9f602cca4ee48fe9ebd8b44402493f62f5e9b2
|
3 |
+
size 433359664
|
runs/Mar22_10-20-07_862ef8595a2f/events.out.tfevents.1711102849.862ef8595a2f.3477.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4771e7cd36d1a1affdd177a7fbbdadb2ff98a8e4f630b1800ab793979fd5eab8
|
3 |
+
size 12256
|
tokenizer.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
CHANGED
@@ -43,9 +43,11 @@
|
|
43 |
},
|
44 |
"clean_up_tokenization_spaces": true,
|
45 |
"cls_token": "[CLS]",
|
46 |
-
"
|
|
|
47 |
"mask_token": "[MASK]",
|
48 |
-
"model_max_length":
|
|
|
49 |
"pad_token": "[PAD]",
|
50 |
"sep_token": "[SEP]",
|
51 |
"strip_accents": null,
|
|
|
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": 1000000000000000019884624838656,
|
50 |
+
"never_split": null,
|
51 |
"pad_token": "[PAD]",
|
52 |
"sep_token": "[SEP]",
|
53 |
"strip_accents": null,
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4856
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2ab13811b8c0b5969b92adf753312400b050458a24e6b53c71ce5a8789f4dfaf
|
3 |
size 4856
|
vocab.txt
CHANGED
The diff for this file is too large to render.
See raw diff
|
|