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") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
| 2 |
license: mit
|
| 3 |
base_model:
|
| 4 |
- FacebookAI/roberta-base
|
|
|
|
| 5 |
pipeline_tag: text-classification
|
| 6 |
tags:
|
| 7 |
- text-classification
|
|
|
|
| 2 |
license: mit
|
| 3 |
base_model:
|
| 4 |
- FacebookAI/roberta-base
|
| 5 |
+
library_name: transformers
|
| 6 |
pipeline_tag: text-classification
|
| 7 |
tags:
|
| 8 |
- text-classification
|