Instructions to use Mohamedd123321/phi3_safety_clf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
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") - Transformers
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") - Notebooks
- Google Colab
- Kaggle
Ctrl+K