Instructions to use Shivenys/phi3-mini-lora-tutorial with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Shivenys/phi3-mini-lora-tutorial with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/Phi-3-mini-4k-instruct") model = PeftModel.from_pretrained(base_model, "Shivenys/phi3-mini-lora-tutorial") - Transformers
How to use Shivenys/phi3-mini-lora-tutorial with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Shivenys/phi3-mini-lora-tutorial", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download adapter_model.safetensors from Shivenys/phi3-mini-lora-tutorial: direct link, hf CLI and curl.
- Browser
- Download file 9.45 MB
-
https://huggingface.co/Shivenys/phi3-mini-lora-tutorial/resolve/main/adapter_model.safetensors
- Command line
-
hf download hf://Shivenys/phi3-mini-lora-tutorial/adapter_model.safetensors
-
curl -L -o adapter_model.safetensors https://huggingface.co/Shivenys/phi3-mini-lora-tutorial/resolve/main/adapter_model.safetensors
9.45 MB
- Xet hash:
- 3e03011fe0296b98b9c941a4190a5e678ab8eed8345615651566db761e603ece
- Size of remote file:
- 9.45 MB
- SHA256:
- 46410ac5be1667fdddfcc5aa28e64d5bc182b67bd10bc0497e7e342e00a9ffac
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.