camoscio-7b-llama / README.md
teelinsan's picture
Update README.md
e7e99da
|
raw
history blame
749 Bytes
metadata
license: openrail
language:
  - it
pipeline_tag: text-generation
tags:
  - llama
  - italian
  - italiano

Camoscio: An Italian instruction-tuned LLaMA

Usage

Check the Github repo with code: https://github.com/teelinsan/camoscio

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=True,
    device_map="auto",
)
model = PeftModel.from_pretrained(model, "teelinsan/camoscio-7b-llama")

Open In Colab