jairNeto commited on
Commit
3a7d7b0
1 Parent(s): 631b4f6

Jairnetojp/content-moderation-v1

Browse files
README.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Jairnetojp/content-moderation
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - f1
7
+ - accuracy
8
+ model-index:
9
+ - name: bert-finetuned-sem_eval-english
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # bert-finetuned-sem_eval-english
17
+
18
+ This model is a fine-tuned version of [Jairnetojp/content-moderation](https://huggingface.co/Jairnetojp/content-moderation) on an unknown dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.2343
21
+ - F1: 0.5458
22
+ - Roc Auc: 0.7829
23
+ - Accuracy: 0.4655
24
+
25
+ ## Model description
26
+
27
+ More information needed
28
+
29
+ ## Intended uses & limitations
30
+
31
+ More information needed
32
+
33
+ ## Training and evaluation data
34
+
35
+ More information needed
36
+
37
+ ## Training procedure
38
+
39
+ ### Training hyperparameters
40
+
41
+ The following hyperparameters were used during training:
42
+ - learning_rate: 2e-05
43
+ - train_batch_size: 128
44
+ - eval_batch_size: 128
45
+ - seed: 42
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: linear
48
+ - num_epochs: 3
49
+
50
+ ### Training results
51
+
52
+ | Training Loss | Epoch | Step | Validation Loss | F1 | Roc Auc | Accuracy |
53
+ |:-------------:|:-----:|:----:|:---------------:|:------:|:-------:|:--------:|
54
+ | No log | 1.0 | 232 | 0.2283 | 0.5361 | 0.7829 | 0.4503 |
55
+ | No log | 2.0 | 464 | 0.2343 | 0.5458 | 0.7829 | 0.4655 |
56
+ | 0.069 | 3.0 | 696 | 0.2461 | 0.5392 | 0.7832 | 0.4544 |
57
+
58
+
59
+ ### Framework versions
60
+
61
+ - Transformers 4.38.2
62
+ - Pytorch 2.1.0+cu121
63
+ - Datasets 2.18.0
64
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Jairnetojp/content-moderation",
3
+ "activation": "gelu",
4
+ "architectures": [
5
+ "DistilBertForSequenceClassification"
6
+ ],
7
+ "attention_dropout": 0.1,
8
+ "dim": 768,
9
+ "dropout": 0.1,
10
+ "hidden_dim": 3072,
11
+ "id2label": {
12
+ "0": "Doxxing",
13
+ "1": "Profanity",
14
+ "2": "Grooming",
15
+ "3": "CSAMDiscussion",
16
+ "4": "Toxic",
17
+ "5": "Bullying",
18
+ "6": "Sexual",
19
+ "7": "Hate",
20
+ "8": "SelfHarm",
21
+ "9": "Radical",
22
+ "10": "Threat",
23
+ "11": "Insult",
24
+ "12": "VulgarName",
25
+ "13": "PII",
26
+ "14": "Blocked"
27
+ },
28
+ "initializer_range": 0.02,
29
+ "label2id": {
30
+ "Blocked": 14,
31
+ "Bullying": 5,
32
+ "CSAMDiscussion": 3,
33
+ "Doxxing": 0,
34
+ "Grooming": 2,
35
+ "Hate": 7,
36
+ "Insult": 11,
37
+ "PII": 13,
38
+ "Profanity": 1,
39
+ "Radical": 9,
40
+ "SelfHarm": 8,
41
+ "Sexual": 6,
42
+ "Threat": 10,
43
+ "Toxic": 4,
44
+ "VulgarName": 12
45
+ },
46
+ "max_position_embeddings": 512,
47
+ "model_type": "distilbert",
48
+ "n_heads": 12,
49
+ "n_layers": 6,
50
+ "output_past": true,
51
+ "pad_token_id": 0,
52
+ "problem_type": "multi_label_classification",
53
+ "qa_dropout": 0.1,
54
+ "seq_classif_dropout": 0.2,
55
+ "sinusoidal_pos_embds": false,
56
+ "tie_weights_": true,
57
+ "torch_dtype": "float32",
58
+ "transformers_version": "4.38.2",
59
+ "vocab_size": 119547
60
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d56fbe9e2bfc52901e8695f7587c08611a9c4b3ba0f71eb712f00b7d2ef7d9ed
3
+ size 541357364
runs/Mar10_20-04-57_a5a2f8f00184/events.out.tfevents.1710101106.a5a2f8f00184.398.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50124af7e18c86347cc8dd2226b04f579f20bff225540095fecb0fea928ae1d7
3
+ size 7061
runs/Mar10_20-04-57_a5a2f8f00184/events.out.tfevents.1710101782.a5a2f8f00184.398.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9feb5e9af04e9b30d9b3752c5e9d60b0f6f7e4faaa181792e245768e07f0f56
3
+ size 508
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
47
+ "mask_token": "[MASK]",
48
+ "max_length": 128,
49
+ "model_max_length": 1000000000000000019884624838656,
50
+ "pad_to_multiple_of": null,
51
+ "pad_token": "[PAD]",
52
+ "pad_token_type_id": 0,
53
+ "padding_side": "right",
54
+ "sep_token": "[SEP]",
55
+ "stride": 0,
56
+ "strip_accents": null,
57
+ "tokenize_chinese_chars": true,
58
+ "tokenizer_class": "DistilBertTokenizer",
59
+ "truncation_side": "right",
60
+ "truncation_strategy": "longest_first",
61
+ "unk_token": "[UNK]"
62
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a47dcb04585bfa51bc8a6b978a20bfb68324e8965313e07336766dad83a36060
3
+ size 4920
vocab.txt ADDED
The diff for this file is too large to render. See raw diff