Spaces:
Build error
Build error
Create Dockerfile
Browse files- Dockerfile +13 -0
Dockerfile
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
ARG BASE_IMAGE=ghcr.io/huggingface/text-generation-inference:2.0.2
|
2 |
+
|
3 |
+
FROM python:3 as model
|
4 |
+
RUN pip install huggingface_hub
|
5 |
+
|
6 |
+
ARG MODEL_ID=HuggingFaceH4/zephyr-7b-beta
|
7 |
+
RUN huggingface-cli download ${MODEL_ID} --exclude *.bin --exclude *.pth --local-dir=/model --local-dir-use-symlinks=False
|
8 |
+
|
9 |
+
FROM ${BASE_IMAGE}
|
10 |
+
|
11 |
+
# Copy the downloaded model directory to the container
|
12 |
+
RUN mkdir -p /model
|
13 |
+
COPY --from=model /model /model
|