Instructions to use advy/phi-2-hate-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use advy/phi-2-hate-classifier with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("microsoft/phi-2") model = PeftModel.from_pretrained(base_model, "advy/phi-2-hate-classifier") - Transformers
How to use advy/phi-2-hate-classifier with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("advy/phi-2-hate-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download training_args.bin from advy/phi-2-hate-classifier: direct link, hf CLI and curl.
- Browser
- Download file 5.71 kB
-
https://huggingface.co/advy/phi-2-hate-classifier/resolve/main/training_args.bin
- Command line
-
hf download hf://advy/phi-2-hate-classifier/training_args.bin
-
curl -L -o training_args.bin https://huggingface.co/advy/phi-2-hate-classifier/resolve/main/training_args.bin
5.71 kB
- Xet hash:
- 06cffe96cbecb9c71491cb079fbb455bc72c51ef59928549e9324416c3857b19
- Size of remote file:
- 5.71 kB
- SHA256:
- d45ca546d037a972650be3c0b44d6127d499a70c3bef6409499d6f1dd8734faf
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.