Skip to content
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

Can we add CUDA support to the Rhasspy3 HA Addon? #21

Open
nikito opened this issue Mar 10, 2023 · 4 comments
Open

Can we add CUDA support to the Rhasspy3 HA Addon? #21

nikito opened this issue Mar 10, 2023 · 4 comments

Comments

@nikito
Copy link

nikito commented Mar 10, 2023

Hello,
I was attempting to enable CUDA support on the HA addon to test out larger faster-whisper models with CUDA acceleration, but seems the docker image isn't able to support it. I get the following error:
RuntimeError: CUDA failed with error CUDA driver version is insufficient for CUDA runtime version

Thanks! :)

@synesthesiam
Copy link
Contributor

I could build a separate version based on the NVIDIA image. I wasn't aware you could enable GPU access in HA. Is that a separate config.yaml option?

@nikito
Copy link
Author

nikito commented Mar 10, 2023

So I think it is specific to the docker running (I think the frigate addon can do it for example, as well as the go2rtc addon used for camera transcode acceleration). I just turned it on in the rhasspy config on the faster-whisper entry when I forked the repository by changing device from "cpu" to "cuda":
image

My knowledge of docker is a bit limited as I haven't played with that much before (I'm more of a backend developer in c#/Java so a bit new to python and docker lol) so apologies if I am missing anything!

@nikito
Copy link
Author

nikito commented Mar 10, 2023

One other thing I realized, I wouldn't be able to try out other models anyway as I don't think they are part of the docker image 😆 Guess the same goes for trying other TTS engines and such?

@kds69
Copy link

kds69 commented Nov 23, 2023

Hi, did you finally manage to support CUDA?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants