StephArn commited on
Commit
3af2f66
1 Parent(s): 147ce3a

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - autotrain
5
+ - text-classification
6
+ widget:
7
+ - text: "I love AutoTrain"
8
+ datasets:
9
+ - StressTweetRobertaSentiment/autotrain-data
10
+ ---
11
+
12
+ # Model Trained Using AutoTrain
13
+
14
+ - Problem type: Text Classification
15
+
16
+ ## Validation Metrics
17
+ loss: 0.39284127950668335
18
+
19
+ f1: 0.91
20
+
21
+ precision: 0.8921568627450981
22
+
23
+ recall: 0.9285714285714286
24
+
25
+ auc: 0.957133746355685
26
+
27
+ accuracy: 0.8831168831168831
checkpoint-180/config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "cardiffnlp/twitter-roberta-base-sentiment-latest",
3
+ "_num_labels": 2,
4
+ "architectures": [
5
+ "RobertaForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "bos_token_id": 0,
9
+ "classifier_dropout": null,
10
+ "eos_token_id": 2,
11
+ "gradient_checkpointing": false,
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 768,
15
+ "id2label": {
16
+ "0": "0",
17
+ "1": "1"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "label2id": {
22
+ "0": 0,
23
+ "1": 1
24
+ },
25
+ "layer_norm_eps": 1e-05,
26
+ "max_position_embeddings": 514,
27
+ "model_type": "roberta",
28
+ "num_attention_heads": 12,
29
+ "num_hidden_layers": 12,
30
+ "pad_token_id": 1,
31
+ "position_embedding_type": "absolute",
32
+ "problem_type": "single_label_classification",
33
+ "torch_dtype": "float32",
34
+ "transformers_version": "4.40.1",
35
+ "type_vocab_size": 1,
36
+ "use_cache": true,
37
+ "vocab_size": 50265
38
+ }
checkpoint-180/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63e2f7803f7503f5d008f18b1d11110d6b36bde197436e148b8c635af4f7fd2b
3
+ size 498612824
checkpoint-180/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75bea50d6381d329a09e7e6481c7ada49f7dee4009dd48e07eaa128cf77a699e
3
+ size 997339898
checkpoint-180/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9535ec34e520333b216f034068c8483adc8395a879b5e9a45a611d5c29fd2c67
3
+ size 13990
checkpoint-180/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab3b457bec0e1d4bdf5758963678080ccc7655f637d391ff05747169b97670b8
3
+ size 1064
checkpoint-180/trainer_state.json ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.39284127950668335,
3
+ "best_model_checkpoint": "StressTweetRobertaSentiment/checkpoint-180",
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 180,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.03888888888888889,
13
+ "grad_norm": 4.96373987197876,
14
+ "learning_rate": 6.481481481481481e-06,
15
+ "loss": 0.6582,
16
+ "step": 7
17
+ },
18
+ {
19
+ "epoch": 0.07777777777777778,
20
+ "grad_norm": 7.41157341003418,
21
+ "learning_rate": 1.2962962962962962e-05,
22
+ "loss": 0.5382,
23
+ "step": 14
24
+ },
25
+ {
26
+ "epoch": 0.11666666666666667,
27
+ "grad_norm": 19.304912567138672,
28
+ "learning_rate": 1.9444444444444445e-05,
29
+ "loss": 0.4156,
30
+ "step": 21
31
+ },
32
+ {
33
+ "epoch": 0.15555555555555556,
34
+ "grad_norm": 16.010875701904297,
35
+ "learning_rate": 2.5925925925925925e-05,
36
+ "loss": 0.4644,
37
+ "step": 28
38
+ },
39
+ {
40
+ "epoch": 0.19444444444444445,
41
+ "grad_norm": 40.6972770690918,
42
+ "learning_rate": 3.240740740740741e-05,
43
+ "loss": 0.4544,
44
+ "step": 35
45
+ },
46
+ {
47
+ "epoch": 0.23333333333333334,
48
+ "grad_norm": 10.888315200805664,
49
+ "learning_rate": 3.888888888888889e-05,
50
+ "loss": 0.3438,
51
+ "step": 42
52
+ },
53
+ {
54
+ "epoch": 0.2722222222222222,
55
+ "grad_norm": 36.86009979248047,
56
+ "learning_rate": 4.5370370370370374e-05,
57
+ "loss": 0.362,
58
+ "step": 49
59
+ },
60
+ {
61
+ "epoch": 0.3111111111111111,
62
+ "grad_norm": 36.744590759277344,
63
+ "learning_rate": 4.9794238683127575e-05,
64
+ "loss": 0.5263,
65
+ "step": 56
66
+ },
67
+ {
68
+ "epoch": 0.35,
69
+ "grad_norm": 12.836268424987793,
70
+ "learning_rate": 4.9074074074074075e-05,
71
+ "loss": 0.3602,
72
+ "step": 63
73
+ },
74
+ {
75
+ "epoch": 0.3888888888888889,
76
+ "grad_norm": 7.51406717300415,
77
+ "learning_rate": 4.835390946502058e-05,
78
+ "loss": 0.6603,
79
+ "step": 70
80
+ },
81
+ {
82
+ "epoch": 0.42777777777777776,
83
+ "grad_norm": 9.410354614257812,
84
+ "learning_rate": 4.763374485596708e-05,
85
+ "loss": 0.6094,
86
+ "step": 77
87
+ },
88
+ {
89
+ "epoch": 0.4666666666666667,
90
+ "grad_norm": 53.80480194091797,
91
+ "learning_rate": 4.691358024691358e-05,
92
+ "loss": 0.3819,
93
+ "step": 84
94
+ },
95
+ {
96
+ "epoch": 0.5055555555555555,
97
+ "grad_norm": 4.867987155914307,
98
+ "learning_rate": 4.6193415637860084e-05,
99
+ "loss": 0.5925,
100
+ "step": 91
101
+ },
102
+ {
103
+ "epoch": 0.5444444444444444,
104
+ "grad_norm": 0.8935460448265076,
105
+ "learning_rate": 4.5473251028806584e-05,
106
+ "loss": 0.2471,
107
+ "step": 98
108
+ },
109
+ {
110
+ "epoch": 0.5833333333333334,
111
+ "grad_norm": 8.400871276855469,
112
+ "learning_rate": 4.4753086419753084e-05,
113
+ "loss": 0.4062,
114
+ "step": 105
115
+ },
116
+ {
117
+ "epoch": 0.6222222222222222,
118
+ "grad_norm": 14.911149024963379,
119
+ "learning_rate": 4.403292181069959e-05,
120
+ "loss": 0.6447,
121
+ "step": 112
122
+ },
123
+ {
124
+ "epoch": 0.6611111111111111,
125
+ "grad_norm": 20.210161209106445,
126
+ "learning_rate": 4.331275720164609e-05,
127
+ "loss": 0.4248,
128
+ "step": 119
129
+ },
130
+ {
131
+ "epoch": 0.7,
132
+ "grad_norm": 17.20897674560547,
133
+ "learning_rate": 4.259259259259259e-05,
134
+ "loss": 0.6514,
135
+ "step": 126
136
+ },
137
+ {
138
+ "epoch": 0.7388888888888889,
139
+ "grad_norm": 15.010047912597656,
140
+ "learning_rate": 4.18724279835391e-05,
141
+ "loss": 0.327,
142
+ "step": 133
143
+ },
144
+ {
145
+ "epoch": 0.7777777777777778,
146
+ "grad_norm": 23.96828269958496,
147
+ "learning_rate": 4.11522633744856e-05,
148
+ "loss": 0.3802,
149
+ "step": 140
150
+ },
151
+ {
152
+ "epoch": 0.8166666666666667,
153
+ "grad_norm": 45.84319305419922,
154
+ "learning_rate": 4.04320987654321e-05,
155
+ "loss": 0.4437,
156
+ "step": 147
157
+ },
158
+ {
159
+ "epoch": 0.8555555555555555,
160
+ "grad_norm": 21.39622688293457,
161
+ "learning_rate": 3.971193415637861e-05,
162
+ "loss": 0.7226,
163
+ "step": 154
164
+ },
165
+ {
166
+ "epoch": 0.8944444444444445,
167
+ "grad_norm": 7.082496166229248,
168
+ "learning_rate": 3.89917695473251e-05,
169
+ "loss": 0.2913,
170
+ "step": 161
171
+ },
172
+ {
173
+ "epoch": 0.9333333333333333,
174
+ "grad_norm": 4.158477783203125,
175
+ "learning_rate": 3.82716049382716e-05,
176
+ "loss": 0.3775,
177
+ "step": 168
178
+ },
179
+ {
180
+ "epoch": 0.9722222222222222,
181
+ "grad_norm": 5.003448486328125,
182
+ "learning_rate": 3.755144032921811e-05,
183
+ "loss": 0.3336,
184
+ "step": 175
185
+ },
186
+ {
187
+ "epoch": 1.0,
188
+ "eval_accuracy": 0.8831168831168831,
189
+ "eval_auc": 0.957133746355685,
190
+ "eval_f1": 0.91,
191
+ "eval_loss": 0.39284127950668335,
192
+ "eval_precision": 0.8921568627450981,
193
+ "eval_recall": 0.9285714285714286,
194
+ "eval_runtime": 49.1707,
195
+ "eval_samples_per_second": 6.264,
196
+ "eval_steps_per_second": 0.407,
197
+ "step": 180
198
+ }
199
+ ],
200
+ "logging_steps": 7,
201
+ "max_steps": 540,
202
+ "num_input_tokens_seen": 0,
203
+ "num_train_epochs": 3,
204
+ "save_steps": 500,
205
+ "total_flos": 94391091110400.0,
206
+ "train_batch_size": 8,
207
+ "trial_name": null,
208
+ "trial_params": null
209
+ }
checkpoint-180/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3fcfcadb18e309e18ed13833f4a29aee67c3dad8f6d3d3af0b64eb948e689340
3
+ size 5048
config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "cardiffnlp/twitter-roberta-base-sentiment-latest",
3
+ "_num_labels": 2,
4
+ "architectures": [
5
+ "RobertaForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "bos_token_id": 0,
9
+ "classifier_dropout": null,
10
+ "eos_token_id": 2,
11
+ "gradient_checkpointing": false,
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 768,
15
+ "id2label": {
16
+ "0": "0",
17
+ "1": "1"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "label2id": {
22
+ "0": 0,
23
+ "1": 1
24
+ },
25
+ "layer_norm_eps": 1e-05,
26
+ "max_position_embeddings": 514,
27
+ "model_type": "roberta",
28
+ "num_attention_heads": 12,
29
+ "num_hidden_layers": 12,
30
+ "pad_token_id": 1,
31
+ "position_embedding_type": "absolute",
32
+ "problem_type": "single_label_classification",
33
+ "torch_dtype": "float32",
34
+ "transformers_version": "4.40.1",
35
+ "type_vocab_size": 1,
36
+ "use_cache": true,
37
+ "vocab_size": 50265
38
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63e2f7803f7503f5d008f18b1d11110d6b36bde197436e148b8c635af4f7fd2b
3
+ size 498612824
runs/May13_23-05-20_r-stepharn-stressmentalroberta-7m8zgded-62560-bmxm9/events.out.tfevents.1715641520.r-stepharn-stressmentalroberta-7m8zgded-62560-bmxm9.94.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:98b0f082501f7d17d3f5d312e5c2e0a122dac1ccbd241fd331a4141572ce9d59
3
- size 21123
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72282fc1221745ba90d644fee7d9f07d1bf04607ca305955374a4c0911859962
3
+ size 23051
runs/May13_23-05-20_r-stepharn-stressmentalroberta-7m8zgded-62560-bmxm9/events.out.tfevents.1715644274.r-stepharn-stressmentalroberta-7m8zgded-62560-bmxm9.94.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a64e8b39336293912d49df7ff2c3b49b4fb67a1622bf1e0e812ec41625f88b9
3
+ size 607
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": true,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": true,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "<pad>",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "</s>",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": true,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "50264": {
37
+ "content": "<mask>",
38
+ "lstrip": true,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "bos_token": "<s>",
46
+ "clean_up_tokenization_spaces": true,
47
+ "cls_token": "<s>",
48
+ "eos_token": "</s>",
49
+ "errors": "replace",
50
+ "mask_token": "<mask>",
51
+ "model_max_length": 1000000000000000019884624838656,
52
+ "pad_token": "<pad>",
53
+ "sep_token": "</s>",
54
+ "tokenizer_class": "RobertaTokenizer",
55
+ "trim_offsets": true,
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:3fcfcadb18e309e18ed13833f4a29aee67c3dad8f6d3d3af0b64eb948e689340
3
+ size 5048
training_params.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "StressTweetRobertaSentiment/autotrain-data",
3
+ "model": "cardiffnlp/twitter-roberta-base-sentiment-latest",
4
+ "lr": 5e-05,
5
+ "epochs": 3,
6
+ "max_seq_length": 128,
7
+ "batch_size": 8,
8
+ "warmup_ratio": 0.1,
9
+ "gradient_accumulation": 1,
10
+ "optimizer": "adamw_torch",
11
+ "scheduler": "linear",
12
+ "weight_decay": 0.0,
13
+ "max_grad_norm": 1.0,
14
+ "seed": 42,
15
+ "train_split": "train",
16
+ "valid_split": "validation",
17
+ "text_column": "autotrain_text",
18
+ "target_column": "autotrain_label",
19
+ "logging_steps": -1,
20
+ "project_name": "StressTweetRobertaSentiment",
21
+ "auto_find_batch_size": false,
22
+ "mixed_precision": null,
23
+ "save_total_limit": 1,
24
+ "push_to_hub": true,
25
+ "evaluation_strategy": "epoch",
26
+ "username": "StephArn",
27
+ "log": "tensorboard"
28
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff