Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,27 @@
|
|
1 |
---
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
# Model Card for Model ID
|
3 |
+
|
4 |
+
This repo contains the tokenizer, Chinese-Alpaca "merged" weights and configs for Chinese-LLaMA-Alpaca
|
5 |
+
Directly load `merge` weight for chinese-llama-alpaca-plus-lora-7b
|
6 |
+
|
7 |
+
|
8 |
+
model_name_or_path = 'we1kkk/chinese-llama-alpaca-plus-lora-7b'
|
9 |
+
|
10 |
+
config = LlamaConfig.from_pretrained(
|
11 |
+
model_name_or_path,
|
12 |
+
# trust_remote_code=True
|
13 |
+
)
|
14 |
+
tokenizer = LlamaTokenizer.from_pretrained(
|
15 |
+
model_name_or_path,
|
16 |
+
# trust_remote_code=True
|
17 |
+
)
|
18 |
+
model = LlamaForCausalLM.from_pretrained(
|
19 |
+
model_name_or_path,
|
20 |
+
config=config,
|
21 |
+
).half().cuda()
|
22 |
+
|
23 |
+
## Citation
|
24 |
+
|
25 |
+
Thanks to: https://github.com/ymcui/Chinese-LLaMA-Alpaca.
|
26 |
+
Instructions for using the weights can be found at https://github.com/ymcui/Chinese-LLaMA-Alpaca.
|
27 |
+
|