Text Classification
Transformers
TensorBoard
Safetensors
bert
Trained with AutoTrain
text-embeddings-inference
Instructions to use Defensa2025/C2BERT8020 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Defensa2025/C2BERT8020 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Defensa2025/C2BERT8020")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Defensa2025/C2BERT8020") model = AutoModelForSequenceClassification.from_pretrained("Defensa2025/C2BERT8020", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- README.md +27 -0
- checkpoint-54/config.json +36 -0
- checkpoint-54/model.safetensors +3 -0
- checkpoint-54/optimizer.pt +3 -0
- checkpoint-54/rng_state.pth +3 -0
- checkpoint-54/scheduler.pt +3 -0
- checkpoint-54/trainer_state.json +257 -0
- checkpoint-54/training_args.bin +3 -0
- config.json +36 -0
- model.safetensors +3 -0
- runs/Oct02_02-20-38_r-iosvanny-textclassif2-w8r9syrf-f62ca-0k39x/events.out.tfevents.1759371640.r-iosvanny-textclassif2-w8r9syrf-f62ca-0k39x.62.0 +2 -2
- runs/Oct02_02-20-38_r-iosvanny-textclassif2-w8r9syrf-f62ca-0k39x/events.out.tfevents.1759373619.r-iosvanny-textclassif2-w8r9syrf-f62ca-0k39x.62.1 +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +56 -0
- training_args.bin +3 -0
- training_params.json +30 -0
- vocab.txt +0 -0
README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
library_name: transformers
|
| 4 |
+
tags:
|
| 5 |
+
- autotrain
|
| 6 |
+
- text-classification
|
| 7 |
+
base_model: google-bert/bert-base-uncased
|
| 8 |
+
widget:
|
| 9 |
+
- text: "I love AutoTrain"
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# Model Trained Using AutoTrain
|
| 13 |
+
|
| 14 |
+
- Problem type: Text Classification
|
| 15 |
+
|
| 16 |
+
## Validation Metrics
|
| 17 |
+
loss: 0.3190089464187622
|
| 18 |
+
|
| 19 |
+
f1: 0.8682170542635659
|
| 20 |
+
|
| 21 |
+
precision: 0.7887323943661971
|
| 22 |
+
|
| 23 |
+
recall: 0.9655172413793104
|
| 24 |
+
|
| 25 |
+
auc: 0.9703448275862069
|
| 26 |
+
|
| 27 |
+
accuracy: 0.8425925925925926
|
checkpoint-54/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": "fake",
|
| 15 |
+
"1": "real"
|
| 16 |
+
},
|
| 17 |
+
"initializer_range": 0.02,
|
| 18 |
+
"intermediate_size": 3072,
|
| 19 |
+
"label2id": {
|
| 20 |
+
"fake": 0,
|
| 21 |
+
"real": 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.48.0",
|
| 33 |
+
"type_vocab_size": 2,
|
| 34 |
+
"use_cache": true,
|
| 35 |
+
"vocab_size": 30522
|
| 36 |
+
}
|
checkpoint-54/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d1e8790f1ba7bd350cd3336a59bfaa2793858e15b272a870eb0953eb0b732f60
|
| 3 |
+
size 437958648
|
checkpoint-54/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9247d16413eeefc63b794d2802e3ccbbf7e33b7bbe669e76272c1c1df52248a4
|
| 3 |
+
size 876032762
|
checkpoint-54/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3043859a42187b380d00c25ba64213adab0ebd97cfa590ad73165da1628a79bd
|
| 3 |
+
size 13990
|
checkpoint-54/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de132f175bc0e14819a2d51937981ed53642a320f83734bd31f4a1dee510c488
|
| 3 |
+
size 1064
|
checkpoint-54/trainer_state.json
ADDED
|
@@ -0,0 +1,257 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_metric": 0.3190089464187622,
|
| 3 |
+
"best_model_checkpoint": "C2BERT8020/checkpoint-54",
|
| 4 |
+
"epoch": 2.0,
|
| 5 |
+
"eval_steps": 500,
|
| 6 |
+
"global_step": 54,
|
| 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.07407407407407407,
|
| 13 |
+
"grad_norm": 4.380497455596924,
|
| 14 |
+
"learning_rate": 9.090909090909091e-06,
|
| 15 |
+
"loss": 0.6889,
|
| 16 |
+
"step": 2
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"epoch": 0.14814814814814814,
|
| 20 |
+
"grad_norm": 2.5329318046569824,
|
| 21 |
+
"learning_rate": 1.8181818181818182e-05,
|
| 22 |
+
"loss": 0.702,
|
| 23 |
+
"step": 4
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"epoch": 0.2222222222222222,
|
| 27 |
+
"grad_norm": 2.8458549976348877,
|
| 28 |
+
"learning_rate": 2.7272727272727273e-05,
|
| 29 |
+
"loss": 0.671,
|
| 30 |
+
"step": 6
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"epoch": 0.2962962962962963,
|
| 34 |
+
"grad_norm": 2.2392938137054443,
|
| 35 |
+
"learning_rate": 3.6363636363636364e-05,
|
| 36 |
+
"loss": 0.6919,
|
| 37 |
+
"step": 8
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"epoch": 0.37037037037037035,
|
| 41 |
+
"grad_norm": 4.687833786010742,
|
| 42 |
+
"learning_rate": 4.545454545454546e-05,
|
| 43 |
+
"loss": 0.6859,
|
| 44 |
+
"step": 10
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"epoch": 0.4444444444444444,
|
| 48 |
+
"grad_norm": 5.695174217224121,
|
| 49 |
+
"learning_rate": 4.948453608247423e-05,
|
| 50 |
+
"loss": 0.6657,
|
| 51 |
+
"step": 12
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"epoch": 0.5185185185185185,
|
| 55 |
+
"grad_norm": 8.305770874023438,
|
| 56 |
+
"learning_rate": 4.845360824742268e-05,
|
| 57 |
+
"loss": 0.7179,
|
| 58 |
+
"step": 14
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"epoch": 0.5925925925925926,
|
| 62 |
+
"grad_norm": 4.219016075134277,
|
| 63 |
+
"learning_rate": 4.7422680412371134e-05,
|
| 64 |
+
"loss": 0.6081,
|
| 65 |
+
"step": 16
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"epoch": 0.6666666666666666,
|
| 69 |
+
"grad_norm": 2.7648777961730957,
|
| 70 |
+
"learning_rate": 4.639175257731959e-05,
|
| 71 |
+
"loss": 0.603,
|
| 72 |
+
"step": 18
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"epoch": 0.7407407407407407,
|
| 76 |
+
"grad_norm": 3.07232666015625,
|
| 77 |
+
"learning_rate": 4.536082474226804e-05,
|
| 78 |
+
"loss": 0.5063,
|
| 79 |
+
"step": 20
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"epoch": 0.8148148148148148,
|
| 83 |
+
"grad_norm": 9.069519996643066,
|
| 84 |
+
"learning_rate": 4.4329896907216494e-05,
|
| 85 |
+
"loss": 0.5487,
|
| 86 |
+
"step": 22
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"epoch": 0.8888888888888888,
|
| 90 |
+
"grad_norm": 7.760250568389893,
|
| 91 |
+
"learning_rate": 4.329896907216495e-05,
|
| 92 |
+
"loss": 0.531,
|
| 93 |
+
"step": 24
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"epoch": 0.9629629629629629,
|
| 97 |
+
"grad_norm": 14.22015380859375,
|
| 98 |
+
"learning_rate": 4.2268041237113404e-05,
|
| 99 |
+
"loss": 0.5255,
|
| 100 |
+
"step": 26
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"epoch": 1.0,
|
| 104 |
+
"eval_accuracy": 0.8333333333333334,
|
| 105 |
+
"eval_auc": 0.9489655172413793,
|
| 106 |
+
"eval_f1": 0.8615384615384616,
|
| 107 |
+
"eval_loss": 0.419935017824173,
|
| 108 |
+
"eval_precision": 0.7777777777777778,
|
| 109 |
+
"eval_recall": 0.9655172413793104,
|
| 110 |
+
"eval_runtime": 38.0281,
|
| 111 |
+
"eval_samples_per_second": 2.84,
|
| 112 |
+
"eval_steps_per_second": 0.184,
|
| 113 |
+
"step": 27
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"epoch": 1.037037037037037,
|
| 117 |
+
"grad_norm": 4.825671672821045,
|
| 118 |
+
"learning_rate": 4.1237113402061855e-05,
|
| 119 |
+
"loss": 0.3071,
|
| 120 |
+
"step": 28
|
| 121 |
+
},
|
| 122 |
+
{
|
| 123 |
+
"epoch": 1.1111111111111112,
|
| 124 |
+
"grad_norm": 18.8424015045166,
|
| 125 |
+
"learning_rate": 4.020618556701031e-05,
|
| 126 |
+
"loss": 0.4476,
|
| 127 |
+
"step": 30
|
| 128 |
+
},
|
| 129 |
+
{
|
| 130 |
+
"epoch": 1.1851851851851851,
|
| 131 |
+
"grad_norm": 4.189688205718994,
|
| 132 |
+
"learning_rate": 3.9175257731958764e-05,
|
| 133 |
+
"loss": 0.2931,
|
| 134 |
+
"step": 32
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"epoch": 1.2592592592592593,
|
| 138 |
+
"grad_norm": 5.367835998535156,
|
| 139 |
+
"learning_rate": 3.8144329896907216e-05,
|
| 140 |
+
"loss": 0.3712,
|
| 141 |
+
"step": 34
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"epoch": 1.3333333333333333,
|
| 145 |
+
"grad_norm": 5.7360615730285645,
|
| 146 |
+
"learning_rate": 3.7113402061855674e-05,
|
| 147 |
+
"loss": 0.215,
|
| 148 |
+
"step": 36
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"epoch": 1.4074074074074074,
|
| 152 |
+
"grad_norm": 11.697545051574707,
|
| 153 |
+
"learning_rate": 3.6082474226804125e-05,
|
| 154 |
+
"loss": 0.2604,
|
| 155 |
+
"step": 38
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"epoch": 1.4814814814814814,
|
| 159 |
+
"grad_norm": 4.04725456237793,
|
| 160 |
+
"learning_rate": 3.5051546391752576e-05,
|
| 161 |
+
"loss": 0.2536,
|
| 162 |
+
"step": 40
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"epoch": 1.5555555555555556,
|
| 166 |
+
"grad_norm": 27.141387939453125,
|
| 167 |
+
"learning_rate": 3.4020618556701034e-05,
|
| 168 |
+
"loss": 0.1966,
|
| 169 |
+
"step": 42
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"epoch": 1.6296296296296298,
|
| 173 |
+
"grad_norm": 3.72564959526062,
|
| 174 |
+
"learning_rate": 3.2989690721649485e-05,
|
| 175 |
+
"loss": 0.3209,
|
| 176 |
+
"step": 44
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"epoch": 1.7037037037037037,
|
| 180 |
+
"grad_norm": 17.753421783447266,
|
| 181 |
+
"learning_rate": 3.1958762886597937e-05,
|
| 182 |
+
"loss": 0.329,
|
| 183 |
+
"step": 46
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"epoch": 1.7777777777777777,
|
| 187 |
+
"grad_norm": 35.16399383544922,
|
| 188 |
+
"learning_rate": 3.0927835051546395e-05,
|
| 189 |
+
"loss": 0.5011,
|
| 190 |
+
"step": 48
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"epoch": 1.8518518518518519,
|
| 194 |
+
"grad_norm": 30.641841888427734,
|
| 195 |
+
"learning_rate": 2.9896907216494846e-05,
|
| 196 |
+
"loss": 0.3952,
|
| 197 |
+
"step": 50
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"epoch": 1.925925925925926,
|
| 201 |
+
"grad_norm": 21.280223846435547,
|
| 202 |
+
"learning_rate": 2.8865979381443297e-05,
|
| 203 |
+
"loss": 0.5307,
|
| 204 |
+
"step": 52
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"epoch": 2.0,
|
| 208 |
+
"grad_norm": 27.35190773010254,
|
| 209 |
+
"learning_rate": 2.7835051546391755e-05,
|
| 210 |
+
"loss": 0.3087,
|
| 211 |
+
"step": 54
|
| 212 |
+
},
|
| 213 |
+
{
|
| 214 |
+
"epoch": 2.0,
|
| 215 |
+
"eval_accuracy": 0.8425925925925926,
|
| 216 |
+
"eval_auc": 0.9703448275862069,
|
| 217 |
+
"eval_f1": 0.8682170542635659,
|
| 218 |
+
"eval_loss": 0.3190089464187622,
|
| 219 |
+
"eval_precision": 0.7887323943661971,
|
| 220 |
+
"eval_recall": 0.9655172413793104,
|
| 221 |
+
"eval_runtime": 40.4847,
|
| 222 |
+
"eval_samples_per_second": 2.668,
|
| 223 |
+
"eval_steps_per_second": 0.173,
|
| 224 |
+
"step": 54
|
| 225 |
+
}
|
| 226 |
+
],
|
| 227 |
+
"logging_steps": 2,
|
| 228 |
+
"max_steps": 108,
|
| 229 |
+
"num_input_tokens_seen": 0,
|
| 230 |
+
"num_train_epochs": 4,
|
| 231 |
+
"save_steps": 500,
|
| 232 |
+
"stateful_callbacks": {
|
| 233 |
+
"EarlyStoppingCallback": {
|
| 234 |
+
"args": {
|
| 235 |
+
"early_stopping_patience": 5,
|
| 236 |
+
"early_stopping_threshold": 0.01
|
| 237 |
+
},
|
| 238 |
+
"attributes": {
|
| 239 |
+
"early_stopping_patience_counter": 0
|
| 240 |
+
}
|
| 241 |
+
},
|
| 242 |
+
"TrainerControl": {
|
| 243 |
+
"args": {
|
| 244 |
+
"should_epoch_stop": false,
|
| 245 |
+
"should_evaluate": false,
|
| 246 |
+
"should_log": false,
|
| 247 |
+
"should_save": true,
|
| 248 |
+
"should_training_stop": false
|
| 249 |
+
},
|
| 250 |
+
"attributes": {}
|
| 251 |
+
}
|
| 252 |
+
},
|
| 253 |
+
"total_flos": 169706630707200.0,
|
| 254 |
+
"train_batch_size": 8,
|
| 255 |
+
"trial_name": null,
|
| 256 |
+
"trial_params": null
|
| 257 |
+
}
|
checkpoint-54/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c5e572be3221cf8b217cbbb76f7cdc2532314d8b4da8a8d76445afdfe579b8a
|
| 3 |
+
size 5368
|
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": "fake",
|
| 15 |
+
"1": "real"
|
| 16 |
+
},
|
| 17 |
+
"initializer_range": 0.02,
|
| 18 |
+
"intermediate_size": 3072,
|
| 19 |
+
"label2id": {
|
| 20 |
+
"fake": 0,
|
| 21 |
+
"real": 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.48.0",
|
| 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:d1e8790f1ba7bd350cd3336a59bfaa2793858e15b272a870eb0953eb0b732f60
|
| 3 |
+
size 437958648
|
runs/Oct02_02-20-38_r-iosvanny-textclassif2-w8r9syrf-f62ca-0k39x/events.out.tfevents.1759371640.r-iosvanny-textclassif2-w8r9syrf-f62ca-0k39x.62.0
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8ada10b6e0ff8f18700d8ec6dd51da0de4186a005016fcc8e9aa8d4a81a9f3a0
|
| 3 |
+
size 18742
|
runs/Oct02_02-20-38_r-iosvanny-textclassif2-w8r9syrf-f62ca-0k39x/events.out.tfevents.1759373619.r-iosvanny-textclassif2-w8r9syrf-f62ca-0k39x.62.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d9d6010fa0becf05e54b0ca44d728f8dd6298ce6ae574c7add215575de6f0733
|
| 3 |
+
size 597
|
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,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
"extra_special_tokens": {},
|
| 48 |
+
"mask_token": "[MASK]",
|
| 49 |
+
"model_max_length": 512,
|
| 50 |
+
"pad_token": "[PAD]",
|
| 51 |
+
"sep_token": "[SEP]",
|
| 52 |
+
"strip_accents": null,
|
| 53 |
+
"tokenize_chinese_chars": true,
|
| 54 |
+
"tokenizer_class": "BertTokenizer",
|
| 55 |
+
"unk_token": "[UNK]"
|
| 56 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c5e572be3221cf8b217cbbb76f7cdc2532314d8b4da8a8d76445afdfe579b8a
|
| 3 |
+
size 5368
|
training_params.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"data_path": "C2BERT8020/autotrain-data",
|
| 3 |
+
"model": "google-bert/bert-base-uncased",
|
| 4 |
+
"lr": 5e-05,
|
| 5 |
+
"epochs": 4,
|
| 6 |
+
"max_seq_length": 384,
|
| 7 |
+
"batch_size": 8,
|
| 8 |
+
"warmup_ratio": 0.1,
|
| 9 |
+
"gradient_accumulation": 2,
|
| 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": "C2BERT8020",
|
| 21 |
+
"auto_find_batch_size": false,
|
| 22 |
+
"mixed_precision": "none",
|
| 23 |
+
"save_total_limit": 1,
|
| 24 |
+
"push_to_hub": true,
|
| 25 |
+
"eval_strategy": "epoch",
|
| 26 |
+
"username": "Iosvanny",
|
| 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
|
|
|