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 benchmark.md
Browse files- reports/benchmark.md +6 -6
reports/benchmark.md
CHANGED
|
@@ -24,18 +24,18 @@ Generated by `scripts/benchmark.py`.
|
|
| 24 |
|
| 25 |
| Metric | Value |
|
| 26 |
| --- | --- |
|
| 27 |
-
| Single text latency | 1.
|
| 28 |
-
| Single text throughput |
|
| 29 |
-
| Batch of 8 latency | 1.
|
| 30 |
-
| Batched throughput |
|
| 31 |
| Peak VRAM (inference) | 84.7 MB |
|
| 32 |
|
| 33 |
## Accuracy
|
| 34 |
|
| 35 |
| Split | Rows | Accuracy | F1 | Precision | Recall |
|
| 36 |
| --- | --- | --- | --- | --- | --- |
|
| 37 |
-
| val | 6585 | 0.
|
| 38 |
-
| test | 6496 | 0.
|
| 39 |
| probe (hand-written) | 97 | 0.9897 | 0.9882 | 0.9767 | 1.0000 |
|
| 40 |
|
| 41 |
The probe set is hand-written and absent from all training data.
|
|
|
|
| 24 |
|
| 25 |
| Metric | Value |
|
| 26 |
| --- | --- |
|
| 27 |
+
| Single text latency | 1.06 ms |
|
| 28 |
+
| Single text throughput | 946.8 texts/s |
|
| 29 |
+
| Batch of 8 latency | 1.2 ms |
|
| 30 |
+
| Batched throughput | 6646.8 texts/s |
|
| 31 |
| Peak VRAM (inference) | 84.7 MB |
|
| 32 |
|
| 33 |
## Accuracy
|
| 34 |
|
| 35 |
| Split | Rows | Accuracy | F1 | Precision | Recall |
|
| 36 |
| --- | --- | --- | --- | --- | --- |
|
| 37 |
+
| val | 6585 | 0.8553 | 0.8187 | 0.8563 | 0.7843 |
|
| 38 |
+
| test | 6496 | 0.8590 | 0.8238 | 0.8595 | 0.7909 |
|
| 39 |
| probe (hand-written) | 97 | 0.9897 | 0.9882 | 0.9767 | 1.0000 |
|
| 40 |
|
| 41 |
The probe set is hand-written and absent from all training data.
|