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.5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KucLab/Barist.5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="KucLab/Barist.5")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("KucLab/Barist.5") model = AutoModelForSequenceClassification.from_pretrained("KucLab/Barist.5", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download reports/calibration.json from KucLab/Barist.5: direct link, hf CLI and curl.
- Browser
- Download file 2.8 kB
-
https://huggingface.co/KucLab/Barist.5/resolve/main/reports/calibration.json
- Command line
-
hf download hf://KucLab/Barist.5/reports/calibration.json
-
curl -L -o calibration.json https://huggingface.co/KucLab/Barist.5/resolve/main/reports/calibration.json
2.8 kB
| { | |
| "checkpoint": "checkpoints_b5c/best.pt", | |
| "temperature": 0.610411196946782, | |
| "val_n": 6585, | |
| "binary_ece_raw": 0.0756885044760408, | |
| "binary_ece": 0.02304706140142005, | |
| "catval_n": 3542, | |
| "categories": { | |
| "violence": { | |
| "best_threshold": 0.5, | |
| "f1_at_best": 0.25825825825825827, | |
| "ece": 0.20030264998284927, | |
| "prevalence": 0.052795031055900624, | |
| "experimental": true | |
| }, | |
| "weapons_explosives": { | |
| "best_threshold": 0.5, | |
| "f1_at_best": 0.2762430939226519, | |
| "ece": 0.04906043554043894, | |
| "prevalence": 0.021456804065499716, | |
| "experimental": true | |
| }, | |
| "drugs": { | |
| "best_threshold": 0.5, | |
| "f1_at_best": 0.028985507246376805, | |
| "ece": 0.05412932031411423, | |
| "prevalence": 0.015527950310559006, | |
| "experimental": true | |
| }, | |
| "hate_harassment": { | |
| "best_threshold": 0.4, | |
| "f1_at_best": 0.9230475463051366, | |
| "ece": 0.21042333546446013, | |
| "prevalence": 0.7532467532467533, | |
| "experimental": false | |
| }, | |
| "sexual_abuse": { | |
| "best_threshold": 0.3, | |
| "f1_at_best": 0.0, | |
| "ece": 0.09055755013962648, | |
| "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.04719610507454531, | |
| "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.06248214942657479, | |
| "prevalence": 0.014680971202710334, | |
| "experimental": true | |
| }, | |
| "jailbreak_injection": { | |
| "best_threshold": 0.5, | |
| "f1_at_best": 0.0, | |
| "ece": 0.04868596450732975, | |
| "prevalence": 0.01355166572557877, | |
| "experimental": true | |
| }, | |
| "illegal_marketplace": { | |
| "best_threshold": 0.5, | |
| "f1_at_best": 0.0, | |
| "ece": 0.034876799920225625, | |
| "prevalence": 0.01129305477131564, | |
| "experimental": true | |
| }, | |
| "other_unsafe": { | |
| "best_threshold": 0.45, | |
| "f1_at_best": 0.563855421686747, | |
| "ece": 0.024488733690503025, | |
| "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" | |
| ] | |
| } |