Emanuel commited on
Commit
deee68d
1 Parent(s): d599b92

First commit

Browse files
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ checkpoint-*/
README.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - generated_from_trainer
5
+ datasets:
6
+ - emotion
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: bertweet-emotion-base
11
+ results:
12
+ - task:
13
+ name: Text Classification
14
+ type: text-classification
15
+ dataset:
16
+ name: emotion
17
+ type: emotion
18
+ args: default
19
+ metrics:
20
+ - name: Accuracy
21
+ type: accuracy
22
+ value: 0.945
23
+ ---
24
+
25
+ # bertweet-emotion-base
26
+
27
+ This model is a fine-tuned version of [Bertweet](https://huggingface.co/vinai/bertweet-base). It achieves the following results on the evaluation set:
28
+ - Loss: 0.1172
29
+ - Accuracy: 0.945
30
+
31
+ ### Training hyperparameters
32
+
33
+ The following hyperparameters were used during training:
34
+ - learning_rate: 5e-05
35
+ - train_batch_size: 80
36
+ - eval_batch_size: 80
37
+ - lr_scheduler_type: linear
38
+ - num_epochs: 6.0
39
+
40
+ ### Framework versions
41
+ - Transformers 4.12.5
42
+ - Pytorch 1.10.0+cu113
43
+ - Datasets 1.15.1
44
+ - Tokenizers 0.10.3
added_tokens.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"<mask>": 64000}
all_results.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 6.0,
3
+ "eval_accuracy": 0.945,
4
+ "eval_loss": 0.11723319441080093,
5
+ "eval_runtime": 3.1465,
6
+ "eval_samples": 2000,
7
+ "eval_samples_per_second": 635.633,
8
+ "eval_steps_per_second": 7.945,
9
+ "train_loss": 0.20971180438995363,
10
+ "train_runtime": 446.3991,
11
+ "train_samples": 16000,
12
+ "train_samples_per_second": 215.054,
13
+ "train_steps_per_second": 2.688
14
+ }
bpe.codes ADDED
The diff for this file is too large to render. See raw diff
 
