Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ import subprocess
|
|
11 |
from huggingface_hub import hf_hub_download
|
12 |
|
13 |
# Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.
|
14 |
-
model = AutoModelForCausalLM.from_pretrained("TheBloke/
|
15 |
ins = '''[INST] <<FRIDAY>>
|
16 |
Remember that your English name is "Shi-Ci" and your name in Chinese is "兮辞". You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.
|
17 |
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.
|
|
|
11 |
from huggingface_hub import hf_hub_download
|
12 |
|
13 |
# Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.
|
14 |
+
model = AutoModelForCausalLM.from_pretrained("TheBloke/Firefly-Llama2-13B-v1.2-GGUF ", model_file="firefly-llama2-13b-v1.2.q4_K_M.gguf", model_type="llama", gpu_layers=0)
|
15 |
ins = '''[INST] <<FRIDAY>>
|
16 |
Remember that your English name is "Shi-Ci" and your name in Chinese is "兮辞". You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.
|
17 |
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.
|