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

pipeline breaks libcudnn_ops_infer library if model is not used #1823

Open
jzju opened this issue Jan 3, 2025 · 0 comments
Open

pipeline breaks libcudnn_ops_infer library if model is not used #1823

jzju opened this issue Jan 3, 2025 · 0 comments

Comments

@jzju
Copy link

jzju commented Jan 3, 2025

Tested versions

pyannote.audio==3.3.0
pyannote.pipeline==3.0.1

System information

Ubuntu 22.04

Issue description

from faster_whisper import WhisperModel
from pyannote.audio import Pipeline
import torch

annote = Pipeline.from_pretrained(
    "pyannote/speaker-diarization-3.1", use_auth_token="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"
)
annote.to(torch.device("cuda"))
annote("a.wav") # without this line Whisper crashes
trans = WhisperModel("large-v3", device="cuda", compute_type="float16")
trans.transcribe("a.wav")

If you don't call annote after annote.to(torch.device("cuda")) then whisper crash with this error Could not load library libcudnn_cnn_infer.so.8. Error: /lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8: undefined symbol: _ZN5cudnn14cublasSaxpy_v2EP13cublasContextiPKfS3_iPfi, version libcudnn_ops_infer.so.8 but it works fine if you call annote("a.wav")

Minimal reproduction example (MRE)

https://colab.research.google.com/see_description

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

1 participant