-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathDockerfile.tts_sdp
More file actions
46 lines (37 loc) · 1.27 KB
/
Dockerfile.tts_sdp
File metadata and controls
46 lines (37 loc) · 1.27 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
FROM pytorch/pytorch:2.4.1-cuda12.1-cudnn9-devel
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=America/Los_Angeles
# Install basics
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
bzip2 \
ca-certificates \
libsox-fmt-mp3 \
cmake \
curl \
ffmpeg \
g++ \
sox \
unzip \
vim \
wget
# Update pip
RUN pip install --upgrade pip
# Link all cudnn .so libraries for runtime
RUN ln -s /opt/conda/lib/python3.11/site-packages/nvidia/cudnn/include/cudnn*.h /usr/include/
RUN mkdir -p /usr/local/cuda/lib64
RUN ln -s /opt/conda/lib/python3.11/site-packages/nvidia/cudnn/lib/libcudnn*.so* /usr/local/cuda/lib64/
ENV LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
# Copy NeMo SDP
WORKDIR /src
COPY . /src/NeMo-speech-data-processor
RUN rm -rf /src/NeMo-speech-data-processor/.git
# Install requirements
WORKDIR /src/NeMo-speech-data-processor
RUN pip install -r requirements/main.txt
RUN pip install -r requirements/tts.txt
RUN pip install flash-attn --no-build-isolation
RUN pip install https://github.com/LahiLuk/YouTokenToMe/archive/master.zip
RUN pip install --no-build-isolation megatron-core transformer_engine[pytorch]==2.4.0
RUN pip install nemo_toolkit['all']==2.3.2
WORKDIR /src/NeMo-speech-data-processor