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.4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KucLab/Barist.4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="KucLab/Barist.4")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("KucLab/Barist.4") model = AutoModelForSequenceClassification.from_pretrained("KucLab/Barist.4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download reports/calibration.json from KucLab/Barist.4: direct link, hf CLI and curl.
- Browser
- Download file 2.8 kB
-
https://huggingface.co/KucLab/Barist.4/resolve/main/reports/calibration.json
- Command line
-
hf download hf://KucLab/Barist.4/reports/calibration.json
-
curl -L -o calibration.json https://huggingface.co/KucLab/Barist.4/resolve/main/reports/calibration.json
2.8 kB
| { | |
| "checkpoint": "checkpoints_b4b/best.pt", | |
| "temperature": 0.6464266479015075, | |
| "val_n": 6585, | |
| "binary_ece_raw": 0.06746204614684541, | |
| "binary_ece": 0.02469610128832463, | |
| "catval_n": 3542, | |
| "categories": { | |
| "violence": { | |
| "best_threshold": 0.5, | |
| "f1_at_best": 0.25477707006369427, | |
| "ece": 0.1881496978879045, | |
| "prevalence": 0.052795031055900624, | |
| "experimental": true | |
| }, | |
| "weapons_explosives": { | |
| "best_threshold": 0.5, | |
| "f1_at_best": 0.2840909090909091, | |
| "ece": 0.04927967298054692, | |
| "prevalence": 0.021456804065499716, | |
| "experimental": true | |
| }, | |
| "drugs": { | |
| "best_threshold": 0.5, | |
| "f1_at_best": 0.05633802816901408, | |
| "ece": 0.055002006755267084, | |
| "prevalence": 0.015527950310559006, | |
| "experimental": true | |
| }, | |
| "hate_harassment": { | |
| "best_threshold": 0.4, | |
| "f1_at_best": 0.9181644359464627, | |
| "ece": 0.21876117965994787, | |
| "prevalence": 0.7532467532467533, | |
| "experimental": false | |
| }, | |
| "sexual_abuse": { | |
| "best_threshold": 0.3, | |
| "f1_at_best": 0.0, | |
| "ece": 0.089382409275459, | |
| "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.04617582623962144, | |
| "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.06265077655388962, | |
| "prevalence": 0.014680971202710334, | |
| "experimental": true | |
| }, | |
| "jailbreak_injection": { | |
| "best_threshold": 0.5, | |
| "f1_at_best": 0.0, | |
| "ece": 0.04936691839185494, | |
| "prevalence": 0.01355166572557877, | |
| "experimental": true | |
| }, | |
| "illegal_marketplace": { | |
| "best_threshold": 0.5, | |
| "f1_at_best": 0.0, | |
| "ece": 0.03510368899064428, | |
| "prevalence": 0.01129305477131564, | |
| "experimental": true | |
| }, | |
| "other_unsafe": { | |
| "best_threshold": 0.45, | |
| "f1_at_best": 0.5887850467289719, | |
| "ece": 0.025816742680006777, | |
| "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" | |
| ] | |
| } |