Spaces:
Sleeping
Sleeping
Deploy 89ea685fe3122ca886383fcda504f075b83b468b
Browse files123456789107 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"]123456789107 unmodified lines18192021222324252627282930313233# OpenAI Chat - Qwen3-0.6B (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 (610 MB)RUN mkdir -p /models && \curl -fL --retry 3 -o /models/Qwen3-0.6B-Q8_0.gguf \"https://huggingface.co/Qwen/Qwen3-0.6B-GGUF/resolve/main/Qwen3-0.6B-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 \"$@\"", "--"]# -c is TOTAL across slots, so 32768 / 2 slots = 16384 ctx per request.# Raise -c to 65536 if you want a full 32k per concurrent request.CMD ["-m", "/models/Qwen3-0.6B-Q8_0.gguf", \"--host", "0.0.0.0", \"--port", "7860", \"-c", "32768", \"-np", "2", \"-t", "2", \"-tb", "4", \"-ctk", "q8_0", \"-ctv", "q8_0", \"--jinja", \"--alias", "Qwen3-0.6B"]
Dockerfile+10-6