Instructions to use TianJun1/lora-llama3-8b-code with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use TianJun1/lora-llama3-8b-code with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("hf_models/Llama-3.1-8B-Instruct/Llama-3.1-8B-Instruct") model = PeftModel.from_pretrained(base_model, "TianJun1/lora-llama3-8b-code") - Notebooks
- Google Colab
- Kaggle
Ctrl+K