Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files12345678910FROM python:3.10-slim# Install the engineRUN pip install llama-cpp-python fastapi uvicorn# Copy your model and code into the serverCOPY . .# Start the API serverCMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]1234567891011121314151617FROM python:3.10-slim# Install system tools to download the fileRUN apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/*# 1. Download the .bin file from the URL you provided# We rename it to 'model.bin' to make the code simplerRUN wget -O model.bin https://huggingface.co/CooLLaMACEO/ChatMPT/resolve/main/mpt-7b-chat.ggmlv0.q4_0.bin# 2. Install the specific OLD version of the engine that supports GGMLRUN pip install llama-cpp-python==0.1.78 fastapi uvicorn# 3. Copy the app codeCOPY app.py .# 4. Start the server on port 7860 (Hugging Face requirement)CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
Dockerfile+12-5