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")# 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
- Xet hash:
- acf07d443a1cdd51b8a3850b30bc802e864e68702791d4ebe432fbe7891df3fa
- Size of remote file:
- 997 MB
- SHA256:
- b6f0c256603715309937a4ac5ea2fe9c25cd31e5fdd29a523bc6066d1e0d780c
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.