Spaces:
Sleeping
Sleeping
Upload 3 files
Browse files- app.py +3 -3
- requirements.txt +1 -1
- rp_config.json +4 -1
app.py
CHANGED
@@ -3,12 +3,12 @@ import select
|
|
3 |
import os
|
4 |
from mods.btn_reset import restart_space
|
5 |
|
6 |
-
if not os.path.exists('downloads/
|
7 |
from huggingface_hub import snapshot_download
|
8 |
os.mkdir("downloads")
|
9 |
os.mkdir("cache")
|
10 |
-
snapshot_download(repo_id='
|
11 |
-
allow_patterns='
|
12 |
snapshot_download(repo_id='Limour/llama-python-streamingllm-cache', repo_type='dataset', local_dir=r'cache')
|
13 |
|
14 |
try:
|
|
|
3 |
import os
|
4 |
from mods.btn_reset import restart_space
|
5 |
|
6 |
+
if not os.path.exists('downloads/causallm_14b.IQ3_XS.gguf'):
|
7 |
from huggingface_hub import snapshot_download
|
8 |
os.mkdir("downloads")
|
9 |
os.mkdir("cache")
|
10 |
+
snapshot_download(repo_id='Limour/CausalLM-14B-GGUF', local_dir=r'downloads',
|
11 |
+
allow_patterns='causallm_14b.IQ3_XS.gguf')
|
12 |
snapshot_download(repo_id='Limour/llama-python-streamingllm-cache', repo_type='dataset', local_dir=r'cache')
|
13 |
|
14 |
try:
|
requirements.txt
CHANGED
@@ -1 +1 @@
|
|
1 |
-
llama-cpp-python==0.2.
|
|
|
1 |
+
llama-cpp-python==0.2.57
|
rp_config.json
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
{
|
2 |
"setting_path": {
|
3 |
-
"value": "downloads/
|
|
|
|
|
|
|
4 |
},
|
5 |
"role_usr": {
|
6 |
"value": "无忌"
|
|
|
1 |
{
|
2 |
"setting_path": {
|
3 |
+
"value": "downloads/causallm_14b.IQ3_XS.gguf"
|
4 |
+
},
|
5 |
+
"setting_ctx": {
|
6 |
+
"value": 4096
|
7 |
},
|
8 |
"role_usr": {
|
9 |
"value": "无忌"
|