Update README.md
Browse files
README.md
CHANGED
@@ -12,7 +12,7 @@ pipeline_tag: question-answering
|
|
12 |
|
13 |
<!-- Provide a quick summary of what the model is/does. -->
|
14 |
|
15 |
-
This is an experimental product that can be used to create new LLM bassed on Chinese language. It has been
|
16 |
## Model Details
|
17 |
|
18 |
### Model Description
|
@@ -30,7 +30,7 @@ This is an experimental product that can be used to create new LLM bassed on Chi
|
|
30 |
|
31 |
<!-- Provide the basic links for the model. -->
|
32 |
|
33 |
-
- **Repository:** https://huggingface.co/BlueWhaleX/
|
34 |
|
35 |
## Uses
|
36 |
|
@@ -66,8 +66,8 @@ def generate_prompt(text):
|
|
66 |
return f"""Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n" +
|
67 |
### Instruction:\n\n{text}\n\n### Response:\n\n"""
|
68 |
|
69 |
-
tokenizer = LlamaTokenizer.from_pretrained('BlueWhaleX/
|
70 |
-
model = LlamaForCausalLM.from_pretrained('BlueWhaleX/
|
71 |
model.eval()
|
72 |
|
73 |
text = '王国维说:“自周之衰,文王、周公势力之瓦解也,国民之智力成熟于内,政治之纷乱乘之于外,上无统一之制度,下迫于社会之要求,于是诸于九流各创其学说。” 他意在说明 A. 分封制的崩溃 B. 商鞅变法的作用 C. 兼并战争的后果 D. 百家争鸣的原因'
|
@@ -122,9 +122,9 @@ BAAI/COIG-PC
|
|
122 |
|
123 |
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
124 |
```
|
125 |
-
@software{
|
126 |
title={An Enchanced Chinese Language Model based on the Chinese-Alpaca},
|
127 |
-
url={https://huggingface.co/BlueWhaleX/
|
128 |
year={2023}
|
129 |
}
|
130 |
```
|
|
|
12 |
|
13 |
<!-- Provide a quick summary of what the model is/does. -->
|
14 |
|
15 |
+
This is an experimental product that can be used to create new LLM bassed on Chinese language. It has been created based on [Chinese-LLaMA-Alpaca](https://github.com/ymcui/Chinese-LLaMA-Alpaca)
|
16 |
## Model Details
|
17 |
|
18 |
### Model Description
|
|
|
30 |
|
31 |
<!-- Provide the basic links for the model. -->
|
32 |
|
33 |
+
- **Repository:** https://huggingface.co/BlueWhaleX/bwx-13B-HF
|
34 |
|
35 |
## Uses
|
36 |
|
|
|
66 |
return f"""Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n" +
|
67 |
### Instruction:\n\n{text}\n\n### Response:\n\n"""
|
68 |
|
69 |
+
tokenizer = LlamaTokenizer.from_pretrained('BlueWhaleX/bwx-13B-HF')
|
70 |
+
model = LlamaForCausalLM.from_pretrained('BlueWhaleX/bwx-13B-HF').half().cuda()
|
71 |
model.eval()
|
72 |
|
73 |
text = '王国维说:“自周之衰,文王、周公势力之瓦解也,国民之智力成熟于内,政治之纷乱乘之于外,上无统一之制度,下迫于社会之要求,于是诸于九流各创其学说。” 他意在说明 A. 分封制的崩溃 B. 商鞅变法的作用 C. 兼并战争的后果 D. 百家争鸣的原因'
|
|
|
122 |
|
123 |
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
124 |
```
|
125 |
+
@software{bwx-13B-HF,
|
126 |
title={An Enchanced Chinese Language Model based on the Chinese-Alpaca},
|
127 |
+
url={https://huggingface.co/BlueWhaleX/bwx-13B-HF},
|
128 |
year={2023}
|
129 |
}
|
130 |
```
|