Downloads · 30 days
0
LLMer/Chinese-Vicuna-lora-13b-chatv1
Chinese-Vicuna-lora-13b-chatv1 is a machine learning model from LLMer. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This is a Chinese instruction-tuning lora checkpoint based on llama-13B from this repo's work
Downloads · 30 days
0
Access
Public
Updated Jul 24, 2023
Repo size
501 MB
Likes
0
Public
Click a slice to open those files.
.bin251 MB · 50%
From the Hugging Face model README
This is a Chinese instruction-tuning lora checkpoint based on llama-13B 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 four V100s with ctxlen=2048.
You can use it like this:
from transformers import LlamaForCausalLM
from peft import PeftModel
model = LlamaForCausalLM.from_pretrained(
"yahma/llama-13b-hf",
load_in_8bit=False,
torch_dtype=torch.float16,
device_map="auto",
)
model = PeftModel.from_pretrained(
model,
"LLMer/Chinese-Vicuna-lora-13b-chatv1"
torch_dtype=torch.float16,
device_map={'': 0}
)