phunganhsang
commited on
Commit
•
0390d45
1
Parent(s):
50e4a6b
End of training
Browse files- README.md +124 -0
- added_tokens.json +3 -0
- bpe.codes +0 -0
- config.json +37 -0
- model.safetensors +3 -0
- special_tokens_map.json +9 -0
- tokenizer_config.json +54 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: vinai/phobert-base-v2
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
metrics:
|
6 |
+
- accuracy
|
7 |
+
- f1
|
8 |
+
model-index:
|
9 |
+
- name: PhoBert_Lexical_Dataset55K
|
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 |
+
# PhoBert_Lexical_Dataset55K
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [vinai/phobert-base-v2](https://huggingface.co/vinai/phobert-base-v2) on an unknown dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 1.0598
|
21 |
+
- Accuracy: 0.7970
|
22 |
+
- F1: 0.8468
|
23 |
+
|
24 |
+
## Model description
|
25 |
+
|
26 |
+
More information needed
|
27 |
+
|
28 |
+
## Intended uses & limitations
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Training and evaluation data
|
33 |
+
|
34 |
+
More information needed
|
35 |
+
|
36 |
+
## Training procedure
|
37 |
+
|
38 |
+
### Training hyperparameters
|
39 |
+
|
40 |
+
The following hyperparameters were used during training:
|
41 |
+
- learning_rate: 2e-05
|
42 |
+
- train_batch_size: 64
|
43 |
+
- eval_batch_size: 64
|
44 |
+
- seed: 42
|
45 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
46 |
+
- lr_scheduler_type: linear
|
47 |
+
- num_epochs: 15
|
48 |
+
|
49 |
+
### Training results
|
50 |
+
|
51 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|
52 |
+
|:-------------:|:-------:|:-----:|:---------------:|:--------:|:------:|
|
53 |
+
| No log | 0.2317 | 200 | 0.5915 | 0.7575 | 0.8196 |
|
54 |
+
| No log | 0.4635 | 400 | 0.6149 | 0.7294 | 0.8009 |
|
55 |
+
| No log | 0.6952 | 600 | 0.5838 | 0.7335 | 0.8038 |
|
56 |
+
| No log | 0.9270 | 800 | 0.4301 | 0.8213 | 0.8606 |
|
57 |
+
| 0.3511 | 1.1587 | 1000 | 0.4820 | 0.8211 | 0.8608 |
|
58 |
+
| 0.3511 | 1.3905 | 1200 | 0.6798 | 0.7461 | 0.8126 |
|
59 |
+
| 0.3511 | 1.6222 | 1400 | 0.6930 | 0.7087 | 0.7868 |
|
60 |
+
| 0.3511 | 1.8540 | 1600 | 0.6207 | 0.7709 | 0.8292 |
|
61 |
+
| 0.2551 | 2.0857 | 1800 | 0.5473 | 0.8101 | 0.8545 |
|
62 |
+
| 0.2551 | 2.3175 | 2000 | 0.5228 | 0.8072 | 0.8526 |
|
63 |
+
| 0.2551 | 2.5492 | 2200 | 0.5701 | 0.7828 | 0.8371 |
|
64 |
+
| 0.2551 | 2.7810 | 2400 | 0.5560 | 0.7838 | 0.8378 |
|
65 |
+
| 0.214 | 3.0127 | 2600 | 0.7375 | 0.7332 | 0.8039 |
|
66 |
+
| 0.214 | 3.2445 | 2800 | 0.5101 | 0.8126 | 0.8565 |
|
67 |
+
| 0.214 | 3.4762 | 3000 | 0.5639 | 0.8139 | 0.8574 |
|
68 |
+
| 0.214 | 3.7080 | 3200 | 0.4802 | 0.8299 | 0.8671 |
|
69 |
+
| 0.214 | 3.9397 | 3400 | 0.6431 | 0.7773 | 0.8336 |
|
70 |
+
| 0.1835 | 4.1715 | 3600 | 0.8122 | 0.7347 | 0.8051 |
|
71 |
+
| 0.1835 | 4.4032 | 3800 | 0.4787 | 0.8506 | 0.8804 |
|
72 |
+
| 0.1835 | 4.6350 | 4000 | 0.4719 | 0.8476 | 0.8784 |
|
73 |
+
| 0.1835 | 4.8667 | 4200 | 0.4643 | 0.8419 | 0.8751 |
|
74 |
+
| 0.157 | 5.0985 | 4400 | 0.6827 | 0.7918 | 0.8432 |
|
75 |
+
| 0.157 | 5.3302 | 4600 | 0.5695 | 0.8225 | 0.8629 |
|
76 |
+
| 0.157 | 5.5620 | 4800 | 0.7416 | 0.7831 | 0.8376 |
|
77 |
+
| 0.157 | 5.7937 | 5000 | 0.7787 | 0.7643 | 0.8253 |
|
78 |
+
| 0.1337 | 6.0255 | 5200 | 0.6881 | 0.7963 | 0.8462 |
|
79 |
+
| 0.1337 | 6.2572 | 5400 | 0.6894 | 0.7953 | 0.8456 |
|
80 |
+
| 0.1337 | 6.4890 | 5600 | 0.6472 | 0.8156 | 0.8587 |
|
81 |
+
| 0.1337 | 6.7207 | 5800 | 0.5857 | 0.8222 | 0.8626 |
|
82 |
+
| 0.1337 | 6.9525 | 6000 | 0.6816 | 0.8113 | 0.8559 |
|
83 |
+
| 0.1154 | 7.1842 | 6200 | 0.9047 | 0.7590 | 0.8216 |
|
84 |
+
| 0.1154 | 7.4160 | 6400 | 0.7080 | 0.8088 | 0.8541 |
|
85 |
+
| 0.1154 | 7.6477 | 6600 | 0.6871 | 0.8148 | 0.8581 |
|
86 |
+
| 0.1154 | 7.8795 | 6800 | 0.7481 | 0.7900 | 0.8422 |
|
87 |
+
| 0.1002 | 8.1112 | 7000 | 0.7101 | 0.8236 | 0.8637 |
|
88 |
+
| 0.1002 | 8.3430 | 7200 | 0.8398 | 0.7933 | 0.8443 |
|
89 |
+
| 0.1002 | 8.5747 | 7400 | 0.7284 | 0.8239 | 0.8640 |
|
90 |
+
| 0.1002 | 8.8065 | 7600 | 0.7415 | 0.8117 | 0.8561 |
|
91 |
+
| 0.0843 | 9.0382 | 7800 | 0.8033 | 0.8066 | 0.8529 |
|
92 |
+
| 0.0843 | 9.2700 | 8000 | 0.8593 | 0.8080 | 0.8536 |
|
93 |
+
| 0.0843 | 9.5017 | 8200 | 0.8626 | 0.7953 | 0.8456 |
|
94 |
+
| 0.0843 | 9.7335 | 8400 | 0.7607 | 0.8192 | 0.8609 |
|
95 |
+
| 0.0843 | 9.9652 | 8600 | 0.9512 | 0.7875 | 0.8406 |
|
96 |
+
| 0.072 | 10.1970 | 8800 | 0.9709 | 0.7891 | 0.8418 |
|
97 |
+
| 0.072 | 10.4287 | 9000 | 0.9674 | 0.7948 | 0.8453 |
|
98 |
+
| 0.072 | 10.6605 | 9200 | 0.9815 | 0.7863 | 0.8399 |
|
99 |
+
| 0.072 | 10.8922 | 9400 | 1.0347 | 0.7839 | 0.8382 |
|
100 |
+
| 0.0617 | 11.1240 | 9600 | 1.1195 | 0.7774 | 0.8340 |
|
101 |
+
| 0.0617 | 11.3557 | 9800 | 1.0192 | 0.7916 | 0.8434 |
|
102 |
+
| 0.0617 | 11.5875 | 10000 | 0.9594 | 0.8022 | 0.8502 |
|
103 |
+
| 0.0617 | 11.8192 | 10200 | 1.0892 | 0.7750 | 0.8325 |
|
104 |
+
| 0.0541 | 12.0510 | 10400 | 1.0634 | 0.7886 | 0.8414 |
|
105 |
+
| 0.0541 | 12.2827 | 10600 | 1.0198 | 0.8036 | 0.8512 |
|
106 |
+
| 0.0541 | 12.5145 | 10800 | 1.0040 | 0.8016 | 0.8499 |
|
107 |
+
| 0.0541 | 12.7462 | 11000 | 1.0208 | 0.7962 | 0.8464 |
|
108 |
+
| 0.0541 | 12.9780 | 11200 | 1.0329 | 0.7927 | 0.8441 |
|
109 |
+
| 0.048 | 13.2097 | 11400 | 0.9916 | 0.8033 | 0.8510 |
|
110 |
+
| 0.048 | 13.4415 | 11600 | 1.0793 | 0.7902 | 0.8424 |
|
111 |
+
| 0.048 | 13.6732 | 11800 | 1.0424 | 0.7964 | 0.8465 |
|
112 |
+
| 0.048 | 13.9050 | 12000 | 1.0162 | 0.8018 | 0.8500 |
|
113 |
+
| 0.0426 | 14.1367 | 12200 | 1.0633 | 0.7936 | 0.8447 |
|
114 |
+
| 0.0426 | 14.3685 | 12400 | 1.0128 | 0.8022 | 0.8502 |
|
115 |
+
| 0.0426 | 14.6002 | 12600 | 1.0780 | 0.7924 | 0.8439 |
|
116 |
+
| 0.0426 | 14.8320 | 12800 | 1.0598 | 0.7970 | 0.8468 |
|
117 |
+
|
118 |
+
|
119 |
+
### Framework versions
|
120 |
+
|
121 |
+
- Transformers 4.44.0
|
122 |
+
- Pytorch 2.1.2
|
123 |
+
- Datasets 2.20.0
|
124 |
+
- Tokenizers 0.19.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.44.0",
|
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:dc74cbac183b3805beca06eca299ddc0776157328ade52f7746ee8cdd4f3b160
|
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": true,
|
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:cfc3c4ee547eba61358cd29f4cc074382b44f22c4ea0c8321956333a52265533
|
3 |
+
size 5176
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|