Chatterbox-TTS-Server icon indicating copy to clipboard operation
Chatterbox-TTS-Server copied to clipboard

Blackwell installation issues

Open 98h398hrpohpoai opened this issue 11 months ago • 11 comments

Keep getting this error trying to load the blackwell image. This is from a straight git clone, docker compose -f docker-compose-cu128.yml up -d as outlined in the docs:

ImportError: Model selector 'chatterbox-turbo' requires ChatterboxTurboTTS, but it is not available in the installed chatterbox package. Please update the chatterbox-tts package to the latest version, or use 'chatterbox' to select the original model.

Tried reloading the image several times, upgrading the chatterbox package, etc. to no available. All volumes are mounted locally with full write permissions for persistence.

98h398hrpohpoai avatar Dec 18 '25 06:12 98h398hrpohpoai

Another user on Reddit had a similar experience and managed to get an RTX 5090 working. He installed from source, not using Docker, and shared these steps that might help you:

  1. git clone the repo.
  2. Create a virtual environment.
  3. Install the cu128 requirements.
  4. When he tried to run the app, it said he was missing the chatterbox module.
  5. He ran pip install chatterbox-tts, but this downgraded his PyTorch installation.
  6. To fix this, he reinstalled the specific versions of PyTorch, torchvision, and torchaudio that match the cu128 requirements:
    pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu128
    
  7. After that, he could successfully load server.py and everything worked great!

Unfortunately, I don't have a Blackwell GPU to test this myself, so I'm really grateful for his contribution.

I've pinned this issue so that anyone else who has managed to get it working can jump in and perhaps add a pull request or post their steps to help streamline the installation for everyone.

devnen avatar Dec 18 '25 21:12 devnen

Thanks, was able to get it to build and run with the following revisions. Removed pytorch from requirements since that was already being handled in the Dockerfile, and then moved the pytorch upgrade for Blackwell to the end of the build process in the Dockerfile.

This isn't a one-for-one with the repo since I didn't need the other build versions e.g. cpu, rocm, but should be easy enough to transpose as needed.

Dockerfile.cu128

FROM nvidia/cuda:12.8.1-runtime-ubuntu22.04

ARG RUNTIME=nvidia

# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV DEBIAN_FRONTEND=noninteractive
# Set the Hugging Face home directory for better model caching
ENV HF_HOME=/app/hf_cache

# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential \
    libsndfile1 \
    ffmpeg \
    python3 \
    python3-pip \
    python3-dev \
    python3-venv \
    git \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

# Create a symlink for python3 to be python for convenience
RUN ln -s /usr/bin/python3 /usr/bin/python

# Set up working directory
WORKDIR /app

# Upgrade pip first
#RUN pip3 install --upgrade pip
COPY requirements.txt .

# Upgrade pip and install Python dependencies
RUN pip3 install --no-cache-dir --upgrade pip && \
    pip3 install --no-cache-dir -r requirements.txt


RUN if [ "$RUNTIME" = "nvidia" ]; then \
    pip3 install --no-cache-dir \
      --index-url https://download.pytorch.org/whl/cu128 \
      torch==2.9.0 torchvision==0.24.0 torchaudio==2.9.0 ; \
    fi

# Copy the rest of the application code
COPY . .

# Create required directories for the application
RUN mkdir -p model_cache reference_audio outputs voices logs hf_cache

# Expose the port the application will run on
EXPOSE 8004

# Command to run the application
CMD ["python3", "server.py"]

requirements.txt

# ============================================================================
# CHATTERBOX TTS SERVER - REQUIREMENTS (NVIDIA CUDA 12.8 / BLACKWELL)
# ============================================================================
# This file provides CUDA 12.8 support for RTX 5090 / Blackwell architecture (sm_120)
#
# Use this file if you have:
# - NVIDIA RTX 5090 or other Blackwell-based GPUs
# - CUDA 12.8+ drivers installed (driver version 570+)
# - Need for PyTorch 2.8.0 with sm_120 support
#
# For RTX 20/30/40 series GPUs, use requirements-nvidia.txt instead.
#
# ============================================================================
# IMPORTANT: This file does NOT include chatterbox-tts because it must be
# installed separately with --no-deps to prevent PyTorch downgrade.
#
# The start.py launcher handles this automatically.
#
# For manual installation, run these commands in order:
#   pip install -r requirements-nvidia-cu128.txt
#   pip install --no-deps git+https://github.com/devnen/chatterbox-v2.git@master
# ============================================================================

# --- PyTorch CUDA 12.8 Package Index ---
#--extra-index-url https://download.pytorch.org/whl/cu130

# --- Deep Learning Framework (CUDA 12.8) ---
# PyTorch 2.8.0 with CUDA 12.8 - includes sm_120 (Blackwell) support
#torch==2.9.0
#torchvision==0.24.0
#torchaudio==2.9.0

# Chatterbox TTS engine - Install from chatterbox-v2 fork
chatterbox-tts @ git+https://github.com/resemble-ai/chatterbox.git@master
#    pip3 install --no-cache-dir --no-deps git+https://github.com/resemble-ai/chatterbox.git;
# --- Core Web Framework ---
fastapi
uvicorn[standard]

