I’m working on a code that uses Whisper, and I need PyTorch with CUDA to improve the speed of the model execution, I have CUDA installed (verified using nvidia-smi
command where it shows that I have CUDA 12.6) and I installed PyTorch using the command pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
, but when I try to import torch in Python (import torch
) I get the error:
OSError: [WinError 126] The specified module could not be found. Error loading “C:UsersWindows10AppDataLocalProgramsPythonPython311Libsite-packagestorchlibfbgemm.dll” or one of its dependencies.
I tried uninstalling PyTorch completely and reinstalling several times but it didn’t work, apparently the installation is successful but for some reason Python cannot access it, i have Python 3.11.3. Any help is appreciated
Jatm is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.