UltraSinger: Error: "cublas64_12.dll is not found or cannot be loaded"

Hi, I just bought a portable computer with a NVidia 4060, I installed all the requirements but when trying to use I get the error of the title:

Traceback (most recent call last):
  File "C:\Programas\UltraSinger\src\UltraSinger.py", line 985, in <module>
    main(sys.argv[1:])
  File "C:\Programas\UltraSinger\src\UltraSinger.py", line 884, in main
    run()
  File "C:\Programas\UltraSinger\src\UltraSinger.py", line 392, in run
    detected_language, transcribed_data = transcribe_audio()
  File "C:\Programas\UltraSinger\src\UltraSinger.py", line 515, in transcribe_audio
    transcribed_data, detected_language = transcribe_with_whisper(
  File "C:\Programas\UltraSinger\src\modules\Speech_Recognition\Whisper.py", line 61, in transcribe_with_whisper
    result = loaded_whisper_model.transcribe(
  File "C:\Programas\UltraSinger\.venv\lib\site-packages\whisperx\asr.py", line 194, in transcribe
    language = language or self.detect_language(audio)
  File "C:\Programas\UltraSinger\.venv\lib\site-packages\whisperx\asr.py", line 252, in detect_language
    encoder_output = self.model.encode(segment)
  File "C:\Programas\UltraSinger\.venv\lib\site-packages\whisperx\asr.py", line 86, in encode
    return self.model.encode(features, to_cpu=to_cpu)
RuntimeError: Library cublas64_12.dll is not found or cannot be loaded

Is there anything I can do for fixing this or is a compatibility issue?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

@Aydonger have you tried to install the Cuda Toolkit? @BanCrash you also tried this?

I just tested installed that and last version, and using whisper large-v3 is working as expected, except for hyphenation (maybe for using large-v3 instead large-v2?

[UltraSinger] Error in hyphenation for language en, maybe you want to disable it?

@Aydonger have you tried to install the Cuda Toolkit? @BanCrash you also tried this?

@BanCrash i created an issue for WSL 😃

We have an ongoing discussion about it at #130 You can fix it by installing another pytourch version.

Oops, I didn’t check it, sorry!

That solves the issue and compiles, though Crepe uses CPU:

[UltraSinger] Pitching with crepe and model full and cpu as worker

Because of this:

[UltraSinger] Checking GPU support for tensorflow and pytorch.
2024-05-05 19:37:23.586528: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2024-05-05 19:37:23.587145: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cublas64_11.dll'; dlerror: cublas64_11.dll not found
2024-05-05 19:37:23.587498: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cublasLt64_11.dll'; dlerror: cublasLt64_11.dll not found
2024-05-05 19:37:23.588825: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cufft64_10.dll'; dlerror: cufft64_10.dll not found
2024-05-05 19:37:23.593642: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cusparse64_11.dll'; dlerror: cusparse64_11.dll not found
2024-05-05 19:37:23.593798: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1850] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
[UltraSinger] tensorflow - there are no cuda devices available -> Using cpu.
[UltraSinger] tensorflow - versions above 2.10 dropped GPU support for Windows, refer to the readme for possible solutions.
[UltraSinger] pytorch - using cuda gpu.

BTW, I wouldn’t mind to try the WSL solution, but I don’t know how to follow after running the command:

sudo apt update && sudo apt install nvidia-cuda-toolkit

Because following the tutorial makes this issue:

/mnt/c/Programas/UltraSinger-WSL$ .venv\Scripts\activate
.venvScriptsactivate: command not found
/mnt/c/Programas/UltraSinger-WSL$ cd .venv
/mnt/c/Programas/UltraSinger-WSL/.venv$ ls -a
.  ..  bin  include  lib  lib64  pyvenv.cfg
/mnt/c/Programas/UltraSinger-WSL/.venv$ cd Scripts
-bash: cd: Scripts: No such file or directory

I imagine that the instructions for using python on linux would be different, but I never used so I don’t know how to proceed.