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

RuntimeError: Library libcublas.so.12 is not found or cannot be loaded #788

Open
sunbaichi opened this issue Apr 22, 2024 · 3 comments
Open

Comments

@sunbaichi
Copy link

cuda version11.8

File "/App/install/OPS/pyenv/ai-speech/lib/python3.10/site-packages/transformers/pipelines/base.py", line 1112, in forward
model_outputs = self._forward(model_inputs, **forward_params)
File "/App/install/OPS/whisperX-main/whisperx/asr.py", line 152, in _forward
outputs = self.model.generate_segment_batched(model_inputs['inputs'], self.tokenizer, self.options)
File "/App/install/OPS/whisperX-main/whisperx/asr.py", line 47, in generate_segment_batched
encoder_output = self.encode(features)
File "/App/install/OPS/whisperX-main/whisperx/asr.py", line 86, in encode
return self.model.encode(features, to_cpu=to_cpu)
RuntimeError: Library libcublas.so.12 is not found or cannot be loaded

@sunbaichi
Copy link
Author

sunbaichi commented Apr 22, 2024

The installed version is cuda11.8
File/usr/local/cuda/lib64/libcublas.so.11 exists
But why would you look for libcublas.so.12?

@Razatator
Copy link

I had the same problem. By installing Pytorch version Cuda 12.1 and installing whisperX by Pip, this installed the libcublass and cudnn dependencies automatically.
pip3 install torch torchvision torchaudio
pip install whisperx

@ghostcow
Copy link

ghostcow commented May 1, 2024

The issue stems from faster-whisper having not specify a version in requirements.txt:
ctranslate2>=4.0,<5
Leading to the installation of untested versions of CTranslate2:
A few days ago a version 4.2.1 of ctranslate2 came out and installing it creates this problem.

pip installing the package ctranslate2==4.2.0 before installing the whisperx package can solve this problem

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