PavanNeerudu commited on
Commit
d6174f8
·
1 Parent(s): 18c6f83

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +60 -0
README.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ datasets:
6
+ - glue
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: gpt2-finetuned-sst2
11
+ results:
12
+ - task:
13
+ name: Text Classification
14
+ type: text-classification
15
+ dataset:
16
+ name: GLUE SST-2
17
+ type: glue
18
+ args: SST-2
19
+ metrics:
20
+ - name: Accuracy
21
+ type: accuracy
22
+ value: 0.92775
23
+ ---
24
+
25
+
26
+ # gpt2-finetuned-sst2
27
+
28
+ <!-- Provide a quick summary of what the model is/does. -->
29
+
30
+ This model is GPT-2 fine-tuned on GLUE SST-2 dataset. It acheives the following results on the validation set
31
+ - Accuracy: 0.92775
32
+
33
+
34
+ ## Model Details
35
+ GPT-2 is a transformers model pretrained on a very large corpus of English data in a self-supervised fashion.
36
+ This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts.
37
+ More precisely, it was trained to guess the next word in sentences. However, it acheives very good results on Text Classification tasks.
38
+
39
+ ## Training procedure
40
+
41
+
42
+ ### Training hyperparameters
43
+
44
+ The following hyperparameters were used during training:
45
+ - learning_rate: 2e-5
46
+ - train_batch_size: 32
47
+ - eval_batch_size: 32
48
+ - seed: 123
49
+ - optimizer: epsilon=1e-08
50
+ - num_epochs: 4
51
+ -
52
+ ### Training results
53
+
54
+
55
+ |Epoch | Training Loss | Training Accuracy | Validation Loss | Validation Accuracy |
56
+ |:----:|:-------------:|:-----------------:|:---------------:|:-------------------:|
57
+ | 1 | 0.28664 | 0.87905 | 0.25106 | 0.91514 |
58
+ | 2 | 0.17448 | 0.93327 | 0.27479 | 0.91399 |
59
+ | 3 | 0.13553 | 0.95191 | 0.30146 | 0.90826 |
60
+ | 4 | 0.11361 | 0.96059 | 0.29815 | **0.92775** |