|
1 | | -FROM pytorch/pytorch:2.6.0-cuda12.6-cudnn9-devel |
2 | | - |
3 | | -WORKDIR /app/index-tts |
| 1 | +FROM nvcr.io/nvidia/cuda:12.6.3-cudnn-devel-ubuntu24.04 |
4 | 2 | ENV TZ=Asia/Shanghai |
| 3 | +ENV DEBIAN_FRONTEND=noninteractive |
| 4 | +COPY README.txt ./ |
| 5 | + |
| 6 | +RUN apt update && apt install -y build-essential cmake ninja-build patchelf wget net-tools curl iputils-ping git git-lfs |
| 7 | + |
| 8 | +RUN mkdir -p /app |
| 9 | +WORKDIR /app |
| 10 | +RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && bash Miniconda3-latest-Linux-x86_64.sh -b -p /app/conda |
5 | 11 |
|
6 | | -RUN apt update && apt install -y wget net-tools tree curl && wget https://github.com/index-tts/index-tts/raw/refs/heads/main/requirements.txt |
7 | | -RUN pip install -r requirements.txt && pip install deepspeed |
| 12 | +RUN /app/conda/bin/conda init |
| 13 | +RUN conda create --name ktransformers python=3.11 |
| 14 | +SHELL ["conda", "run", "-n", "ktransformers", "/bin/bash", "-c"] |
| 15 | +RUN conda activate ktransformers |
| 16 | +RUN conda install -c conda-forge libstdcxx-ng && strings ~/anaconda3/envs/ktransformers/lib/libstdc++.so.6 | grep GLIBCXX |
| 17 | +RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126 |
| 18 | +RUN pip install packaging ninja cpufeature numpy |
8 | 19 |
|
9 | | -RUN apt update && apt install -y ffmpeg gcc g++ cmake |
| 20 | +RUN apt install -y libtbb-dev libssl-dev libcurl4-openssl-dev libaio1 libaio-dev libgflags-dev zlib1g-dev libfmt-dev libnuma-dev |
10 | 21 |
|
11 | | -RUN pip install -U triton --index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/Triton-Nightly/pypi/simple/triton-nightly |
| 22 | +RUN git clone https://github.com/kvcache-ai/ktransformers.git && cd ktransformers && git submodule update --init --recursive |
| 23 | +RUN cd ktransformers && bash install.sh |
12 | 24 |
|
13 | | -ENV CUDA_HOME=/usr/local/cuda-12.4 |
14 | | -ENV PATH=$CUDA_HOME/bin:$PATH |
15 | | -ENV LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH |
| 25 | +RUN pip install libstdcxx-ng |
| 26 | +RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126 |
16 | 27 |
|
17 | | -# 设置国内源 |
18 | | -RUN mkdir -p /app/index-tts && rm -rf /etc/apt/sources.list && rm -rf /etc/apt/sources.list.d/*ubuntu* |
19 | | -COPY sources-22.04.list /etc/apt/sources.list |
20 | | -RUN pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple |
| 28 | +RUN pip install huggingface_hub modelscope |
| 29 | +RUN huggingface-cli download deepseek-ai/DeepSeek-V2-Lite-Chat --exclude *.safetensors --local-dir /app/model/deepseek-ai/DeepSeek-V2-Lite-Chat |
| 30 | +RUN huggingface-cli download deepseek-ai/DeepSeek-V3-0324 --exclude *.safetensors --local-dir /app/model/deepseek-ai/DeepSeek-V3-0324 |
| 31 | +RUN huggingface-cli download deepseek-ai/DeepSeek-R1 --exclude *.safetensors --local-dir /app/model/deepseek-ai/DeepSeek-R1 |
21 | 32 |
|
22 | | -ENTRYPOINT ["python", "webui.py"] |
| 33 | +CMD tail -f README.txt |
0 commit comments