rizdel commited on
Commit
3c25ec0
1 Parent(s): 07d0d16

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
+ - autotrain-57208-4mv8z/autotrain-data
10
+ ---
11
+
12
+ # Model Trained Using AutoTrain
13
+
14
+ - Problem type: Text Classification
15
+
16
+ ## Validation Metrics
17
+ loss: 0.4916948974132538
18
+
19
+ f1: 0.8059701492537313
20
+
21
+ precision: 0.782608695652174
22
+
23
+ recall: 0.8307692307692308
24
+
25
+ auc: 0.8416783216783217
26
+
27
+ accuracy: 0.7833333333333333
checkpoint-60/config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "h-e-l-l-o/email-spam-classification-merged",
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": 0,
15
+ "1": 1
16
+ },
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "0": 0,
21
+ "1": 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.38.1",
33
+ "type_vocab_size": 2,
34
+ "use_cache": true,
35
+ "vocab_size": 30522
36
+ }
checkpoint-60/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1773f58c250a228c90a7d970a29c322df7cbfbc9d75123bfe7ec4fe503eee4d1
3
+ size 437958648
checkpoint-60/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a53dc85f6b437bc5653d111d97c65f400a899764dba72e370e66aa7c6ebdb38
3
+ size 876038394
checkpoint-60/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:caac0ee40fc2d655eee6b30e0d0641edde0b3b6003f52d95d8796ae61b1e0a86
3
+ size 14244
checkpoint-60/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd84329c3ea3cbfc8eec6d05cafbf7d38ee7ea3882f0597f5a8665f554621cbb
3
+ size 1064
checkpoint-60/trainer_state.json ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.4916948974132538,
3
+ "best_model_checkpoint": "autotrain-57208-4mv8z/checkpoint-60",
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 60,
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.05,
13
+ "grad_norm": Infinity,
14
+ "learning_rate": 0.0,
15
+ "loss": 0.9702,
16
+ "step": 3
17
+ },
18
+ {
19
+ "epoch": 0.1,
20
+ "grad_norm": 25.49532699584961,
21
+ "learning_rate": 5.555555555555556e-06,
22
+ "loss": 0.7682,
23
+ "step": 6
24
+ },
25
+ {
26
+ "epoch": 0.15,
27
+ "grad_norm": 36.088096618652344,
28
+ "learning_rate": 1.388888888888889e-05,
29
+ "loss": 1.1279,
30
+ "step": 9
31
+ },
32
+ {
33
+ "epoch": 0.2,
34
+ "grad_norm": 42.65789031982422,
35
+ "learning_rate": 2.2222222222222223e-05,
36
+ "loss": 1.2649,
37
+ "step": 12
38
+ },
39
+ {
40
+ "epoch": 0.25,
41
+ "grad_norm": 13.15088176727295,
42
+ "learning_rate": 3.055555555555556e-05,
43
+ "loss": 0.7979,
44
+ "step": 15
45
+ },
46
+ {
47
+ "epoch": 0.3,
48
+ "grad_norm": 26.759204864501953,
49
+ "learning_rate": 3.888888888888889e-05,
50
+ "loss": 0.6888,
51
+ "step": 18
52
+ },
53
+ {
54
+ "epoch": 0.35,
55
+ "grad_norm": 23.444761276245117,
56
+ "learning_rate": 4.722222222222222e-05,
57
+ "loss": 0.7643,
58
+ "step": 21
59
+ },
60
+ {
61
+ "epoch": 0.4,
62
+ "grad_norm": 46.247528076171875,
63
+ "learning_rate": 4.938271604938271e-05,
64
+ "loss": 0.6103,
65
+ "step": 24
66
+ },
67
+ {
68
+ "epoch": 0.45,
69
+ "grad_norm": 18.17511749267578,
70
+ "learning_rate": 4.845679012345679e-05,
71
+ "loss": 1.2048,
72
+ "step": 27
73
+ },
74
+ {
75
+ "epoch": 0.5,
76
+ "grad_norm": 12.499485969543457,
77
+ "learning_rate": 4.7530864197530866e-05,
78
+ "loss": 0.5038,
79
+ "step": 30
80
+ },
81
+ {
82
+ "epoch": 0.55,
83
+ "grad_norm": 14.672439575195312,
84
+ "learning_rate": 4.6604938271604945e-05,
85
+ "loss": 0.7822,
86
+ "step": 33
87
+ },
88
+ {
89
+ "epoch": 0.6,
90
+ "grad_norm": 13.163423538208008,
91
+ "learning_rate": 4.567901234567901e-05,
92
+ "loss": 0.5031,
93
+ "step": 36
94
+ },
95
+ {
96
+ "epoch": 0.65,
97
+ "grad_norm": 21.604719161987305,
98
+ "learning_rate": 4.4753086419753084e-05,
99
+ "loss": 0.5332,
100
+ "step": 39
101
+ },
102
+ {
103
+ "epoch": 0.7,
104
+ "grad_norm": 26.531099319458008,
105
+ "learning_rate": 4.3827160493827164e-05,
106
+ "loss": 0.5944,
107
+ "step": 42
108
+ },
109
+ {
110
+ "epoch": 0.75,
111
+ "grad_norm": 7.5323615074157715,
112
+ "learning_rate": 4.290123456790124e-05,
113
+ "loss": 0.6344,
114
+ "step": 45
115
+ },
116
+ {
117
+ "epoch": 0.8,
118
+ "grad_norm": 7.045075416564941,
119
+ "learning_rate": 4.197530864197531e-05,
120
+ "loss": 0.5561,
121
+ "step": 48
122
+ },
123
+ {
124
+ "epoch": 0.85,
125
+ "grad_norm": 19.56390953063965,
126
+ "learning_rate": 4.104938271604938e-05,
127
+ "loss": 0.7812,
128
+ "step": 51
129
+ },
130
+ {
131
+ "epoch": 0.9,
132
+ "grad_norm": 9.734304428100586,
133
+ "learning_rate": 4.012345679012346e-05,
134
+ "loss": 0.7483,
135
+ "step": 54
136
+ },
137
+ {
138
+ "epoch": 0.95,
139
+ "grad_norm": 13.189071655273438,
140
+ "learning_rate": 3.9197530864197535e-05,
141
+ "loss": 0.6367,
142
+ "step": 57
143
+ },
144
+ {
145
+ "epoch": 1.0,
146
+ "grad_norm": 4.375649929046631,
147
+ "learning_rate": 3.82716049382716e-05,
148
+ "loss": 0.5642,
149
+ "step": 60
150
+ },
151
+ {
152
+ "epoch": 1.0,
153
+ "eval_accuracy": 0.7833333333333333,
154
+ "eval_auc": 0.8416783216783217,
155
+ "eval_f1": 0.8059701492537313,
156
+ "eval_loss": 0.4916948974132538,
157
+ "eval_precision": 0.782608695652174,
158
+ "eval_recall": 0.8307692307692308,
159
+ "eval_runtime": 0.2902,
160
+ "eval_samples_per_second": 413.471,
161
+ "eval_steps_per_second": 27.565,
162
+ "step": 60
163
+ }
164
+ ],
165
+ "logging_steps": 3,
166
+ "max_steps": 180,
167
+ "num_input_tokens_seen": 0,
168
+ "num_train_epochs": 3,
169
+ "save_steps": 500,
170
+ "total_flos": 31310215587840.0,
171
+ "train_batch_size": 8,
172
+ "trial_name": null,
173
+ "trial_params": null
174
+ }
checkpoint-60/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0289f43907026be4e37502d57e5f6d28ee1acf5abed09db983916d2a4278a98
3
+ size 4920
config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "h-e-l-l-o/email-spam-classification-merged",
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": 0,
15
+ "1": 1
16
+ },
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "0": 0,
21
+ "1": 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.38.1",
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:1773f58c250a228c90a7d970a29c322df7cbfbc9d75123bfe7ec4fe503eee4d1
3
+ size 437958648
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_lower_case": true,
47
+ "mask_token": "[MASK]",
48
+ "max_length": 512,
49
+ "model_max_length": 512,
50
+ "pad_token": "[PAD]",
51
+ "sep_token": "[SEP]",
52
+ "stride": 0,
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "BertTokenizer",
56
+ "truncation_side": "right",
57
+ "truncation_strategy": "longest_first",
58
+ "unk_token": "[UNK]"
59
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0289f43907026be4e37502d57e5f6d28ee1acf5abed09db983916d2a4278a98
3
+ size 4920
training_params.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "autotrain-57208-4mv8z/autotrain-data",
3
+ "model": "h-e-l-l-o/email-spam-classification-merged",
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-57208-4mv8z",
21
+ "auto_find_batch_size": false,
22
+ "mixed_precision": "fp16",
23
+ "save_total_limit": 1,
24
+ "save_strategy": "epoch",
25
+ "push_to_hub": true,
26
+ "repo_id": "rizdel/autotrain-57208-4mv8z",
27
+ "evaluation_strategy": "epoch",
28
+ "username": "rizdel",
29
+ "log": "none"
30
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff