Downloads · 30 days
0
Chinese-Vicuna/Chinese-Vicuna-lora-7b-chatv1
Chinese-Vicuna-lora-7b-chatv1 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 apache-2.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 May 15, 2023
Repo size
240 MB
Likes
18
Public
Click a slice to open those files.
.pt160 MB · 67%
From the Hugging Face model README
This is a Chinese instruction-tuning lora checkpoint based on llama-7B from this repo's work
We use the 50k Chinese data, which is the combination of alpaca_chinese_instruction_dataset and the Chinese conversation data from sharegpt-90k data. We finetune the model for 3 epochs use a single 4090 with ctxlen=2048.
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,
"Chinese-Vicuna/Chinese-Vicuna-lora-7b-chatv1"
torch_dtype=torch.float16,
device_map={'': 0}
)
We offer train-args and train-log in here