Downloads · 30 days
0
avocardio/alpaca-lora-7b-german-base-52k
alpaca-lora-7b-german-base-52k is a machine learning model from avocardio. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
Visit the Github for more information: https://github.com/avocardio/zicklein
Downloads · 30 days
0
Access
Public
Updated May 22, 2023
Repo size
16.8 MB
Likes
14
Public
Click a slice to open those files.
.bin16.8 MB · 100%
From the Hugging Face model README
Visit the Github for more information: https://github.com/avocardio/zicklein
from peft import PeftModel
from transformers import LLaMATokenizer, LLaMAForCausalLM, GenerationConfig
tokenizer = LLaMATokenizer.from_pretrained("decapoda-research/llama-7b-hf")
model = LLaMAForCausalLM.from_pretrained(
"decapoda-research/llama-7b-hf",
load_in_8bit=False,
torch_dtype=torch.float16,
device_map="auto",
)
model = PeftModel.from_pretrained(model, "avocardio/alpaca-lora-7b-german-base-52k")