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
Download rng_state.pth from Intel/toxic-prompt-roberta: direct link, hf CLI and curl.
- Browser
- Download file 18 kB
-
https://huggingface.co/Intel/toxic-prompt-roberta/resolve/main/rng_state.pth
- Command line
-
hf download hf://Intel/toxic-prompt-roberta/rng_state.pth
-
curl -L -o rng_state.pth https://huggingface.co/Intel/toxic-prompt-roberta/resolve/main/rng_state.pth
18 kB
- Xet hash:
- 3937f326bb6484719d950c5a716feb06c294ed95eab00e42084755f88afaf41c
- Size of remote file:
- 18 kB
- SHA256:
- c50c01182c5ba44de7f7e08adaaed4e3a198e9f7e4230f6915be7d54ac67cd50
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.