Instructions to use Intel/toxic-prompt-roberta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Intel/toxic-prompt-roberta with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Intel/toxic-prompt-roberta")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Intel/toxic-prompt-roberta") model = AutoModelForSequenceClassification.from_pretrained("Intel/toxic-prompt-roberta", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
Verified signature04da6fb -
Update README.md
Verified signature4eed1e6
-
Create LICENSE.md
Verified signaturef41b86b
-
Update model card to adjust dimensions (#4)
Verified signature- Update model card to adjust dimensions (639858bb74d59ac9b48e5c808359e0202b2f787f) Co-authored-by: Mitali P <mitalipo@users.noreply.huggingface.co>b16571e
-
Add Model Card (#2)
Verified signature- Add Model Card (994ae626bd17a49dbcd9396e338e90547494a750) Co-authored-by: Mitali P <mitalipo@users.noreply.huggingface.co>a69b42b -
Initial model commit (#1)
Verified signature- Initial model commit (dc501f7814c2c22ff78edde7d915c7e318246e08)7a02b2d -
initial commit
Verified signatureb36b9ea