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