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
Download reports/benchmark.json from KucLab/Barist.2: direct link, hf CLI and curl.
- Browser
- Download file 1.24 kB
-
https://huggingface.co/KucLab/Barist.2/resolve/main/reports/benchmark.json
- Command line
-
hf download hf://KucLab/Barist.2/reports/benchmark.json
-
curl -L -o benchmark.json https://huggingface.co/KucLab/Barist.2/resolve/main/reports/benchmark.json
1.24 kB
| { | |
| "name": "Barist.1", | |
| "parameters": 903552, | |
| "checkpoint_bytes": 3622785, | |
| "checkpoint_mb": 3.45, | |
| "vocab_size": 2048, | |
| "context_tokens": 4096, | |
| "max_chars": 4000, | |
| "device": "AMD Radeon Graphics", | |
| "device_type": "cuda", | |
| "torch_version": "2.13.0+rocm7.1", | |
| "layers": 3, | |
| "d_model": 128, | |
| "heads": 4, | |
| "d_ff": 384, | |
| "single_latency_ms": 1.16, | |
| "single_per_second": 863.0, | |
| "batch_size": 8, | |
| "batch_latency_ms": 1.31, | |
| "batch_per_second": 6109.0, | |
| "peak_vram_mb": 84.7, | |
| "val": { | |
| "threshold": 0.5, | |
| "accuracy": 0.8546697038724373, | |
| "precision": 0.8561179752889597, | |
| "recall": 0.782798833819242, | |
| "f1": 0.817818389491719, | |
| "tp": 2148, | |
| "fp": 361, | |
| "tn": 3480, | |
| "fn": 596, | |
| "total": 6585 | |
| }, | |
| "test": { | |
| "threshold": 0.5, | |
| "accuracy": 0.8580665024630542, | |
| "precision": 0.8603148970528866, | |
| "recall": 0.7872183228666421, | |
| "f1": 0.8221450617283952, | |
| "tp": 2131, | |
| "fp": 346, | |
| "tn": 3443, | |
| "fn": 576, | |
| "total": 6496 | |
| }, | |
| "probe_set": { | |
| "threshold": 0.5, | |
| "accuracy": 0.9896907216494846, | |
| "precision": 0.9767441860465116, | |
| "recall": 1.0, | |
| "f1": 0.988235294117647, | |
| "tp": 42, | |
| "fp": 1, | |
| "tn": 54, | |
| "fn": 0, | |
| "total": 97 | |
| } | |
| } |