shiyemin2 commited on
Commit
a3cc1c9
1 Parent(s): bd72f63

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -2
README.md CHANGED
@@ -23,7 +23,8 @@ widget:
23
  > Talk is cheap, Show you the Demo.
24
 
25
  - [Demo 地址 / HuggingFace Spaces](https://huggingface.co/spaces/LinkSoul/Chinese-Llama-2-7b)
26
- - [Colab 一键启动](#
 
27
  )
28
 
29
  ## 快速测试
@@ -40,7 +41,7 @@ instruction = """[INST] <<SYS>>\nYou are a helpful, respectful and honest assist
40
 
41
  If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.\n<</SYS>>\n\n{} [/INST]"""
42
 
43
- prompt = instruction.format("用英文回答,什么是夫妻肺片?")
44
  generate_ids = model.generate(tokenizer(prompt, return_tensors='pt').input_ids.cuda(), max_new_tokens=4096, streamer=streamer)
45
  ```
46
 
 
23
  > Talk is cheap, Show you the Demo.
24
 
25
  - [Demo 地址 / HuggingFace Spaces](https://huggingface.co/spaces/LinkSoul/Chinese-Llama-2-7b)
26
+ -
27
+ [Colab 一键启动](#
28
  )
29
 
30
  ## 快速测试
 
41
 
42
  If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.\n<</SYS>>\n\n{} [/INST]"""
43
 
44
+ prompt = instruction.format("用中文回答,When is the best time to visit Beijing, and do you have any suggestions for me?")
45
  generate_ids = model.generate(tokenizer(prompt, return_tensors='pt').input_ids.cuda(), max_new_tokens=4096, streamer=streamer)
46
  ```
47