# --- ML & Audio Libraries ---
numpy>=1.24.0,<1.26.0  # Match chatterbox-v2 requirements
soundfile
librosa
safetensors
descript-audio-codec

# --- Configuration & Utilities ---
PyYAML
python-multipart
requests
Jinja2
watchdog
aiofiles
unidecode
inflect
tqdm
hf_transfer

# --- Audio Post-processing ---
pydub
audiotsm

98h398hrpohpoai avatar Dec 18 '25 23:12 98h398hrpohpoai

Thank you. I have updated Dokerfile.cu128 and requirements-nvidia-cu128.txt files. Dokerfile.cu128 now uses the requirements-nvidia-cu128.txt file instead of the requirements.txt file. I hope this will work.

devnen avatar Dec 20 '25 08:12 devnen

Hi, I have an RTX 5080 graphics card and I couldn't get the server to run with option 3 for Blackwell compatibility.

What I did was the following:

I modified the file requirements-nvidia-cu128.txt

# =========================================================
# NVIDIA CUDA 12.8 / Blackwell (RTX 5080)
# Python 3.11
# =========================================================

# -------- Core ML / Audio --------
numpy>=1.24.0,<1.26.0
scipy
librosa
soundfile
soxr
numba
llvmlite

# -------- HuggingFace / Models --------
transformers==4.46.3
tokenizers
accelerate
diffusers==0.29.0
safetensors==0.5.3
huggingface-hub

# -------- ONNX (wheel precompilado, NO source build) --------
onnx>=1.16.0

# -------- Chatterbox deps --------
conformer==0.3.2
resemble-perth==1.0.1
pyloudnorm
pykakasi==2.3.0
s3tokenizer
spacy-pkuseg
omegaconf

# -------- Server / API / UI --------
fastapi
uvicorn
gradio==5.44.1
gradio-client
httpx
pydantic
pydub
ffmpy
python-multipart

# -------- Utils --------
tqdm
pyyaml
rich
packaging
requests

# =========================================================
# IMPORTANT:
#   pip install --no-deps git+https://github.com/devnen/chatterbox-v2.git@master
# =========================================================

And run this in the "CMD"

python -3.11 -m venv venv
.\venv\Scripts\activate

pip install -U pip wheel
pip install "setuptools<81"

pip install -r requirements-nvidia-cu128.txt

pip install --index-url https://download.pytorch.org/whl/cu128 ^
  torch==2.8.0+cu128 torchaudio==2.8.0+cu128

pip install --no-deps git+https://github.com/devnen/chatterbox-v2.git@master

This finally got the server working after it almost crashed. I know someone can optimize these steps to make them more intuitive and elegant. Cheers!

drAkeSteinn avatar Jan 04 '26 19:01 drAkeSteinn

The above does not work for me on py 3.10. I am getting ERROR: Could not find a version that satisfies the requirement torch==2.8.0+cu128 (from versions: none)

Battou2501 avatar Jan 18 '26 19:01 Battou2501

Same with py 3.11

Its like it does not see any versions at this url

Battou2501 avatar Jan 18 '26 19:01 Battou2501

Strange but running start.py after executing everything above till pip install -r requirements-nvidia-cu128.txt (including) succesfully installed server for 5080 gpu

Battou2501 avatar Jan 18 '26 19:01 Battou2501

Redone everething on clean repo clone and it worked this time! Thanks!

Battou2501 avatar Jan 25 '26 14:01 Battou2501

Procedure of drAkeSteinn above worked for me, python 3.11.14 in conda environment. I have 5070Ti with driver 580.126.09, cuda 13.0. This above was very helpful after spending a lot of time trying to debug the requirements-nvidia-cu128.txt.

The 5000 series GPUs have been out for a year now, yet I've had lots of trouble getting ML applications to run, not just Chatterbox.

audio441 avatar Feb 15 '26 03:02 audio441

Thanks to everyone who contributed solutions here — @drAkeSteinn, @Battou2501, @audio441, @Nitroedge, @MarkJE, @zeroepoch, and others. Your testing across RTX 5060 Ti, 5070 Ti, 5080, and 5090 made this fix possible.

Fixed in commit b181edb. The main problems were:

  1. requirements-nvidia-cu128.txt had the torch versions commented out, so no cu128 torch was being installed
  2. It pointed to the wrong chatterbox repo
  3. Dockerfile.cu128 was missing the --no-deps chatterbox install

Now requirements-nvidia-cu128.txt properly installs torch 2.9.0 from the cu128 index with sm_120 support, and chatterbox is installed with --no-deps in both Docker and start.py paths.

For the launcher, just run:

python start.py --reinstall --nvidia-cu128

For manual install:

pip install -r requirements-nvidia-cu128.txt
pip install --no-deps git+https://github.com/devnen/chatterbox-v2.git@master

See the updated Blackwell installation section in the README.

devnen avatar Mar 26 '26 21:03 devnen

Closing as resolved, please use docker-compose-cu128.yml (CUDA 12.8 + torch 2.9) or docker-compose-cu130.yml (CUDA 13 + torch 2.10) for Blackwell. The original cu121 compose file does not have torch built for sm_120. Reopen if you still hit it on cu128 / cu130.

devnen avatar May 11 '26 14:05 devnen