Lebarnon commited on
Commit
dc7ab35
1 Parent(s): 367de56

lebarnon/RoBERTa-CompareTransformers-Imdb

Browse files
Files changed (4) hide show
  1. README.md +99 -0
  2. config.json +27 -0
  3. pytorch_model.bin +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: roberta-base
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - imdb
8
+ metrics:
9
+ - accuracy
10
+ - precision
11
+ - recall
12
+ - f1
13
+ model-index:
14
+ - name: results
15
+ results:
16
+ - task:
17
+ name: Text Classification
18
+ type: text-classification
19
+ dataset:
20
+ name: imdb
21
+ type: imdb
22
+ config: plain_text
23
+ split: train
24
+ args: plain_text
25
+ metrics:
26
+ - name: Accuracy
27
+ type: accuracy
28
+ value: 0.9286666512489319
29
+ - name: Precision
30
+ type: precision
31
+ value: 0.9286666512489319
32
+ - name: Recall
33
+ type: recall
34
+ value: 0.9286666512489319
35
+ - name: F1
36
+ type: f1
37
+ value: 0.9286666512489319
38
+ ---
39
+
40
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
41
+ should probably proofread and complete it, then remove this comment. -->
42
+
43
+ # results
44
+
45
+ This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on the imdb dataset.
46
+ It achieves the following results on the evaluation set:
47
+ - Loss: 0.2691
48
+ - Accuracy: 0.9287
49
+ - Precision: 0.9287
50
+ - Recall: 0.9287
51
+ - F1: 0.9287
52
+ - Auroc: 0.9772
53
+
54
+ ## Model description
55
+
56
+ More information needed
57
+
58
+ ## Intended uses & limitations
59
+
60
+ More information needed
61
+
62
+ ## Training and evaluation data
63
+
64
+ More information needed
65
+
66
+ ## Training procedure
67
+
68
+ ### Training hyperparameters
69
+
70
+ The following hyperparameters were used during training:
71
+ - learning_rate: 5e-05
72
+ - train_batch_size: 4
73
+ - eval_batch_size: 4
74
+ - seed: 42
75
+ - distributed_type: multi-GPU
76
+ - gradient_accumulation_steps: 4
77
+ - total_train_batch_size: 16
78
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
79
+ - lr_scheduler_type: linear
80
+ - num_epochs: 3
81
+
82
+ ### Training results
83
+
84
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 | Auroc |
85
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|:------:|
86
+ | 0.1764 | 0.46 | 500 | 0.2698 | 0.9044 | 0.9044 | 0.9044 | 0.9044 | 0.9738 |
87
+ | 0.3348 | 0.91 | 1000 | 0.2755 | 0.9117 | 0.9117 | 0.9117 | 0.9117 | 0.9686 |
88
+ | 0.1478 | 1.37 | 1500 | 0.3275 | 0.9109 | 0.9109 | 0.9109 | 0.9109 | 0.9771 |
89
+ | 0.2051 | 1.83 | 2000 | 0.2575 | 0.9309 | 0.9309 | 0.9309 | 0.9309 | 0.9793 |
90
+ | 0.1435 | 2.29 | 2500 | 0.3140 | 0.9245 | 0.9245 | 0.9245 | 0.9245 | 0.9783 |
91
+ | 0.1425 | 2.74 | 3000 | 0.2691 | 0.9287 | 0.9287 | 0.9287 | 0.9287 | 0.9772 |
92
+
93
+
94
+ ### Framework versions
95
+
96
+ - Transformers 4.34.1
97
+ - Pytorch 2.1.0+cu118
98
+ - Datasets 2.14.6
99
+ - Tokenizers 0.14.1
config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "initializer_range": 0.02,
14
+ "intermediate_size": 3072,
15
+ "layer_norm_eps": 1e-05,
16
+ "max_position_embeddings": 514,
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
+ "torch_dtype": "float32",
23
+ "transformers_version": "4.34.1",
24
+ "type_vocab_size": 1,
25
+ "use_cache": true,
26
+ "vocab_size": 50265
27
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a30eead246e37325913c3d01e96dd15339235fc0c85f7e6910f386fa200f4002
3
+ size 498655278
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d505b3cd99258aee838b457237f0f555db3790e073ca0f3a0f583b3afcd438ef
3
+ size 5944