faster-whisper: cudnn ops64_9.dll is not found
Just a note about what I’ve experienced here:
Since https://github.com/OpenNMT/CTranslate2/pull/1803 is merged and ctranslate2 version is now bumped to 4.5.0,
I got cudnn ops64_9.dll is not found error which means cuDNN version mismatch.
This only happens with torch <= 2.3.1, fixed by upgrading to torch >= 2.4.0. (Tested on Windows)
It seems faster-whisper now needs torch >= 2.4.0 with the latest CTranslate2 update.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (4 by maintainers)
Can you try something? Try installing the following libraries into your virtual environment:
And then in your script running
faster-whisperinclude the following code snippet before any other imports:Lastly,
pip installthe proper version oftorchandtorchaudio:Please Note
If you
pip installfaster-whisperas per usual you MUST PIP INSTALL TORCH AND TORCHAUDIO after installingfaster-whisper, otherwise, faster-whisper will use the versions that it currently specifies as its dependencies.Did it work?
faster-whisperscript of course.Downgrade ctranslate2: !pip install ctranslate2==4.4.0
I’m encountering an issue when running Faster Whisper in a Google Colab environment. The code crashes which might be related to the ctranslate2 with the following error:
Unable to load any of {libcudnn_ops.so.9.1.0, libcudnn_ops.so.9.1, libcudnn_ops.so.9, libcudnn_ops.so}
Could you advise on how to resolve this error when running Faster Whisper in Colab?
Hello, stranger on the internet. I was going through dependency hell and had wasted an entire day trying to fix my problem. Not even ChatGPT or Gemini could assist with my problem.
It wasn’t until I stumbled upon these holy instructions that I could be liberated from hell. It helped me not only once, but twice… I’m tearing up just because of how happy I am to be relieved from this frustration…
So whoever you are, wherever you are. Maybe God, or if you’re not religious, the universe bless you.
Can confirm, it works! Thank you!
No problem. I used
requirements.txtand installed viapip install -r requirements.txt:This was a workaround follows https://github.com/SYSTRAN/faster-whisper/pull/958, it was a valid workaround because CTranslate2 didn’t support cuDNN 9.
Now CTranslate2 is updated and makes another cuDNN element missing error with
torch==2.3.1, ( in Windows 10 ) Editing therequirements.txtto install latesttorchworked :