Mridul2003 commited on
Commit
3f87caa
·
verified ·
1 Parent(s): 4bce612

Update config.json

Browse files
Files changed (1) hide show
  1. config.json +12 -19
config.json CHANGED
@@ -1,36 +1,29 @@
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":"not_identity_hate",
14
- "1":"identity_hate"
15
- },
16
  "initializer_range": 0.02,
17
  "intermediate_size": 3072,
18
- "label2id": {
19
- "identity_hate":1,
20
- "not_identity_hate":0
21
- },
22
  "layer_norm_eps": 1e-12,
23
  "max_position_embeddings": 512,
24
- "model_type": "bert",
25
  "num_attention_heads": 12,
26
  "num_hidden_layers": 12,
 
27
  "num_offensive_labels": 1,
28
- "num_toxicity_labels": 2,
29
  "pad_token_id": 0,
30
- "position_embedding_type": "absolute",
31
- "problem_type": "multi_label_classification",
32
- "transformers_version": "4.26.1",
33
  "type_vocab_size": 2,
34
- "use_cache": true,
35
- "vocab_size": 30522
36
- }
 
 
 
 
 
 
 
 
1
  {
 
2
  "architectures": [
3
  "BertForSequenceClassification"
4
  ],
5
  "attention_probs_dropout_prob": 0.1,
 
 
6
  "hidden_act": "gelu",
7
  "hidden_dropout_prob": 0.1,
8
  "hidden_size": 768,
 
 
 
 
9
  "initializer_range": 0.02,
10
  "intermediate_size": 3072,
 
 
 
 
11
  "layer_norm_eps": 1e-12,
12
  "max_position_embeddings": 512,
 
13
  "num_attention_heads": 12,
14
  "num_hidden_layers": 12,
15
+ "num_labels": 2,
16
  "num_offensive_labels": 1,
17
+ "num_toxicity_labels": 6,
18
  "pad_token_id": 0,
 
 
 
19
  "type_vocab_size": 2,
20
+ "vocab_size": 30522,
21
+ "label2id": {
22
+ "not_identity_hate": 0,
23
+ "identity_hate": 1
24
+ },
25
+ "id2label": {
26
+ "0": "not_identity_hate",
27
+ "1": "identity_hate"
28
+ }
29
+ }