SDXL lora training taking too much memory


I am trying to train dreambooth sdxl but keep running out of memory when trying it for 1024px resolution. I am using the following command with the latest repo on github. Any way to run it in less memory.

accelerate launch
–instance_prompt=“a photo of sks dog”
–validation_prompt=“A photo of sks dog in a bucket”