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_h2h.json
Browse files- reports/external_h2h.json +30 -30
reports/external_h2h.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"checkpoint": "
|
| 3 |
"device": "cuda",
|
| 4 |
"results": {
|
| 5 |
"toxigen": {
|
|
@@ -8,26 +8,26 @@
|
|
| 8 |
"barist1": {
|
| 9 |
"at_0.5": {
|
| 10 |
"threshold": 0.5,
|
| 11 |
-
"accuracy": 0.
|
| 12 |
-
"precision": 0.
|
| 13 |
-
"recall": 0.
|
| 14 |
-
"f1": 0.
|
| 15 |
-
"tp":
|
| 16 |
-
"fp":
|
| 17 |
-
"tn":
|
| 18 |
-
"fn":
|
| 19 |
"total": 940
|
| 20 |
},
|
| 21 |
"best": {
|
| 22 |
-
"threshold": 0.
|
| 23 |
-
"accuracy": 0.
|
| 24 |
-
"precision": 0.
|
| 25 |
-
"recall": 0.
|
| 26 |
-
"f1": 0.
|
| 27 |
-
"tp":
|
| 28 |
-
"fp":
|
| 29 |
-
"tn":
|
| 30 |
-
"fn":
|
| 31 |
"total": 940
|
| 32 |
}
|
| 33 |
},
|
|
@@ -56,7 +56,7 @@
|
|
| 56 |
"fn": 159,
|
| 57 |
"total": 940
|
| 58 |
},
|
| 59 |
-
"latency_ms": 8.
|
| 60 |
},
|
| 61 |
"unitary/toxic-bert": {
|
| 62 |
"at_0.5": {
|
|
@@ -83,7 +83,7 @@
|
|
| 83 |
"fn": 0,
|
| 84 |
"total": 940
|
| 85 |
},
|
| 86 |
-
"latency_ms": 8.
|
| 87 |
}
|
| 88 |
},
|
| 89 |
"hatexplain_test": {
|
|
@@ -92,14 +92,14 @@
|
|
| 92 |
"barist1": {
|
| 93 |
"at_0.5": {
|
| 94 |
"threshold": 0.5,
|
| 95 |
-
"accuracy": 0.
|
| 96 |
-
"precision": 0.
|
| 97 |
-
"recall": 0.
|
| 98 |
-
"f1": 0.
|
| 99 |
-
"tp":
|
| 100 |
-
"fp":
|
| 101 |
-
"tn":
|
| 102 |
-
"fn":
|
| 103 |
"total": 1924
|
| 104 |
},
|
| 105 |
"best": {
|
|
@@ -140,7 +140,7 @@
|
|
| 140 |
"fn": 441,
|
| 141 |
"total": 1924
|
| 142 |
},
|
| 143 |
-
"latency_ms": 7.
|
| 144 |
},
|
| 145 |
"unitary/toxic-bert": {
|
| 146 |
"at_0.5": {
|
|
@@ -167,7 +167,7 @@
|
|
| 167 |
"fn": 0,
|
| 168 |
"total": 1924
|
| 169 |
},
|
| 170 |
-
"latency_ms":
|
| 171 |
}
|
| 172 |
}
|
| 173 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"checkpoint": "checkpoints_b1q/best.pt",
|
| 3 |
"device": "cuda",
|
| 4 |
"results": {
|
| 5 |
"toxigen": {
|
|
|
|
| 8 |
"barist1": {
|
| 9 |
"at_0.5": {
|
| 10 |
"threshold": 0.5,
|
| 11 |
+
"accuracy": 0.6085106382978723,
|
| 12 |
+
"precision": 0.5408653846153846,
|
| 13 |
+
"recall": 0.5597014925373134,
|
| 14 |
+
"f1": 0.5501222493887531,
|
| 15 |
+
"tp": 225,
|
| 16 |
+
"fp": 191,
|
| 17 |
+
"tn": 347,
|
| 18 |
+
"fn": 177,
|
| 19 |
"total": 940
|
| 20 |
},
|
| 21 |
"best": {
|
| 22 |
+
"threshold": 0.16,
|
| 23 |
+
"accuracy": 0.5063829787234042,
|
| 24 |
+
"precision": 0.46228710462287104,
|
| 25 |
+
"recall": 0.945273631840796,
|
| 26 |
+
"f1": 0.6209150326797386,
|
| 27 |
+
"tp": 380,
|
| 28 |
+
"fp": 442,
|
| 29 |
+
"tn": 96,
|
| 30 |
+
"fn": 22,
|
| 31 |
"total": 940
|
| 32 |
}
|
| 33 |
},
|
|
|
|
| 56 |
"fn": 159,
|
| 57 |
"total": 940
|
| 58 |
},
|
| 59 |
+
"latency_ms": 8.383845522048626
|
| 60 |
},
|
| 61 |
"unitary/toxic-bert": {
|
| 62 |
"at_0.5": {
|
|
|
|
| 83 |
"fn": 0,
|
| 84 |
"total": 940
|
| 85 |
},
|
| 86 |
+
"latency_ms": 8.333394882526804
|
| 87 |
}
|
| 88 |
},
|
| 89 |
"hatexplain_test": {
|
|
|
|
| 92 |
"barist1": {
|
| 93 |
"at_0.5": {
|
| 94 |
"threshold": 0.5,
|
| 95 |
+
"accuracy": 0.5893970893970893,
|
| 96 |
+
"precision": 0.6935270805812418,
|
| 97 |
+
"recall": 0.7630813953488372,
|
| 98 |
+
"f1": 0.726643598615917,
|
| 99 |
+
"tp": 1050,
|
| 100 |
+
"fp": 464,
|
| 101 |
+
"tn": 84,
|
| 102 |
+
"fn": 326,
|
| 103 |
"total": 1924
|
| 104 |
},
|
| 105 |
"best": {
|
|
|
|
| 140 |
"fn": 441,
|
| 141 |
"total": 1924
|
| 142 |
},
|
| 143 |
+
"latency_ms": 7.148133494006373
|
| 144 |
},
|
| 145 |
"unitary/toxic-bert": {
|
| 146 |
"at_0.5": {
|
|
|
|
| 167 |
"fn": 0,
|
| 168 |
"total": 1924
|
| 169 |
},
|
| 170 |
+
"latency_ms": 6.971182545604428
|
| 171 |
}
|
| 172 |
}
|
| 173 |
}
|