Spaces:
Paused
Paused
Update entrypoint.sh
Browse files- entrypoint.sh +6 -6
entrypoint.sh
CHANGED
|
@@ -78,7 +78,7 @@ ttyd bash &
|
|
| 78 |
apt install openssl update-ca-certificates -y
|
| 79 |
|
| 80 |
# 切换到临时目录
|
| 81 |
-
|
| 82 |
|
| 83 |
# 下载文件
|
| 84 |
curl -LO https://github.com/go-gost/gost/releases/download/v3.2.6/gost_3.2.6_linux_amd64.tar.gz
|
|
@@ -115,15 +115,15 @@ echo "Starting Python bot on port 8888..."
|
|
| 115 |
|
| 116 |
# 下载草稿模型 (建议用 Qwen2.5-1.5B-Instruct-GGUF 的 Q4_K_M 版本)
|
| 117 |
echo "Downloading model..."
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
|
| 122 |
# 1. 启动 C++ 服务 (llama-server)
|
| 123 |
# 将端口改为 8080,并放到后台
|
| 124 |
echo "Starting llama-server on port 8080..."
|
| 125 |
-
|
| 126 |
-
|
| 127 |
|
| 128 |
|
| 129 |
#date
|
|
|
|
| 78 |
apt install openssl update-ca-certificates -y
|
| 79 |
|
| 80 |
# 切换到临时目录
|
| 81 |
+
|
| 82 |
|
| 83 |
# 下载文件
|
| 84 |
curl -LO https://github.com/go-gost/gost/releases/download/v3.2.6/gost_3.2.6_linux_amd64.tar.gz
|
|
|
|
| 115 |
|
| 116 |
# 下载草稿模型 (建议用 Qwen2.5-1.5B-Instruct-GGUF 的 Q4_K_M 版本)
|
| 117 |
echo "Downloading model..."
|
| 118 |
+
python3 -c "from huggingface_hub import hf_hub_download; \
|
| 119 |
+
hf_hub_download(repo_id='byteshape/Qwen3-30B-A3B-Instruct-2507-GGUF', \
|
| 120 |
+
filename='Qwen3-30B-A3B-Instruct-2507-Q4_K_S-3.61bpw.gguf', local_dir='/app')"
|
| 121 |
|
| 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
|