whisper-ctranslate2 icon indicating copy to clipboard operation
whisper-ctranslate2 copied to clipboard

library issue?

Open silvacarl2 opened this issue 1 year ago • 2 comments

we did this: pip install --upgrade --no-cache-dir --force-reinstall git+https://github.com/Softcatala/whisper-ctranslate2

but no matter what we do, the result is this:

time whisper-ctranslate2 --model large-v2 --language en --word_timestamps True --output_format json childrenatplay_davies_ah_64kb.mp3 Detected language 'English' with probability 1.000000 Unable to load any of {libcudnn_ops.so.9.1.0, libcudnn_ops.so.9.1, libcudnn_ops.so.9, libcudnn_ops.so} Invalid handle. Cannot load symbol cudnnCreateTensorDescriptor Aborted (core dumped)

real 0m6.853s user 0m10.305s sys 0m3.037s

do we need to pin it to a specific version of libcudnn?

silvacarl2 avatar Dec 01 '24 20:12 silvacarl2

I had a similar error, but I solved it by installing an older version of ctranslate2.

pip install ctranslate2==4.4.0

thr3a avatar Jan 03 '25 05:01 thr3a

I had a similar error, but I solved it by installing an older version of ctranslate2.

pip install ctranslate2==4.4.0

Seems that new release of ctranslate uses cudnn 9 not 8 and they haven't updated the documentation on their website to reflect that. I only found out by going to their github

FriedGenera avatar Jan 07 '25 09:01 FriedGenera

yes, this fixed it:

for libcudnn8 for whisper-ctranslate2

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb sudo dpkg -i cuda-keyring_1.1-1_all.deb && sudo apt update sudo apt install libcudnn8 libcudnn8-dev

silvacarl2 avatar Aug 08 '25 17:08 silvacarl2