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.4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KucLab/Barist.4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="KucLab/Barist.4")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("KucLab/Barist.4") model = AutoModelForSequenceClassification.from_pretrained("KucLab/Barist.4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download reports/benchmark_cpu.json from KucLab/Barist.4: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/KucLab/Barist.4/resolve/main/reports/benchmark_cpu.json
- Command line
-
hf download hf://KucLab/Barist.4/reports/benchmark_cpu.json
-
curl -L -o benchmark_cpu.json https://huggingface.co/KucLab/Barist.4/resolve/main/reports/benchmark_cpu.json
1.22 kB
| { | |
| "name": "Barist.1", | |
| "parameters": 903552, | |
| "checkpoint_bytes": 3622785, | |
| "checkpoint_mb": 3.45, | |
| "vocab_size": 2048, | |
| "context_tokens": 4096, | |
| "max_chars": 4000, | |
| "device": "cpu", | |
| "device_type": "cpu", | |
| "torch_version": "2.13.0+rocm7.1", | |
| "layers": 3, | |
| "d_model": 128, | |
| "heads": 4, | |
| "d_ff": 384, | |
| "single_latency_ms": 0.78, | |
| "single_per_second": 1283.0, | |
| "batch_size": 8, | |
| "batch_latency_ms": 1.93, | |
| "batch_per_second": 4145.9, | |
| "peak_vram_mb": null, | |
| "val": { | |
| "threshold": 0.5, | |
| "accuracy": 0.8528473804100227, | |
| "precision": 0.8498226251478124, | |
| "recall": 0.7857142857142857, | |
| "f1": 0.8165120242378336, | |
| "tp": 2156, | |
| "fp": 381, | |
| "tn": 3460, | |
| "fn": 588, | |
| "total": 6585 | |
| }, | |
| "test": { | |
| "threshold": 0.5, | |
| "accuracy": 0.8569889162561576, | |
| "precision": 0.8527777777777777, | |
| "recall": 0.7938677502770595, | |
| "f1": 0.8222689879471973, | |
| "tp": 2149, | |
| "fp": 371, | |
| "tn": 3418, | |
| "fn": 558, | |
| "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 | |
| } | |
| } |