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.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KucLab/Barist.1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="KucLab/Barist.1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("KucLab/Barist.1") model = AutoModelForSequenceClassification.from_pretrained("KucLab/Barist.1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download reports/calibration.json from KucLab/Barist.1: direct link, hf CLI and curl.
- Browser
- Download file 2.8 kB
-
https://huggingface.co/KucLab/Barist.1/resolve/main/reports/calibration.json
- Command line
-
hf download hf://KucLab/Barist.1/reports/calibration.json
-
curl -L -o calibration.json https://huggingface.co/KucLab/Barist.1/resolve/main/reports/calibration.json
2.8 kB
| { | |
| "checkpoint": "checkpoints_b1q/best.pt", | |
| "temperature": 0.6698144972322068, | |
| "val_n": 6585, | |
| "binary_ece_raw": 0.06439163049961594, | |
| "binary_ece": 0.02606656088259697, | |
| "catval_n": 3542, | |
| "categories": { | |
| "violence": { | |
| "best_threshold": 0.5, | |
| "f1_at_best": 0.23984526112185686, | |
| "ece": 0.16239444948069268, | |
| "prevalence": 0.052795031055900624, | |
| "experimental": true | |
| }, | |
| "weapons_explosives": { | |
| "best_threshold": 0.5, | |
| "f1_at_best": 0.18556701030927836, | |
| "ece": 0.04110704146110785, | |
| "prevalence": 0.021456804065499716, | |
| "experimental": true | |
| }, | |
| "drugs": { | |
| "best_threshold": 0.5, | |
| "f1_at_best": 0.030769230769230767, | |
| "ece": 0.052744178826448426, | |
| "prevalence": 0.015527950310559006, | |
| "experimental": true | |
| }, | |
| "hate_harassment": { | |
| "best_threshold": 0.4, | |
| "f1_at_best": 0.91434034416826, | |
| "ece": 0.21635782731373088, | |
| "prevalence": 0.7532467532467533, | |
| "experimental": false | |
| }, | |
| "sexual_abuse": { | |
| "best_threshold": 0.3, | |
| "f1_at_best": 0.0, | |
| "ece": 0.08326548529504435, | |
| "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.04202677745866978, | |
| "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.05813841725390768, | |
| "prevalence": 0.014680971202710334, | |
| "experimental": true | |
| }, | |
| "jailbreak_injection": { | |
| "best_threshold": 0.5, | |
| "f1_at_best": 0.0, | |
| "ece": 0.04948791327881452, | |
| "prevalence": 0.01355166572557877, | |
| "experimental": true | |
| }, | |
| "illegal_marketplace": { | |
| "best_threshold": 0.5, | |
| "f1_at_best": 0.0, | |
| "ece": 0.033953293410476856, | |
| "prevalence": 0.01129305477131564, | |
| "experimental": true | |
| }, | |
| "other_unsafe": { | |
| "best_threshold": 0.45, | |
| "f1_at_best": 0.6013986013986015, | |
| "ece": 0.03202622319749041, | |
| "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" | |
| ] | |
| } |