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.9 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KucLab/Censer.9 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="KucLab/Censer.9")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("KucLab/Censer.9") model = AutoModelForSequenceClassification.from_pretrained("KucLab/Censer.9", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Add report long_context.json
Browse files- reports/long_context.json +21 -0
reports/long_context.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"checkpoint": "checkpoints9h/best.pt",
|
| 3 |
+
"ctx": 4096,
|
| 4 |
+
"n_docs": 300,
|
| 5 |
+
"avg_chars": 6533.31,
|
| 6 |
+
"avg_tokens": 2178.21,
|
| 7 |
+
"results": {
|
| 8 |
+
"truncate_192_tokens": {
|
| 9 |
+
"acc": 0.4266666666666667,
|
| 10 |
+
"f1": 0.5981308411214953
|
| 11 |
+
},
|
| 12 |
+
"native_4096_tokens": {
|
| 13 |
+
"acc": 0.043333333333333335,
|
| 14 |
+
"f1": 0.08306709265175719
|
| 15 |
+
},
|
| 16 |
+
"chunked_256_192_max": {
|
| 17 |
+
"acc": 0.9933333333333333,
|
| 18 |
+
"f1": 0.9966555183946488
|
| 19 |
+
}
|
| 20 |
+
}
|
| 21 |
+
}
|