How to use mingyue0101/codellama-7b-matplotlib-assistant with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("codellama/CodeLlama-7b-Instruct-hf") model = PeftModel.from_pretrained(base_model, "mingyue0101/codellama-7b-matplotlib-assistant")