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
Download reports/lang_thresholds.json from KucLab/Barist.2: direct link, hf CLI and curl.
- Browser
- Download file 334 Bytes
-
https://huggingface.co/KucLab/Barist.2/resolve/main/reports/lang_thresholds.json
- Command line
-
hf download hf://KucLab/Barist.2/reports/lang_thresholds.json
-
curl -L -o lang_thresholds.json https://huggingface.co/KucLab/Barist.2/resolve/main/reports/lang_thresholds.json
334 Bytes
| { | |
| "default": 0.5, | |
| "tuned_on": "tune half", | |
| "target": "FPR<=5% benign, floor 0.3", | |
| "langs": { | |
| "de": 0.5, | |
| "en": 0.5, | |
| "es": 0.5, | |
| "fr": 0.71, | |
| "it": 0.5, | |
| "cs": 0.5 | |
| }, | |
| "cs_tuned_on": "mustcatch_dev + cs_benign_eval; tuned value recorded but cs FIXED at 0.5 per Barist.2 review", | |
| "cs_tuned_value": 0.6 | |
| } |