Text Classification
Transformers
Safetensors
Persian
bert
Inference Endpoints
cmykk commited on
Commit
3644a97
1 Parent(s): ed76191

Upload 7 files

Browse files
Files changed (7) hide show
  1. config.json +27 -0
  2. model.safetensors +3 -0
  3. optimizer.pt +3 -0
  4. rng_state.pth +3 -0
  5. scheduler.pt +3 -0
  6. trainer_state.json +321 -0
  7. training_args.bin +3 -0
config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-base-uncased",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "problem_type": "single_label_classification",
22
+ "torch_dtype": "float32",
23
+ "transformers_version": "4.36.2",
24
+ "type_vocab_size": 2,
25
+ "use_cache": true,
26
+ "vocab_size": 30522
27
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e6221d1709dc56108ef7a5c1a62675cbc430204b99478f28e020b8d422c71f39
3
+ size 437958648
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b219ede10e1acd08dbf34a5e280ac7a2ef914c7f40a2db3f4c6b34f0f2638f25
3
+ size 685336698
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5eef0212e0663aed542f167777fd9bb1b14f4c2ab42b4496546fcd085744cbc3
3
+ size 14244
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ecededd349aab1a269bda12bfe129ec19e7ca5adadf4c7b8d26278746288c7e4
3
+ size 1064
trainer_state.json ADDED
@@ -0,0 +1,321 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 1.0,
3
+ "best_model_checkpoint": "./fa_results/checkpoint-600",
4
+ "epoch": 8.0,
5
+ "eval_steps": 500,
6
+ "global_step": 1200,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 1.0,
13
+ "eval_accuracy": 0.9975,
14
+ "eval_classification_report": {
15
+ "accuracy": 0.9975,
16
+ "macro avg": {
17
+ "f1-score": 0.9974999843749024,
18
+ "precision": 0.9975124378109452,
19
+ "recall": 0.9975,
20
+ "support": 800.0
21
+ },
22
+ "neural": {
23
+ "f1-score": 0.9974937343358395,
24
+ "precision": 1.0,
25
+ "recall": 0.995,
26
+ "support": 400.0
27
+ },
28
+ "real": {
29
+ "f1-score": 0.9975062344139651,
30
+ "precision": 0.9950248756218906,
31
+ "recall": 1.0,
32
+ "support": 400.0
33
+ },
34
+ "weighted avg": {
35
+ "f1-score": 0.9974999843749024,
36
+ "precision": 0.9975124378109453,
37
+ "recall": 0.9975,
38
+ "support": 800.0
39
+ }
40
+ },
41
+ "eval_loss": 0.01759614236652851,
42
+ "eval_runtime": 34.4448,
43
+ "eval_samples_per_second": 23.226,
44
+ "eval_steps_per_second": 1.452,
45
+ "step": 150
46
+ },
47
+ {
48
+ "epoch": 2.0,
49
+ "eval_accuracy": 0.97375,
50
+ "eval_classification_report": {
51
+ "accuracy": 0.97375,
52
+ "macro avg": {
53
+ "f1-score": 0.9737318996370936,
54
+ "precision": 0.9750593824228029,
55
+ "recall": 0.97375,
56
+ "support": 800.0
57
+ },
58
+ "neural": {
59
+ "f1-score": 0.9730423620025674,
60
+ "precision": 1.0,
61
+ "recall": 0.9475,
62
+ "support": 400.0
63
+ },
64
+ "real": {
65
+ "f1-score": 0.9744214372716199,
66
+ "precision": 0.9501187648456056,
67
+ "recall": 1.0,
68
+ "support": 400.0
69
+ },
70
+ "weighted avg": {
71
+ "f1-score": 0.9737318996370936,
72
+ "precision": 0.9750593824228028,
73
+ "recall": 0.97375,
74
+ "support": 800.0
75
+ }
76
+ },
77
+ "eval_loss": 0.1816234588623047,
78
+ "eval_runtime": 23.7325,
79
+ "eval_samples_per_second": 33.709,
80
+ "eval_steps_per_second": 2.107,
81
+ "step": 300
82
+ },
83
+ {
84
+ "epoch": 3.0,
85
+ "eval_accuracy": 0.9825,
86
+ "eval_classification_report": {
87
+ "accuracy": 0.9825,
88
+ "macro avg": {
89
+ "f1-score": 0.9824946389831886,
90
+ "precision": 0.9830917874396135,
91
+ "recall": 0.9824999999999999,
92
+ "support": 800.0
93
+ },
94
+ "neural": {
95
+ "f1-score": 0.9821882951653944,
96
+ "precision": 1.0,
97
+ "recall": 0.965,
98
+ "support": 400.0
99
+ },
100
+ "real": {
101
+ "f1-score": 0.9828009828009828,
102
+ "precision": 0.966183574879227,
103
+ "recall": 1.0,
104
+ "support": 400.0
105
+ },
106
+ "weighted avg": {
107
+ "f1-score": 0.9824946389831887,
108
+ "precision": 0.9830917874396136,
109
+ "recall": 0.9825,
110
+ "support": 800.0
111
+ }
112
+ },
113
+ "eval_loss": 0.06379446387290955,
114
+ "eval_runtime": 34.6037,
115
+ "eval_samples_per_second": 23.119,
116
+ "eval_steps_per_second": 1.445,
117
+ "step": 450
118
+ },
119
+ {
120
+ "epoch": 3.33,
121
+ "learning_rate": 5e-05,
122
+ "loss": 0.1249,
123
+ "step": 500
124
+ },
125
+ {
126
+ "epoch": 4.0,
127
+ "eval_accuracy": 1.0,
128
+ "eval_classification_report": {
129
+ "accuracy": 1.0,
130
+ "macro avg": {
131
+ "f1-score": 1.0,
132
+ "precision": 1.0,
133
+ "recall": 1.0,
134
+ "support": 800.0
135
+ },
136
+ "neural": {
137
+ "f1-score": 1.0,
138
+ "precision": 1.0,
139
+ "recall": 1.0,
140
+ "support": 400.0
141
+ },
142
+ "real": {
143
+ "f1-score": 1.0,
144
+ "precision": 1.0,
145
+ "recall": 1.0,
146
+ "support": 400.0
147
+ },
148
+ "weighted avg": {
149
+ "f1-score": 1.0,
150
+ "precision": 1.0,
151
+ "recall": 1.0,
152
+ "support": 800.0
153
+ }
154
+ },
155
+ "eval_loss": 6.574411963811144e-05,
156
+ "eval_runtime": 32.2256,
157
+ "eval_samples_per_second": 24.825,
158
+ "eval_steps_per_second": 1.552,
159
+ "step": 600
160
+ },
161
+ {
162
+ "epoch": 5.0,
163
+ "eval_accuracy": 1.0,
164
+ "eval_classification_report": {
165
+ "accuracy": 1.0,
166
+ "macro avg": {
167
+ "f1-score": 1.0,
168
+ "precision": 1.0,
169
+ "recall": 1.0,
170
+ "support": 800.0
171
+ },
172
+ "neural": {
173
+ "f1-score": 1.0,
174
+ "precision": 1.0,
175
+ "recall": 1.0,
176
+ "support": 400.0
177
+ },
178
+ "real": {
179
+ "f1-score": 1.0,
180
+ "precision": 1.0,
181
+ "recall": 1.0,
182
+ "support": 400.0
183
+ },
184
+ "weighted avg": {
185
+ "f1-score": 1.0,
186
+ "precision": 1.0,
187
+ "recall": 1.0,
188
+ "support": 800.0
189
+ }
190
+ },
191
+ "eval_loss": 3.862570883939043e-05,
192
+ "eval_runtime": 34.1596,
193
+ "eval_samples_per_second": 23.419,
194
+ "eval_steps_per_second": 1.464,
195
+ "step": 750
196
+ },
197
+ {
198
+ "epoch": 6.0,
199
+ "eval_accuracy": 1.0,
200
+ "eval_classification_report": {
201
+ "accuracy": 1.0,
202
+ "macro avg": {
203
+ "f1-score": 1.0,
204
+ "precision": 1.0,
205
+ "recall": 1.0,
206
+ "support": 800.0
207
+ },
208
+ "neural": {
209
+ "f1-score": 1.0,
210
+ "precision": 1.0,
211
+ "recall": 1.0,
212
+ "support": 400.0
213
+ },
214
+ "real": {
215
+ "f1-score": 1.0,
216
+ "precision": 1.0,
217
+ "recall": 1.0,
218
+ "support": 400.0
219
+ },
220
+ "weighted avg": {
221
+ "f1-score": 1.0,
222
+ "precision": 1.0,
223
+ "recall": 1.0,
224
+ "support": 800.0
225
+ }
226
+ },
227
+ "eval_loss": 2.708590545807965e-05,
228
+ "eval_runtime": 23.9516,
229
+ "eval_samples_per_second": 33.401,
230
+ "eval_steps_per_second": 2.088,
231
+ "step": 900
232
+ },
233
+ {
234
+ "epoch": 6.67,
235
+ "learning_rate": 4.827586206896552e-05,
236
+ "loss": 0.0001,
237
+ "step": 1000
238
+ },
239
+ {
240
+ "epoch": 7.0,
241
+ "eval_accuracy": 1.0,
242
+ "eval_classification_report": {
243
+ "accuracy": 1.0,
244
+ "macro avg": {
245
+ "f1-score": 1.0,
246
+ "precision": 1.0,
247
+ "recall": 1.0,
248
+ "support": 800.0
249
+ },
250
+ "neural": {
251
+ "f1-score": 1.0,
252
+ "precision": 1.0,
253
+ "recall": 1.0,
254
+ "support": 400.0
255
+ },
256
+ "real": {
257
+ "f1-score": 1.0,
258
+ "precision": 1.0,
259
+ "recall": 1.0,
260
+ "support": 400.0
261
+ },
262
+ "weighted avg": {
263
+ "f1-score": 1.0,
264
+ "precision": 1.0,
265
+ "recall": 1.0,
266
+ "support": 800.0
267
+ }
268
+ },
269
+ "eval_loss": 2.0530005713226274e-05,
270
+ "eval_runtime": 32.1556,
271
+ "eval_samples_per_second": 24.879,
272
+ "eval_steps_per_second": 1.555,
273
+ "step": 1050
274
+ },
275
+ {
276
+ "epoch": 8.0,
277
+ "eval_accuracy": 1.0,
278
+ "eval_classification_report": {
279
+ "accuracy": 1.0,
280
+ "macro avg": {
281
+ "f1-score": 1.0,
282
+ "precision": 1.0,
283
+ "recall": 1.0,
284
+ "support": 800.0
285
+ },
286
+ "neural": {
287
+ "f1-score": 1.0,
288
+ "precision": 1.0,
289
+ "recall": 1.0,
290
+ "support": 400.0
291
+ },
292
+ "real": {
293
+ "f1-score": 1.0,
294
+ "precision": 1.0,
295
+ "recall": 1.0,
296
+ "support": 400.0
297
+ },
298
+ "weighted avg": {
299
+ "f1-score": 1.0,
300
+ "precision": 1.0,
301
+ "recall": 1.0,
302
+ "support": 800.0
303
+ }
304
+ },
305
+ "eval_loss": 1.6309035345329903e-05,
306
+ "eval_runtime": 37.1083,
307
+ "eval_samples_per_second": 21.558,
308
+ "eval_steps_per_second": 1.347,
309
+ "step": 1200
310
+ }
311
+ ],
312
+ "logging_steps": 500,
313
+ "max_steps": 15000,
314
+ "num_input_tokens_seen": 0,
315
+ "num_train_epochs": 100,
316
+ "save_steps": 500,
317
+ "total_flos": 5051732262912000.0,
318
+ "train_batch_size": 16,
319
+ "trial_name": null,
320
+ "trial_params": null
321
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f67e182e00b4994e4cdd73808416b0d75b368d0305ef9b345b2749c5756683c6
3
+ size 4664