adasgaleus
commited on
Commit
•
8430477
1
Parent(s):
ffa59c3
End of training
Browse files- README.md +126 -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,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: 20240327211222_nice_straka
|
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 |
+
# 20240327211222_nice_straka
|
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.0208
|
24 |
+
- Precision: 0.9848
|
25 |
+
- Recall: 0.9853
|
26 |
+
- F1: 0.9850
|
27 |
+
- Accuracy: 0.9923
|
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.0519 | 0.09 | 300 | 0.0367 | 0.9736 | 0.9691 | 0.9713 | 0.9856 |
|
62 |
+
| 0.0518 | 0.17 | 600 | 0.0379 | 0.9717 | 0.9709 | 0.9713 | 0.9855 |
|
63 |
+
| 0.048 | 0.26 | 900 | 0.0357 | 0.9742 | 0.9692 | 0.9717 | 0.9858 |
|
64 |
+
| 0.0478 | 0.34 | 1200 | 0.0350 | 0.9736 | 0.9724 | 0.9730 | 0.9863 |
|
65 |
+
| 0.0495 | 0.43 | 1500 | 0.0366 | 0.9734 | 0.9703 | 0.9718 | 0.9856 |
|
66 |
+
| 0.0457 | 0.51 | 1800 | 0.0344 | 0.9719 | 0.9749 | 0.9734 | 0.9863 |
|
67 |
+
| 0.0464 | 0.6 | 2100 | 0.0347 | 0.9731 | 0.9717 | 0.9724 | 0.9861 |
|
68 |
+
| 0.0447 | 0.68 | 2400 | 0.0329 | 0.9743 | 0.9739 | 0.9741 | 0.9868 |
|
69 |
+
| 0.0435 | 0.77 | 2700 | 0.0332 | 0.9738 | 0.9748 | 0.9743 | 0.9868 |
|
70 |
+
| 0.0414 | 0.85 | 3000 | 0.0324 | 0.9729 | 0.9771 | 0.9750 | 0.9871 |
|
71 |
+
| 0.0412 | 0.94 | 3300 | 0.0312 | 0.9759 | 0.9756 | 0.9758 | 0.9875 |
|
72 |
+
| 0.0352 | 1.02 | 3600 | 0.0312 | 0.9749 | 0.9760 | 0.9754 | 0.9875 |
|
73 |
+
| 0.0353 | 1.11 | 3900 | 0.0304 | 0.9767 | 0.9759 | 0.9763 | 0.9878 |
|
74 |
+
| 0.0348 | 1.19 | 4200 | 0.0305 | 0.9765 | 0.9748 | 0.9757 | 0.9877 |
|
75 |
+
| 0.0362 | 1.28 | 4500 | 0.0313 | 0.9768 | 0.9738 | 0.9753 | 0.9876 |
|
76 |
+
| 0.0352 | 1.36 | 4800 | 0.0304 | 0.9764 | 0.9771 | 0.9767 | 0.9880 |
|
77 |
+
| 0.0344 | 1.45 | 5100 | 0.0306 | 0.9778 | 0.9744 | 0.9761 | 0.9880 |
|
78 |
+
| 0.0337 | 1.54 | 5400 | 0.0288 | 0.9779 | 0.9769 | 0.9774 | 0.9886 |
|
79 |
+
| 0.0328 | 1.62 | 5700 | 0.0284 | 0.9776 | 0.9777 | 0.9776 | 0.9888 |
|
80 |
+
| 0.0335 | 1.71 | 6000 | 0.0277 | 0.9783 | 0.9779 | 0.9781 | 0.9887 |
|
81 |
+
| 0.0329 | 1.79 | 6300 | 0.0284 | 0.9791 | 0.9752 | 0.9772 | 0.9886 |
|
82 |
+
| 0.0328 | 1.88 | 6600 | 0.0292 | 0.9764 | 0.9773 | 0.9768 | 0.9882 |
|
83 |
+
| 0.0316 | 1.96 | 6900 | 0.0268 | 0.9785 | 0.9773 | 0.9779 | 0.9890 |
|
84 |
+
| 0.0264 | 2.05 | 7200 | 0.0272 | 0.9776 | 0.9803 | 0.9789 | 0.9892 |
|
85 |
+
| 0.0269 | 2.13 | 7500 | 0.0274 | 0.9792 | 0.9782 | 0.9787 | 0.9891 |
|
86 |
+
| 0.027 | 2.22 | 7800 | 0.0291 | 0.9774 | 0.9782 | 0.9778 | 0.9889 |
|
87 |
+
| 0.0262 | 2.3 | 8100 | 0.0249 | 0.9809 | 0.9807 | 0.9808 | 0.9902 |
|
88 |
+
| 0.0258 | 2.39 | 8400 | 0.0255 | 0.9808 | 0.9805 | 0.9806 | 0.9900 |
|
89 |
+
| 0.0261 | 2.47 | 8700 | 0.0251 | 0.9808 | 0.9800 | 0.9804 | 0.9900 |
|
90 |
+
| 0.0251 | 2.56 | 9000 | 0.0250 | 0.9814 | 0.9788 | 0.9801 | 0.9901 |
|
91 |
+
| 0.0248 | 2.64 | 9300 | 0.0248 | 0.9813 | 0.9791 | 0.9802 | 0.9901 |
|
92 |
+
| 0.0246 | 2.73 | 9600 | 0.0248 | 0.9800 | 0.9817 | 0.9809 | 0.9902 |
|
93 |
+
| 0.0243 | 2.82 | 9900 | 0.0239 | 0.9793 | 0.9819 | 0.9806 | 0.9900 |
|
94 |
+
| 0.0241 | 2.9 | 10200 | 0.0236 | 0.9805 | 0.9823 | 0.9814 | 0.9904 |
|
95 |
+
| 0.0238 | 2.99 | 10500 | 0.0231 | 0.9822 | 0.9799 | 0.9811 | 0.9907 |
|
96 |
+
| 0.0187 | 3.07 | 10800 | 0.0259 | 0.9782 | 0.9823 | 0.9802 | 0.9901 |
|
97 |
+
| 0.0188 | 3.16 | 11100 | 0.0231 | 0.9821 | 0.9827 | 0.9824 | 0.9909 |
|
98 |
+
| 0.0189 | 3.24 | 11400 | 0.0229 | 0.9830 | 0.9802 | 0.9816 | 0.9910 |
|
99 |
+
| 0.0191 | 3.33 | 11700 | 0.0220 | 0.9815 | 0.9827 | 0.9821 | 0.9910 |
|
100 |
+
| 0.0187 | 3.41 | 12000 | 0.0223 | 0.9821 | 0.9834 | 0.9828 | 0.9912 |
|
101 |
+
| 0.018 | 3.5 | 12300 | 0.0224 | 0.9802 | 0.9829 | 0.9815 | 0.9909 |
|
102 |
+
| 0.0183 | 3.58 | 12600 | 0.0217 | 0.9823 | 0.9831 | 0.9827 | 0.9911 |
|
103 |
+
| 0.0176 | 3.67 | 12900 | 0.0214 | 0.9840 | 0.9824 | 0.9832 | 0.9916 |
|
104 |
+
| 0.0177 | 3.75 | 13200 | 0.0211 | 0.9837 | 0.9834 | 0.9835 | 0.9916 |
|
105 |
+
| 0.0173 | 3.84 | 13500 | 0.0210 | 0.9828 | 0.9840 | 0.9834 | 0.9916 |
|
106 |
+
| 0.017 | 3.92 | 13800 | 0.0207 | 0.9832 | 0.9839 | 0.9836 | 0.9916 |
|
107 |
+
| 0.0141 | 4.01 | 14100 | 0.0213 | 0.9844 | 0.9838 | 0.9841 | 0.9919 |
|
108 |
+
| 0.0129 | 4.09 | 14400 | 0.0213 | 0.9837 | 0.9849 | 0.9843 | 0.9919 |
|
109 |
+
| 0.013 | 4.18 | 14700 | 0.0228 | 0.9831 | 0.9834 | 0.9833 | 0.9915 |
|
110 |
+
| 0.0128 | 4.27 | 15000 | 0.0210 | 0.9844 | 0.9846 | 0.9845 | 0.9920 |
|
111 |
+
| 0.0126 | 4.35 | 15300 | 0.0212 | 0.9843 | 0.9842 | 0.9842 | 0.9920 |
|
112 |
+
| 0.0125 | 4.44 | 15600 | 0.0214 | 0.9845 | 0.9844 | 0.9844 | 0.9920 |
|
113 |
+
| 0.0121 | 4.52 | 15900 | 0.0217 | 0.9844 | 0.9846 | 0.9845 | 0.9921 |
|
114 |
+
| 0.012 | 4.61 | 16200 | 0.0211 | 0.9847 | 0.9848 | 0.9847 | 0.9922 |
|
115 |
+
| 0.0119 | 4.69 | 16500 | 0.0209 | 0.9845 | 0.9852 | 0.9848 | 0.9922 |
|
116 |
+
| 0.0116 | 4.78 | 16800 | 0.0211 | 0.9845 | 0.9847 | 0.9846 | 0.9922 |
|
117 |
+
| 0.0115 | 4.86 | 17100 | 0.0210 | 0.9850 | 0.9844 | 0.9847 | 0.9923 |
|
118 |
+
| 0.0115 | 4.95 | 17400 | 0.0208 | 0.9848 | 0.9853 | 0.9850 | 0.9923 |
|
119 |
+
|
120 |
+
|
121 |
+
### Framework versions
|
122 |
+
|
123 |
+
- Transformers 4.39.1
|
124 |
+
- Pytorch 2.2.0a0+6a974be
|
125 |
+
- Datasets 2.18.0
|
126 |
+
- 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:8f5977dbb7a76884272669e8d0a5b873c5d55501aa351d503dee736cac932cf4
|
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:e20d1271f98b30da8dbdba8ae523183cfddf6b4985ced033da65eb44f8c047dc
|
3 |
+
size 5048
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|