Download recipe/docker/Dockerfile.ref from gowombat/tiny-voca-da: direct link, hf CLI and curl.
- Browser
- Download file 983 Bytes
-
https://huggingface.co/gowombat/tiny-voca-da/resolve/main/recipe/docker/Dockerfile.ref
- Command line
-
hf download hf://gowombat/tiny-voca-da/recipe/docker/Dockerfile.ref
-
curl -L -o Dockerfile.ref https://huggingface.co/gowombat/tiny-voca-da/resolve/main/recipe/docker/Dockerfile.ref
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 | |