Spaces:
Runtime error
Runtime error
gfjiogopdfgdfs
commited on
Commit
•
4411e6f
1
Parent(s):
a8531f1
Update Dockerfile
Browse files- Dockerfile +4 -9
Dockerfile
CHANGED
@@ -19,14 +19,9 @@ WORKDIR $HOME/app
|
|
19 |
COPY --chown=user . $HOME/app
|
20 |
|
21 |
RUN python3 -m pip install aphrodite-engine
|
22 |
-
RUN
|
23 |
-
|
24 |
-
RUN
|
25 |
-
RUN wget -O tokenizer.json "https://huggingface.co/brucethemoose/Yi-34B-200K-RPMerge/resolve/main/tokenizer.json?download=true"
|
26 |
-
RUN wget -O tokenizer_config.json "https://huggingface.co/brucethemoose/Yi-34B-200K-RPMerge/resolve/main/tokenizer_config.json?download=true"
|
27 |
-
RUN wget -O gguf_to_torch.py https://raw.githubusercontent.com/PygmalionAI/aphrodite-engine/main/examples/gguf_to_torch.py
|
28 |
-
RUN python3 -m pip install protobuf==3.20.*
|
29 |
-
RUN python3 gguf_to_torch.py --input $HOME/app/model.gguf --output $HOME/app/
|
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
|
|
|
19 |
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 brucethemoose/Yi-34B-200K-RPMerge --local-dir $HOME/goliath-gptq --local-dir-use-symlinks False --cache-dir $HOME/cache
|
|
|
|
|
|
|
|
|
|
|
25 |
EXPOSE 7860
|
26 |
# Should expose on all network interfaces so 0.0.0.0 not only localhost
|
27 |
+
CMD /bin/bash -c "/bin/python3 -m aphrodite.endpoints.openai.api_server $ENGINE_ARGS --port 7860 --host 0.0.0.0 --model ~/goliath-gptq"
|