Instructions to use ifmain/ModerationBERT-En-02 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ifmain/ModerationBERT-En-02 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ifmain/ModerationBERT-En-02")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ifmain/ModerationBERT-En-02") model = AutoModelForSequenceClassification.from_pretrained("ifmain/ModerationBERT-En-02", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
Verified signature78f563d
-
Update README.md
Verified signaturedcb5808
-
Update README.md
Verified signature4bdda11
-
Upload 5 files
Verified signature13fe2b9
-
Update README.md
Verified signature9a89a05 -
Update README.md
Verified signaturea68f96b -
Update README.md
Verified signature724a72c -
Update README.md
Verified signatured02c985 -
initial commit
Verified signature32fa5b8