Spaces:
Build error
Build error
Ved Gupta commited on
Commit ·
f6df9bc
1
Parent(s): 96637e1
Add dependencies and update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -3,6 +3,8 @@ FROM python:3.9-alpine
|
|
| 3 |
RUN mkdir models
|
| 4 |
RUN 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.gguf
|
| 5 |
|
|
|
|
| 6 |
|
| 7 |
EXPOSE 8080
|
| 8 |
-
CMD ["python", "-m", "llama_cpp.server", "--model", "models/mistral-7b-instruct-v0.2.Q4_0.gguf"]
|
|
|
|
|
|
| 3 |
RUN mkdir models
|
| 4 |
RUN 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.gguf
|
| 5 |
|
| 6 |
+
RUN pip install llama-cpp-python sse_starlette starlette_context pydantic_settings fastapi uvicorn
|
| 7 |
|
| 8 |
EXPOSE 8080
|
| 9 |
+
CMD ["python", "-m", "llama_cpp.server", "--model", "models/mistral-7b-instruct-v0.2.Q4_0.gguf"]
|
| 10 |
+
|