onlyrickroll commited on
Commit
240c14d
·
verified ·
1 Parent(s): 69fc2ae

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +6 -6
entrypoint.sh CHANGED
@@ -55,15 +55,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
- # hf_hub_download(repo_id='byteshape/Qwen3-30B-A3B-Instruct-2507-GGUF', \
60
- # filename='Qwen3-30B-A3B-Instruct-2507-Q4_K_S-3.92bpw.gguf', local_dir='/app')"
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 "7860" \
66
- # -t "2" -c "16384" --flash-attn "on" --no-mmap -ctk q4_0 -ctv q4_0
67
 
68
  #sleep 40
69
  #date
@@ -82,4 +82,4 @@ echo "Starting Python bot on port 8888..."
82
  # 4. 启动 Nginx 作为主进程 (监听 7860)
83
  # daemon off 确保容器不会立即退出
84
  #echo "Starting Nginx reverse proxy on port 7860..."
85
- nginx -g "daemon off;"
 
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
+ hf_hub_download(repo_id='byteshape/Qwen3-30B-A3B-Instruct-2507-GGUF', \
60
+ filename='Qwen3-30B-A3B-Instruct-2507-Q4_K_S-3.61bpw.gguf', local_dir='/app')"
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.61bpw.gguf" --host "127.0.0.1" --port "7860" \
66
+ -t "2" -c "16384" --flash-attn "on" --no-mmap -ctk q4_0 -ctv q4_0
67
 
68
  #sleep 40
69
  #date
 
82
  # 4. 启动 Nginx 作为主进程 (监听 7860)
83
  # daemon off 确保容器不会立即退出
84
  #echo "Starting Nginx reverse proxy on port 7860..."
85
+ #nginx -g "daemon off;"