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.model from Mohamedd123321/phi3_safety_clf: direct link, hf CLI and curl.
- Browser
- Download file 500 kB
-
https://huggingface.co/Mohamedd123321/phi3_safety_clf/resolve/main/checkpoint-2000/tokenizer.model
- Command line
-
hf download hf://Mohamedd123321/phi3_safety_clf/checkpoint-2000/tokenizer.model
-
curl -L -o tokenizer.model https://huggingface.co/Mohamedd123321/phi3_safety_clf/resolve/main/checkpoint-2000/tokenizer.model
500 kB
- Xet hash:
- 91bf184ab12793d0754344f9095332759432e666320cc6c07f637af50e36db6f
- Size of remote file:
- 500 kB
- SHA256:
- 9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.