Spaces:
Runtime error
Runtime error
Update model.py
Browse files
model.py
CHANGED
@@ -3,13 +3,13 @@ from typing import Iterator
|
|
3 |
|
4 |
|
5 |
|
6 |
-
model_id = 'xuqinyang/baichuan-13b-chat-ggml-
|
7 |
|
8 |
from huggingface_hub import snapshot_download
|
9 |
|
10 |
snapshot_download(model_id, local_dir="./")
|
11 |
from llama_cpp import Llama
|
12 |
-
llm = Llama(model_path="./ggml-model-
|
13 |
|
14 |
def run(message: str,
|
15 |
chat_history: list[tuple[str, str]],
|
|
|
3 |
|
4 |
|
5 |
|
6 |
+
model_id = 'xuqinyang/baichuan-13b-chat-ggml-int4'
|
7 |
|
8 |
from huggingface_hub import snapshot_download
|
9 |
|
10 |
snapshot_download(model_id, local_dir="./")
|
11 |
from llama_cpp import Llama
|
12 |
+
llm = Llama(model_path="./ggml-model-q4_0.bin", n_ctx=4096,seed=-1)
|
13 |
|
14 |
def run(message: str,
|
15 |
chat_history: list[tuple[str, str]],
|