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}
)