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
Model card looks a bit messed up
#3
by umarbutler - opened
Thank you for catching this @umarbutler ! The last PR has fixed this issue. Please let us know if you are still seeing it on your end or have any other issues.
daniel-de-leon changed discussion status to closed
