tiny-voca-da / recipe /docker /Dockerfile.ref
inlanger's picture
tiny-voca-da v0.1: frontend v4 + sm9 vocoder (ONNX fp32/int8, PyTorch, frontend, recipe, samples)
adabee1 verified
Raw History Blame Contribute Delete
983 Bytes
# Original English tiny-voca (n4ze3m), pinned, CPU only. Reference for "what good sounds like".
FROM python:3.12-slim
RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates \
&& rm -rf /var/lib/apt/lists/*
ARG UPSTREAM_COMMIT=4bf796d29ea775edd5a7cc5ee3a6806b3c3b91f6
ARG WEIGHTS_REVISION=5fe06641d0afecb3c04bc9faca2cf64d9b2b1600
WORKDIR /opt/ref
RUN git init -q tiny-voca \
&& git -C tiny-voca remote add origin https://github.com/n4ze3m/tiny-voca.git \
&& git -C tiny-voca fetch -q --depth 1 origin "$UPSTREAM_COMMIT" \
&& git -C tiny-voca checkout -q --detach FETCH_HEAD
RUN pip install --no-cache-dir torch==2.8.0 --index-url https://download.pytorch.org/whl/cpu \
&& pip install --no-cache-dir -e "./tiny-voca[own]" "huggingface_hub>=0.34,<1"
RUN hf download n4ze3m/tiny-voca --revision "$WEIGHTS_REVISION" --local-dir /opt/ref/weights \
&& chmod -R a+rX /opt/ref
ENV DIZIONE_DATA=/opt/ref/weights/phonemizer HOME=/tmp PYTHONUNBUFFERED=1