Text Classification
Transformers
Safetensors
English
bert
toxic
toxicity
hate speech
offensive language
multi-class-classification
multi-label-classification
text-embeddings-inference
Instructions to use minuva/MiniLMv2-toxic-jigsaw-lite with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use minuva/MiniLMv2-toxic-jigsaw-lite with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="minuva/MiniLMv2-toxic-jigsaw-lite")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("minuva/MiniLMv2-toxic-jigsaw-lite") model = AutoModelForSequenceClassification.from_pretrained("minuva/MiniLMv2-toxic-jigsaw-lite", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from minuva/MiniLMv2-toxic-jigsaw-lite: direct link, hf CLI and curl.
- Browser
- Download file 712 kB
-
https://huggingface.co/minuva/MiniLMv2-toxic-jigsaw-lite/resolve/main/tokenizer.json
- Command line
-
hf download hf://minuva/MiniLMv2-toxic-jigsaw-lite/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/minuva/MiniLMv2-toxic-jigsaw-lite/resolve/main/tokenizer.json
712 kB
File too large to display, you can check the raw version instead.