gechim commited on
Commit
e9bf797
1 Parent(s): 51191ab

End of training

Browse files
README.md ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: agpl-3.0
4
+ base_model: vinai/phobert-base-v2
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ - f1
10
+ model-index:
11
+ - name: PhoBert_Lexical_15-10
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # PhoBert_Lexical_15-10
19
+
20
+ This model is a fine-tuned version of [vinai/phobert-base-v2](https://huggingface.co/vinai/phobert-base-v2) on an unknown dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 0.0211
23
+ - Accuracy: 0.9945
24
+ - F1: 0.9945
25
+
26
+ ## Model description
27
+
28
+ More information needed
29
+
30
+ ## Intended uses & limitations
31
+
32
+ More information needed
33
+
34
+ ## Training and evaluation data
35
+
36
+ More information needed
37
+
38
+ ## Training procedure
39
+
40
+ ### Training hyperparameters
41
+
42
+ The following hyperparameters were used during training:
43
+ - learning_rate: 2e-05
44
+ - train_batch_size: 64
45
+ - eval_batch_size: 64
46
+ - seed: 42
47
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
48
+ - lr_scheduler_type: linear
49
+ - num_epochs: 15
50
+
51
+ ### Training results
52
+
53
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
54
+ |:-------------:|:-------:|:-----:|:---------------:|:--------:|:------:|
55
+ | No log | 0.1996 | 200 | 0.3681 | 0.8393 | 0.8397 |
56
+ | No log | 0.3992 | 400 | 0.3333 | 0.8558 | 0.8563 |
57
+ | No log | 0.5988 | 600 | 0.3128 | 0.8681 | 0.8684 |
58
+ | No log | 0.7984 | 800 | 0.3062 | 0.8698 | 0.8703 |
59
+ | No log | 0.9980 | 1000 | 0.2766 | 0.8822 | 0.8827 |
60
+ | 0.3857 | 1.1976 | 1200 | 0.2619 | 0.8896 | 0.8900 |
61
+ | 0.3857 | 1.3972 | 1400 | 0.2524 | 0.8939 | 0.8943 |
62
+ | 0.3857 | 1.5968 | 1600 | 0.2386 | 0.8997 | 0.9000 |
63
+ | 0.3857 | 1.7964 | 1800 | 0.2422 | 0.9013 | 0.9013 |
64
+ | 0.3857 | 1.9960 | 2000 | 0.2229 | 0.9073 | 0.9077 |
65
+ | 0.2899 | 2.1956 | 2200 | 0.2121 | 0.9135 | 0.9137 |
66
+ | 0.2899 | 2.3952 | 2400 | 0.2311 | 0.9028 | 0.9032 |
67
+ | 0.2899 | 2.5948 | 2600 | 0.2070 | 0.9163 | 0.9166 |
68
+ | 0.2899 | 2.7944 | 2800 | 0.1931 | 0.9224 | 0.9226 |
69
+ | 0.2899 | 2.9940 | 3000 | 0.1894 | 0.9236 | 0.9238 |
70
+ | 0.248 | 3.1936 | 3200 | 0.1797 | 0.9285 | 0.9287 |
71
+ | 0.248 | 3.3932 | 3400 | 0.1714 | 0.9330 | 0.9331 |
72
+ | 0.248 | 3.5928 | 3600 | 0.1628 | 0.9369 | 0.9371 |
73
+ | 0.248 | 3.7924 | 3800 | 0.1642 | 0.9353 | 0.9355 |
74
+ | 0.248 | 3.9920 | 4000 | 0.1541 | 0.9403 | 0.9405 |
75
+ | 0.2167 | 4.1916 | 4200 | 0.1430 | 0.9467 | 0.9468 |
76
+ | 0.2167 | 4.3912 | 4400 | 0.1510 | 0.9425 | 0.9427 |
77
+ | 0.2167 | 4.5908 | 4600 | 0.1509 | 0.9433 | 0.9435 |
78
+ | 0.2167 | 4.7904 | 4800 | 0.1323 | 0.9514 | 0.9515 |
79
+ | 0.2167 | 4.9900 | 5000 | 0.1248 | 0.9559 | 0.9559 |
80
+ | 0.1901 | 5.1896 | 5200 | 0.1159 | 0.9577 | 0.9577 |
81
+ | 0.1901 | 5.3892 | 5400 | 0.1123 | 0.9595 | 0.9595 |
82
+ | 0.1901 | 5.5888 | 5600 | 0.1128 | 0.9590 | 0.9591 |
83
+ | 0.1901 | 5.7884 | 5800 | 0.1016 | 0.9636 | 0.9636 |
84
+ | 0.1901 | 5.9880 | 6000 | 0.1080 | 0.9628 | 0.9629 |
85
+ | 0.1659 | 6.1876 | 6200 | 0.0910 | 0.9679 | 0.9679 |
86
+ | 0.1659 | 6.3872 | 6400 | 0.0939 | 0.9674 | 0.9675 |
87
+ | 0.1659 | 6.5868 | 6600 | 0.0948 | 0.9665 | 0.9665 |
88
+ | 0.1659 | 6.7864 | 6800 | 0.0846 | 0.9711 | 0.9711 |
89
+ | 0.1659 | 6.9860 | 7000 | 0.0866 | 0.9691 | 0.9691 |
90
+ | 0.1451 | 7.1856 | 7200 | 0.0778 | 0.9733 | 0.9734 |
91
+ | 0.1451 | 7.3852 | 7400 | 0.0823 | 0.9707 | 0.9708 |
92
+ | 0.1451 | 7.5848 | 7600 | 0.0702 | 0.9771 | 0.9772 |
93
+ | 0.1451 | 7.7844 | 7800 | 0.0684 | 0.9776 | 0.9776 |
94
+ | 0.1451 | 7.9840 | 8000 | 0.0695 | 0.9765 | 0.9766 |
95
+ | 0.128 | 8.1836 | 8200 | 0.0635 | 0.9793 | 0.9793 |
96
+ | 0.128 | 8.3832 | 8400 | 0.0586 | 0.9805 | 0.9805 |
97
+ | 0.128 | 8.5828 | 8600 | 0.0698 | 0.9747 | 0.9748 |
98
+ | 0.128 | 8.7824 | 8800 | 0.0570 | 0.9815 | 0.9815 |
99
+ | 0.128 | 8.9820 | 9000 | 0.0514 | 0.9849 | 0.9849 |
100
+ | 0.1113 | 9.1816 | 9200 | 0.0514 | 0.9836 | 0.9836 |
101
+ | 0.1113 | 9.3812 | 9400 | 0.0470 | 0.9862 | 0.9862 |
102
+ | 0.1113 | 9.5808 | 9600 | 0.0480 | 0.9850 | 0.9850 |
103
+ | 0.1113 | 9.7804 | 9800 | 0.0482 | 0.9849 | 0.9849 |
104
+ | 0.1113 | 9.9800 | 10000 | 0.0423 | 0.9872 | 0.9872 |
105
+ | 0.0969 | 10.1796 | 10200 | 0.0410 | 0.9871 | 0.9871 |
106
+ | 0.0969 | 10.3792 | 10400 | 0.0374 | 0.9887 | 0.9887 |
107
+ | 0.0969 | 10.5788 | 10600 | 0.0372 | 0.9884 | 0.9884 |
108
+ | 0.0969 | 10.7784 | 10800 | 0.0350 | 0.9903 | 0.9903 |
109
+ | 0.0969 | 10.9780 | 11000 | 0.0386 | 0.9878 | 0.9878 |
110
+ | 0.0864 | 11.1776 | 11200 | 0.0327 | 0.9908 | 0.9908 |
111
+ | 0.0864 | 11.3772 | 11400 | 0.0305 | 0.9915 | 0.9916 |
112
+ | 0.0864 | 11.5768 | 11600 | 0.0304 | 0.9916 | 0.9916 |
113
+ | 0.0864 | 11.7764 | 11800 | 0.0336 | 0.9895 | 0.9895 |
114
+ | 0.0864 | 11.9760 | 12000 | 0.0276 | 0.9925 | 0.9925 |
115
+ | 0.0734 | 12.1756 | 12200 | 0.0265 | 0.9929 | 0.9929 |
116
+ | 0.0734 | 12.3752 | 12400 | 0.0275 | 0.9924 | 0.9924 |
117
+ | 0.0734 | 12.5749 | 12600 | 0.0265 | 0.9928 | 0.9928 |
118
+ | 0.0734 | 12.7745 | 12800 | 0.0256 | 0.9927 | 0.9928 |
119
+ | 0.0734 | 12.9741 | 13000 | 0.0238 | 0.9940 | 0.9940 |
120
+ | 0.0665 | 13.1737 | 13200 | 0.0251 | 0.9929 | 0.9929 |
121
+ | 0.0665 | 13.3733 | 13400 | 0.0242 | 0.9934 | 0.9934 |
122
+ | 0.0665 | 13.5729 | 13600 | 0.0228 | 0.9942 | 0.9942 |
123
+ | 0.0665 | 13.7725 | 13800 | 0.0232 | 0.9938 | 0.9938 |
124
+ | 0.0665 | 13.9721 | 14000 | 0.0228 | 0.9940 | 0.9940 |
125
+ | 0.0623 | 14.1717 | 14200 | 0.0215 | 0.9944 | 0.9944 |
126
+ | 0.0623 | 14.3713 | 14400 | 0.0217 | 0.9943 | 0.9943 |
127
+ | 0.0623 | 14.5709 | 14600 | 0.0213 | 0.9944 | 0.9944 |
128
+ | 0.0623 | 14.7705 | 14800 | 0.0213 | 0.9944 | 0.9944 |
129
+ | 0.0623 | 14.9701 | 15000 | 0.0211 | 0.9945 | 0.9945 |
130
+
131
+
132
+ ### Framework versions
133
+
134
+ - Transformers 4.45.2
135
+ - Pytorch 2.1.2
136
+ - Datasets 2.20.0
137
+ - Tokenizers 0.20.1
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<mask>": 64000
3
+ }
bpe.codes ADDED
The diff for this file is too large to render. See raw diff
 
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "vinai/phobert-base-v2",
3
+ "architectures": [
4
+ "PhoBertLexical"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "B\u00ecnh th\u01b0\u1eddng",
15
+ "1": "T\u00ednh nhi\u1ec7m th\u1ea5p"
16
+ },
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "B\u00ecnh th\u01b0\u1eddng": 0,
21
+ "T\u00ednh nhi\u1ec7m th\u1ea5p": 1
22
+ },
23
+ "layer_norm_eps": 1e-05,
24
+ "max_position_embeddings": 258,
25
+ "model_type": "roberta",
26
+ "num_attention_heads": 12,
27
+ "num_classes": 2,
28
+ "num_hidden_layers": 12,
29
+ "pad_token_id": 1,
30
+ "position_embedding_type": "absolute",
31
+ "tokenizer_class": "PhobertTokenizer",
32
+ "torch_dtype": "float32",
33
+ "transformers_version": "4.45.2",
34
+ "type_vocab_size": 1,
35
+ "use_cache": true,
36
+ "vocab_size": 64001
37
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2be7b012f1072f4dc3b7bcfd2c923b8e0335580bbc62669742153ba5e9ca509e
3
+ size 538468008
special_tokens_map.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "mask_token": "<mask>",
6
+ "pad_token": "<pad>",
7
+ "sep_token": "</s>",
8
+ "unk_token": "<unk>"
9
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "64000": {
36
+ "content": "<mask>",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": false,
46
+ "cls_token": "<s>",
47
+ "eos_token": "</s>",
48
+ "mask_token": "<mask>",
49
+ "model_max_length": 1000000000000000019884624838656,
50
+ "pad_token": "<pad>",
51
+ "sep_token": "</s>",
52
+ "tokenizer_class": "PhobertTokenizer",
53
+ "unk_token": "<unk>"
54
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35d110083428d52f5a746a6b1502c254ec9a05402b6c307d2f6be1bd2cd3cbf6
3
+ size 5176
vocab.txt ADDED
The diff for this file is too large to render. See raw diff