Spaces:
Runtime error
Runtime error
Yemin Shi
commited on
Commit
·
949a808
1
Parent(s):
fafa086
upadte n_ctx
Browse files
model.py
CHANGED
@@ -19,7 +19,7 @@ model_filename = "Chinese-Llama-2-7b.ggmlv3.q4_0.bin"
|
|
19 |
model_path = download_model()
|
20 |
|
21 |
# load Llama-2
|
22 |
-
llm = Llama(model_path=model_path, verbose=False)
|
23 |
|
24 |
|
25 |
def get_prompt(message: str, chat_history: list[tuple[str, str]],
|
|
|
19 |
model_path = download_model()
|
20 |
|
21 |
# load Llama-2
|
22 |
+
llm = Llama(model_path=model_path, n_ctx=4000, verbose=False)
|
23 |
|
24 |
|
25 |
def get_prompt(message: str, chat_history: list[tuple[str, str]],
|