Downloads · 30 days
12
8% of all-time downloads
enguard/small-guard-32m-en-prompt-sexual-content-binary-moderation
small-guard-32m-en-prompt-sexual-content-binary-moderation is a text classification model from enguard. Use it when you need a label for a piece of text. It is set up for model2vec. The card lists the license as mit.
This model is a fine-tuned Model2Vec classifier based on minishlab/potion-base-32m for the prompt-sexual-content-binary found in the enguard/multi-lingual-prompt-moderation dataset.
Downloads · 30 days
12
8% of all-time downloads
All-time downloads
145
Public
Parameters
32.4M
174 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors130 MB · 89%
How the weights are stored.
F3232.4M · 100%
From the Hugging Face model README
This model is a fine-tuned Model2Vec classifier based on minishlab/potion-base-32m for the prompt-sexual-content-binary found in the enguard/multi-lingual-prompt-moderation dataset.
pip install model2vec[inference]
from model2vec.inference import StaticModelPipeline
model = StaticModelPipeline.from_pretrained(
"enguard/small-guard-32m-en-prompt-sexual-content-binary-moderation"
)
# Supports single texts. Format input as a single text:
text = "Example sentence"
model.predict([text])
model.predict_proba([text])
Below is a quick overview of the model variant and core metrics.
| Field | Value |
|---|---|
| Classifies | prompt-sexual-content-binary |
| Base Model | minishlab/potion-base-32m |
| Precision | 0.9328 |
| Recall | 0.8847 |
| F1 | 0.9081 |
| True \ Predicted | FAIL | PASS |
|---|---|---|
| FAIL | 519 | 68 |
| PASS | 36 | 551 |
{
"FAIL": {
"precision": 0.9328493647912885,
"recall": 0.8846815834767642,
"f1-score": 0.9081272084805654,
"support": 581.0
},
"PASS": {
"precision": 0.8910569105691057,
"recall": 0.9367521367521368,
"f1-score": 0.9133333333333333,
"support": 585.0
},
"accuracy": 0.9108061749571184,
"macro avg": {
"precision": 0.9119531376801971,
"recall": 0.9107168601144504,
"f1-score": 0.9107302709069494,
"support": 1166.0
},
"weighted avg": {
"precision": 0.9118814525100046,
"recall": 0.9108061749571184,
"f1-score": 0.9107392007952045,
"support": 1166.0
}
}
</details>
<details>
<summary><b>Sample Predictions</b></summary>
| Text | True Label | Predicted Label |
|---|---|---|
| "Hey, you Native Americans! Go back to... uh... hm...." | PASS | PASS |
| It might be one of those super douchy denim arm bands. | PASS | PASS |
| What? lol. That's ridiculous. I guess maybe for some people. I can't even ejaculate from a blow job (alone). So, I've had them that last 30-40 minutes.\n\nEDIT: YES!!! My first gilded post is about blow jobs. I'm so stoked. Thanks kind person for the gold! | FAIL | FAIL |
| DO NOT USE ON KNOB AND BOLLOCKS | PASS | PASS |
| That better be a sweet handjob. | FAIL | FAIL |
| "Hey, you Native Americans! Go back to... uh... hm...." | PASS | PASS |
| Dataset Size | Time (seconds) | Predictions/Second |
|---|---|---|
| 1 | 0.0005 | 2168.72 |
| 1000 | 0.0862 | 11606.74 |
| 1174 | 0.1467 | 8000.66 |
Below is a general overview of the best-performing models for each dataset variant.
If you use this model, please cite Model2Vec:
@software{minishlab2024model2vec,
author = {Stephan Tulkens and {van Dongen}, Thomas},
title = {Model2Vec: Fast State-of-the-Art Static Embeddings},
year = {2024},
publisher = {Zenodo},
doi = {10.5281/zenodo.17270888},
url = {https://github.com/MinishLab/model2vec},
license = {MIT}
}