First commit
Browse files- .gitignore +1 -0
- README.md +44 -0
- added_tokens.json +1 -0
- all_results.json +14 -0
- config.json +52 -0
- eval_results.json +9 -0
- pytorch_model.bin +3 -0
- runs/Nov22_00-56-03_ws1/1637542597.4744098/events.out.tfevents.1637542597.ws1.28080.1 +3 -0
- runs/Nov22_00-56-03_ws1/events.out.tfevents.1637542597.ws1.28080.0 +3 -0
- runs/Nov22_00-56-03_ws1/events.out.tfevents.1637543230.ws1.28080.2 +3 -0
- special_tokens_map.json +1 -0
- spm.model +3 -0
- tokenizer_config.json +1 -0
- train_results.json +8 -0
- trainer_state.json +145 -0
- training_args.bin +3 -0
.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: twitter-emotion-deberta-v3-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.937
|
23 |
+
---
|
24 |
+
|
25 |
+
# twitter-emotion-deberta-v3-base
|
26 |
+
|
27 |
+
This model is a fine-tuned version of [DeBERTa-v3](https://huggingface.co/microsoft/deberta-v3-base). It achieves the following results on the evaluation set:
|
28 |
+
- Loss: 0.1474
|
29 |
+
- Accuracy: 0.937
|
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]": 128000}
|
all_results.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 6.0,
|
3 |
+
"eval_accuracy": 0.937,
|
4 |
+
"eval_loss": 0.14741940796375275,
|
5 |
+
"eval_runtime": 4.2315,
|
6 |
+
"eval_samples": 2000,
|
7 |
+
"eval_samples_per_second": 472.644,
|
8 |
+
"eval_steps_per_second": 5.908,
|
9 |
+
"train_loss": 0.2273927664756775,
|
10 |
+
"train_runtime": 627.7316,
|
11 |
+
"train_samples": 16000,
|
12 |
+
"train_samples_per_second": 152.932,
|
13 |
+
"train_steps_per_second": 1.912
|
14 |
+
}
|
config.json
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/deberta-v3-base",
|
3 |
+
"architectures": [
|
4 |
+
"DebertaV2ForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"finetuning_task": "emotion",
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.1,
|
10 |
+
"hidden_size": 768,
|
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 |
+
"intermediate_size": 3072,
|
21 |
+
"label2id": {
|
22 |
+
"LABEL_0": 0,
|
23 |
+
"LABEL_1": 1,
|
24 |
+
"LABEL_2": 2,
|
25 |
+
"LABEL_3": 3,
|
26 |
+
"LABEL_4": 4,
|
27 |
+
"LABEL_5": 5
|
28 |
+
},
|
29 |
+
"layer_norm_eps": 1e-07,
|
30 |
+
"max_position_embeddings": 512,
|
31 |
+
"max_relative_positions": -1,
|
32 |
+
"model_type": "deberta-v2",
|
33 |
+
"norm_rel_ebd": "layer_norm",
|
34 |
+
"num_attention_heads": 12,
|
35 |
+
"num_hidden_layers": 12,
|
36 |
+
"pad_token_id": 0,
|
37 |
+
"pooler_dropout": 0,
|
38 |
+
"pooler_hidden_act": "gelu",
|
39 |
+
"pooler_hidden_size": 768,
|
40 |
+
"pos_att_type": [
|
41 |
+
"p2c",
|
42 |
+
"c2p"
|
43 |
+
],
|
44 |
+
"position_biased_input": false,
|
45 |
+
"position_buckets": 256,
|
46 |
+
"relative_attention": true,
|
47 |
+
"share_att_key": true,
|
48 |
+
"torch_dtype": "float32",
|
49 |
+
"transformers_version": "4.13.0.dev0",
|
50 |
+
"type_vocab_size": 0,
|
51 |
+
"vocab_size": 128100
|
52 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 6.0,
|
3 |
+
"eval_accuracy": 0.937,
|
4 |
+
"eval_loss": 0.14741940796375275,
|
5 |
+
"eval_runtime": 4.2315,
|
6 |
+
"eval_samples": 2000,
|
7 |
+
"eval_samples_per_second": 472.644,
|
8 |
+
"eval_steps_per_second": 5.908
|
9 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5af18ebb6513b6f503acddbff051b2a5d6a7a7629dc7e35242d7336effd1ac08
|
3 |
+
size 737794027
|
runs/Nov22_00-56-03_ws1/1637542597.4744098/events.out.tfevents.1637542597.ws1.28080.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bbe155866bb97f3c8a128026677ea6e8c94c4341e27688f1c11fe2f44f98cd53
|
3 |
+
size 4599
|
runs/Nov22_00-56-03_ws1/events.out.tfevents.1637542597.ws1.28080.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ad846f1700ed1279bb43cc9e52dadb8cf43f36767b98a328736f821ca152d980
|
3 |
+
size 8209
|
runs/Nov22_00-56-03_ws1/events.out.tfevents.1637543230.ws1.28080.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d13694ae44ba581e7f5943095124ff255b556533eb1960c0d76548c979369d8d
|
3 |
+
size 363
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"bos_token": "[CLS]", "eos_token": "[SEP]", "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
|
spm.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c679fbf93643d19aab7ee10c0b99e460bdbc02fedf34b92b05af343b4af586fd
|
3 |
+
size 2464616
|
tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"do_lower_case": false, "bos_token": "[CLS]", "eos_token": "[SEP]", "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "split_by_punct": false, "sp_model_kwargs": {}, "vocab_type": "spm", "special_tokens_map_file": null, "tokenizer_file": null, "name_or_path": "microsoft/deberta-v3-base", "tokenizer_class": "DebertaV2Tokenizer"}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 6.0,
|
3 |
+
"train_loss": 0.2273927664756775,
|
4 |
+
"train_runtime": 627.7316,
|
5 |
+
"train_samples": 16000,
|
6 |
+
"train_samples_per_second": 152.932,
|
7 |
+
"train_steps_per_second": 1.912
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.14741940796375275,
|
3 |
+
"best_model_checkpoint": "./trained_models/twitter-emotion-deberta-v3-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.8405,
|
13 |
+
"eval_loss": 0.5359936952590942,
|
14 |
+
"eval_runtime": 4.1757,
|
15 |
+
"eval_samples_per_second": 478.965,
|
16 |
+
"eval_steps_per_second": 5.987,
|
17 |
+
"step": 100
|
18 |
+
},
|
19 |
+
{
|
20 |
+
"epoch": 1.0,
|
21 |
+
"eval_accuracy": 0.915,
|
22 |
+
"eval_loss": 0.28240880370140076,
|
23 |
+
"eval_runtime": 4.2049,
|
24 |
+
"eval_samples_per_second": 475.638,
|
25 |
+
"eval_steps_per_second": 5.945,
|
26 |
+
"step": 200
|
27 |
+
},
|
28 |
+
{
|
29 |
+
"epoch": 1.5,
|
30 |
+
"eval_accuracy": 0.93,
|
31 |
+
"eval_loss": 0.19999809563159943,
|
32 |
+
"eval_runtime": 4.2283,
|
33 |
+
"eval_samples_per_second": 473.002,
|
34 |
+
"eval_steps_per_second": 5.913,
|
35 |
+
"step": 300
|
36 |
+
},
|
37 |
+
{
|
38 |
+
"epoch": 2.0,
|
39 |
+
"eval_accuracy": 0.936,
|
40 |
+
"eval_loss": 0.13397051393985748,
|
41 |
+
"eval_runtime": 4.2488,
|
42 |
+
"eval_samples_per_second": 470.716,
|
43 |
+
"eval_steps_per_second": 5.884,
|
44 |
+
"step": 400
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 2.5,
|
48 |
+
"learning_rate": 2.916666666666667e-05,
|
49 |
+
"loss": 0.4142,
|
50 |
+
"step": 500
|
51 |
+
},
|
52 |
+
{
|
53 |
+
"epoch": 2.5,
|
54 |
+
"eval_accuracy": 0.937,
|
55 |
+
"eval_loss": 0.14741940796375275,
|
56 |
+
"eval_runtime": 4.2278,
|
57 |
+
"eval_samples_per_second": 473.054,
|
58 |
+
"eval_steps_per_second": 5.913,
|
59 |
+
"step": 500
|
60 |
+
},
|
61 |
+
{
|
62 |
+
"epoch": 3.0,
|
63 |
+
"eval_accuracy": 0.936,
|
64 |
+
"eval_loss": 0.15366272628307343,
|
65 |
+
"eval_runtime": 4.2318,
|
66 |
+
"eval_samples_per_second": 472.612,
|
67 |
+
"eval_steps_per_second": 5.908,
|
68 |
+
"step": 600
|
69 |
+
},
|
70 |
+
{
|
71 |
+
"epoch": 3.5,
|
72 |
+
"eval_accuracy": 0.939,
|
73 |
+
"eval_loss": 0.13712549209594727,
|
74 |
+
"eval_runtime": 4.2434,
|
75 |
+
"eval_samples_per_second": 471.315,
|
76 |
+
"eval_steps_per_second": 5.891,
|
77 |
+
"step": 700
|
78 |
+
},
|
79 |
+
{
|
80 |
+
"epoch": 4.0,
|
81 |
+
"eval_accuracy": 0.941,
|
82 |
+
"eval_loss": 0.13440823554992676,
|
83 |
+
"eval_runtime": 4.2389,
|
84 |
+
"eval_samples_per_second": 471.816,
|
85 |
+
"eval_steps_per_second": 5.898,
|
86 |
+
"step": 800
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"epoch": 4.5,
|
90 |
+
"eval_accuracy": 0.939,
|
91 |
+
"eval_loss": 0.13154806196689606,
|
92 |
+
"eval_runtime": 4.244,
|
93 |
+
"eval_samples_per_second": 471.257,
|
94 |
+
"eval_steps_per_second": 5.891,
|
95 |
+
"step": 900
|
96 |
+
},
|
97 |
+
{
|
98 |
+
"epoch": 5.0,
|
99 |
+
"learning_rate": 8.333333333333334e-06,
|
100 |
+
"loss": 0.1013,
|
101 |
+
"step": 1000
|
102 |
+
},
|
103 |
+
{
|
104 |
+
"epoch": 5.0,
|
105 |
+
"eval_accuracy": 0.936,
|
106 |
+
"eval_loss": 0.15716207027435303,
|
107 |
+
"eval_runtime": 4.2453,
|
108 |
+
"eval_samples_per_second": 471.109,
|
109 |
+
"eval_steps_per_second": 5.889,
|
110 |
+
"step": 1000
|
111 |
+
},
|
112 |
+
{
|
113 |
+
"epoch": 5.5,
|
114 |
+
"eval_accuracy": 0.938,
|
115 |
+
"eval_loss": 0.15671509504318237,
|
116 |
+
"eval_runtime": 4.2362,
|
117 |
+
"eval_samples_per_second": 472.124,
|
118 |
+
"eval_steps_per_second": 5.902,
|
119 |
+
"step": 1100
|
120 |
+
},
|
121 |
+
{
|
122 |
+
"epoch": 6.0,
|
123 |
+
"eval_accuracy": 0.939,
|
124 |
+
"eval_loss": 0.15347838401794434,
|
125 |
+
"eval_runtime": 4.2428,
|
126 |
+
"eval_samples_per_second": 471.385,
|
127 |
+
"eval_steps_per_second": 5.892,
|
128 |
+
"step": 1200
|
129 |
+
},
|
130 |
+
{
|
131 |
+
"epoch": 6.0,
|
132 |
+
"step": 1200,
|
133 |
+
"total_flos": 6907037114880000.0,
|
134 |
+
"train_loss": 0.2273927664756775,
|
135 |
+
"train_runtime": 627.7316,
|
136 |
+
"train_samples_per_second": 152.932,
|
137 |
+
"train_steps_per_second": 1.912
|
138 |
+
}
|
139 |
+
],
|
140 |
+
"max_steps": 1200,
|
141 |
+
"num_train_epochs": 6,
|
142 |
+
"total_flos": 6907037114880000.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:c03739130cd1582bcaf3563fccebb1cd25b3deb859e7b8de441010915b02dcdb
|
3 |
+
size 2863
|