Instructions to use Chiaki111/phi4-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Chiaki111/phi4-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("microsoft/Phi-4-mini-instruct") model = PeftModel.from_pretrained(base_model, "Chiaki111/phi4-lora") - Transformers
How to use Chiaki111/phi4-lora with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Chiaki111/phi4-lora", dtype="auto") - Notebooks
- Google Colab
- Kaggle