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

Whisper-live taking same time on CPU and GPU to transcribe an audio #791

Open
prem1303 opened this issue Apr 18, 2024 · 6 comments
Open

Comments

@prem1303
Copy link

I am using whisper-live==0.2.1 , faster-whisper==0.10.0 and Ctranslate2==4.0.0

Transcribing a 30-second audio file currently requires the same amount of time whether processed on a CPU or GPU, approximately 2 minutes. Any guidance on enhancing GPU performance to expedite this task would be greatly valued.

@trungkienbkhn
Copy link
Collaborator

@prem1303 , hello. FW 0.10.0 is broken tag, could you update FW and Ctranslate2 to latest version (FW 1.0.1 + Ctranslate2 4.2.0 + CUDA 12) ?

@prem1303
Copy link
Author

Thanks @trungkienbkhn ,
I tried but still getting same time on GPU, any other suggestions????

@trungkienbkhn
Copy link
Collaborator

@prem1303 Could you show your code and attach example audio ? I will try testing them to evaluate throughput. I think you could try using smaller models or distil models to reduce time execution.

@prem1303
Copy link
Author

prem1303 commented Apr 28, 2024

I am using (https://github.com/collabora/WhisperLive) I have set up a client-side application locally and deployed a server.py (server side) on a GPU remote host. connecting the client and server using WebSockets and passing audio files using a Flask API.

@prem1303
Copy link
Author

prem1303 commented May 6, 2024

I solved the issues.
Thank you very much for your support and time.

@ruifengma
Copy link

@prem1303 do you use docker to deploy the model?

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