File size: 440 Bytes
b10c239 d36e654 b10c239 cf48cc4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
---
library_name: peft
base_model: 22h/open-cabrita3b
---
## Usage
```python
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")
``` |