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/Censer.8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KucLab/Censer.8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="KucLab/Censer.8")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("KucLab/Censer.8") model = AutoModelForSequenceClassification.from_pretrained("KucLab/Censer.8", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,178 Bytes
cff0769 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | {
"name": "Censer.8",
"parameters": 903552,
"checkpoint_bytes": 3622845,
"checkpoint_mb": 3.46,
"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.55,
"single_per_second": 1818.1,
"batch_size": 8,
"batch_latency_ms": 1.41,
"batch_per_second": 5690.9,
"peak_vram_mb": null,
"val": {
"threshold": 0.5,
"accuracy": 0.8583143507972665,
"precision": 0.8638007231820009,
"recall": 0.7835276967930029,
"f1": 0.8217083890693675,
"tp": 2150,
"fp": 339,
"tn": 3502,
"fn": 594,
"total": 6585
},
"test": {
"threshold": 0.5,
"accuracy": 0.8568349753694581,
"precision": 0.8622095393395842,
"recall": 0.7813077207240487,
"f1": 0.8197674418604651,
"tp": 2115,
"fp": 338,
"tn": 3451,
"fn": 592,
"total": 6496
},
"probe_set": {
"threshold": 0.5,
"accuracy": 1.0,
"precision": 1.0,
"recall": 1.0,
"f1": 1.0,
"tp": 42,
"fp": 0,
"tn": 55,
"fn": 0,
"total": 97
}
} |