Instructions to use Roaoch/t5_toxicity_adapter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Roaoch/t5_toxicity_adapter with PEFT:
from peft import PeftModel from transformers import AutoModelForSeq2SeqLM base_model = AutoModelForSeq2SeqLM.from_pretrained("ai-forever/ruT5-base") model = PeftModel.from_pretrained(base_model, "Roaoch/t5_toxicity_adapter") - Notebooks
- Google Colab
- Kaggle
Ctrl+K