Chinese-Vicuna/Chinese-Vicuna-lora-13b-belle-and-guanaco

Model

49

stars

8

commits

2

linked in READMEs

May 6, 2023

updated

README

This is a Chinese instruction-tuning lora checkpoint based on llama-13B 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-13b-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-13b-belle-and-guanaco"
    torch_dtype=torch.float16,
    device_map={'': 0}
)

Contributors

lu-vae

5 commits

Facico

1 commits

LU
luzhenyi

1 commits

ZY
zy

1 commits

Chinese-Vicuna/Chinese-Vicuna-lora-13b-belle-and-guanaco

Model

49

stars

8

commits

2

linked in READMEs

May 6, 2023

updated

README

This is a Chinese instruction-tuning lora checkpoint based on llama-13B 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-13b-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-13b-belle-and-guanaco"
    torch_dtype=torch.float16,
    device_map={'': 0}
)

Contributors

lu-vae

5 commits

Facico

1 commits

LU
luzhenyi

1 commits

ZY
zy

1 commits