yahma/alpaca-cleaned
Viewer • Updated • 51.8k • 29.8k • 833
How to use NouRed/quantized-llama2-alpaca with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-hf")
model = PeftModel.from_pretrained(base_model, "NouRed/quantized-llama2-alpaca")quantized-llama2-alpaca is a fine-tuned version of the LLaMA2 (Llama-2-7b-hf) model on the Alpaca dataset using QLoRA.
The following bitsandbytes quantization config was used during training:
Base model
meta-llama/Llama-2-7b-hf