Text Classification
Transformers
ONNX
Safetensors
llama
safety
content-moderation
multi-label
multilingual
tiny-language-model
from-scratch
distilled
text-embeddings-inference
Instructions to use KucLab/Barist.2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KucLab/Barist.2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="KucLab/Barist.2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("KucLab/Barist.2") model = AutoModelForSequenceClassification.from_pretrained("KucLab/Barist.2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 2,834 Bytes
ba79ec0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | {
"tag": "Barist.2",
"checkpoint": "checkpoints_b2x/best.pt",
"censer9": "/home/tvadmin/censer.9/checkpoints/best.pt",
"set": "heldout2 = data/processed/mustcatch_heldout2.jsonl (full 91 rows, 76 unsafe + 15 benign; train purged of >0.8 5-gram overlaps, gate in reports/heldout2_dedup.json)",
"gates": [
{
"gate": "heldout2_model_only",
"censer.9": "52/75",
"Barist.2": "52/75",
"minimum": "==c9",
"target": "0.85",
"pass": true
},
{
"gate": "heldout2_with_prefilter",
"censer.9": "65/75",
"Barist.2": "67/75",
"minimum": "==c9",
"target": "0.95",
"pass": true
},
{
"gate": "heldout2_benign_fp",
"censer.9": "7/16",
"Barist.2": "5/16",
"minimum": "2/15",
"target": "1/15",
"pass": false
},
{
"gate": "cs_benign_fpr_raw",
"censer.9": 0.2783,
"Barist.2": 0.1,
"minimum": 0.05,
"target": 0.03,
"pass": false
},
{
"gate": "cs_benign_fpr@cs_thr",
"censer.9": 0.2783,
"Barist.2": 0.1,
"minimum": 0.05,
"target": 0.03,
"pass": false
},
{
"gate": "hardneg_fp",
"censer.9": "6/44",
"Barist.2": "6/44",
"minimum": "3/44",
"target": "1/44",
"pass": false
},
{
"gate": "train_must_catch",
"censer.9": "84/88",
"Barist.2": "82/88",
"minimum": "84/88",
"target": "86/88",
"pass": false
},
{
"gate": "test_f1",
"censer.9": 0.8239,
"Barist.2": 0.8221,
"minimum": 0.83,
"target": 0.849,
"pass": false
},
{
"gate": "test_recall",
"censer.9": 0.7987,
"Barist.2": 0.7872,
"minimum": 0.8,
"target": 0.83,
"pass": false
},
{
"gate": "test_precision",
"censer.9": 0.8508,
"Barist.2": 0.8603,
"minimum": 0.85,
"target": 0.86,
"pass": true
},
{
"gate": "user_benign_fp",
"censer.9": "35/43",
"Barist.2": "14/43",
"minimum": "3/43",
"target": "1/43",
"pass": false
},
{
"gate": "ece_calibrated",
"censer.9": 0.018413447943885906,
"Barist.2": 0.02633223968431431,
"minimum": 0.035,
"target": 0.03,
"pass": true
},
{
"gate": "onnx_max_abs_diff",
"censer.9": null,
"Barist.2": 0.0001,
"minimum": 0.001,
"target": 0.0001,
"pass": true
},
{
"gate": "regex_gate_hard_fp",
"censer.9": null,
"Barist.2": 0,
"minimum": 0,
"target": 0,
"pass": true
},
{
"gate": "heldout2_dedup_max_overlap",
"censer.9": null,
"Barist.2": 0.75,
"minimum": 0.8,
"target": 0.5,
"pass": true
}
],
"all_pass": false
} |