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.7 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KucLab/Barist.7 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="KucLab/Barist.7")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("KucLab/Barist.7") model = AutoModelForSequenceClassification.from_pretrained("KucLab/Barist.7", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download reports/external_eval.json from KucLab/Barist.7: direct link, hf CLI and curl.
- Browser
- Download file 1.39 kB
-
https://huggingface.co/KucLab/Barist.7/resolve/main/reports/external_eval.json
- Command line
-
hf download hf://KucLab/Barist.7/reports/external_eval.json
-
curl -L -o external_eval.json https://huggingface.co/KucLab/Barist.7/resolve/main/reports/external_eval.json
1.39 kB
| { | |
| "checkpoint": "checkpoints_b7b/best.pt", | |
| "device": "cuda", | |
| "results": { | |
| "toxigen_test": { | |
| "n": 940, | |
| "unsafe": 402, | |
| "at_0.5": { | |
| "threshold": 0.5, | |
| "accuracy": 0.6, | |
| "precision": 0.5294117647058824, | |
| "recall": 0.582089552238806, | |
| "f1": 0.5545023696682464, | |
| "tp": 234, | |
| "fp": 208, | |
| "tn": 330, | |
| "fn": 168, | |
| "total": 940 | |
| }, | |
| "best": { | |
| "threshold": 0.23, | |
| "accuracy": 0.5255319148936171, | |
| "precision": 0.4717948717948718, | |
| "recall": 0.9154228855721394, | |
| "f1": 0.622673434856176, | |
| "tp": 368, | |
| "fp": 412, | |
| "tn": 126, | |
| "fn": 34, | |
| "total": 940 | |
| } | |
| }, | |
| "hatexplain_test": { | |
| "n": 1924, | |
| "unsafe": 1376, | |
| "at_0.5": { | |
| "threshold": 0.5, | |
| "accuracy": 0.6008316008316008, | |
| "precision": 0.6976592977893368, | |
| "recall": 0.779796511627907, | |
| "f1": 0.7364447494852436, | |
| "tp": 1073, | |
| "fp": 465, | |
| "tn": 83, | |
| "fn": 303, | |
| "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 | |
| } | |
| } | |
| } | |
| } |