Torch not compiled with CUDA enabled #31 M1 AssertionError: Torch not compiled with CUDA enabled macbook安装环境chatglm2-6b的详细过程
Mac m1 用DDIM抽样方法出现Torch not compiled with CUDA enabled报错。已解决进入stable-diffusion-webui文件夹,在mac终端下执行find . -name "ddim.py"命令发现文件位置在./repositories/stable-diffusion/ldm/models/diffusion/ddim.pycd进入该目录,用vi编辑文件,将里面的cuda一律换为cpu,按esc输入:wq保存即可。
Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled WARNING:modules.mac_specific:MPS garbage collection failed Traceback (most recent call last): File "/Users/mac/stable-diffusion-webui/modules/mac_specific.py", line 37, in torch_mps_gc from torch.mps imp...
等了一段时间后报错了:Torch not compiled with CUDA enabled,解决方式: 将这段代码: python model = AutoModel.from_pretrained("THUDM/chatglm2-6b", trust_remote_code=True).cuda() 修改为: model = AutoModel.from_pretrained("THUDM/chatglm2-6b", trust_remote_code=True).to('mps') ...
数千微信好友,每天都会有几个问我 Torch not complied with CUDA enabled 这类问题。 01 AIGC:从文本生成图像(DALLE ,Stable Diffusion) DALLE2是收费的,用户只有一些免费的额度,如果免费额度使用完毕就需要付费了,所以必须寻找替代方案,并发现了Hugging Face,他们发布了一个扩散模型的包diffusers ,可以让我们直接使...
mac Attempting to deserialize object on a CUDA device but torch.cuda.is_availabl #1296 Closed Thinking80s opened this issue Jul 12, 2024· 0 comments Comments Thinking80s commented Jul 12, 2024 Thinking80s closed this as completed Jul 12, 2024 Sign up for free to join this conversation ...
```sh # Failed to infer normally with CUDA>11.1 on 30-series GPU cd LoopDetection/torch-radon python setup.py install ``` * [livox_ros_driver](https://github.com/Livox-SDK/livox_ros_driver) (for FAST_LIO2) ```sh Follow https://github.com/Livox-SDK/livox_ros_driver ...
尝试将频道从PyTorch更改为NVIDIA:conda install cudatoolkit=11.3 -c nvidia 如果仍然找不到,请尝试...
尝试将频道从PyTorch更改为NVIDIA:conda install cudatoolkit=11.3 -c nvidia 如果仍然找不到,请尝试...