Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
File size: 1,212 Bytes
b917dd9 9345d66 2efd898 b917dd9 2efd898 b917dd9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | FROM python:3.11-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
curl ca-certificates libgomp1 && rm -rf /var/lib/apt/lists/*
# Prebuilt llama.cpp (CPU x64). b10091 supports the standard Gemma4 architecture
# POCKET-26B uses. Runtime CPU-feature dispatch (portable, no SIGILL), no compile (no OOM).
ARG LLAMA_TAG=b10091
RUN curl -fsSL -o /tmp/llama.tgz \
"https://github.com/ggml-org/llama.cpp/releases/download/${LLAMA_TAG}/llama-${LLAMA_TAG}-bin-ubuntu-x64.tar.gz" && \
mkdir -p /opt/llama && tar xzf /tmp/llama.tgz -C /opt/llama && rm /tmp/llama.tgz && \
ln -s "/opt/llama/llama-${LLAMA_TAG}" /opt/llama/bin
ENV LD_LIBRARY_PATH=/opt/llama/bin \
PATH="/opt/llama/bin:${PATH}"
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py index.html start.sh ./
RUN chmod +x start.sh
ENV MODEL_REPO=FINAL-Bench/POCKET-26B-GGUF \
MODEL_FILE=POCKET-26B-Q4_K_M.gguf \
BONSAI_REPO=prism-ml/Bonsai-27B-gguf \
BONSAI_FILE=Bonsai-27B-Q1_0.gguf \
N_CTX=2048 \
HF_HOME=/data/hf \
BACKEND=http://127.0.0.1:8080 \
BONSAI_BACKEND=http://127.0.0.1:8081 \
PORT=7860
EXPOSE 7860
CMD ["bash", "start.sh"]
|