Avalanche unable to use cuda device. #1582
Unanswered
jodie-kang
asked this question in
Q&A
Replies: 3 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
looks like an environment issue due to installing pytorch with conda and avalanche with pip.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
🐛 Describe the bug
UserWarning: CUDA initialization: The NVIDIA driver on your system is too old (found version 11050). 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:108.)
🐜 To Reproduce
Installation Process:
Observations: Automatic installation of torch-2.1.0
Attempt 1: Manual installation of the GPU version of PyTorch:
conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.3 -c pytorch
Encountered an error: TypeError: BaseSGDTemplate.init() missing 2 required positional arguments: 'model' and 'optimizer'
Observation: The above command led to automatic uninstallation of torch-2.1.0
Attempt 2: pip install typing-extensions==4.4.0, but the problem persists
Attempt 3: Created a conda environment with Python=3.10, but the issue remains unresolved.
🐝 Expected behavior
Due to certain reasons, I lack permission to change the CUDA version on the server. Are there any alternative methods to address the above issue?
🐞 Screenshots
![image](https://private-user-images.githubusercontent.com/88081081/279873660-ef2e7a88-0358-48b3-b679-61e7168be317.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1MzU1MTksIm5iZiI6MTcyMDUzNTIxOSwicGF0aCI6Ii84ODA4MTA4MS8yNzk4NzM2NjAtZWYyZTdhODgtMDM1OC00OGIzLWI2NzktNjFlNzE2OGJlMzE3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA5VDE0MjY1OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU2Y2MzNmVmOWYzNzc2ZjkxOGI2MDc4MTM3NzFjYTI0NGRlNGZiN2MxOGMzYTNjZjZiYThlMTRjNTE2N2ZmNWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.7E0d4_dBq_qQEet09JHLOMPytOIiVcrokikSW3twmX8)
🦋 Additional context
![image](https://private-user-images.githubusercontent.com/88081081/279873748-82202bf6-46c7-4f09-ac4e-7fbaf15da6cf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1MzU1MTksIm5iZiI6MTcyMDUzNTIxOSwicGF0aCI6Ii84ODA4MTA4MS8yNzk4NzM3NDgtODIyMDJiZjYtNDZjNy00ZjA5LWFjNGUtN2ZiYWYxNWRhNmNmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA5VDE0MjY1OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgxNGQwNzM1NDk4YWVhNzMwODY5MzY5ZWFhNDYxY2JjNTIwYjQ2OTU2Zjk2OTUyNGJiYTZiNjk1ZmIyMzY5NGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.qWyVd6NKobHL4YtUDSHeRgT0WA38E7rXUQDOcBEd64Q)
NVIDIA-SMI 495.46 Driver Version: 495.46 CUDA Version: 11.5
Beta Was this translation helpful? Give feedback.
All reactions