Closed sr5434 closed 10 months ago
If autocasting is not supported for MPS for certain ops, we cannot do much.
Could I use .half()? Would that even work?
That we cannot guarantee. I suggest you stick to full-precision and reduce batch size and/or resolution. I don't MPS backend should be used for training as it can be quite unreliable.
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
Describe the bug
Using the instructions in the
examples/text_to_image
folder'sreadme_sdxl.md
file, I tried to train a Stable Diffusion XL model on a dataset with mixed precision, but failed because Autocast is unsupported on MPS. I cannot train in full precision because then the MPS backend OOMs.Reproduction
Command:
Logs
System Info
diffusers
version: 0.25.0.dev0Who can help?
@sayakpaul @pcuenca