cbpuschmann commited on
Commit
d678fc6
·
verified ·
1 Parent(s): d59e2f7

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - autotrain
5
+ - text-classification
6
+ base_model: google-bert/bert-base-uncased
7
+ widget:
8
+ - text: "I love AutoTrain"
9
+ ---
10
+
11
+ # Model Trained Using AutoTrain
12
+
13
+ - Problem type: Text Classification
14
+
15
+ ## Validation Metrics
16
+ loss: 0.05558604374527931
17
+
18
+ f1: 0.9881956155143339
19
+
20
+ precision: 0.9881956155143339
21
+
22
+ recall: 0.9881956155143339
23
+
24
+ auc: 0.9994592560589801
25
+
26
+ accuracy: 0.988313856427379
checkpoint-450/config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google-bert/bert-base-uncased",
3
+ "_num_labels": 2,
4
+ "architectures": [
5
+ "BertForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "gradient_checkpointing": false,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "opposed",
15
+ "1": "supportive"
16
+ },
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "opposed": 0,
21
+ "supportive": 1
22
+ },
23
+ "layer_norm_eps": 1e-12,
24
+ "max_position_embeddings": 512,
25
+ "model_type": "bert",
26
+ "num_attention_heads": 12,
27
+ "num_hidden_layers": 12,
28
+ "pad_token_id": 0,
29
+ "position_embedding_type": "absolute",
30
+ "problem_type": "single_label_classification",
31
+ "torch_dtype": "float32",
32
+ "transformers_version": "4.46.2",
33
+ "type_vocab_size": 2,
34
+ "use_cache": true,
35
+ "vocab_size": 30522
36
+ }
checkpoint-450/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b407f3c7934da163dc6b7d6ad38adacc3c4dd3d70cedd9a073eeb20cba196251
3
+ size 437958648
checkpoint-450/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c85240b059415b620842bd5d4e2c2705510ace8f91e8a3f7afd867557d9a961b
3
+ size 876038394
checkpoint-450/rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f5115f09977e692a14dda8bcf59e0d966e88359214c0c40355daa73364cb335
3
+ size 15024
checkpoint-450/rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:036dab5184f539d698044441c1bc9aab6a4a6b3ea257283fe0f9a0fe633d99a1
3
+ size 15024
checkpoint-450/rng_state_2.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:435311c5d899ab724fbfe86e455893ac4ad8f348bd91d92f2d9b346a7890fdb8
3
+ size 15024
checkpoint-450/rng_state_3.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9bf692dc84925732e598b71ef3c07ea6cad7b4ae59c199dd9811abf6a684e0c1
3
+ size 15024
checkpoint-450/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f929bd687b5c6b08b1462d393761cd513de93e4f67531c943d93ead016b99428
3
+ size 1064
checkpoint-450/trainer_state.json ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.052102286368608475,
3
+ "best_model_checkpoint": "autotrain-pbt7y-rt1dv/checkpoint-450",
4
+ "epoch": 3.0,
5
+ "eval_steps": 500,
6
+ "global_step": 450,
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.16666666666666666,
13
+ "grad_norm": 4.162468433380127,
14
+ "learning_rate": 2.6666666666666667e-05,
15
+ "loss": 0.6911,
16
+ "step": 25
17
+ },
18
+ {
19
+ "epoch": 0.3333333333333333,
20
+ "grad_norm": 14.043020248413086,
21
+ "learning_rate": 4.950617283950618e-05,
22
+ "loss": 0.5826,
23
+ "step": 50
24
+ },
25
+ {
26
+ "epoch": 0.5,
27
+ "grad_norm": 12.165104866027832,
28
+ "learning_rate": 4.654320987654321e-05,
29
+ "loss": 0.421,
30
+ "step": 75
31
+ },
32
+ {
33
+ "epoch": 0.6666666666666666,
34
+ "grad_norm": 0.5717558264732361,
35
+ "learning_rate": 4.345679012345679e-05,
36
+ "loss": 0.2736,
37
+ "step": 100
38
+ },
39
+ {
40
+ "epoch": 0.8333333333333334,
41
+ "grad_norm": 0.27614304423332214,
42
+ "learning_rate": 4.0370370370370374e-05,
43
+ "loss": 0.4425,
44
+ "step": 125
45
+ },
46
+ {
47
+ "epoch": 1.0,
48
+ "grad_norm": 10.753256797790527,
49
+ "learning_rate": 3.7283950617283955e-05,
50
+ "loss": 0.232,
51
+ "step": 150
52
+ },
53
+ {
54
+ "epoch": 1.0,
55
+ "eval_accuracy": 0.9607679465776294,
56
+ "eval_auc": 0.9811715189608797,
57
+ "eval_f1": 0.9595872742906277,
58
+ "eval_loss": 0.15245321393013,
59
+ "eval_precision": 0.9789473684210527,
60
+ "eval_recall": 0.9409780775716695,
61
+ "eval_runtime": 0.5784,
62
+ "eval_samples_per_second": 2071.084,
63
+ "eval_steps_per_second": 32.847,
64
+ "step": 150
65
+ },
66
+ {
67
+ "epoch": 1.1666666666666667,
68
+ "grad_norm": 0.11041617393493652,
69
+ "learning_rate": 3.419753086419753e-05,
70
+ "loss": 0.2218,
71
+ "step": 175
72
+ },
73
+ {
74
+ "epoch": 1.3333333333333333,
75
+ "grad_norm": 0.048719145357608795,
76
+ "learning_rate": 3.123456790123457e-05,
77
+ "loss": 0.1994,
78
+ "step": 200
79
+ },
80
+ {
81
+ "epoch": 1.5,
82
+ "grad_norm": 0.0485817976295948,
83
+ "learning_rate": 2.814814814814815e-05,
84
+ "loss": 0.1059,
85
+ "step": 225
86
+ },
87
+ {
88
+ "epoch": 1.6666666666666665,
89
+ "grad_norm": 17.67010498046875,
90
+ "learning_rate": 2.5061728395061727e-05,
91
+ "loss": 0.1323,
92
+ "step": 250
93
+ },
94
+ {
95
+ "epoch": 1.8333333333333335,
96
+ "grad_norm": 0.08793912082910538,
97
+ "learning_rate": 2.1975308641975308e-05,
98
+ "loss": 0.0836,
99
+ "step": 275
100
+ },
101
+ {
102
+ "epoch": 2.0,
103
+ "grad_norm": 57.188568115234375,
104
+ "learning_rate": 1.901234567901235e-05,
105
+ "loss": 0.1419,
106
+ "step": 300
107
+ },
108
+ {
109
+ "epoch": 2.0,
110
+ "eval_accuracy": 0.9841402337228714,
111
+ "eval_auc": 0.9959527824620573,
112
+ "eval_f1": 0.9840201850294366,
113
+ "eval_loss": 0.08388863503932953,
114
+ "eval_precision": 0.9815436241610739,
115
+ "eval_recall": 0.9865092748735245,
116
+ "eval_runtime": 0.5767,
117
+ "eval_samples_per_second": 2077.214,
118
+ "eval_steps_per_second": 32.944,
119
+ "step": 300
120
+ },
121
+ {
122
+ "epoch": 2.1666666666666665,
123
+ "grad_norm": 0.05389270931482315,
124
+ "learning_rate": 1.5925925925925926e-05,
125
+ "loss": 0.0871,
126
+ "step": 325
127
+ },
128
+ {
129
+ "epoch": 2.3333333333333335,
130
+ "grad_norm": 0.06370247155427933,
131
+ "learning_rate": 1.2839506172839508e-05,
132
+ "loss": 0.1008,
133
+ "step": 350
134
+ },
135
+ {
136
+ "epoch": 2.5,
137
+ "grad_norm": 0.0631629005074501,
138
+ "learning_rate": 9.753086419753086e-06,
139
+ "loss": 0.1163,
140
+ "step": 375
141
+ },
142
+ {
143
+ "epoch": 2.6666666666666665,
144
+ "grad_norm": 0.053911201655864716,
145
+ "learning_rate": 6.666666666666667e-06,
146
+ "loss": 0.0639,
147
+ "step": 400
148
+ },
149
+ {
150
+ "epoch": 2.8333333333333335,
151
+ "grad_norm": 4.950315952301025,
152
+ "learning_rate": 3.580246913580247e-06,
153
+ "loss": 0.0894,
154
+ "step": 425
155
+ },
156
+ {
157
+ "epoch": 3.0,
158
+ "grad_norm": 0.06562542915344238,
159
+ "learning_rate": 4.938271604938272e-07,
160
+ "loss": 0.0789,
161
+ "step": 450
162
+ },
163
+ {
164
+ "epoch": 3.0,
165
+ "eval_accuracy": 0.988313856427379,
166
+ "eval_auc": 0.9985157415020973,
167
+ "eval_f1": 0.9881756756756757,
168
+ "eval_loss": 0.052102286368608475,
169
+ "eval_precision": 0.9898477157360406,
170
+ "eval_recall": 0.9865092748735245,
171
+ "eval_runtime": 0.5865,
172
+ "eval_samples_per_second": 2042.526,
173
+ "eval_steps_per_second": 32.394,
174
+ "step": 450
175
+ }
176
+ ],
177
+ "logging_steps": 25,
178
+ "max_steps": 450,
179
+ "num_input_tokens_seen": 0,
180
+ "num_train_epochs": 3,
181
+ "save_steps": 500,
182
+ "stateful_callbacks": {
183
+ "EarlyStoppingCallback": {
184
+ "args": {
185
+ "early_stopping_patience": 5,
186
+ "early_stopping_threshold": 0.01
187
+ },
188
+ "attributes": {
189
+ "early_stopping_patience_counter": 0
190
+ }
191
+ },
192
+ "TrainerControl": {
193
+ "args": {
194
+ "should_epoch_stop": false,
195
+ "should_evaluate": false,
196
+ "should_log": false,
197
+ "should_save": true,
198
+ "should_training_stop": true
199
+ },
200
+ "attributes": {}
201
+ }
202
+ },
203
+ "total_flos": 947199814926336.0,
204
+ "train_batch_size": 8,
205
+ "trial_name": null,
206
+ "trial_params": null
207
+ }
checkpoint-450/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bbf345290dae9dd1d22ff03e99f9e6a7a9387176a11de0799f6ca34b3bd7f67f
3
+ size 5304
config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google-bert/bert-base-uncased",
3
+ "_num_labels": 2,
4
+ "architectures": [
5
+ "BertForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "gradient_checkpointing": false,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "opposed",
15
+ "1": "supportive"
16
+ },
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "opposed": 0,
21
+ "supportive": 1
22
+ },
23
+ "layer_norm_eps": 1e-12,
24
+ "max_position_embeddings": 512,
25
+ "model_type": "bert",
26
+ "num_attention_heads": 12,
27
+ "num_hidden_layers": 12,
28
+ "pad_token_id": 0,
29
+ "position_embedding_type": "absolute",
30
+ "problem_type": "single_label_classification",
31
+ "torch_dtype": "float32",
32
+ "transformers_version": "4.46.2",
33
+ "type_vocab_size": 2,
34
+ "use_cache": true,
35
+ "vocab_size": 30522
36
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b407f3c7934da163dc6b7d6ad38adacc3c4dd3d70cedd9a073eeb20cba196251
3
+ size 437958648
runs/Dec02_15-17-32_r-cbpuschmann-sfautotrain-sc85mtwn-91fb6-5441j/events.out.tfevents.1733152653.r-cbpuschmann-sfautotrain-sc85mtwn-91fb6-5441j.216.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a2ec98a99d2c4315b542b4eac4a88e5313164edec535fffe7ded9b144cae455b
3
- size 5234
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1695ed72002846c98606c9fb7a15bbc3cd00b6993c9d38143e698293793f82e6
3
+ size 10923
runs/Dec02_15-17-32_r-cbpuschmann-sfautotrain-sc85mtwn-91fb6-5441j/events.out.tfevents.1733152686.r-cbpuschmann-sfautotrain-sc85mtwn-91fb6-5441j.216.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1dee74cacb9a8b16475ee02b7bffef4fc31f39fcad99d2ca07085ca515ea6ee
3
+ size 607
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.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": true,
47
+ "mask_token": "[MASK]",
48
+ "model_max_length": 512,
49
+ "pad_token": "[PAD]",
50
+ "sep_token": "[SEP]",
51
+ "strip_accents": null,
52
+ "tokenize_chinese_chars": true,
53
+ "tokenizer_class": "BertTokenizer",
54
+ "unk_token": "[UNK]"
55
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bbf345290dae9dd1d22ff03e99f9e6a7a9387176a11de0799f6ca34b3bd7f67f
3
+ size 5304
training_params.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "autotrain-pbt7y-rt1dv/autotrain-data",
3
+ "model": "google-bert/bert-base-uncased",
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": "autotrain-pbt7y-rt1dv",
21
+ "auto_find_batch_size": false,
22
+ "mixed_precision": "fp16",
23
+ "save_total_limit": 1,
24
+ "push_to_hub": true,
25
+ "eval_strategy": "epoch",
26
+ "username": "cbpuschmann",
27
+ "log": "tensorboard",
28
+ "early_stopping_patience": 5,
29
+ "early_stopping_threshold": 0.01
30
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff