Instructions to use NightPrince/peft-distilbert-toxic-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use NightPrince/peft-distilbert-toxic-classifier with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("distilbert-base-uncased") model = PeftModel.from_pretrained(base_model, "NightPrince/peft-distilbert-toxic-classifier") - Notebooks
- Google Colab
- Kaggle
Ctrl+K