gpt4 book ai didi

pytorch - 谷歌 Colab : torch cuda is true but No CUDA GPUs are available

转载 作者:行者123 更新时间:2023-12-05 05:41:14 31 4
gpt4 key购买 nike

我使用 Google Colab 训练模型,但如图所示,当我输入“torch.cuda.is_available()”并且输出为“true”时。然后我运行代码,但出现错误 RuntimeError: No CUDA GPUs are available。

The screen of google colab

最佳答案

尝试安装你想使用的cudatoolkit版本“conda 安装 pytorch torchvision cudatoolkit=10.1 -c pytorch”

关于pytorch - 谷歌 Colab : torch cuda is true but No CUDA GPUs are available,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72303759/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com