End of training
Browse files- README.md +58 -6
- config.json +31 -16
- model.safetensors +2 -2
- runs/Jun05_22-47-36_012f435e25f8/events.out.tfevents.1749163660.012f435e25f8.911.0 +3 -0
- runs/Jun05_22-48-02_012f435e25f8/events.out.tfevents.1749163682.012f435e25f8.911.1 +3 -0
- runs/Jun05_22-49-40_012f435e25f8/events.out.tfevents.1749163781.012f435e25f8.911.2 +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +2 -2
- training_args.bin +1 -1
- vocab.txt +0 -0
README.md
CHANGED
|
@@ -1,10 +1,62 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
|
|
|
|
| 6 |
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: bert-large-cased
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
metrics:
|
| 8 |
+
- accuracy
|
| 9 |
+
model-index:
|
| 10 |
+
- name: cyberbullying_classifier
|
| 11 |
+
results: []
|
| 12 |
+
---
|
| 13 |
|
| 14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 15 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 16 |
|
| 17 |
+
# cyberbullying_classifier
|
| 18 |
|
| 19 |
+
This model is a fine-tuned version of [bert-large-cased](https://huggingface.co/bert-large-cased) on the None dataset.
|
| 20 |
+
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 0.4109
|
| 22 |
+
- Accuracy: 0.8762
|
| 23 |
|
| 24 |
+
## Model description
|
| 25 |
+
|
| 26 |
+
More information needed
|
| 27 |
+
|
| 28 |
+
## Intended uses & limitations
|
| 29 |
+
|
| 30 |
+
More information needed
|
| 31 |
+
|
| 32 |
+
## Training and evaluation data
|
| 33 |
+
|
| 34 |
+
More information needed
|
| 35 |
+
|
| 36 |
+
## Training procedure
|
| 37 |
+
|
| 38 |
+
### Training hyperparameters
|
| 39 |
+
|
| 40 |
+
The following hyperparameters were used during training:
|
| 41 |
+
- learning_rate: 2e-05
|
| 42 |
+
- train_batch_size: 16
|
| 43 |
+
- eval_batch_size: 16
|
| 44 |
+
- seed: 42
|
| 45 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 46 |
+
- lr_scheduler_type: linear
|
| 47 |
+
- num_epochs: 2
|
| 48 |
+
|
| 49 |
+
### Training results
|
| 50 |
+
|
| 51 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 52 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 53 |
+
| 0.2371 | 1.0 | 895 | 0.3629 | 0.8584 |
|
| 54 |
+
| 0.1252 | 2.0 | 1790 | 0.4109 | 0.8762 |
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
### Framework versions
|
| 58 |
+
|
| 59 |
+
- Transformers 4.52.3
|
| 60 |
+
- Pytorch 2.6.0+cu124
|
| 61 |
+
- Datasets 2.14.4
|
| 62 |
+
- Tokenizers 0.21.1
|
config.json
CHANGED
|
@@ -1,24 +1,39 @@
|
|
| 1 |
{
|
| 2 |
-
"activation": "gelu",
|
| 3 |
"architectures": [
|
| 4 |
-
"
|
| 5 |
],
|
| 6 |
-
"
|
| 7 |
-
"
|
| 8 |
-
"
|
| 9 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
"initializer_range": 0.02,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
"max_position_embeddings": 512,
|
| 12 |
-
"model_type": "
|
| 13 |
-
"
|
| 14 |
-
"
|
| 15 |
"pad_token_id": 0,
|
| 16 |
-
"
|
| 17 |
-
"
|
| 18 |
-
"
|
| 19 |
-
"
|
| 20 |
-
"
|
|
|
|
| 21 |
"torch_dtype": "float32",
|
| 22 |
-
"transformers_version": "4.52.
|
| 23 |
-
"
|
|
|
|
|
|
|
| 24 |
}
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
+
"BertForSequenceClassification"
|
| 4 |
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"classifier_dropout": null,
|
| 7 |
+
"directionality": "bidi",
|
| 8 |
+
"gradient_checkpointing": false,
|
| 9 |
+
"hidden_act": "gelu",
|
| 10 |
+
"hidden_dropout_prob": 0.1,
|
| 11 |
+
"hidden_size": 1024,
|
| 12 |
+
"id2label": {
|
| 13 |
+
"0": "NEGATIVE",
|
| 14 |
+
"1": "POSITIVE"
|
| 15 |
+
},
|
| 16 |
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 4096,
|
| 18 |
+
"label2id": {
|
| 19 |
+
"NEGATIVE": 0,
|
| 20 |
+
"POSITIVE": 1
|
| 21 |
+
},
|
| 22 |
+
"layer_norm_eps": 1e-12,
|
| 23 |
"max_position_embeddings": 512,
|
| 24 |
+
"model_type": "bert",
|
| 25 |
+
"num_attention_heads": 16,
|
| 26 |
+
"num_hidden_layers": 24,
|
| 27 |
"pad_token_id": 0,
|
| 28 |
+
"pooler_fc_size": 768,
|
| 29 |
+
"pooler_num_attention_heads": 12,
|
| 30 |
+
"pooler_num_fc_layers": 3,
|
| 31 |
+
"pooler_size_per_head": 128,
|
| 32 |
+
"pooler_type": "first_token_transform",
|
| 33 |
+
"position_embedding_type": "absolute",
|
| 34 |
"torch_dtype": "float32",
|
| 35 |
+
"transformers_version": "4.52.3",
|
| 36 |
+
"type_vocab_size": 2,
|
| 37 |
+
"use_cache": true,
|
| 38 |
+
"vocab_size": 28996
|
| 39 |
}
|
model.safetensors
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:ca96d9e677a973119b51c1de79152432f7ce32d76f4cbe5d3ef12c87b19a5088
|
| 3 |
+
size 1334372264
|
runs/Jun05_22-47-36_012f435e25f8/events.out.tfevents.1749163660.012f435e25f8.911.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f48d10afcba7f0b958fa6117c6394ab5b3d2f7519aee3ac0b52db2f43f3b889
|
| 3 |
+
size 5210
|
runs/Jun05_22-48-02_012f435e25f8/events.out.tfevents.1749163682.012f435e25f8.911.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7d0cec35969e405c0166a2ce977ddd6fef095ef0551cd67eda3346781e6096aa
|
| 3 |
+
size 5210
|
runs/Jun05_22-49-40_012f435e25f8/events.out.tfevents.1749163781.012f435e25f8.911.2
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bf48162c3c326af977896c6b2f7ec42fe8d32150df51b338271d01c7458f3823
|
| 3 |
+
size 131796
|
tokenizer.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
CHANGED
|
@@ -43,7 +43,7 @@
|
|
| 43 |
},
|
| 44 |
"clean_up_tokenization_spaces": false,
|
| 45 |
"cls_token": "[CLS]",
|
| 46 |
-
"do_lower_case":
|
| 47 |
"extra_special_tokens": {},
|
| 48 |
"mask_token": "[MASK]",
|
| 49 |
"model_max_length": 512,
|
|
@@ -51,6 +51,6 @@
|
|
| 51 |
"sep_token": "[SEP]",
|
| 52 |
"strip_accents": null,
|
| 53 |
"tokenize_chinese_chars": true,
|
| 54 |
-
"tokenizer_class": "
|
| 55 |
"unk_token": "[UNK]"
|
| 56 |
}
|
|
|
|
| 43 |
},
|
| 44 |
"clean_up_tokenization_spaces": false,
|
| 45 |
"cls_token": "[CLS]",
|
| 46 |
+
"do_lower_case": false,
|
| 47 |
"extra_special_tokens": {},
|
| 48 |
"mask_token": "[MASK]",
|
| 49 |
"model_max_length": 512,
|
|
|
|
| 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
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5304
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:85444d279c6324abf6b67c58db44162ad018132d2f23690dcd610184cd1977fc
|
| 3 |
size 5304
|
vocab.txt
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|