If i check if torch can see my gpu, it returns FALSE and a Warning:
>>> torch.cuda.is_available()
D:\servus\stable-diffusion-webui\venv\lib\site-packages\torch\cuda\__init__.py:107: UserWarning: CUDA initialization: The NVIDIA driver on your system is too old (found version 9010). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver. (Triggered internally at ..\c10\cuda\CUDAFunctions.cpp:109.)
False
My setup is:
- torch.version_: 2.0.0+cu118
- GraphicCard: NVIDIA GeForce GT 540M
- CUDA: 12.1 (updated by myself)
- Python: 3.10.9
I don’t know what the “version 9010” is from, in the warning "The NVIDIA driver on your system is too old (found version 9010)."
I was reading here Install pytorch with Cuda 12.1 :
Is it possible to install version 11.8 and I have 12.1?
…
Yes, the PyTorch binaries ship with their own CUDA runtime, cuDNN, NCCL etc. and will work with newer drivers. Your local CUDA toolkit will be used if you build PyTorch from source or a custom CUDA extension.
… i spend nearly a complete day, by setup stable-diffusion-webui and python, updating my nvidia driver, upgrading to cuda 12.1, updating torch, trying to get it fixed, also reading posts from here
… i was run upgrade for torch for cuda 11.8:
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 --upgrade
… and this command was running several hours, because it used all my RAM while loading the torch version (i have 4GB RAM on a laptop … btw don’t know, why the loading from the upgrade is hungry for RAM),
but upgrade was successful:
Successfully installed torch-2.0.0+cu118 torchaudio-2.0.1+cu118 torchvision-0.15.1+cu118
… but at the end, it does NOT fix:
>>> torch.cuda.is_available()
D:\servus\stable-diffusion-webui\venv\lib\site-packages\torch\cuda\__init__.py:107: UserWarning: CUDA initialization: The NVIDIA driver on your system is too old (found version 9010). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver. (Triggered internally at ..\c10\cuda\CUDAFunctions.cpp:109.)
False
… please help
= )