Closed marsonal2023 closed 9 months ago
Hi @marsonal2023 - Can you provide more details for the error? What CLI command are you using? What's your system configuration and so on?
(nf-whisper311) PS D:\ai\live-main\live-ts> insanely-fast-whisper --file-name https://alldogen.oss-cn-shanghai.aliyuncs.com/vd1106/a24591ce31ffb76fbbc28e1f34711e49/audio.webm
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
Traceback (most recent call last):
File "
self.model.to(device)
File "D:\app\conda\envs\nf-whisper311\Lib\site-packages\transformers\modeling_utils.py", line 2460, in to
return super().to(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\app\conda\envs\nf-whisper311\Lib\site-packages\torch\nn\modules\module.py", line 1160, in to
return self._apply(convert)
^^^^^^^^^^^^^^^^^^^^
File "D:\app\conda\envs\nf-whisper311\Lib\site-packages\torch\nn\modules\module.py", line 810, in _apply
module._apply(fn)
File "D:\app\conda\envs\nf-whisper311\Lib\site-packages\torch\nn\modules\module.py", line 810, in _apply
module._apply(fn)
File "D:\app\conda\envs\nf-whisper311\Lib\site-packages\torch\nn\modules\module.py", line 810, in _apply
module._apply(fn)
File "D:\app\conda\envs\nf-whisper311\Lib\site-packages\torch\nn\modules\module.py", line 833, in _apply
param_applied = fn(param)
^^^^^^^^^
File "D:\app\conda\envs\nf-whisper311\Lib\site-packages\torch\nn\modules\module.py", line 1158, in convert
return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\app\conda\envs\nf-whisper311\Lib\site-packages\torch\cuda\init__.py", line 289, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled
(nf-whisper311) PS D:\ai\live-main\live-ts>
wihndows , conda, python=3.11, nvidia4090,cuda118
@Vaibhavs10 Good
yes what is what excatly happened to me too. google search results told me to reinsall torch but i already have it installed
This looks like the same issue as the second question in the FAQ: https://github.com/Vaibhavs10/insanely-fast-whisper#frequently-asked-questions
This is a windows specific issue. The second question is known to fix this issue.
Sorry about this, packaging can be quite messy.
(feel free to re-open this issue if it doesn't fix)
For me, it helped to get the latest version by referencing the this repository when installing https://github.com/Vaibhavs10/insanely-fast-whisper/issues/213
raise AssertionError("Torch not compiled with CUDA enabled") AssertionError: Torch not compiled with CUDA enabled ??