How to use Mohamedd123321/phi3_safety_clf with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("microsoft/Phi-3-mini-4k-instruct") model = PeftModel.from_pretrained(base_model, "Mohamedd123321/phi3_safety_clf")
How to use Mohamedd123321/phi3_safety_clf with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Mohamedd123321/phi3_safety_clf", dtype="auto")
The community tab is the place to discuss and collaborate with the HF community!