Spaces:
Build error
Build error
Ved Gupta commited on
Commit ·
be43a34
1
Parent(s): b8cad3b
Add dependencies and download model file
Browse files1234567891011FROM python:3.9-alpineRUN apk add --no-cache build-base cmake git wget gcc g++ makeRUN mkdir modelsRUN wget -q "https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.2-GGUF/resolve/main/mistral-7b-instruct-v0.2.Q4_0.gguf" -O models/mistral-7b-instruct-v0.2.Q4_0.ggufRUN pip install llama-cpp-python sse_starlette starlette_context pydantic_settings fastapi uvicornEXPOSE 8080CMD ["python", "-m", "llama_cpp.server", "--model", "models/mistral-7b-instruct-v0.2.Q4_0.gguf"]123456789101112FROM python:3.9-alpineRUN apk add --no-cache build-base cmake git wget gcc g++ makeRUN pip install llama-cpp-python sse_starlette starlette_context pydantic_settings fastapi uvicornRUN mkdir modelsRUN wget -q "https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.2-GGUF/resolve/main/mistral-7b-instruct-v0.2.Q4_0.gguf" -O models/mistral-7b-instruct-v0.2.Q4_0.ggufEXPOSE 8080CMD ["python", "-m", "llama_cpp.server", "--model", "models/mistral-7b-instruct-v0.2.Q4_0.gguf"]
Dockerfile+2-1