Upload app.py
Browse files
app.py
CHANGED
@@ -3,13 +3,15 @@ import select
|
|
3 |
import os
|
4 |
from mods.btn_reset import restart_space
|
5 |
|
6 |
-
if not os.path.exists('models/causallm_14b.
|
7 |
from huggingface_hub import snapshot_download
|
8 |
os.mkdir("models")
|
9 |
os.mkdir("cache")
|
10 |
-
snapshot_download(repo_id='
|
11 |
-
allow_patterns='causallm_14b.
|
12 |
-
snapshot_download(repo_id='Limour/llama-python-streamingllm-cache',
|
|
|
|
|
13 |
|
14 |
try:
|
15 |
# 启动另一个程序,并通过管道捕获其输出
|
|
|
3 |
import os
|
4 |
from mods.btn_reset import restart_space
|
5 |
|
6 |
+
if not os.path.exists('models/causallm_14b.Q4_0.gguf'):
|
7 |
from huggingface_hub import snapshot_download
|
8 |
os.mkdir("models")
|
9 |
os.mkdir("cache")
|
10 |
+
snapshot_download(repo_id='TheBloke/CausalLM-14B-GGUF', local_dir=r'models',
|
11 |
+
allow_patterns='causallm_14b.Q4_0.gguf')
|
12 |
+
snapshot_download(repo_id='Limour/llama-python-streamingllm-cache',
|
13 |
+
repo_type='dataset', local_dir=r'cache',
|
14 |
+
allow_patterns='temp')
|
15 |
|
16 |
try:
|
17 |
# 启动另一个程序,并通过管道捕获其输出
|