Instructions to use hurtmongoose/phi2-lora-malicious-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use hurtmongoose/phi2-lora-malicious-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, "hurtmongoose/phi2-lora-malicious-classifier") - Transformers
How to use hurtmongoose/phi2-lora-malicious-classifier with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("hurtmongoose/phi2-lora-malicious-classifier", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!