我正在尝试在具有32个vCPU,208 GB RAM和2个NVIDIA Tesla T4的GCP的AI平台笔记本上运行以下Hugging Face Transformers tutorial。
但是,当我尝试运行零件时
model = DistillBERTClass()
model.to(device)
我收到以下断言错误:
AssertionError: The NVIDIA driver on your system is too old (found version 10010).
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.
但是,当我跑步时 !nvidia-smi
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.87.01 Driver Version: 418.87.01 CUDA Version: 10.1 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Tesla T4 Off | 00000000:00:04.0 Off | 0 |
| N/A 38C P0 22W / 70W | 10MiB / 15079MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 1 Tesla T4 Off | 00000000:00:05.0 Off | 0 |
| N/A 39C P8 10W / 70W | 10MiB / 15079MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
NVIDIA驱动程序上的版本与我正在使用的最新PyTorch版本兼容。 有其他人遇到此错误,并且有解决方法吗?
答案 0 :(得分:1)
您可以:
请通过下载并安装新的驱动程序来更新GPU驱动程序 网址中的版本:http://www.nvidia.com/Download/index.aspx
或者,转到:https://pytorch.org安装PyTorch 的版本已使用您的CUDA驱动程序的版本进行编译。
答案 1 :(得分:0)
您可以尝试更新的NVIDIA驱动程序版本,我们支持最新的CUDA 11驱动程序版本,然后在其之上安装Pytorch:
gcloud beta notebooks instances create cuda11 \
--vm-image-project=deeplearning-platform-release \
--vm-image-family=common-cu110-notebooks-debian-9 \
--machine-type=n1-standard-1 \
--location=us-west1-a \
--format=json
图片家族: