Hanish2007
commited on
End of training
Browse files- README.md +69 -0
- config.json +101 -0
- model.safetensors +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +55 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: distilbert/distilbert-base-uncased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
model-index:
|
9 |
+
- name: brand-safety-model
|
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 |
+
# brand-safety-model
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [distilbert/distilbert-base-uncased](https://huggingface.co/distilbert/distilbert-base-uncased) on an unknown dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 1.3497
|
21 |
+
- Accuracy: 0.6355
|
22 |
+
|
23 |
+
## Model description
|
24 |
+
|
25 |
+
More information needed
|
26 |
+
|
27 |
+
## Intended uses & limitations
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Training and evaluation data
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training procedure
|
36 |
+
|
37 |
+
### Training hyperparameters
|
38 |
+
|
39 |
+
The following hyperparameters were used during training:
|
40 |
+
- learning_rate: 3e-05
|
41 |
+
- train_batch_size: 32
|
42 |
+
- eval_batch_size: 32
|
43 |
+
- seed: 42
|
44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
+
- lr_scheduler_type: linear
|
46 |
+
- num_epochs: 10
|
47 |
+
|
48 |
+
### Training results
|
49 |
+
|
50 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
51 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
52 |
+
| 3.319 | 1.0 | 65 | 2.7462 | 0.4230 |
|
53 |
+
| 2.6272 | 2.0 | 130 | 2.0795 | 0.5010 |
|
54 |
+
| 2.137 | 3.0 | 195 | 1.6683 | 0.5770 |
|
55 |
+
| 1.469 | 4.0 | 260 | 1.4721 | 0.6101 |
|
56 |
+
| 1.2405 | 5.0 | 325 | 1.3497 | 0.6355 |
|
57 |
+
| 1.1023 | 6.0 | 390 | 1.2936 | 0.6335 |
|
58 |
+
| 0.9206 | 7.0 | 455 | 1.2855 | 0.6316 |
|
59 |
+
| 0.8374 | 8.0 | 520 | 1.2579 | 0.6355 |
|
60 |
+
| 0.794 | 9.0 | 585 | 1.2525 | 0.6335 |
|
61 |
+
| 0.7388 | 10.0 | 650 | 1.2478 | 0.6316 |
|
62 |
+
|
63 |
+
|
64 |
+
### Framework versions
|
65 |
+
|
66 |
+
- Transformers 4.44.0
|
67 |
+
- Pytorch 2.4.0
|
68 |
+
- Datasets 2.20.0
|
69 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "distilbert/distilbert-base-uncased",
|
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": "Pornography",
|
13 |
+
"1": "Erotica",
|
14 |
+
"2": "Adult Content",
|
15 |
+
"3": "Crime",
|
16 |
+
"4": "Sexual Assault",
|
17 |
+
"5": "Violent Crime",
|
18 |
+
"6": "Terrorist Attacks",
|
19 |
+
"7": "Counterterrorism",
|
20 |
+
"8": "Smoking",
|
21 |
+
"9": "Vaping",
|
22 |
+
"10": "Tobacco Use",
|
23 |
+
"11": "Military Conflict",
|
24 |
+
"12": "War",
|
25 |
+
"13": "International Relations",
|
26 |
+
"14": "Pandemic",
|
27 |
+
"15": "Vaccines",
|
28 |
+
"16": "Health Guidelines",
|
29 |
+
"17": "COVID-19 News",
|
30 |
+
"18": "Cybersecurity",
|
31 |
+
"19": "Hacking",
|
32 |
+
"20": "Malware",
|
33 |
+
"21": "Addiction",
|
34 |
+
"22": "Substance Abuse",
|
35 |
+
"23": "Rehabilitation",
|
36 |
+
"24": "Hate Speech",
|
37 |
+
"25": "Offensive Language",
|
38 |
+
"26": "Discrimination",
|
39 |
+
"27": "Racism",
|
40 |
+
"28": "Homophobia",
|
41 |
+
"29": "Accidents",
|
42 |
+
"30": "Disasters",
|
43 |
+
"31": "Public Safety",
|
44 |
+
"32": "Weapons",
|
45 |
+
"33": "Gun Control",
|
46 |
+
"34": "Firearms",
|
47 |
+
"35": "Death"
|
48 |
+
},
|
49 |
+
"initializer_range": 0.02,
|
50 |
+
"label2id": {
|
51 |
+
"Accidents": 29,
|
52 |
+
"Addiction": 21,
|
53 |
+
"Adult Content": 2,
|
54 |
+
"COVID-19 News": 17,
|
55 |
+
"Counterterrorism": 7,
|
56 |
+
"Crime": 3,
|
57 |
+
"Cybersecurity": 18,
|
58 |
+
"Death": 35,
|
59 |
+
"Disasters": 30,
|
60 |
+
"Discrimination": 26,
|
61 |
+
"Erotica": 1,
|
62 |
+
"Firearms": 34,
|
63 |
+
"Gun Control": 33,
|
64 |
+
"Hacking": 19,
|
65 |
+
"Hate Speech": 24,
|
66 |
+
"Health Guidelines": 16,
|
67 |
+
"Homophobia": 28,
|
68 |
+
"International Relations": 13,
|
69 |
+
"Malware": 20,
|
70 |
+
"Military Conflict": 11,
|
71 |
+
"Offensive Language": 25,
|
72 |
+
"Pandemic": 14,
|
73 |
+
"Pornography": 0,
|
74 |
+
"Public Safety": 31,
|
75 |
+
"Racism": 27,
|
76 |
+
"Rehabilitation": 23,
|
77 |
+
"Sexual Assault": 4,
|
78 |
+
"Smoking": 8,
|
79 |
+
"Substance Abuse": 22,
|
80 |
+
"Terrorist Attacks": 6,
|
81 |
+
"Tobacco Use": 10,
|
82 |
+
"Vaccines": 15,
|
83 |
+
"Vaping": 9,
|
84 |
+
"Violent Crime": 5,
|
85 |
+
"War": 12,
|
86 |
+
"Weapons": 32
|
87 |
+
},
|
88 |
+
"max_position_embeddings": 512,
|
89 |
+
"model_type": "distilbert",
|
90 |
+
"n_heads": 12,
|
91 |
+
"n_layers": 6,
|
92 |
+
"pad_token_id": 0,
|
93 |
+
"problem_type": "single_label_classification",
|
94 |
+
"qa_dropout": 0.1,
|
95 |
+
"seq_classif_dropout": 0.2,
|
96 |
+
"sinusoidal_pos_embds": false,
|
97 |
+
"tie_weights_": true,
|
98 |
+
"torch_dtype": "float32",
|
99 |
+
"transformers_version": "4.44.0",
|
100 |
+
"vocab_size": 30522
|
101 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:72c8c1cf03c6864b2956e5235f34b02bcd3ea51f808ba94f5e30e78c84d468bb
|
3 |
+
size 267937160
|
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,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": true,
|
47 |
+
"mask_token": "[MASK]",
|
48 |
+
"model_max_length": 512,
|
49 |
+
"pad_token": "[PAD]",
|
50 |
+
"sep_token": "[SEP]",
|
51 |
+
"strip_accents": null,
|
52 |
+
"tokenize_chinese_chars": true,
|
53 |
+
"tokenizer_class": "DistilBertTokenizer",
|
54 |
+
"unk_token": "[UNK]"
|
55 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e9a68dcb35447df75f0612c9054154ae4966d21ea11f108d3320c9e29bf8278
|
3 |
+
size 5112
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|