Alpaca LoRa 7B
This repository contains a LLaMA-7B fine-tuned model on the Standford Alpaca cleaned version dataset.
⚠️ I used LLaMA-7B-hf as a base model, so this model is for Research purpose only (See the license)
Usage
Using the model
from transformers import LlamaTokenizer, LlamaForCausalLM,
tokenizer = LlamaTokenizer.from_pretrained("decapoda-research/alpaca-lora-7b")
model = LlamaForCausalLM.from_pretrained(
"chainyo/alpaca-lora-7b",
load_in_8bit=True,
torch_dtype=torch.float16,
device_map="auto",
)
model.eval()
if torch.__version__ >= "2":
model = torch.compile(model)