-
Notifications
You must be signed in to change notification settings - Fork 232
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
Coqui Engine Error - 'int' object has no attribute 'device' #240
Comments
Never saw this one before. Which torch and transformers versions are you using, I'll try to reproduce it. |
Torch 2.5.1+cu124 |
Just in case it's a useful datapoint - I tried downgrading to CUDA 12.1 and torch 2.5.1+cu121 and seem to be getting the same error. |
I uninstalled coqui-tts before reinstalling RealtimeTTS and that seemed to fix the issue - so I think this can be closed out, but thank you anyways! |
Wow, that's strange because RealtimeTTS imports coqui-tts, so it shouldn't make a difference if it was installed or not. Mysterious... |
Perhaps there was something wrong with my original installation of coqui-tts was resolved when it was reinstalled through the RealtimeTTS install? Or perhaps I changed something else along the way that resolved the issue - I'm not sure. I did run into another issue with the DeepSpeed wheel returning as invalid - any suggestions there? I can open a new issue thread to keep that separate if preferred.
|
If this wheel doesn't work please try: pip install torch==2.1.2+cu121 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cu121
pip install https://github.com/daswer123/deepspeed-windows-wheels/releases/download/11.2/deepspeed-0.11.2+cuda121-cp310-cp310-win_amd64.whl |
The wheel installed just fine after downgrading torch to 2.1.2 - but now I'm getting this error on import. Maybe a mismatch between my transformers version and my torch version?
|
Hard to give support here, this is no direct RealtimeTTS issue. Feels like sentence_transformers needs more recent torch and or transformers library. This is a bit out of my scope. Deepspeed is really hard to install manually on windows but if you want to give it a try here are step-by-step instructions how to do it. Maybe you find a working windows wheel for a more recent torch version somewhere in the net, sorry my attempt to provide a recent wheel doesn't seem to work. |
You've already provided more than enough - thank you! |
I tried running the coqui test script and can seem to get around this error. Any suggestions? This seems like the perfect library for one of my projects, so I'm hoping there is something obvious that I'm missing.
The text was updated successfully, but these errors were encountered: