MukundGarg commited on
Commit
fc2fbdd
·
verified ·
1 Parent(s): 41307a7

Add experimental SAFORA binary risk classifier

Browse files
conversation-risk-binary/config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation": "gelu",
3
+ "architectures": [
4
+ "DistilBertForSequenceClassification"
5
+ ],
6
+ "attention_dropout": 0.1,
7
+ "bos_token_id": null,
8
+ "dim": 768,
9
+ "dropout": 0.1,
10
+ "dtype": "float32",
11
+ "eos_token_id": null,
12
+ "hidden_dim": 3072,
13
+ "id2label": {
14
+ "0": "BENIGN",
15
+ "1": "HARMFUL"
16
+ },
17
+ "initializer_range": 0.02,
18
+ "label2id": {
19
+ "BENIGN": 0,
20
+ "HARMFUL": 1
21
+ },
22
+ "max_position_embeddings": 512,
23
+ "model_type": "distilbert",
24
+ "n_heads": 12,
25
+ "n_layers": 6,
26
+ "output_past": true,
27
+ "pad_token_id": 0,
28
+ "problem_type": "single_label_classification",
29
+ "qa_dropout": 0.1,
30
+ "seq_classif_dropout": 0.2,
31
+ "sinusoidal_pos_embds": false,
32
+ "tie_weights_": true,
33
+ "tie_word_embeddings": true,
34
+ "transformers_version": "5.20.2",
35
+ "vocab_size": 119547
36
+ }
conversation-risk-binary/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1063634bad33287754576cffdbe9834d9ce7ec2b05eb277ed919565f4eabfa0
3
+ size 541317368
conversation-risk-binary/safora_metadata.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_name": "SAFORA Binary Text Safety Baseline",
3
+ "base_model": "distilbert/distilbert-base-multilingual-cased",
4
+ "source_dataset": "Nebulixlabs/FullSafety",
5
+ "labels": [
6
+ "BENIGN",
7
+ "HARMFUL"
8
+ ],
9
+ "threshold": 0.05,
10
+ "validation_metrics": {
11
+ "threshold": 0.05,
12
+ "precision": 0.9681818181818181,
13
+ "recall": 0.9815668202764977,
14
+ "f1": 0.9748283752860412
15
+ },
16
+ "test_accuracy": 0.9685099846390169,
17
+ "test_confusion_matrix": [
18
+ [
19
+ 618,
20
+ 33
21
+ ],
22
+ [
23
+ 8,
24
+ 643
25
+ ]
26
+ ],
27
+ "max_length": 128,
28
+ "status": "research_only",
29
+ "validated_for_emergency_escalation": false,
30
+ "not_equivalent_to_safora_risk_v2": true
31
+ }
conversation-risk-binary/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
conversation-risk-binary/tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": false,
5
+ "is_local": true,
6
+ "local_files_only": true,
7
+ "mask_token": "[MASK]",
8
+ "model_max_length": 512,
9
+ "pad_token": "[PAD]",
10
+ "sep_token": "[SEP]",
11
+ "strip_accents": null,
12
+ "tokenize_chinese_chars": true,
13
+ "tokenizer_class": "BertTokenizer",
14
+ "unk_token": "[UNK]"
15
+ }