config.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "vinai/bertweet-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
+ "finetuning_task": "emotion",
11
+ "gradient_checkpointing": false,
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 768,
15
+ "id2label": {
16
+ "0": "LABEL_0",
17
+ "1": "LABEL_1",
18
+ "2": "LABEL_2",
19
+ "3": "LABEL_3",
20
+ "4": "LABEL_4",
21
+ "5": "LABEL_5"
22
+ },
23
+ "initializer_range": 0.02,
24
+ "intermediate_size": 3072,
25
+ "label2id": {
26
+ "LABEL_0": 0,
27
+ "LABEL_1": 1,
28
+ "LABEL_2": 2,
29
+ "LABEL_3": 3,
30
+ "LABEL_4": 4,
31
+ "LABEL_5": 5
32
+ },
33
+ "layer_norm_eps": 1e-05,
34
+ "max_position_embeddings": 130,
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
+ "tokenizer_class": "BertweetTokenizer",
42
+ "torch_dtype": "float32",
43
+ "transformers_version": "4.13.0.dev0",
44
+ "type_vocab_size": 1,
45
+ "use_cache": true,
46
+ "vocab_size": 64001
47
+ }
eval_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 6.0,
3
+ "eval_accuracy": 0.945,
4
+ "eval_loss": 0.11723319441080093,
5
+ "eval_runtime": 3.1465,
6
+ "eval_samples": 2000,
7
+ "eval_samples_per_second": 635.633,
8
+ "eval_steps_per_second": 7.945
9
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1a9f9808030449b487677ad63ea7c93308570a0688e49dd98f3f42865b59f6e
3
+ size 539700653
runs/Nov22_00-35-35_ws1/1637541364.5440407/events.out.tfevents.1637541364.ws1.22665.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9dacb03458b247d1d257314be14686dd3695556501e78ecd4812c069a5db068
3
+ size 4569
runs/Nov22_00-35-35_ws1/events.out.tfevents.1637541364.ws1.22665.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1579fd450f150fba6e68a1baec2e7070bc458175ed32ed425cc3510bdf55c571
3
+ size 4578
runs/Nov22_00-35-35_ws1/events.out.tfevents.1637541443.ws1.22665.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d83640b1561d6050be80c64525640df2d5e118e194672d2660ab980494166d7f
3
+ size 363
runs/Nov22_00-38-37_ws1/1637541547.5436304/events.out.tfevents.1637541547.ws1.23351.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:215b3ecb1ff1ce7cce271ddb0492f3894524d1a21ed61c2b462ca230a4d58998
3
+ size 4569
runs/Nov22_00-38-37_ws1/events.out.tfevents.1637541547.ws1.23351.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c148245108c589449e54382d20fae19851de526fe480f8040dd55a80ba321256
3
+ size 8122
runs/Nov22_00-38-37_ws1/events.out.tfevents.1637541999.ws1.23351.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e64c144cf524a7c169bfadfc140a7e7797febb75e98428e3dfda2b3c9c32ee1
3
+ size 363
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "</s>", "pad_token": "<pad>", "cls_token": "<s>", "mask_token": "<mask>"}
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"normalization": false, "bos_token": "<s>", "eos_token": "</s>", "sep_token": "</s>", "cls_token": "<s>", "unk_token": "<unk>", "pad_token": "<pad>", "mask_token": "<mask>", "do_lower_case": false, "model_max_length": 128, "special_tokens_map_file": null, "tokenizer_file": null, "name_or_path": "vinai/bertweet-base", "tokenizer_class": "BertweetTokenizer"}
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 6.0,
3
+ "train_loss": 0.20971180438995363,
4
+ "train_runtime": 446.3991,
5
+ "train_samples": 16000,
6
+ "train_samples_per_second": 215.054,
7
+ "train_steps_per_second": 2.688
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.11723319441080093,
3
+ "best_model_checkpoint": "./trained_models/bertweet-emotion-base/checkpoint-500",
4
+ "epoch": 6.0,
5
+ "global_step": 1200,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 0.5,
12
+ "eval_accuracy": 0.849,
13
+ "eval_loss": 0.4884544014930725,
14
+ "eval_runtime": 3.0562,
15
+ "eval_samples_per_second": 654.404,
16
+ "eval_steps_per_second": 8.18,
17
+ "step": 100
18
+ },
19
+ {
20
+ "epoch": 1.0,
21
+ "eval_accuracy": 0.9195,
22
+ "eval_loss": 0.2541632056236267,
23
+ "eval_runtime": 3.0641,
24
+ "eval_samples_per_second": 652.729,
25
+ "eval_steps_per_second": 8.159,
26
+ "step": 200
27
+ },
28
+ {
29
+ "epoch": 1.5,
30
+ "eval_accuracy": 0.9305,
31
+ "eval_loss": 0.17924615740776062,
32
+ "eval_runtime": 3.0615,
33
+ "eval_samples_per_second": 653.282,
34
+ "eval_steps_per_second": 8.166,
35
+ "step": 300
36
+ },
37
+ {
38
+ "epoch": 2.0,
39
+ "eval_accuracy": 0.94,
40
+ "eval_loss": 0.12382319569587708,
41
+ "eval_runtime": 3.0806,
42
+ "eval_samples_per_second": 649.223,
43
+ "eval_steps_per_second": 8.115,
44
+ "step": 400
45
+ },
46
+ {
47
+ "epoch": 2.5,
48
+ "learning_rate": 2.916666666666667e-05,
49
+ "loss": 0.3822,
50
+ "step": 500
51
+ },
52
+ {
53
+ "epoch": 2.5,
54
+ "eval_accuracy": 0.945,
55
+ "eval_loss": 0.11723319441080093,
56
+ "eval_runtime": 3.0736,
57
+ "eval_samples_per_second": 650.705,
58
+ "eval_steps_per_second": 8.134,
59
+ "step": 500
60
+ },
61
+ {
62
+ "epoch": 3.0,
63
+ "eval_accuracy": 0.9455,
64
+ "eval_loss": 0.11559800058603287,
65
+ "eval_runtime": 3.0729,
66
+ "eval_samples_per_second": 650.855,
67
+ "eval_steps_per_second": 8.136,
68
+ "step": 600
69
+ },
70
+ {
71
+ "epoch": 3.5,
72
+ "eval_accuracy": 0.942,
73
+ "eval_loss": 0.11905854940414429,
74
+ "eval_runtime": 3.0704,
75
+ "eval_samples_per_second": 651.375,
76
+ "eval_steps_per_second": 8.142,
77
+ "step": 700
78
+ },
79
+ {
80
+ "epoch": 4.0,
81
+ "eval_accuracy": 0.9485,
82
+ "eval_loss": 0.1258220076560974,
83
+ "eval_runtime": 3.081,
84
+ "eval_samples_per_second": 649.144,
85
+ "eval_steps_per_second": 8.114,
86
+ "step": 800
87
+ },
88
+ {
89
+ "epoch": 4.5,
90
+ "eval_accuracy": 0.9375,
91
+ "eval_loss": 0.14012224972248077,
92
+ "eval_runtime": 3.1002,
93
+ "eval_samples_per_second": 645.114,
94
+ "eval_steps_per_second": 8.064,
95
+ "step": 900
96
+ },
97
+ {
98
+ "epoch": 5.0,
99
+ "learning_rate": 8.333333333333334e-06,
100
+ "loss": 0.0932,
101
+ "step": 1000
102
+ },
103
+ {
104
+ "epoch": 5.0,
105
+ "eval_accuracy": 0.94,
106
+ "eval_loss": 0.13431893289089203,
107
+ "eval_runtime": 3.0988,
108
+ "eval_samples_per_second": 645.402,
109
+ "eval_steps_per_second": 8.068,
110
+ "step": 1000
111
+ },
112
+ {
113
+ "epoch": 5.5,
114
+ "eval_accuracy": 0.944,
115
+ "eval_loss": 0.14152021706104279,
116
+ "eval_runtime": 3.0916,
117
+ "eval_samples_per_second": 646.924,
118
+ "eval_steps_per_second": 8.087,
119
+ "step": 1100
120
+ },
121
+ {
122
+ "epoch": 6.0,
123
+ "eval_accuracy": 0.9435,
124
+ "eval_loss": 0.13345251977443695,
125
+ "eval_runtime": 3.0757,
126
+ "eval_samples_per_second": 650.25,
127
+ "eval_steps_per_second": 8.128,
128
+ "step": 1200
129
+ },
130
+ {
131
+ "epoch": 6.0,
132
+ "step": 1200,
133
+ "total_flos": 6906913251840000.0,
134
+ "train_loss": 0.20971180438995363,
135
+ "train_runtime": 446.3991,
136
+ "train_samples_per_second": 215.054,
137
+ "train_steps_per_second": 2.688
138
+ }
139
+ ],
140
+ "max_steps": 1200,
141
+ "num_train_epochs": 6,
142
+ "total_flos": 6906913251840000.0,
143
+ "trial_name": null,
144
+ "trial_params": null
145
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e104e84315b5fce912e49f666d7d75b959181aefaa22fd9a1c76392927e02dc
3
+ size 2863
vocab.txt ADDED
The diff for this file is too large to render. See raw diff