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.3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KucLab/Barist.3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="KucLab/Barist.3")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("KucLab/Barist.3") model = AutoModelForSequenceClassification.from_pretrained("KucLab/Barist.3", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download reports/calibration.json from KucLab/Barist.3: direct link, hf CLI and curl.
- Browser
- Download file 2.8 kB
-
https://huggingface.co/KucLab/Barist.3/resolve/main/reports/calibration.json
- Command line
-
hf download hf://KucLab/Barist.3/reports/calibration.json
-
curl -L -o calibration.json https://huggingface.co/KucLab/Barist.3/resolve/main/reports/calibration.json
2.8 kB
| { | |
| "checkpoint": "checkpoints_b3e/best.pt", | |
| "temperature": 0.6584196388717908, | |
| "val_n": 6585, | |
| "binary_ece_raw": 0.06556709826858143, | |
| "binary_ece": 0.0250844468628166, | |
| "catval_n": 3542, | |
| "categories": { | |
| "violence": { | |
| "best_threshold": 0.5, | |
| "f1_at_best": 0.2611683848797251, | |
| "ece": 0.17614173521365634, | |
| "prevalence": 0.052795031055900624, | |
| "experimental": true | |
| }, | |
| "weapons_explosives": { | |
| "best_threshold": 0.5, | |
| "f1_at_best": 0.2711864406779661, | |
| "ece": 0.0484670654598167, | |
| "prevalence": 0.021456804065499716, | |
| "experimental": true | |
| }, | |
| "drugs": { | |
| "best_threshold": 0.5, | |
| "f1_at_best": 0.08450704225352113, | |
| "ece": 0.0542378990474242, | |
| "prevalence": 0.015527950310559006, | |
| "experimental": true | |
| }, | |
| "hate_harassment": { | |
| "best_threshold": 0.4, | |
| "f1_at_best": 0.9166187464059805, | |
| "ece": 0.22022366786916242, | |
| "prevalence": 0.7532467532467533, | |
| "experimental": false | |
| }, | |
| "sexual_abuse": { | |
| "best_threshold": 0.3, | |
| "f1_at_best": 0.0, | |
| "ece": 0.08572956915920378, | |
| "prevalence": 0.020045172219085264, | |
| "experimental": true, | |
| "note": "fixed 0.3 per review: CSAM/self-harm priority over hate" | |
| }, | |
| "self_harm": { | |
| "best_threshold": 0.3, | |
| "f1_at_best": 0.0, | |
| "ece": 0.04407834701168429, | |
| "prevalence": 0.012140033879164314, | |
| "experimental": true, | |
| "note": "fixed 0.3 per review: CSAM/self-harm priority over hate" | |
| }, | |
| "cybercrime_fraud": { | |
| "best_threshold": 0.5, | |
| "f1_at_best": 0.0, | |
| "ece": 0.060782597548647184, | |
| "prevalence": 0.014680971202710334, | |
| "experimental": true | |
| }, | |
| "jailbreak_injection": { | |
| "best_threshold": 0.5, | |
| "f1_at_best": 0.0, | |
| "ece": 0.04768495263266089, | |
| "prevalence": 0.01355166572557877, | |
| "experimental": true | |
| }, | |
| "illegal_marketplace": { | |
| "best_threshold": 0.5, | |
| "f1_at_best": 0.0, | |
| "ece": 0.033712309751728516, | |
| "prevalence": 0.01129305477131564, | |
| "experimental": true | |
| }, | |
| "other_unsafe": { | |
| "best_threshold": 0.45, | |
| "f1_at_best": 0.5617433414043583, | |
| "ece": 0.025139877526039838, | |
| "prevalence": 0.07001693958215698, | |
| "experimental": false | |
| } | |
| }, | |
| "cat_thresholds": { | |
| "violence": 0.5, | |
| "weapons_explosives": 0.5, | |
| "drugs": 0.5, | |
| "hate_harassment": 0.4, | |
| "sexual_abuse": 0.3, | |
| "self_harm": 0.3, | |
| "cybercrime_fraud": 0.5, | |
| "jailbreak_injection": 0.5, | |
| "illegal_marketplace": 0.5, | |
| "other_unsafe": 0.45 | |
| }, | |
| "cat_experimental": [ | |
| "violence", | |
| "weapons_explosives", | |
| "drugs", | |
| "sexual_abuse", | |
| "self_harm", | |
| "cybercrime_fraud", | |
| "jailbreak_injection", | |
| "illegal_marketplace" | |
| ] | |
| } |