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/Censer.9 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KucLab/Censer.9 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="KucLab/Censer.9")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("KucLab/Censer.9") model = AutoModelForSequenceClassification.from_pretrained("KucLab/Censer.9", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download reports/external_eval.json from KucLab/Censer.9: direct link, hf CLI and curl.
- Browser
- Download file 1.41 kB
-
https://huggingface.co/KucLab/Censer.9/resolve/main/reports/external_eval.json
- Command line
-
hf download hf://KucLab/Censer.9/reports/external_eval.json
-
curl -L -o external_eval.json https://huggingface.co/KucLab/Censer.9/resolve/main/reports/external_eval.json
1.41 kB
| { | |
| "checkpoint": "checkpoints9h/best.pt", | |
| "device": "cuda", | |
| "results": { | |
| "toxigen_test": { | |
| "n": 940, | |
| "unsafe": 402, | |
| "at_0.5": { | |
| "threshold": 0.5, | |
| "accuracy": 0.6085106382978723, | |
| "precision": 0.5393518518518519, | |
| "recall": 0.5796019900497512, | |
| "f1": 0.5587529976019184, | |
| "tp": 233, | |
| "fp": 199, | |
| "tn": 339, | |
| "fn": 169, | |
| "total": 940 | |
| }, | |
| "best": { | |
| "threshold": 0.13, | |
| "accuracy": 0.4925531914893617, | |
| "precision": 0.45541022592152197, | |
| "recall": 0.9527363184079602, | |
| "f1": 0.6162510056315366, | |
| "tp": 383, | |
| "fp": 458, | |
| "tn": 80, | |
| "fn": 19, | |
| "total": 940 | |
| } | |
| }, | |
| "hatexplain_test": { | |
| "n": 1924, | |
| "unsafe": 1376, | |
| "at_0.5": { | |
| "threshold": 0.5, | |
| "accuracy": 0.6065488565488566, | |
| "precision": 0.6985246953175113, | |
| "recall": 0.7914244186046512, | |
| "f1": 0.7420783645655877, | |
| "tp": 1089, | |
| "fp": 470, | |
| "tn": 78, | |
| "fn": 287, | |
| "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 | |
| } | |
| } | |
| } | |
| } |