PyTorch版本适用于CUDA 12.2。

huangapple go评论75阅读模式
英文:

Pytorch version for cuda 12.2

问题

抱歉,我无法提供代码部分的翻译。以下是翻译好的内容:

"我无法找到适用于CUDA驱动程序12.2的PyTorch版本。请问有人可以指导我在哪里找到有用的材料吗?

我目前已安装PyTorch版本11.7。在训练模型时,我遇到以下错误。

**运行时错误(CUDA不匹配消息.format(cuda_str_version,torch.version.cuda)

检测到的CUDA版本(12.2)与用于编译
PyTorch(11.7)的版本不匹配。请确保使用相同的CUDA版本。**

附注:我有NVIDIA驱动程序535

提前感谢"

英文:

I am unable to find the Pytorch version for cuda driver 12.2. Can anyone please guide me where can I find any material that helps.

I have installed currently pytorch version 11.7. While training the model i am facing following error.

**
RuntimeError(CUDA_MISMATCH_MESSAGE.format(cuda_str_version, torch.version.cuda)

The detected CUDA version (12.2) mismatches the version that was used to compile
PyTorch (11.7). Please make sure to use the same CUDA versions.**

PS : I have nvidia driver 535

Thanks in advance

答案1

得分: 3

我遇到了相同的问题。似乎尚未发布适用于CUDA 12.2的PyTorch版本。

目前我正在探索以下几个选项,但尚未决定最终使用哪一个:

  1. 使用NGC容器
    https://catalog.ngc.nvidia.com/orgs/nvidia/containers/pytorch
    这本质上类似于一个虚拟环境,包含所需的CUDA驱动程序和其他组件。

  2. 降级到CUDA 12.1并安装夜间版本
    https://download.pytorch.org/whl/nightly/cu121
    不确定我需要哪个驱动程序版本,但这可能是一个可行的选项。

  3. 只是等待并希望他们很快发布它

  4. (最有可能的)我将从源代码构建它。
    https://github.com/pytorch/pytorch/issues/104417

参考链接
https://discuss.pytorch.org/t/which-version-of-cuda-12-1-should-be-used/176456
https://discuss.pytorch.org/t/pytorch-for-cuda-12/169447/2

英文:

I am having the same issue. It appears that the PyTorch version for CUDA 12.2 is not out yet.

Here are the few options I am currently exploring. Still haven't decided which one I'll end up using:

  1. Using an NGC Container
    https://catalog.ngc.nvidia.com/orgs/nvidia/containers/pytorch
    This is essentially like a virtual environment with the required CUDA drivers and everything included.

  2. Downgrading to CUDA 12.1 and installing the nightly version
    https://download.pytorch.org/whl/nightly/cu121
    Not sure exactly the driver version I would need for this but it could be a viable option.

  3. Just waiting and hoping they release it soon

  4. (Most Likely) I will just build it from the source.
    https://github.com/pytorch/pytorch/issues/104417

References
https://discuss.pytorch.org/t/which-version-of-cuda-12-1-should-be-used/176456
https://discuss.pytorch.org/t/pytorch-for-cuda-12/169447/2

答案2

得分: 1

如果您正在使用Llama-2,我认为您需要将Nvidia CUDA从12.2降级到10.2。版本10.2是最稳定的版本。Pytorch版本1.5与CUDA 10.2的Pytorch兼容。然而,我遇到的问题是,似乎Anaconda在Pytorch中下载了CPU库,而不是GPU库。不太清楚原因。

英文:

If you are using Llama-2, I think you need to downgrade Nvida CUDA from 12.2 to 10.2. Version 10.2 is the most stable version. Pytorch version 1.5 works with Pytorch for CUDA 10.2. However, the problem I have is it seems Anaconda keeps downloading the CPU libaries in Pytorch rather than the GPU. Not sure why.

huangapple
  • 本文由 发表于 2023年7月13日 19:26:25
  • 转载请务必保留本文链接:https://go.coder-hub.com/76678846.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定