ekurtulus commited on
Commit
7dae81f
·
verified ·
1 Parent(s): 42316f1

End of training

Browse files
README.md CHANGED
@@ -1,10 +1,62 @@
1
- Example use:
 
 
 
 
 
 
 
 
 
 
 
2
 
3
- from transformers import pipeline
4
- text = "This was a masterpiece. Not completely faithful to the books, but enthralling from beginning to end. Might be my favorite of the three."
5
 
 
6
 
7
- classifier = pipeline("sentiment-analysis", model="ekurtulus/cyberbullying_classifier")
8
- classifier(text)
 
 
9
 
10
- # label=0 not bullying, label=1 bullying
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
- "DistilBertForSequenceClassification"
5
  ],
6
- "attention_dropout": 0.1,
7
- "dim": 768,
8
- "dropout": 0.1,
9
- "hidden_dim": 3072,
 
 
 
 
 
 
 
10
  "initializer_range": 0.02,
 
 
 
 
 
 
11
  "max_position_embeddings": 512,
12
- "model_type": "distilbert",
13
- "n_heads": 12,
14
- "n_layers": 6,
15
  "pad_token_id": 0,
16
- "problem_type": "single_label_classification",
17
- "qa_dropout": 0.1,
18
- "seq_classif_dropout": 0.2,
19
- "sinusoidal_pos_embds": false,
20
- "tie_weights_": true,
 
21
  "torch_dtype": "float32",
22
- "transformers_version": "4.52.2",
23
- "vocab_size": 30522
 
 
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:82f9cb16d3268ebc49d7e2ae292a798e4bca625454058c51b61d5f57b257f92d
3
- size 267832560
 
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": true,
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": "DistilBertTokenizer",
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:3c15f4bf0aa5e41335bde28fde366d1ddfab76be4f0b4c9d0c0b0a5b8035a236
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