RonTon05 commited on
Commit
4e353ed
1 Parent(s): 1b1f2cd

End of training

Browse files
README.md ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_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
+ # PhoBert_Dataset59KBoDuoi
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: 0.2985
21
+ - Accuracy: 0.9307
22
+ - F1: 0.9312
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: 128
43
+ - eval_batch_size: 128
44
+ - seed: 42
45
+ - gradient_accumulation_steps: 2
46
+ - total_train_batch_size: 256
47
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
48
+ - lr_scheduler_type: linear
49
+ - num_epochs: 20
50
+
51
+ ### Training results
52
+
53
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
54
+ |:-------------:|:-------:|:----:|:---------------:|:--------:|:------:|
55
+ | No log | 1.0230 | 200 | 0.1511 | 0.9390 | 0.9395 |
56
+ | No log | 2.0460 | 400 | 0.1571 | 0.9351 | 0.9356 |
57
+ | No log | 3.0691 | 600 | 0.1750 | 0.9340 | 0.9347 |
58
+ | 0.15 | 4.0921 | 800 | 0.1731 | 0.9334 | 0.9339 |
59
+ | 0.15 | 5.1151 | 1000 | 0.1912 | 0.9321 | 0.9326 |
60
+ | 0.15 | 6.1381 | 1200 | 0.2302 | 0.9273 | 0.9283 |
61
+ | 0.15 | 7.1611 | 1400 | 0.2180 | 0.9325 | 0.9330 |
62
+ | 0.0918 | 8.1841 | 1600 | 0.2620 | 0.9292 | 0.9300 |
63
+ | 0.0918 | 9.2072 | 1800 | 0.2363 | 0.9326 | 0.9329 |
64
+ | 0.0918 | 10.2302 | 2000 | 0.2687 | 0.9243 | 0.9252 |
65
+ | 0.0918 | 11.2532 | 2200 | 0.2621 | 0.9312 | 0.9317 |
66
+ | 0.0608 | 12.2762 | 2400 | 0.2741 | 0.9306 | 0.9312 |
67
+ | 0.0608 | 13.2992 | 2600 | 0.2614 | 0.9302 | 0.9306 |
68
+ | 0.0608 | 14.3223 | 2800 | 0.2830 | 0.9317 | 0.9321 |
69
+ | 0.0608 | 15.3453 | 3000 | 0.2874 | 0.9285 | 0.9291 |
70
+ | 0.0429 | 16.3683 | 3200 | 0.2844 | 0.9318 | 0.9323 |
71
+ | 0.0429 | 17.3913 | 3400 | 0.2836 | 0.9310 | 0.9313 |
72
+ | 0.0429 | 18.4143 | 3600 | 0.2885 | 0.9309 | 0.9312 |
73
+ | 0.0429 | 19.4373 | 3800 | 0.2985 | 0.9307 | 0.9312 |
74
+
75
+
76
+ ### Framework versions
77
+
78
+ - Transformers 4.41.2
79
+ - Pytorch 2.1.2
80
+ - Datasets 2.19.2
81
+ - 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,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "vinai/phobert-base-v2",
3
+ "architectures": [
4
+ "RobertaForSequenceClassification"
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
+ "initializer_range": 0.02,
14
+ "intermediate_size": 3072,
15
+ "layer_norm_eps": 1e-05,
16
+ "max_position_embeddings": 258,
17
+ "model_type": "roberta",
18
+ "num_attention_heads": 12,
19
+ "num_hidden_layers": 12,
20
+ "pad_token_id": 1,
21
+ "position_embedding_type": "absolute",
22
+ "problem_type": "single_label_classification",
23
+ "tokenizer_class": "PhobertTokenizer",
24
+ "torch_dtype": "float32",
25
+ "transformers_version": "4.41.2",
26
+ "type_vocab_size": 1,
27
+ "use_cache": true,
28
+ "vocab_size": 64001
29
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa123420a95c12cc3ff0915d6a65a7a70dda70c31fc646b4d175b16a9e2094c4
3
+ size 540023384
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:c55d03d80ad71fca3823bf8db47be478e4aaf1570d00b1b654ca65c4c06415f7
3
+ size 5048
vocab.txt ADDED
The diff for this file is too large to render. See raw diff