Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +7 -0
Dockerfile
CHANGED
|
@@ -16,16 +16,23 @@ RUN python3 -c "from huggingface_hub import hf_hub_download; \
|
|
| 16 |
hf_hub_download(repo_id='Qwen/Qwen3-VL-8B-Instruct-GGUF', filename='Qwen3VL-8B-Instruct-Q4_K_M.gguf', local_dir='/app'); \
|
| 17 |
hf_hub_download(repo_id='Qwen/Qwen3-VL-8B-Instruct-GGUF', filename='mmproj-Qwen3VL-8B-Instruct-Q8_0.gguf', local_dir='/app')"
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
# 切换回 user (Space 默认用户 ID 通常是 1000)
|
| 20 |
USER 1000
|
| 21 |
|
| 22 |
ENTRYPOINT ["./llama-server", \
|
| 23 |
"-m", "/app/Qwen3VL-8B-Instruct-Q4_K_M.gguf", \
|
| 24 |
"--mmproj", "/app/mmproj-Qwen3VL-8B-Instruct-Q8_0.gguf", \
|
|
|
|
| 25 |
"--host", "0.0.0.0", \
|
| 26 |
"--port", "7860", \
|
| 27 |
"-t", "4", \
|
| 28 |
"-c", "512", \
|
| 29 |
"--flash-attn", "on", \
|
| 30 |
"--no-mmap", \
|
|
|
|
| 31 |
"--mlock"]
|
|
|
|
| 16 |
hf_hub_download(repo_id='Qwen/Qwen3-VL-8B-Instruct-GGUF', filename='Qwen3VL-8B-Instruct-Q4_K_M.gguf', local_dir='/app'); \
|
| 17 |
hf_hub_download(repo_id='Qwen/Qwen3-VL-8B-Instruct-GGUF', filename='mmproj-Qwen3VL-8B-Instruct-Q8_0.gguf', local_dir='/app')"
|
| 18 |
|
| 19 |
+
# 下载草稿模型 (建议用 Qwen2.5-1.5B-Instruct-GGUF 的 Q4_K_M 版本)
|
| 20 |
+
RUN python3 -c "from huggingface_hub import hf_hub_download; \
|
| 21 |
+
hf_hub_download(repo_id='Qwen/Qwen3-VL-2B-Instruct-GGUF', \
|
| 22 |
+
filename='Qwen3VL-2B-Instruct-Q4_K_M.gguf', local_dir='/app')"
|
| 23 |
+
|
| 24 |
# 切换回 user (Space 默认用户 ID 通常是 1000)
|
| 25 |
USER 1000
|
| 26 |
|
| 27 |
ENTRYPOINT ["./llama-server", \
|
| 28 |
"-m", "/app/Qwen3VL-8B-Instruct-Q4_K_M.gguf", \
|
| 29 |
"--mmproj", "/app/mmproj-Qwen3VL-8B-Instruct-Q8_0.gguf", \
|
| 30 |
+
"-md", "/app/qwen2.5-1.5b-instruct-q4_k_m.gguf", \
|
| 31 |
"--host", "0.0.0.0", \
|
| 32 |
"--port", "7860", \
|
| 33 |
"-t", "4", \
|
| 34 |
"-c", "512", \
|
| 35 |
"--flash-attn", "on", \
|
| 36 |
"--no-mmap", \
|
| 37 |
+
"--draft 5", \
|
| 38 |
"--mlock"]
|