yjf9966 commited on
Commit
0f749dd
·
1 Parent(s): 6837133

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -12
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 generated using [Chinese-LLaMA-Alpaca](https://github.com/ymcui/Chinese-LLaMA-Alpaca)
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/Chinese-Alpaca-COIG-49954-7B-HF
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/Chinese-Alpaca-COIG-49954-7B-HF')
70
- model = LlamaForCausalLM.from_pretrained('BlueWhaleX/Chinese-Alpaca-COIG-49954-7B-HF').half().cuda()
71
  model.eval()
72
 
73
  text = '王国维说:“自周之衰,文王、周公势力之瓦解也,国民之智力成熟于内,政治之纷乱乘之于外,上无统一之制度,下迫于社会之要求,于是诸于九流各创其学说。” 他意在说明 A. 分封制的崩溃 B. 商鞅变法的作用 C. 兼并战争的后果 D. 百家争鸣的原因'
@@ -91,11 +91,6 @@ print("Response: ", response, '\n')
91
 
92
  ## Training Details
93
 
94
- ### Training Data
95
-
96
- <!-- This should link to a Data Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
97
-
98
- BAAI/COIG-PC
99
 
100
  ### Training Procedure
101
 
@@ -149,9 +144,9 @@ class TreeNode:
149
 
150
  <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
151
  ```
152
- @software{Chinese-Alpaca-COIG-49954-7B-HF,
153
- title={An Enchanced Chinese Language Model based on the Chinese-Alpaca},
154
- url={https://huggingface.co/BlueWhaleX/Chinese-Alpaca-COIG-49954-7B-HF},
155
  year={2023}
156
  }
157
  ```
 
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 is created based on the [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-7B-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-7B-HF')
70
+ model = LlamaForCausalLM.from_pretrained('BlueWhaleX/bwx-7B-HF').half().cuda()
71
  model.eval()
72
 
73
  text = '王国维说:“自周之衰,文王、周公势力之瓦解也,国民之智力成熟于内,政治之纷乱乘之于外,上无统一之制度,下迫于社会之要求,于是诸于九流各创其学说。” 他意在说明 A. 分封制的崩溃 B. 商鞅变法的作用 C. 兼并战争的后果 D. 百家争鸣的原因'
 
91
 
92
  ## Training Details
93
 
 
 
 
 
 
94
 
95
  ### Training Procedure
96
 
 
144
 
145
  <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
146
  ```
147
+ @software{bwx-7B-HF,
148
+ title={An Enchanced Chinese Language Model based on the Chinese-LLaMA-Alpaca},
149
+ url={https://huggingface.co/BlueWhaleX/bwx-7B-HF},
150
  year={2023}
151
  }
152
  ```