Update README.md
Browse files
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 |
-
-
|
|
|
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 |
|