Training completed!
Browse files- README.md +94 -0
- config.json +42 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- special_tokens_map.json +15 -0
- tokenizer.json +0 -0
- tokenizer_config.json +58 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: mit
|
4 |
+
base_model: FacebookAI/roberta-base
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
metrics:
|
8 |
+
- f1
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: UIT-roberta-base-finetuned
|
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 |
+
# UIT-roberta-base-finetuned
|
19 |
+
|
20 |
+
This model is a fine-tuned version of [FacebookAI/roberta-base](https://huggingface.co/FacebookAI/roberta-base) on the None dataset.
|
21 |
+
It achieves the following results on the evaluation set:
|
22 |
+
- Loss: 0.7848
|
23 |
+
- F1: 0.7326
|
24 |
+
- Roc Auc: 0.7985
|
25 |
+
- Accuracy: 0.4747
|
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: 16
|
46 |
+
- eval_batch_size: 16
|
47 |
+
- seed: 42
|
48 |
+
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
49 |
+
- lr_scheduler_type: cosine
|
50 |
+
- lr_scheduler_warmup_steps: 100
|
51 |
+
- num_epochs: 30
|
52 |
+
|
53 |
+
### Training results
|
54 |
+
|
55 |
+
| Training Loss | Epoch | Step | Validation Loss | F1 | Roc Auc | Accuracy |
|
56 |
+
|:-------------:|:-----:|:----:|:---------------:|:------:|:-------:|:--------:|
|
57 |
+
| 0.0567 | 1.0 | 139 | 0.5027 | 0.7275 | 0.7920 | 0.4495 |
|
58 |
+
| 0.043 | 2.0 | 278 | 0.6029 | 0.6848 | 0.7535 | 0.4314 |
|
59 |
+
| 0.0259 | 3.0 | 417 | 0.6046 | 0.7209 | 0.7929 | 0.4513 |
|
60 |
+
| 0.0466 | 4.0 | 556 | 0.6514 | 0.7015 | 0.7735 | 0.4458 |
|
61 |
+
| 0.0292 | 5.0 | 695 | 0.7177 | 0.7052 | 0.7667 | 0.4495 |
|
62 |
+
| 0.0123 | 6.0 | 834 | 0.7267 | 0.7070 | 0.7806 | 0.4513 |
|
63 |
+
| 0.0165 | 7.0 | 973 | 0.7384 | 0.7004 | 0.7719 | 0.4386 |
|
64 |
+
| 0.0082 | 8.0 | 1112 | 0.7504 | 0.7150 | 0.7857 | 0.4531 |
|
65 |
+
| 0.0101 | 9.0 | 1251 | 0.7449 | 0.7263 | 0.7968 | 0.4657 |
|
66 |
+
| 0.0153 | 10.0 | 1390 | 0.8303 | 0.6913 | 0.7678 | 0.4332 |
|
67 |
+
| 0.0199 | 11.0 | 1529 | 0.7961 | 0.7076 | 0.7849 | 0.4458 |
|
68 |
+
| 0.0157 | 12.0 | 1668 | 0.7848 | 0.7326 | 0.7985 | 0.4747 |
|
69 |
+
| 0.0031 | 13.0 | 1807 | 0.8443 | 0.7158 | 0.7832 | 0.4585 |
|
70 |
+
| 0.0013 | 14.0 | 1946 | 0.8282 | 0.7244 | 0.7898 | 0.4639 |
|
71 |
+
| 0.0015 | 15.0 | 2085 | 0.8554 | 0.7187 | 0.7858 | 0.4747 |
|
72 |
+
| 0.0015 | 16.0 | 2224 | 0.8796 | 0.7225 | 0.7868 | 0.4639 |
|
73 |
+
| 0.0039 | 17.0 | 2363 | 0.9017 | 0.7181 | 0.7837 | 0.4531 |
|
74 |
+
| 0.003 | 18.0 | 2502 | 0.8980 | 0.7057 | 0.7744 | 0.4458 |
|
75 |
+
| 0.0009 | 19.0 | 2641 | 0.8888 | 0.7244 | 0.7874 | 0.4621 |
|
76 |
+
| 0.0008 | 20.0 | 2780 | 0.9001 | 0.7181 | 0.7838 | 0.4639 |
|
77 |
+
| 0.0008 | 21.0 | 2919 | 0.8955 | 0.7234 | 0.7883 | 0.4567 |
|
78 |
+
| 0.0008 | 22.0 | 3058 | 0.9071 | 0.7180 | 0.7827 | 0.4531 |
|
79 |
+
| 0.0008 | 23.0 | 3197 | 0.9219 | 0.7193 | 0.7823 | 0.4657 |
|
80 |
+
| 0.0006 | 24.0 | 3336 | 0.9195 | 0.7193 | 0.7824 | 0.4621 |
|
81 |
+
| 0.0013 | 25.0 | 3475 | 0.8951 | 0.7208 | 0.7882 | 0.4711 |
|
82 |
+
| 0.0007 | 26.0 | 3614 | 0.9148 | 0.7226 | 0.7859 | 0.4801 |
|
83 |
+
| 0.0007 | 27.0 | 3753 | 0.9118 | 0.7236 | 0.7867 | 0.4765 |
|
84 |
+
| 0.0007 | 28.0 | 3892 | 0.9108 | 0.7240 | 0.7874 | 0.4783 |
|
85 |
+
| 0.0007 | 29.0 | 4031 | 0.9122 | 0.7232 | 0.7868 | 0.4747 |
|
86 |
+
| 0.0006 | 30.0 | 4170 | 0.9124 | 0.7224 | 0.7862 | 0.4729 |
|
87 |
+
|
88 |
+
|
89 |
+
### Framework versions
|
90 |
+
|
91 |
+
- Transformers 4.48.1
|
92 |
+
- Pytorch 2.4.0
|
93 |
+
- Datasets 3.0.1
|
94 |
+
- Tokenizers 0.21.0
|
config.json
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "FacebookAI/roberta-base",
|
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 |
+
"id2label": {
|
14 |
+
"0": "anger",
|
15 |
+
"1": "fear",
|
16 |
+
"2": "joy",
|
17 |
+
"3": "sadness",
|
18 |
+
"4": "surprise"
|
19 |
+
},
|
20 |
+
"initializer_range": 0.02,
|
21 |
+
"intermediate_size": 3072,
|
22 |
+
"label2id": {
|
23 |
+
"anger": 0,
|
24 |
+
"fear": 1,
|
25 |
+
"joy": 2,
|
26 |
+
"sadness": 3,
|
27 |
+
"surprise": 4
|
28 |
+
},
|
29 |
+
"layer_norm_eps": 1e-05,
|
30 |
+
"max_position_embeddings": 514,
|
31 |
+
"model_type": "roberta",
|
32 |
+
"num_attention_heads": 12,
|
33 |
+
"num_hidden_layers": 12,
|
34 |
+
"pad_token_id": 1,
|
35 |
+
"position_embedding_type": "absolute",
|
36 |
+
"problem_type": "multi_label_classification",
|
37 |
+
"torch_dtype": "float32",
|
38 |
+
"transformers_version": "4.48.1",
|
39 |
+
"type_vocab_size": 1,
|
40 |
+
"use_cache": true,
|
41 |
+
"vocab_size": 50265
|
42 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c39d29c41a6ceb19d80590dae0404bad00423a52cdd7f03f8fdac7e2797e687d
|
3 |
+
size 498622052
|
special_tokens_map.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"cls_token": "<s>",
|
4 |
+
"eos_token": "</s>",
|
5 |
+
"mask_token": {
|
6 |
+
"content": "<mask>",
|
7 |
+
"lstrip": true,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"pad_token": "<pad>",
|
13 |
+
"sep_token": "</s>",
|
14 |
+
"unk_token": "<unk>"
|
15 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"0": {
|
5 |
+
"content": "<s>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": true,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"1": {
|
13 |
+
"content": "<pad>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": true,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"2": {
|
21 |
+
"content": "</s>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": true,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
},
|
28 |
+
"3": {
|
29 |
+
"content": "<unk>",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": true,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false,
|
34 |
+
"special": true
|
35 |
+
},
|
36 |
+
"50264": {
|
37 |
+
"content": "<mask>",
|
38 |
+
"lstrip": true,
|
39 |
+
"normalized": false,
|
40 |
+
"rstrip": false,
|
41 |
+
"single_word": false,
|
42 |
+
"special": true
|
43 |
+
}
|
44 |
+
},
|
45 |
+
"bos_token": "<s>",
|
46 |
+
"clean_up_tokenization_spaces": false,
|
47 |
+
"cls_token": "<s>",
|
48 |
+
"eos_token": "</s>",
|
49 |
+
"errors": "replace",
|
50 |
+
"extra_special_tokens": {},
|
51 |
+
"mask_token": "<mask>",
|
52 |
+
"model_max_length": 512,
|
53 |
+
"pad_token": "<pad>",
|
54 |
+
"sep_token": "</s>",
|
55 |
+
"tokenizer_class": "RobertaTokenizer",
|
56 |
+
"trim_offsets": true,
|
57 |
+
"unk_token": "<unk>"
|
58 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c1f96a600cd34d33186139490482e5e4e1a05a2f88e94c78c9cf1a124526b390
|
3 |
+
size 5304
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|