6 CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.

创建于 2024-02-01 / 603
字体: [默认] [大] [更大] 收藏文档

错误提示关键字:

RuntimeError: CUDA error: the launch timed out and was terminated CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1.

 

控制台输出:

descript

 

该错误可能的原因:

1 显卡驱动方面的原因,或者显存不足。

2 插件导致的错误,最近几天集中出现在 animatediff 这个插件导致。

 

解决方案:

A 如果不是点名插件导致的,可以尝试更新显卡驱动到最新版本后重新尝试,到nividia官网更新,不要使用第三方驱动软件。

B 如果是插件animatediff导致的错误,按照以下步骤尝试:

启动器-高级选项-cross-Attention优化方案中,选择使用缩放点积(SDP)方案(限torch 2+

(该解决方案来自频友 Gluttony喵,感谢!)

descript

descript

 

附加资料

descript

descript


1 人点赞过