Downloads · 30 days
8
23% of all-time downloads
jcfneto/lora-cabrita-tv-ptbr
lora-cabrita-tv-ptbr is a machine learning model from jcfneto. 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 peft.
Downloads · 30 days
8
23% of all-time downloads
All-time downloads
35
Public
Repo size
28 MB
Likes
0
Public
Click a slice to open those files.
.bin17.3 MB · 100%
From the Hugging Face model README
from peft import PeftModel
from transformers import LLaMATokenizer, LLaMAForCausalLM, GenerationConfig
tokenizer = LLaMATokenizer.from_pretrained("22h/open-cabrita3b")
model = LLaMAForCausalLM.from_pretrained(
"22h/open-cabrita3b",
load_in_8bit=True,
device_map="auto",
)
model = PeftModel.from_pretrained(model, "jcfneto/lora-cabrita-tv-ptbr")