Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files1234561 unmodified line89101112131415161718192021222324FROM python:3.10-slim# Install system dependencies + libgomp1 (the missing file)RUN apt-get update && apt-get install -y \build-essential \python3-dev \1 unmodified linelibgomp1 \&& rm -rf /var/lib/apt/lists/*# 1. Download the GGUF model (Quiet mode)RUN wget -q -O model.gguf https://huggingface.co/maddes8cht/mosaicml-mpt-7b-chat-gguf/resolve/main/mosaicml-mpt-7b-chat-Q2_K.gguf# 2. Install llama-cpp-python using the PRE-BUILT wheel# This ensures we don't get stuck in the 40-minute "Building Wheel" phaseRUN pip install --no-cache-dir \https://huggingface.co/Luigi/llama-cpp-python-wheels-hf-spaces-free-cpu/resolve/main/llama_cpp_python-0.3.22-cp310-cp310-linux_x86_64.whl# 3. Install web server basicsRUN pip install --no-cache-dir fastapi uvicornCOPY app.py .# Port 7860 for Hugging Face1234561 unmodified line891011121314151617181920212223FROM python:3.10-slim# Install system dependenciesRUN apt-get update && apt-get install -y \build-essential \python3-dev \1 unmodified linelibgomp1 \&& rm -rf /var/lib/apt/lists/*# 1. DOWNLOAD MISTRAL 7.7GB MODEL# Note: I've updated the URL to the specific Q8_0 fileRUN wget -q -O model.gguf https://huggingface.co/TheBloke/Mistral-7B-v0.1-GGUF/resolve/main/mistral-7b-v0.1.Q8_0.gguf# 2. Install llama-cpp-python using pre-built wheelRUN pip install --no-cache-dir \https://huggingface.co/Luigi/llama-cpp-python-wheels-hf-spaces-free-cpu/resolve/main/llama_cpp_python-0.3.22-cp310-cp310-linux_x86_64.whl# 3. Install web server basicsRUN pip install --no-cache-dir fastapi uvicornCOPY app.py .# Port 7860 for Hugging Face
Dockerfile+5-6