Spaces:
Paused
Paused
Update entrypoint.sh
Browse files- entrypoint.sh +7 -6
entrypoint.sh
CHANGED
|
@@ -42,7 +42,8 @@ cat <<EOF > ~/.nanobot/config.json
|
|
| 42 |
"telegram": {
|
| 43 |
"enabled": true ,
|
| 44 |
"token": "$TG_TOKEN" ,
|
| 45 |
-
"allowFrom": ["$TG_ID"]
|
|
|
|
| 46 |
},
|
| 47 |
"discord": {
|
| 48 |
"enabled": false ,
|
|
@@ -55,15 +56,15 @@ EOF
|
|
| 55 |
|
| 56 |
# 下载草稿模型 (建议用 Qwen2.5-1.5B-Instruct-GGUF 的 Q4_K_M 版本)
|
| 57 |
echo "Downloading model..."
|
| 58 |
-
python3 -c "from huggingface_hub import hf_hub_download; \
|
| 59 |
-
|
| 60 |
-
|
| 61 |
|
| 62 |
# 1. 启动 C++ 服务 (llama-server)
|
| 63 |
# 将端口改为 8080,并放到后台
|
| 64 |
echo "Starting llama-server on port 8080..."
|
| 65 |
-
./llama-server -m "/app/Qwen3-30B-A3B-Instruct-2507-Q4_K_S-3.92bpw.gguf" --host "127.0.0.1" --port "8080" \
|
| 66 |
-
-t "2" -c "16384" --flash-attn "on" --no-mmap -ctk q4_0 -ctv q4_0 &
|
| 67 |
|
| 68 |
|
| 69 |
echo "Starting Python bot on port 8888..."
|
|
|
|
| 42 |
"telegram": {
|
| 43 |
"enabled": true ,
|
| 44 |
"token": "$TG_TOKEN" ,
|
| 45 |
+
"allowFrom": ["$TG_ID"] ,
|
| 46 |
+
"proxy": "socks5://64.227.131.240:1080"
|
| 47 |
},
|
| 48 |
"discord": {
|
| 49 |
"enabled": false ,
|
|
|
|
| 56 |
|
| 57 |
# 下载草稿模型 (建议用 Qwen2.5-1.5B-Instruct-GGUF 的 Q4_K_M 版本)
|
| 58 |
echo "Downloading model..."
|
| 59 |
+
#python3 -c "from huggingface_hub import hf_hub_download; \
|
| 60 |
+
# hf_hub_download(repo_id='byteshape/Qwen3-30B-A3B-Instruct-2507-GGUF', \
|
| 61 |
+
# filename='Qwen3-30B-A3B-Instruct-2507-Q4_K_S-3.92bpw.gguf', local_dir='/app')"
|
| 62 |
|
| 63 |
# 1. 启动 C++ 服务 (llama-server)
|
| 64 |
# 将端口改为 8080,并放到后台
|
| 65 |
echo "Starting llama-server on port 8080..."
|
| 66 |
+
# ./llama-server -m "/app/Qwen3-30B-A3B-Instruct-2507-Q4_K_S-3.92bpw.gguf" --host "127.0.0.1" --port "8080" \
|
| 67 |
+
# -t "2" -c "16384" --flash-attn "on" --no-mmap -ctk q4_0 -ctv q4_0 &
|
| 68 |
|
| 69 |
|
| 70 |
echo "Starting Python bot on port 8888..."
|