Dharil commited on
Commit
5f9e0be
·
verified ·
1 Parent(s): 09c751f

Dharil/toxic-initial-training

Browse files
Files changed (4) hide show
  1. README.md +65 -0
  2. config.json +43 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: unitary/toxic-bert
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: results
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
+ # results
18
+
19
+ This model is a fine-tuned version of [unitary/toxic-bert](https://huggingface.co/unitary/toxic-bert) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.3031
22
+ - Accuracy: 64.2857
23
+ - Hamming Loss: 0.1111
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: 0.001
43
+ - train_batch_size: 16
44
+ - eval_batch_size: 64
45
+ - seed: 42
46
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
47
+ - lr_scheduler_type: linear
48
+ - lr_scheduler_warmup_steps: 500
49
+ - num_epochs: 3
50
+
51
+ ### Training results
52
+
53
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Hamming Loss |
54
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:------------:|
55
+ | 0.2107 | 1.0 | 11 | 0.3031 | 64.2857 | 0.1111 |
56
+ | 0.1632 | 2.0 | 22 | 0.3285 | 54.7619 | 0.1349 |
57
+ | 0.1236 | 3.0 | 33 | 0.3710 | 64.2857 | 0.0952 |
58
+
59
+
60
+ ### Framework versions
61
+
62
+ - Transformers 4.48.3
63
+ - Pytorch 2.5.1+cu124
64
+ - Datasets 3.3.2
65
+ - Tokenizers 0.21.0
config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "unitary/toxic-bert",
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
+ "id2label": {
13
+ "0": "toxic",
14
+ "1": "severe_toxic",
15
+ "2": "obscene",
16
+ "3": "threat",
17
+ "4": "insult",
18
+ "5": "identity_hate"
19
+ },
20
+ "initializer_range": 0.02,
21
+ "intermediate_size": 3072,
22
+ "label2id": {
23
+ "identity_hate": 5,
24
+ "insult": 4,
25
+ "obscene": 2,
26
+ "severe_toxic": 1,
27
+ "threat": 3,
28
+ "toxic": 0
29
+ },
30
+ "layer_norm_eps": 1e-12,
31
+ "max_position_embeddings": 512,
32
+ "model_type": "bert",
33
+ "num_attention_heads": 12,
34
+ "num_hidden_layers": 12,
35
+ "pad_token_id": 0,
36
+ "position_embedding_type": "absolute",
37
+ "problem_type": "multi_label_classification",
38
+ "torch_dtype": "float32",
39
+ "transformers_version": "4.48.3",
40
+ "type_vocab_size": 2,
41
+ "use_cache": true,
42
+ "vocab_size": 30522
43
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d256acf0b7b572a887fc6d0ba1ece41f104874a90de541d41c4c230a6d1bcce5
3
+ size 437970952
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aae4ba74685822c26b95e29e4e29681deb2e9861346feb4fe6fbdc373bfe89e9
3
+ size 5304