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

RTX 50 series support

Open VenomousSpiral opened this issue 1 year ago • 8 comments

It currently does not work with 50 series GPUs due to PyTorch. The model does not load.

VenomousSpiral avatar Jun 09 '25 22:06 VenomousSpiral

After installation and the first run I uninstall torch, torchvision and torchaudio and install the new nightly version. It works afterwards.

pip uninstall -y torch torchvision torchaudio

pip install --no-cache-dir --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu128

I hope it helps :)

Oh yes ... and I gt this error after installation, but it has no negativ inpact yet.

Successfully uninstalled nvidia-cusolver-cu12-11.4.5.107

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. chatterbox-tts 0.1.2.dev0 requires torch==2.5.1, but you have torch 2.8.0.dev20250609+cu128 which is incompatible. chatterbox-tts 0.1.2.dev0 requires torchaudio==2.5.1, but you have torchaudio 2.8.0.dev20250609+cu128 which is incompatible.

Successfully installed nvidia-cublas-cu12-12.8.4.1 nvidia-cuda-cupti-cu12-12.8.90 nvidia-cuda-nvrtc-cu12-12.8.93 nvidia-cuda-runtime-cu12-12.8.90 nvidia-cudnn-cu12-9.8.0.87 nvidia-cufft-cu12-11.3.3.83 nvidia-cufile-cu12-1.13.1.3 nvidia-curand-cu12-10.3.9.90 nvidia-cusolver-cu12-11.7.3.90 nvidia-cusparse-cu12-12.5.8.93 nvidia-cusparselt-cu12-0.6.3 nvidia-nccl-cu12-2.26.5 nvidia-nvjitlink-cu12-12.8.93 nvidia-nvshmem-cu12-3.2.5 nvidia-nvtx-cu12-12.8.90 pytorch-triton-3.3.1+gitc8757738 sympy-1.13.3 torch-2.8.0.dev20250609+cu128 torchaudio-2.8.0.dev20250609+cu128 torchvision-0.23.0.dev20250609+cu128

Stevoo01 avatar Jun 10 '25 04:06 Stevoo01

Is this what I need to edit on the requirements-nvidia.txt file to get it right the fist time?

# Use the official PyTorch package index for CUDA 12.1.
--extra-index-url https://download.pytorch.org/whl/cu128
# Pinning a compatible set of torch-related libraries is crucial to avoid dependency conflicts.
torch==2.8.0
torchvision==0.23.0
torchaudio==2.8.0

or will it conflict with the following?:

# --- Core Application Dependencies ---

# Install chatterbox from our Colab-compatible fork instead of PyPI
git+https://github.com/devnen/chatterbox.git

sproid-i avatar Jun 16 '25 20:06 sproid-i

Further to this, I did get it working by:

  1. Creating a venv and made sure it was with Python 3.10
  2. Do regular install as per instructions
  3. Then uninstall the torch stack: pip uninstall -y torch torchvision torchaudio
  4. Then install the RTX 5000 series friendly and updated Torch stack: pip install --no-cache-dir --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu128
  5. Then run the server and it will work with the new torch stack supporting the RTX 5000 series cards

Nitroedge avatar Jul 07 '25 19:07 Nitroedge

Further to this, I did get it working by:

1. Creating a venv and made sure it was with Python 3.10

2. Do regular install as per instructions

3. Then uninstall the torch stack:
   `pip uninstall -y torch torchvision torchaudio`

4. Then install the RTX 5000 series friendly and updated Torch stack:
   `pip install --no-cache-dir --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu128`

5. Then run the server and it will work with the new torch stack supporting the RTX 5000 series cards

now if only you can fix the most recent issues we are having xD

DJLegends1011 avatar Jul 09 '25 18:07 DJLegends1011

If you're using the Dockerfile you can add the following lines right before the EXPOSE instruction

RUN pip uninstall -y torch torchvision torchaudio
RUN pip install --no-cache-dir --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu128

This worked for me for an RTX 5080. Hopefully the PyTorch version will be upgraded soon out of the box.

zeroepoch avatar Jul 20 '25 07:07 zeroepoch

If you're using the Dockerfile you can add the following lines right before the EXPOSE instruction

RUN pip uninstall -y torch torchvision torchaudio
RUN pip install --no-cache-dir --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu128

This worked for me for an RTX 5080. Hopefully the PyTorch version will be upgraded soon out of the box.

Thanks for this, worked perfectly and I'm actually running it in a Windows 11 virtual environment so as my last step I did what you wrote to uninstall/install and everything worked.

Nitroedge avatar Jul 24 '25 17:07 Nitroedge

Thanks for this. I'm using a 5060 Ti and I followed the steps above (install, remove torch, install friendly version). Initially I got: OSError: [WinError 1114] A dynamic link library (DLL) initialization routine failed. Error loading "c:\cb\Chatterbox-TTS-Server\venv\lib\site-packages\torch\lib\c10.dll" or one of its dependencies

Eventually I solved this by reinstalling VC_resist.x64.exe and now it's flying along nicely on CUDA. Thanks again.

MarkJE avatar Oct 08 '25 13:10 MarkJE

Blackwell / RTX 50 series installation has been fixed in commit b181edb. The requirements-nvidia-cu128.txt now properly installs PyTorch 2.9.0 with CUDA 12.8 and sm_120 support. Works for RTX 5060 Ti, 5070, 5070 Ti, 5080, and 5090.

Use the launcher: python start.py --reinstall --nvidia-cu128 Or Docker: docker compose -f docker-compose-cu128.yml up -d --build

See Option 2b in the README for full instructions.

devnen avatar Mar 26 '26 21:03 devnen