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:
- 9f492e407d60555fb0e709435e98dcb7d8218f06e22d3b7077f9a83806ab7b5a
- Size of remote file:
- 1 kB
- SHA256:
- 108df313bb6a5d5592937dc0afbe315665923758d97c08b83089e679470ac9e2
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.