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/external_eval.json from KucLab/Barist.1: direct link, hf CLI and curl.
- Browser
- Download file 1.41 kB
-
https://huggingface.co/KucLab/Barist.1/resolve/main/reports/external_eval.json
- Command line
-
hf download hf://KucLab/Barist.1/reports/external_eval.json
-
curl -L -o external_eval.json https://huggingface.co/KucLab/Barist.1/resolve/main/reports/external_eval.json
1.41 kB
| { | |
| "checkpoint": "checkpoints_b1q/best.pt", | |
| "device": "cuda", | |
| "results": { | |
| "toxigen_test": { | |
| "n": 940, | |
| "unsafe": 402, | |
| "at_0.5": { | |
| "threshold": 0.5, | |
| "accuracy": 0.6085106382978723, | |
| "precision": 0.5408653846153846, | |
| "recall": 0.5597014925373134, | |
| "f1": 0.5501222493887531, | |
| "tp": 225, | |
| "fp": 191, | |
| "tn": 347, | |
| "fn": 177, | |
| "total": 940 | |
| }, | |
| "best": { | |
| "threshold": 0.16, | |
| "accuracy": 0.5063829787234042, | |
| "precision": 0.46228710462287104, | |
| "recall": 0.945273631840796, | |
| "f1": 0.6209150326797386, | |
| "tp": 380, | |
| "fp": 442, | |
| "tn": 96, | |
| "fn": 22, | |
| "total": 940 | |
| } | |
| }, | |
| "hatexplain_test": { | |
| "n": 1924, | |
| "unsafe": 1376, | |
| "at_0.5": { | |
| "threshold": 0.5, | |
| "accuracy": 0.5893970893970893, | |
| "precision": 0.6935270805812418, | |
| "recall": 0.7630813953488372, | |
| "f1": 0.726643598615917, | |
| "tp": 1050, | |
| "fp": 464, | |
| "tn": 84, | |
| "fn": 326, | |
| "total": 1924 | |
| }, | |
| "best": { | |
| "threshold": 0.05, | |
| "accuracy": 0.7151767151767152, | |
| "precision": 0.7151767151767152, | |
| "recall": 1.0, | |
| "f1": 0.833939393939394, | |
| "tp": 1376, | |
| "fp": 548, | |
| "tn": 0, | |
| "fn": 0, | |
| "total": 1924 | |
| } | |
| } | |
| } | |
| } |