报错:
miniconda3/envs/chatglm3/lib/python3.10/site-packages/torch/cuda/__init__.py:138: UserWarning: CUDA initialization: The NVIDIA driver on your system is too old (found version 11030). 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.)
产生原因:
CUDA版本与pytorch版本不匹配
建议:
pytorch版本修改更容易,因此调整pytorch版本而非CUDA。
解决方法:
chatglm3要求torch>=2.0
pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2