Instructions to use the-hir0/pegasus-detoxify with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use the-hir0/pegasus-detoxify with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("the-hir0/pegasus-detoxify") model = AutoModelForSeq2SeqLM.from_pretrained("the-hir0/pegasus-detoxify", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 135 Bytes
d3bf9f1 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:25c97760a8ce1890d583607edfa99deec5df16d3f77df70a226b6685e7eeb011
size 2279610794
|