Downloads · 30 days
44
2% of all-time downloads
minuva/MiniLMv2-toxic-jigsaw-lite
MiniLMv2-toxic-jigsaw-lite is a text classification model from minuva. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fined-tuned version of MiniLMv2-L6-H384 on the on the Jigsaw 1st Kaggle competition dataset using unitary/toxic-bert as teacher model.
Downloads · 30 days
44
2% of all-time downloads
All-time downloads
2K
Public
Parameters
22.7M
273 MB on disk
Likes
1
Public
Click a slice to open those files.
.pt182 MB · 66%
From the Hugging Face model README
This model is a fined-tuned version of MiniLMv2-L6-H384 on the on the Jigsaw 1st Kaggle competition dataset using unitary/toxic-bert as teacher model. The quantized version in ONNX format can be found here.
The model contains two labels only (toxicity and severe toxicity). For the model with all labels refer to this page
from transformers import pipeline
pipe = pipeline(model='minuva/MiniLMv2-toxic-jigsaw-lite', task='text-classification')
pipe("This is pure trash")
# [{'label': 'toxic', 'score': 0.887}]
The following hyperparameters were used during training:
| Teacher (params) | Student (params) | Set (metric) | Score (teacher) | Score (student) |
|---|---|---|---|---|
| unitary/toxic-bert (110M) | MiniLMv2-toxic-jigsaw-lite (23M) | Test (ROC_AUC) | 0.982677 | 0.9815 |
Check our fast-nlp-text-toxicity repository for a FastAPI and ONNX based server to deploy this model on CPU devices.