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

Diarization process in Whisperx does not utilize GPU #542

Open
SerebryanskiySergei opened this issue Oct 25, 2023 · 5 comments
Open

Diarization process in Whisperx does not utilize GPU #542

SerebryanskiySergei opened this issue Oct 25, 2023 · 5 comments

Comments

@SerebryanskiySergei
Copy link

SerebryanskiySergei commented Oct 25, 2023

I have updated the package to the latest version with the merged 3.0.1 version of pyannite audio.
However, I am still experiencing slow diarization processing times.

After checking the Task Manager, I noticed that only 1-2% of GPU usage is observed (I am using a 4080 GPU).
In the same time transcription process takes almost 98% so I'm sure that the setup is correct.

Do you have any ideas on how to resolve this issue?

@SerebryanskiySergei SerebryanskiySergei changed the title Whisperx doesn't utilize GPU when perfoming diarization Diarization process in Whisperx does not utilize GPU Oct 25, 2023
@sam1am
Copy link

sam1am commented Oct 25, 2023

See here: #499

@SerebryanskiySergei
Copy link
Author

See here: #499

yeah, I've checked that before making an issue, thank you for pointing this out.

Maybe I didn't get the idea, but the author is talking there about 3.0.0 version that doesn't work on the GPU.
However with the merged fix from the prev week, pyannnite.audio was updated to 3.0.1 and this version whould be OK with the GPU usage.

But the problem is still exists.

@iamianM
Copy link

iamianM commented Oct 25, 2023

Hi, thanks for bringing this up. I'm having the same issue. Was hoping the update would resolve, but still stuck using the CPU.

@manjunath7472
Copy link

Assuming cuda and cudnn installed in PC.

Before installing whisperx, install pytorch for your cuda version installed in your pc.
For cuda 11.8
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

Then install whisperX

post install, confirm cuda by running below code.

import torch
print(torch.cuda.is_available())

@SerebryanskiySergei
Copy link
Author

Assuming cuda and cudnn installed in PC.

Before installing whisperx, install pytorch for your cuda version installed in your pc. For cuda 11.8 pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

Then install whisperX

post install, confirm cuda by running below code.

import torch
print(torch.cuda.is_available())

I thought about it too, as an example I've built with cuda official example applications (deviceQuery), I was able to build and run it.

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

4 participants