-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Expand file tree
/
Copy pathDockerfile.new
More file actions
46 lines (36 loc) · 1.49 KB
/
Copy pathDockerfile.new
File metadata and controls
46 lines (36 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# CUDA 13.1 + cuDNN 9 — matches node driver 590.48.01 on gx16 (A30, compute 8.0)
FROM pytorch/pytorch:2.7.0-cuda13.1-cudnn9-runtime
USER root
ARG DEBIAN_FRONTEND=noninteractive
ARG TORCH_VERSION=2.7.0
ARG CUDA_TAG=cu131
LABEL github_repo="https://github.com/SWivid/F5-TTS"
# Install dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git \
ffmpeg \
build-essential \
&& rm -rf /var/lib/apt/lists/* && \
apt-get clean
WORKDIR /workspace
# Clone F5-TTS repo with submodules and apply BigVGAN patch
RUN git clone https://github.com/aihpi/F5-TTS \
&& cd F5-TTS \
&& git submodule update --init --recursive \
&& printf "import os\nimport sys\nsys.path.append(os.path.dirname(os.path.abspath(__file__)))\n" \
| cat - src/third_party/BigVGAN/bigvgan.py > temp && mv temp src/third_party/BigVGAN/bigvgan.py
# Copy local source code (e.g., for custom modifications)
COPY . /workspace/F5-TTS
WORKDIR /workspace/F5-TTS
# Install Python dependencies
RUN pip install --no-cache-dir -e .[eval] \
&& pip install --no-cache-dir -r src/third_party/BigVGAN/requirements.txt \
&& rm -rf ~/.cache/pip
# Force-reinstall torch + torchaudio from the official CUDA 13.1 wheel index so they
# share the same ABI regardless of what pip resolved above.
RUN pip install --no-cache-dir --force-reinstall \
torch==${TORCH_VERSION} \
torchaudio==${TORCH_VERSION} \
--index-url https://download.pytorch.org/whl/${CUDA_TAG}
ENV SHELL=/bin/bash