Spaces:
Paused
Paused
Update entrypoint.sh
Browse files- entrypoint.sh +7 -6
entrypoint.sh
CHANGED
|
@@ -79,9 +79,9 @@ ttyd bash &
|
|
| 79 |
|
| 80 |
# 下载草稿模型 (建议用 Qwen2.5-1.5B-Instruct-GGUF 的 Q4_K_M 版本)
|
| 81 |
echo "Downloading model..."
|
| 82 |
-
python3 -c "from huggingface_hub import hf_hub_download; \
|
| 83 |
-
hf_hub_download(repo_id='byteshape/Qwen3-30B-A3B-Instruct-2507-GGUF', \
|
| 84 |
-
filename='Qwen3-30B-A3B-Instruct-2507-Q4_K_S-3.61bpw.gguf', local_dir='/app')"
|
| 85 |
# 切换到临时目录
|
| 86 |
|
| 87 |
|
|
@@ -109,7 +109,8 @@ echo "测试地址$ALL_PROXY..."
|
|
| 109 |
|
| 110 |
#nginx -s stop
|
| 111 |
#export ALL_PROXY="http://127.0.0.1:1081"
|
| 112 |
-
|
|
|
|
| 113 |
|
| 114 |
echo "Starting Python bot on port 8888..."
|
| 115 |
~/.local/bin/nanobot gateway -p 8888 &
|
|
@@ -122,8 +123,8 @@ echo "Starting Python bot on port 8888..."
|
|
| 122 |
# 1. 启动 C++ 服务 (llama-server)
|
| 123 |
# 将端口改为 8080,并放到后台
|
| 124 |
echo "Starting llama-server on port 8080..."
|
| 125 |
-
./llama-server -m "/app/Qwen3-30B-A3B-Instruct-2507-Q4_K_S-3.61bpw.gguf" --host "localhost" --port "7860" \
|
| 126 |
-
-t "2" -c "16384" --flash-attn "on" --no-mmap -ctk q4_0 -ctv q4_0 &
|
| 127 |
|
| 128 |
|
| 129 |
#date
|
|
|
|
| 79 |
|
| 80 |
# 下载草稿模型 (建议用 Qwen2.5-1.5B-Instruct-GGUF 的 Q4_K_M 版本)
|
| 81 |
echo "Downloading model..."
|
| 82 |
+
# python3 -c "from huggingface_hub import hf_hub_download; \
|
| 83 |
+
# hf_hub_download(repo_id='byteshape/Qwen3-30B-A3B-Instruct-2507-GGUF', \
|
| 84 |
+
# filename='Qwen3-30B-A3B-Instruct-2507-Q4_K_S-3.61bpw.gguf', local_dir='/app')"
|
| 85 |
# 切换到临时目录
|
| 86 |
|
| 87 |
|
|
|
|
| 109 |
|
| 110 |
#nginx -s stop
|
| 111 |
#export ALL_PROXY="http://127.0.0.1:1081"
|
| 112 |
+
export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
|
| 113 |
+
export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
|
| 114 |
|
| 115 |
echo "Starting Python bot on port 8888..."
|
| 116 |
~/.local/bin/nanobot gateway -p 8888 &
|
|
|
|
| 123 |
# 1. 启动 C++ 服务 (llama-server)
|
| 124 |
# 将端口改为 8080,并放到后台
|
| 125 |
echo "Starting llama-server on port 8080..."
|
| 126 |
+
# ./llama-server -m "/app/Qwen3-30B-A3B-Instruct-2507-Q4_K_S-3.61bpw.gguf" --host "localhost" --port "7860" \
|
| 127 |
+
# -t "2" -c "16384" --flash-attn "on" --no-mmap -ctk q4_0 -ctv q4_0 &
|
| 128 |
|
| 129 |
|
| 130 |
#date
|