Spaces:
Runtime error
Runtime error
Commit
•
30c6fba
1
Parent(s):
9557fe2
Update Dockerfile
Browse files- Dockerfile +12 -8
Dockerfile
CHANGED
@@ -1,4 +1,8 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
2 |
ENV DEBIAN_FRONTEND=noninteractive
|
3 |
RUN apt-get update && \
|
4 |
apt-get upgrade -y && \
|
@@ -41,13 +45,14 @@ RUN pyenv install ${PYTHON_VERSION} && \
|
|
41 |
pyenv global ${PYTHON_VERSION} && \
|
42 |
pyenv rehash && \
|
43 |
pip install --no-cache-dir -U pip setuptools wheel && \
|
44 |
-
git clone https://github.com/
|
45 |
-
|
46 |
-
|
47 |
-
|
|
|
48 |
ENV PYTHONPATH=${HOME}/app \
|
49 |
PYTHONUNBUFFERED=1 \
|
50 |
-
HF_HUB_ENABLE_HF_TRANSFER=1 \
|
51 |
GRADIO_ALLOW_FLAGGING=never \
|
52 |
GRADIO_NUM_PORTS=1 \
|
53 |
GRADIO_SERVER_NAME=0.0.0.0 \
|
@@ -55,5 +60,4 @@ ENV PYTHONPATH=${HOME}/app \
|
|
55 |
TQDM_POSITION=-1 \
|
56 |
TQDM_MININTERVAL=1 \
|
57 |
SYSTEM=spaces
|
58 |
-
|
59 |
-
CMD ["python", "fam/ui/app.py"]
|
|
|
1 |
+
# Don't know how to bypass cache so asked ChatGPT and it gave:
|
2 |
+
ARG CACHEBUST=$(date +%s)
|
3 |
+
|
4 |
+
# FROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04
|
5 |
+
FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04
|
6 |
ENV DEBIAN_FRONTEND=noninteractive
|
7 |
RUN apt-get update && \
|
8 |
apt-get upgrade -y && \
|
|
|
45 |
pyenv global ${PYTHON_VERSION} && \
|
46 |
pyenv rehash && \
|
47 |
pip install --no-cache-dir -U pip setuptools wheel && \
|
48 |
+
git clone https://github.com/NeuralVox/metavoice-src ${HOME}/app/gitrepo && \
|
49 |
+
cp -r ${HOME}/app/gitrepo/* ${HOME}/app
|
50 |
+
RUN pip install packaging && \
|
51 |
+
pip install -r ${HOME}/app/requirements.txt && \
|
52 |
+
pip install -U flash-attn gradio spacy transformers fastapi
|
53 |
ENV PYTHONPATH=${HOME}/app \
|
54 |
PYTHONUNBUFFERED=1 \
|
55 |
+
# HF_HUB_ENABLE_HF_TRANSFER=1 \
|
56 |
GRADIO_ALLOW_FLAGGING=never \
|
57 |
GRADIO_NUM_PORTS=1 \
|
58 |
GRADIO_SERVER_NAME=0.0.0.0 \
|
|
|
60 |
TQDM_POSITION=-1 \
|
61 |
TQDM_MININTERVAL=1 \
|
62 |
SYSTEM=spaces
|
63 |
+
CMD python fam/llm/serving.py --huggingface_repo_id="metavoiceio/metavoice-1B-v0.1" & python fam/ui/app.py
|
|