Spaces:
Sleeping
Sleeping
Deploy 8b61cafdfd4a4abf0e916fec59af6be8e20e2869
Browse files123456789107 unmodified lines181920212223242526272829# OpenAI Chat — MiniCPM5-1B (Q8_0) on llama-server, port 7860FROM ghcr.io/ggml-org/llama.cpp:server# pre-build: bake the official Q8_0 GGUF into the image (1.1 GB)RUN mkdir -p /models && \curl -fL --retry 3 -o /models/MiniCPM5-1B-Q8_0.gguf \"https://huggingface.co/openbmb/MiniCPM5-1B-GGUF/resolve/main/MiniCPM5-1B-Q8_0.gguf" && \ls -lh /models# key lives in .env (llama-server reads the LLAMA_API_KEY env var natively)7 unmodified lines# source .env unless the key is already set (Space secret / --env-file win)ENTRYPOINT ["/bin/sh", "-c", "if [ -z \"$LLAMA_API_KEY\" ]; then set -a; . /app/.env; set +a; fi; exec /app/llama-server \"$@\"", "--"]CMD ["-m", "/models/MiniCPM5-1B-Q8_0.gguf", \"--host", "0.0.0.0", \"--port", "7860", \"-c", "16384", \"-np", "4", \"-t", "2", \"-tb", "4", \"--jinja", \"--alias", "MiniCPM5-1B"]123456789107 unmodified lines181920212223242526272829# OpenAI Chat — LFM2.5-2.6B (Q4_K_M) on llama-server, port 7860FROM ghcr.io/ggml-org/llama.cpp:server# pre-build: bake the official Q4_K_M GGUF into the image (1.7 GB)RUN mkdir -p /models && \curl -fL --retry 3 -o /models/LFM2.5-2.6B-Q4_K_M.gguf \"https://huggingface.co/LiquidAI/LFM2.5-2.6B-GGUF/resolve/main/LFM2.5-2.6B-Q4_K_M.gguf" && \ls -lh /models# key lives in .env (llama-server reads the LLAMA_API_KEY env var natively)7 unmodified lines# source .env unless the key is already set (Space secret / --env-file win)ENTRYPOINT ["/bin/sh", "-c", "if [ -z \"$LLAMA_API_KEY\" ]; then set -a; . /app/.env; set +a; fi; exec /app/llama-server \"$@\"", "--"]CMD ["-m", "/models/LFM2.5-2.6B-Q4_K_M.gguf", \"--host", "0.0.0.0", \"--port", "7860", \"-c", "32768", \"-np", "2", \"-t", "2", \"-tb", "4", \"--jinja", \"--alias", "LFM2.5-2.6B"]
Dockerfile+8-8