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 README.md from Shivenys/phi3-mini-lora-tutorial: direct link, hf CLI and curl.
- Browser
- Download file 28 Bytes
-
https://huggingface.co/Shivenys/phi3-mini-lora-tutorial/resolve/5ecc74ed20ee7b366eebbd7161ef004c6d058d86/README.md
- Command line
-
hf download hf://Shivenys/phi3-mini-lora-tutorial@5ecc74ed20ee7b366eebbd7161ef004c6d058d86/README.md
-
curl -L -o README.md https://huggingface.co/Shivenys/phi3-mini-lora-tutorial/resolve/5ecc74ed20ee7b366eebbd7161ef004c6d058d86/README.md
28 Bytes
metadata
license: apache-2.0