Spaces:
Running
Running
Create Dockerfile
Browse files- Dockerfile +16 -0
Dockerfile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ghcr.io/ggml-org/llama.cpp:server
|
| 2 |
+
|
| 3 |
+
RUN apt update && apt install wget -y && rm -rf /var/lib/apt/lists/*
|
| 4 |
+
|
| 5 |
+
# THE MAIN MODEL: LiquidAI LFM 2.5 VL 1.6B (Q4_0)
|
| 6 |
+
# Note: Q4_K_M is not officially provided in GGUF for this model, using Q4_0 which is the closest 4-bit quant.
|
| 7 |
+
RUN wget "https://huggingface.co/LiquidAI/LFM2.5-VL-1.6B-GGUF/resolve/main/LFM2.5-VL-1.6B-Q4_0.gguf" -O /model.gguf
|
| 8 |
+
|
| 9 |
+
# THE MULTIMODAL PROJECTOR (Vision)
|
| 10 |
+
RUN wget "https://huggingface.co/LiquidAI/LFM2.5-VL-1.6B-GGUF/resolve/main/mmproj-LFM2.5-VL-1.6b-F16.gguf" -O /mmproj.gguf
|
| 11 |
+
|
| 12 |
+
# Run the server with multimodal projector for vision support
|
| 13 |
+
CMD ["-m", "/model.gguf", \
|
| 14 |
+
"--mmproj", "/mmproj.gguf", \
|
| 15 |
+
"--port", "7860", "--host", "0.0.0.0", \
|
| 16 |
+
"-t", "2", "--mlock", "-c", "16384"]
|