End of training
Browse files- README.md +141 -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,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_Meta_Dataset59KBoDuoi
|
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 |
+
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="200" height="32"/>](https://wandb.ai/ronton/huggingface/runs/w3fwkqoh)
|
17 |
+
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="200" height="32"/>](https://wandb.ai/ronton/uncategorized/runs/kqky5evn)
|
18 |
+
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="200" height="32"/>](https://wandb.ai/ronton/uncategorized/runs/kqky5evn)
|
19 |
+
# PhoBert_Lexical_Meta_Dataset59KBoDuoi
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [vinai/phobert-base-v2](https://huggingface.co/vinai/phobert-base-v2) on an unknown dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 0.5530
|
24 |
+
- Accuracy: 0.9002
|
25 |
+
- F1: 0.9006
|
26 |
+
|
27 |
+
## Model description
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Intended uses & limitations
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training and evaluation data
|
36 |
+
|
37 |
+
More information needed
|
38 |
+
|
39 |
+
## Training procedure
|
40 |
+
|
41 |
+
### Training hyperparameters
|
42 |
+
|
43 |
+
The following hyperparameters were used during training:
|
44 |
+
- learning_rate: 2e-05
|
45 |
+
- train_batch_size: 64
|
46 |
+
- eval_batch_size: 64
|
47 |
+
- seed: 42
|
48 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
49 |
+
- lr_scheduler_type: linear
|
50 |
+
- num_epochs: 20
|
51 |
+
|
52 |
+
### Training results
|
53 |
+
|
54 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|
55 |
+
|:-------------:|:-------:|:-----:|:---------------:|:--------:|:------:|
|
56 |
+
| No log | 0.2558 | 200 | 0.3462 | 0.8484 | 0.8450 |
|
57 |
+
| No log | 0.5115 | 400 | 0.3203 | 0.8626 | 0.8645 |
|
58 |
+
| No log | 0.7673 | 600 | 0.2886 | 0.8742 | 0.8747 |
|
59 |
+
| 0.3511 | 1.0230 | 800 | 0.2991 | 0.8824 | 0.8817 |
|
60 |
+
| 0.3511 | 1.2788 | 1000 | 0.2882 | 0.8800 | 0.8805 |
|
61 |
+
| 0.3511 | 1.5345 | 1200 | 0.2897 | 0.8817 | 0.8827 |
|
62 |
+
| 0.3511 | 1.7903 | 1400 | 0.2674 | 0.8856 | 0.8859 |
|
63 |
+
| 0.2582 | 2.0460 | 1600 | 0.2761 | 0.8855 | 0.8865 |
|
64 |
+
| 0.2582 | 2.3018 | 1800 | 0.2788 | 0.8860 | 0.8869 |
|
65 |
+
| 0.2582 | 2.5575 | 2000 | 0.2718 | 0.8848 | 0.8859 |
|
66 |
+
| 0.2582 | 2.8133 | 2200 | 0.2749 | 0.8910 | 0.8919 |
|
67 |
+
| 0.2136 | 3.0691 | 2400 | 0.2984 | 0.8900 | 0.8909 |
|
68 |
+
| 0.2136 | 3.3248 | 2600 | 0.2847 | 0.8902 | 0.8896 |
|
69 |
+
| 0.2136 | 3.5806 | 2800 | 0.2810 | 0.8900 | 0.8912 |
|
70 |
+
| 0.2136 | 3.8363 | 3000 | 0.3029 | 0.8869 | 0.8887 |
|
71 |
+
| 0.1805 | 4.0921 | 3200 | 0.2973 | 0.8935 | 0.8945 |
|
72 |
+
| 0.1805 | 4.3478 | 3400 | 0.3033 | 0.8938 | 0.8941 |
|
73 |
+
| 0.1805 | 4.6036 | 3600 | 0.2808 | 0.8927 | 0.8938 |
|
74 |
+
| 0.1805 | 4.8593 | 3800 | 0.3069 | 0.8923 | 0.8936 |
|
75 |
+
| 0.1529 | 5.1151 | 4000 | 0.3200 | 0.8877 | 0.8891 |
|
76 |
+
| 0.1529 | 5.3708 | 4200 | 0.3184 | 0.8958 | 0.8966 |
|
77 |
+
| 0.1529 | 5.6266 | 4400 | 0.3000 | 0.8917 | 0.8927 |
|
78 |
+
| 0.1529 | 5.8824 | 4600 | 0.3315 | 0.8956 | 0.8958 |
|
79 |
+
| 0.1295 | 6.1381 | 4800 | 0.3320 | 0.8965 | 0.8974 |
|
80 |
+
| 0.1295 | 6.3939 | 5000 | 0.3344 | 0.8975 | 0.8980 |
|
81 |
+
| 0.1295 | 6.6496 | 5200 | 0.3315 | 0.8952 | 0.8948 |
|
82 |
+
| 0.1295 | 6.9054 | 5400 | 0.3424 | 0.8950 | 0.8951 |
|
83 |
+
| 0.1123 | 7.1611 | 5600 | 0.3715 | 0.8918 | 0.8929 |
|
84 |
+
| 0.1123 | 7.4169 | 5800 | 0.3718 | 0.8959 | 0.8963 |
|
85 |
+
| 0.1123 | 7.6726 | 6000 | 0.3384 | 0.8959 | 0.8965 |
|
86 |
+
| 0.1123 | 7.9284 | 6200 | 0.3635 | 0.8907 | 0.8920 |
|
87 |
+
| 0.0958 | 8.1841 | 6400 | 0.3753 | 0.8969 | 0.8979 |
|
88 |
+
| 0.0958 | 8.4399 | 6600 | 0.4053 | 0.8968 | 0.8969 |
|
89 |
+
| 0.0958 | 8.6957 | 6800 | 0.3732 | 0.8968 | 0.8975 |
|
90 |
+
| 0.0958 | 8.9514 | 7000 | 0.4011 | 0.8986 | 0.8987 |
|
91 |
+
| 0.0816 | 9.2072 | 7200 | 0.4057 | 0.8975 | 0.8980 |
|
92 |
+
| 0.0816 | 9.4629 | 7400 | 0.4227 | 0.8945 | 0.8956 |
|
93 |
+
| 0.0816 | 9.7187 | 7600 | 0.4299 | 0.8977 | 0.8979 |
|
94 |
+
| 0.0816 | 9.9744 | 7800 | 0.4030 | 0.8979 | 0.8984 |
|
95 |
+
| 0.0715 | 10.2302 | 8000 | 0.4388 | 0.8973 | 0.8978 |
|
96 |
+
| 0.0715 | 10.4859 | 8200 | 0.4462 | 0.8969 | 0.8968 |
|
97 |
+
| 0.0715 | 10.7417 | 8400 | 0.4158 | 0.8974 | 0.8975 |
|
98 |
+
| 0.0635 | 10.9974 | 8600 | 0.4339 | 0.8977 | 0.8983 |
|
99 |
+
| 0.0635 | 11.2532 | 8800 | 0.4798 | 0.8994 | 0.8998 |
|
100 |
+
| 0.0635 | 11.5090 | 9000 | 0.4610 | 0.8957 | 0.8964 |
|
101 |
+
| 0.0635 | 11.7647 | 9200 | 0.4808 | 0.8940 | 0.8947 |
|
102 |
+
| 0.057 | 12.0205 | 9400 | 0.4701 | 0.8958 | 0.8955 |
|
103 |
+
| 0.057 | 12.2762 | 9600 | 0.4913 | 0.8945 | 0.8956 |
|
104 |
+
| 0.057 | 12.5320 | 9800 | 0.5026 | 0.8967 | 0.8973 |
|
105 |
+
| 0.057 | 12.7877 | 10000 | 0.4739 | 0.8969 | 0.8979 |
|
106 |
+
| 0.0507 | 13.0435 | 10200 | 0.4741 | 0.8966 | 0.8966 |
|
107 |
+
| 0.0507 | 13.2992 | 10400 | 0.4962 | 0.8995 | 0.8999 |
|
108 |
+
| 0.0507 | 13.5550 | 10600 | 0.5051 | 0.8969 | 0.8977 |
|
109 |
+
| 0.0507 | 13.8107 | 10800 | 0.4855 | 0.8970 | 0.8977 |
|
110 |
+
| 0.045 | 14.0665 | 11000 | 0.4995 | 0.8983 | 0.8990 |
|
111 |
+
| 0.045 | 14.3223 | 11200 | 0.5144 | 0.8972 | 0.8976 |
|
112 |
+
| 0.045 | 14.5780 | 11400 | 0.5057 | 0.8980 | 0.8984 |
|
113 |
+
| 0.045 | 14.8338 | 11600 | 0.5240 | 0.8995 | 0.9001 |
|
114 |
+
| 0.0422 | 15.0895 | 11800 | 0.5100 | 0.8991 | 0.8995 |
|
115 |
+
| 0.0422 | 15.3453 | 12000 | 0.5252 | 0.9000 | 0.9005 |
|
116 |
+
| 0.0422 | 15.6010 | 12200 | 0.5324 | 0.8981 | 0.8988 |
|
117 |
+
| 0.0422 | 15.8568 | 12400 | 0.5343 | 0.8997 | 0.9001 |
|
118 |
+
| 0.0372 | 16.1125 | 12600 | 0.5277 | 0.8990 | 0.8993 |
|
119 |
+
| 0.0372 | 16.3683 | 12800 | 0.5433 | 0.8992 | 0.8997 |
|
120 |
+
| 0.0372 | 16.6240 | 13000 | 0.5463 | 0.8986 | 0.8993 |
|
121 |
+
| 0.0372 | 16.8798 | 13200 | 0.5427 | 0.8980 | 0.8984 |
|
122 |
+
| 0.0338 | 17.1355 | 13400 | 0.5485 | 0.9001 | 0.9005 |
|
123 |
+
| 0.0338 | 17.3913 | 13600 | 0.5608 | 0.8966 | 0.8972 |
|
124 |
+
| 0.0338 | 17.6471 | 13800 | 0.5517 | 0.9000 | 0.9004 |
|
125 |
+
| 0.0338 | 17.9028 | 14000 | 0.5563 | 0.8997 | 0.9002 |
|
126 |
+
| 0.0315 | 18.1586 | 14200 | 0.5488 | 0.8995 | 0.8999 |
|
127 |
+
| 0.0315 | 18.4143 | 14400 | 0.5480 | 0.8992 | 0.8996 |
|
128 |
+
| 0.0315 | 18.6701 | 14600 | 0.5492 | 0.9002 | 0.9006 |
|
129 |
+
| 0.0315 | 18.9258 | 14800 | 0.5491 | 0.9014 | 0.9017 |
|
130 |
+
| 0.0298 | 19.1816 | 15000 | 0.5498 | 0.9005 | 0.9007 |
|
131 |
+
| 0.0298 | 19.4373 | 15200 | 0.5508 | 0.9007 | 0.9011 |
|
132 |
+
| 0.0298 | 19.6931 | 15400 | 0.5525 | 0.9002 | 0.9006 |
|
133 |
+
| 0.0298 | 19.9488 | 15600 | 0.5530 | 0.9002 | 0.9006 |
|
134 |
+
|
135 |
+
|
136 |
+
### Framework versions
|
137 |
+
|
138 |
+
- Transformers 4.42.4
|
139 |
+
- Pytorch 2.1.2
|
140 |
+
- Datasets 2.19.2
|
141 |
+
- 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.42.4",
|
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:afe1b304b220ff697251fad187b3b2d11bf38430dc53e8d6fdfcb96d81f02402
|
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:be306b2cd0f29473adb640cc5017f64611d044c7009693868d3d176d0c76c30f
|
3 |
+
size 5112
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|