Hajarhammadi commited on
Commit
363044f
1 Parent(s): dfe1eb2

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.4558769166469574
17
+
18
+ f1: 0.8207547169811321
19
+
20
+ precision: 0.7837837837837838
21
+
22
+ recall: 0.8613861386138614
23
+
24
+ auc: 0.884088408840884
25
+
26
+ accuracy: 0.81
checkpoint-100/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": "negative",
15
+ "1": "positive"
16
+ },
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "negative": 0,
21
+ "positive": 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.43.1",
33
+ "type_vocab_size": 2,
34
+ "use_cache": true,
35
+ "vocab_size": 30522
36
+ }
checkpoint-100/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1bbf7e7fe25bd434025d06d11a7e2e86ef65d03b60d99d811b4a2e048fd34a30
3
+ size 437958648
checkpoint-100/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:64f07e5e7e2007dd33ebec8074d52afc944ffdd9e1885c2dfd1acc3ea706d36b
3
+ size 876032762
checkpoint-100/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:18960c194b39c1c762e07eaeaf2c6bd3d4e437ef57953721af826bd8bfce0b40
3
+ size 13990
checkpoint-100/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d035e61f1c66cd4befda09e39359b5d11abe5b64d7c41726de679803569f208e
3
+ size 1064
checkpoint-100/trainer_state.json ADDED
@@ -0,0 +1,195 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.4558769166469574,
3
+ "best_model_checkpoint": "autotrain-hajarhammadi/checkpoint-100",
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 100,
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": 10.27597713470459,
14
+ "learning_rate": 8.333333333333334e-06,
15
+ "loss": 0.8126,
16
+ "step": 5
17
+ },
18
+ {
19
+ "epoch": 0.1,
20
+ "grad_norm": 5.333163261413574,
21
+ "learning_rate": 1.6666666666666667e-05,
22
+ "loss": 0.6527,
23
+ "step": 10
24
+ },
25
+ {
26
+ "epoch": 0.15,
27
+ "grad_norm": 4.110249996185303,
28
+ "learning_rate": 2.5e-05,
29
+ "loss": 0.7055,
30
+ "step": 15
31
+ },
32
+ {
33
+ "epoch": 0.2,
34
+ "grad_norm": 3.72261381149292,
35
+ "learning_rate": 3.3333333333333335e-05,
36
+ "loss": 0.7058,
37
+ "step": 20
38
+ },
39
+ {
40
+ "epoch": 0.25,
41
+ "grad_norm": 2.8690927028656006,
42
+ "learning_rate": 4.166666666666667e-05,
43
+ "loss": 0.6694,
44
+ "step": 25
45
+ },
46
+ {
47
+ "epoch": 0.3,
48
+ "grad_norm": 5.992794990539551,
49
+ "learning_rate": 5e-05,
50
+ "loss": 0.683,
51
+ "step": 30
52
+ },
53
+ {
54
+ "epoch": 0.35,
55
+ "grad_norm": 8.307418823242188,
56
+ "learning_rate": 4.9074074074074075e-05,
57
+ "loss": 0.6078,
58
+ "step": 35
59
+ },
60
+ {
61
+ "epoch": 0.4,
62
+ "grad_norm": 14.761510848999023,
63
+ "learning_rate": 4.814814814814815e-05,
64
+ "loss": 0.6806,
65
+ "step": 40
66
+ },
67
+ {
68
+ "epoch": 0.45,
69
+ "grad_norm": 17.669111251831055,
70
+ "learning_rate": 4.722222222222222e-05,
71
+ "loss": 0.495,
72
+ "step": 45
73
+ },
74
+ {
75
+ "epoch": 0.5,
76
+ "grad_norm": 21.18276023864746,
77
+ "learning_rate": 4.62962962962963e-05,
78
+ "loss": 0.5911,
79
+ "step": 50
80
+ },
81
+ {
82
+ "epoch": 0.55,
83
+ "grad_norm": 10.731266975402832,
84
+ "learning_rate": 4.5370370370370374e-05,
85
+ "loss": 0.4819,
86
+ "step": 55
87
+ },
88
+ {
89
+ "epoch": 0.6,
90
+ "grad_norm": 21.16441535949707,
91
+ "learning_rate": 4.4444444444444447e-05,
92
+ "loss": 0.4505,
93
+ "step": 60
94
+ },
95
+ {
96
+ "epoch": 0.65,
97
+ "grad_norm": 20.13530921936035,
98
+ "learning_rate": 4.351851851851852e-05,
99
+ "loss": 0.4387,
100
+ "step": 65
101
+ },
102
+ {
103
+ "epoch": 0.7,
104
+ "grad_norm": 13.650543212890625,
105
+ "learning_rate": 4.259259259259259e-05,
106
+ "loss": 0.5372,
107
+ "step": 70
108
+ },
109
+ {
110
+ "epoch": 0.75,
111
+ "grad_norm": 8.348587036132812,
112
+ "learning_rate": 4.166666666666667e-05,
113
+ "loss": 0.5308,
114
+ "step": 75
115
+ },
116
+ {
117
+ "epoch": 0.8,
118
+ "grad_norm": 13.786101341247559,
119
+ "learning_rate": 4.074074074074074e-05,
120
+ "loss": 0.4489,
121
+ "step": 80
122
+ },
123
+ {
124
+ "epoch": 0.85,
125
+ "grad_norm": 16.651531219482422,
126
+ "learning_rate": 3.981481481481482e-05,
127
+ "loss": 0.4135,
128
+ "step": 85
129
+ },
130
+ {
131
+ "epoch": 0.9,
132
+ "grad_norm": 34.40428924560547,
133
+ "learning_rate": 3.888888888888889e-05,
134
+ "loss": 0.3764,
135
+ "step": 90
136
+ },
137
+ {
138
+ "epoch": 0.95,
139
+ "grad_norm": 24.429424285888672,
140
+ "learning_rate": 3.7962962962962964e-05,
141
+ "loss": 0.7231,
142
+ "step": 95
143
+ },
144
+ {
145
+ "epoch": 1.0,
146
+ "grad_norm": 2.558081865310669,
147
+ "learning_rate": 3.7037037037037037e-05,
148
+ "loss": 0.4568,
149
+ "step": 100
150
+ },
151
+ {
152
+ "epoch": 1.0,
153
+ "eval_accuracy": 0.81,
154
+ "eval_auc": 0.884088408840884,
155
+ "eval_f1": 0.8207547169811321,
156
+ "eval_loss": 0.4558769166469574,
157
+ "eval_precision": 0.7837837837837838,
158
+ "eval_recall": 0.8613861386138614,
159
+ "eval_runtime": 33.1066,
160
+ "eval_samples_per_second": 6.041,
161
+ "eval_steps_per_second": 0.393,
162
+ "step": 100
163
+ }
164
+ ],
165
+ "logging_steps": 5,
166
+ "max_steps": 300,
167
+ "num_input_tokens_seen": 0,
168
+ "num_train_epochs": 3,
169
+ "save_steps": 500,
170
+ "stateful_callbacks": {
171
+ "EarlyStoppingCallback": {
172
+ "args": {
173
+ "early_stopping_patience": 5,
174
+ "early_stopping_threshold": 0.01
175
+ },
176
+ "attributes": {
177
+ "early_stopping_patience_counter": 0
178
+ }
179
+ },
180
+ "TrainerControl": {
181
+ "args": {
182
+ "should_epoch_stop": false,
183
+ "should_evaluate": false,
184
+ "should_log": false,
185
+ "should_save": true,
186
+ "should_training_stop": false
187
+ },
188
+ "attributes": {}
189
+ }
190
+ },
191
+ "total_flos": 52622211072000.0,
192
+ "train_batch_size": 8,
193
+ "trial_name": null,
194
+ "trial_params": null
195
+ }
checkpoint-100/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e9abf1353f501f559f5a995f19c388060b52db6e50f13aea2a94d0957fce035
3
+ size 5240
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": "negative",
15
+ "1": "positive"
16
+ },
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "negative": 0,
21
+ "positive": 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.43.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:1bbf7e7fe25bd434025d06d11a7e2e86ef65d03b60d99d811b4a2e048fd34a30
3
+ size 437958648
runs/Aug02_12-51-14_r-hajarhammadi-autotrain2-j6vlscc7-35c1e-sajz4/events.out.tfevents.1722603075.r-hajarhammadi-autotrain2-j6vlscc7-35c1e-sajz4.133.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:183cf9f0efa949f77e8f72f47216a795420532c759453ac86d2ccb7a7124e28b
3
- size 15939
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:114eed6128b675f6093c155f1908a533c2a21ad4ea9238c94d29167cfab84437
3
+ size 19555
runs/Aug02_12-51-14_r-hajarhammadi-autotrain2-j6vlscc7-35c1e-sajz4/events.out.tfevents.1722604697.r-hajarhammadi-autotrain2-j6vlscc7-35c1e-sajz4.133.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27960b588895c3020e7ed07fb460fdeb1623162b97887589f856009237b866b9
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": true,
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:4e9abf1353f501f559f5a995f19c388060b52db6e50f13aea2a94d0957fce035
3
+ size 5240
training_params.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "autotrain-hajarhammadi/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-hajarhammadi",
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": "Hajarhammadi",
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