from model2vec.inference import StaticModelPipeline
model = StaticModelPipeline.from_pretrained(
"enguard/small-guard-32m-en-prompt-hate-speech-binary-moderation"
)
# Supports single texts. Format input as a single text:
text = "Example sentence"
model.predict([text])
model.predict_proba([text])
Why should you use these models?
Optimized for precision to reduce false positives.
Extremely fast inference: up to x500 faster than SetFit.
This model variant
Below is a quick overview of the model variant and core metrics.
small-guard-32m-en-prompt-hate-speech-binary-moderation huggingface.co is an AI model on huggingface.co that provides small-guard-32m-en-prompt-hate-speech-binary-moderation's model effect (), which can be used instantly with this enguard small-guard-32m-en-prompt-hate-speech-binary-moderation model. huggingface.co supports a free trial of the small-guard-32m-en-prompt-hate-speech-binary-moderation model, and also provides paid use of the small-guard-32m-en-prompt-hate-speech-binary-moderation. Support call small-guard-32m-en-prompt-hate-speech-binary-moderation model through api, including Node.js, Python, http.
small-guard-32m-en-prompt-hate-speech-binary-moderation huggingface.co is an online trial and call api platform, which integrates small-guard-32m-en-prompt-hate-speech-binary-moderation's modeling effects, including api services, and provides a free online trial of small-guard-32m-en-prompt-hate-speech-binary-moderation, you can try small-guard-32m-en-prompt-hate-speech-binary-moderation online for free by clicking the link below.
enguard small-guard-32m-en-prompt-hate-speech-binary-moderation online free url in huggingface.co:
small-guard-32m-en-prompt-hate-speech-binary-moderation is an open source model from GitHub that offers a free installation service, and any user can find small-guard-32m-en-prompt-hate-speech-binary-moderation on GitHub to install. At the same time, huggingface.co provides the effect of small-guard-32m-en-prompt-hate-speech-binary-moderation install, users can directly use small-guard-32m-en-prompt-hate-speech-binary-moderation installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
small-guard-32m-en-prompt-hate-speech-binary-moderation install url in huggingface.co: