TungCan commited on
Commit
8b1a153
·
verified ·
1 Parent(s): bcd79c5

TungCan/Sentiment-Finetune

Browse files
README.md ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ base_model: 5CD-AI/Vietnamese-Sentiment-visobert
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ - f1
9
+ - precision
10
+ - recall
11
+ model-index:
12
+ - name: tuning-sentiment-5cdviso
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
+ # tuning-sentiment-5cdviso
20
+
21
+ This model is a fine-tuned version of [5CD-AI/Vietnamese-Sentiment-visobert](https://huggingface.co/5CD-AI/Vietnamese-Sentiment-visobert) on the None dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.0617
24
+ - Accuracy: 0.984
25
+ - F1: 0.9840
26
+ - Precision: 0.9837
27
+ - Recall: 0.9844
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: 2e-05
47
+ - train_batch_size: 32
48
+ - eval_batch_size: 32
49
+ - seed: 42
50
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
51
+ - lr_scheduler_type: linear
52
+ - num_epochs: 4
53
+ - mixed_precision_training: Native AMP
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
58
+ |:-------------:|:------:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
59
+ | 0.6027 | 0.2451 | 50 | 0.3793 | 0.856 | 0.8561 | 0.8604 | 0.8621 |
60
+ | 0.4082 | 0.4902 | 100 | 0.3015 | 0.8806 | 0.8804 | 0.8815 | 0.8854 |
61
+ | 0.3498 | 0.7353 | 150 | 0.2385 | 0.9138 | 0.9140 | 0.9132 | 0.9156 |
62
+ | 0.3354 | 0.9804 | 200 | 0.1968 | 0.92 | 0.9203 | 0.9199 | 0.9210 |
63
+ | 0.2146 | 1.2255 | 250 | 0.2305 | 0.9132 | 0.9140 | 0.9178 | 0.9182 |
64
+ | 0.2103 | 1.4706 | 300 | 0.1952 | 0.9255 | 0.9256 | 0.9276 | 0.9301 |
65
+ | 0.2094 | 1.7157 | 350 | 0.1357 | 0.9563 | 0.9563 | 0.9563 | 0.9563 |
66
+ | 0.2165 | 1.9608 | 400 | 0.1214 | 0.9612 | 0.9611 | 0.9621 | 0.9603 |
67
+ | 0.1226 | 2.2059 | 450 | 0.1238 | 0.9618 | 0.9618 | 0.9612 | 0.9629 |
68
+ | 0.1409 | 2.4510 | 500 | 0.1241 | 0.9538 | 0.9539 | 0.9540 | 0.9569 |
69
+ | 0.138 | 2.6961 | 550 | 0.0839 | 0.9735 | 0.9735 | 0.9730 | 0.9740 |
70
+ | 0.1246 | 2.9412 | 600 | 0.0717 | 0.9809 | 0.9809 | 0.9807 | 0.9812 |
71
+ | 0.0724 | 3.1863 | 650 | 0.0761 | 0.9791 | 0.9791 | 0.9785 | 0.9799 |
72
+ | 0.0851 | 3.4314 | 700 | 0.0686 | 0.9822 | 0.9821 | 0.9821 | 0.9822 |
73
+ | 0.0917 | 3.6765 | 750 | 0.0636 | 0.9828 | 0.9828 | 0.9829 | 0.9827 |
74
+ | 0.071 | 3.9216 | 800 | 0.0621 | 0.984 | 0.9840 | 0.9837 | 0.9844 |
75
+
76
+
77
+ ### Framework versions
78
+
79
+ - Transformers 4.47.0
80
+ - Pytorch 2.5.1+cu121
81
+ - Datasets 3.3.1
82
+ - Tokenizers 0.21.0
config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "5CD-AI/Vietnamese-Sentiment-visobert",
3
+ "architectures": [
4
+ "XLMRobertaForSequenceClassification"
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": "NEG",
15
+ "1": "POS",
16
+ "2": "NEU"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "NEG": 0,
22
+ "NEU": 2,
23
+ "POS": 1
24
+ },
25
+ "layer_norm_eps": 1e-12,
26
+ "max_length": 256,
27
+ "max_position_embeddings": 514,
28
+ "model_type": "xlm-roberta",
29
+ "num_attention_heads": 12,
30
+ "num_hidden_layers": 12,
31
+ "pad_token_id": 1,
32
+ "position_embedding_type": "absolute",
33
+ "problem_type": "single_label_classification",
34
+ "torch_dtype": "float32",
35
+ "transformers_version": "4.47.0",
36
+ "type_vocab_size": 2,
37
+ "use_cache": true,
38
+ "vocab_size": 15004
39
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8fedf0db3ac800b3931b3656561e291f1f426e1e9ea1c81968a10bdd7995b46
3
+ size 390297116
sentencepiece.bpe.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02aaf05cda4db99e86b7c76eba6258867ce4d043da0fed19c87a7d46c8b53a65
3
+ size 470732
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "15001": {
36
+ "content": "<mask>",
37
+ "lstrip": true,
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
+ "extra_special_tokens": {},
49
+ "mask_token": "<mask>",
50
+ "max_length": 256,
51
+ "model_max_length": 256,
52
+ "pad_token": "<pad>",
53
+ "sep_token": "</s>",
54
+ "sp_model_kwargs": {},
55
+ "stride": 0,
56
+ "tokenizer_class": "XLMRobertaTokenizer",
57
+ "truncation_side": "right",
58
+ "truncation_strategy": "longest_first",
59
+ "unk_token": "<unk>"
60
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb26ce40ab8e40402c122a1325cb48d59b18cc434fabe01992dd2091b88f8952
3
+ size 5240