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

CUDA is not working #83

Closed
LogosnetDev opened this issue May 6, 2024 · 7 comments
Closed

CUDA is not working #83

LogosnetDev opened this issue May 6, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@LogosnetDev
Copy link

LogosnetDev commented May 6, 2024

Hello there!
I was trying the plugin running on cuda 12.2
image
i think it is not properly working.
here steps i did

  1. import package from git url on my project
  2. created the script to manage the whisper manager and the mic record (according to the sample)
  3. tested "one, two, three test" on cpu (it is working fine)
    image
  4. enabled the CUDA toggle and restarting unity project.
  5. the testing result this one on recorded sentece "one two three test", it took a lot of time and the result is unexpected
    image

specs
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.19045 N/A Build 19045
GPU NVIDIA 1060 ti
CUDA 12.2
RAM 16 gb
CPU Intel64_Family_6_Model_158_-_Intel(R)_Core(TM)i5-7600K_CPU@_3.80GHz_1

@Macoron
Copy link
Owner

Macoron commented May 6, 2024

Thanks for reporting! Seems like whisper.cpp bug. Could you try to run original whisper.cpp release compiled with cuBLAS to see if it works for you?

https://github.com/ggerganov/whisper.cpp/releases/tag/v1.5.1

@Macoron Macoron added the bug Something isn't working label May 6, 2024
@LogosnetDev
Copy link
Author

yeah it seems to be a source problem.
result using no gpu option
image

result using the gpu
image

so i think i should move this report to the original repo.

I noticed this executable running much more faster then the one running on the unity plugin. the clip is elaborated in around 2 seconds, but in unity package it takes around 20 secs. am i missing something?
thank you for the supporting

@Macoron
Copy link
Owner

Macoron commented May 6, 2024

I noticed this executable running much more faster then the one running on the unity plugin. the clip is elaborated in around 2 seconds, but in unity package it takes around 20 secs. am i missing something?

Hard to say for sure. Unity has some overhead, but not 20x or something. On my RTX 2070 Super similar length audio takes around 100 ms. I think the problem in some whisper.cpp bug for your GPU.

Could you also quickly test 1.5.4 or 1.5.5 releases of whisper.cpp? whisper.unity uses 1.5.1 version, so maybe your problem was fixed in latter releases.

@LogosnetDev
Copy link
Author

thank you for you help, i can confirm this bug is fixed in the 1.5.4 release
image

@LogosnetDev
Copy link
Author

there any way to replace the plugin used one one with the newer releses?

@Macoron
Copy link
Owner

Macoron commented May 7, 2024

I updated whisper.cpp to 1.5.5 in #84. Try to download latest master and check if it fixes issue.

@Gabri94x
Copy link

Gabri94x commented May 9, 2024

@Macoron hello there, thank you for you update, i can confirm you now it works properly.
thank you!

@Macoron Macoron closed this as completed May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants