Spaces:
Runtime error
Runtime error
ffreemt
commited on
Commit
•
0143d9f
1
Parent(s):
fd71055
Updte url and prompt_template
Browse files
app.py
CHANGED
@@ -58,6 +58,8 @@ if _:
|
|
58 |
url = "https://huggingface.co/TheBloke/llama2_7b_chat_uncensored-GGML/blob/main/llama2_7b_chat_uncensored.ggmlv3.q4_K_M.bin" # 4.08G
|
59 |
|
60 |
|
|
|
|
|
61 |
prompt_template = """Below is an instruction that describes a task. Write a response that appropriately completes the request.
|
62 |
|
63 |
### Instruction: {user_prompt}
|
@@ -111,6 +113,13 @@ prompt_template = """### HUMAN:
|
|
111 |
|
112 |
### RESPONSE:"""
|
113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
_ = [elm for elm in prompt_template.splitlines() if elm.strip()]
|
115 |
stop_string = [elm.split(":")[0] + ":" for elm in _][-2]
|
116 |
|
|
|
58 |
url = "https://huggingface.co/TheBloke/llama2_7b_chat_uncensored-GGML/blob/main/llama2_7b_chat_uncensored.ggmlv3.q4_K_M.bin" # 4.08G
|
59 |
|
60 |
|
61 |
+
url = "https://huggingface.co/spaces/mikeee/nousresearch-nous-hermes-llama2-13b-ggml" # 8.06G
|
62 |
+
|
63 |
prompt_template = """Below is an instruction that describes a task. Write a response that appropriately completes the request.
|
64 |
|
65 |
### Instruction: {user_prompt}
|
|
|
113 |
|
114 |
### RESPONSE:"""
|
115 |
|
116 |
+
prompt_template = """
|
117 |
+
### Instruction:
|
118 |
+
<question>
|
119 |
+
|
120 |
+
### Response:
|
121 |
+
"""
|
122 |
+
|
123 |
_ = [elm for elm in prompt_template.splitlines() if elm.strip()]
|
124 |
stop_string = [elm.split(":")[0] + ":" for elm in _][-2]
|
125 |
|