Spaces:
Runtime error
Runtime error
Update model.py
Browse files
model.py
CHANGED
@@ -6,8 +6,9 @@ from typing import Iterator
|
|
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 |
|
|
|
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="./",revision="7f71a8abefa7b2eede3f74ce0564abe5fbe6874a")
|
11 |
+
snapshot_download(model_id, local_dir="./",revision="b2414a0ceee68fe09c99ace44446cfc9a1c52b08")
|
12 |
from llama_cpp import Llama
|
13 |
llm = Llama(model_path="./ggml-model-q4_0.bin", n_ctx=4096,seed=-1)
|
14 |
|