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 +26 -26
reports/external_eval.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"checkpoint": "
|
| 3 |
"device": "cuda",
|
| 4 |
"results": {
|
| 5 |
"toxigen_test": {
|
|
@@ -7,26 +7,26 @@
|
|
| 7 |
"unsafe": 402,
|
| 8 |
"at_0.5": {
|
| 9 |
"threshold": 0.5,
|
| 10 |
-
"accuracy": 0.
|
| 11 |
-
"precision": 0.
|
| 12 |
-
"recall": 0.
|
| 13 |
-
"f1": 0.
|
| 14 |
-
"tp":
|
| 15 |
-
"fp":
|
| 16 |
-
"tn":
|
| 17 |
-
"fn":
|
| 18 |
"total": 940
|
| 19 |
},
|
| 20 |
"best": {
|
| 21 |
-
"threshold": 0.
|
| 22 |
-
"accuracy": 0.
|
| 23 |
-
"precision": 0.
|
| 24 |
-
"recall": 0.
|
| 25 |
-
"f1": 0.
|
| 26 |
-
"tp":
|
| 27 |
-
"fp":
|
| 28 |
-
"tn":
|
| 29 |
-
"fn":
|
| 30 |
"total": 940
|
| 31 |
}
|
| 32 |
},
|
|
@@ -35,14 +35,14 @@
|
|
| 35 |
"unsafe": 1376,
|
| 36 |
"at_0.5": {
|
| 37 |
"threshold": 0.5,
|
| 38 |
-
"accuracy": 0.
|
| 39 |
-
"precision": 0.
|
| 40 |
-
"recall": 0.
|
| 41 |
-
"f1": 0.
|
| 42 |
-
"tp":
|
| 43 |
-
"fp":
|
| 44 |
-
"tn":
|
| 45 |
-
"fn":
|
| 46 |
"total": 1924
|
| 47 |
},
|
| 48 |
"best": {
|
|
|
|
| 1 |
{
|
| 2 |
+
"checkpoint": "checkpoints_b1q/best.pt",
|
| 3 |
"device": "cuda",
|
| 4 |
"results": {
|
| 5 |
"toxigen_test": {
|
|
|
|
| 7 |
"unsafe": 402,
|
| 8 |
"at_0.5": {
|
| 9 |
"threshold": 0.5,
|
| 10 |
+
"accuracy": 0.6085106382978723,
|
| 11 |
+
"precision": 0.5408653846153846,
|
| 12 |
+
"recall": 0.5597014925373134,
|
| 13 |
+
"f1": 0.5501222493887531,
|
| 14 |
+
"tp": 225,
|
| 15 |
+
"fp": 191,
|
| 16 |
+
"tn": 347,
|
| 17 |
+
"fn": 177,
|
| 18 |
"total": 940
|
| 19 |
},
|
| 20 |
"best": {
|
| 21 |
+
"threshold": 0.16,
|
| 22 |
+
"accuracy": 0.5063829787234042,
|
| 23 |
+
"precision": 0.46228710462287104,
|
| 24 |
+
"recall": 0.945273631840796,
|
| 25 |
+
"f1": 0.6209150326797386,
|
| 26 |
+
"tp": 380,
|
| 27 |
+
"fp": 442,
|
| 28 |
+
"tn": 96,
|
| 29 |
+
"fn": 22,
|
| 30 |
"total": 940
|
| 31 |
}
|
| 32 |
},
|
|
|
|
| 35 |
"unsafe": 1376,
|
| 36 |
"at_0.5": {
|
| 37 |
"threshold": 0.5,
|
| 38 |
+
"accuracy": 0.5893970893970893,
|
| 39 |
+
"precision": 0.6935270805812418,
|
| 40 |
+
"recall": 0.7630813953488372,
|
| 41 |
+
"f1": 0.726643598615917,
|
| 42 |
+
"tp": 1050,
|
| 43 |
+
"fp": 464,
|
| 44 |
+
"tn": 84,
|
| 45 |
+
"fn": 326,
|
| 46 |
"total": 1924
|
| 47 |
},
|
| 48 |
"best": {
|