Ascend / pytorch

Ascend PyTorch adapter (torch_npu). Mirror of https://gitee.com/ascend/pytorch
https://ascend.github.io/docs/
Other
202 stars 10 forks source link

Lora训练stable-diffusion报pytorch错误:AttributeError: module 'torch_npu' has no attribute 'npu_geglu' #23

Open BruceWang1996 opened 4 months ago

BruceWang1996 commented 4 months ago

报错如下:AttributeError: module 'torch_npu' has no attribute 'npu_geglu' image pytorch版本如下: 输入图片说明 image 验证pytorch可用性结果如下: image

BoyuanJiang commented 4 months ago

+1

yunyiyun commented 3 months ago

你所使用的torch_npu版本确实不支持npu_geglu算子,建议在 https://gitee.com/ascend/ModelZoo-PyTorch/tree/f33de6351cdb698ab7712663bb10ba49dcba1be1/PyTorch/built-in/diffusion/diffusers0.25.0 咨询获取可以支持的版本或者对应调整代码使用支持的算子

HoiM commented 3 weeks ago

同样问题,后来有解决吗?哈哈哈