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

speaker-diarization-3.1 high memory usage #1580

Open
metalgearsloth opened this issue Dec 5, 2023 · 2 comments
Open

speaker-diarization-3.1 high memory usage #1580

metalgearsloth opened this issue Dec 5, 2023 · 2 comments

Comments

@metalgearsloth
Copy link

metalgearsloth commented Dec 5, 2023

So for context:
pyannote/speaker-diarization works as intended.
pyannote/speaker-diarization-3.0 had the CPU issue
pyannote/speaker-diarization-3.1 goes on my GPU however memory usage is over double what it was before. I've tried different versions of pytorch from 2.0 onwards (via pip) but it still happens and onnxruntime is definitely not installed. Going from ~6GB memory to 14GB means performance tanks as I only have 12GB of dedicated memory, from a few minutes to diarize to an hour for the same file.

@hbredin
Copy link
Member

hbredin commented Dec 5, 2023

You may want to try and reduce pipeline.embedding_batch_size that defaults to 32.

@Majdoddin
Copy link

Majdoddin commented Apr 18, 2024

with pipeline.embedding_batch_size=1, it used some ~0.5GB less RAM.
interestingly, runtime also improved significantly!

@pyannote pyannote deleted a comment from github-actions bot Sep 11, 2024
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