Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +10 -5
Dockerfile
CHANGED
|
@@ -1,9 +1,14 @@
|
|
| 1 |
-
#
|
| 2 |
FROM ghcr.io/abetlen/llama-cpp-python:latest
|
| 3 |
|
| 4 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
EXPOSE 7860
|
| 6 |
|
| 7 |
-
#
|
| 8 |
-
|
| 9 |
-
CMD ["--hf_model_repo_id", "Qwen/Qwen2.5-1.5B-Instruct-GGUF", "--hf_model_filename", "qwen2.5-1.5b-instruct-q4_k_m.gguf", "--host", "0.0.0.0", "--port", "7860", "--n_ctx", "4096"]
|
|
|
|
| 1 |
+
# استخدام النسخة الجاهزة من المطور (لن يتم بناء أي شيء)
|
| 2 |
FROM ghcr.io/abetlen/llama-cpp-python:latest
|
| 3 |
|
| 4 |
+
# تحديد المتغيرات (اسم اللعبة)
|
| 5 |
+
ENV MODEL_REPO=Qwen/Qwen2.5-1.5B-Instruct-GGUF
|
| 6 |
+
ENV MODEL_FILE=qwen2.5-1.5b-instruct-q4_k_m.gguf
|
| 7 |
+
ENV HOST=0.0.0.0
|
| 8 |
+
ENV PORT=7860
|
| 9 |
+
|
| 10 |
+
# فتح المنفذ المطلوب
|
| 11 |
EXPOSE 7860
|
| 12 |
|
| 13 |
+
# أمر التشغيل المباشر (تجاهل الملفات المحلية)
|
| 14 |
+
CMD ["python3", "-m", "llama_cpp.server", "--host", "0.0.0.0", "--port", "7860"]
|
|
|