Spaces:
Runtime error
Runtime error
gfjiogopdfgdfs
commited on
Commit
•
718364e
1
Parent(s):
3a5ba54
Update Dockerfile
Browse files- Dockerfile +7 -2
Dockerfile
CHANGED
@@ -7,6 +7,7 @@ RUN apt update && apt install -y \
|
|
7 |
python3-pip \
|
8 |
nodejs \
|
9 |
npm
|
|
|
10 |
RUN useradd -m -u 1000 user
|
11 |
|
12 |
USER user
|
@@ -20,8 +21,12 @@ COPY --chown=user . $HOME/app
|
|
20 |
|
21 |
RUN python3 -m pip install aphrodite-engine
|
22 |
RUN pip install huggingface-hub hf-transfer
|
|
|
23 |
ENV HF_HUB_ENABLE_HF_TRANSFER=1
|
24 |
-
RUN huggingface-cli download
|
|
|
|
|
|
|
25 |
EXPOSE 7860
|
26 |
# Should expose on all network interfaces so 0.0.0.0 not only localhost
|
27 |
-
CMD /bin/bash -c
|
|
|
7 |
python3-pip \
|
8 |
nodejs \
|
9 |
npm
|
10 |
+
|
11 |
RUN useradd -m -u 1000 user
|
12 |
|
13 |
USER user
|
|
|
21 |
|
22 |
RUN python3 -m pip install aphrodite-engine
|
23 |
RUN pip install huggingface-hub hf-transfer
|
24 |
+
|
25 |
ENV HF_HUB_ENABLE_HF_TRANSFER=1
|
26 |
+
RUN huggingface-cli download ycros/BagelMIsteryTour-v2-8x7B-AWQ --revision 32g --local-dir $HOME/goliath-gptq --local-dir-use-symlinks False --cache-dir $HOME/cache
|
27 |
+
|
28 |
+
|
29 |
+
|
30 |
EXPOSE 7860
|
31 |
# Should expose on all network interfaces so 0.0.0.0 not only localhost
|
32 |
+
CMD /bin/bash -c "/bin/python3 -m aphrodite.endpoints.openai.api_server $ENGINE_ARGS --port 7860 --host 0.0.0.0 --model ~/goliath-gptq"
|