Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUDA和Pytorch已经安装,但依然提示Failed CUDA #311

Open
kgolin opened this issue Mar 15, 2024 · 1 comment
Open

CUDA和Pytorch已经安装,但依然提示Failed CUDA #311

kgolin opened this issue Mar 15, 2024 · 1 comment

Comments

@kgolin
Copy link

kgolin commented Mar 15, 2024

111121
CUDA和Pytorch已经安装,但依然提示Failed to switch model - Failed to enable custom CUDA kernel, ninja is required to load C++ extensions. You may be using the CPU version of PyTorch, please reinstall PyTorch with CUDA. Or if you are using a custom Python interpreter, you must compile the CUDA kernel by yourself or disable Custom CUDA kernel acceleration"
无标题1112

@kgolin
Copy link
Author

kgolin commented Mar 16, 2024

将py310->Lib->site-packages下的torch和torch-1.13.1.dist-info文件夹删除,然后重开软件运行再根据提示装一边torch就解决了,不过我这里自动安装是cu117,还低了一版

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant