End of training
Browse files- README.md +125 -0
- config.json +34 -0
- model.safetensors +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +55 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: google-bert/bert-base-uncased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- precision
|
8 |
+
- recall
|
9 |
+
- f1
|
10 |
+
- accuracy
|
11 |
+
model-index:
|
12 |
+
- name: 20240327180321_happy_vaswani
|
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 |
+
# 20240327180321_happy_vaswani
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [google-bert/bert-base-uncased](https://huggingface.co/google-bert/bert-base-uncased) on an unknown dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 0.0288
|
24 |
+
- Precision: 0.9791
|
25 |
+
- Recall: 0.9836
|
26 |
+
- F1: 0.9813
|
27 |
+
- Accuracy: 0.9908
|
28 |
+
|
29 |
+
## Model description
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Intended uses & limitations
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training and evaluation data
|
38 |
+
|
39 |
+
More information needed
|
40 |
+
|
41 |
+
## Training procedure
|
42 |
+
|
43 |
+
### Training hyperparameters
|
44 |
+
|
45 |
+
The following hyperparameters were used during training:
|
46 |
+
- learning_rate: 0.0005
|
47 |
+
- train_batch_size: 32
|
48 |
+
- eval_batch_size: 32
|
49 |
+
- seed: 69
|
50 |
+
- gradient_accumulation_steps: 8
|
51 |
+
- total_train_batch_size: 256
|
52 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
53 |
+
- lr_scheduler_type: linear
|
54 |
+
- lr_scheduler_warmup_steps: 350
|
55 |
+
- num_epochs: 5
|
56 |
+
|
57 |
+
### Training results
|
58 |
+
|
59 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
60 |
+
|:-------------:|:-----:|:-----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
61 |
+
| 0.0627 | 0.09 | 300 | 0.0535 | 0.9603 | 0.9629 | 0.9616 | 0.9809 |
|
62 |
+
| 0.0571 | 0.17 | 600 | 0.0485 | 0.9625 | 0.9685 | 0.9655 | 0.9827 |
|
63 |
+
| 0.0523 | 0.26 | 900 | 0.0451 | 0.9639 | 0.9721 | 0.9680 | 0.9840 |
|
64 |
+
| 0.0498 | 0.35 | 1200 | 0.0452 | 0.9659 | 0.9700 | 0.9680 | 0.9841 |
|
65 |
+
| 0.0498 | 0.44 | 1500 | 0.0440 | 0.9675 | 0.9717 | 0.9696 | 0.9849 |
|
66 |
+
| 0.0487 | 0.52 | 1800 | 0.0429 | 0.9674 | 0.9714 | 0.9694 | 0.9848 |
|
67 |
+
| 0.0485 | 0.61 | 2100 | 0.0431 | 0.9668 | 0.9733 | 0.9700 | 0.9850 |
|
68 |
+
| 0.0468 | 0.7 | 2400 | 0.0410 | 0.9672 | 0.9745 | 0.9709 | 0.9855 |
|
69 |
+
| 0.0469 | 0.78 | 2700 | 0.0412 | 0.9671 | 0.9754 | 0.9713 | 0.9857 |
|
70 |
+
| 0.0473 | 0.87 | 3000 | 0.0419 | 0.9678 | 0.9731 | 0.9704 | 0.9853 |
|
71 |
+
| 0.0455 | 0.96 | 3300 | 0.0415 | 0.9674 | 0.9756 | 0.9715 | 0.9857 |
|
72 |
+
| 0.0417 | 1.04 | 3600 | 0.0404 | 0.9674 | 0.9763 | 0.9718 | 0.9859 |
|
73 |
+
| 0.0428 | 1.13 | 3900 | 0.0410 | 0.9683 | 0.9755 | 0.9719 | 0.9860 |
|
74 |
+
| 0.0421 | 1.22 | 4200 | 0.0400 | 0.9691 | 0.9750 | 0.9721 | 0.9861 |
|
75 |
+
| 0.0412 | 1.31 | 4500 | 0.0403 | 0.9681 | 0.9763 | 0.9722 | 0.9861 |
|
76 |
+
| 0.0411 | 1.39 | 4800 | 0.0384 | 0.9706 | 0.9764 | 0.9735 | 0.9869 |
|
77 |
+
| 0.0401 | 1.48 | 5100 | 0.0381 | 0.9697 | 0.9772 | 0.9734 | 0.9867 |
|
78 |
+
| 0.0399 | 1.57 | 5400 | 0.0373 | 0.9711 | 0.9759 | 0.9735 | 0.9869 |
|
79 |
+
| 0.0398 | 1.65 | 5700 | 0.0367 | 0.9703 | 0.9780 | 0.9742 | 0.9871 |
|
80 |
+
| 0.0393 | 1.74 | 6000 | 0.0374 | 0.9687 | 0.9783 | 0.9735 | 0.9869 |
|
81 |
+
| 0.039 | 1.83 | 6300 | 0.0359 | 0.9709 | 0.9781 | 0.9745 | 0.9873 |
|
82 |
+
| 0.0386 | 1.92 | 6600 | 0.0361 | 0.9711 | 0.9780 | 0.9746 | 0.9873 |
|
83 |
+
| 0.0376 | 2.0 | 6900 | 0.0362 | 0.9717 | 0.9784 | 0.9750 | 0.9876 |
|
84 |
+
| 0.0346 | 2.09 | 7200 | 0.0359 | 0.9712 | 0.9790 | 0.9751 | 0.9876 |
|
85 |
+
| 0.0344 | 2.18 | 7500 | 0.0345 | 0.9730 | 0.9785 | 0.9757 | 0.9880 |
|
86 |
+
| 0.0335 | 2.26 | 7800 | 0.0340 | 0.9725 | 0.9789 | 0.9757 | 0.9880 |
|
87 |
+
| 0.0337 | 2.35 | 8100 | 0.0344 | 0.9722 | 0.9795 | 0.9758 | 0.9880 |
|
88 |
+
| 0.0336 | 2.44 | 8400 | 0.0344 | 0.9721 | 0.9806 | 0.9763 | 0.9883 |
|
89 |
+
| 0.033 | 2.53 | 8700 | 0.0342 | 0.9734 | 0.9792 | 0.9763 | 0.9883 |
|
90 |
+
| 0.0331 | 2.61 | 9000 | 0.0345 | 0.9736 | 0.9792 | 0.9764 | 0.9883 |
|
91 |
+
| 0.0329 | 2.7 | 9300 | 0.0331 | 0.9727 | 0.9808 | 0.9767 | 0.9884 |
|
92 |
+
| 0.032 | 2.79 | 9600 | 0.0332 | 0.9731 | 0.9808 | 0.9769 | 0.9886 |
|
93 |
+
| 0.0323 | 2.87 | 9900 | 0.0321 | 0.9740 | 0.9808 | 0.9774 | 0.9888 |
|
94 |
+
| 0.0314 | 2.96 | 10200 | 0.0322 | 0.9748 | 0.9805 | 0.9776 | 0.9889 |
|
95 |
+
| 0.0275 | 3.05 | 10500 | 0.0327 | 0.9750 | 0.9800 | 0.9775 | 0.9888 |
|
96 |
+
| 0.0275 | 3.13 | 10800 | 0.0330 | 0.9736 | 0.9810 | 0.9773 | 0.9888 |
|
97 |
+
| 0.0272 | 3.22 | 11100 | 0.0321 | 0.9753 | 0.9816 | 0.9784 | 0.9893 |
|
98 |
+
| 0.0272 | 3.31 | 11400 | 0.0319 | 0.9749 | 0.9810 | 0.9779 | 0.9891 |
|
99 |
+
| 0.0269 | 3.4 | 11700 | 0.0305 | 0.9758 | 0.9810 | 0.9784 | 0.9893 |
|
100 |
+
| 0.027 | 3.48 | 12000 | 0.0303 | 0.9762 | 0.9814 | 0.9788 | 0.9895 |
|
101 |
+
| 0.0267 | 3.57 | 12300 | 0.0300 | 0.9764 | 0.9819 | 0.9792 | 0.9897 |
|
102 |
+
| 0.0263 | 3.66 | 12600 | 0.0297 | 0.9766 | 0.9818 | 0.9792 | 0.9898 |
|
103 |
+
| 0.0261 | 3.74 | 12900 | 0.0296 | 0.9766 | 0.9824 | 0.9795 | 0.9899 |
|
104 |
+
| 0.0255 | 3.83 | 13200 | 0.0294 | 0.9775 | 0.9827 | 0.9801 | 0.9902 |
|
105 |
+
| 0.0254 | 3.92 | 13500 | 0.0289 | 0.9774 | 0.9828 | 0.9801 | 0.9902 |
|
106 |
+
| 0.0234 | 4.01 | 13800 | 0.0302 | 0.9775 | 0.9826 | 0.9801 | 0.9901 |
|
107 |
+
| 0.0207 | 4.09 | 14100 | 0.0303 | 0.9773 | 0.9823 | 0.9798 | 0.9900 |
|
108 |
+
| 0.0205 | 4.18 | 14400 | 0.0299 | 0.9779 | 0.9825 | 0.9802 | 0.9903 |
|
109 |
+
| 0.0205 | 4.27 | 14700 | 0.0296 | 0.9781 | 0.9828 | 0.9804 | 0.9903 |
|
110 |
+
| 0.0205 | 4.35 | 15000 | 0.0291 | 0.9785 | 0.9831 | 0.9808 | 0.9906 |
|
111 |
+
| 0.0201 | 4.44 | 15300 | 0.0294 | 0.9781 | 0.9830 | 0.9805 | 0.9904 |
|
112 |
+
| 0.0198 | 4.53 | 15600 | 0.0290 | 0.9784 | 0.9831 | 0.9807 | 0.9905 |
|
113 |
+
| 0.0199 | 4.62 | 15900 | 0.0293 | 0.9781 | 0.9835 | 0.9808 | 0.9905 |
|
114 |
+
| 0.0199 | 4.7 | 16200 | 0.0291 | 0.9789 | 0.9835 | 0.9812 | 0.9907 |
|
115 |
+
| 0.0195 | 4.79 | 16500 | 0.0293 | 0.9788 | 0.9835 | 0.9811 | 0.9907 |
|
116 |
+
| 0.0196 | 4.88 | 16800 | 0.0290 | 0.9787 | 0.9835 | 0.9811 | 0.9907 |
|
117 |
+
| 0.0196 | 4.96 | 17100 | 0.0288 | 0.9791 | 0.9836 | 0.9813 | 0.9908 |
|
118 |
+
|
119 |
+
|
120 |
+
### Framework versions
|
121 |
+
|
122 |
+
- Transformers 4.39.1
|
123 |
+
- Pytorch 2.2.0a0+6a974be
|
124 |
+
- Datasets 2.18.0
|
125 |
+
- Tokenizers 0.15.2
|
config.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google-bert/bert-base-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": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "not inserted",
|
14 |
+
"1": "inserted"
|
15 |
+
},
|
16 |
+
"initializer_range": 0.02,
|
17 |
+
"intermediate_size": 3072,
|
18 |
+
"label2id": {
|
19 |
+
"inserted": 1,
|
20 |
+
"not inserted": 0
|
21 |
+
},
|
22 |
+
"layer_norm_eps": 1e-12,
|
23 |
+
"max_position_embeddings": 512,
|
24 |
+
"model_type": "bert",
|
25 |
+
"num_attention_heads": 12,
|
26 |
+
"num_hidden_layers": 12,
|
27 |
+
"pad_token_id": 0,
|
28 |
+
"position_embedding_type": "absolute",
|
29 |
+
"torch_dtype": "float32",
|
30 |
+
"transformers_version": "4.39.1",
|
31 |
+
"type_vocab_size": 2,
|
32 |
+
"use_cache": true,
|
33 |
+
"vocab_size": 30522
|
34 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a4fa4334aebb684f8643ab681bf17afb121211cb1bc7d1cc90c1f30eaf4df6ea
|
3 |
+
size 435596088
|
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:d40e9394ff4c2c15ee158a137eb4850f66c3f1d5425157c309fc0d946915aaec
|
3 |
+
size 5048
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|