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: 724 Bytes
12ffde8 | 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 | {
"checkpoint": "checkpoints_b2x/best.pt",
"n_items": 160,
"attacks": {
"clean": {
"n": 160,
"detection_rate@0.5": 0.9875,
"mean_unsafe_prob": 0.8498
},
"typo": {
"n": 160,
"detection_rate@0.5": 0.95,
"mean_unsafe_prob": 0.7941
},
"leet": {
"n": 160,
"detection_rate@0.5": 0.9875,
"mean_unsafe_prob": 0.8461
},
"homoglyph": {
"n": 160,
"detection_rate@0.5": 0.9938,
"mean_unsafe_prob": 0.8823
},
"zero_width": {
"n": 160,
"detection_rate@0.5": 1.0,
"mean_unsafe_prob": 0.8858
},
"case": {
"n": 160,
"detection_rate@0.5": 0.9625,
"mean_unsafe_prob": 0.792
}
}
} |