AmirlyPhd commited on
Commit
f76ccba
1 Parent(s): 1035d24

AmirlyPhd/final_V1-roberta-text-classification-model

Browse files
README.md ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: roberta-base
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ - f1
9
+ - precision
10
+ - recall
11
+ model-index:
12
+ - name: final_V1-roberta-text-classification-model
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
+ # final_V1-roberta-text-classification-model
20
+
21
+ This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on an unknown dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.2223
24
+ - Accuracy: 0.9595
25
+ - F1: 0.8274
26
+ - Precision: 0.8263
27
+ - Recall: 0.8294
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: 5e-05
47
+ - train_batch_size: 16
48
+ - eval_batch_size: 32
49
+ - seed: 42
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: linear
52
+ - lr_scheduler_warmup_steps: 100
53
+ - num_epochs: 3
54
+ - mixed_precision_training: Native AMP
55
+
56
+ ### Training results
57
+
58
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
59
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
60
+ | 1.6161 | 0.11 | 50 | 1.5152 | 0.4668 | 0.2435 | 0.2538 | 0.2617 |
61
+ | 0.6416 | 0.22 | 100 | 0.8046 | 0.7383 | 0.4474 | 0.4688 | 0.4675 |
62
+ | 0.3606 | 0.33 | 150 | 0.4826 | 0.8917 | 0.6667 | 0.6578 | 0.6789 |
63
+ | 0.3063 | 0.44 | 200 | 0.4505 | 0.8923 | 0.6638 | 0.6562 | 0.6752 |
64
+ | 0.2098 | 0.55 | 250 | 0.5294 | 0.8934 | 0.6602 | 0.6443 | 0.6769 |
65
+ | 0.2269 | 0.66 | 300 | 0.3460 | 0.8977 | 0.6702 | 0.6626 | 0.6784 |
66
+ | 0.1874 | 0.76 | 350 | 0.5650 | 0.8715 | 0.6497 | 0.6302 | 0.6719 |
67
+ | 0.2914 | 0.87 | 400 | 0.5704 | 0.8901 | 0.6608 | 0.6433 | 0.6798 |
68
+ | 0.1799 | 0.98 | 450 | 0.6265 | 0.8482 | 0.6321 | 0.7509 | 0.6583 |
69
+ | 0.1625 | 1.09 | 500 | 0.3098 | 0.9144 | 0.7058 | 0.8019 | 0.7080 |
70
+ | 0.0929 | 1.2 | 550 | 0.3927 | 0.9147 | 0.7113 | 0.7939 | 0.7122 |
71
+ | 0.096 | 1.31 | 600 | 0.2251 | 0.9497 | 0.8113 | 0.8129 | 0.8112 |
72
+ | 0.0862 | 1.42 | 650 | 0.1522 | 0.9655 | 0.8264 | 0.8235 | 0.8297 |
73
+ | 0.0943 | 1.53 | 700 | 0.2669 | 0.9480 | 0.8207 | 0.8184 | 0.8240 |
74
+ | 0.0799 | 1.64 | 750 | 0.2508 | 0.9532 | 0.8208 | 0.8155 | 0.8287 |
75
+ | 0.1052 | 1.75 | 800 | 0.1721 | 0.9653 | 0.8300 | 0.8291 | 0.8313 |
76
+ | 0.0867 | 1.86 | 850 | 0.1813 | 0.9658 | 0.8290 | 0.8262 | 0.8326 |
77
+ | 0.0616 | 1.97 | 900 | 0.2174 | 0.9590 | 0.8255 | 0.8216 | 0.8313 |
78
+ | 0.0704 | 2.07 | 950 | 0.1680 | 0.9672 | 0.8305 | 0.8245 | 0.8376 |
79
+ | 0.0436 | 2.18 | 1000 | 0.2169 | 0.9601 | 0.8264 | 0.8243 | 0.8299 |
80
+ | 0.0603 | 2.29 | 1050 | 0.1769 | 0.9634 | 0.8272 | 0.8220 | 0.8338 |
81
+ | 0.0638 | 2.4 | 1100 | 0.1431 | 0.9699 | 0.8300 | 0.8230 | 0.8380 |
82
+ | 0.017 | 2.51 | 1150 | 0.1741 | 0.9658 | 0.8294 | 0.8243 | 0.8358 |
83
+ | 0.0025 | 2.62 | 1200 | 0.2140 | 0.9623 | 0.8270 | 0.8218 | 0.8340 |
84
+ | 0.0427 | 2.73 | 1250 | 0.1680 | 0.9680 | 0.8293 | 0.8227 | 0.8372 |
85
+ | 0.0421 | 2.84 | 1300 | 0.1580 | 0.9691 | 0.8297 | 0.8231 | 0.8375 |
86
+ | 0.0292 | 2.95 | 1350 | 0.1597 | 0.9699 | 0.8315 | 0.8260 | 0.8381 |
87
+
88
+
89
+ ### Framework versions
90
+
91
+ - Transformers 4.39.3
92
+ - Pytorch 2.1.2
93
+ - Datasets 2.18.0
94
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "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": "LABEL_0",
15
+ "1": "LABEL_1",
16
+ "2": "LABEL_2",
17
+ "3": "LABEL_3",
18
+ "4": "LABEL_4",
19
+ "5": "LABEL_5",
20
+ "6": "LABEL_6"
21
+ },
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 3072,
24
+ "label2id": {
25
+ "LABEL_0": 0,
26
+ "LABEL_1": 1,
27
+ "LABEL_2": 2,
28
+ "LABEL_3": 3,
29
+ "LABEL_4": 4,
30
+ "LABEL_5": 5,
31
+ "LABEL_6": 6
32
+ },
33
+ "layer_norm_eps": 1e-05,
34
+ "max_position_embeddings": 514,
35
+ "model_type": "roberta",
36
+ "num_attention_heads": 12,
37
+ "num_hidden_layers": 12,
38
+ "pad_token_id": 1,
39
+ "position_embedding_type": "absolute",
40
+ "problem_type": "single_label_classification",
41
+ "torch_dtype": "float32",
42
+ "transformers_version": "4.39.3",
43
+ "type_vocab_size": 1,
44
+ "use_cache": true,
45
+ "vocab_size": 50265
46
+ }
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:c564c1367fc100ea394ddf282d7ef6e64584c46c1ab06f60e5ea9662e3671054
3
+ size 498628204
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,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": true,
47
+ "cls_token": "<s>",
48
+ "eos_token": "</s>",
49
+ "errors": "replace",
50
+ "mask_token": "<mask>",
51
+ "model_max_length": 512,
52
+ "pad_token": "<pad>",
53
+ "sep_token": "</s>",
54
+ "tokenizer_class": "RobertaTokenizer",
55
+ "trim_offsets": true,
56
+ "unk_token": "<unk>"
57
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ea2dbc54ce6382641896ebb0ade8be662f5ce514c3d87f68305e96327447bad
3
+ size 4920
vocab.json ADDED
The diff for this file is too large to render. See raw diff