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.2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KucLab/Barist.2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="KucLab/Barist.2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("KucLab/Barist.2") model = AutoModelForSequenceClassification.from_pretrained("KucLab/Barist.2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Add report eval_test.json
Browse files- reports/eval_test.json +113 -0
reports/eval_test.json
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"checkpoint": "checkpoints_b2x/best.pt",
|
| 3 |
+
"split": "test",
|
| 4 |
+
"at_0.5": {
|
| 5 |
+
"threshold": 0.5,
|
| 6 |
+
"accuracy": 0.8580665024630542,
|
| 7 |
+
"precision": 0.8603148970528866,
|
| 8 |
+
"recall": 0.7872183228666421,
|
| 9 |
+
"f1": 0.8221450617283952,
|
| 10 |
+
"tp": 2131,
|
| 11 |
+
"fp": 346,
|
| 12 |
+
"tn": 3443,
|
| 13 |
+
"fn": 576,
|
| 14 |
+
"total": 6496
|
| 15 |
+
},
|
| 16 |
+
"best": {
|
| 17 |
+
"threshold": 0.39,
|
| 18 |
+
"accuracy": 0.8585283251231527,
|
| 19 |
+
"precision": 0.8143459915611815,
|
| 20 |
+
"recall": 0.8555596601403768,
|
| 21 |
+
"f1": 0.8344442442803098,
|
| 22 |
+
"tp": 2316,
|
| 23 |
+
"fp": 528,
|
| 24 |
+
"tn": 3261,
|
| 25 |
+
"fn": 391,
|
| 26 |
+
"total": 6496
|
| 27 |
+
},
|
| 28 |
+
"per_source": {
|
| 29 |
+
"civil_comments": {
|
| 30 |
+
"threshold": 0.5,
|
| 31 |
+
"accuracy": 0.841148673209742,
|
| 32 |
+
"precision": 0.8142681426814268,
|
| 33 |
+
"recall": 0.6983122362869199,
|
| 34 |
+
"f1": 0.7518455423055083,
|
| 35 |
+
"tp": 662,
|
| 36 |
+
"fp": 151,
|
| 37 |
+
"tn": 1652,
|
| 38 |
+
"fn": 286,
|
| 39 |
+
"total": 2751
|
| 40 |
+
},
|
| 41 |
+
"jigsaw": {
|
| 42 |
+
"threshold": 0.5,
|
| 43 |
+
"accuracy": 0.899885801294252,
|
| 44 |
+
"precision": 0.8796400449943758,
|
| 45 |
+
"recall": 0.8336886993603412,
|
| 46 |
+
"f1": 0.856048166392994,
|
| 47 |
+
"tp": 782,
|
| 48 |
+
"fp": 107,
|
| 49 |
+
"tn": 1582,
|
| 50 |
+
"fn": 156,
|
| 51 |
+
"total": 2627
|
| 52 |
+
},
|
| 53 |
+
"aegis": {
|
| 54 |
+
"threshold": 0.5,
|
| 55 |
+
"accuracy": 0.8256880733944955,
|
| 56 |
+
"precision": 0.9389140271493213,
|
| 57 |
+
"recall": 0.8592132505175983,
|
| 58 |
+
"f1": 0.8972972972972972,
|
| 59 |
+
"tp": 415,
|
| 60 |
+
"fp": 27,
|
| 61 |
+
"tn": 35,
|
| 62 |
+
"fn": 68,
|
| 63 |
+
"total": 545
|
| 64 |
+
},
|
| 65 |
+
"beavertails": {
|
| 66 |
+
"threshold": 0.5,
|
| 67 |
+
"accuracy": 0.7834224598930482,
|
| 68 |
+
"precision": 0.8811881188118812,
|
| 69 |
+
"recall": 0.8557692307692307,
|
| 70 |
+
"f1": 0.8682926829268293,
|
| 71 |
+
"tp": 267,
|
| 72 |
+
"fp": 36,
|
| 73 |
+
"tn": 26,
|
| 74 |
+
"fn": 45,
|
| 75 |
+
"total": 374
|
| 76 |
+
},
|
| 77 |
+
"dolly": {
|
| 78 |
+
"threshold": 0.5,
|
| 79 |
+
"accuracy": 0.8857142857142857,
|
| 80 |
+
"precision": 0.0,
|
| 81 |
+
"recall": 0.0,
|
| 82 |
+
"f1": 0.0,
|
| 83 |
+
"tp": 0,
|
| 84 |
+
"fp": 16,
|
| 85 |
+
"tn": 124,
|
| 86 |
+
"fn": 0,
|
| 87 |
+
"total": 140
|
| 88 |
+
},
|
| 89 |
+
"toxic_chat": {
|
| 90 |
+
"threshold": 0.5,
|
| 91 |
+
"accuracy": 0.4915254237288136,
|
| 92 |
+
"precision": 0.35714285714285715,
|
| 93 |
+
"recall": 0.19230769230769232,
|
| 94 |
+
"f1": 0.25,
|
| 95 |
+
"tp": 5,
|
| 96 |
+
"fp": 9,
|
| 97 |
+
"tn": 24,
|
| 98 |
+
"fn": 21,
|
| 99 |
+
"total": 59
|
| 100 |
+
}
|
| 101 |
+
},
|
| 102 |
+
"model_metrics": {
|
| 103 |
+
"loss": 0.34322415865384615,
|
| 104 |
+
"accuracy": 0.858466211085801,
|
| 105 |
+
"precision": 0.8503480278422274,
|
| 106 |
+
"recall": 0.8013848396501457,
|
| 107 |
+
"f1": 0.8251407129455911,
|
| 108 |
+
"tp": 2199,
|
| 109 |
+
"fp": 387,
|
| 110 |
+
"tn": 3454,
|
| 111 |
+
"fn": 545
|
| 112 |
+
}
|
| 113 |
+
}
|