piper support
Browse files- Dockerfile +2 -20
- Dockerfile.min → Dockerfile.max +20 -2
- startup.min.sh +1 -1
Dockerfile
CHANGED
@@ -1,7 +1,5 @@
|
|
1 |
FROM python:3.11-slim
|
2 |
|
3 |
-
RUN --mount=type=cache,target=/root/.cache/pip pip install -U pip
|
4 |
-
|
5 |
ARG TARGETPLATFORM
|
6 |
RUN <<EOF
|
7 |
apt-get update
|
@@ -10,35 +8,19 @@ if [ "$TARGETPLATFORM" != "linux/amd64" ]; then
|
|
10 |
apt-get install --no-install-recommends -y build-essential
|
11 |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
12 |
fi
|
13 |
-
|
14 |
-
# for deepspeed support - image +7.5GB, over the 10GB ghcr.io limit, and no noticable gain in speed or VRAM usage?
|
15 |
-
#curl -O https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/cuda-keyring_1.1-1_all.deb
|
16 |
-
#dpkg -i cuda-keyring_1.1-1_all.deb
|
17 |
-
#rm cuda-keyring_1.1-1_all.deb
|
18 |
-
#apt-get install --no-install-recommends -y libaio-dev build-essential cuda-toolkit
|
19 |
-
|
20 |
apt-get clean
|
21 |
rm -rf /var/lib/apt/lists/*
|
22 |
EOF
|
23 |
-
#ENV CUDA_HOME=/usr/local/cuda
|
24 |
ENV PATH="/root/.cargo/bin:${PATH}"
|
25 |
|
26 |
WORKDIR /app
|
27 |
RUN mkdir -p voices config
|
28 |
|
29 |
-
ARG USE_ROCM
|
30 |
-
ENV USE_ROCM=${USE_ROCM}
|
31 |
-
|
32 |
COPY requirements*.txt /app/
|
33 |
-
RUN
|
34 |
-
RUN --mount=type=cache,target=/root/.cache/pip pip install -r requirements.txt
|
35 |
-
|
36 |
COPY *.py *.sh *.default.yaml README.md LICENSE /app/
|
37 |
|
38 |
-
ARG PRELOAD_MODEL
|
39 |
-
ENV PRELOAD_MODEL=${PRELOAD_MODEL}
|
40 |
ENV TTS_HOME=voices
|
41 |
ENV HF_HOME=voices
|
42 |
-
ENV COQUI_TOS_AGREED=1
|
43 |
|
44 |
-
CMD bash startup.sh
|
|
|
1 |
FROM python:3.11-slim
|
2 |
|
|
|
|
|
3 |
ARG TARGETPLATFORM
|
4 |
RUN <<EOF
|
5 |
apt-get update
|
|
|
8 |
apt-get install --no-install-recommends -y build-essential
|
9 |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
10 |
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
apt-get clean
|
12 |
rm -rf /var/lib/apt/lists/*
|
13 |
EOF
|
|
|
14 |
ENV PATH="/root/.cargo/bin:${PATH}"
|
15 |
|
16 |
WORKDIR /app
|
17 |
RUN mkdir -p voices config
|
18 |
|
|
|
|
|
|
|
19 |
COPY requirements*.txt /app/
|
20 |
+
RUN --mount=type=cache,target=/root/.cache/pip pip install -r requirements-min.txt
|
|
|
|
|
21 |
COPY *.py *.sh *.default.yaml README.md LICENSE /app/
|
22 |
|
|
|
|
|
23 |
ENV TTS_HOME=voices
|
24 |
ENV HF_HOME=voices
|
|
|
25 |
|
26 |
+
CMD bash startup.min.sh
|
Dockerfile.min → Dockerfile.max
RENAMED
@@ -1,5 +1,7 @@
|
|
1 |
FROM python:3.11-slim
|
2 |
|
|
|
|
|
3 |
ARG TARGETPLATFORM
|
4 |
RUN <<EOF
|
5 |
apt-get update
|
@@ -8,19 +10,35 @@ if [ "$TARGETPLATFORM" != "linux/amd64" ]; then
|
|
8 |
apt-get install --no-install-recommends -y build-essential
|
9 |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
10 |
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
apt-get clean
|
12 |
rm -rf /var/lib/apt/lists/*
|
13 |
EOF
|
|
|
14 |
ENV PATH="/root/.cargo/bin:${PATH}"
|
15 |
|
16 |
WORKDIR /app
|
17 |
RUN mkdir -p voices config
|
18 |
|
|
|
|
|
|
|
19 |
COPY requirements*.txt /app/
|
20 |
-
RUN
|
|
|
|
|
21 |
COPY *.py *.sh *.default.yaml README.md LICENSE /app/
|
22 |
|
|
|
|
|
23 |
ENV TTS_HOME=voices
|
24 |
ENV HF_HOME=voices
|
|
|
25 |
|
26 |
-
CMD bash startup.
|
|
|
1 |
FROM python:3.11-slim
|
2 |
|
3 |
+
RUN --mount=type=cache,target=/root/.cache/pip pip install -U pip
|
4 |
+
|
5 |
ARG TARGETPLATFORM
|
6 |
RUN <<EOF
|
7 |
apt-get update
|
|
|
10 |
apt-get install --no-install-recommends -y build-essential
|
11 |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
12 |
fi
|
13 |
+
|
14 |
+
# for deepspeed support - image +7.5GB, over the 10GB ghcr.io limit, and no noticable gain in speed or VRAM usage?
|
15 |
+
#curl -O https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/cuda-keyring_1.1-1_all.deb
|
16 |
+
#dpkg -i cuda-keyring_1.1-1_all.deb
|
17 |
+
#rm cuda-keyring_1.1-1_all.deb
|
18 |
+
#apt-get install --no-install-recommends -y libaio-dev build-essential cuda-toolkit
|
19 |
+
|
20 |
apt-get clean
|
21 |
rm -rf /var/lib/apt/lists/*
|
22 |
EOF
|
23 |
+
#ENV CUDA_HOME=/usr/local/cuda
|
24 |
ENV PATH="/root/.cargo/bin:${PATH}"
|
25 |
|
26 |
WORKDIR /app
|
27 |
RUN mkdir -p voices config
|
28 |
|
29 |
+
ARG USE_ROCM
|
30 |
+
ENV USE_ROCM=${USE_ROCM}
|
31 |
+
|
32 |
COPY requirements*.txt /app/
|
33 |
+
RUN if [ "${USE_ROCM}" = "1" ]; then mv /app/requirements-rocm.txt /app/requirements.txt; fi
|
34 |
+
RUN --mount=type=cache,target=/root/.cache/pip pip install -r requirements.txt
|
35 |
+
|
36 |
COPY *.py *.sh *.default.yaml README.md LICENSE /app/
|
37 |
|
38 |
+
ARG PRELOAD_MODEL
|
39 |
+
ENV PRELOAD_MODEL=${PRELOAD_MODEL}
|
40 |
ENV TTS_HOME=voices
|
41 |
ENV HF_HOME=voices
|
42 |
+
ENV COQUI_TOS_AGREED=1
|
43 |
|
44 |
+
CMD bash startup.sh
|
startup.min.sh
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
bash download_voices_tts-1.sh
|
6 |
|
7 |
-
python speech.py --xtts_device none $EXTRA_ARGS $@
|
|
|
4 |
|
5 |
bash download_voices_tts-1.sh
|
6 |
|
7 |
+
python speech.py --xtts_device none $EXTRA_ARGS $@ -P 7860
|