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
Add report external_eval.json
Browse files- reports/external_eval.json +62 -0
reports/external_eval.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"checkpoint": "checkpoints_b1l/best.pt",
|
| 3 |
+
"device": "cuda",
|
| 4 |
+
"results": {
|
| 5 |
+
"toxigen_test": {
|
| 6 |
+
"n": 940,
|
| 7 |
+
"unsafe": 402,
|
| 8 |
+
"at_0.5": {
|
| 9 |
+
"threshold": 0.5,
|
| 10 |
+
"accuracy": 0.6053191489361702,
|
| 11 |
+
"precision": 0.5382716049382716,
|
| 12 |
+
"recall": 0.5422885572139303,
|
| 13 |
+
"f1": 0.540272614622057,
|
| 14 |
+
"tp": 218,
|
| 15 |
+
"fp": 187,
|
| 16 |
+
"tn": 351,
|
| 17 |
+
"fn": 184,
|
| 18 |
+
"total": 940
|
| 19 |
+
},
|
| 20 |
+
"best": {
|
| 21 |
+
"threshold": 0.11,
|
| 22 |
+
"accuracy": 0.48723404255319147,
|
| 23 |
+
"precision": 0.4533799533799534,
|
| 24 |
+
"recall": 0.9676616915422885,
|
| 25 |
+
"f1": 0.6174603174603174,
|
| 26 |
+
"tp": 389,
|
| 27 |
+
"fp": 469,
|
| 28 |
+
"tn": 69,
|
| 29 |
+
"fn": 13,
|
| 30 |
+
"total": 940
|
| 31 |
+
}
|
| 32 |
+
},
|
| 33 |
+
"hatexplain_test": {
|
| 34 |
+
"n": 1924,
|
| 35 |
+
"unsafe": 1376,
|
| 36 |
+
"at_0.5": {
|
| 37 |
+
"threshold": 0.5,
|
| 38 |
+
"accuracy": 0.5862785862785863,
|
| 39 |
+
"precision": 0.6946308724832215,
|
| 40 |
+
"recall": 0.7521802325581395,
|
| 41 |
+
"f1": 0.7222609909281228,
|
| 42 |
+
"tp": 1035,
|
| 43 |
+
"fp": 455,
|
| 44 |
+
"tn": 93,
|
| 45 |
+
"fn": 341,
|
| 46 |
+
"total": 1924
|
| 47 |
+
},
|
| 48 |
+
"best": {
|
| 49 |
+
"threshold": 0.05,
|
| 50 |
+
"accuracy": 0.7151767151767152,
|
| 51 |
+
"precision": 0.7151767151767152,
|
| 52 |
+
"recall": 1.0,
|
| 53 |
+
"f1": 0.833939393939394,
|
| 54 |
+
"tp": 1376,
|
| 55 |
+
"fp": 548,
|
| 56 |
+
"tn": 0,
|
| 57 |
+
"fn": 0,
|
| 58 |
+
"total": 1924
|
| 59 |
+
}
|
| 60 |
+
}
|
| 61 |
+
}
|
| 62 |
+
}
|