s3nh commited on
Commit
a28cfa2
·
1 Parent(s): 32b282e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -13,7 +13,7 @@ from dl_hf_model import dl_hf_model
13
  from loguru import logger
14
 
15
 
16
- URL = "https://huggingface.co/s3nh/LLaMA-2-7B-32K-GGML/resolve/main/LLaMA-2-7B-32K.ggmlv3.q4_1.bin" # 4.05G
17
 
18
  _ = (
19
  "golay" in platform.node()
@@ -24,7 +24,7 @@ _ = (
24
  )
25
 
26
  if _:
27
- url = "https://huggingface.co/s3nh/LLaMA-2-7B-32K-GGML/resolve/main/LLaMA-2-7B-32K.ggmlv3.q4_1.bin" # 2.87G
28
 
29
 
30
  prompt_template = """Below is an instruction that describes a task. Write a response that appropriately completes the request.
@@ -84,6 +84,9 @@ USER: {question}
84
  ASSISTANT: """
85
 
86
 
 
 
 
87
  _ = [elm for elm in prompt_template.splitlines() if elm.strip()]
88
  stop_string = [elm.split(":")[0] + ":" for elm in _][-2]
89
 
 
13
  from loguru import logger
14
 
15
 
16
+ URL = "https://huggingface.co/s3nh/LLaMA-2-7B-32K-GGML/resolve/main/LLaMA-2-7B-32K.ggmlv3.q8_0.bin" # 4.05G
17
 
18
  _ = (
19
  "golay" in platform.node()
 
24
  )
25
 
26
  if _:
27
+ url = "https://huggingface.co/s3nh/LLaMA-2-7B-32K-GGML/resolve/main/LLaMA-2-7B-32K.ggmlv3.q8_0.bin" # 2.87G
28
 
29
 
30
  prompt_template = """Below is an instruction that describes a task. Write a response that appropriately completes the request.
 
84
  ASSISTANT: """
85
 
86
 
87
+ prompt_template = """<|prompt|>:{question}</s>
88
+ <|answer|>:"""
89
+
90
  _ = [elm for elm in prompt_template.splitlines() if elm.strip()]
91
  stop_string = [elm.split(":")[0] + ":" for elm in _][-2]
92