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

Torch not compiled with CUDA enabled #249

Open
Ryan147 opened this issue Oct 11, 2024 · 0 comments
Open

Torch not compiled with CUDA enabled #249

Ryan147 opened this issue Oct 11, 2024 · 0 comments

Comments

@Ryan147
Copy link

Ryan147 commented Oct 11, 2024

When running insanely-fast-whisper I get an error message as mentioned below.

However, pytorch with cuda version 12.4 support is installed.

Tested with this code:
import torch
print(torch.version.cuda)

What is the issue?

--------- Error message -------

Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "c:\Users\user.local\bin\insanely-fast-whisper.exe_main
.py", line 7, in
File "C:\Users\user\pipx\venvs\insanely-fast-whisper\Lib\site-packages\insanely_fast_whisper\cli.py", line 130, in main
pipe = pipeline(
^^^^^^^^^
File "C:\Users\user\pipx\venvs\insanely-fast-whisper\Lib\site-packages\transformers\pipelines_init
.py", line 1102, in pipeline
return pipeline_class(model=model, framework=framework, task=task, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\pipx\venvs\insanely-fast-whisper\Lib\site-packages\transformers\pipelines\automatic_speech_recognition.py", line 219, in init
super().init(model, tokenizer, feature_extractor, device=device, torch_dtype=torch_dtype, **kwargs)
File "C:\Users\user\pipx\venvs\insanely-fast-whisper\Lib\site-packages\transformers\pipelines\base.py", line 901, in init
self.model.to(self.device)
File "C:\Users\user\pipx\venvs\insanely-fast-whisper\Lib\site-packages\transformers\modeling_utils.py", line 2958, in to
return super().to(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\pipx\venvs\insanely-fast-whisper\Lib\site-packages\torch\nn\modules\module.py", line 1174, in to
return self._apply(convert)
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\pipx\venvs\insanely-fast-whisper\Lib\site-packages\torch\nn\modules\module.py", line 780, in _apply
module._apply(fn)
File "C:\Users\user\pipx\venvs\insanely-fast-whisper\Lib\site-packages\torch\nn\modules\module.py", line 780, in _apply
module._apply(fn)
File "C:\Users\user\pipx\venvs\insanely-fast-whisper\Lib\site-packages\torch\nn\modules\module.py", line 780, in _apply
module._apply(fn)
File "C:\Users\user\pipx\venvs\insanely-fast-whisper\Lib\site-packages\torch\nn\modules\module.py", line 805, in apply
param_applied = fn(param)
^^^^^^^^^
File "C:\Users\user\pipx\venvs\insanely-fast-whisper\Lib\site-packages\torch\nn\modules\module.py", line 1160, in convert
return t.to(
^^^^^
File "C:\Users\user\pipx\venvs\insanely-fast-whisper\Lib\site-packages\torch\cuda_init
.py", line 305, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled

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

1 participant