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

MacBook CUDA error #17

Closed
vipic opened this issue May 8, 2023 · 3 comments
Closed

MacBook CUDA error #17

vipic opened this issue May 8, 2023 · 3 comments

Comments

@vipic
Copy link

vipic commented May 8, 2023

M1 MacBook 报错见下。是不是意味着只有 NVIDIA 显卡才行

raise AssertionError("Torch not compiled with CUDA enabled")

AssertionError: Torch not compiled with CUDA enabled

@MaxMax2016
Copy link
Collaborator

需要修改代码吧 Stability-AI/StableLM#31

@vipic
Copy link
Author

vipic commented May 8, 2023

需要修改代码吧 Stability-AI/StableLM#31

好的,我去试试看

@vipic
Copy link
Author

vipic commented May 9, 2023

这个步骤暂时解决了,但是我还是不弄了。

/prepare/preprocess_speaker.py 文件,77 行有个 if use_cuda 的判断,将这里调整参数或者注释掉就能短暂的进行下去了。

后续启动训练的时候还会继续报错,

svc_trainer.py 文件 33 行判断直接打印 "No GPU find!"

后续这个文件又调用 vits_extend/tran.py,里面 还有和 cuda 相关代码,找到 pytorch 里面提到 torch.cuda() 替换为 torch.cpu() 就能切换使用 cpu 来训练。但是这里还有一些参数不知道什么含义,我不准备继续了...

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

2 participants