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:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Mohamedd123321/phi3_safety_clf", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download checkpoint-2000/tokenizer.json from Mohamedd123321/phi3_safety_clf: direct link, hf CLI and curl.
- Browser
- Download file 3.62 MB
-
https://huggingface.co/Mohamedd123321/phi3_safety_clf/resolve/main/checkpoint-2000/tokenizer.json
- Command line
-
hf download hf://Mohamedd123321/phi3_safety_clf/checkpoint-2000/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/Mohamedd123321/phi3_safety_clf/resolve/main/checkpoint-2000/tokenizer.json
3.62 MB
File too large to display, you can check the raw version instead.