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
Download reports/multilingual.json from KucLab/Barist.1: direct link, hf CLI and curl.
- Browser
- Download file 5.62 kB
-
https://huggingface.co/KucLab/Barist.1/resolve/ffa70a24fcbca02daec0022b45a3c89f099c8e21/reports/multilingual.json
- Command line
-
hf download hf://KucLab/Barist.1@ffa70a24fcbca02daec0022b45a3c89f099c8e21/reports/multilingual.json
-
curl -L -o multilingual.json https://huggingface.co/KucLab/Barist.1/resolve/ffa70a24fcbca02daec0022b45a3c89f099c8e21/reports/multilingual.json
5.62 kB
| { | |
| "checkpoint": "checkpoints_b1l/best.pt", | |
| "results": { | |
| "textdetox_am": { | |
| "n": 800, | |
| "unsafe": 385, | |
| "f1@0.5": 0.10859728506787329, | |
| "acc@0.5": 0.5075, | |
| "test_n": 400, | |
| "test_f1@tuned": 0.06965174129353234, | |
| "test_fpr@tuned": 0.046296296296296294, | |
| "tuned_thr": 0.66, | |
| "note": "thr tuned on tune half (FPR<=5% benign, floor 0.3); F1/FPR on test half" | |
| }, | |
| "textdetox_ar": { | |
| "n": 800, | |
| "unsafe": 387, | |
| "f1@0.5": 0.005154639175257732, | |
| "acc@0.5": 0.5175, | |
| "test_n": 400, | |
| "test_f1@tuned": 0.00975609756097561, | |
| "test_fpr@tuned": 0.005076142131979695, | |
| "tuned_thr": 0.3, | |
| "note": "thr tuned on tune half (FPR<=5% benign, floor 0.3); F1/FPR on test half" | |
| }, | |
| "textdetox_de": { | |
| "n": 800, | |
| "unsafe": 397, | |
| "f1@0.5": 0.5217391304347826, | |
| "acc@0.5": 0.56, | |
| "test_n": 400, | |
| "test_f1@tuned": 0.5, | |
| "test_fpr@tuned": 0.39195979899497485, | |
| "tuned_thr": 0.5, | |
| "note": "thr tuned on tune half (FPR<=5% benign, floor 0.3); F1/FPR on test half" | |
| }, | |
| "textdetox_en": { | |
| "n": 800, | |
| "unsafe": 391, | |
| "f1@0.5": 0.8136363636363636, | |
| "acc@0.5": 0.795, | |
| "test_n": 400, | |
| "test_f1@tuned": 0.7911111111111112, | |
| "test_fpr@tuned": 0.3786407766990291, | |
| "tuned_thr": 0.5, | |
| "note": "thr tuned on tune half (FPR<=5% benign, floor 0.3); F1/FPR on test half" | |
| }, | |
| "textdetox_es": { | |
| "n": 800, | |
| "unsafe": 408, | |
| "f1@0.5": 0.6120092378752887, | |
| "acc@0.5": 0.58, | |
| "test_n": 400, | |
| "test_f1@tuned": 0.6606334841628959, | |
| "test_fpr@tuned": 0.43478260869565216, | |
| "tuned_thr": 0.5, | |
| "note": "thr tuned on tune half (FPR<=5% benign, floor 0.3); F1/FPR on test half" | |
| }, | |
| "textdetox_fr": { | |
| "n": 800, | |
| "unsafe": 391, | |
| "f1@0.5": 0.46305418719211827, | |
| "acc@0.5": 0.59125, | |
| "test_n": 400, | |
| "test_f1@tuned": 0.5222929936305731, | |
| "test_fpr@tuned": 0.16417910447761194, | |
| "tuned_thr": 0.5, | |
| "note": "thr tuned on tune half (FPR<=5% benign, floor 0.3); F1/FPR on test half" | |
| }, | |
| "textdetox_he": { | |
| "n": 800, | |
| "unsafe": 332, | |
| "f1@0.5": 0.02359882005899705, | |
| "acc@0.5": 0.58625, | |
| "test_n": 400, | |
| "test_f1@tuned": 0.03614457831325301, | |
| "test_fpr@tuned": 0.008368200836820083, | |
| "tuned_thr": 0.3, | |
| "note": "thr tuned on tune half (FPR<=5% benign, floor 0.3); F1/FPR on test half" | |
| }, | |
| "textdetox_hi": { | |
| "n": 800, | |
| "unsafe": 409, | |
| "f1@0.5": 0.0, | |
| "acc@0.5": 0.48875, | |
| "test_n": 400, | |
| "test_f1@tuned": 0.0, | |
| "test_fpr@tuned": 0.0, | |
| "tuned_thr": 0.3, | |
| "note": "thr tuned on tune half (FPR<=5% benign, floor 0.3); F1/FPR on test half" | |
| }, | |
| "textdetox_hin": { | |
| "n": 800, | |
| "unsafe": 394, | |
| "f1@0.5": 0.44556113902847577, | |
| "acc@0.5": 0.58625, | |
| "test_n": 400, | |
| "test_f1@tuned": 0.47284345047923326, | |
| "test_fpr@tuned": 0.17857142857142858, | |
| "tuned_thr": 0.5, | |
| "note": "thr tuned on tune half (FPR<=5% benign, floor 0.3); F1/FPR on test half" | |
| }, | |
| "textdetox_it": { | |
| "n": 800, | |
| "unsafe": 409, | |
| "f1@0.5": 0.5548216644649934, | |
| "acc@0.5": 0.57875, | |
| "test_n": 400, | |
| "test_f1@tuned": 0.5415549597855227, | |
| "test_fpr@tuned": 0.350253807106599, | |
| "tuned_thr": 0.5, | |
| "note": "thr tuned on tune half (FPR<=5% benign, floor 0.3); F1/FPR on test half" | |
| }, | |
| "textdetox_ja": { | |
| "n": 800, | |
| "unsafe": 409, | |
| "f1@0.5": 0.0, | |
| "acc@0.5": 0.48875, | |
| "test_n": 400, | |
| "test_f1@tuned": 0.0, | |
| "test_fpr@tuned": 0.0, | |
| "tuned_thr": 0.3, | |
| "note": "thr tuned on tune half (FPR<=5% benign, floor 0.3); F1/FPR on test half" | |
| }, | |
| "textdetox_ru": { | |
| "n": 800, | |
| "unsafe": 391, | |
| "f1@0.5": 0.03970223325062035, | |
| "acc@0.5": 0.51625, | |
| "test_n": 400, | |
| "test_f1@tuned": 0.08928571428571427, | |
| "test_fpr@tuned": 0.015873015873015872, | |
| "tuned_thr": 0.3, | |
| "note": "thr tuned on tune half (FPR<=5% benign, floor 0.3); F1/FPR on test half" | |
| }, | |
| "textdetox_tt": { | |
| "n": 800, | |
| "unsafe": 403, | |
| "f1@0.5": 0.11607142857142858, | |
| "acc@0.5": 0.505, | |
| "test_n": 400, | |
| "test_f1@tuned": 0.1272727272727273, | |
| "test_fpr@tuned": 0.03, | |
| "tuned_thr": 0.62, | |
| "note": "thr tuned on tune half (FPR<=5% benign, floor 0.3); F1/FPR on test half" | |
| }, | |
| "textdetox_uk": { | |
| "n": 800, | |
| "unsafe": 391, | |
| "f1@0.5": 0.04466501240694789, | |
| "acc@0.5": 0.51875, | |
| "test_n": 400, | |
| "test_f1@tuned": 0.10945273631840796, | |
| "test_fpr@tuned": 0.018691588785046728, | |
| "tuned_thr": 0.3, | |
| "note": "thr tuned on tune half (FPR<=5% benign, floor 0.3); F1/FPR on test half" | |
| }, | |
| "textdetox_zh": { | |
| "n": 800, | |
| "unsafe": 409, | |
| "f1@0.5": 0.0, | |
| "acc@0.5": 0.48625, | |
| "test_n": 400, | |
| "test_f1@tuned": 0.019417475728155338, | |
| "test_fpr@tuned": 0.01507537688442211, | |
| "tuned_thr": 0.32, | |
| "note": "thr tuned on tune half (FPR<=5% benign, floor 0.3); F1/FPR on test half" | |
| }, | |
| "synth_cs": { | |
| "n": 300, | |
| "unsafe": 150, | |
| "f1@0.5": 0.9966555183946488, | |
| "acc@0.5": 0.9966666666666667 | |
| }, | |
| "synth_de": { | |
| "n": 300, | |
| "unsafe": 150, | |
| "f1@0.5": 1.0, | |
| "acc@0.5": 1.0 | |
| }, | |
| "synth_es": { | |
| "n": 300, | |
| "unsafe": 150, | |
| "f1@0.5": 1.0, | |
| "acc@0.5": 1.0 | |
| }, | |
| "synth_fr": { | |
| "n": 300, | |
| "unsafe": 150, | |
| "f1@0.5": 1.0, | |
| "acc@0.5": 1.0 | |
| } | |
| } | |
| } |