Downloads · 30 days
0
Chinese-Vicuna/Chinese-Vicuna-lora-7b-belle-and-guanaco
Chinese-Vicuna-lora-7b-belle-and-guanaco is a machine learning model from Chinese-Vicuna. 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 gpl-3.0.
This is a Chinese instruction-tuning lora checkpoint based on llama-7B from this repo's work
Downloads · 30 days
0
Access
Public
Updated Mar 30, 2023
Repo size
67.3 MB
Likes
12
Public
Click a slice to open those files.
.bin33.6 MB · 50%
From the Hugging Face model README
This is a Chinese instruction-tuning lora checkpoint based on llama-7B from this repo's work
You can use it like this:
from transformers import LlamaForCausalLM
from peft import PeftModel
model = LlamaForCausalLM.from_pretrained(
"decapoda-research/llama-7b-hf",
load_in_8bit=True,
torch_dtype=torch.float16,
device_map="auto",
)
model = PeftModel.from_pretrained(
model,
LORA_PATH, # specific checkpoint path from "Chinese-Vicuna/Chinese-Vicuna-lora-7b-belle-and-guanaco"
torch_dtype=torch.float16,
device_map={'': 0}
)