Downloads · 30 days
0
teelinsan/camoscio-7b-llama
camoscio-7b-llama is a machine learning model from teelinsan. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as openrail.
Check the Github repo with code: https://github.com/teelinsan/camoscio
Downloads · 30 days
0
Access
Public
Updated Apr 2, 2023
Repo size
35.1 GB
Likes
10
Public
Click a slice to open those files.
.bin16.8 MB · 100%
From the Hugging Face model README
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")
Generation Example: Open In Colab