whisper.net icon indicating copy to clipboard operation
whisper.net copied to clipboard

1.5.0 release of Windows x64 cuBLAS runtime does not work

Open KanaHayama opened this issue 1 year ago • 9 comments

Hello, I upgraded my whisper.net packages from 1.4.7 to 1.5.0. I found that the CPU runtime is working, but the cuBLAS runtime does not produce results. Are there other migration operations that I am missing? Thank you.

KanaHayama avatar Dec 04 '23 23:12 KanaHayama

Hello @KanaHayama , Can you, please confirm if you have installed Cuda 12.1?

Whisper.net 1.4.7 was built using Cuda 11, but starting with 1.5.0, the build was done using github actions and cuda 12.1 was used: https://github.com/sandrohanea/whisper.net/blob/main/.github/workflows/windows-native-build.yml#L70

sandrohanea avatar Dec 06 '23 19:12 sandrohanea

I checked my CUDA_PATH, and it is pointing to CUDA 12.2. My setting works with 1.4.7, but does not work with 1.5.0.

KanaHayama avatar Dec 07 '23 05:12 KanaHayama

Besides that, my PATH contains CUDA 12.2, 11.6 and 11.8. I did not notice that I have multiple CUDA listed in PATH, but I think this should be fine because 12.2 is in front of all others. image

KanaHayama avatar Dec 07 '23 05:12 KanaHayama

使用CUDA\v12.3可以吗? 目前它使用的还是cpu

shuaidaipeng avatar Dec 11 '23 03:12 shuaidaipeng

I installed and tested CUDA 12.3. The problem is the same. @shuaidaipeng

KanaHayama avatar Dec 11 '23 17:12 KanaHayama

I installed and tested CUDA 12.3. The problem is the same. @shuaidaipeng

我安装并测试了CUDA 12.3。问题是一样的。@帅呆蓬

我研究了一下下它这个是根据自己的cuda版本编译出来的工具,所以对应其他版本的cuda需要自己去cmake 去编译

shuaidaipeng avatar Dec 12 '23 09:12 shuaidaipeng

Same here, Whisper.net uses my CPU instead the GPU. I've installed CUDA 12.4 and the following packages I use in my project: Whisper.net Version="1.5.0" Whisper.net.Runtime Version="1.5.0" Whisper.net.Runtime.Cublas Version="1.5.0"

MarkHXB avatar Mar 31 '24 08:03 MarkHXB

Whisper.net.Runtime.Cublas下面的是编译以后的cuda版本whisper.dll,将他替换exe的runtime下的win-x64版本dll,启动cuda版本的Whisper.net.

foenix66 avatar May 29 '24 09:05 foenix66

I figured this out: Make sure you don't also have the Whisper.net.Runtime package. You must only have the Whisper.net.Runtime.Cublas package, AND you must clean/rebuild your solution to force the correct dll into the built project.

abbotadmin avatar Jun 25 '24 09:06 abbotadmin

Hello all, Starting with 1.7.0 you can now define multiple Runtimes in the same project and the "best" one will be automatically picked. Indeed, previous to this version, you couldn't have both Cuda and CPU runtime on the same project.

sandrohanea avatar Oct 10 '24 12:10 sandrohanea