SWiedemann commited on
Commit
df5d4bd
1 Parent(s): 3922680

Training completed!

Browse files
README.md ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: distilbert-base-uncased
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - emotion
8
+ metrics:
9
+ - accuracy
10
+ - f1
11
+ model-index:
12
+ - name: distilbert-base-uncased-finetuned-emotion
13
+ results:
14
+ - task:
15
+ name: Text Classification
16
+ type: text-classification
17
+ dataset:
18
+ name: emotion
19
+ type: emotion
20
+ config: split
21
+ split: train[:2000]
22
+ args: split
23
+ metrics:
24
+ - name: Accuracy
25
+ type: accuracy
26
+ value: 0.89
27
+ - name: F1
28
+ type: f1
29
+ value: 0.8909727258350819
30
+ ---
31
+
32
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
33
+ should probably proofread and complete it, then remove this comment. -->
34
+
35
+ # distilbert-base-uncased-finetuned-emotion
36
+
37
+ This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the emotion dataset.
38
+ It achieves the following results on the evaluation set:
39
+ - Loss: 0.6248
40
+ - Accuracy: 0.89
41
+ - Balanced accuracy: 0.8764
42
+ - F1: 0.8910
43
+
44
+ ## Model description
45
+
46
+ More information needed
47
+
48
+ ## Intended uses & limitations
49
+
50
+ More information needed
51
+
52
+ ## Training and evaluation data
53
+
54
+ More information needed
55
+
56
+ ## Training procedure
57
+
58
+ ### Training hyperparameters
59
+
60
+ The following hyperparameters were used during training:
61
+ - learning_rate: 2e-05
62
+ - train_batch_size: 64
63
+ - eval_batch_size: 64
64
+ - seed: 42
65
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
66
+ - lr_scheduler_type: linear
67
+ - num_epochs: 20
68
+
69
+ ### Training results
70
+
71
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Balanced accuracy | F1 |
72
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:-----------------:|:------:|
73
+ | 0.0269 | 1.0 | 25 | 0.4880 | 0.905 | 0.8890 | 0.9058 |
74
+ | 0.0204 | 2.0 | 50 | 0.5177 | 0.89 | 0.8934 | 0.8896 |
75
+ | 0.009 | 3.0 | 75 | 0.4983 | 0.89 | 0.8787 | 0.8911 |
76
+ | 0.0089 | 4.0 | 100 | 0.5681 | 0.895 | 0.8724 | 0.8947 |
77
+ | 0.0048 | 5.0 | 125 | 0.5800 | 0.88 | 0.8662 | 0.8819 |
78
+ | 0.0023 | 6.0 | 150 | 0.5706 | 0.89 | 0.8959 | 0.8917 |
79
+ | 0.0035 | 7.0 | 175 | 0.6086 | 0.895 | 0.8760 | 0.8955 |
80
+ | 0.006 | 8.0 | 200 | 0.6522 | 0.88 | 0.9011 | 0.8811 |
81
+ | 0.0017 | 9.0 | 225 | 0.5806 | 0.89 | 0.8715 | 0.8907 |
82
+ | 0.0014 | 10.0 | 250 | 0.5809 | 0.885 | 0.9001 | 0.8868 |
83
+ | 0.0011 | 11.0 | 275 | 0.5942 | 0.885 | 0.8729 | 0.8864 |
84
+ | 0.001 | 12.0 | 300 | 0.5997 | 0.895 | 0.8826 | 0.8963 |
85
+ | 0.0009 | 13.0 | 325 | 0.6006 | 0.89 | 0.8791 | 0.8912 |
86
+ | 0.001 | 14.0 | 350 | 0.6135 | 0.885 | 0.9013 | 0.8857 |
87
+ | 0.0009 | 15.0 | 375 | 0.6199 | 0.885 | 0.8740 | 0.8858 |
88
+ | 0.0008 | 16.0 | 400 | 0.6257 | 0.885 | 0.8740 | 0.8858 |
89
+ | 0.0007 | 17.0 | 425 | 0.6254 | 0.885 | 0.8740 | 0.8858 |
90
+ | 0.0007 | 18.0 | 450 | 0.6273 | 0.885 | 0.8740 | 0.8858 |
91
+ | 0.0007 | 19.0 | 475 | 0.6248 | 0.885 | 0.8740 | 0.8858 |
92
+ | 0.0007 | 20.0 | 500 | 0.6248 | 0.89 | 0.8764 | 0.8910 |
93
+
94
+
95
+ ### Framework versions
96
+
97
+ - Transformers 4.38.1
98
+ - Pytorch 2.1.0+cu121
99
+ - Datasets 2.18.0
100
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "distilbert-base-uncased",
3
+ "activation": "gelu",
4
+ "architectures": [
5
+ "DistilBertForSequenceClassification"
6
+ ],
7
+ "attention_dropout": 0.1,
8
+ "dim": 768,
9
+ "dropout": 0.1,
10
+ "hidden_dim": 3072,
11
+ "id2label": {
12
+ "0": "LABEL_0",
13
+ "1": "LABEL_1",
14
+ "2": "LABEL_2",
15
+ "3": "LABEL_3",
16
+ "4": "LABEL_4",
17
+ "5": "LABEL_5"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "label2id": {
21
+ "LABEL_0": 0,
22
+ "LABEL_1": 1,
23
+ "LABEL_2": 2,
24
+ "LABEL_3": 3,
25
+ "LABEL_4": 4,
26
+ "LABEL_5": 5
27
+ },
28
+ "max_position_embeddings": 512,
29
+ "model_type": "distilbert",
30
+ "n_heads": 12,
31
+ "n_layers": 6,
32
+ "pad_token_id": 0,
33
+ "problem_type": "single_label_classification",
34
+ "qa_dropout": 0.1,
35
+ "seq_classif_dropout": 0.2,
36
+ "sinusoidal_pos_embds": false,
37
+ "tie_weights_": true,
38
+ "torch_dtype": "float32",
39
+ "transformers_version": "4.38.1",
40
+ "vocab_size": 30522
41
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef77f2d3950eb47134ee707824f5da626219e6dacba73e7a43088b72be9177df
3
+ size 267844872
runs/Mar02_16-13-06_5078234d80ac/events.out.tfevents.1709395996.5078234d80ac.586.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b37e68b12c214a558a9c18a48bfdafa3839d32f0094cb4361c5c545ff549a48
3
+ size 17899
runs/Mar02_16-27-26_5078234d80ac/events.out.tfevents.1709396850.5078234d80ac.586.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c4b0c454a6c64240652c24d93dd470595cebb8b3a1031f9970915531f77b1c8
3
+ size 17990
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "DistilBertTokenizer",
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:ce92d0c55ca33c12b745162fa7c88095d0db7652193807bed88c9ea65d773332
3
+ size 4920
vocab.txt ADDED
The diff for this file is too large to render. See raw diff