Joi123/Vietnamese-social-media-visobert
Browse files- README.md +90 -0
- config.json +39 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: 5CD-AI/Vietnamese-Sentiment-visobert
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
metrics:
|
6 |
+
- accuracy
|
7 |
+
- f1
|
8 |
+
- precision
|
9 |
+
- recall
|
10 |
+
model-index:
|
11 |
+
- name: Vietnamese-social-media-visobert
|
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 |
+
# Vietnamese-social-media-visobert
|
19 |
+
|
20 |
+
This model is a fine-tuned version of [5CD-AI/Vietnamese-Sentiment-visobert](https://huggingface.co/5CD-AI/Vietnamese-Sentiment-visobert) on an unknown dataset.
|
21 |
+
It achieves the following results on the evaluation set:
|
22 |
+
- Loss: 0.8985
|
23 |
+
- Accuracy: 0.8744
|
24 |
+
- F1: 0.8264
|
25 |
+
- Precision: 0.8363
|
26 |
+
- Recall: 0.8175
|
27 |
+
|
28 |
+
## Model description
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Intended uses & limitations
|
33 |
+
|
34 |
+
More information needed
|
35 |
+
|
36 |
+
## Training and evaluation data
|
37 |
+
|
38 |
+
More information needed
|
39 |
+
|
40 |
+
## Training procedure
|
41 |
+
|
42 |
+
### Training hyperparameters
|
43 |
+
|
44 |
+
The following hyperparameters were used during training:
|
45 |
+
- learning_rate: 2e-05
|
46 |
+
- train_batch_size: 8
|
47 |
+
- eval_batch_size: 8
|
48 |
+
- seed: 42
|
49 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
50 |
+
- lr_scheduler_type: linear
|
51 |
+
- lr_scheduler_warmup_steps: 260
|
52 |
+
- num_epochs: 10
|
53 |
+
|
54 |
+
### Training results
|
55 |
+
|
56 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|
57 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
|
58 |
+
| No log | 0.3817 | 50 | 0.6882 | 0.8117 | 0.7660 | 0.7615 | 0.7709 |
|
59 |
+
| No log | 0.7634 | 100 | 0.5681 | 0.8386 | 0.7849 | 0.8154 | 0.7628 |
|
60 |
+
| 0.9396 | 1.1450 | 150 | 0.5227 | 0.8520 | 0.8116 | 0.8157 | 0.8083 |
|
61 |
+
| 0.9396 | 1.5267 | 200 | 0.5717 | 0.8475 | 0.8039 | 0.8007 | 0.8135 |
|
62 |
+
| 0.9396 | 1.9084 | 250 | 0.5705 | 0.8251 | 0.7842 | 0.7896 | 0.7825 |
|
63 |
+
| 0.4081 | 2.2901 | 300 | 0.6703 | 0.8565 | 0.8217 | 0.8251 | 0.8208 |
|
64 |
+
| 0.4081 | 2.6718 | 350 | 0.7260 | 0.8610 | 0.8162 | 0.8351 | 0.8016 |
|
65 |
+
| 0.2027 | 3.0534 | 400 | 0.6946 | 0.8610 | 0.8148 | 0.8152 | 0.8155 |
|
66 |
+
| 0.2027 | 3.4351 | 450 | 0.8426 | 0.8520 | 0.7935 | 0.8183 | 0.7747 |
|
67 |
+
| 0.2027 | 3.8168 | 500 | 0.8195 | 0.8520 | 0.7828 | 0.8255 | 0.7610 |
|
68 |
+
| 0.1098 | 4.1985 | 550 | 0.8272 | 0.8520 | 0.8072 | 0.8171 | 0.7984 |
|
69 |
+
| 0.1098 | 4.5802 | 600 | 0.9978 | 0.8520 | 0.7925 | 0.8361 | 0.7648 |
|
70 |
+
| 0.0277 | 4.9618 | 650 | 0.8102 | 0.8430 | 0.7882 | 0.8029 | 0.7796 |
|
71 |
+
| 0.0277 | 5.3435 | 700 | 0.8563 | 0.8520 | 0.7926 | 0.8107 | 0.7787 |
|
72 |
+
| 0.0277 | 5.7252 | 750 | 0.9299 | 0.8565 | 0.8052 | 0.8291 | 0.7871 |
|
73 |
+
| 0.0089 | 6.1069 | 800 | 0.8562 | 0.8520 | 0.8002 | 0.8141 | 0.7886 |
|
74 |
+
| 0.0089 | 6.4885 | 850 | 0.8737 | 0.8610 | 0.8074 | 0.8213 | 0.7958 |
|
75 |
+
| 0.0089 | 6.8702 | 900 | 0.9388 | 0.8610 | 0.8079 | 0.8431 | 0.7839 |
|
76 |
+
| 0.0094 | 7.2519 | 950 | 0.9036 | 0.8744 | 0.8280 | 0.8540 | 0.8097 |
|
77 |
+
| 0.0094 | 7.6336 | 1000 | 0.9003 | 0.8744 | 0.8264 | 0.8363 | 0.8175 |
|
78 |
+
| 0.0052 | 8.0153 | 1050 | 0.8814 | 0.8744 | 0.8264 | 0.8363 | 0.8175 |
|
79 |
+
| 0.0052 | 8.3969 | 1100 | 0.8918 | 0.8744 | 0.8264 | 0.8363 | 0.8175 |
|
80 |
+
| 0.0052 | 8.7786 | 1150 | 0.8964 | 0.8744 | 0.8264 | 0.8363 | 0.8175 |
|
81 |
+
| 0.0055 | 9.1603 | 1200 | 0.8936 | 0.8744 | 0.8264 | 0.8363 | 0.8175 |
|
82 |
+
| 0.0055 | 9.5420 | 1250 | 0.8959 | 0.8744 | 0.8264 | 0.8363 | 0.8175 |
|
83 |
+
| 0.0079 | 9.9237 | 1300 | 0.8985 | 0.8744 | 0.8264 | 0.8363 | 0.8175 |
|
84 |
+
|
85 |
+
|
86 |
+
### Framework versions
|
87 |
+
|
88 |
+
- Transformers 4.43.4
|
89 |
+
- Pytorch 2.4.0+cu121
|
90 |
+
- Tokenizers 0.19.1
|
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.43.4",
|
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:184ad57754cfd7068f16909aefb9008e3c85e95fed71719eee0a78c4f6a775a2
|
3 |
+
size 390297116
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:51f86ede8c67fbf2bb847c9e983eed57cf5ba36331c53d0c98594bca1088fa20
|
3 |
+
size 5176
|