sanchit-gandhi / whisper-jax

JAX implementation of OpenAI's Whisper model for up to 70x speed-up on TPU.
Apache License 2.0
4.24k stars 355 forks source link

Coral TPU support #180

Open ciaotesla opened 4 months ago

ciaotesla commented 4 months ago

I wanted to know if there is a way to add Google Coral TPU support. I wanted to experiment with Raspberry PI 5 and Coral TPU.

joshuachris2001 commented 3 months ago

bump, as it would be interesting.

TheTechmage commented 1 month ago

I was interested in this as well and gave it a shot. Following the install instructions for Google Coral USB Accelerator, I setup a python virtual env for version 3.9.12. Once I verified that the Coral was working and it could identify birds, the next step was getting whisper-jax up and running. Doing so involves the following steps:

Fortunately, even with the smaller models, it appears to work. Though it can take quite a while to do transcriptions with the single USB Accelerator TPU (2 and a half hours for an hours worth of audio)