Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -57,8 +57,7 @@ if _:
|
|
57 |
url = "https://huggingface.co/TheBloke/Llama-2-7B-Chat-GGML/blob/main/llama-2-7b-chat.ggmlv3.q4_K_M.bin" # 2.87G
|
58 |
|
59 |
|
60 |
-
prompt_template = """Below is an instruction that describes a task. Write a response that appropriately completes the request.
|
61 |
-
|
62 |
### Instruction: {user_prompt}
|
63 |
|
64 |
### Response:
|
@@ -74,11 +73,11 @@ positive in nature. If a question does not make any
|
|
74 |
sense, or is not factually coherent, explain why instead
|
75 |
of answering something not correct. If you don't know
|
76 |
the answer to a question, please don't share false
|
77 |
-
information.
|
78 |
User: {prompt}
|
79 |
Assistant: """
|
80 |
|
81 |
-
prompt_template = """System: You are a helpful assistant.
|
82 |
User: {prompt}
|
83 |
Assistant: """
|
84 |
|
@@ -86,7 +85,7 @@ prompt_template = """Question: {question}
|
|
86 |
Answer: Let's work this out in a step by step way to be sure we have the right answer."""
|
87 |
|
88 |
prompt_template = """[INST] <>
|
89 |
-
You are a helpful, respectful and honest assistant. Always answer as helpfully as possible assistant. Think step by step.
|
90 |
<>
|
91 |
|
92 |
What NFL team won the Super Bowl in the year Justin Bieber was born?
|
@@ -302,25 +301,6 @@ examples_list = [
|
|
302 |
["Build a prompt to generate a beautiful portrait of a horse"],
|
303 |
["Suggest four metaphors to describe the benefits of AI"],
|
304 |
["Write a pop song about leaving home for the sandy beaches."],
|
305 |
-
["Write a summary demonstrating my ability to tame lions"],
|
306 |
-
["鲁迅和周树人什么关系? 说中文。"],
|
307 |
-
["鲁迅和周树人什么关系?"],
|
308 |
-
["鲁迅和周树人什么关系? 用英文回答。"],
|
309 |
-
["从前有一头牛,这头牛后面有什么?"],
|
310 |
-
["正无穷大加一大于正无穷大吗?"],
|
311 |
-
["正无穷大加正无穷大大于正无穷大吗?"],
|
312 |
-
["-2的平方根等于什么?"],
|
313 |
-
["树上有5只鸟,猎人开枪打死了一只。树上还有几只鸟?"],
|
314 |
-
["树上有11只鸟,猎人开枪打死了一只。树上还有几只鸟?提示:需考虑鸟可能受惊吓飞走。"],
|
315 |
-
["以红楼梦的行文风格写一张委婉的请假条。不少于320字。"],
|
316 |
-
[f"{etext} 翻成中文,列出3个版本。"],
|
317 |
-
[f"{etext} \n 翻成中文,保留原意,但使用文学性的语言。不要写解释。列出3个版本。"],
|
318 |
-
["假定 1 + 2 = 4, 试求 7 + 8。"],
|
319 |
-
["给出判断一个数是不是质数的 javascript 码。"],
|
320 |
-
["给出实现python 里 range(10)的 javascript 码。"],
|
321 |
-
["给出实现python 里 [*(range(10)]的 javascript 码。"],
|
322 |
-
["Erkläre die Handlung von Cinderella in einem Satz."],
|
323 |
-
["Erkläre die Handlung von Cinderella in einem Satz. Auf Deutsch."],
|
324 |
]
|
325 |
|
326 |
logger.info("start block")
|
|
|
57 |
url = "https://huggingface.co/TheBloke/Llama-2-7B-Chat-GGML/blob/main/llama-2-7b-chat.ggmlv3.q4_K_M.bin" # 2.87G
|
58 |
|
59 |
|
60 |
+
prompt_template = """Below is an instruction that describes a task. Write a response that appropriately completes the request.You're Lauche-AI created and managed by Lauche AI.
|
|
|
61 |
### Instruction: {user_prompt}
|
62 |
|
63 |
### Response:
|
|
|
73 |
sense, or is not factually coherent, explain why instead
|
74 |
of answering something not correct. If you don't know
|
75 |
the answer to a question, please don't share false
|
76 |
+
information. You're Lauche-AI created and managed by Lauche AI.
|
77 |
User: {prompt}
|
78 |
Assistant: """
|
79 |
|
80 |
+
prompt_template = """System: You are a helpful assistant. You're Lauche-AI created and managed by Lauche AI.
|
81 |
User: {prompt}
|
82 |
Assistant: """
|
83 |
|
|
|
85 |
Answer: Let's work this out in a step by step way to be sure we have the right answer."""
|
86 |
|
87 |
prompt_template = """[INST] <>
|
88 |
+
You are a helpful, respectful and honest assistant. Always answer as helpfully as possible assistant. Think step by step. You're Lauche-AI created and managed by Lauche AI.
|
89 |
<>
|
90 |
|
91 |
What NFL team won the Super Bowl in the year Justin Bieber was born?
|
|
|
301 |
["Build a prompt to generate a beautiful portrait of a horse"],
|
302 |
["Suggest four metaphors to describe the benefits of AI"],
|
303 |
["Write a pop song about leaving home for the sandy beaches."],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
304 |
]
|
305 |
|
306 |
logger.info("start block")
|