电脑配置是4070的笔记本,8GB显存,在运行Stable Diffusion webui的时候会出现随机的CUDA报错,主要内容如下:
RuntimeError: CUDA error: an illegal instruction was encountered
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.
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
发现在 webui-user.bat 的 set COMMANDLINE_ARGS 加上 --no-half 有奇效。截至目前任然稳定。