Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,10 @@ from llama_cpp import Llama
|
|
4 |
llm = Llama.from_pretrained(
|
5 |
repo_id="Mykes/med_gemma7b_gguf",
|
6 |
filename="*Q4_K_M.gguf",
|
7 |
-
verbose=False
|
|
|
|
|
|
|
8 |
)
|
9 |
|
10 |
basic_prompt = "Below is the context which is your conversation history and the last user question. Write a response according the context and question. ### Context: user: Ответь мне на вопрос о моем здоровье. assistant: Конечно! Какой у Вас вопрос? ### Question: {question} ### Response:"
|
|
|
4 |
llm = Llama.from_pretrained(
|
5 |
repo_id="Mykes/med_gemma7b_gguf",
|
6 |
filename="*Q4_K_M.gguf",
|
7 |
+
verbose=False,
|
8 |
+
n_ctx=512,
|
9 |
+
n_batch=512,
|
10 |
+
n_threads=4
|
11 |
)
|
12 |
|
13 |
basic_prompt = "Below is the context which is your conversation history and the last user question. Write a response according the context and question. ### Context: user: Ответь мне на вопрос о моем здоровье. assistant: Конечно! Какой у Вас вопрос? ### Question: {question} ### Response:"
|