How to use datafreak/hate-phi with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("microsoft/phi-2") model = PeftModel.from_pretrained(base_model, "datafreak/hate-phi")
The community tab is the place to discuss and collaborate with the HF community!