Instructions to use unitary/toxic-bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use unitary/toxic-bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="unitary/toxic-bert", device_map="auto")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("unitary/toxic-bert") model = AutoModelForSequenceClassification.from_pretrained("unitary/toxic-bert", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
|
| 2 |
|
| 3 |
<div align="center">
|
|
@@ -324,4 +327,4 @@ python evaluate.py --checkpoint saved/lightning_logs/checkpoints/example_checkpo
|
|
| 324 |
howpublished={Github. https://github.com/unitaryai/detoxify},
|
| 325 |
year={2020}
|
| 326 |
}
|
| 327 |
-
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
---
|
| 4 |
|
| 5 |
|
| 6 |
<div align="center">
|
|
|
|
| 327 |
howpublished={Github. https://github.com/unitaryai/detoxify},
|
| 328 |
year={2020}
|
| 329 |
}
|
| 330 |
+
```
|