Instructions to use Mahesh2841/phi4-toxic-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Mahesh2841/phi4-toxic-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/phi-4") model = PeftModel.from_pretrained(base_model, "Mahesh2841/phi4-toxic-lora") - Notebooks
- Google Colab
- Kaggle
Ctrl+K