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

[Question] Faster-Whisper Home Assistant GPU or Tensor (Coral) Suport? #37

Open
werddomain opened this issue Aug 24, 2023 · 9 comments
Open

Comments

@werddomain
Copy link

I host the Faster-Whisper Docker container on my server. I did not see if it can use other hardware to speed things up?

Thanks!

@Shulyaka
Copy link

Faster-whisper supports GPU execution:
https://github.com/guillaumekln/faster-whisper/#gpu-support

Coral TPU is not supported since it does not work well the recurring neural networks: SYSTRAN/faster-whisper#203

The last link however suggests TFLite version of https://github.com/usefulsensors/openai-whisper which could work, but no promises.

@Shulyaka
Copy link

Update: I doubt that a model of this size would fit into the edge TPU anyway. Your best bet is GPU. Probably even NVIDIA Jetson, but those are very expensive.

@werddomain
Copy link
Author

Faster-whisper supports GPU execution: https://github.com/guillaumekln/faster-whisper/#gpu-support

Coral TPU is not supported since it does not work well the recurring neural networks: guillaumekln/faster-whisper#203

The last link however suggests TFLite version of https://github.com/usefulsensors/openai-whisper which could work, but no promises.

thanks for the fast response. I understand i need to create a docker image to support gpu?

@Shulyaka
Copy link

Don't know about docker. This line just suggests to set the device variable to cuda:

device: "cpu" # or cuda

@werddomain
Copy link
Author

werddomain commented Aug 24, 2023

do you know where i can find the makefile or the build file for the docker image rhasspy/wyoming-whisper ?

@Shulyaka
Copy link

Nope, sorry

@edurenye
Copy link

@Shulyaka you can find it here: https://github.com/rhasspy/wyoming-addons

And I added a PR to support GPU, and for the moment works for whisper but not for piper:
rhasspy/wyoming-addons#4

@jmorille
Copy link

jmorille commented May 15, 2024

The ticket SYSTRAN/faster-whisper#203 say that not be possible ti run on TPU

But the project whisper-jax has done a migration with TPU Coral

If the huggingface test is correct

image

A blog article made some benchmark also:

Any implementation on TPU Coral could be an great specially for cheat hardware ?

@krzakx
Copy link

krzakx commented Nov 15, 2024

I do not thing Iy would be possible to run Whisper-JAX on Google Coral TPU (consumer) since model weight to be loaded is to heavy at least this is what I had read on some other discussions

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

5 participants