-
Notifications
You must be signed in to change notification settings - Fork 670
Build and README adjustments #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
You can use it with Cuda 12.8 as well with nightly build Pytorch 128 |
/edit: Did you try that out? I initially added a note mentioning only CUDA 12.6, 12.4 and 11.8. |
yes for people that had installed it and are lazy to downgrade (similar to me) for CUDA 12.8 the download has to be - https://download.pytorch.org/whl/nightly/cu128 |
Tried testing this by using: pip install chatterbox-tts --extra-index-url https://download.pytorch.org/whl/nightly/cu128 in a fresh virtual environment. This did not install the torch==2.6.0+cu128 & torchvision==2.6.0+cu128 packages for me but the normal ones without a precompiled CUDA. I believe I am missing some prerequisites then if you say it worked for you. |
Yeah, man ... because you have CUDA 12.6 : it doesn't matter if you install in separate galaxy - if you have cuda xxx - you need pytorch xxx 😄 |
I did not install any CUDA toolkits locally on my machine. Just used a virtual environment to install Pytorch with the specific precompiled CUDA version inside it, as shown with the command above (just with cu126 and cu124). Tested it with CUDA 12.4 and 12.6. Both worked inside the my virtual environment. According to the 'nvidia-smi' command, my GPU supports CUDA up to version 12.9 so not sure why pip could not find the according package with cu128. |
@ksomml before installing pytorch with cuda uninstall all the pytorch versions: pip3 uninstall torch torchvision torchaudio Then install it again: pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128 This worked for me. |
@juangea for every new test i always purge the cache and create a new venv. Can you list your package names? It should say something like torch==2.6.0+cu128 then if it worked correctly |
All working now, thanks for the information. |
PROBLEM:
As recommended in the current README:
will not install torch and torchvision with a precompiled CUDA version, thus you won't be able to execute the example file given here https://github.com/resemble-ai/chatterbox?tab=readme-ov-file#usage any other examples using CUDA due to:
SOLUTION: 5a8aa64
PROBLEM:
The numpy dependency in https://github.com/resemble-ai/chatterbox/blob/master/pyproject.toml is 1.26.0
Python >= 3.13 does not support numpy==1.26.0, only Python <3.13
SOLUTION: 507763a
PROBLEM:
Executing https://github.com/resemble-ai/chatterbox/blob/master/example_tts.py gives this warning:
SOLUTION (temporary): d4d9852 (this won't suppress the warning though)
Everything was tested in a virtual environment and the https://github.com/resemble-ai/chatterbox/blob/master/example_tts.py