Spaces:
Runtime error
Runtime error
fixed model
Browse files- .app.py.swp +0 -0
- app.py +3 -2
- requirements.txt +1 -1
.app.py.swp
ADDED
Binary file (12.3 kB). View file
|
|
app.py
CHANGED
@@ -3,9 +3,10 @@ from huggingface_hub import hf_hub_download
|
|
3 |
|
4 |
hf_hub_download(repo_id="LLukas22/gpt4all-lora-quantized-ggjt", filename="ggjt-model.bin", local_dir=".")
|
5 |
|
6 |
-
from
|
|
|
|
|
7 |
|
8 |
-
llm = Model(ggml_model="ggjt-model.bin", n_ctx=2000)
|
9 |
|
10 |
fixed_instruction = "You are a healthcare bot designed to give advice for the prevention and treatment of various illnesses."
|
11 |
|
|
|
3 |
|
4 |
hf_hub_download(repo_id="LLukas22/gpt4all-lora-quantized-ggjt", filename="ggjt-model.bin", local_dir=".")
|
5 |
|
6 |
+
from llama_cpp import Llama
|
7 |
+
|
8 |
+
llm = Llama(model_path="./ggjt-model.bin")
|
9 |
|
|
|
10 |
|
11 |
fixed_instruction = "You are a healthcare bot designed to give advice for the prevention and treatment of various illnesses."
|
12 |
|
requirements.txt
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
|
2 |
huggingface-hub
|
3 |
|
|
|
1 |
+
llama-cpp-python==0.1.35
|
2 |
huggingface-hub
|
3 |
|