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.6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KucLab/Barist.6 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="KucLab/Barist.6")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("KucLab/Barist.6") model = AutoModelForSequenceClassification.from_pretrained("KucLab/Barist.6", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download reports/adversarial.json from KucLab/Barist.6: direct link, hf CLI and curl.
- Browser
- Download file 725 Bytes
-
https://huggingface.co/KucLab/Barist.6/resolve/main/reports/adversarial.json
- Command line
-
hf download hf://KucLab/Barist.6/reports/adversarial.json
-
curl -L -o adversarial.json https://huggingface.co/KucLab/Barist.6/resolve/main/reports/adversarial.json
725 Bytes
| { | |
| "checkpoint": "checkpoints_b6b/best.pt", | |
| "n_items": 160, | |
| "attacks": { | |
| "clean": { | |
| "n": 160, | |
| "detection_rate@0.5": 0.9875, | |
| "mean_unsafe_prob": 0.8474 | |
| }, | |
| "typo": { | |
| "n": 160, | |
| "detection_rate@0.5": 0.9625, | |
| "mean_unsafe_prob": 0.799 | |
| }, | |
| "leet": { | |
| "n": 160, | |
| "detection_rate@0.5": 0.9875, | |
| "mean_unsafe_prob": 0.8452 | |
| }, | |
| "homoglyph": { | |
| "n": 160, | |
| "detection_rate@0.5": 0.9938, | |
| "mean_unsafe_prob": 0.8654 | |
| }, | |
| "zero_width": { | |
| "n": 160, | |
| "detection_rate@0.5": 1.0, | |
| "mean_unsafe_prob": 0.8797 | |
| }, | |
| "case": { | |
| "n": 160, | |
| "detection_rate@0.5": 0.975, | |
| "mean_unsafe_prob": 0.7943 | |
| } | |
| } | |
| } |