Text Classification
Transformers
Safetensors
English
llama
safety
content-moderation
tiny-language-model
from-scratch
text-embeddings-inference
Instructions to use KucLab/Censer.2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KucLab/Censer.2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="KucLab/Censer.2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("KucLab/Censer.2") model = AutoModelForSequenceClassification.from_pretrained("KucLab/Censer.2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from KucLab/Censer.2: direct link, hf CLI and curl.
- Browser
- Download file 128 Bytes
-
https://huggingface.co/KucLab/Censer.2/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://KucLab/Censer.2/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/KucLab/Censer.2/resolve/main/tokenizer_config.json
128 Bytes
| { | |
| "tokenizer_class": "PreTrainedTokenizerFast", | |
| "pad_token": "[PAD]", | |
| "bos_token": "[BOS]", | |
| "eos_token": "[ASSISTANT]" | |
| } |