Closed hansun11 closed 1 year ago
Yep, training embeddings seems to have been broken in 1.5.0. I've gotten that same error —
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [1, 77, 768]], which is output 0 of MulBackward0, is at version 2; expected version 1 instead.
— a half-dozen times in the past 24 hours across multiple A1111 installs, on both Colab (NoCrypt) and a different hosted A1111 (Stadio). Reverting to 1.4.0 fixes the problem.
Same error when training TI with 1.5.0, I switch back to 1.4.1
是的,训练嵌入似乎在 1.5.0 中被破坏了。我也遇到了同样的错误 -
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [1, 77, 768]], which is output 0 of MulBackward0, is at version 2; expected version 1 instead.
— 在过去 24 小时内,在 Colab (NoCrypt) 和不同托管的 A1111 (Stadio) 上安装了多个 A1111,有六次。恢复到 1.4.0 可以解决该问题。
Unfortunately, it still doesn't work with the same log after I switch back to 1.4
this bug is fixed in the latest RC version with commit https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/5c8f91b22975701af22d24f947af82e7d23264d5
this bug is fixed in the latest RC version with commit 5c8f91b
太棒了,折腾了一天,解决问题!!!
Is there an existing issue for this?
What happened?
when i want to train, it didn't work.The web UI show:Training finished at 0 steps. Embedding saved to E:\SDwebui\webui\embeddings\smartlock.pt ( it's a new PC ,and my GPU is 4060ti 16G )
Steps to reproduce the problem
What should have happened?
it should works as i did in Colab.
Version or Commit where the problem happens
version: v1.5.0
What Python version are you running on ?
Python 3.10.x
What platforms do you use to access the UI ?
Windows
What device are you running WebUI on?
Nvidia GPUs (RTX 20 above), Other GPUs
Cross attention optimization
Automatic
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
List of extensions
no
Console logs
Additional information
No response